IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/obs-studio/libobs/extr_obs-nix.c_obs_key_combination_to_str.c'
source_filename = "AnghaBench/obs-studio/libobs/extr_obs-nix.c_obs_key_combination_to_str.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@INTERACT_CONTROL_KEY = dso_local local_unnamed_addr global i32 0, align 4
@OBS_KEY_CONTROL = dso_local local_unnamed_addr global i64 0, align 8
@INTERACT_COMMAND_KEY = dso_local local_unnamed_addr global i32 0, align 4
@OBS_KEY_META = dso_local local_unnamed_addr global i64 0, align 8
@INTERACT_ALT_KEY = dso_local local_unnamed_addr global i32 0, align 4
@OBS_KEY_ALT = dso_local local_unnamed_addr global i64 0, align 8
@INTERACT_SHIFT_KEY = dso_local local_unnamed_addr global i32 0, align 4
@OBS_KEY_SHIFT = dso_local local_unnamed_addr global i64 0, align 8
@OBS_KEY_NONE = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @obs_key_combination_to_str(i32 %0, i64 %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @INTERACT_CONTROL_KEY, align 4, !tbaa !5
%5 = and i32 %4, %0
%6 = icmp eq i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %3
%8 = load i64, ptr @OBS_KEY_CONTROL, align 8, !tbaa !9
%9 = tail call i32 @add_combo_key(i64 noundef %8, ptr noundef %2) #2
br label %10
10: ; preds = %7, %3
%11 = load i32, ptr @INTERACT_COMMAND_KEY, align 4, !tbaa !5
%12 = and i32 %11, %0
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = load i64, ptr @OBS_KEY_META, align 8, !tbaa !9
%16 = tail call i32 @add_combo_key(i64 noundef %15, ptr noundef %2) #2
br label %17
17: ; preds = %14, %10
%18 = load i32, ptr @INTERACT_ALT_KEY, align 4, !tbaa !5
%19 = and i32 %18, %0
%20 = icmp eq i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = load i64, ptr @OBS_KEY_ALT, align 8, !tbaa !9
%23 = tail call i32 @add_combo_key(i64 noundef %22, ptr noundef %2) #2
br label %24
24: ; preds = %21, %17
%25 = load i32, ptr @INTERACT_SHIFT_KEY, align 4, !tbaa !5
%26 = and i32 %25, %0
%27 = icmp eq i32 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %24
%29 = load i64, ptr @OBS_KEY_SHIFT, align 8, !tbaa !9
%30 = tail call i32 @add_combo_key(i64 noundef %29, ptr noundef %2) #2
br label %31
31: ; preds = %28, %24
%32 = load i64, ptr @OBS_KEY_NONE, align 8, !tbaa !9
%33 = icmp eq i64 %32, %1
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @add_combo_key(i64 noundef %1, ptr noundef %2) #2
br label %36
36: ; preds = %34, %31
ret void
}
declare i32 @add_combo_key(i64 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/obs-studio/libobs/extr_obs-nix.c_obs_key_combination_to_str.c'
source_filename = "AnghaBench/obs-studio/libobs/extr_obs-nix.c_obs_key_combination_to_str.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@INTERACT_CONTROL_KEY = common local_unnamed_addr global i32 0, align 4
@OBS_KEY_CONTROL = common local_unnamed_addr global i64 0, align 8
@INTERACT_COMMAND_KEY = common local_unnamed_addr global i32 0, align 4
@OBS_KEY_META = common local_unnamed_addr global i64 0, align 8
@INTERACT_ALT_KEY = common local_unnamed_addr global i32 0, align 4
@OBS_KEY_ALT = common local_unnamed_addr global i64 0, align 8
@INTERACT_SHIFT_KEY = common local_unnamed_addr global i32 0, align 4
@OBS_KEY_SHIFT = common local_unnamed_addr global i64 0, align 8
@OBS_KEY_NONE = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @obs_key_combination_to_str([2 x i64] %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = extractvalue [2 x i64] %0, 0
%4 = trunc i64 %3 to i32
%5 = extractvalue [2 x i64] %0, 1
%6 = load i32, ptr @INTERACT_CONTROL_KEY, align 4, !tbaa !6
%7 = and i32 %6, %4
%8 = icmp eq i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = load i64, ptr @OBS_KEY_CONTROL, align 8, !tbaa !10
%11 = tail call i32 @add_combo_key(i64 noundef %10, ptr noundef %1) #2
br label %12
12: ; preds = %9, %2
%13 = load i32, ptr @INTERACT_COMMAND_KEY, align 4, !tbaa !6
%14 = and i32 %13, %4
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i64, ptr @OBS_KEY_META, align 8, !tbaa !10
%18 = tail call i32 @add_combo_key(i64 noundef %17, ptr noundef %1) #2
br label %19
19: ; preds = %16, %12
%20 = load i32, ptr @INTERACT_ALT_KEY, align 4, !tbaa !6
%21 = and i32 %20, %4
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %19
%24 = load i64, ptr @OBS_KEY_ALT, align 8, !tbaa !10
%25 = tail call i32 @add_combo_key(i64 noundef %24, ptr noundef %1) #2
br label %26
26: ; preds = %23, %19
%27 = load i32, ptr @INTERACT_SHIFT_KEY, align 4, !tbaa !6
%28 = and i32 %27, %4
%29 = icmp eq i32 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %26
%31 = load i64, ptr @OBS_KEY_SHIFT, align 8, !tbaa !10
%32 = tail call i32 @add_combo_key(i64 noundef %31, ptr noundef %1) #2
br label %33
33: ; preds = %30, %26
%34 = load i64, ptr @OBS_KEY_NONE, align 8, !tbaa !10
%35 = icmp eq i64 %5, %34
br i1 %35, label %38, label %36
36: ; preds = %33
%37 = tail call i32 @add_combo_key(i64 noundef %5, ptr noundef %1) #2
br label %38
38: ; preds = %36, %33
ret void
}
declare i32 @add_combo_key(i64 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
| obs-studio_libobs_extr_obs-nix.c_obs_key_combination_to_str |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_amdkfd_gfx_v8.c_lock_srbm.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_amdkfd_gfx_v8.c_lock_srbm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@mmSRBM_GFX_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lock_srbm], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @lock_srbm(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call ptr @get_amdgpu_device(ptr noundef %0) #2
%7 = tail call i32 @PIPEID(i32 noundef %2) #2
%8 = tail call i32 @MEID(i32 noundef %1) #2
%9 = or i32 %8, %7
%10 = tail call i32 @VMID(i32 noundef %4) #2
%11 = or i32 %9, %10
%12 = tail call i32 @QUEUEID(i32 noundef %3) #2
%13 = or i32 %11, %12
%14 = tail call i32 @mutex_lock(ptr noundef %6) #2
%15 = load i32, ptr @mmSRBM_GFX_CNTL, align 4, !tbaa !5
%16 = tail call i32 @WREG32(i32 noundef %15, i32 noundef %13) #2
ret void
}
declare ptr @get_amdgpu_device(ptr noundef) local_unnamed_addr #1
declare i32 @PIPEID(i32 noundef) local_unnamed_addr #1
declare i32 @MEID(i32 noundef) local_unnamed_addr #1
declare i32 @VMID(i32 noundef) local_unnamed_addr #1
declare i32 @QUEUEID(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @WREG32(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_amdkfd_gfx_v8.c_lock_srbm.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_amdkfd_gfx_v8.c_lock_srbm.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mmSRBM_GFX_CNTL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lock_srbm], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @lock_srbm(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call ptr @get_amdgpu_device(ptr noundef %0) #2
%7 = tail call i32 @PIPEID(i32 noundef %2) #2
%8 = tail call i32 @MEID(i32 noundef %1) #2
%9 = or i32 %8, %7
%10 = tail call i32 @VMID(i32 noundef %4) #2
%11 = or i32 %9, %10
%12 = tail call i32 @QUEUEID(i32 noundef %3) #2
%13 = or i32 %11, %12
%14 = tail call i32 @mutex_lock(ptr noundef %6) #2
%15 = load i32, ptr @mmSRBM_GFX_CNTL, align 4, !tbaa !6
%16 = tail call i32 @WREG32(i32 noundef %15, i32 noundef %13) #2
ret void
}
declare ptr @get_amdgpu_device(ptr noundef) local_unnamed_addr #1
declare i32 @PIPEID(i32 noundef) local_unnamed_addr #1
declare i32 @MEID(i32 noundef) local_unnamed_addr #1
declare i32 @VMID(i32 noundef) local_unnamed_addr #1
declare i32 @QUEUEID(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @WREG32(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_amd_amdgpu_extr_amdgpu_amdkfd_gfx_v8.c_lock_srbm |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/mtd/onenand/extr_onenand_base.c_onenand_release_device.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/mtd/onenand/extr_onenand_base.c_onenand_release_device.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.onenand_chip = type { i32, i32, i32 }
@FL_READY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @onenand_release_device], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @onenand_release_device(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @spin_lock(ptr noundef %2) #2
%4 = load i32, ptr @FL_READY, align 4, !tbaa !10
%5 = getelementptr inbounds %struct.onenand_chip, ptr %2, i64 0, i32 2
store i32 %4, ptr %5, align 4, !tbaa !12
%6 = getelementptr inbounds %struct.onenand_chip, ptr %2, i64 0, i32 1
%7 = tail call i32 @wake_up(ptr noundef nonnull %6) #2
%8 = tail call i32 @spin_unlock(ptr noundef %2) #2
ret void
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mtd_info", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"onenand_chip", !11, i64 0, !11, i64 4, !11, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/mtd/onenand/extr_onenand_base.c_onenand_release_device.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/mtd/onenand/extr_onenand_base.c_onenand_release_device.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FL_READY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @onenand_release_device], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @onenand_release_device(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @spin_lock(ptr noundef %2) #2
%4 = load i32, ptr @FL_READY, align 4, !tbaa !11
%5 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %4, ptr %5, align 4, !tbaa !13
%6 = getelementptr inbounds i8, ptr %2, i64 4
%7 = tail call i32 @wake_up(ptr noundef nonnull %6) #2
%8 = tail call i32 @spin_unlock(ptr noundef %2) #2
ret void
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"mtd_info", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"onenand_chip", !12, i64 0, !12, i64 4, !12, i64 8}
| fastsocket_kernel_drivers_mtd_onenand_extr_onenand_base.c_onenand_release_device |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/config/arm/extr_arm.c_tls_mentioned_p.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/config/arm/extr_arm.c_tls_mentioned_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@UNSPEC_TLS = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @tls_mentioned_p(i32 noundef %0) local_unnamed_addr #0 {
br label %2
2: ; preds = %5, %1
%3 = phi i32 [ %0, %1 ], [ %6, %5 ]
%4 = tail call i32 @GET_CODE(i32 noundef %3) #2
switch i32 %4, label %11 [
i32 129, label %5
i32 128, label %7
]
5: ; preds = %2
%6 = tail call i32 @XEXP(i32 noundef %3, i32 noundef 0) #2
br label %2
7: ; preds = %2
%8 = tail call i32 @XINT(i32 noundef %3, i32 noundef 1) #2
%9 = load i32, ptr @UNSPEC_TLS, align 4, !tbaa !5
%10 = icmp eq i32 %8, %9
br i1 %10, label %12, label %11
11: ; preds = %2, %7
br label %12
12: ; preds = %7, %11
%13 = phi i32 [ 0, %11 ], [ 1, %7 ]
ret i32 %13
}
declare i32 @GET_CODE(i32 noundef) local_unnamed_addr #1
declare i32 @XEXP(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @XINT(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/config/arm/extr_arm.c_tls_mentioned_p.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/config/arm/extr_arm.c_tls_mentioned_p.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UNSPEC_TLS = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @tls_mentioned_p(i32 noundef %0) local_unnamed_addr #0 {
br label %2
2: ; preds = %5, %1
%3 = phi i32 [ %0, %1 ], [ %6, %5 ]
%4 = tail call i32 @GET_CODE(i32 noundef %3) #2
switch i32 %4, label %11 [
i32 129, label %5
i32 128, label %7
]
5: ; preds = %2
%6 = tail call i32 @XEXP(i32 noundef %3, i32 noundef 0) #2
br label %2
7: ; preds = %2
%8 = tail call i32 @XINT(i32 noundef %3, i32 noundef 1) #2
%9 = load i32, ptr @UNSPEC_TLS, align 4, !tbaa !6
%10 = icmp eq i32 %8, %9
br i1 %10, label %12, label %11
11: ; preds = %2, %7
br label %12
12: ; preds = %7, %11
%13 = phi i32 [ 0, %11 ], [ 1, %7 ]
ret i32 %13
}
declare i32 @GET_CODE(i32 noundef) local_unnamed_addr #1
declare i32 @XEXP(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @XINT(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gcc_config_arm_extr_arm.c_tls_mentioned_p |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/ehea/extr_ehea_qmr.c_ehea_create_qp.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/ehea/extr_ehea_qmr.c_ehea_create_qp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ehea_qp = type { i32, i32, i32, i32, %struct.ehea_qp_init_attr, i32, i32, ptr }
%struct.ehea_qp_init_attr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"no mem for qp\00", align 1
@H_SUCCESS = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [32 x i8] c"ehea_h_alloc_resource_qp failed\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"can't register for sq ret=%x\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"can't register for rq1 ret=%x\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"can't register for rq2 ret=%x\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"can't register for rq3 ret=%x\00", align 1
@FORCE_FREE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @ehea_create_qp(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%5 = tail call ptr @kzalloc(i32 noundef 72, i32 noundef %4) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str) #3
br label %89
9: ; preds = %3
%10 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 7
store ptr %0, ptr %10, align 8, !tbaa !9
%11 = load i32, ptr %0, align 4, !tbaa !13
%12 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 6
%13 = tail call i64 @ehea_h_alloc_resource_qp(i32 noundef %11, ptr noundef %2, i32 noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %12) #3
%14 = load i64, ptr @H_SUCCESS, align 8, !tbaa !15
%15 = icmp eq i64 %13, %14
br i1 %15, label %18, label %16
16: ; preds = %9
%17 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.1) #3
br label %87
18: ; preds = %9
%19 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 7
%20 = load i32, ptr %19, align 4, !tbaa !17
%21 = tail call i32 @map_wqe_size(i32 noundef %20) #3
%22 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 5
%23 = load i32, ptr %22, align 4, !tbaa !18
%24 = tail call i32 @map_wqe_size(i32 noundef %23) #3
%25 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 3
%26 = load i32, ptr %25, align 4, !tbaa !19
%27 = tail call i32 @map_wqe_size(i32 noundef %26) #3
%28 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 1
%29 = load i32, ptr %28, align 4, !tbaa !20
%30 = tail call i32 @map_wqe_size(i32 noundef %29) #3
%31 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 1
%32 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 8
%33 = load i32, ptr %32, align 4, !tbaa !21
%34 = load i32, ptr %19, align 4, !tbaa !17
%35 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %31, i32 noundef %33, i32 noundef %21, i32 noundef %34, ptr noundef nonnull %0, i32 noundef 0) #3
%36 = icmp eq i32 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %18
%38 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.2, i32 noundef %35) #3
br label %79
39: ; preds = %18
%40 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 2
%41 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 6
%42 = load i32, ptr %41, align 4, !tbaa !22
%43 = load i32, ptr %22, align 4, !tbaa !18
%44 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %40, i32 noundef %42, i32 noundef %24, i32 noundef %43, ptr noundef nonnull %0, i32 noundef 1) #3
%45 = icmp eq i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %39
%47 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.3, i32 noundef %44) #3
br label %77
48: ; preds = %39
%49 = load i32, ptr %2, align 4, !tbaa !23
%50 = icmp sgt i32 %49, 1
br i1 %50, label %51, label %73
51: ; preds = %48
%52 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 3
%53 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 4
%54 = load i32, ptr %53, align 4, !tbaa !24
%55 = load i32, ptr %25, align 4, !tbaa !19
%56 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %52, i32 noundef %54, i32 noundef %27, i32 noundef %55, ptr noundef nonnull %0, i32 noundef 2) #3
%57 = icmp eq i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %51
%59 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.4, i32 noundef %56) #3
br label %75
60: ; preds = %51
%61 = load i32, ptr %2, align 4, !tbaa !23
%62 = icmp sgt i32 %61, 2
br i1 %62, label %63, label %73
63: ; preds = %60
%64 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 5
%65 = getelementptr inbounds %struct.ehea_qp_init_attr, ptr %2, i64 0, i32 2
%66 = load i32, ptr %65, align 4, !tbaa !25
%67 = load i32, ptr %28, align 4, !tbaa !20
%68 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %64, i32 noundef %66, i32 noundef %30, i32 noundef %67, ptr noundef nonnull %0, i32 noundef 3) #3
%69 = icmp eq i32 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %63
%71 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.5, i32 noundef %68) #3
%72 = tail call i32 @hw_queue_dtor(ptr noundef nonnull %52) #3
br label %75
73: ; preds = %48, %63, %60
%74 = getelementptr inbounds %struct.ehea_qp, ptr %5, i64 0, i32 4
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(36) %74, ptr noundef nonnull align 4 dereferenceable(36) %2, i64 36, i1 false), !tbaa.struct !26
br label %89
75: ; preds = %70, %58
%76 = tail call i32 @hw_queue_dtor(ptr noundef nonnull %40) #3
br label %77
77: ; preds = %75, %46
%78 = tail call i32 @hw_queue_dtor(ptr noundef nonnull %31) #3
br label %79
79: ; preds = %77, %37
%80 = load i32, ptr %0, align 4, !tbaa !13
%81 = load i32, ptr %5, align 8, !tbaa !27
%82 = tail call i32 @ehea_h_disable_and_get_hea(i32 noundef %80, i32 noundef %81) #3
%83 = load i32, ptr %0, align 4, !tbaa !13
%84 = load i32, ptr %5, align 8, !tbaa !27
%85 = load i32, ptr @FORCE_FREE, align 4, !tbaa !5
%86 = tail call i32 @ehea_h_free_resource(i32 noundef %83, i32 noundef %84, i32 noundef %85) #3
br label %87
87: ; preds = %79, %16
%88 = tail call i32 @kfree(ptr noundef nonnull %5) #3
br label %89
89: ; preds = %87, %73, %7
%90 = phi ptr [ null, %87 ], [ %5, %73 ], [ null, %7 ]
ret ptr %90
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ehea_error(ptr noundef, ...) local_unnamed_addr #1
declare i64 @ehea_h_alloc_resource_qp(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @map_wqe_size(i32 noundef) local_unnamed_addr #1
declare i32 @ehea_qp_alloc_register(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @hw_queue_dtor(ptr noundef) local_unnamed_addr #1
declare i32 @ehea_h_disable_and_get_hea(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ehea_h_free_resource(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 64}
!10 = !{!"ehea_qp", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !11, i64 16, !6, i64 52, !6, i64 56, !12, i64 64}
!11 = !{!"ehea_qp_init_attr", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"ehea_adapter", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!11, !6, i64 28}
!18 = !{!11, !6, i64 20}
!19 = !{!11, !6, i64 12}
!20 = !{!11, !6, i64 4}
!21 = !{!11, !6, i64 32}
!22 = !{!11, !6, i64 24}
!23 = !{!11, !6, i64 0}
!24 = !{!11, !6, i64 16}
!25 = !{!11, !6, i64 8}
!26 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5, i64 24, i64 4, !5, i64 28, i64 4, !5, i64 32, i64 4, !5}
!27 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/ehea/extr_ehea_qmr.c_ehea_create_qp.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/ehea/extr_ehea_qmr.c_ehea_create_qp.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"no mem for qp\00", align 1
@H_SUCCESS = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [32 x i8] c"ehea_h_alloc_resource_qp failed\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"can't register for sq ret=%x\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"can't register for rq1 ret=%x\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"can't register for rq2 ret=%x\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"can't register for rq3 ret=%x\00", align 1
@FORCE_FREE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @ehea_create_qp(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%5 = tail call ptr @kzalloc(i32 noundef 72, i32 noundef %4) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str) #3
br label %89
9: ; preds = %3
%10 = getelementptr inbounds i8, ptr %5, i64 64
store ptr %0, ptr %10, align 8, !tbaa !10
%11 = load i32, ptr %0, align 4, !tbaa !14
%12 = getelementptr inbounds i8, ptr %5, i64 56
%13 = tail call i64 @ehea_h_alloc_resource_qp(i32 noundef %11, ptr noundef %2, i32 noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %12) #3
%14 = load i64, ptr @H_SUCCESS, align 8, !tbaa !16
%15 = icmp eq i64 %13, %14
br i1 %15, label %18, label %16
16: ; preds = %9
%17 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.1) #3
br label %87
18: ; preds = %9
%19 = getelementptr inbounds i8, ptr %2, i64 28
%20 = load i32, ptr %19, align 4, !tbaa !18
%21 = tail call i32 @map_wqe_size(i32 noundef %20) #3
%22 = getelementptr inbounds i8, ptr %2, i64 20
%23 = load i32, ptr %22, align 4, !tbaa !19
%24 = tail call i32 @map_wqe_size(i32 noundef %23) #3
%25 = getelementptr inbounds i8, ptr %2, i64 12
%26 = load i32, ptr %25, align 4, !tbaa !20
%27 = tail call i32 @map_wqe_size(i32 noundef %26) #3
%28 = getelementptr inbounds i8, ptr %2, i64 4
%29 = load i32, ptr %28, align 4, !tbaa !21
%30 = tail call i32 @map_wqe_size(i32 noundef %29) #3
%31 = getelementptr inbounds i8, ptr %5, i64 4
%32 = getelementptr inbounds i8, ptr %2, i64 32
%33 = load i32, ptr %32, align 4, !tbaa !22
%34 = load i32, ptr %19, align 4, !tbaa !18
%35 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %31, i32 noundef %33, i32 noundef %21, i32 noundef %34, ptr noundef nonnull %0, i32 noundef 0) #3
%36 = icmp eq i32 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %18
%38 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.2, i32 noundef %35) #3
br label %79
39: ; preds = %18
%40 = getelementptr inbounds i8, ptr %5, i64 8
%41 = getelementptr inbounds i8, ptr %2, i64 24
%42 = load i32, ptr %41, align 4, !tbaa !23
%43 = load i32, ptr %22, align 4, !tbaa !19
%44 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %40, i32 noundef %42, i32 noundef %24, i32 noundef %43, ptr noundef nonnull %0, i32 noundef 1) #3
%45 = icmp eq i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %39
%47 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.3, i32 noundef %44) #3
br label %77
48: ; preds = %39
%49 = load i32, ptr %2, align 4, !tbaa !24
%50 = icmp sgt i32 %49, 1
br i1 %50, label %51, label %73
51: ; preds = %48
%52 = getelementptr inbounds i8, ptr %5, i64 12
%53 = getelementptr inbounds i8, ptr %2, i64 16
%54 = load i32, ptr %53, align 4, !tbaa !25
%55 = load i32, ptr %25, align 4, !tbaa !20
%56 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %52, i32 noundef %54, i32 noundef %27, i32 noundef %55, ptr noundef nonnull %0, i32 noundef 2) #3
%57 = icmp eq i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %51
%59 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.4, i32 noundef %56) #3
br label %75
60: ; preds = %51
%61 = load i32, ptr %2, align 4, !tbaa !24
%62 = icmp sgt i32 %61, 2
br i1 %62, label %63, label %73
63: ; preds = %60
%64 = getelementptr inbounds i8, ptr %5, i64 52
%65 = getelementptr inbounds i8, ptr %2, i64 8
%66 = load i32, ptr %65, align 4, !tbaa !26
%67 = load i32, ptr %28, align 4, !tbaa !21
%68 = tail call i32 @ehea_qp_alloc_register(ptr noundef nonnull %5, ptr noundef nonnull %64, i32 noundef %66, i32 noundef %30, i32 noundef %67, ptr noundef nonnull %0, i32 noundef 3) #3
%69 = icmp eq i32 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %63
%71 = tail call i32 (ptr, ...) @ehea_error(ptr noundef nonnull @.str.5, i32 noundef %68) #3
%72 = tail call i32 @hw_queue_dtor(ptr noundef nonnull %52) #3
br label %75
73: ; preds = %48, %63, %60
%74 = getelementptr inbounds i8, ptr %5, i64 16
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(36) %74, ptr noundef nonnull align 4 dereferenceable(36) %2, i64 36, i1 false), !tbaa.struct !27
br label %89
75: ; preds = %70, %58
%76 = tail call i32 @hw_queue_dtor(ptr noundef nonnull %40) #3
br label %77
77: ; preds = %75, %46
%78 = tail call i32 @hw_queue_dtor(ptr noundef nonnull %31) #3
br label %79
79: ; preds = %77, %37
%80 = load i32, ptr %0, align 4, !tbaa !14
%81 = load i32, ptr %5, align 8, !tbaa !28
%82 = tail call i32 @ehea_h_disable_and_get_hea(i32 noundef %80, i32 noundef %81) #3
%83 = load i32, ptr %0, align 4, !tbaa !14
%84 = load i32, ptr %5, align 8, !tbaa !28
%85 = load i32, ptr @FORCE_FREE, align 4, !tbaa !6
%86 = tail call i32 @ehea_h_free_resource(i32 noundef %83, i32 noundef %84, i32 noundef %85) #3
br label %87
87: ; preds = %79, %16
%88 = tail call i32 @kfree(ptr noundef nonnull %5) #3
br label %89
89: ; preds = %87, %73, %7
%90 = phi ptr [ null, %87 ], [ %5, %73 ], [ null, %7 ]
ret ptr %90
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ehea_error(ptr noundef, ...) local_unnamed_addr #1
declare i64 @ehea_h_alloc_resource_qp(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @map_wqe_size(i32 noundef) local_unnamed_addr #1
declare i32 @ehea_qp_alloc_register(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @hw_queue_dtor(ptr noundef) local_unnamed_addr #1
declare i32 @ehea_h_disable_and_get_hea(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ehea_h_free_resource(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 64}
!11 = !{!"ehea_qp", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !12, i64 16, !7, i64 52, !7, i64 56, !13, i64 64}
!12 = !{!"ehea_qp_init_attr", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"ehea_adapter", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!12, !7, i64 28}
!19 = !{!12, !7, i64 20}
!20 = !{!12, !7, i64 12}
!21 = !{!12, !7, i64 4}
!22 = !{!12, !7, i64 32}
!23 = !{!12, !7, i64 24}
!24 = !{!12, !7, i64 0}
!25 = !{!12, !7, i64 16}
!26 = !{!12, !7, i64 8}
!27 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 4, !6, i64 20, i64 4, !6, i64 24, i64 4, !6, i64 28, i64 4, !6, i64 32, i64 4, !6}
!28 = !{!11, !7, i64 0}
| fastsocket_kernel_drivers_net_ehea_extr_ehea_qmr.c_ehea_create_qp |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/drivers/extr_driver_macsec_qca.c_macsec_qca_init_sockets.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/drivers/extr_driver_macsec_qca.c_macsec_qca_init_sockets.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ifreq = type { i64, i64, %struct.TYPE_4__, i32, i32 }
%struct.TYPE_4__ = type { i64, i32 }
%struct.sockaddr_ll = type { i64, i64, %struct.TYPE_4__, i32, i32 }
%struct.TYPE_3__ = type { i64, i32, i32 }
@PF_PACKET = dso_local local_unnamed_addr global i32 0, align 4
@SOCK_RAW = dso_local local_unnamed_addr global i32 0, align 4
@ETH_P_PAE = dso_local local_unnamed_addr global i32 0, align 4
@MSG_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"socket[PF_PACKET,SOCK_RAW]: %s\00", align 1
@errno = dso_local local_unnamed_addr global i32 0, align 4
@macsec_qca_handle_read = dso_local local_unnamed_addr global i32 0, align 4
@MSG_INFO = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Could not register read socket\00", align 1
@SIOCGIFINDEX = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [24 x i8] c"ioctl(SIOCGIFINDEX): %s\00", align 1
@AF_PACKET = dso_local local_unnamed_addr global i32 0, align 4
@MSG_DEBUG = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [41 x i8] c"Opening raw packet socket for ifindex %d\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"macsec_qca: bind: %s\00", align 1
@pae_group_addr = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [66 x i8] c"macsec_qca_init_sockets: Failed to add multicast group membership\00", align 1
@SIOCGIFHWADDR = dso_local local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [25 x i8] c"ioctl(SIOCGIFHWADDR): %s\00", align 1
@ARPHRD_ETHER = dso_local local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [30 x i8] c"Invalid HW-addr family 0x%04x\00", align 1
@ETH_ALEN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @macsec_qca_init_sockets], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @macsec_qca_init_sockets(ptr nocapture noundef %0, ptr noundef %1) #0 {
%3 = alloca %struct.ifreq, align 8
%4 = alloca %struct.sockaddr_ll, align 8
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #3
%5 = load i32, ptr @PF_PACKET, align 4, !tbaa !5
%6 = load i32, ptr @SOCK_RAW, align 4, !tbaa !5
%7 = load i32, ptr @ETH_P_PAE, align 4, !tbaa !5
%8 = tail call i32 @htons(i32 noundef %7) #3
%9 = tail call i64 @socket(i32 noundef %5, i32 noundef %6, i32 noundef %8) #3
store i64 %9, ptr %0, align 8, !tbaa !9
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%13 = load i32, ptr @errno, align 4, !tbaa !5
%14 = tail call i64 @strerror(i32 noundef %13) #3
%15 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %12, ptr noundef nonnull @.str, i64 noundef %14) #3
br label %93
16: ; preds = %2
%17 = load i32, ptr @macsec_qca_handle_read, align 4, !tbaa !5
%18 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 2
%19 = load i32, ptr %18, align 4, !tbaa !13
%20 = tail call i64 @eloop_register_read_sock(i64 noundef %9, i32 noundef %17, i32 noundef %19, ptr noundef null) #3
%21 = icmp eq i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %16
%23 = load i32, ptr @MSG_INFO, align 4, !tbaa !5
%24 = tail call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %23, ptr noundef nonnull @.str.1) #3
br label %93
25: ; preds = %16
%26 = call i32 @os_memset(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 40) #3
%27 = getelementptr inbounds %struct.ifreq, ptr %3, i64 0, i32 3
%28 = load i32, ptr %27, align 8, !tbaa !14
%29 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%30 = load i32, ptr %29, align 8, !tbaa !17
%31 = call i32 @os_strlcpy(i32 noundef %28, i32 noundef %30, i32 noundef 4) #3
%32 = load i64, ptr %0, align 8, !tbaa !9
%33 = load i32, ptr @SIOCGIFINDEX, align 4, !tbaa !5
%34 = call i64 @ioctl(i64 noundef %32, i32 noundef %33, ptr noundef nonnull %3) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %25
%37 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%38 = load i32, ptr @errno, align 4, !tbaa !5
%39 = call i64 @strerror(i32 noundef %38) #3
%40 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %37, ptr noundef nonnull @.str.2, i64 noundef %39) #3
br label %93
41: ; preds = %25
%42 = call i32 @os_memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 40) #3
%43 = load i32, ptr @AF_PACKET, align 4, !tbaa !5
%44 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i64 0, i32 4
store i32 %43, ptr %44, align 4, !tbaa !18
%45 = getelementptr inbounds %struct.ifreq, ptr %3, i64 0, i32 1
%46 = load i64, ptr %45, align 8, !tbaa !20
store i64 %46, ptr %4, align 8, !tbaa !21
%47 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !5
%48 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %47, ptr noundef nonnull @.str.3, i64 noundef %46) #3
%49 = load i64, ptr %0, align 8, !tbaa !9
%50 = call i64 @bind(i64 noundef %49, ptr noundef nonnull %4, i32 noundef 40) #3
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %41
%53 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%54 = load i32, ptr @errno, align 4, !tbaa !5
%55 = call i64 @strerror(i32 noundef %54) #3
%56 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %53, ptr noundef nonnull @.str.4, i64 noundef %55) #3
br label %93
57: ; preds = %41
%58 = load i64, ptr %0, align 8, !tbaa !9
%59 = load i64, ptr %45, align 8, !tbaa !20
%60 = load i32, ptr @pae_group_addr, align 4, !tbaa !5
%61 = call i64 @wired_multicast_membership(i64 noundef %58, i64 noundef %59, i32 noundef %60, i32 noundef 1) #3
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %57
%64 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%65 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %64, ptr noundef nonnull @.str.5) #3
br label %93
66: ; preds = %57
%67 = call i32 @os_memset(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 40) #3
%68 = load i32, ptr %27, align 8, !tbaa !14
%69 = load i32, ptr %29, align 8, !tbaa !17
%70 = call i32 @os_strlcpy(i32 noundef %68, i32 noundef %69, i32 noundef 4) #3
%71 = load i64, ptr %0, align 8, !tbaa !9
%72 = load i32, ptr @SIOCGIFHWADDR, align 4, !tbaa !5
%73 = call i64 @ioctl(i64 noundef %71, i32 noundef %72, ptr noundef nonnull %3) #3
%74 = icmp eq i64 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %66
%76 = load i32, ptr @MSG_ERROR, align 4, !tbaa !5
%77 = load i32, ptr @errno, align 4, !tbaa !5
%78 = call i64 @strerror(i32 noundef %77) #3
%79 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %76, ptr noundef nonnull @.str.6, i64 noundef %78) #3
br label %93
80: ; preds = %66
%81 = getelementptr inbounds %struct.ifreq, ptr %3, i64 0, i32 2
%82 = load i64, ptr %81, align 8, !tbaa !22
%83 = load i64, ptr @ARPHRD_ETHER, align 8, !tbaa !23
%84 = icmp eq i64 %82, %83
br i1 %84, label %88, label %85
85: ; preds = %80
%86 = load i32, ptr @MSG_INFO, align 4, !tbaa !5
%87 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %86, ptr noundef nonnull @.str.7, i64 noundef %82) #3
br label %93
88: ; preds = %80
%89 = getelementptr inbounds %struct.ifreq, ptr %3, i64 0, i32 2, i32 1
%90 = load i32, ptr %89, align 8, !tbaa !24
%91 = load i32, ptr @ETH_ALEN, align 4, !tbaa !5
%92 = call i32 @os_memcpy(ptr noundef %1, i32 noundef %90, i32 noundef %91) #3
br label %93
93: ; preds = %88, %85, %75, %63, %52, %36, %22, %11
%94 = phi i32 [ -1, %11 ], [ -1, %22 ], [ -1, %36 ], [ -1, %52 ], [ -1, %63 ], [ -1, %75 ], [ -1, %85 ], [ 0, %88 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #3
ret i32 %94
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @wpa_printf(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @strerror(i32 noundef) local_unnamed_addr #2
declare i64 @eloop_register_read_sock(i64 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @os_memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @os_strlcpy(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ioctl(i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @bind(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @wired_multicast_membership(i64 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @os_memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 0}
!10 = !{!"macsec_qca_data", !11, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0, !6, i64 8, !6, i64 12}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !6, i64 12}
!14 = !{!15, !6, i64 32}
!15 = !{!"ifreq", !12, i64 0, !12, i64 8, !16, i64 16, !6, i64 32, !6, i64 36}
!16 = !{!"TYPE_4__", !12, i64 0, !6, i64 8}
!17 = !{!10, !6, i64 8}
!18 = !{!19, !6, i64 36}
!19 = !{!"sockaddr_ll", !12, i64 0, !12, i64 8, !16, i64 16, !6, i64 32, !6, i64 36}
!20 = !{!15, !12, i64 8}
!21 = !{!19, !12, i64 0}
!22 = !{!15, !12, i64 16}
!23 = !{!12, !12, i64 0}
!24 = !{!15, !6, i64 24}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/drivers/extr_driver_macsec_qca.c_macsec_qca_init_sockets.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/drivers/extr_driver_macsec_qca.c_macsec_qca_init_sockets.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AF_PACKET = common local_unnamed_addr global i32 0, align 4
@ARPHRD_ETHER = common local_unnamed_addr global i64 0, align 8
@ETH_ALEN = common local_unnamed_addr global i32 0, align 4
@ETH_P_PAE = common local_unnamed_addr global i32 0, align 4
@MSG_DEBUG = common local_unnamed_addr global i32 0, align 4
@MSG_ERROR = common local_unnamed_addr global i32 0, align 4
@MSG_INFO = common local_unnamed_addr global i32 0, align 4
@PF_PACKET = common local_unnamed_addr global i32 0, align 4
@SIOCGIFHWADDR = common local_unnamed_addr global i32 0, align 4
@SIOCGIFINDEX = common local_unnamed_addr global i32 0, align 4
@SOCK_RAW = common local_unnamed_addr global i32 0, align 4
@errno = common local_unnamed_addr global i32 0, align 4
@macsec_qca_handle_read = common local_unnamed_addr global i32 0, align 4
@pae_group_addr = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @macsec_qca_init_sockets], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @macsec_qca_init_sockets(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret i32 -1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_contrib_wpa_src_drivers_extr_driver_macsec_qca.c_macsec_qca_init_sockets |
; ModuleID = 'AnghaBench/sqlcipher/mptest/extr_mptest.c_filenameTail.c'
source_filename = "AnghaBench/sqlcipher/mptest/extr_mptest.c_filenameTail.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @filenameTail], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @filenameTail(ptr noundef readonly %0) #0 {
%2 = load i8, ptr %0, align 1, !tbaa !5
%3 = icmp eq i8 %2, 0
br i1 %3, label %18, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %10, %4 ], [ 0, %1 ]
%6 = phi i8 [ %14, %4 ], [ %2, %1 ]
%7 = phi i32 [ %12, %4 ], [ 0, %1 ]
%8 = tail call i64 @isDirSep(i8 noundef signext %6) #2
%9 = icmp eq i64 %8, 0
%10 = add nuw i64 %5, 1
%11 = trunc i64 %10 to i32
%12 = select i1 %9, i32 %7, i32 %11
%13 = getelementptr inbounds i8, ptr %0, i64 %10
%14 = load i8, ptr %13, align 1, !tbaa !5
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %4, !llvm.loop !8
16: ; preds = %4
%17 = sext i32 %12 to i64
br label %18
18: ; preds = %16, %1
%19 = phi i64 [ 0, %1 ], [ %17, %16 ]
%20 = getelementptr inbounds i8, ptr %0, i64 %19
ret ptr %20
}
declare i64 @isDirSep(i8 noundef signext) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/sqlcipher/mptest/extr_mptest.c_filenameTail.c'
source_filename = "AnghaBench/sqlcipher/mptest/extr_mptest.c_filenameTail.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @filenameTail], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @filenameTail(ptr noundef readonly %0) #0 {
%2 = load i8, ptr %0, align 1, !tbaa !6
%3 = icmp eq i8 %2, 0
br i1 %3, label %18, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %10, %4 ], [ 0, %1 ]
%6 = phi i8 [ %14, %4 ], [ %2, %1 ]
%7 = phi i32 [ %12, %4 ], [ 0, %1 ]
%8 = tail call i64 @isDirSep(i8 noundef signext %6) #2
%9 = icmp eq i64 %8, 0
%10 = add nuw nsw i64 %5, 1
%11 = trunc nuw i64 %10 to i32
%12 = select i1 %9, i32 %7, i32 %11
%13 = getelementptr inbounds i8, ptr %0, i64 %10
%14 = load i8, ptr %13, align 1, !tbaa !6
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %4, !llvm.loop !9
16: ; preds = %4
%17 = sext i32 %12 to i64
br label %18
18: ; preds = %16, %1
%19 = phi i64 [ 0, %1 ], [ %17, %16 ]
%20 = getelementptr inbounds i8, ptr %0, i64 %19
ret ptr %20
}
declare i64 @isDirSep(i8 noundef signext) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| sqlcipher_mptest_extr_mptest.c_filenameTail |
; ModuleID = 'AnghaBench/freebsd/contrib/byacc/test/btyacc/extr_err_inherit4.tab.c_yydestruct.c'
source_filename = "AnghaBench/freebsd/contrib/byacc/test/btyacc/extr_err_inherit4.tab.c_yydestruct.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@psymb = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @YYDESTRUCT_DECL], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @YYDESTRUCT_DECL() #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/byacc/test/btyacc/extr_err_inherit4.tab.c_yydestruct.c'
source_filename = "AnghaBench/freebsd/contrib/byacc/test/btyacc/extr_err_inherit4.tab.c_yydestruct.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@psymb = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @YYDESTRUCT_DECL], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @YYDESTRUCT_DECL() #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_contrib_byacc_test_btyacc_extr_err_inherit4.tab.c_yydestruct |
; ModuleID = 'AnghaBench/freebsd/contrib/gcclibs/libmudflap/extr_mf-runtime.c___mf_report_leaks.c'
source_filename = "AnghaBench/freebsd/contrib/gcclibs/libmudflap/extr_mf-runtime.c___mf_report_leaks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@__MF_TYPE_HEAP = dso_local local_unnamed_addr global i32 0, align 4
@__mf_report_leaks_fn = dso_local local_unnamed_addr global i32 0, align 4
@__MF_TYPE_HEAP_I = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__mf_report_leaks], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @__mf_report_leaks() #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
store i32 0, ptr %1, align 4, !tbaa !5
%2 = load i32, ptr @__MF_TYPE_HEAP, align 4, !tbaa !5
%3 = tail call i32 @__mf_object_tree(i32 noundef %2) #3
%4 = load i32, ptr @__mf_report_leaks_fn, align 4, !tbaa !5
%5 = call i32 @mfsplay_tree_foreach(i32 noundef %3, i32 noundef %4, ptr noundef nonnull %1) #3
%6 = load i32, ptr @__MF_TYPE_HEAP_I, align 4, !tbaa !5
%7 = call i32 @__mf_object_tree(i32 noundef %6) #3
%8 = load i32, ptr @__mf_report_leaks_fn, align 4, !tbaa !5
%9 = call i32 @mfsplay_tree_foreach(i32 noundef %7, i32 noundef %8, ptr noundef nonnull %1) #3
%10 = load i32, ptr %1, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret i32 %10
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mfsplay_tree_foreach(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @__mf_object_tree(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcclibs/libmudflap/extr_mf-runtime.c___mf_report_leaks.c'
source_filename = "AnghaBench/freebsd/contrib/gcclibs/libmudflap/extr_mf-runtime.c___mf_report_leaks.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@__MF_TYPE_HEAP = common local_unnamed_addr global i32 0, align 4
@__mf_report_leaks_fn = common local_unnamed_addr global i32 0, align 4
@__MF_TYPE_HEAP_I = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__mf_report_leaks], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @__mf_report_leaks() #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
store i32 0, ptr %1, align 4, !tbaa !6
%2 = load i32, ptr @__MF_TYPE_HEAP, align 4, !tbaa !6
%3 = tail call i32 @__mf_object_tree(i32 noundef %2) #3
%4 = load i32, ptr @__mf_report_leaks_fn, align 4, !tbaa !6
%5 = call i32 @mfsplay_tree_foreach(i32 noundef %3, i32 noundef %4, ptr noundef nonnull %1) #3
%6 = load i32, ptr @__MF_TYPE_HEAP_I, align 4, !tbaa !6
%7 = call i32 @__mf_object_tree(i32 noundef %6) #3
%8 = load i32, ptr @__mf_report_leaks_fn, align 4, !tbaa !6
%9 = call i32 @mfsplay_tree_foreach(i32 noundef %7, i32 noundef %8, ptr noundef nonnull %1) #3
%10 = load i32, ptr %1, align 4, !tbaa !6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret i32 %10
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mfsplay_tree_foreach(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @__mf_object_tree(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gcclibs_libmudflap_extr_mf-runtime.c___mf_report_leaks |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/atheros/alx/extr_main.c_alx_mdio_write.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/atheros/alx/extr_main.c_alx_mdio_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@MDIO_DEVAD_NONE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @alx_mdio_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @alx_mdio_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call ptr @netdev_priv(ptr noundef %0) #2
%7 = load i32, ptr %6, align 4, !tbaa !5
%8 = icmp eq i32 %7, %1
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = load i32, ptr @EINVAL, align 4, !tbaa !11
%11 = sub nsw i32 0, %10
br label %19
12: ; preds = %5
%13 = load i32, ptr @MDIO_DEVAD_NONE, align 4, !tbaa !11
%14 = icmp eq i32 %13, %2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 @alx_write_phy_reg(ptr noundef nonnull %6, i32 noundef %3, i32 noundef %4) #2
br label %19
17: ; preds = %12
%18 = tail call i32 @alx_write_phy_ext(ptr noundef nonnull %6, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2
br label %19
19: ; preds = %17, %15, %9
%20 = phi i32 [ %11, %9 ], [ %16, %15 ], [ %18, %17 ]
ret i32 %20
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @alx_write_phy_reg(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @alx_write_phy_ext(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"alx_hw", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/atheros/alx/extr_main.c_alx_mdio_write.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/atheros/alx/extr_main.c_alx_mdio_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@MDIO_DEVAD_NONE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @alx_mdio_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @alx_mdio_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call ptr @netdev_priv(ptr noundef %0) #2
%7 = load i32, ptr %6, align 4, !tbaa !6
%8 = icmp eq i32 %7, %1
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = load i32, ptr @EINVAL, align 4, !tbaa !12
%11 = sub nsw i32 0, %10
br label %19
12: ; preds = %5
%13 = load i32, ptr @MDIO_DEVAD_NONE, align 4, !tbaa !12
%14 = icmp eq i32 %13, %2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 @alx_write_phy_reg(ptr noundef nonnull %6, i32 noundef %3, i32 noundef %4) #2
br label %19
17: ; preds = %12
%18 = tail call i32 @alx_write_phy_ext(ptr noundef nonnull %6, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2
br label %19
19: ; preds = %17, %15, %9
%20 = phi i32 [ %11, %9 ], [ %16, %15 ], [ %18, %17 ]
ret i32 %20
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @alx_write_phy_reg(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @alx_write_phy_ext(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"alx_hw", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!9, !9, i64 0}
| linux_drivers_net_ethernet_atheros_alx_extr_main.c_alx_mdio_write |
; ModuleID = 'AnghaBench/redis/deps/hiredis/extr_async.c_redisProcessCallbacks.c'
source_filename = "AnghaBench/redis/deps/hiredis/extr_async.c_redisProcessCallbacks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_23__ = type { ptr, ptr, i32, ptr, ptr }
%struct.TYPE_24__ = type { %struct.TYPE_25__, %struct.TYPE_22__ }
%struct.TYPE_25__ = type { ptr }
%struct.TYPE_22__ = type { i32, ptr, i32, i32, i32 }
%struct.TYPE_21__ = type { i64, ptr }
@REDIS_OK = dso_local local_unnamed_addr global i32 0, align 4
@REDIS_DISCONNECTING = dso_local local_unnamed_addr global i32 0, align 4
@REDIS_MONITORING = dso_local local_unnamed_addr global i32 0, align 4
@REDIS_REPLY_ERROR = dso_local local_unnamed_addr global i64 0, align 8
@REDIS_ERR_OTHER = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@REDIS_SUBSCRIBED = dso_local local_unnamed_addr global i32 0, align 4
@REDIS_FREEING = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @redisProcessCallbacks(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca %struct.TYPE_23__, align 8
%3 = alloca ptr, align 8
%4 = getelementptr inbounds %struct.TYPE_24__, ptr %0, i64 0, i32 1
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %2, i8 0, i64 40, i1 false)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
store ptr null, ptr %3, align 8, !tbaa !5
%5 = call i32 @redisGetReply(ptr noundef nonnull %4, ptr noundef nonnull %3) #4
%6 = load i32, ptr @REDIS_OK, align 4, !tbaa !9
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %106
8: ; preds = %1
%9 = getelementptr inbounds %struct.TYPE_24__, ptr %0, i64 0, i32 1, i32 1
%10 = load ptr, ptr %3, align 8, !tbaa !5
%11 = icmp eq ptr %10, null
br i1 %11, label %15, label %38
12: ; preds = %102
%13 = load ptr, ptr %3, align 8, !tbaa !5
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %38, !llvm.loop !11
15: ; preds = %12, %8
%16 = phi i32 [ %5, %8 ], [ %103, %12 ]
%17 = load i32, ptr %4, align 8, !tbaa !13
%18 = load i32, ptr @REDIS_DISCONNECTING, align 4, !tbaa !9
%19 = and i32 %18, %17
%20 = icmp eq i32 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %15
%22 = getelementptr inbounds %struct.TYPE_24__, ptr %0, i64 0, i32 1, i32 4
%23 = load i32, ptr %22, align 8, !tbaa !15
%24 = call i64 @sdslen(i32 noundef %23) #4
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load ptr, ptr %0, align 8, !tbaa !16
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @__redisAsyncDisconnect(ptr noundef nonnull %0) #4
br label %112
31: ; preds = %26, %21, %15
%32 = load i32, ptr %4, align 8, !tbaa !13
%33 = load i32, ptr @REDIS_MONITORING, align 4, !tbaa !9
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %106, label %36
36: ; preds = %31
%37 = call i32 @__redisPushCallback(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
br label %106
38: ; preds = %8, %12
%39 = call i32 @__redisShiftCallback(ptr noundef %0, ptr noundef nonnull %2) #4
%40 = load i32, ptr @REDIS_OK, align 4, !tbaa !9
%41 = icmp eq i32 %39, %40
br i1 %41, label %79, label %42
42: ; preds = %38
%43 = load ptr, ptr %3, align 8, !tbaa !5
%44 = load i64, ptr %43, align 8, !tbaa !19
%45 = load i64, ptr @REDIS_REPLY_ERROR, align 8, !tbaa !22
%46 = icmp eq i64 %44, %45
br i1 %46, label %47, label %61
47: ; preds = %42
%48 = load i32, ptr @REDIS_ERR_OTHER, align 4, !tbaa !9
%49 = getelementptr inbounds %struct.TYPE_24__, ptr %0, i64 0, i32 1, i32 3
store i32 %48, ptr %49, align 4, !tbaa !23
%50 = getelementptr inbounds %struct.TYPE_24__, ptr %0, i64 0, i32 1, i32 2
%51 = load i32, ptr %50, align 8, !tbaa !24
%52 = getelementptr inbounds %struct.TYPE_21__, ptr %43, i64 0, i32 1
%53 = load ptr, ptr %52, align 8, !tbaa !25
%54 = call i32 @snprintf(i32 noundef %51, i32 noundef 4, ptr noundef nonnull @.str, ptr noundef %53) #4
%55 = load ptr, ptr %9, align 8, !tbaa !26
%56 = load ptr, ptr %55, align 8, !tbaa !27
%57 = load ptr, ptr %56, align 8, !tbaa !29
%58 = load ptr, ptr %3, align 8, !tbaa !5
%59 = call i32 %57(ptr noundef %58) #4
%60 = call i32 @__redisAsyncDisconnect(ptr noundef %0) #4
br label %112
61: ; preds = %42
%62 = load i32, ptr %4, align 8, !tbaa !13
%63 = load i32, ptr @REDIS_SUBSCRIBED, align 4, !tbaa !9
%64 = and i32 %63, %62
%65 = icmp ne i32 %64, 0
%66 = load i32, ptr @REDIS_MONITORING, align 4
%67 = and i32 %66, %62
%68 = icmp ne i32 %67, 0
%69 = select i1 %65, i1 true, i1 %68
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 noundef %70) #4
%72 = load i32, ptr %4, align 8, !tbaa !13
%73 = load i32, ptr @REDIS_SUBSCRIBED, align 4, !tbaa !9
%74 = and i32 %73, %72
%75 = icmp eq i32 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %61
%77 = load ptr, ptr %3, align 8, !tbaa !5
%78 = call i32 @__redisGetSubscribeCallback(ptr noundef nonnull %0, ptr noundef %77, ptr noundef nonnull %2) #4
br label %79
79: ; preds = %61, %76, %38
%80 = load ptr, ptr %2, align 8, !tbaa !31
%81 = icmp eq ptr %80, null
br i1 %81, label %96, label %82
82: ; preds = %79
%83 = load ptr, ptr %3, align 8, !tbaa !5
%84 = call i32 @__redisRunCallback(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %83) #4
%85 = load ptr, ptr %9, align 8, !tbaa !26
%86 = load ptr, ptr %85, align 8, !tbaa !27
%87 = load ptr, ptr %86, align 8, !tbaa !29
%88 = load ptr, ptr %3, align 8, !tbaa !5
%89 = call i32 %87(ptr noundef %88) #4
%90 = load i32, ptr %4, align 8, !tbaa !13
%91 = load i32, ptr @REDIS_FREEING, align 4, !tbaa !9
%92 = and i32 %91, %90
%93 = icmp eq i32 %92, 0
br i1 %93, label %102, label %94
94: ; preds = %82
%95 = call i32 @__redisAsyncFree(ptr noundef nonnull %0) #4
br label %112
96: ; preds = %79
%97 = load ptr, ptr %9, align 8, !tbaa !26
%98 = load ptr, ptr %97, align 8, !tbaa !27
%99 = load ptr, ptr %98, align 8, !tbaa !29
%100 = load ptr, ptr %3, align 8, !tbaa !5
%101 = call i32 %99(ptr noundef %100) #4
br label %102
102: ; preds = %82, %96
%103 = call i32 @redisGetReply(ptr noundef nonnull %4, ptr noundef nonnull %3) #4
%104 = load i32, ptr @REDIS_OK, align 4, !tbaa !9
%105 = icmp eq i32 %103, %104
br i1 %105, label %12, label %106, !llvm.loop !11
106: ; preds = %102, %1, %31, %36
%107 = phi i32 [ %16, %31 ], [ %16, %36 ], [ %5, %1 ], [ %103, %102 ]
%108 = load i32, ptr @REDIS_OK, align 4, !tbaa !9
%109 = icmp eq i32 %107, %108
br i1 %109, label %112, label %110
110: ; preds = %106
%111 = call i32 @__redisAsyncDisconnect(ptr noundef %0) #4
br label %112
112: ; preds = %106, %110, %94, %47, %29
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @redisGetReply(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i64 @sdslen(i32 noundef) local_unnamed_addr #3
declare i32 @__redisAsyncDisconnect(ptr noundef) local_unnamed_addr #3
declare i32 @__redisPushCallback(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @__redisShiftCallback(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @snprintf(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @assert(i32 noundef) local_unnamed_addr #3
declare i32 @__redisGetSubscribeCallback(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @__redisRunCallback(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @__redisAsyncFree(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"TYPE_22__", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!15 = !{!14, !10, i64 24}
!16 = !{!17, !6, i64 0}
!17 = !{!"TYPE_24__", !18, i64 0, !14, i64 8}
!18 = !{!"TYPE_25__", !6, i64 0}
!19 = !{!20, !21, i64 0}
!20 = !{!"TYPE_21__", !21, i64 0, !6, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = !{!21, !21, i64 0}
!23 = !{!14, !10, i64 20}
!24 = !{!14, !10, i64 16}
!25 = !{!20, !6, i64 8}
!26 = !{!14, !6, i64 8}
!27 = !{!28, !6, i64 0}
!28 = !{!"TYPE_20__", !6, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"TYPE_19__", !6, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"TYPE_23__", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 32}
| ; ModuleID = 'AnghaBench/redis/deps/hiredis/extr_async.c_redisProcessCallbacks.c'
source_filename = "AnghaBench/redis/deps/hiredis/extr_async.c_redisProcessCallbacks.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_23__ = type { ptr, ptr, i32, ptr, ptr }
@REDIS_OK = common local_unnamed_addr global i32 0, align 4
@REDIS_DISCONNECTING = common local_unnamed_addr global i32 0, align 4
@REDIS_MONITORING = common local_unnamed_addr global i32 0, align 4
@REDIS_REPLY_ERROR = common local_unnamed_addr global i64 0, align 8
@REDIS_ERR_OTHER = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@REDIS_SUBSCRIBED = common local_unnamed_addr global i32 0, align 4
@REDIS_FREEING = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @redisProcessCallbacks(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca %struct.TYPE_23__, align 8
%3 = alloca ptr, align 8
%4 = getelementptr inbounds i8, ptr %0, i64 8
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %2, i8 0, i64 40, i1 false)
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
store ptr null, ptr %3, align 8, !tbaa !6
%5 = call i32 @redisGetReply(ptr noundef nonnull %4, ptr noundef nonnull %3) #4
%6 = load i32, ptr @REDIS_OK, align 4, !tbaa !10
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %106
8: ; preds = %1
%9 = getelementptr inbounds i8, ptr %0, i64 16
%10 = load ptr, ptr %3, align 8, !tbaa !6
%11 = icmp eq ptr %10, null
br i1 %11, label %15, label %38
12: ; preds = %102
%13 = load ptr, ptr %3, align 8, !tbaa !6
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %38, !llvm.loop !12
15: ; preds = %12, %8
%16 = phi i32 [ %5, %8 ], [ %103, %12 ]
%17 = load i32, ptr %4, align 8, !tbaa !14
%18 = load i32, ptr @REDIS_DISCONNECTING, align 4, !tbaa !10
%19 = and i32 %18, %17
%20 = icmp eq i32 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %15
%22 = getelementptr inbounds i8, ptr %0, i64 32
%23 = load i32, ptr %22, align 8, !tbaa !16
%24 = call i64 @sdslen(i32 noundef %23) #4
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load ptr, ptr %0, align 8, !tbaa !17
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @__redisAsyncDisconnect(ptr noundef nonnull %0) #4
br label %112
31: ; preds = %26, %21, %15
%32 = load i32, ptr %4, align 8, !tbaa !14
%33 = load i32, ptr @REDIS_MONITORING, align 4, !tbaa !10
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %106, label %36
36: ; preds = %31
%37 = call i32 @__redisPushCallback(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
br label %106
38: ; preds = %8, %12
%39 = call i32 @__redisShiftCallback(ptr noundef %0, ptr noundef nonnull %2) #4
%40 = load i32, ptr @REDIS_OK, align 4, !tbaa !10
%41 = icmp eq i32 %39, %40
br i1 %41, label %79, label %42
42: ; preds = %38
%43 = load ptr, ptr %3, align 8, !tbaa !6
%44 = load i64, ptr %43, align 8, !tbaa !20
%45 = load i64, ptr @REDIS_REPLY_ERROR, align 8, !tbaa !23
%46 = icmp eq i64 %44, %45
br i1 %46, label %47, label %61
47: ; preds = %42
%48 = load i32, ptr @REDIS_ERR_OTHER, align 4, !tbaa !10
%49 = getelementptr inbounds i8, ptr %0, i64 28
store i32 %48, ptr %49, align 4, !tbaa !24
%50 = getelementptr inbounds i8, ptr %0, i64 24
%51 = load i32, ptr %50, align 8, !tbaa !25
%52 = getelementptr inbounds i8, ptr %43, i64 8
%53 = load ptr, ptr %52, align 8, !tbaa !26
%54 = call i32 @snprintf(i32 noundef %51, i32 noundef 4, ptr noundef nonnull @.str, ptr noundef %53) #4
%55 = load ptr, ptr %9, align 8, !tbaa !27
%56 = load ptr, ptr %55, align 8, !tbaa !28
%57 = load ptr, ptr %56, align 8, !tbaa !30
%58 = load ptr, ptr %3, align 8, !tbaa !6
%59 = call i32 %57(ptr noundef %58) #4
%60 = call i32 @__redisAsyncDisconnect(ptr noundef %0) #4
br label %112
61: ; preds = %42
%62 = load i32, ptr %4, align 8, !tbaa !14
%63 = load i32, ptr @REDIS_SUBSCRIBED, align 4, !tbaa !10
%64 = and i32 %63, %62
%65 = icmp ne i32 %64, 0
%66 = load i32, ptr @REDIS_MONITORING, align 4
%67 = and i32 %66, %62
%68 = icmp ne i32 %67, 0
%69 = select i1 %65, i1 true, i1 %68
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 noundef %70) #4
%72 = load i32, ptr %4, align 8, !tbaa !14
%73 = load i32, ptr @REDIS_SUBSCRIBED, align 4, !tbaa !10
%74 = and i32 %73, %72
%75 = icmp eq i32 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %61
%77 = load ptr, ptr %3, align 8, !tbaa !6
%78 = call i32 @__redisGetSubscribeCallback(ptr noundef nonnull %0, ptr noundef %77, ptr noundef nonnull %2) #4
br label %79
79: ; preds = %61, %76, %38
%80 = load ptr, ptr %2, align 8, !tbaa !32
%81 = icmp eq ptr %80, null
br i1 %81, label %96, label %82
82: ; preds = %79
%83 = load ptr, ptr %3, align 8, !tbaa !6
%84 = call i32 @__redisRunCallback(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %83) #4
%85 = load ptr, ptr %9, align 8, !tbaa !27
%86 = load ptr, ptr %85, align 8, !tbaa !28
%87 = load ptr, ptr %86, align 8, !tbaa !30
%88 = load ptr, ptr %3, align 8, !tbaa !6
%89 = call i32 %87(ptr noundef %88) #4
%90 = load i32, ptr %4, align 8, !tbaa !14
%91 = load i32, ptr @REDIS_FREEING, align 4, !tbaa !10
%92 = and i32 %91, %90
%93 = icmp eq i32 %92, 0
br i1 %93, label %102, label %94
94: ; preds = %82
%95 = call i32 @__redisAsyncFree(ptr noundef nonnull %0) #4
br label %112
96: ; preds = %79
%97 = load ptr, ptr %9, align 8, !tbaa !27
%98 = load ptr, ptr %97, align 8, !tbaa !28
%99 = load ptr, ptr %98, align 8, !tbaa !30
%100 = load ptr, ptr %3, align 8, !tbaa !6
%101 = call i32 %99(ptr noundef %100) #4
br label %102
102: ; preds = %82, %96
%103 = call i32 @redisGetReply(ptr noundef nonnull %4, ptr noundef nonnull %3) #4
%104 = load i32, ptr @REDIS_OK, align 4, !tbaa !10
%105 = icmp eq i32 %103, %104
br i1 %105, label %12, label %106, !llvm.loop !12
106: ; preds = %102, %1, %31, %36
%107 = phi i32 [ %16, %31 ], [ %16, %36 ], [ %5, %1 ], [ %103, %102 ]
%108 = load i32, ptr @REDIS_OK, align 4, !tbaa !10
%109 = icmp eq i32 %107, %108
br i1 %109, label %112, label %110
110: ; preds = %106
%111 = call i32 @__redisAsyncDisconnect(ptr noundef %0) #4
br label %112
112: ; preds = %106, %110, %94, %47, %29
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @redisGetReply(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i64 @sdslen(i32 noundef) local_unnamed_addr #3
declare i32 @__redisAsyncDisconnect(ptr noundef) local_unnamed_addr #3
declare i32 @__redisPushCallback(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @__redisShiftCallback(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @snprintf(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @assert(i32 noundef) local_unnamed_addr #3
declare i32 @__redisGetSubscribeCallback(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @__redisRunCallback(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @__redisAsyncFree(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_22__", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!16 = !{!15, !11, i64 24}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_24__", !19, i64 0, !15, i64 8}
!19 = !{!"TYPE_25__", !7, i64 0}
!20 = !{!21, !22, i64 0}
!21 = !{!"TYPE_21__", !22, i64 0, !7, i64 8}
!22 = !{!"long", !8, i64 0}
!23 = !{!22, !22, i64 0}
!24 = !{!15, !11, i64 20}
!25 = !{!15, !11, i64 16}
!26 = !{!21, !7, i64 8}
!27 = !{!15, !7, i64 8}
!28 = !{!29, !7, i64 0}
!29 = !{!"TYPE_20__", !7, i64 0}
!30 = !{!31, !7, i64 0}
!31 = !{!"TYPE_19__", !7, i64 0}
!32 = !{!33, !7, i64 0}
!33 = !{!"TYPE_23__", !7, i64 0, !7, i64 8, !11, i64 16, !7, i64 24, !7, i64 32}
| redis_deps_hiredis_extr_async.c_redisProcessCallbacks |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ocfs2/extr_xattr.c_ocfs2_xattr_get.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ocfs2/extr_xattr.c_ocfs2_xattr_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @ocfs2_xattr_get], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ocfs2_xattr_get(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
store ptr null, ptr %6, align 8, !tbaa !5
%7 = call i32 @ocfs2_inode_lock(ptr noundef %0, ptr noundef nonnull %6, i32 noundef 0) #3
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = call i32 @mlog_errno(i32 noundef %7) #3
br label %17
11: ; preds = %5
%12 = load ptr, ptr %6, align 8, !tbaa !5
%13 = call i32 @ocfs2_xattr_get_nolock(ptr noundef %0, ptr noundef %12, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #3
%14 = call i32 @ocfs2_inode_unlock(ptr noundef %0, i32 noundef 0) #3
%15 = load ptr, ptr %6, align 8, !tbaa !5
%16 = call i32 @brelse(ptr noundef %15) #3
br label %17
17: ; preds = %11, %9
%18 = phi i32 [ %7, %9 ], [ %13, %11 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret i32 %18
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ocfs2_inode_lock(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mlog_errno(i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_xattr_get_nolock(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ocfs2_inode_unlock(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @brelse(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ocfs2/extr_xattr.c_ocfs2_xattr_get.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ocfs2/extr_xattr.c_ocfs2_xattr_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ocfs2_xattr_get], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ocfs2_xattr_get(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
store ptr null, ptr %6, align 8, !tbaa !6
%7 = call i32 @ocfs2_inode_lock(ptr noundef %0, ptr noundef nonnull %6, i32 noundef 0) #3
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = call i32 @mlog_errno(i32 noundef %7) #3
br label %17
11: ; preds = %5
%12 = load ptr, ptr %6, align 8, !tbaa !6
%13 = call i32 @ocfs2_xattr_get_nolock(ptr noundef %0, ptr noundef %12, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #3
%14 = call i32 @ocfs2_inode_unlock(ptr noundef %0, i32 noundef 0) #3
%15 = load ptr, ptr %6, align 8, !tbaa !6
%16 = call i32 @brelse(ptr noundef %15) #3
br label %17
17: ; preds = %11, %9
%18 = phi i32 [ %7, %9 ], [ %13, %11 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret i32 %18
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ocfs2_inode_lock(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mlog_errno(i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_xattr_get_nolock(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ocfs2_inode_unlock(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @brelse(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_fs_ocfs2_extr_xattr.c_ocfs2_xattr_get |
; ModuleID = 'AnghaBench/ZipArchive/SSZipArchive/minizip/extr_mz_zip.c_mz_zip_ntfs_to_unix_time.c'
source_filename = "AnghaBench/ZipArchive/SSZipArchive/minizip/extr_mz_zip.c_mz_zip_ntfs_to_unix_time.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MZ_OK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable
define dso_local i32 @mz_zip_ntfs_to_unix_time(i64 noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
%3 = add nsw i64 %0, -116444736000000000
%4 = sdiv i64 %3, 10000000
store i64 %4, ptr %1, align 8, !tbaa !5
%5 = load i32, ptr @MZ_OK, align 4, !tbaa !9
ret i32 %5
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/ZipArchive/SSZipArchive/minizip/extr_mz_zip.c_mz_zip_ntfs_to_unix_time.c'
source_filename = "AnghaBench/ZipArchive/SSZipArchive/minizip/extr_mz_zip.c_mz_zip_ntfs_to_unix_time.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MZ_OK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable(sync)
define i32 @mz_zip_ntfs_to_unix_time(i64 noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
%3 = add nsw i64 %0, -116444736000000000
%4 = sdiv i64 %3, 10000000
store i64 %4, ptr %1, align 8, !tbaa !6
%5 = load i32, ptr @MZ_OK, align 4, !tbaa !10
ret i32 %5
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| ZipArchive_SSZipArchive_minizip_extr_mz_zip.c_mz_zip_ntfs_to_unix_time |
; ModuleID = 'AnghaBench/linux/drivers/staging/qlge/extr_qlge_main.c_ql_sem_unlock.c'
source_filename = "AnghaBench/linux/drivers/staging/qlge/extr_qlge_main.c_ql_sem_unlock.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SEM = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @ql_sem_unlock(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @SEM, align 4, !tbaa !5
%4 = tail call i32 @ql_write32(ptr noundef %0, i32 noundef %3, i32 noundef %1) #2
%5 = load i32, ptr @SEM, align 4, !tbaa !5
%6 = tail call i32 @ql_read32(ptr noundef %0, i32 noundef %5) #2
ret void
}
declare i32 @ql_write32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ql_read32(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/qlge/extr_qlge_main.c_ql_sem_unlock.c'
source_filename = "AnghaBench/linux/drivers/staging/qlge/extr_qlge_main.c_ql_sem_unlock.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SEM = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @ql_sem_unlock(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @SEM, align 4, !tbaa !6
%4 = tail call i32 @ql_write32(ptr noundef %0, i32 noundef %3, i32 noundef %1) #2
%5 = load i32, ptr @SEM, align 4, !tbaa !6
%6 = tail call i32 @ql_read32(ptr noundef %0, i32 noundef %5) #2
ret void
}
declare i32 @ql_write32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ql_read32(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_staging_qlge_extr_qlge_main.c_ql_sem_unlock |
; ModuleID = 'AnghaBench/linux/tools/perf/util/extr_symbol.c_validate_kcore_modules.c'
source_filename = "AnghaBench/linux/tools/perf/util/extr_symbol.c_validate_kcore_modules.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PATH_MAX = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"modules\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @validate_kcore_modules], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @validate_kcore_modules(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @map__kmaps(ptr noundef %1) #2
%4 = load i32, ptr @PATH_MAX, align 4, !tbaa !5
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5, align 16
%7 = icmp eq ptr %3, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @EINVAL, align 4, !tbaa !5
%10 = sub nsw i32 0, %9
br label %23
11: ; preds = %2
%12 = call i32 @filename_from_kallsyms_filename(ptr noundef nonnull %6, ptr noundef nonnull @.str, ptr noundef %0) #2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, ptr @EINVAL, align 4, !tbaa !5
%16 = sub nsw i32 0, %15
br label %23
17: ; preds = %11
%18 = call i64 @do_validate_kcore_modules(ptr noundef nonnull %6, ptr noundef nonnull %3) #2
%19 = icmp eq i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, ptr @EINVAL, align 4, !tbaa !5
%22 = sub nsw i32 0, %21
br label %23
23: ; preds = %17, %20, %14, %8
%24 = phi i32 [ %22, %20 ], [ %16, %14 ], [ %10, %8 ], [ 0, %17 ]
ret i32 %24
}
declare ptr @map__kmaps(ptr noundef) local_unnamed_addr #1
declare i32 @filename_from_kallsyms_filename(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @do_validate_kcore_modules(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/tools/perf/util/extr_symbol.c_validate_kcore_modules.c'
source_filename = "AnghaBench/linux/tools/perf/util/extr_symbol.c_validate_kcore_modules.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PATH_MAX = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"modules\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @validate_kcore_modules], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @validate_kcore_modules(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @map__kmaps(ptr noundef %1) #2
%4 = load i32, ptr @PATH_MAX, align 4, !tbaa !6
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5, align 1
%7 = icmp eq ptr %3, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @EINVAL, align 4, !tbaa !6
%10 = sub nsw i32 0, %9
br label %23
11: ; preds = %2
%12 = call i32 @filename_from_kallsyms_filename(ptr noundef nonnull %6, ptr noundef nonnull @.str, ptr noundef %0) #2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, ptr @EINVAL, align 4, !tbaa !6
%16 = sub nsw i32 0, %15
br label %23
17: ; preds = %11
%18 = call i64 @do_validate_kcore_modules(ptr noundef nonnull %6, ptr noundef nonnull %3) #2
%19 = icmp eq i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, ptr @EINVAL, align 4, !tbaa !6
%22 = sub nsw i32 0, %21
br label %23
23: ; preds = %17, %20, %14, %8
%24 = phi i32 [ %22, %20 ], [ %16, %14 ], [ %10, %8 ], [ 0, %17 ]
ret i32 %24
}
declare ptr @map__kmaps(ptr noundef) local_unnamed_addr #1
declare i32 @filename_from_kallsyms_filename(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @do_validate_kcore_modules(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_tools_perf_util_extr_symbol.c_validate_kcore_modules |
; ModuleID = 'AnghaBench/sumatrapdf/ext/mujs/extr_jsparse.c_postfix.c'
source_filename = "AnghaBench/sumatrapdf/ext/mujs/extr_jsparse.c_postfix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i32, i32 }
@TK_INC = dso_local local_unnamed_addr global i32 0, align 4
@POSTINC = dso_local local_unnamed_addr global i32 0, align 4
@TK_DEC = dso_local local_unnamed_addr global i32 0, align 4
@POSTDEC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @postfix], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @postfix(ptr noundef %0) #0 {
%2 = tail call ptr @callexp(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = load i32, ptr @TK_INC, align 4, !tbaa !10
%8 = tail call i64 @jsP_accept(ptr noundef nonnull %0, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i32, ptr %3, align 4, !tbaa !5
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i32, ptr @TK_DEC, align 4, !tbaa !10
%15 = tail call i64 @jsP_accept(ptr noundef nonnull %0, i32 noundef %14) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %13, %6
%18 = phi ptr [ @POSTINC, %6 ], [ @POSTDEC, %13 ]
%19 = load i32, ptr %18, align 4, !tbaa !10
%20 = tail call ptr @EXP1(i32 noundef %19, ptr noundef %2) #2
br label %21
21: ; preds = %17, %1, %10, %13
%22 = phi ptr [ %2, %13 ], [ %2, %10 ], [ %2, %1 ], [ %20, %17 ]
ret ptr %22
}
declare ptr @callexp(ptr noundef) local_unnamed_addr #1
declare i64 @jsP_accept(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @EXP1(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"TYPE_5__", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/sumatrapdf/ext/mujs/extr_jsparse.c_postfix.c'
source_filename = "AnghaBench/sumatrapdf/ext/mujs/extr_jsparse.c_postfix.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TK_INC = common local_unnamed_addr global i32 0, align 4
@POSTINC = common local_unnamed_addr global i32 0, align 4
@TK_DEC = common local_unnamed_addr global i32 0, align 4
@POSTDEC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @postfix], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @postfix(ptr noundef %0) #0 {
%2 = tail call ptr @callexp(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = load i32, ptr @TK_INC, align 4, !tbaa !11
%8 = tail call i64 @jsP_accept(ptr noundef nonnull %0, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load i32, ptr %3, align 4, !tbaa !6
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i32, ptr @TK_DEC, align 4, !tbaa !11
%15 = tail call i64 @jsP_accept(ptr noundef nonnull %0, i32 noundef %14) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %13, %6
%18 = phi ptr [ @POSTINC, %6 ], [ @POSTDEC, %13 ]
%19 = load i32, ptr %18, align 4, !tbaa !11
%20 = tail call ptr @EXP1(i32 noundef %19, ptr noundef %2) #2
br label %21
21: ; preds = %17, %1, %10, %13
%22 = phi ptr [ %2, %13 ], [ %2, %10 ], [ %2, %1 ], [ %20, %17 ]
ret ptr %22
}
declare ptr @callexp(ptr noundef) local_unnamed_addr #1
declare i64 @jsP_accept(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @EXP1(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"TYPE_5__", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| sumatrapdf_ext_mujs_extr_jsparse.c_postfix |
; ModuleID = 'AnghaBench/linux/drivers/media/usb/ttusb-budget/extr_dvb-ttusb-budget.c_alps_stv0299_set_symbol_rate.c'
source_filename = "AnghaBench/linux/drivers/media/usb/ttusb-budget/extr_dvb-ttusb-budget.c_alps_stv0299_set_symbol_rate.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @alps_stv0299_set_symbol_rate], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @alps_stv0299_set_symbol_rate(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = icmp slt i32 %1, 1500000
br i1 %4, label %17, label %5
5: ; preds = %3
%6 = icmp ult i32 %1, 3000000
br i1 %6, label %17, label %7
7: ; preds = %5
%8 = icmp ult i32 %1, 7000000
br i1 %8, label %17, label %9
9: ; preds = %7
%10 = icmp ult i32 %1, 14000000
br i1 %10, label %17, label %11
11: ; preds = %9
%12 = icmp ult i32 %1, 30000000
br i1 %12, label %17, label %13
13: ; preds = %11
%14 = icmp ult i32 %1, 45000000
%15 = select i1 %14, i32 180, i32 0
%16 = select i1 %14, i32 81, i32 0
br label %17
17: ; preds = %13, %11, %9, %7, %5, %3
%18 = phi i32 [ 183, %3 ], [ 183, %5 ], [ 183, %7 ], [ 183, %9 ], [ 182, %11 ], [ %15, %13 ]
%19 = phi i32 [ 71, %3 ], [ 75, %5 ], [ 79, %7 ], [ 83, %9 ], [ 83, %11 ], [ %16, %13 ]
%20 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 19, i32 noundef %18) #2
%21 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 20, i32 noundef %19) #2
%22 = lshr i32 %2, 16
%23 = and i32 %22, 255
%24 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 31, i32 noundef %23) #2
%25 = lshr i32 %2, 8
%26 = and i32 %25, 255
%27 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 32, i32 noundef %26) #2
%28 = and i32 %2, 240
%29 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 33, i32 noundef %28) #2
ret i32 0
}
declare i32 @stv0299_writereg(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/media/usb/ttusb-budget/extr_dvb-ttusb-budget.c_alps_stv0299_set_symbol_rate.c'
source_filename = "AnghaBench/linux/drivers/media/usb/ttusb-budget/extr_dvb-ttusb-budget.c_alps_stv0299_set_symbol_rate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @alps_stv0299_set_symbol_rate], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @alps_stv0299_set_symbol_rate(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = icmp slt i32 %1, 1500000
br i1 %4, label %17, label %5
5: ; preds = %3
%6 = icmp ult i32 %1, 3000000
br i1 %6, label %17, label %7
7: ; preds = %5
%8 = icmp ult i32 %1, 7000000
br i1 %8, label %17, label %9
9: ; preds = %7
%10 = icmp ult i32 %1, 14000000
br i1 %10, label %17, label %11
11: ; preds = %9
%12 = icmp ult i32 %1, 30000000
br i1 %12, label %17, label %13
13: ; preds = %11
%14 = icmp ult i32 %1, 45000000
%15 = select i1 %14, i32 180, i32 0
%16 = select i1 %14, i32 81, i32 0
br label %17
17: ; preds = %13, %11, %9, %7, %5, %3
%18 = phi i32 [ 183, %3 ], [ 183, %5 ], [ 183, %7 ], [ 183, %9 ], [ 182, %11 ], [ %15, %13 ]
%19 = phi i32 [ 71, %3 ], [ 75, %5 ], [ 79, %7 ], [ 83, %9 ], [ 83, %11 ], [ %16, %13 ]
%20 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 19, i32 noundef %18) #2
%21 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 20, i32 noundef %19) #2
%22 = lshr i32 %2, 16
%23 = and i32 %22, 255
%24 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 31, i32 noundef %23) #2
%25 = lshr i32 %2, 8
%26 = and i32 %25, 255
%27 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 32, i32 noundef %26) #2
%28 = and i32 %2, 240
%29 = tail call i32 @stv0299_writereg(ptr noundef %0, i32 noundef 33, i32 noundef %28) #2
ret i32 0
}
declare i32 @stv0299_writereg(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_media_usb_ttusb-budget_extr_dvb-ttusb-budget.c_alps_stv0299_set_symbol_rate |
; ModuleID = 'AnghaBench/tig/src/extr_options.c_set_option.c'
source_filename = "AnghaBench/tig/src/extr_options.c_set_option.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"color\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"set\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"source\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Unknown option command: %s\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @set_option(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(6) @.str)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @option_color_command(i32 noundef %1, ptr noundef %2) #3
br label %25
8: ; preds = %3
%9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(4) @.str.1)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 @option_set_command(i32 noundef %1, ptr noundef %2) #3
br label %25
13: ; preds = %8
%14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(5) @.str.2)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 @option_bind_command(i32 noundef %1, ptr noundef %2) #3
br label %25
18: ; preds = %13
%19 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(7) @.str.3)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @option_source_command(i32 noundef %1, ptr noundef %2) #3
br label %25
23: ; preds = %18
%24 = tail call i32 @error(ptr noundef nonnull @.str.4, ptr noundef %0) #3
br label %25
25: ; preds = %23, %21, %16, %11, %6
%26 = phi i32 [ %24, %23 ], [ %22, %21 ], [ %17, %16 ], [ %12, %11 ], [ %7, %6 ]
ret i32 %26
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
declare i32 @option_color_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @option_set_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @option_bind_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @option_source_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @error(ptr noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/tig/src/extr_options.c_set_option.c'
source_filename = "AnghaBench/tig/src/extr_options.c_set_option.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [6 x i8] c"color\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"set\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"source\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Unknown option command: %s\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @set_option(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(6) @.str)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @option_color_command(i32 noundef %1, ptr noundef %2) #3
br label %25
8: ; preds = %3
%9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(4) @.str.1)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 @option_set_command(i32 noundef %1, ptr noundef %2) #3
br label %25
13: ; preds = %8
%14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(5) @.str.2)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 @option_bind_command(i32 noundef %1, ptr noundef %2) #3
br label %25
18: ; preds = %13
%19 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(7) @.str.3)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @option_source_command(i32 noundef %1, ptr noundef %2) #3
br label %25
23: ; preds = %18
%24 = tail call i32 @error(ptr noundef nonnull @.str.4, ptr noundef %0) #3
br label %25
25: ; preds = %23, %21, %16, %11, %6
%26 = phi i32 [ %24, %23 ], [ %22, %21 ], [ %17, %16 ], [ %12, %11 ], [ %7, %6 ]
ret i32 %26
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
declare i32 @option_color_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @option_set_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @option_bind_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @option_source_command(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @error(ptr noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| tig_src_extr_options.c_set_option |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/bt8xx/extr_bttv-driver.c_bttv_streamoff.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/bt8xx/extr_bttv-driver.c_bttv_streamoff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @bttv_streamoff], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @bttv_streamoff(ptr nocapture readnone %0, ptr noundef %1, i32 %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = tail call i32 @bttv_resource(ptr noundef nonnull %1) #2
%6 = tail call i32 @bttv_queue(ptr noundef nonnull %1) #2
%7 = tail call i32 @videobuf_streamoff(i32 noundef %6) #2
%8 = icmp slt i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = tail call i32 @free_btres_lock(ptr noundef %4, ptr noundef nonnull %1, i32 noundef %5) #2
br label %11
11: ; preds = %3, %9
%12 = phi i32 [ 0, %9 ], [ %7, %3 ]
ret i32 %12
}
declare i32 @bttv_resource(ptr noundef) local_unnamed_addr #1
declare i32 @videobuf_streamoff(i32 noundef) local_unnamed_addr #1
declare i32 @bttv_queue(ptr noundef) local_unnamed_addr #1
declare i32 @free_btres_lock(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"bttv_fh", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/bt8xx/extr_bttv-driver.c_bttv_streamoff.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/bt8xx/extr_bttv-driver.c_bttv_streamoff.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @bttv_streamoff], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483648, 1) i32 @bttv_streamoff(ptr nocapture readnone %0, ptr noundef %1, i32 %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = tail call i32 @bttv_resource(ptr noundef nonnull %1) #2
%6 = tail call i32 @bttv_queue(ptr noundef nonnull %1) #2
%7 = tail call i32 @videobuf_streamoff(i32 noundef %6) #2
%8 = icmp slt i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = tail call i32 @free_btres_lock(ptr noundef %4, ptr noundef nonnull %1, i32 noundef %5) #2
br label %11
11: ; preds = %3, %9
%12 = phi i32 [ 0, %9 ], [ %7, %3 ]
ret i32 %12
}
declare i32 @bttv_resource(ptr noundef) local_unnamed_addr #1
declare i32 @videobuf_streamoff(i32 noundef) local_unnamed_addr #1
declare i32 @bttv_queue(ptr noundef) local_unnamed_addr #1
declare i32 @free_btres_lock(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"bttv_fh", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_media_video_bt8xx_extr_bttv-driver.c_bttv_streamoff |
; ModuleID = 'AnghaBench/linux/crypto/asymmetric_keys/extr_asymmetric_type.c_asymmetric_key_cmp.c'
source_filename = "AnghaBench/linux/crypto/asymmetric_keys/extr_asymmetric_type.c_asymmetric_key_cmp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@asymmetric_key_id_same = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @asymmetric_key_cmp], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @asymmetric_key_cmp(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @asymmetric_key_ids(ptr noundef %0) #2
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = load i32, ptr @asymmetric_key_id_same, align 4, !tbaa !10
%6 = tail call i32 @asymmetric_match_key_ids(ptr noundef %3, ptr noundef %4, i32 noundef %5) #2
ret i32 %6
}
declare ptr @asymmetric_key_ids(ptr noundef) local_unnamed_addr #1
declare i32 @asymmetric_match_key_ids(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"key_match_data", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/crypto/asymmetric_keys/extr_asymmetric_type.c_asymmetric_key_cmp.c'
source_filename = "AnghaBench/linux/crypto/asymmetric_keys/extr_asymmetric_type.c_asymmetric_key_cmp.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@asymmetric_key_id_same = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @asymmetric_key_cmp], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @asymmetric_key_cmp(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @asymmetric_key_ids(ptr noundef %0) #2
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = load i32, ptr @asymmetric_key_id_same, align 4, !tbaa !11
%6 = tail call i32 @asymmetric_match_key_ids(ptr noundef %3, ptr noundef %4, i32 noundef %5) #2
ret i32 %6
}
declare ptr @asymmetric_key_ids(ptr noundef) local_unnamed_addr #1
declare i32 @asymmetric_match_key_ids(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"key_match_data", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| linux_crypto_asymmetric_keys_extr_asymmetric_type.c_asymmetric_key_cmp |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_phy_n.c_b43_radio_init2055_post.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_phy_n.c_b43_radio_init2055_post.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i32, ptr }
%struct.b43_wldev = type { %struct.TYPE_4__, i32, ptr }
%struct.TYPE_3__ = type { i64, i64, i32, ptr }
%struct.ssb_sprom = type { i32, i32 }
@PCI_VENDOR_ID_BROADCOM = dso_local local_unnamed_addr global i64 0, align 8
@SSB_BOARD_CB2_4321 = dso_local local_unnamed_addr global i64 0, align 8
@B43_BFL2_RXBB_INT_REG_DIS = dso_local local_unnamed_addr global i32 0, align 4
@B2055_MASTER1 = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C1_RX_BB_REG = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_BB_REG = dso_local local_unnamed_addr global i32 0, align 4
@B2055_RRCCAL_NOPTSEL = dso_local local_unnamed_addr global i32 0, align 4
@B2055_CAL_MISC = dso_local local_unnamed_addr global i32 0, align 4
@B2055_CAL_LPOCTL = dso_local local_unnamed_addr global i32 0, align 4
@B2055_CAL_COUT2 = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"radio post init timeout\0A\00", align 1
@B2055_C1_RX_BB_LPF = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_BB_LPF = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C1_RX_BB_MIDACHP = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_BB_MIDACHP = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C1_LNA_GAINBST = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C2_LNA_GAINBST = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C1_RX_RFSPC1 = dso_local local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_RFSPC1 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @b43_radio_init2055_post], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @b43_radio_init2055_post(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.b43_wldev, ptr %0, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 3
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = load i32, ptr %7, align 4, !tbaa !16
%9 = icmp slt i32 %8, 4
br i1 %9, label %10, label %19
10: ; preds = %1
%11 = load i64, ptr %5, align 8, !tbaa !18
%12 = load i64, ptr @PCI_VENDOR_ID_BROADCOM, align 8, !tbaa !19
%13 = icmp eq i64 %11, %12
br i1 %13, label %36, label %14
14: ; preds = %10
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 1
%16 = load i64, ptr %15, align 8, !tbaa !20
%17 = load i64, ptr @SSB_BOARD_CB2_4321, align 8, !tbaa !19
%18 = icmp eq i64 %16, %17
br i1 %18, label %27, label %36
19: ; preds = %1
%20 = getelementptr inbounds %struct.ssb_sprom, ptr %7, i64 0, i32 1
%21 = load i32, ptr %20, align 4, !tbaa !21
%22 = load i32, ptr @B43_BFL2_RXBB_INT_REG_DIS, align 4, !tbaa !22
%23 = and i32 %22, %21
%24 = icmp eq i32 %23, 0
%25 = load i32, ptr @B2055_MASTER1, align 4, !tbaa !22
%26 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %25, i32 noundef 65523) #2
br i1 %24, label %33, label %41
27: ; preds = %14
%28 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 2
%29 = load i32, ptr %28, align 8, !tbaa !23
%30 = icmp sgt i32 %29, 64
%31 = load i32, ptr @B2055_MASTER1, align 4, !tbaa !22
%32 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %31, i32 noundef 65523) #2
br i1 %30, label %33, label %41
33: ; preds = %19, %27
%34 = load i32, ptr @B2055_C1_RX_BB_REG, align 4, !tbaa !22
%35 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %34, i32 noundef 127) #2
br label %36
36: ; preds = %10, %14, %33
%37 = phi ptr [ @B2055_C2_RX_BB_REG, %33 ], [ @B2055_MASTER1, %14 ], [ @B2055_MASTER1, %10 ]
%38 = phi i32 [ 127, %33 ], [ 65523, %14 ], [ 65523, %10 ]
%39 = load i32, ptr %37, align 4, !tbaa !22
%40 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %39, i32 noundef %38) #2
br label %41
41: ; preds = %36, %19, %27
%42 = load i32, ptr @B2055_RRCCAL_NOPTSEL, align 4, !tbaa !22
%43 = tail call i32 @b43_radio_maskset(ptr noundef nonnull %0, i32 noundef %42, i32 noundef 65472, i32 noundef 44) #2
%44 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !22
%45 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %44, i32 noundef 60) #2
%46 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !22
%47 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %46, i32 noundef 65470) #2
%48 = load i32, ptr @B2055_CAL_LPOCTL, align 4, !tbaa !22
%49 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %48, i32 noundef 128) #2
%50 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !22
%51 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %50, i32 noundef 1) #2
%52 = tail call i32 @msleep(i32 noundef 1) #2
%53 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !22
%54 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %53, i32 noundef 64) #2
%55 = load i32, ptr @B2055_CAL_COUT2, align 4, !tbaa !22
%56 = tail call i32 @b43_radio_wait_value(ptr noundef nonnull %0, i32 noundef %55, i32 noundef 128, i32 noundef 128, i32 noundef 10, i32 noundef 2000) #2
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %41
%59 = getelementptr inbounds %struct.b43_wldev, ptr %0, i64 0, i32 1
%60 = load i32, ptr %59, align 8, !tbaa !24
%61 = tail call i32 @b43err(i32 noundef %60, ptr noundef nonnull @.str) #2
br label %62
62: ; preds = %58, %41
%63 = load i32, ptr @B2055_CAL_LPOCTL, align 4, !tbaa !22
%64 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %63, i32 noundef 65407) #2
%65 = load i32, ptr %0, align 8, !tbaa !25
%66 = tail call i32 @b43_switch_channel(ptr noundef nonnull %0, i32 noundef %65) #2
%67 = load i32, ptr @B2055_C1_RX_BB_LPF, align 4, !tbaa !22
%68 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %67, i32 noundef 9) #2
%69 = load i32, ptr @B2055_C2_RX_BB_LPF, align 4, !tbaa !22
%70 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %69, i32 noundef 9) #2
%71 = load i32, ptr @B2055_C1_RX_BB_MIDACHP, align 4, !tbaa !22
%72 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %71, i32 noundef 131) #2
%73 = load i32, ptr @B2055_C2_RX_BB_MIDACHP, align 4, !tbaa !22
%74 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %73, i32 noundef 131) #2
%75 = load i32, ptr @B2055_C1_LNA_GAINBST, align 4, !tbaa !22
%76 = tail call i32 @b43_radio_maskset(ptr noundef nonnull %0, i32 noundef %75, i32 noundef 65528, i32 noundef 6) #2
%77 = load i32, ptr @B2055_C2_LNA_GAINBST, align 4, !tbaa !22
%78 = tail call i32 @b43_radio_maskset(ptr noundef nonnull %0, i32 noundef %77, i32 noundef 65528, i32 noundef 6) #2
%79 = load i32, ptr %3, align 4, !tbaa !26
%80 = icmp eq i32 %79, 0
%81 = load i32, ptr @B2055_C1_RX_RFSPC1, align 4, !tbaa !22
br i1 %80, label %82, label %86
82: ; preds = %62
%83 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %81, i32 noundef 2) #2
%84 = load i32, ptr @B2055_C2_RX_RFSPC1, align 4, !tbaa !22
%85 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %84, i32 noundef 2) #2
br label %90
86: ; preds = %62
%87 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %81, i32 noundef 65533) #2
%88 = load i32, ptr @B2055_C2_RX_RFSPC1, align 4, !tbaa !22
%89 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %88, i32 noundef 65533) #2
br label %90
90: ; preds = %86, %82
%91 = tail call i32 @udelay(i32 noundef 2) #2
ret void
}
declare i32 @b43_radio_mask(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_maskset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_set(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_wait_value(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @b43_switch_channel(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 8}
!6 = !{!"b43_wldev", !7, i64 0, !8, i64 16, !11, i64 24}
!7 = !{!"TYPE_4__", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!6, !11, i64 24}
!13 = !{!14, !11, i64 24}
!14 = !{!"TYPE_3__", !15, i64 0, !15, i64 8, !8, i64 16, !11, i64 24}
!15 = !{!"long", !9, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"ssb_sprom", !8, i64 0, !8, i64 4}
!18 = !{!14, !15, i64 0}
!19 = !{!15, !15, i64 0}
!20 = !{!14, !15, i64 8}
!21 = !{!17, !8, i64 4}
!22 = !{!8, !8, i64 0}
!23 = !{!14, !8, i64 16}
!24 = !{!6, !8, i64 16}
!25 = !{!6, !8, i64 0}
!26 = !{!27, !8, i64 0}
!27 = !{!"b43_phy_n", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_phy_n.c_b43_radio_init2055_post.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_phy_n.c_b43_radio_init2055_post.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCI_VENDOR_ID_BROADCOM = common local_unnamed_addr global i64 0, align 8
@SSB_BOARD_CB2_4321 = common local_unnamed_addr global i64 0, align 8
@B43_BFL2_RXBB_INT_REG_DIS = common local_unnamed_addr global i32 0, align 4
@B2055_MASTER1 = common local_unnamed_addr global i32 0, align 4
@B2055_C1_RX_BB_REG = common local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_BB_REG = common local_unnamed_addr global i32 0, align 4
@B2055_RRCCAL_NOPTSEL = common local_unnamed_addr global i32 0, align 4
@B2055_CAL_MISC = common local_unnamed_addr global i32 0, align 4
@B2055_CAL_LPOCTL = common local_unnamed_addr global i32 0, align 4
@B2055_CAL_COUT2 = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"radio post init timeout\0A\00", align 1
@B2055_C1_RX_BB_LPF = common local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_BB_LPF = common local_unnamed_addr global i32 0, align 4
@B2055_C1_RX_BB_MIDACHP = common local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_BB_MIDACHP = common local_unnamed_addr global i32 0, align 4
@B2055_C1_LNA_GAINBST = common local_unnamed_addr global i32 0, align 4
@B2055_C2_LNA_GAINBST = common local_unnamed_addr global i32 0, align 4
@B2055_C1_RX_RFSPC1 = common local_unnamed_addr global i32 0, align 4
@B2055_C2_RX_RFSPC1 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @b43_radio_init2055_post], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @b43_radio_init2055_post(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 24
%5 = load ptr, ptr %4, align 8, !tbaa !13
%6 = getelementptr inbounds i8, ptr %5, i64 24
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = load i32, ptr %7, align 4, !tbaa !17
%9 = icmp slt i32 %8, 4
br i1 %9, label %10, label %19
10: ; preds = %1
%11 = load i64, ptr %5, align 8, !tbaa !19
%12 = load i64, ptr @PCI_VENDOR_ID_BROADCOM, align 8, !tbaa !20
%13 = icmp eq i64 %11, %12
br i1 %13, label %36, label %14
14: ; preds = %10
%15 = getelementptr inbounds i8, ptr %5, i64 8
%16 = load i64, ptr %15, align 8, !tbaa !21
%17 = load i64, ptr @SSB_BOARD_CB2_4321, align 8, !tbaa !20
%18 = icmp eq i64 %16, %17
br i1 %18, label %27, label %36
19: ; preds = %1
%20 = getelementptr inbounds i8, ptr %7, i64 4
%21 = load i32, ptr %20, align 4, !tbaa !22
%22 = load i32, ptr @B43_BFL2_RXBB_INT_REG_DIS, align 4, !tbaa !23
%23 = and i32 %22, %21
%24 = icmp eq i32 %23, 0
%25 = load i32, ptr @B2055_MASTER1, align 4, !tbaa !23
%26 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %25, i32 noundef 65523) #2
br i1 %24, label %33, label %41
27: ; preds = %14
%28 = getelementptr inbounds i8, ptr %5, i64 16
%29 = load i32, ptr %28, align 8, !tbaa !24
%30 = icmp sgt i32 %29, 64
%31 = load i32, ptr @B2055_MASTER1, align 4, !tbaa !23
%32 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %31, i32 noundef 65523) #2
br i1 %30, label %33, label %41
33: ; preds = %19, %27
%34 = load i32, ptr @B2055_C1_RX_BB_REG, align 4, !tbaa !23
%35 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %34, i32 noundef 127) #2
br label %36
36: ; preds = %10, %14, %33
%37 = phi ptr [ @B2055_C2_RX_BB_REG, %33 ], [ @B2055_MASTER1, %14 ], [ @B2055_MASTER1, %10 ]
%38 = phi i32 [ 127, %33 ], [ 65523, %14 ], [ 65523, %10 ]
%39 = load i32, ptr %37, align 4, !tbaa !23
%40 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %39, i32 noundef %38) #2
br label %41
41: ; preds = %36, %19, %27
%42 = load i32, ptr @B2055_RRCCAL_NOPTSEL, align 4, !tbaa !23
%43 = tail call i32 @b43_radio_maskset(ptr noundef nonnull %0, i32 noundef %42, i32 noundef 65472, i32 noundef 44) #2
%44 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !23
%45 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %44, i32 noundef 60) #2
%46 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !23
%47 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %46, i32 noundef 65470) #2
%48 = load i32, ptr @B2055_CAL_LPOCTL, align 4, !tbaa !23
%49 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %48, i32 noundef 128) #2
%50 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !23
%51 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %50, i32 noundef 1) #2
%52 = tail call i32 @msleep(i32 noundef 1) #2
%53 = load i32, ptr @B2055_CAL_MISC, align 4, !tbaa !23
%54 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %53, i32 noundef 64) #2
%55 = load i32, ptr @B2055_CAL_COUT2, align 4, !tbaa !23
%56 = tail call i32 @b43_radio_wait_value(ptr noundef nonnull %0, i32 noundef %55, i32 noundef 128, i32 noundef 128, i32 noundef 10, i32 noundef 2000) #2
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %62
58: ; preds = %41
%59 = getelementptr inbounds i8, ptr %0, i64 16
%60 = load i32, ptr %59, align 8, !tbaa !25
%61 = tail call i32 @b43err(i32 noundef %60, ptr noundef nonnull @.str) #2
br label %62
62: ; preds = %58, %41
%63 = load i32, ptr @B2055_CAL_LPOCTL, align 4, !tbaa !23
%64 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %63, i32 noundef 65407) #2
%65 = load i32, ptr %0, align 8, !tbaa !26
%66 = tail call i32 @b43_switch_channel(ptr noundef nonnull %0, i32 noundef %65) #2
%67 = load i32, ptr @B2055_C1_RX_BB_LPF, align 4, !tbaa !23
%68 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %67, i32 noundef 9) #2
%69 = load i32, ptr @B2055_C2_RX_BB_LPF, align 4, !tbaa !23
%70 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %69, i32 noundef 9) #2
%71 = load i32, ptr @B2055_C1_RX_BB_MIDACHP, align 4, !tbaa !23
%72 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %71, i32 noundef 131) #2
%73 = load i32, ptr @B2055_C2_RX_BB_MIDACHP, align 4, !tbaa !23
%74 = tail call i32 @b43_radio_write(ptr noundef nonnull %0, i32 noundef %73, i32 noundef 131) #2
%75 = load i32, ptr @B2055_C1_LNA_GAINBST, align 4, !tbaa !23
%76 = tail call i32 @b43_radio_maskset(ptr noundef nonnull %0, i32 noundef %75, i32 noundef 65528, i32 noundef 6) #2
%77 = load i32, ptr @B2055_C2_LNA_GAINBST, align 4, !tbaa !23
%78 = tail call i32 @b43_radio_maskset(ptr noundef nonnull %0, i32 noundef %77, i32 noundef 65528, i32 noundef 6) #2
%79 = load i32, ptr %3, align 4, !tbaa !27
%80 = icmp eq i32 %79, 0
%81 = load i32, ptr @B2055_C1_RX_RFSPC1, align 4, !tbaa !23
br i1 %80, label %82, label %86
82: ; preds = %62
%83 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %81, i32 noundef 2) #2
%84 = load i32, ptr @B2055_C2_RX_RFSPC1, align 4, !tbaa !23
%85 = tail call i32 @b43_radio_set(ptr noundef nonnull %0, i32 noundef %84, i32 noundef 2) #2
br label %90
86: ; preds = %62
%87 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %81, i32 noundef 65533) #2
%88 = load i32, ptr @B2055_C2_RX_RFSPC1, align 4, !tbaa !23
%89 = tail call i32 @b43_radio_mask(ptr noundef nonnull %0, i32 noundef %88, i32 noundef 65533) #2
br label %90
90: ; preds = %86, %82
%91 = tail call i32 @udelay(i32 noundef 2) #2
ret void
}
declare i32 @b43_radio_mask(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_maskset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_set(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @b43_radio_wait_value(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @b43_switch_channel(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 8}
!7 = !{!"b43_wldev", !8, i64 0, !9, i64 16, !12, i64 24}
!8 = !{!"TYPE_4__", !9, i64 0, !12, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!7, !12, i64 24}
!14 = !{!15, !12, i64 24}
!15 = !{!"TYPE_3__", !16, i64 0, !16, i64 8, !9, i64 16, !12, i64 24}
!16 = !{!"long", !10, i64 0}
!17 = !{!18, !9, i64 0}
!18 = !{!"ssb_sprom", !9, i64 0, !9, i64 4}
!19 = !{!15, !16, i64 0}
!20 = !{!16, !16, i64 0}
!21 = !{!15, !16, i64 8}
!22 = !{!18, !9, i64 4}
!23 = !{!9, !9, i64 0}
!24 = !{!15, !9, i64 16}
!25 = !{!7, !9, i64 16}
!26 = !{!7, !9, i64 0}
!27 = !{!28, !9, i64 0}
!28 = !{!"b43_phy_n", !9, i64 0}
| linux_drivers_net_wireless_broadcom_b43_extr_phy_n.c_b43_radio_init2055_post |
; ModuleID = 'AnghaBench/linux/arch/powerpc/kvm/extr_book3s_hv.c_can_piggyback.c'
source_filename = "AnghaBench/linux/arch/powerpc/kvm/extr_book3s_hv.c_can_piggyback.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @can_piggyback], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @can_piggyback(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = load i32, ptr %0, align 4, !tbaa !10
%6 = add nsw i32 %5, %4
%7 = icmp sgt i32 %6, %2
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 @can_dynamic_split(ptr noundef nonnull %0, ptr noundef nonnull %1) #2
br label %10
10: ; preds = %3, %8
%11 = phi i32 [ %9, %8 ], [ 0, %3 ]
ret i32 %11
}
declare i32 @can_dynamic_split(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"core_info", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"kvmppc_vcore", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/arch/powerpc/kvm/extr_book3s_hv.c_can_piggyback.c'
source_filename = "AnghaBench/linux/arch/powerpc/kvm/extr_book3s_hv.c_can_piggyback.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @can_piggyback], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @can_piggyback(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr %1, align 4, !tbaa !6
%5 = load i32, ptr %0, align 4, !tbaa !11
%6 = add nsw i32 %5, %4
%7 = icmp sgt i32 %6, %2
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 @can_dynamic_split(ptr noundef nonnull %0, ptr noundef nonnull %1) #2
br label %10
10: ; preds = %3, %8
%11 = phi i32 [ %9, %8 ], [ 0, %3 ]
ret i32 %11
}
declare i32 @can_dynamic_split(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"core_info", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"kvmppc_vcore", !8, i64 0}
| linux_arch_powerpc_kvm_extr_book3s_hv.c_can_piggyback |
; ModuleID = 'AnghaBench/freebsd/sys/netpfil/ipfw/nat64/extr_nat64lsn_control.c_nat64lsn_update_arg1.c'
source_filename = "AnghaBench/freebsd/sys/netpfil/ipfw/nat64/extr_nat64lsn_control.c_nat64lsn_update_arg1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @nat64lsn_update_arg1], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @nat64lsn_update_arg1(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
store i32 %1, ptr %0, align 4, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/netpfil/ipfw/nat64/extr_nat64lsn_control.c_nat64lsn_update_arg1.c'
source_filename = "AnghaBench/freebsd/sys/netpfil/ipfw/nat64/extr_nat64lsn_control.c_nat64lsn_update_arg1.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @nat64lsn_update_arg1], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @nat64lsn_update_arg1(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
store i32 %1, ptr %0, align 4, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_netpfil_ipfw_nat64_extr_nat64lsn_control.c_nat64lsn_update_arg1 |
; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_mt9m111.c_mt9m111_find_mode.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_mt9m111.c_mt9m111_find_mode.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mt9m111 = type { ptr, %struct.TYPE_2__, %struct.v4l2_rect }
%struct.TYPE_2__ = type { i32 }
%struct.v4l2_rect = type { i32, i32 }
%struct.mt9m111_mode_info = type { i32 }
@MT9M111_MODE_SXGA_15FPS = dso_local local_unnamed_addr global i32 0, align 4
@MT9M111_MAX_WIDTH = dso_local local_unnamed_addr global i32 0, align 4
@MT9M111_MAX_HEIGHT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [57 x i8] c"Framerate selection is not supported for cropped images\0A\00", align 1
@.str.1 = private unnamed_addr constant [72 x i8] c"Framerates > 15fps are supported only for images not exceeding 640x512\0A\00", align 1
@MT9M111_NUM_MODES = dso_local local_unnamed_addr global i32 0, align 4
@mt9m111_mode_data = dso_local local_unnamed_addr global ptr null, align 8
@MT9M111_MODE_QSXGA_30FPS = dso_local local_unnamed_addr global i32 0, align 4
@context_a = dso_local global i32 0, align 4
@context_b = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mt9m111_find_mode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @mt9m111_find_mode(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = getelementptr inbounds %struct.mt9m111, ptr %0, i64 0, i32 2
%6 = load i32, ptr @MT9M111_MODE_SXGA_15FPS, align 4, !tbaa !5
%7 = load i32, ptr %5, align 4, !tbaa !9
%8 = load i32, ptr @MT9M111_MAX_WIDTH, align 4, !tbaa !5
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %4
%11 = getelementptr inbounds %struct.mt9m111, ptr %0, i64 0, i32 2, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !11
%13 = load i32, ptr @MT9M111_MAX_HEIGHT, align 4, !tbaa !5
%14 = icmp eq i32 %12, %13
br i1 %14, label %19, label %15
15: ; preds = %10, %4
%16 = getelementptr inbounds %struct.mt9m111, ptr %0, i64 0, i32 1
%17 = load i32, ptr %16, align 8, !tbaa !12
%18 = tail call i32 @dev_info(i32 noundef %17, ptr noundef nonnull @.str) #3
br label %62
19: ; preds = %10
%20 = sdiv i32 %7, 2
%21 = icmp ult i32 %20, %2
%22 = sdiv i32 %12, 2
%23 = icmp ult i32 %22, %3
%24 = or i1 %21, %23
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = getelementptr inbounds %struct.mt9m111, ptr %0, i64 0, i32 1
%27 = load i32, ptr %26, align 8, !tbaa !12
%28 = tail call i32 @dev_dbg(i32 noundef %27, ptr noundef nonnull @.str.1) #3
br label %29
29: ; preds = %19, %25
%30 = load i32, ptr @MT9M111_NUM_MODES, align 4, !tbaa !5
%31 = icmp sgt i32 %30, 0
%32 = load ptr, ptr @mt9m111_mode_data, align 8, !tbaa !16
br i1 %31, label %33, label %55
33: ; preds = %29
%34 = zext nneg i32 %30 to i64
br label %35
35: ; preds = %33, %50
%36 = phi i64 [ 0, %33 ], [ %53, %50 ]
%37 = phi i32 [ %6, %33 ], [ %52, %50 ]
%38 = phi i32 [ -1, %33 ], [ %51, %50 ]
%39 = getelementptr inbounds %struct.mt9m111_mode_info, ptr %32, i64 %36
%40 = load i32, ptr %39, align 4, !tbaa !17
%41 = icmp eq i32 %40, 30
%42 = and i1 %24, %41
br i1 %42, label %50, label %43
43: ; preds = %35
%44 = sub i32 %40, %1
%45 = tail call i32 @llvm.abs.i32(i32 %44, i1 true)
%46 = icmp ult i32 %45, %38
%47 = tail call i32 @llvm.umin.i32(i32 %45, i32 %38)
%48 = trunc i64 %36 to i32
%49 = select i1 %46, i32 %48, i32 %37
br label %50
50: ; preds = %35, %43
%51 = phi i32 [ %47, %43 ], [ %38, %35 ]
%52 = phi i32 [ %49, %43 ], [ %37, %35 ]
%53 = add nuw nsw i64 %36, 1
%54 = icmp eq i64 %53, %34
br i1 %54, label %55, label %35, !llvm.loop !19
55: ; preds = %50, %29
%56 = phi i32 [ %6, %29 ], [ %52, %50 ]
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds %struct.mt9m111_mode_info, ptr %32, i64 %57
%59 = load i32, ptr @MT9M111_MODE_QSXGA_30FPS, align 4, !tbaa !5
%60 = icmp eq i32 %56, %59
%61 = select i1 %60, ptr @context_a, ptr @context_b
store ptr %61, ptr %0, align 8, !tbaa !21
br label %62
62: ; preds = %55, %15
%63 = phi ptr [ null, %15 ], [ %58, %55 ]
ret ptr %63
}
declare i32 @dev_info(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"v4l2_rect", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = !{!13, !6, i64 8}
!13 = !{!"mt9m111", !14, i64 0, !15, i64 8, !10, i64 12}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"TYPE_2__", !6, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"mt9m111_mode_info", !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!13, !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_mt9m111.c_mt9m111_find_mode.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_mt9m111.c_mt9m111_find_mode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.mt9m111_mode_info = type { i32 }
@MT9M111_MODE_SXGA_15FPS = common local_unnamed_addr global i32 0, align 4
@MT9M111_MAX_WIDTH = common local_unnamed_addr global i32 0, align 4
@MT9M111_MAX_HEIGHT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [57 x i8] c"Framerate selection is not supported for cropped images\0A\00", align 1
@.str.1 = private unnamed_addr constant [72 x i8] c"Framerates > 15fps are supported only for images not exceeding 640x512\0A\00", align 1
@MT9M111_NUM_MODES = common local_unnamed_addr global i32 0, align 4
@mt9m111_mode_data = common local_unnamed_addr global ptr null, align 8
@MT9M111_MODE_QSXGA_30FPS = common local_unnamed_addr global i32 0, align 4
@context_a = common global i32 0, align 4
@context_b = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mt9m111_find_mode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @mt9m111_find_mode(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = getelementptr inbounds i8, ptr %0, i64 12
%6 = load i32, ptr @MT9M111_MODE_SXGA_15FPS, align 4, !tbaa !6
%7 = load i32, ptr %5, align 4, !tbaa !10
%8 = load i32, ptr @MT9M111_MAX_WIDTH, align 4, !tbaa !6
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %4
%11 = getelementptr inbounds i8, ptr %0, i64 16
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = load i32, ptr @MT9M111_MAX_HEIGHT, align 4, !tbaa !6
%14 = icmp eq i32 %12, %13
br i1 %14, label %19, label %15
15: ; preds = %10, %4
%16 = getelementptr inbounds i8, ptr %0, i64 8
%17 = load i32, ptr %16, align 8, !tbaa !13
%18 = tail call i32 @dev_info(i32 noundef %17, ptr noundef nonnull @.str) #3
br label %62
19: ; preds = %10
%20 = sdiv i32 %7, 2
%21 = icmp ult i32 %20, %2
%22 = sdiv i32 %12, 2
%23 = icmp ult i32 %22, %3
%24 = or i1 %21, %23
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = getelementptr inbounds i8, ptr %0, i64 8
%27 = load i32, ptr %26, align 8, !tbaa !13
%28 = tail call i32 @dev_dbg(i32 noundef %27, ptr noundef nonnull @.str.1) #3
br label %29
29: ; preds = %19, %25
%30 = load i32, ptr @MT9M111_NUM_MODES, align 4, !tbaa !6
%31 = icmp sgt i32 %30, 0
%32 = load ptr, ptr @mt9m111_mode_data, align 8, !tbaa !17
br i1 %31, label %33, label %55
33: ; preds = %29
%34 = zext nneg i32 %30 to i64
br label %35
35: ; preds = %33, %50
%36 = phi i64 [ 0, %33 ], [ %53, %50 ]
%37 = phi i32 [ %6, %33 ], [ %52, %50 ]
%38 = phi i32 [ -1, %33 ], [ %51, %50 ]
%39 = getelementptr inbounds %struct.mt9m111_mode_info, ptr %32, i64 %36
%40 = load i32, ptr %39, align 4, !tbaa !18
%41 = icmp eq i32 %40, 30
%42 = and i1 %24, %41
br i1 %42, label %50, label %43
43: ; preds = %35
%44 = sub i32 %40, %1
%45 = tail call i32 @llvm.abs.i32(i32 %44, i1 true)
%46 = icmp ult i32 %45, %38
%47 = tail call i32 @llvm.umin.i32(i32 %45, i32 %38)
%48 = trunc nuw nsw i64 %36 to i32
%49 = select i1 %46, i32 %48, i32 %37
br label %50
50: ; preds = %35, %43
%51 = phi i32 [ %47, %43 ], [ %38, %35 ]
%52 = phi i32 [ %49, %43 ], [ %37, %35 ]
%53 = add nuw nsw i64 %36, 1
%54 = icmp eq i64 %53, %34
br i1 %54, label %55, label %35, !llvm.loop !20
55: ; preds = %50, %29
%56 = phi i32 [ %6, %29 ], [ %52, %50 ]
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds %struct.mt9m111_mode_info, ptr %32, i64 %57
%59 = load i32, ptr @MT9M111_MODE_QSXGA_30FPS, align 4, !tbaa !6
%60 = icmp eq i32 %56, %59
%61 = select i1 %60, ptr @context_a, ptr @context_b
store ptr %61, ptr %0, align 8, !tbaa !22
br label %62
62: ; preds = %55, %15
%63 = phi ptr [ null, %15 ], [ %58, %55 ]
ret ptr %63
}
declare i32 @dev_info(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"v4l2_rect", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 4}
!13 = !{!14, !7, i64 8}
!14 = !{!"mt9m111", !15, i64 0, !16, i64 8, !11, i64 12}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"TYPE_2__", !7, i64 0}
!17 = !{!15, !15, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"mt9m111_mode_info", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !15, i64 0}
| linux_drivers_media_i2c_extr_mt9m111.c_mt9m111_find_mode |
; ModuleID = 'AnghaBench/openssl/test/extr_evp_test.c_digestsigver_test_init.c'
source_filename = "AnghaBench/openssl/test/extr_evp_test.c_digestsigver_test_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_9__ = type { i32, i32, ptr, ptr }
%struct.TYPE_8__ = type { i32, ptr }
@.str = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@NID_undef = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @digestsigver_test_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @digestsigver_test_init(ptr nocapture noundef writeonly %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = tail call i64 @strcmp(ptr noundef %1, ptr noundef nonnull @.str) #2
%6 = icmp eq i64 %5, 0
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = tail call ptr @EVP_get_digestbyname(ptr noundef %1) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = tail call i64 @OBJ_sn2nid(ptr noundef %1) #2
%12 = load i64, ptr @NID_undef, align 8, !tbaa !5
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = tail call i64 @OBJ_ln2nid(ptr noundef %1) #2
%16 = load i64, ptr @NID_undef, align 8, !tbaa !5
%17 = icmp eq i64 %15, %16
br i1 %17, label %35, label %18
18: ; preds = %14, %10
store i32 1, ptr %0, align 8, !tbaa !9
br label %35
19: ; preds = %7, %4
%20 = phi ptr [ %8, %7 ], [ null, %4 ]
%21 = tail call ptr @OPENSSL_zalloc(i32 noundef 24) #2
%22 = tail call i32 @TEST_ptr(ptr noundef %21) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %35, label %24
24: ; preds = %19
%25 = getelementptr inbounds %struct.TYPE_9__, ptr %21, i64 0, i32 3
store ptr %20, ptr %25, align 8, !tbaa !13
%26 = tail call ptr (...) @EVP_MD_CTX_new() #2
%27 = getelementptr inbounds %struct.TYPE_9__, ptr %21, i64 0, i32 2
store ptr %26, ptr %27, align 8, !tbaa !15
%28 = tail call i32 @TEST_ptr(ptr noundef %26) #2
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = tail call i32 @OPENSSL_free(ptr noundef nonnull %21) #2
br label %35
32: ; preds = %24
store i32 %2, ptr %21, align 8, !tbaa !16
%33 = getelementptr inbounds %struct.TYPE_9__, ptr %21, i64 0, i32 1
store i32 %3, ptr %33, align 4, !tbaa !17
%34 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 1
store ptr %21, ptr %34, align 8, !tbaa !18
br label %35
35: ; preds = %19, %14, %32, %30, %18
%36 = phi i32 [ 1, %18 ], [ 1, %32 ], [ 0, %30 ], [ 0, %14 ], [ 0, %19 ]
ret i32 %36
}
declare i64 @strcmp(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @EVP_get_digestbyname(ptr noundef) local_unnamed_addr #1
declare i64 @OBJ_sn2nid(ptr noundef) local_unnamed_addr #1
declare i64 @OBJ_ln2nid(ptr noundef) local_unnamed_addr #1
declare i32 @TEST_ptr(ptr noundef) local_unnamed_addr #1
declare ptr @OPENSSL_zalloc(i32 noundef) local_unnamed_addr #1
declare ptr @EVP_MD_CTX_new(...) local_unnamed_addr #1
declare i32 @OPENSSL_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_8__", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"TYPE_9__", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !11, i64 0}
!17 = !{!14, !11, i64 4}
!18 = !{!10, !12, i64 8}
| ; ModuleID = 'AnghaBench/openssl/test/extr_evp_test.c_digestsigver_test_init.c'
source_filename = "AnghaBench/openssl/test/extr_evp_test.c_digestsigver_test_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"NULL\00", align 1
@NID_undef = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @digestsigver_test_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @digestsigver_test_init(ptr nocapture noundef writeonly %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = tail call i64 @strcmp(ptr noundef %1, ptr noundef nonnull @.str) #2
%6 = icmp eq i64 %5, 0
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = tail call ptr @EVP_get_digestbyname(ptr noundef %1) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = tail call i64 @OBJ_sn2nid(ptr noundef %1) #2
%12 = load i64, ptr @NID_undef, align 8, !tbaa !6
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = tail call i64 @OBJ_ln2nid(ptr noundef %1) #2
%16 = load i64, ptr @NID_undef, align 8, !tbaa !6
%17 = icmp eq i64 %15, %16
br i1 %17, label %35, label %18
18: ; preds = %14, %10
store i32 1, ptr %0, align 8, !tbaa !10
br label %35
19: ; preds = %7, %4
%20 = phi ptr [ %8, %7 ], [ null, %4 ]
%21 = tail call ptr @OPENSSL_zalloc(i32 noundef 24) #2
%22 = tail call i32 @TEST_ptr(ptr noundef %21) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %35, label %24
24: ; preds = %19
%25 = getelementptr inbounds i8, ptr %21, i64 16
store ptr %20, ptr %25, align 8, !tbaa !14
%26 = tail call ptr @EVP_MD_CTX_new() #2
%27 = getelementptr inbounds i8, ptr %21, i64 8
store ptr %26, ptr %27, align 8, !tbaa !16
%28 = tail call i32 @TEST_ptr(ptr noundef %26) #2
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = tail call i32 @OPENSSL_free(ptr noundef nonnull %21) #2
br label %35
32: ; preds = %24
store i32 %2, ptr %21, align 8, !tbaa !17
%33 = getelementptr inbounds i8, ptr %21, i64 4
store i32 %3, ptr %33, align 4, !tbaa !18
%34 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %21, ptr %34, align 8, !tbaa !19
br label %35
35: ; preds = %19, %14, %32, %30, %18
%36 = phi i32 [ 1, %18 ], [ 1, %32 ], [ 0, %30 ], [ 0, %14 ], [ 0, %19 ]
ret i32 %36
}
declare i64 @strcmp(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @EVP_get_digestbyname(ptr noundef) local_unnamed_addr #1
declare i64 @OBJ_sn2nid(ptr noundef) local_unnamed_addr #1
declare i64 @OBJ_ln2nid(ptr noundef) local_unnamed_addr #1
declare i32 @TEST_ptr(ptr noundef) local_unnamed_addr #1
declare ptr @OPENSSL_zalloc(i32 noundef) local_unnamed_addr #1
declare ptr @EVP_MD_CTX_new(...) local_unnamed_addr #1
declare i32 @OPENSSL_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_8__", !12, i64 0, !13, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !13, i64 16}
!15 = !{!"TYPE_9__", !12, i64 0, !12, i64 4, !13, i64 8, !13, i64 16}
!16 = !{!15, !13, i64 8}
!17 = !{!15, !12, i64 0}
!18 = !{!15, !12, i64 4}
!19 = !{!11, !13, i64 8}
| openssl_test_extr_evp_test.c_digestsigver_test_init |
; ModuleID = 'AnghaBench/reactos/dll/win32/msg711.acm/extr_msg711.c_G711_StreamSize.c'
source_filename = "AnghaBench/reactos/dll/win32/msg711.acm/extr_msg711.c_G711_StreamSize.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_10__ = type { ptr, ptr }
%struct.TYPE_9__ = type { i32, i32, i32 }
@WAVE_FORMAT_PCM = dso_local local_unnamed_addr global i32 0, align 4
@WAVE_FORMAT_ALAW = dso_local local_unnamed_addr global i32 0, align 4
@WAVE_FORMAT_MULAW = dso_local local_unnamed_addr global i32 0, align 4
@MMSYSERR_NOTSUPPORTED = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Unsupported query %08x\0A\00", align 1
@MMSYSERR_NOERROR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @G711_StreamSize], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @G711_StreamSize(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
switch i32 %3, label %84 [
i32 129, label %4
i32 128, label %44
]
4: ; preds = %2
%5 = getelementptr inbounds %struct.TYPE_10__, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = load i32, ptr %6, align 4, !tbaa !13
%8 = load i32, ptr @WAVE_FORMAT_PCM, align 4, !tbaa !15
%9 = icmp eq i32 %7, %8
%10 = load i32, ptr @WAVE_FORMAT_ALAW, align 4, !tbaa !15
%11 = load i32, ptr @WAVE_FORMAT_MULAW, align 4
br i1 %9, label %12, label %23
12: ; preds = %4
%13 = load ptr, ptr %0, align 8, !tbaa !16
%14 = load i32, ptr %13, align 4, !tbaa !17
%15 = icmp eq i32 %14, %10
%16 = icmp eq i32 %14, %11
%17 = select i1 %15, i1 true, i1 %16
br i1 %17, label %18, label %23
18: ; preds = %12
%19 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
%20 = load i32, ptr %19, align 4, !tbaa !19
%21 = shl nsw i32 %20, 1
%22 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
store i32 %21, ptr %22, align 4, !tbaa !20
br label %86
23: ; preds = %12, %4
%24 = icmp eq i32 %7, %10
%25 = icmp eq i32 %7, %11
%26 = select i1 %24, i1 true, i1 %25
br i1 %26, label %27, label %86
27: ; preds = %23
%28 = load ptr, ptr %0, align 8, !tbaa !16
%29 = load i32, ptr %28, align 4, !tbaa !17
%30 = icmp eq i32 %29, %8
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
%33 = load i32, ptr %32, align 4, !tbaa !19
%34 = sdiv i32 %33, 2
%35 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
store i32 %34, ptr %35, align 4, !tbaa !20
br label %86
36: ; preds = %27
%37 = icmp eq i32 %29, %10
%38 = icmp eq i32 %29, %11
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %40, label %86
40: ; preds = %36
%41 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
%42 = load i32, ptr %41, align 4, !tbaa !19
%43 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
store i32 %42, ptr %43, align 4, !tbaa !20
br label %86
44: ; preds = %2
%45 = getelementptr inbounds %struct.TYPE_10__, ptr %0, i64 0, i32 1
%46 = load ptr, ptr %45, align 8, !tbaa !10
%47 = load i32, ptr %46, align 4, !tbaa !13
%48 = load i32, ptr @WAVE_FORMAT_PCM, align 4, !tbaa !15
%49 = icmp eq i32 %47, %48
%50 = load i32, ptr @WAVE_FORMAT_ALAW, align 4, !tbaa !15
%51 = load i32, ptr @WAVE_FORMAT_MULAW, align 4
br i1 %49, label %52, label %63
52: ; preds = %44
%53 = load ptr, ptr %0, align 8, !tbaa !16
%54 = load i32, ptr %53, align 4, !tbaa !17
%55 = icmp eq i32 %54, %50
%56 = icmp eq i32 %54, %51
%57 = select i1 %55, i1 true, i1 %56
br i1 %57, label %58, label %63
58: ; preds = %52
%59 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%60 = load i32, ptr %59, align 4, !tbaa !20
%61 = sdiv i32 %60, 2
%62 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
store i32 %61, ptr %62, align 4, !tbaa !19
br label %86
63: ; preds = %52, %44
%64 = icmp eq i32 %47, %50
%65 = icmp eq i32 %47, %51
%66 = select i1 %64, i1 true, i1 %65
br i1 %66, label %67, label %86
67: ; preds = %63
%68 = load ptr, ptr %0, align 8, !tbaa !16
%69 = load i32, ptr %68, align 4, !tbaa !17
%70 = icmp eq i32 %69, %48
br i1 %70, label %71, label %76
71: ; preds = %67
%72 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%73 = load i32, ptr %72, align 4, !tbaa !20
%74 = shl nsw i32 %73, 1
%75 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
store i32 %74, ptr %75, align 4, !tbaa !19
br label %86
76: ; preds = %67
%77 = icmp eq i32 %69, %50
%78 = icmp eq i32 %69, %51
%79 = select i1 %77, i1 true, i1 %78
br i1 %79, label %80, label %86
80: ; preds = %76
%81 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%82 = load i32, ptr %81, align 4, !tbaa !20
%83 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 2
store i32 %82, ptr %83, align 4, !tbaa !19
br label %86
84: ; preds = %2
%85 = tail call i32 @WARN(ptr noundef nonnull @.str, i32 noundef %3) #2
br label %86
86: ; preds = %63, %23, %31, %40, %18, %71, %80, %58, %76, %36, %84
%87 = phi ptr [ @MMSYSERR_NOTSUPPORTED, %84 ], [ @MMSYSERR_NOTSUPPORTED, %36 ], [ @MMSYSERR_NOTSUPPORTED, %76 ], [ @MMSYSERR_NOERROR, %58 ], [ @MMSYSERR_NOERROR, %80 ], [ @MMSYSERR_NOERROR, %71 ], [ @MMSYSERR_NOERROR, %18 ], [ @MMSYSERR_NOERROR, %40 ], [ @MMSYSERR_NOERROR, %31 ], [ @MMSYSERR_NOTSUPPORTED, %23 ], [ @MMSYSERR_NOTSUPPORTED, %63 ]
%88 = load i32, ptr %87, align 4, !tbaa !15
ret i32 %88
}
declare i32 @WARN(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_9__", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"TYPE_10__", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_7__", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!11, !12, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_8__", !7, i64 0}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/msg711.acm/extr_msg711.c_G711_StreamSize.c'
source_filename = "AnghaBench/reactos/dll/win32/msg711.acm/extr_msg711.c_G711_StreamSize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WAVE_FORMAT_PCM = common local_unnamed_addr global i32 0, align 4
@WAVE_FORMAT_ALAW = common local_unnamed_addr global i32 0, align 4
@WAVE_FORMAT_MULAW = common local_unnamed_addr global i32 0, align 4
@MMSYSERR_NOTSUPPORTED = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"Unsupported query %08x\0A\00", align 1
@MMSYSERR_NOERROR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @G711_StreamSize], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @G711_StreamSize(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
switch i32 %3, label %84 [
i32 129, label %4
i32 128, label %44
]
4: ; preds = %2
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load i32, ptr %6, align 4, !tbaa !14
%8 = load i32, ptr @WAVE_FORMAT_PCM, align 4, !tbaa !16
%9 = icmp eq i32 %7, %8
%10 = load i32, ptr @WAVE_FORMAT_ALAW, align 4, !tbaa !16
%11 = load i32, ptr @WAVE_FORMAT_MULAW, align 4
br i1 %9, label %12, label %23
12: ; preds = %4
%13 = load ptr, ptr %0, align 8, !tbaa !17
%14 = load i32, ptr %13, align 4, !tbaa !18
%15 = icmp eq i32 %14, %10
%16 = icmp eq i32 %14, %11
%17 = select i1 %15, i1 true, i1 %16
br i1 %17, label %18, label %23
18: ; preds = %12
%19 = getelementptr inbounds i8, ptr %1, i64 8
%20 = load i32, ptr %19, align 4, !tbaa !20
%21 = shl nsw i32 %20, 1
%22 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %21, ptr %22, align 4, !tbaa !21
br label %86
23: ; preds = %12, %4
%24 = icmp eq i32 %7, %10
%25 = icmp eq i32 %7, %11
%26 = select i1 %24, i1 true, i1 %25
br i1 %26, label %27, label %86
27: ; preds = %23
%28 = load ptr, ptr %0, align 8, !tbaa !17
%29 = load i32, ptr %28, align 4, !tbaa !18
%30 = icmp eq i32 %29, %8
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = getelementptr inbounds i8, ptr %1, i64 8
%33 = load i32, ptr %32, align 4, !tbaa !20
%34 = sdiv i32 %33, 2
%35 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %34, ptr %35, align 4, !tbaa !21
br label %86
36: ; preds = %27
%37 = icmp eq i32 %29, %10
%38 = icmp eq i32 %29, %11
%39 = select i1 %37, i1 true, i1 %38
br i1 %39, label %40, label %86
40: ; preds = %36
%41 = getelementptr inbounds i8, ptr %1, i64 8
%42 = load i32, ptr %41, align 4, !tbaa !20
%43 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %42, ptr %43, align 4, !tbaa !21
br label %86
44: ; preds = %2
%45 = getelementptr inbounds i8, ptr %0, i64 8
%46 = load ptr, ptr %45, align 8, !tbaa !11
%47 = load i32, ptr %46, align 4, !tbaa !14
%48 = load i32, ptr @WAVE_FORMAT_PCM, align 4, !tbaa !16
%49 = icmp eq i32 %47, %48
%50 = load i32, ptr @WAVE_FORMAT_ALAW, align 4, !tbaa !16
%51 = load i32, ptr @WAVE_FORMAT_MULAW, align 4
br i1 %49, label %52, label %63
52: ; preds = %44
%53 = load ptr, ptr %0, align 8, !tbaa !17
%54 = load i32, ptr %53, align 4, !tbaa !18
%55 = icmp eq i32 %54, %50
%56 = icmp eq i32 %54, %51
%57 = select i1 %55, i1 true, i1 %56
br i1 %57, label %58, label %63
58: ; preds = %52
%59 = getelementptr inbounds i8, ptr %1, i64 4
%60 = load i32, ptr %59, align 4, !tbaa !21
%61 = sdiv i32 %60, 2
%62 = getelementptr inbounds i8, ptr %1, i64 8
store i32 %61, ptr %62, align 4, !tbaa !20
br label %86
63: ; preds = %52, %44
%64 = icmp eq i32 %47, %50
%65 = icmp eq i32 %47, %51
%66 = select i1 %64, i1 true, i1 %65
br i1 %66, label %67, label %86
67: ; preds = %63
%68 = load ptr, ptr %0, align 8, !tbaa !17
%69 = load i32, ptr %68, align 4, !tbaa !18
%70 = icmp eq i32 %69, %48
br i1 %70, label %71, label %76
71: ; preds = %67
%72 = getelementptr inbounds i8, ptr %1, i64 4
%73 = load i32, ptr %72, align 4, !tbaa !21
%74 = shl nsw i32 %73, 1
%75 = getelementptr inbounds i8, ptr %1, i64 8
store i32 %74, ptr %75, align 4, !tbaa !20
br label %86
76: ; preds = %67
%77 = icmp eq i32 %69, %50
%78 = icmp eq i32 %69, %51
%79 = select i1 %77, i1 true, i1 %78
br i1 %79, label %80, label %86
80: ; preds = %76
%81 = getelementptr inbounds i8, ptr %1, i64 4
%82 = load i32, ptr %81, align 4, !tbaa !21
%83 = getelementptr inbounds i8, ptr %1, i64 8
store i32 %82, ptr %83, align 4, !tbaa !20
br label %86
84: ; preds = %2
%85 = tail call i32 @WARN(ptr noundef nonnull @.str, i32 noundef %3) #2
br label %86
86: ; preds = %63, %23, %31, %40, %18, %71, %80, %58, %76, %36, %84
%87 = phi ptr [ @MMSYSERR_NOTSUPPORTED, %84 ], [ @MMSYSERR_NOTSUPPORTED, %36 ], [ @MMSYSERR_NOTSUPPORTED, %76 ], [ @MMSYSERR_NOERROR, %58 ], [ @MMSYSERR_NOERROR, %80 ], [ @MMSYSERR_NOERROR, %71 ], [ @MMSYSERR_NOERROR, %18 ], [ @MMSYSERR_NOERROR, %40 ], [ @MMSYSERR_NOERROR, %31 ], [ @MMSYSERR_NOTSUPPORTED, %23 ], [ @MMSYSERR_NOTSUPPORTED, %63 ]
%88 = load i32, ptr %87, align 4, !tbaa !16
ret i32 %88
}
declare i32 @WARN(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_9__", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 8}
!12 = !{!"TYPE_10__", !13, i64 0, !13, i64 8}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_7__", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!12, !13, i64 0}
!18 = !{!19, !8, i64 0}
!19 = !{!"TYPE_8__", !8, i64 0}
!20 = !{!7, !8, i64 8}
!21 = !{!7, !8, i64 4}
| reactos_dll_win32_msg711.acm_extr_msg711.c_G711_StreamSize |
; ModuleID = 'AnghaBench/redis/src/extr_config.c_rewriteConfigNumericalOption.c'
source_filename = "AnghaBench/redis/src/extr_config.c_rewriteConfigNumericalOption.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%s %lld\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @rewriteConfigNumericalOption(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = icmp ne i64 %2, %3
%6 = zext i1 %5 to i32
%7 = tail call i32 (...) @sdsempty() #2
%8 = tail call i32 @sdscatprintf(i32 noundef %7, ptr noundef nonnull @.str, ptr noundef %1, i64 noundef %2) #2
%9 = tail call i32 @rewriteConfigRewriteLine(ptr noundef %0, ptr noundef %1, i32 noundef %8, i32 noundef %6) #2
ret void
}
declare i32 @sdscatprintf(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sdsempty(...) local_unnamed_addr #1
declare i32 @rewriteConfigRewriteLine(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/redis/src/extr_config.c_rewriteConfigNumericalOption.c'
source_filename = "AnghaBench/redis/src/extr_config.c_rewriteConfigNumericalOption.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [8 x i8] c"%s %lld\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @rewriteConfigNumericalOption(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = icmp ne i64 %2, %3
%6 = zext i1 %5 to i32
%7 = tail call i32 @sdsempty() #2
%8 = tail call i32 @sdscatprintf(i32 noundef %7, ptr noundef nonnull @.str, ptr noundef %1, i64 noundef %2) #2
%9 = tail call i32 @rewriteConfigRewriteLine(ptr noundef %0, ptr noundef %1, i32 noundef %8, i32 noundef %6) #2
ret void
}
declare i32 @sdscatprintf(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sdsempty(...) local_unnamed_addr #1
declare i32 @rewriteConfigRewriteLine(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| redis_src_extr_config.c_rewriteConfigNumericalOption |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/wpa_supplicant/dbus/extr_dbus_new.h_wpas_dbus_signal_eap_status.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/wpa_supplicant/dbus/extr_dbus_new.h_wpas_dbus_signal_eap_status.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @wpas_dbus_signal_eap_status], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @wpas_dbus_signal_eap_status(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/wpa_supplicant/dbus/extr_dbus_new.h_wpas_dbus_signal_eap_status.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/wpa_supplicant/dbus/extr_dbus_new.h_wpas_dbus_signal_eap_status.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @wpas_dbus_signal_eap_status], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @wpas_dbus_signal_eap_status(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_contrib_wpa_wpa_supplicant_dbus_extr_dbus_new.h_wpas_dbus_signal_eap_status |
; ModuleID = 'AnghaBench/freebsd/sys/mips/ingenic/extr_jz4780_gpio.c_jz_gpio_map_intr.c'
source_filename = "AnghaBench/freebsd/sys/mips/ingenic/extr_jz4780_gpio.c_jz_gpio_map_intr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @jz_gpio_map_intr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @jz_gpio_map_intr(i32 noundef %0, ptr nocapture readnone %1, ptr nocapture readnone %2, ptr nocapture readnone %3, ptr nocapture readnone %4) #0 {
%6 = tail call ptr @device_get_softc(i32 noundef %0) #2
%7 = load i32, ptr @EINVAL, align 4, !tbaa !5
ret i32 %7
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/mips/ingenic/extr_jz4780_gpio.c_jz_gpio_map_intr.c'
source_filename = "AnghaBench/freebsd/sys/mips/ingenic/extr_jz4780_gpio.c_jz_gpio_map_intr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @jz_gpio_map_intr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @jz_gpio_map_intr(i32 noundef %0, ptr nocapture readnone %1, ptr nocapture readnone %2, ptr nocapture readnone %3, ptr nocapture readnone %4) #0 {
%6 = tail call ptr @device_get_softc(i32 noundef %0) #2
%7 = load i32, ptr @EINVAL, align 4, !tbaa !6
ret i32 %7
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_mips_ingenic_extr_jz4780_gpio.c_jz_gpio_map_intr |
; ModuleID = 'AnghaBench/h2o/deps/picotls/deps/cifra/src/extr_testsha.h_hmac_test_sha2.c'
source_filename = "AnghaBench/h2o/deps/picotls/deps/cifra/src/extr_testsha.h_hmac_test_sha2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CF_MAXHASH = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [55 x i8] c"Test Using Larger Than Block-Size Key - Hash Key First\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @hmac_test_sha2], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @hmac_test_sha2(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca [131 x i32], align 16
%5 = alloca [152 x i32], align 16
%6 = load i32, ptr @CF_MAXHASH, align 4, !tbaa !5
%7 = zext i32 %6 to i64
%8 = alloca i32, i64 %7, align 16
call void @llvm.lifetime.start.p0(i64 524, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 608, ptr nonnull %5) #3
%9 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 170, i32 noundef 131) #3
%10 = call i32 @memcpy(ptr noundef nonnull %5, ptr noundef nonnull @.str, i32 noundef 54) #3
%11 = call i32 @cf_hmac(ptr noundef nonnull %4, i32 noundef 131, ptr noundef nonnull %5, i32 noundef 54, ptr noundef nonnull %8, ptr noundef %0) #3
%12 = load i32, ptr %0, align 4, !tbaa !9
%13 = call i64 @memcmp(ptr noundef nonnull %8, ptr noundef %1, i32 noundef %12) #3
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @TEST_CHECK(i32 noundef %15) #3
%17 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 170, i32 noundef 131) #3
%18 = call i32 @memcpy(ptr noundef nonnull %5, ptr noundef nonnull @.str.1, i32 noundef 152) #3
%19 = call i32 @cf_hmac(ptr noundef nonnull %4, i32 noundef 131, ptr noundef nonnull %5, i32 noundef 152, ptr noundef nonnull %8, ptr noundef nonnull %0) #3
%20 = load i32, ptr %0, align 4, !tbaa !9
%21 = call i64 @memcmp(ptr noundef nonnull %8, ptr noundef %2, i32 noundef %20) #3
%22 = icmp eq i64 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @TEST_CHECK(i32 noundef %23) #3
call void @llvm.lifetime.end.p0(i64 608, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 524, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cf_hmac(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @TEST_CHECK(i32 noundef) local_unnamed_addr #2
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_4__", !6, i64 0}
| ; ModuleID = 'AnghaBench/h2o/deps/picotls/deps/cifra/src/extr_testsha.h_hmac_test_sha2.c'
source_filename = "AnghaBench/h2o/deps/picotls/deps/cifra/src/extr_testsha.h_hmac_test_sha2.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CF_MAXHASH = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [55 x i8] c"Test Using Larger Than Block-Size Key - Hash Key First\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @hmac_test_sha2], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @hmac_test_sha2(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca [131 x i32], align 4
%5 = alloca [152 x i32], align 4
%6 = load i32, ptr @CF_MAXHASH, align 4, !tbaa !6
%7 = zext i32 %6 to i64
%8 = alloca i32, i64 %7, align 4
call void @llvm.lifetime.start.p0(i64 524, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 608, ptr nonnull %5) #3
%9 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 170, i32 noundef 131) #3
%10 = call i32 @memcpy(ptr noundef nonnull %5, ptr noundef nonnull @.str, i32 noundef 54) #3
%11 = call i32 @cf_hmac(ptr noundef nonnull %4, i32 noundef 131, ptr noundef nonnull %5, i32 noundef 54, ptr noundef nonnull %8, ptr noundef %0) #3
%12 = load i32, ptr %0, align 4, !tbaa !10
%13 = call i64 @memcmp(ptr noundef nonnull %8, ptr noundef %1, i32 noundef %12) #3
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @TEST_CHECK(i32 noundef %15) #3
%17 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 170, i32 noundef 131) #3
%18 = call i32 @memcpy(ptr noundef nonnull %5, ptr noundef nonnull @.str.1, i32 noundef 152) #3
%19 = call i32 @cf_hmac(ptr noundef nonnull %4, i32 noundef 131, ptr noundef nonnull %5, i32 noundef 152, ptr noundef nonnull %8, ptr noundef nonnull %0) #3
%20 = load i32, ptr %0, align 4, !tbaa !10
%21 = call i64 @memcmp(ptr noundef nonnull %8, ptr noundef %2, i32 noundef %20) #3
%22 = icmp eq i64 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @TEST_CHECK(i32 noundef %23) #3
call void @llvm.lifetime.end.p0(i64 608, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 524, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cf_hmac(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @TEST_CHECK(i32 noundef) local_unnamed_addr #2
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
| h2o_deps_picotls_deps_cifra_src_extr_testsha.h_hmac_test_sha2 |
; ModuleID = 'AnghaBench/git/xdiff/extr_xpatience.c_patience_diff.c'
source_filename = "AnghaBench/git/xdiff/extr_xpatience.c_patience_diff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hashmap = type { i32, i32 }
%struct.TYPE_8__ = type { %struct.TYPE_7__, %struct.TYPE_6__ }
%struct.TYPE_7__ = type { ptr }
%struct.TYPE_6__ = type { ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @patience_diff], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @patience_diff(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca %struct.hashmap, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
%10 = icmp eq i32 %5, 0
%11 = icmp eq i32 %7, 0
br i1 %10, label %12, label %43
12: ; preds = %8
br i1 %11, label %155, label %13
13: ; preds = %12
%14 = load ptr, ptr %3, align 8, !tbaa !5
%15 = getelementptr i32, ptr %14, i64 -1
%16 = sext i32 %6 to i64
%17 = zext i32 %7 to i64
%18 = icmp ult i32 %7, 8
br i1 %18, label %33, label %19
19: ; preds = %13
%20 = and i64 %17, 4294967288
%21 = add nsw i64 %20, %16
%22 = trunc i64 %20 to i32
%23 = sub i32 %7, %22
%24 = getelementptr i32, ptr %15, i64 %16
br label %25
25: ; preds = %25, %19
%26 = phi i64 [ 0, %19 ], [ %29, %25 ]
%27 = getelementptr i32, ptr %24, i64 %26
%28 = getelementptr i32, ptr %27, i64 4
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %27, align 4, !tbaa !12
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %28, align 4, !tbaa !12
%29 = add nuw i64 %26, 8
%30 = icmp eq i64 %29, %20
br i1 %30, label %31, label %25, !llvm.loop !14
31: ; preds = %25
%32 = icmp eq i64 %20, %17
br i1 %32, label %155, label %33
33: ; preds = %13, %31
%34 = phi i64 [ %16, %13 ], [ %21, %31 ]
%35 = phi i32 [ %7, %13 ], [ %23, %31 ]
br label %36
36: ; preds = %33, %36
%37 = phi i64 [ %40, %36 ], [ %34, %33 ]
%38 = phi i32 [ %39, %36 ], [ %35, %33 ]
%39 = add nsw i32 %38, -1
%40 = add nsw i64 %37, 1
%41 = getelementptr i32, ptr %15, i64 %37
store i32 1, ptr %41, align 4, !tbaa !12
%42 = icmp eq i32 %39, 0
br i1 %42, label %155, label %36, !llvm.loop !18
43: ; preds = %8
br i1 %11, label %44, label %75
44: ; preds = %43
%45 = getelementptr inbounds %struct.TYPE_8__, ptr %3, i64 0, i32 1
%46 = load ptr, ptr %45, align 8, !tbaa !19
%47 = getelementptr i32, ptr %46, i64 -1
%48 = sext i32 %4 to i64
%49 = zext i32 %5 to i64
%50 = icmp ult i32 %5, 8
br i1 %50, label %65, label %51
51: ; preds = %44
%52 = and i64 %49, 4294967288
%53 = add nsw i64 %52, %48
%54 = trunc i64 %52 to i32
%55 = sub i32 %5, %54
%56 = getelementptr i32, ptr %47, i64 %48
br label %57
57: ; preds = %57, %51
%58 = phi i64 [ 0, %51 ], [ %61, %57 ]
%59 = getelementptr i32, ptr %56, i64 %58
%60 = getelementptr i32, ptr %59, i64 4
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %59, align 4, !tbaa !12
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %60, align 4, !tbaa !12
%61 = add nuw i64 %58, 8
%62 = icmp eq i64 %61, %52
br i1 %62, label %63, label %57, !llvm.loop !20
63: ; preds = %57
%64 = icmp eq i64 %52, %49
br i1 %64, label %155, label %65
65: ; preds = %44, %63
%66 = phi i64 [ %48, %44 ], [ %53, %63 ]
%67 = phi i32 [ %5, %44 ], [ %55, %63 ]
br label %68
68: ; preds = %65, %68
%69 = phi i64 [ %72, %68 ], [ %66, %65 ]
%70 = phi i32 [ %71, %68 ], [ %67, %65 ]
%71 = add nsw i32 %70, -1
%72 = add nsw i64 %69, 1
%73 = getelementptr i32, ptr %47, i64 %69
store i32 1, ptr %73, align 4, !tbaa !12
%74 = icmp eq i32 %71, 0
br i1 %74, label %155, label %68, !llvm.loop !21
75: ; preds = %43
%76 = call i32 @memset(ptr noundef nonnull %9, i32 noundef 0, i32 noundef 8) #3
%77 = call i64 @fill_hashmap(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %9, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #3
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %155
79: ; preds = %75
%80 = getelementptr inbounds %struct.hashmap, ptr %9, i64 0, i32 1
%81 = load i32, ptr %80, align 4, !tbaa !22
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %144
83: ; preds = %79
%84 = getelementptr inbounds %struct.TYPE_8__, ptr %3, i64 0, i32 1
%85 = load ptr, ptr %84, align 8, !tbaa !19
%86 = getelementptr i32, ptr %85, i64 -1
%87 = sext i32 %4 to i64
%88 = zext i32 %5 to i64
%89 = icmp ult i32 %5, 8
br i1 %89, label %104, label %90
90: ; preds = %83
%91 = and i64 %88, 4294967288
%92 = add nsw i64 %91, %87
%93 = trunc i64 %91 to i32
%94 = sub i32 %5, %93
%95 = getelementptr i32, ptr %86, i64 %87
br label %96
96: ; preds = %96, %90
%97 = phi i64 [ 0, %90 ], [ %100, %96 ]
%98 = getelementptr i32, ptr %95, i64 %97
%99 = getelementptr i32, ptr %98, i64 4
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %98, align 4, !tbaa !12
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %99, align 4, !tbaa !12
%100 = add nuw i64 %97, 8
%101 = icmp eq i64 %100, %91
br i1 %101, label %102, label %96, !llvm.loop !24
102: ; preds = %96
%103 = icmp eq i64 %91, %88
br i1 %103, label %107, label %104
104: ; preds = %83, %102
%105 = phi i64 [ %87, %83 ], [ %92, %102 ]
%106 = phi i32 [ %5, %83 ], [ %94, %102 ]
br label %130
107: ; preds = %130, %102
%108 = load ptr, ptr %3, align 8, !tbaa !5
%109 = getelementptr i32, ptr %108, i64 -1
%110 = sext i32 %6 to i64
%111 = zext i32 %7 to i64
%112 = icmp ult i32 %7, 8
br i1 %112, label %127, label %113
113: ; preds = %107
%114 = and i64 %111, 4294967288
%115 = add nsw i64 %114, %110
%116 = trunc i64 %114 to i32
%117 = sub i32 %7, %116
%118 = getelementptr i32, ptr %109, i64 %110
br label %119
119: ; preds = %119, %113
%120 = phi i64 [ 0, %113 ], [ %123, %119 ]
%121 = getelementptr i32, ptr %118, i64 %120
%122 = getelementptr i32, ptr %121, i64 4
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %121, align 4, !tbaa !12
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %122, align 4, !tbaa !12
%123 = add nuw i64 %120, 8
%124 = icmp eq i64 %123, %114
br i1 %124, label %125, label %119, !llvm.loop !25
125: ; preds = %119
%126 = icmp eq i64 %114, %111
br i1 %126, label %151, label %127
127: ; preds = %107, %125
%128 = phi i64 [ %110, %107 ], [ %115, %125 ]
%129 = phi i32 [ %7, %107 ], [ %117, %125 ]
br label %137
130: ; preds = %104, %130
%131 = phi i64 [ %134, %130 ], [ %105, %104 ]
%132 = phi i32 [ %133, %130 ], [ %106, %104 ]
%133 = add nsw i32 %132, -1
%134 = add nsw i64 %131, 1
%135 = getelementptr i32, ptr %86, i64 %131
store i32 1, ptr %135, align 4, !tbaa !12
%136 = icmp eq i32 %133, 0
br i1 %136, label %107, label %130, !llvm.loop !26
137: ; preds = %127, %137
%138 = phi i64 [ %141, %137 ], [ %128, %127 ]
%139 = phi i32 [ %140, %137 ], [ %129, %127 ]
%140 = add nsw i32 %139, -1
%141 = add nsw i64 %138, 1
%142 = getelementptr i32, ptr %109, i64 %138
store i32 1, ptr %142, align 4, !tbaa !12
%143 = icmp eq i32 %140, 0
br i1 %143, label %151, label %137, !llvm.loop !27
144: ; preds = %79
%145 = call ptr @find_longest_common_sequence(ptr noundef nonnull %9) #3
%146 = icmp eq ptr %145, null
br i1 %146, label %149, label %147
147: ; preds = %144
%148 = call i32 @walk_common_sequence(ptr noundef nonnull %9, ptr noundef nonnull %145, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #3
br label %151
149: ; preds = %144
%150 = call i32 @fall_back_to_classic_diff(ptr noundef nonnull %9, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #3
br label %151
151: ; preds = %137, %147, %149, %125
%152 = phi i32 [ 0, %125 ], [ %148, %147 ], [ %150, %149 ], [ 0, %137 ]
%153 = load i32, ptr %9, align 4, !tbaa !28
%154 = call i32 @xdl_free(i32 noundef %153) #3
br label %155
155: ; preds = %68, %36, %63, %31, %151, %12, %75
%156 = phi i32 [ -1, %75 ], [ 0, %12 ], [ %152, %151 ], [ 0, %31 ], [ 0, %63 ], [ 0, %36 ], [ 0, %68 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
ret i32 %156
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @fill_hashmap(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @xdl_free(i32 noundef) local_unnamed_addr #2
declare ptr @find_longest_common_sequence(ptr noundef) local_unnamed_addr #2
declare i32 @walk_common_sequence(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fall_back_to_classic_diff(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"TYPE_8__", !7, i64 0, !11, i64 8}
!7 = !{!"TYPE_7__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_6__", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !17, !16}
!19 = !{!6, !8, i64 8}
!20 = distinct !{!20, !15, !16, !17}
!21 = distinct !{!21, !15, !17, !16}
!22 = !{!23, !13, i64 4}
!23 = !{!"hashmap", !13, i64 0, !13, i64 4}
!24 = distinct !{!24, !15, !16, !17}
!25 = distinct !{!25, !15, !16, !17}
!26 = distinct !{!26, !15, !17, !16}
!27 = distinct !{!27, !15, !17, !16}
!28 = !{!23, !13, i64 0}
| ; ModuleID = 'AnghaBench/git/xdiff/extr_xpatience.c_patience_diff.c'
source_filename = "AnghaBench/git/xdiff/extr_xpatience.c_patience_diff.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.hashmap = type { i32, i32 }
@.memset_pattern.3 = private unnamed_addr constant [4 x i32] [i32 1, i32 1, i32 1, i32 1], align 16
@llvm.used = appending global [1 x ptr] [ptr @patience_diff], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @patience_diff(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #0 {
%9 = alloca %struct.hashmap, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
%10 = icmp eq i32 %5, 0
%11 = icmp eq i32 %7, 0
br i1 %10, label %12, label %21
12: ; preds = %8
br i1 %11, label %68, label %13
13: ; preds = %12
%14 = load ptr, ptr %3, align 8, !tbaa !6
%15 = sext i32 %6 to i64
%16 = shl nsw i64 %15, 2
%17 = getelementptr i8, ptr %14, i64 %16
%18 = getelementptr i8, ptr %17, i64 -4
%19 = zext i32 %7 to i64
%20 = shl nuw nsw i64 %19, 2
tail call void @memset_pattern16(ptr %18, ptr nonnull @.memset_pattern.3, i64 %20), !tbaa !13
br label %68
21: ; preds = %8
br i1 %11, label %22, label %31
22: ; preds = %21
%23 = getelementptr inbounds i8, ptr %3, i64 8
%24 = load ptr, ptr %23, align 8, !tbaa !15
%25 = sext i32 %4 to i64
%26 = shl nsw i64 %25, 2
%27 = getelementptr i8, ptr %24, i64 %26
%28 = getelementptr i8, ptr %27, i64 -4
%29 = zext i32 %5 to i64
%30 = shl nuw nsw i64 %29, 2
tail call void @memset_pattern16(ptr %28, ptr nonnull @.memset_pattern.3, i64 %30), !tbaa !13
br label %68
31: ; preds = %21
%32 = call i32 @memset(ptr noundef nonnull %9, i32 noundef 0, i32 noundef 8) #4
%33 = call i64 @fill_hashmap(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %9, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #4
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %68
35: ; preds = %31
%36 = getelementptr inbounds i8, ptr %9, i64 4
%37 = load i32, ptr %36, align 4, !tbaa !16
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %57
39: ; preds = %35
%40 = getelementptr inbounds i8, ptr %3, i64 8
%41 = load ptr, ptr %40, align 8, !tbaa !15
%42 = sext i32 %4 to i64
%43 = shl nsw i64 %42, 2
%44 = getelementptr i8, ptr %41, i64 %43
%45 = getelementptr i8, ptr %44, i64 -4
%46 = zext i32 %5 to i64
%47 = shl nuw nsw i64 %46, 2
call void @memset_pattern16(ptr %45, ptr nonnull @.memset_pattern.3, i64 %47), !tbaa !13
%48 = load ptr, ptr %3, align 8, !tbaa !6
%49 = sext i32 %6 to i64
%50 = shl nsw i64 %49, 2
%51 = getelementptr i8, ptr %48, i64 %50
%52 = getelementptr i8, ptr %51, i64 -4
%53 = zext i32 %7 to i64
%54 = shl nuw nsw i64 %53, 2
call void @memset_pattern16(ptr %52, ptr nonnull @.memset_pattern.3, i64 %54), !tbaa !13
%55 = load i32, ptr %9, align 4, !tbaa !18
%56 = call i32 @xdl_free(i32 noundef %55) #4
br label %68
57: ; preds = %35
%58 = call ptr @find_longest_common_sequence(ptr noundef nonnull %9) #4
%59 = icmp eq ptr %58, null
br i1 %59, label %62, label %60
60: ; preds = %57
%61 = call i32 @walk_common_sequence(ptr noundef nonnull %9, ptr noundef nonnull %58, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #4
br label %64
62: ; preds = %57
%63 = call i32 @fall_back_to_classic_diff(ptr noundef nonnull %9, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #4
br label %64
64: ; preds = %62, %60
%65 = phi i32 [ %61, %60 ], [ %63, %62 ]
%66 = load i32, ptr %9, align 4, !tbaa !18
%67 = call i32 @xdl_free(i32 noundef %66) #4
br label %68
68: ; preds = %22, %13, %12, %31, %64, %39
%69 = phi i32 [ %65, %64 ], [ 0, %39 ], [ -1, %31 ], [ 0, %12 ], [ 0, %13 ], [ 0, %22 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
ret i32 %69
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @fill_hashmap(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @xdl_free(i32 noundef) local_unnamed_addr #2
declare ptr @find_longest_common_sequence(ptr noundef) local_unnamed_addr #2
declare i32 @walk_common_sequence(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fall_back_to_classic_diff(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind willreturn memory(argmem: readwrite)
declare void @memset_pattern16(ptr nocapture writeonly, ptr nocapture readonly, i64) local_unnamed_addr #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"TYPE_8__", !8, i64 0, !12, i64 8}
!8 = !{!"TYPE_7__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"TYPE_6__", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!7, !9, i64 8}
!16 = !{!17, !14, i64 4}
!17 = !{!"hashmap", !14, i64 0, !14, i64 4}
!18 = !{!17, !14, i64 0}
| git_xdiff_extr_xpatience.c_patience_diff |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopac.c_m68k_op_and_32_er_pi.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopac.c_m68k_op_and_32_er_pi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DX = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_Z = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_N = dso_local local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_C = dso_local local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_V = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @m68k_op_and_32_er_pi() local_unnamed_addr #0 {
%1 = tail call i32 (...) @OPER_AY_PI_32() #2
%2 = load i32, ptr @DX, align 4, !tbaa !5
%3 = and i32 %2, %1
store i32 %3, ptr @DX, align 4, !tbaa !5
store i32 %3, ptr @FLAG_Z, align 4, !tbaa !5
%4 = tail call i32 @NFLAG_32(i32 noundef %3) #2
store i32 %4, ptr @FLAG_N, align 4, !tbaa !5
%5 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !5
store i32 %5, ptr @FLAG_C, align 4, !tbaa !5
%6 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !5
store i32 %6, ptr @FLAG_V, align 4, !tbaa !5
ret void
}
declare i32 @OPER_AY_PI_32(...) local_unnamed_addr #1
declare i32 @NFLAG_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopac.c_m68k_op_and_32_er_pi.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopac.c_m68k_op_and_32_er_pi.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DX = common local_unnamed_addr global i32 0, align 4
@FLAG_Z = common local_unnamed_addr global i32 0, align 4
@FLAG_N = common local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_C = common local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_V = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @m68k_op_and_32_er_pi() local_unnamed_addr #0 {
%1 = tail call i32 @OPER_AY_PI_32() #2
%2 = load i32, ptr @DX, align 4, !tbaa !6
%3 = and i32 %2, %1
store i32 %3, ptr @DX, align 4, !tbaa !6
store i32 %3, ptr @FLAG_Z, align 4, !tbaa !6
%4 = tail call i32 @NFLAG_32(i32 noundef %3) #2
store i32 %4, ptr @FLAG_N, align 4, !tbaa !6
%5 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !6
store i32 %5, ptr @FLAG_C, align 4, !tbaa !6
%6 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !6
store i32 %6, ptr @FLAG_V, align 4, !tbaa !6
ret void
}
declare i32 @OPER_AY_PI_32(...) local_unnamed_addr #1
declare i32 @NFLAG_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_Yabause_yabause_src_musashi_extr_m68kopac.c_m68k_op_and_32_er_pi |
; ModuleID = 'AnghaBench/linux/drivers/usb/core/extr_hcd-pci.c_ehci_post_add.c'
source_filename = "AnghaBench/linux/drivers/usb/core/extr_hcd-pci.c_ehci_post_add.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { ptr, ptr }
@.str = private unnamed_addr constant [21 x i8] c"HS companion for %s\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ehci_post_add], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ehci_post_add(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3) #0 {
%5 = tail call i64 @is_ohci_or_uhci(ptr noundef %2) #2
%6 = icmp eq i64 %5, 0
br i1 %6, label %18, label %7
7: ; preds = %4
%8 = tail call i64 @dev_get_drvdata(ptr noundef %0) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %7
%11 = tail call i32 @dev_name(ptr noundef %2) #2
%12 = tail call i32 @dev_dbg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %11) #2
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i64 0, i32 1
store ptr %1, ptr %13, align 8, !tbaa !5
br label %14
14: ; preds = %10, %7
%15 = load ptr, ptr %3, align 8, !tbaa !11
%16 = tail call i32 @usb_set_configuration(ptr noundef %15, i32 noundef 1) #2
%17 = tail call i32 @usb_unlock_device(ptr noundef %15) #2
br label %18
18: ; preds = %14, %4
ret void
}
declare i64 @is_ohci_or_uhci(ptr noundef) local_unnamed_addr #1
declare i64 @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @dev_dbg(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_name(ptr noundef) local_unnamed_addr #1
declare i32 @usb_set_configuration(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @usb_unlock_device(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 8}
!6 = !{!"usb_hcd", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!6, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/core/extr_hcd-pci.c_ehci_post_add.c'
source_filename = "AnghaBench/linux/drivers/usb/core/extr_hcd-pci.c_ehci_post_add.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [21 x i8] c"HS companion for %s\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @ehci_post_add], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ehci_post_add(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3) #0 {
%5 = tail call i64 @is_ohci_or_uhci(ptr noundef %2) #2
%6 = icmp eq i64 %5, 0
br i1 %6, label %18, label %7
7: ; preds = %4
%8 = tail call i64 @dev_get_drvdata(ptr noundef %0) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %7
%11 = tail call i32 @dev_name(ptr noundef %2) #2
%12 = tail call i32 @dev_dbg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %11) #2
%13 = getelementptr inbounds i8, ptr %3, i64 8
store ptr %1, ptr %13, align 8, !tbaa !6
br label %14
14: ; preds = %10, %7
%15 = load ptr, ptr %3, align 8, !tbaa !12
%16 = tail call i32 @usb_set_configuration(ptr noundef %15, i32 noundef 1) #2
%17 = tail call i32 @usb_unlock_device(ptr noundef %15) #2
br label %18
18: ; preds = %14, %4
ret void
}
declare i64 @is_ohci_or_uhci(ptr noundef) local_unnamed_addr #1
declare i64 @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @dev_dbg(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_name(ptr noundef) local_unnamed_addr #1
declare i32 @usb_set_configuration(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @usb_unlock_device(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 8}
!7 = !{!"usb_hcd", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0, !9, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!7, !9, i64 0}
| linux_drivers_usb_core_extr_hcd-pci.c_ehci_post_add |
; ModuleID = 'AnghaBench/linux/sound/isa/extr_opl3sa2.c_snd_opl3sa2_write.c'
source_filename = "AnghaBench/linux/sound/isa/extr_opl3sa2.c_snd_opl3sa2_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_opl3sa2_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @snd_opl3sa2_write(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #2
%5 = tail call i32 @__snd_opl3sa2_write(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #2
%6 = tail call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @__snd_opl3sa2_write(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/sound/isa/extr_opl3sa2.c_snd_opl3sa2_write.c'
source_filename = "AnghaBench/linux/sound/isa/extr_opl3sa2.c_snd_opl3sa2_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @snd_opl3sa2_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @snd_opl3sa2_write(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #2
%5 = tail call i32 @__snd_opl3sa2_write(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #2
%6 = tail call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @__snd_opl3sa2_write(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_sound_isa_extr_opl3sa2.c_snd_opl3sa2_write |
; ModuleID = 'AnghaBench/mongoose/extr_mongoose.c_mbuf_resize.c'
source_filename = "AnghaBench/mongoose/extr_mongoose.c_mbuf_resize.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mbuf = type { i64, i64, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @mbuf_resize(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = icmp ult i64 %3, %1
br i1 %4, label %11, label %5
5: ; preds = %2
%6 = icmp ugt i64 %3, %1
br i1 %6, label %7, label %20
7: ; preds = %5
%8 = getelementptr inbounds %struct.mbuf, ptr %0, i64 0, i32 1
%9 = load i64, ptr %8, align 8, !tbaa !11
%10 = icmp ugt i64 %9, %1
br i1 %10, label %20, label %11
11: ; preds = %7, %2
%12 = getelementptr inbounds %struct.mbuf, ptr %0, i64 0, i32 2
%13 = load ptr, ptr %12, align 8, !tbaa !12
%14 = tail call i64 @MBUF_REALLOC(ptr noundef %13, i64 noundef %1) #2
%15 = icmp eq i64 %14, 0
%16 = icmp ne i64 %1, 0
%17 = and i1 %16, %15
br i1 %17, label %20, label %18
18: ; preds = %11
%19 = inttoptr i64 %14 to ptr
store ptr %19, ptr %12, align 8, !tbaa !12
store i64 %1, ptr %0, align 8, !tbaa !5
br label %20
20: ; preds = %18, %11, %7, %5
ret void
}
declare i64 @MBUF_REALLOC(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mbuf", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/mongoose/extr_mongoose.c_mbuf_resize.c'
source_filename = "AnghaBench/mongoose/extr_mongoose.c_mbuf_resize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @mbuf_resize(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = icmp ult i64 %3, %1
br i1 %4, label %11, label %5
5: ; preds = %2
%6 = icmp ugt i64 %3, %1
br i1 %6, label %7, label %20
7: ; preds = %5
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = load i64, ptr %8, align 8, !tbaa !12
%10 = icmp ugt i64 %9, %1
br i1 %10, label %20, label %11
11: ; preds = %7, %2
%12 = getelementptr inbounds i8, ptr %0, i64 16
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = tail call i64 @MBUF_REALLOC(ptr noundef %13, i64 noundef %1) #2
%15 = icmp eq i64 %14, 0
%16 = icmp ne i64 %1, 0
%17 = and i1 %16, %15
br i1 %17, label %20, label %18
18: ; preds = %11
%19 = inttoptr i64 %14 to ptr
store ptr %19, ptr %12, align 8, !tbaa !13
store i64 %1, ptr %0, align 8, !tbaa !6
br label %20
20: ; preds = %18, %11, %7, %5
ret void
}
declare i64 @MBUF_REALLOC(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"mbuf", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !11, i64 16}
| mongoose_extr_mongoose.c_mbuf_resize |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/qla4xxx/extr_ql4_os.c_qla4xxx_create_chap_list.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/qla4xxx/extr_ql4_os.c_qla4xxx_create_chap_list.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.scsi_qla_host = type { i32, ptr, ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32, i32 }
@MAX_CHAP_ENTRIES_40XX = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@KERN_ERR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"No memory for chap_flash_data\0A\00", align 1
@FLASH_CHAP_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@FLASH_RAW_ACCESS_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@QLA_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [29 x i8] c"No memory for ha->chap_list\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @qla4xxx_create_chap_list], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @qla4xxx_create_chap_list(ptr noundef %0) #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i64 @is_qla40XX(ptr noundef %0) #3
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, ptr @MAX_CHAP_ENTRIES_40XX, align 4, !tbaa !5
%7 = shl i32 %6, 2
br label %12
8: ; preds = %1
%9 = getelementptr inbounds %struct.scsi_qla_host, ptr %0, i64 0, i32 3
%10 = load i32, ptr %9, align 8, !tbaa !9
%11 = sdiv i32 %10, 2
br label %12
12: ; preds = %8, %5
%13 = phi i32 [ %7, %5 ], [ %11, %8 ]
%14 = getelementptr inbounds %struct.scsi_qla_host, ptr %0, i64 0, i32 1
%15 = load ptr, ptr %14, align 8, !tbaa !13
%16 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%17 = call ptr @dma_alloc_coherent(ptr noundef %15, i32 noundef %13, ptr noundef nonnull %2, i32 noundef %16) #3
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %12
%20 = load i32, ptr @KERN_ERR, align 4, !tbaa !5
%21 = call i32 @ql4_printk(i32 noundef %20, ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
br label %60
22: ; preds = %12
%23 = call i64 @is_qla40XX(ptr noundef nonnull %0) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = load i32, ptr @FLASH_CHAP_OFFSET, align 4, !tbaa !5
br label %37
27: ; preds = %22
%28 = load i32, ptr @FLASH_RAW_ACCESS_ADDR, align 4, !tbaa !5
%29 = getelementptr inbounds %struct.scsi_qla_host, ptr %0, i64 0, i32 3, i32 1
%30 = load i32, ptr %29, align 4, !tbaa !14
%31 = shl i32 %30, 2
%32 = add nsw i32 %31, %28
%33 = load i32, ptr %0, align 8, !tbaa !15
%34 = icmp eq i32 %33, 1
%35 = select i1 %34, i32 %13, i32 0
%36 = add nsw i32 %32, %35
br label %37
37: ; preds = %27, %25
%38 = phi i32 [ %26, %25 ], [ %36, %27 ]
%39 = load i32, ptr %2, align 4, !tbaa !5
%40 = call i32 @qla4xxx_get_flash(ptr noundef nonnull %0, i32 noundef %39, i32 noundef %38, i32 noundef %13) #3
%41 = load i32, ptr @QLA_SUCCESS, align 4, !tbaa !5
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %56
43: ; preds = %37
%44 = getelementptr inbounds %struct.scsi_qla_host, ptr %0, i64 0, i32 2
%45 = load ptr, ptr %44, align 8, !tbaa !16
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %53
47: ; preds = %43
%48 = call ptr @vmalloc(i32 noundef %13) #3
store ptr %48, ptr %44, align 8, !tbaa !16
%49 = icmp eq ptr %48, null
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, ptr @KERN_ERR, align 4, !tbaa !5
%52 = call i32 @ql4_printk(i32 noundef %51, ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
br label %56
53: ; preds = %43, %47
%54 = phi ptr [ %48, %47 ], [ %45, %43 ]
%55 = call i32 @memcpy(ptr noundef nonnull %54, ptr noundef nonnull %17, i32 noundef %13) #3
br label %56
56: ; preds = %37, %53, %50
%57 = load ptr, ptr %14, align 8, !tbaa !13
%58 = load i32, ptr %2, align 4, !tbaa !5
%59 = call i32 @dma_free_coherent(ptr noundef %57, i32 noundef %13, ptr noundef nonnull %17, i32 noundef %58) #3
br label %60
60: ; preds = %56, %19
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @is_qla40XX(ptr noundef) local_unnamed_addr #2
declare ptr @dma_alloc_coherent(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ql4_printk(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @qla4xxx_get_flash(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @vmalloc(i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dma_free_coherent(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"scsi_qla_host", !6, i64 0, !11, i64 8, !11, i64 16, !12, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0, !6, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !6, i64 28}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !11, i64 16}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/qla4xxx/extr_ql4_os.c_qla4xxx_create_chap_list.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/qla4xxx/extr_ql4_os.c_qla4xxx_create_chap_list.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAX_CHAP_ENTRIES_40XX = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@KERN_ERR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"No memory for chap_flash_data\0A\00", align 1
@FLASH_CHAP_OFFSET = common local_unnamed_addr global i32 0, align 4
@FLASH_RAW_ACCESS_ADDR = common local_unnamed_addr global i32 0, align 4
@QLA_SUCCESS = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [29 x i8] c"No memory for ha->chap_list\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @qla4xxx_create_chap_list], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @qla4xxx_create_chap_list(ptr noundef %0) #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i64 @is_qla40XX(ptr noundef %0) #3
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, ptr @MAX_CHAP_ENTRIES_40XX, align 4, !tbaa !6
%7 = shl i32 %6, 2
br label %12
8: ; preds = %1
%9 = getelementptr inbounds i8, ptr %0, i64 24
%10 = load i32, ptr %9, align 8, !tbaa !10
%11 = sdiv i32 %10, 2
br label %12
12: ; preds = %8, %5
%13 = phi i32 [ %7, %5 ], [ %11, %8 ]
%14 = getelementptr inbounds i8, ptr %0, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !14
%16 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%17 = call ptr @dma_alloc_coherent(ptr noundef %15, i32 noundef %13, ptr noundef nonnull %2, i32 noundef %16) #3
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %12
%20 = load i32, ptr @KERN_ERR, align 4, !tbaa !6
%21 = call i32 @ql4_printk(i32 noundef %20, ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
br label %60
22: ; preds = %12
%23 = call i64 @is_qla40XX(ptr noundef nonnull %0) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %22
%26 = load i32, ptr @FLASH_CHAP_OFFSET, align 4, !tbaa !6
br label %37
27: ; preds = %22
%28 = load i32, ptr @FLASH_RAW_ACCESS_ADDR, align 4, !tbaa !6
%29 = getelementptr inbounds i8, ptr %0, i64 28
%30 = load i32, ptr %29, align 4, !tbaa !15
%31 = shl i32 %30, 2
%32 = add nsw i32 %31, %28
%33 = load i32, ptr %0, align 8, !tbaa !16
%34 = icmp eq i32 %33, 1
%35 = select i1 %34, i32 %13, i32 0
%36 = add nsw i32 %32, %35
br label %37
37: ; preds = %27, %25
%38 = phi i32 [ %26, %25 ], [ %36, %27 ]
%39 = load i32, ptr %2, align 4, !tbaa !6
%40 = call i32 @qla4xxx_get_flash(ptr noundef nonnull %0, i32 noundef %39, i32 noundef %38, i32 noundef %13) #3
%41 = load i32, ptr @QLA_SUCCESS, align 4, !tbaa !6
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %56
43: ; preds = %37
%44 = getelementptr inbounds i8, ptr %0, i64 16
%45 = load ptr, ptr %44, align 8, !tbaa !17
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %53
47: ; preds = %43
%48 = call ptr @vmalloc(i32 noundef %13) #3
store ptr %48, ptr %44, align 8, !tbaa !17
%49 = icmp eq ptr %48, null
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, ptr @KERN_ERR, align 4, !tbaa !6
%52 = call i32 @ql4_printk(i32 noundef %51, ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
br label %56
53: ; preds = %43, %47
%54 = phi ptr [ %48, %47 ], [ %45, %43 ]
%55 = call i32 @memcpy(ptr noundef nonnull %54, ptr noundef nonnull %17, i32 noundef %13) #3
br label %56
56: ; preds = %37, %53, %50
%57 = load ptr, ptr %14, align 8, !tbaa !14
%58 = load i32, ptr %2, align 4, !tbaa !6
%59 = call i32 @dma_free_coherent(ptr noundef %57, i32 noundef %13, ptr noundef nonnull %17, i32 noundef %58) #3
br label %60
60: ; preds = %56, %19
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @is_qla40XX(ptr noundef) local_unnamed_addr #2
declare ptr @dma_alloc_coherent(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ql4_printk(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @qla4xxx_get_flash(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @vmalloc(i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dma_free_coherent(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 24}
!11 = !{!"scsi_qla_host", !7, i64 0, !12, i64 8, !12, i64 16, !13, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0, !7, i64 4}
!14 = !{!11, !12, i64 8}
!15 = !{!11, !7, i64 28}
!16 = !{!11, !7, i64 0}
!17 = !{!11, !12, i64 16}
| fastsocket_kernel_drivers_scsi_qla4xxx_extr_ql4_os.c_qla4xxx_create_chap_list |
; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_tlv320aic3x.c_aic3x_i2c_remove.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_tlv320aic3x.c_aic3x_i2c_remove.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.aic3x_priv = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @aic3x_i2c_remove], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @aic3x_i2c_remove(ptr noundef %0) #0 {
%2 = tail call ptr @i2c_get_clientdata(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.aic3x_priv, ptr %2, i64 0, i32 1
%4 = tail call i32 @list_del(ptr noundef nonnull %3) #2
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = tail call i64 @gpio_is_valid(i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %16, label %8
8: ; preds = %1
%9 = tail call i32 @aic3x_is_shared_reset(ptr noundef nonnull %2) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = tail call i32 @gpio_set_value(i32 noundef %12, i32 noundef 0) #2
%14 = load i32, ptr %2, align 4, !tbaa !5
%15 = tail call i32 @gpio_free(i32 noundef %14) #2
br label %16
16: ; preds = %11, %8, %1
ret i32 0
}
declare ptr @i2c_get_clientdata(ptr noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i64 @gpio_is_valid(i32 noundef) local_unnamed_addr #1
declare i32 @aic3x_is_shared_reset(ptr noundef) local_unnamed_addr #1
declare i32 @gpio_set_value(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @gpio_free(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"aic3x_priv", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_tlv320aic3x.c_aic3x_i2c_remove.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_tlv320aic3x.c_aic3x_i2c_remove.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @aic3x_i2c_remove], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @aic3x_i2c_remove(ptr noundef %0) #0 {
%2 = tail call ptr @i2c_get_clientdata(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %2, i64 4
%4 = tail call i32 @list_del(ptr noundef nonnull %3) #2
%5 = load i32, ptr %2, align 4, !tbaa !6
%6 = tail call i64 @gpio_is_valid(i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %16, label %8
8: ; preds = %1
%9 = tail call i32 @aic3x_is_shared_reset(ptr noundef nonnull %2) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr %2, align 4, !tbaa !6
%13 = tail call i32 @gpio_set_value(i32 noundef %12, i32 noundef 0) #2
%14 = load i32, ptr %2, align 4, !tbaa !6
%15 = tail call i32 @gpio_free(i32 noundef %14) #2
br label %16
16: ; preds = %11, %8, %1
ret i32 0
}
declare ptr @i2c_get_clientdata(ptr noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i64 @gpio_is_valid(i32 noundef) local_unnamed_addr #1
declare i32 @aic3x_is_shared_reset(ptr noundef) local_unnamed_addr #1
declare i32 @gpio_set_value(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @gpio_free(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"aic3x_priv", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_sound_soc_codecs_extr_tlv320aic3x.c_aic3x_i2c_remove |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/mlx4/extr_mr.c_mlx4_WRITE_MTT.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/mlx4/extr_mr.c_mlx4_WRITE_MTT.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MLX4_CMD_WRITE_MTT = dso_local local_unnamed_addr global i32 0, align 4
@MLX4_CMD_TIME_CLASS_A = dso_local local_unnamed_addr global i32 0, align 4
@MLX4_CMD_WRAPPED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mlx4_WRITE_MTT], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mlx4_WRITE_MTT(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = load i32, ptr @MLX4_CMD_WRITE_MTT, align 4, !tbaa !10
%6 = load i32, ptr @MLX4_CMD_TIME_CLASS_A, align 4, !tbaa !10
%7 = load i32, ptr @MLX4_CMD_WRAPPED, align 4, !tbaa !10
%8 = tail call i32 @mlx4_cmd(ptr noundef %0, i32 noundef %4, i32 noundef %2, i32 noundef 0, i32 noundef %5, i32 noundef %6, i32 noundef %7) #2
ret i32 %8
}
declare i32 @mlx4_cmd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mlx4_cmd_mailbox", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/mlx4/extr_mr.c_mlx4_WRITE_MTT.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/mlx4/extr_mr.c_mlx4_WRITE_MTT.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MLX4_CMD_WRITE_MTT = common local_unnamed_addr global i32 0, align 4
@MLX4_CMD_TIME_CLASS_A = common local_unnamed_addr global i32 0, align 4
@MLX4_CMD_WRAPPED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mlx4_WRITE_MTT], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mlx4_WRITE_MTT(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = load i32, ptr %1, align 4, !tbaa !6
%5 = load i32, ptr @MLX4_CMD_WRITE_MTT, align 4, !tbaa !11
%6 = load i32, ptr @MLX4_CMD_TIME_CLASS_A, align 4, !tbaa !11
%7 = load i32, ptr @MLX4_CMD_WRAPPED, align 4, !tbaa !11
%8 = tail call i32 @mlx4_cmd(ptr noundef %0, i32 noundef %4, i32 noundef %2, i32 noundef 0, i32 noundef %5, i32 noundef %6, i32 noundef %7) #2
ret i32 %8
}
declare i32 @mlx4_cmd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"mlx4_cmd_mailbox", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| fastsocket_kernel_drivers_net_mlx4_extr_mr.c_mlx4_WRITE_MTT |
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/kern/extr_ipc_tt.c_thread_get_exception_ports.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/kern/extr_ipc_tt.c_thread_get_exception_ports.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_8__ = type { ptr, i32 }
%struct.TYPE_7__ = type { i64, i64, i64 }
@THREAD_NULL = dso_local local_unnamed_addr global ptr null, align 8
@KERN_INVALID_ARGUMENT = dso_local local_unnamed_addr global i32 0, align 4
@EXC_MASK_VALID = dso_local local_unnamed_addr global i32 0, align 4
@KERN_FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@FIRST_EXCEPTION = dso_local local_unnamed_addr global i32 0, align 4
@EXC_TYPES_COUNT = dso_local local_unnamed_addr global i32 0, align 4
@KERN_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @thread_get_exception_ports(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
%8 = load ptr, ptr @THREAD_NULL, align 8, !tbaa !5
%9 = icmp eq ptr %8, %0
br i1 %9, label %100, label %10
10: ; preds = %7
%11 = load i32, ptr @EXC_MASK_VALID, align 4, !tbaa !9
%12 = xor i32 %11, -1
%13 = and i32 %12, %1
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %100
15: ; preds = %10
%16 = tail call i32 @thread_mtx_lock(ptr noundef %0) #2
%17 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 1
%18 = load i32, ptr %17, align 8, !tbaa !11
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = tail call i32 @thread_mtx_unlock(ptr noundef nonnull %0) #2
br label %100
22: ; preds = %15
%23 = load ptr, ptr %0, align 8, !tbaa !13
%24 = icmp eq ptr %23, null
br i1 %24, label %97, label %25
25: ; preds = %22
%26 = load i32, ptr @FIRST_EXCEPTION, align 4, !tbaa !9
%27 = load i32, ptr @EXC_TYPES_COUNT, align 4, !tbaa !9
%28 = icmp ult i32 %26, %27
br i1 %28, label %29, label %97
29: ; preds = %25
%30 = zext i32 %26 to i64
br label %31
31: ; preds = %29, %90
%32 = phi ptr [ %23, %29 ], [ %91, %90 ]
%33 = phi i64 [ %30, %29 ], [ %93, %90 ]
%34 = phi i32 [ 0, %29 ], [ %92, %90 ]
%35 = trunc i64 %33 to i32
%36 = shl nuw i32 1, %35
%37 = and i32 %36, %1
%38 = icmp eq i32 %37, 0
br i1 %38, label %90, label %39
39: ; preds = %31
%40 = icmp eq i32 %34, 0
br i1 %40, label %70, label %41
41: ; preds = %39
%42 = getelementptr inbounds %struct.TYPE_7__, ptr %32, i64 %33
%43 = load i64, ptr %42, align 8, !tbaa !14
%44 = getelementptr inbounds %struct.TYPE_7__, ptr %32, i64 %33, i32 1
%45 = getelementptr inbounds %struct.TYPE_7__, ptr %32, i64 %33, i32 2
%46 = zext i32 %34 to i64
br label %47
47: ; preds = %41, %67
%48 = phi i64 [ 0, %41 ], [ %68, %67 ]
%49 = getelementptr inbounds i64, ptr %4, i64 %48
%50 = load i64, ptr %49, align 8, !tbaa !17
%51 = icmp eq i64 %43, %50
br i1 %51, label %52, label %67
52: ; preds = %47
%53 = load i64, ptr %44, align 8, !tbaa !18
%54 = getelementptr inbounds i64, ptr %5, i64 %48
%55 = load i64, ptr %54, align 8, !tbaa !17
%56 = icmp eq i64 %53, %55
br i1 %56, label %57, label %67
57: ; preds = %52
%58 = load i64, ptr %45, align 8, !tbaa !19
%59 = getelementptr inbounds i64, ptr %6, i64 %48
%60 = load i64, ptr %59, align 8, !tbaa !17
%61 = icmp eq i64 %58, %60
br i1 %61, label %62, label %67
62: ; preds = %57
%63 = trunc i64 %48 to i32
%64 = getelementptr inbounds i32, ptr %2, i64 %48
%65 = load i32, ptr %64, align 4, !tbaa !9
%66 = or i32 %65, %36
store i32 %66, ptr %64, align 4, !tbaa !9
br label %70
67: ; preds = %47, %52, %57
%68 = add nuw nsw i64 %48, 1
%69 = icmp eq i64 %68, %46
br i1 %69, label %73, label %47, !llvm.loop !20
70: ; preds = %39, %62
%71 = phi i32 [ %63, %62 ], [ 0, %39 ]
%72 = icmp eq i32 %71, %34
br i1 %72, label %73, label %90
73: ; preds = %67, %70
%74 = zext i32 %34 to i64
%75 = getelementptr inbounds i32, ptr %2, i64 %74
store i32 %36, ptr %75, align 4, !tbaa !9
%76 = getelementptr inbounds %struct.TYPE_7__, ptr %32, i64 %33
%77 = load i64, ptr %76, align 8, !tbaa !14
%78 = tail call i64 @ipc_port_copy_send(i64 noundef %77) #2
%79 = getelementptr inbounds i64, ptr %4, i64 %74
store i64 %78, ptr %79, align 8, !tbaa !17
%80 = load ptr, ptr %0, align 8, !tbaa !13
%81 = getelementptr inbounds %struct.TYPE_7__, ptr %80, i64 %33, i32 1
%82 = load i64, ptr %81, align 8, !tbaa !18
%83 = getelementptr inbounds i64, ptr %5, i64 %74
store i64 %82, ptr %83, align 8, !tbaa !17
%84 = getelementptr inbounds %struct.TYPE_7__, ptr %80, i64 %33, i32 2
%85 = load i64, ptr %84, align 8, !tbaa !19
%86 = getelementptr inbounds i64, ptr %6, i64 %74
store i64 %85, ptr %86, align 8, !tbaa !17
%87 = add i32 %34, 1
%88 = load i32, ptr %3, align 4, !tbaa !9
%89 = icmp ult i32 %87, %88
br i1 %89, label %90, label %97
90: ; preds = %31, %73, %70
%91 = phi ptr [ %80, %73 ], [ %32, %70 ], [ %32, %31 ]
%92 = phi i32 [ %87, %73 ], [ %34, %70 ], [ %34, %31 ]
%93 = add nuw nsw i64 %33, 1
%94 = load i32, ptr @EXC_TYPES_COUNT, align 4, !tbaa !9
%95 = zext i32 %94 to i64
%96 = icmp ult i64 %93, %95
br i1 %96, label %31, label %97, !llvm.loop !22
97: ; preds = %73, %90, %25, %22
%98 = phi i32 [ 0, %22 ], [ 0, %25 ], [ %87, %73 ], [ %92, %90 ]
%99 = tail call i32 @thread_mtx_unlock(ptr noundef nonnull %0) #2
store i32 %98, ptr %3, align 4, !tbaa !9
br label %100
100: ; preds = %10, %7, %97, %20
%101 = phi ptr [ @KERN_SUCCESS, %97 ], [ @KERN_FAILURE, %20 ], [ @KERN_INVALID_ARGUMENT, %7 ], [ @KERN_INVALID_ARGUMENT, %10 ]
%102 = load i32, ptr %101, align 4, !tbaa !9
ret i32 %102
}
declare i32 @thread_mtx_lock(ptr noundef) local_unnamed_addr #1
declare i32 @thread_mtx_unlock(ptr noundef) local_unnamed_addr #1
declare i64 @ipc_port_copy_send(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"TYPE_8__", !6, i64 0, !10, i64 8}
!13 = !{!12, !6, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"TYPE_7__", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!15, !16, i64 8}
!19 = !{!15, !16, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
| ; ModuleID = 'AnghaBench/darwin-xnu/osfmk/kern/extr_ipc_tt.c_thread_get_exception_ports.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/kern/extr_ipc_tt.c_thread_get_exception_ports.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_7__ = type { i64, i64, i64 }
@THREAD_NULL = common local_unnamed_addr global ptr null, align 8
@KERN_INVALID_ARGUMENT = common local_unnamed_addr global i32 0, align 4
@EXC_MASK_VALID = common local_unnamed_addr global i32 0, align 4
@KERN_FAILURE = common local_unnamed_addr global i32 0, align 4
@FIRST_EXCEPTION = common local_unnamed_addr global i32 0, align 4
@EXC_TYPES_COUNT = common local_unnamed_addr global i32 0, align 4
@KERN_SUCCESS = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @thread_get_exception_ports(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
%8 = load ptr, ptr @THREAD_NULL, align 8, !tbaa !6
%9 = icmp eq ptr %8, %0
br i1 %9, label %100, label %10
10: ; preds = %7
%11 = load i32, ptr @EXC_MASK_VALID, align 4, !tbaa !10
%12 = xor i32 %11, -1
%13 = and i32 %12, %1
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %100
15: ; preds = %10
%16 = tail call i32 @thread_mtx_lock(ptr noundef %0) #2
%17 = getelementptr inbounds i8, ptr %0, i64 8
%18 = load i32, ptr %17, align 8, !tbaa !12
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = tail call i32 @thread_mtx_unlock(ptr noundef nonnull %0) #2
br label %100
22: ; preds = %15
%23 = load ptr, ptr %0, align 8, !tbaa !14
%24 = icmp eq ptr %23, null
br i1 %24, label %97, label %25
25: ; preds = %22
%26 = load i32, ptr @FIRST_EXCEPTION, align 4, !tbaa !10
%27 = load i32, ptr @EXC_TYPES_COUNT, align 4, !tbaa !10
%28 = icmp ult i32 %26, %27
br i1 %28, label %29, label %97
29: ; preds = %25
%30 = zext i32 %26 to i64
br label %31
31: ; preds = %29, %90
%32 = phi ptr [ %23, %29 ], [ %91, %90 ]
%33 = phi i64 [ %30, %29 ], [ %93, %90 ]
%34 = phi i32 [ 0, %29 ], [ %92, %90 ]
%35 = trunc nuw i64 %33 to i32
%36 = shl nuw i32 1, %35
%37 = and i32 %36, %1
%38 = icmp eq i32 %37, 0
br i1 %38, label %90, label %39
39: ; preds = %31
%40 = icmp eq i32 %34, 0
br i1 %40, label %70, label %41
41: ; preds = %39
%42 = getelementptr inbounds %struct.TYPE_7__, ptr %32, i64 %33
%43 = load i64, ptr %42, align 8, !tbaa !15
%44 = getelementptr inbounds i8, ptr %42, i64 8
%45 = getelementptr inbounds i8, ptr %42, i64 16
%46 = zext i32 %34 to i64
br label %47
47: ; preds = %41, %67
%48 = phi i64 [ 0, %41 ], [ %68, %67 ]
%49 = getelementptr inbounds i64, ptr %4, i64 %48
%50 = load i64, ptr %49, align 8, !tbaa !18
%51 = icmp eq i64 %43, %50
br i1 %51, label %52, label %67
52: ; preds = %47
%53 = load i64, ptr %44, align 8, !tbaa !19
%54 = getelementptr inbounds i64, ptr %5, i64 %48
%55 = load i64, ptr %54, align 8, !tbaa !18
%56 = icmp eq i64 %53, %55
br i1 %56, label %57, label %67
57: ; preds = %52
%58 = load i64, ptr %45, align 8, !tbaa !20
%59 = getelementptr inbounds i64, ptr %6, i64 %48
%60 = load i64, ptr %59, align 8, !tbaa !18
%61 = icmp eq i64 %58, %60
br i1 %61, label %62, label %67
62: ; preds = %57
%63 = trunc nuw i64 %48 to i32
%64 = getelementptr inbounds i32, ptr %2, i64 %48
%65 = load i32, ptr %64, align 4, !tbaa !10
%66 = or i32 %65, %36
store i32 %66, ptr %64, align 4, !tbaa !10
br label %70
67: ; preds = %47, %52, %57
%68 = add nuw nsw i64 %48, 1
%69 = icmp eq i64 %68, %46
br i1 %69, label %73, label %47, !llvm.loop !21
70: ; preds = %39, %62
%71 = phi i32 [ %63, %62 ], [ 0, %39 ]
%72 = icmp eq i32 %71, %34
br i1 %72, label %73, label %90
73: ; preds = %67, %70
%74 = zext i32 %34 to i64
%75 = getelementptr inbounds i32, ptr %2, i64 %74
store i32 %36, ptr %75, align 4, !tbaa !10
%76 = getelementptr inbounds %struct.TYPE_7__, ptr %32, i64 %33
%77 = load i64, ptr %76, align 8, !tbaa !15
%78 = tail call i64 @ipc_port_copy_send(i64 noundef %77) #2
%79 = getelementptr inbounds i64, ptr %4, i64 %74
store i64 %78, ptr %79, align 8, !tbaa !18
%80 = load ptr, ptr %0, align 8, !tbaa !14
%81 = getelementptr inbounds %struct.TYPE_7__, ptr %80, i64 %33, i32 1
%82 = load i64, ptr %81, align 8, !tbaa !19
%83 = getelementptr inbounds i64, ptr %5, i64 %74
store i64 %82, ptr %83, align 8, !tbaa !18
%84 = getelementptr inbounds %struct.TYPE_7__, ptr %80, i64 %33, i32 2
%85 = load i64, ptr %84, align 8, !tbaa !20
%86 = getelementptr inbounds i64, ptr %6, i64 %74
store i64 %85, ptr %86, align 8, !tbaa !18
%87 = add i32 %34, 1
%88 = load i32, ptr %3, align 4, !tbaa !10
%89 = icmp ult i32 %87, %88
br i1 %89, label %90, label %97
90: ; preds = %31, %73, %70
%91 = phi ptr [ %80, %73 ], [ %32, %70 ], [ %32, %31 ]
%92 = phi i32 [ %87, %73 ], [ %34, %70 ], [ %34, %31 ]
%93 = add nuw nsw i64 %33, 1
%94 = load i32, ptr @EXC_TYPES_COUNT, align 4, !tbaa !10
%95 = zext i32 %94 to i64
%96 = icmp ult i64 %93, %95
br i1 %96, label %31, label %97, !llvm.loop !23
97: ; preds = %73, %90, %25, %22
%98 = phi i32 [ 0, %22 ], [ 0, %25 ], [ %87, %73 ], [ %92, %90 ]
%99 = tail call i32 @thread_mtx_unlock(ptr noundef nonnull %0) #2
store i32 %98, ptr %3, align 4, !tbaa !10
br label %100
100: ; preds = %10, %7, %97, %20
%101 = phi ptr [ @KERN_SUCCESS, %97 ], [ @KERN_FAILURE, %20 ], [ @KERN_INVALID_ARGUMENT, %7 ], [ @KERN_INVALID_ARGUMENT, %10 ]
%102 = load i32, ptr %101, align 4, !tbaa !10
ret i32 %102
}
declare i32 @thread_mtx_lock(ptr noundef) local_unnamed_addr #1
declare i32 @thread_mtx_unlock(ptr noundef) local_unnamed_addr #1
declare i64 @ipc_port_copy_send(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"TYPE_8__", !7, i64 0, !11, i64 8}
!14 = !{!13, !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"TYPE_7__", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"long", !8, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!16, !17, i64 8}
!20 = !{!16, !17, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
| darwin-xnu_osfmk_kern_extr_ipc_tt.c_thread_get_exception_ports |
; ModuleID = 'AnghaBench/linux/kernel/events/extr_core.c___perf_event_read_cpu.c'
source_filename = "AnghaBench/linux/kernel/events/extr_core.c___perf_event_read_cpu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PERF_EV_CAP_READ_ACTIVE_PKG = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__perf_event_read_cpu], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @__perf_event_read_cpu(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = load i32, ptr @PERF_EV_CAP_READ_ACTIVE_PKG, align 4, !tbaa !10
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %2
%8 = tail call i32 (...) @smp_processor_id() #2
%9 = tail call i32 @topology_physical_package_id(i32 noundef %1) #2
%10 = tail call i32 @topology_physical_package_id(i32 noundef %8) #2
%11 = icmp eq i32 %9, %10
br i1 %11, label %13, label %12
12: ; preds = %7, %2
br label %13
13: ; preds = %7, %12
%14 = phi i32 [ %1, %12 ], [ %8, %7 ]
ret i32 %14
}
declare i32 @smp_processor_id(...) local_unnamed_addr #1
declare i32 @topology_physical_package_id(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"perf_event", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/kernel/events/extr_core.c___perf_event_read_cpu.c'
source_filename = "AnghaBench/linux/kernel/events/extr_core.c___perf_event_read_cpu.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PERF_EV_CAP_READ_ACTIVE_PKG = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__perf_event_read_cpu], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @__perf_event_read_cpu(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = load i32, ptr @PERF_EV_CAP_READ_ACTIVE_PKG, align 4, !tbaa !11
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %2
%8 = tail call i32 @smp_processor_id() #2
%9 = tail call i32 @topology_physical_package_id(i32 noundef %1) #2
%10 = tail call i32 @topology_physical_package_id(i32 noundef %8) #2
%11 = icmp eq i32 %9, %10
br i1 %11, label %13, label %12
12: ; preds = %7, %2
br label %13
13: ; preds = %7, %12
%14 = phi i32 [ %1, %12 ], [ %8, %7 ]
ret i32 %14
}
declare i32 @smp_processor_id(...) local_unnamed_addr #1
declare i32 @topology_physical_package_id(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"perf_event", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_kernel_events_extr_core.c___perf_event_read_cpu |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/iio/accel/extr_sca3000_core.c___sca3000_get_base_freq.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/iio/accel/extr_sca3000_core.c___sca3000_get_base_freq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SCA3000_REG_ADDR_MODE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__sca3000_get_base_freq], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @__sca3000_get_base_freq(ptr noundef %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = load i32, ptr @SCA3000_REG_ADDR_MODE, align 4, !tbaa !5
%6 = call i32 @sca3000_read_data(ptr noundef %0, i32 noundef %5, ptr noundef nonnull %4, i32 noundef 1) #3
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load ptr, ptr %4, align 8, !tbaa !9
%10 = call i32 @kfree(ptr noundef %9) #3
br label %11
11: ; preds = %3, %8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret i32 %6
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sca3000_read_data(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/iio/accel/extr_sca3000_core.c___sca3000_get_base_freq.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/iio/accel/extr_sca3000_core.c___sca3000_get_base_freq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SCA3000_REG_ADDR_MODE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__sca3000_get_base_freq], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @__sca3000_get_base_freq(ptr noundef %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = load i32, ptr @SCA3000_REG_ADDR_MODE, align 4, !tbaa !6
%6 = call i32 @sca3000_read_data(ptr noundef %0, i32 noundef %5, ptr noundef nonnull %4, i32 noundef 1) #3
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load ptr, ptr %4, align 8, !tbaa !10
%10 = call i32 @kfree(ptr noundef %9) #3
br label %11
11: ; preds = %3, %8
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret i32 %6
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sca3000_read_data(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
| fastsocket_kernel_drivers_staging_iio_accel_extr_sca3000_core.c___sca3000_get_base_freq |
; ModuleID = 'AnghaBench/libgit2/src/extr_odb_loose.c_loose_backend__foreach.c'
source_filename = "AnghaBench/libgit2/src/extr_odb_loose.c_loose_backend__foreach.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.foreach_state = type { i32, ptr, i64 }
@GIT_BUF_INIT = dso_local local_unnamed_addr global i32 0, align 4
@foreach_cb = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @loose_backend__foreach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @loose_backend__foreach(ptr noundef readonly %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca %struct.foreach_state, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%6 = load i32, ptr @GIT_BUF_INIT, align 4, !tbaa !5
store i32 %6, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
%7 = icmp ne ptr %0, null
%8 = icmp ne i64 %1, 0
%9 = and i1 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 noundef %10) #3
%12 = load ptr, ptr %0, align 8, !tbaa !9
%13 = call i32 @git_buf_sets(ptr noundef nonnull %4, ptr noundef %12) #3
%14 = call i32 @git_path_to_dir(ptr noundef nonnull %4) #3
%15 = call i64 @git_buf_oom(ptr noundef nonnull %4) #3
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %25
17: ; preds = %3
%18 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 24) #3
%19 = getelementptr inbounds %struct.foreach_state, ptr %5, i64 0, i32 2
store i64 %1, ptr %19, align 8, !tbaa !12
%20 = getelementptr inbounds %struct.foreach_state, ptr %5, i64 0, i32 1
store ptr %2, ptr %20, align 8, !tbaa !15
%21 = call i32 @git_buf_len(ptr noundef nonnull %4) #3
store i32 %21, ptr %5, align 8, !tbaa !16
%22 = load i32, ptr @foreach_cb, align 4, !tbaa !5
%23 = call i32 @git_path_direach(ptr noundef nonnull %4, i32 noundef 0, i32 noundef %22, ptr noundef nonnull %5) #3
%24 = call i32 @git_buf_dispose(ptr noundef nonnull %4) #3
br label %25
25: ; preds = %3, %17
%26 = phi i32 [ %23, %17 ], [ -1, %3 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %26
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i32 @git_buf_sets(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_path_to_dir(ptr noundef) local_unnamed_addr #2
declare i64 @git_buf_oom(ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @git_buf_len(ptr noundef) local_unnamed_addr #2
declare i32 @git_path_direach(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_buf_dispose(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 16}
!13 = !{!"foreach_state", !6, i64 0, !11, i64 8, !14, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !11, i64 8}
!16 = !{!13, !6, i64 0}
| ; ModuleID = 'AnghaBench/libgit2/src/extr_odb_loose.c_loose_backend__foreach.c'
source_filename = "AnghaBench/libgit2/src/extr_odb_loose.c_loose_backend__foreach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.foreach_state = type { i32, ptr, i64 }
@GIT_BUF_INIT = common local_unnamed_addr global i32 0, align 4
@foreach_cb = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @loose_backend__foreach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @loose_backend__foreach(ptr noundef readonly %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca %struct.foreach_state, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%6 = load i32, ptr @GIT_BUF_INIT, align 4, !tbaa !6
store i32 %6, ptr %4, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #3
%7 = icmp ne ptr %0, null
%8 = icmp ne i64 %1, 0
%9 = and i1 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 noundef %10) #3
%12 = load ptr, ptr %0, align 8, !tbaa !10
%13 = call i32 @git_buf_sets(ptr noundef nonnull %4, ptr noundef %12) #3
%14 = call i32 @git_path_to_dir(ptr noundef nonnull %4) #3
%15 = call i64 @git_buf_oom(ptr noundef nonnull %4) #3
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %25
17: ; preds = %3
%18 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 24) #3
%19 = getelementptr inbounds i8, ptr %5, i64 16
store i64 %1, ptr %19, align 8, !tbaa !13
%20 = getelementptr inbounds i8, ptr %5, i64 8
store ptr %2, ptr %20, align 8, !tbaa !16
%21 = call i32 @git_buf_len(ptr noundef nonnull %4) #3
store i32 %21, ptr %5, align 8, !tbaa !17
%22 = load i32, ptr @foreach_cb, align 4, !tbaa !6
%23 = call i32 @git_path_direach(ptr noundef nonnull %4, i32 noundef 0, i32 noundef %22, ptr noundef nonnull %5) #3
%24 = call i32 @git_buf_dispose(ptr noundef nonnull %4) #3
br label %25
25: ; preds = %3, %17
%26 = phi i32 [ %23, %17 ], [ -1, %3 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %26
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i32 @git_buf_sets(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_path_to_dir(ptr noundef) local_unnamed_addr #2
declare i64 @git_buf_oom(ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @git_buf_len(ptr noundef) local_unnamed_addr #2
declare i32 @git_path_direach(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_buf_dispose(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !15, i64 16}
!14 = !{!"foreach_state", !7, i64 0, !12, i64 8, !15, i64 16}
!15 = !{!"long", !8, i64 0}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !7, i64 0}
| libgit2_src_extr_odb_loose.c_loose_backend__foreach |
; ModuleID = 'AnghaBench/vlc/modules/access/extr_timecode.c_Open.c'
source_filename = "AnghaBench/vlc/modules/access/extr_timecode.c_Open.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { i32, i32, ptr, ptr }
%struct.TYPE_7__ = type { i32, i32, i32 }
@VLC_EGENERIC = dso_local local_unnamed_addr global i32 0, align 4
@VLC_ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@SPU_ES = dso_local local_unnamed_addr global i32 0, align 4
@VLC_CODEC_ITU_T140 = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"timecode-fps\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"invalid frame rate\00", align 1
@VLC_TICK_0 = dso_local local_unnamed_addr global i32 0, align 4
@VLC_TICK_INVALID = dso_local local_unnamed_addr global i32 0, align 4
@Demux = dso_local local_unnamed_addr global i32 0, align 4
@Control = dso_local local_unnamed_addr global i32 0, align 4
@VLC_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @Open], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @Open(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 3
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i32, ptr @VLC_EGENERIC, align 4, !tbaa !11
br label %48
10: ; preds = %1
%11 = tail call ptr @vlc_obj_malloc(ptr noundef nonnull %0, i32 noundef 12) #3
%12 = icmp eq ptr %11, null
%13 = zext i1 %12 to i32
%14 = tail call i64 @unlikely(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %10
%17 = load i32, ptr @VLC_ENOMEM, align 4, !tbaa !11
br label %48
18: ; preds = %10
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%19 = load i32, ptr @SPU_ES, align 4, !tbaa !11
%20 = load i32, ptr @VLC_CODEC_ITU_T140, align 4, !tbaa !11
%21 = call i32 @es_format_Init(ptr noundef nonnull %2, i32 noundef %19, i32 noundef %20) #3
%22 = load ptr, ptr %5, align 8, !tbaa !5
%23 = call i32 @es_out_Add(ptr noundef %22, ptr noundef nonnull %2) #3
%24 = getelementptr inbounds %struct.TYPE_7__, ptr %11, i64 0, i32 2
store i32 %23, ptr %24, align 4, !tbaa !12
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%25 = call i64 @var_InheritURational(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull @.str) #3
%26 = icmp eq i64 %25, 0
%27 = load i32, ptr %3, align 4
%28 = icmp ne i32 %27, 0
%29 = select i1 %26, i1 %28, i1 false
%30 = load i32, ptr %4, align 4
%31 = icmp ne i32 %30, 0
%32 = select i1 %29, i1 %31, i1 false
br i1 %32, label %35, label %33
33: ; preds = %18
%34 = call i32 @msg_Err(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
br label %45
35: ; preds = %18
%36 = getelementptr inbounds %struct.TYPE_7__, ptr %11, i64 0, i32 1
%37 = call i32 @date_Init(ptr noundef nonnull %36, i32 noundef %27, i32 noundef %30) #3
%38 = load i32, ptr @VLC_TICK_0, align 4, !tbaa !11
%39 = call i32 @date_Set(ptr noundef nonnull %36, i32 noundef %38) #3
%40 = load i32, ptr @VLC_TICK_INVALID, align 4, !tbaa !11
store i32 %40, ptr %11, align 4, !tbaa !14
%41 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
store ptr %11, ptr %41, align 8, !tbaa !15
%42 = load i32, ptr @Demux, align 4, !tbaa !11
%43 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
store i32 %42, ptr %43, align 4, !tbaa !16
%44 = load i32, ptr @Control, align 4, !tbaa !11
store i32 %44, ptr %0, align 8, !tbaa !17
br label %45
45: ; preds = %35, %33
%46 = phi ptr [ @VLC_SUCCESS, %35 ], [ @VLC_EGENERIC, %33 ]
%47 = load i32, ptr %46, align 4, !tbaa !11
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
br label %48
48: ; preds = %16, %45, %8
%49 = phi i32 [ %9, %8 ], [ %17, %16 ], [ %47, %45 ]
ret i32 %49
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @vlc_obj_malloc(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i32 @es_format_Init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @es_out_Add(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @var_InheritURational(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @msg_Err(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @date_Init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @date_Set(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"TYPE_7__", !7, i64 0, !7, i64 4, !7, i64 8}
!14 = !{!13, !7, i64 0}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !7, i64 4}
!17 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/vlc/modules/access/extr_timecode.c_Open.c'
source_filename = "AnghaBench/vlc/modules/access/extr_timecode.c_Open.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VLC_EGENERIC = common local_unnamed_addr global i32 0, align 4
@VLC_ENOMEM = common local_unnamed_addr global i32 0, align 4
@SPU_ES = common local_unnamed_addr global i32 0, align 4
@VLC_CODEC_ITU_T140 = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"timecode-fps\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"invalid frame rate\00", align 1
@VLC_TICK_0 = common local_unnamed_addr global i32 0, align 4
@VLC_TICK_INVALID = common local_unnamed_addr global i32 0, align 4
@Demux = common local_unnamed_addr global i32 0, align 4
@Control = common local_unnamed_addr global i32 0, align 4
@VLC_SUCCESS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @Open], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @Open(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i32, ptr @VLC_EGENERIC, align 4, !tbaa !12
br label %48
10: ; preds = %1
%11 = tail call ptr @vlc_obj_malloc(ptr noundef nonnull %0, i32 noundef 12) #3
%12 = icmp eq ptr %11, null
%13 = zext i1 %12 to i32
%14 = tail call i64 @unlikely(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %10
%17 = load i32, ptr @VLC_ENOMEM, align 4, !tbaa !12
br label %48
18: ; preds = %10
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%19 = load i32, ptr @SPU_ES, align 4, !tbaa !12
%20 = load i32, ptr @VLC_CODEC_ITU_T140, align 4, !tbaa !12
%21 = call i32 @es_format_Init(ptr noundef nonnull %2, i32 noundef %19, i32 noundef %20) #3
%22 = load ptr, ptr %5, align 8, !tbaa !6
%23 = call i32 @es_out_Add(ptr noundef %22, ptr noundef nonnull %2) #3
%24 = getelementptr inbounds i8, ptr %11, i64 8
store i32 %23, ptr %24, align 4, !tbaa !13
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%25 = call i64 @var_InheritURational(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull @.str) #3
%26 = icmp eq i64 %25, 0
%27 = load i32, ptr %3, align 4
%28 = icmp ne i32 %27, 0
%29 = select i1 %26, i1 %28, i1 false
%30 = load i32, ptr %4, align 4
%31 = icmp ne i32 %30, 0
%32 = select i1 %29, i1 %31, i1 false
br i1 %32, label %35, label %33
33: ; preds = %18
%34 = call i32 @msg_Err(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
br label %45
35: ; preds = %18
%36 = getelementptr inbounds i8, ptr %11, i64 4
%37 = call i32 @date_Init(ptr noundef nonnull %36, i32 noundef %27, i32 noundef %30) #3
%38 = load i32, ptr @VLC_TICK_0, align 4, !tbaa !12
%39 = call i32 @date_Set(ptr noundef nonnull %36, i32 noundef %38) #3
%40 = load i32, ptr @VLC_TICK_INVALID, align 4, !tbaa !12
store i32 %40, ptr %11, align 4, !tbaa !15
%41 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %11, ptr %41, align 8, !tbaa !16
%42 = load i32, ptr @Demux, align 4, !tbaa !12
%43 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %42, ptr %43, align 4, !tbaa !17
%44 = load i32, ptr @Control, align 4, !tbaa !12
store i32 %44, ptr %0, align 8, !tbaa !18
br label %45
45: ; preds = %35, %33
%46 = phi ptr [ @VLC_SUCCESS, %35 ], [ @VLC_EGENERIC, %33 ]
%47 = load i32, ptr %46, align 4, !tbaa !12
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
br label %48
48: ; preds = %16, %45, %8
%49 = phi i32 [ %9, %8 ], [ %17, %16 ], [ %47, %45 ]
ret i32 %49
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @vlc_obj_malloc(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i32 @es_format_Init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @es_out_Add(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @var_InheritURational(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @msg_Err(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @date_Init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @date_Set(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 16}
!7 = !{!"TYPE_6__", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !8, i64 8}
!14 = !{!"TYPE_7__", !8, i64 0, !8, i64 4, !8, i64 8}
!15 = !{!14, !8, i64 0}
!16 = !{!7, !11, i64 8}
!17 = !{!7, !8, i64 4}
!18 = !{!7, !8, i64 0}
| vlc_modules_access_extr_timecode.c_Open |
; ModuleID = 'AnghaBench/linux/kernel/trace/extr_trace_events_hist.c___create_val_field.c'
source_filename = "AnghaBench/linux/kernel/trace/extr_trace_events_hist.c___create_val_field.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hist_trigger_data = type { i64, i32, ptr }
@TRACING_MAP_VALS_MAX = dso_local local_unnamed_addr global i64 0, align 8
@TRACING_MAP_VARS_MAX = dso_local local_unnamed_addr global i64 0, align 8
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__create_val_field], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @__create_val_field(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = tail call ptr @parse_expr(ptr noundef %0, ptr noundef %2, ptr noundef %4, i64 noundef %5, ptr noundef %3, i32 noundef 0) #2
%8 = tail call i64 @IS_ERR(ptr noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @PTR_ERR(ptr noundef %7) #2
br label %32
12: ; preds = %6
%13 = getelementptr inbounds %struct.hist_trigger_data, ptr %0, i64 0, i32 2
%14 = load ptr, ptr %13, align 8, !tbaa !5
%15 = zext i32 %1 to i64
%16 = getelementptr inbounds ptr, ptr %14, i64 %15
store ptr %7, ptr %16, align 8, !tbaa !12
%17 = load i64, ptr %0, align 8, !tbaa !13
%18 = add nsw i64 %17, 1
store i64 %18, ptr %0, align 8, !tbaa !13
%19 = getelementptr inbounds %struct.hist_trigger_data, ptr %0, i64 0, i32 1
%20 = load i32, ptr %19, align 8, !tbaa !14
%21 = add nsw i32 %20, 1
store i32 %21, ptr %19, align 8, !tbaa !14
%22 = load i64, ptr @TRACING_MAP_VALS_MAX, align 8, !tbaa !15
%23 = load i64, ptr @TRACING_MAP_VARS_MAX, align 8, !tbaa !15
%24 = add nsw i64 %23, %22
%25 = icmp sge i64 %17, %24
%26 = zext i1 %25 to i32
%27 = tail call i64 @WARN_ON(i32 noundef %26) #2
%28 = icmp eq i64 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %12
%30 = load i32, ptr @EINVAL, align 4, !tbaa !16
%31 = sub nsw i32 0, %30
br label %32
32: ; preds = %12, %29, %10
%33 = phi i32 [ %11, %10 ], [ %31, %29 ], [ 0, %12 ]
ret i32 %33
}
declare ptr @parse_expr(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i64 @WARN_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"hist_trigger_data", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/kernel/trace/extr_trace_events_hist.c___create_val_field.c'
source_filename = "AnghaBench/linux/kernel/trace/extr_trace_events_hist.c___create_val_field.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TRACING_MAP_VALS_MAX = common local_unnamed_addr global i64 0, align 8
@TRACING_MAP_VARS_MAX = common local_unnamed_addr global i64 0, align 8
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__create_val_field], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @__create_val_field(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #0 {
%7 = tail call ptr @parse_expr(ptr noundef %0, ptr noundef %2, ptr noundef %4, i64 noundef %5, ptr noundef %3, i32 noundef 0) #2
%8 = tail call i64 @IS_ERR(ptr noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @PTR_ERR(ptr noundef %7) #2
br label %32
12: ; preds = %6
%13 = getelementptr inbounds i8, ptr %0, i64 16
%14 = load ptr, ptr %13, align 8, !tbaa !6
%15 = zext i32 %1 to i64
%16 = getelementptr inbounds ptr, ptr %14, i64 %15
store ptr %7, ptr %16, align 8, !tbaa !13
%17 = load i64, ptr %0, align 8, !tbaa !14
%18 = add nsw i64 %17, 1
store i64 %18, ptr %0, align 8, !tbaa !14
%19 = getelementptr inbounds i8, ptr %0, i64 8
%20 = load i32, ptr %19, align 8, !tbaa !15
%21 = add nsw i32 %20, 1
store i32 %21, ptr %19, align 8, !tbaa !15
%22 = load i64, ptr @TRACING_MAP_VALS_MAX, align 8, !tbaa !16
%23 = load i64, ptr @TRACING_MAP_VARS_MAX, align 8, !tbaa !16
%24 = add nsw i64 %23, %22
%25 = icmp sge i64 %17, %24
%26 = zext i1 %25 to i32
%27 = tail call i64 @WARN_ON(i32 noundef %26) #2
%28 = icmp eq i64 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %12
%30 = load i32, ptr @EINVAL, align 4, !tbaa !17
%31 = sub nsw i32 0, %30
br label %32
32: ; preds = %12, %29, %10
%33 = phi i32 [ %11, %10 ], [ %31, %29 ], [ 0, %12 ]
ret i32 %33
}
declare ptr @parse_expr(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i64 @WARN_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 16}
!7 = !{!"hist_trigger_data", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!7, !8, i64 0}
!15 = !{!7, !11, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!11, !11, i64 0}
| linux_kernel_trace_extr_trace_events_hist.c___create_val_field |
; ModuleID = 'AnghaBench/freebsd/sys/geom/raid/extr_md_jmicron.c_jmicron_meta_copy.c'
source_filename = "AnghaBench/freebsd/sys/geom/raid/extr_md_jmicron.c_jmicron_meta_copy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@M_MD_JMICRON = dso_local local_unnamed_addr global i32 0, align 4
@M_WAITOK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @jmicron_meta_copy], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @jmicron_meta_copy(ptr noundef %0) #0 {
%2 = load i32, ptr @M_MD_JMICRON, align 4, !tbaa !5
%3 = load i32, ptr @M_WAITOK, align 4, !tbaa !5
%4 = tail call ptr @malloc(i32 noundef 4, i32 noundef %2, i32 noundef %3) #2
%5 = tail call i32 @memcpy(ptr noundef %4, ptr noundef %0, i32 noundef 4) #2
ret ptr %4
}
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/geom/raid/extr_md_jmicron.c_jmicron_meta_copy.c'
source_filename = "AnghaBench/freebsd/sys/geom/raid/extr_md_jmicron.c_jmicron_meta_copy.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@M_MD_JMICRON = common local_unnamed_addr global i32 0, align 4
@M_WAITOK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @jmicron_meta_copy], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @jmicron_meta_copy(ptr noundef %0) #0 {
%2 = load i32, ptr @M_MD_JMICRON, align 4, !tbaa !6
%3 = load i32, ptr @M_WAITOK, align 4, !tbaa !6
%4 = tail call ptr @malloc(i32 noundef 4, i32 noundef %2, i32 noundef %3) #2
%5 = tail call i32 @memcpy(ptr noundef %4, ptr noundef %0, i32 noundef 4) #2
ret ptr %4
}
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_geom_raid_extr_md_jmicron.c_jmicron_meta_copy |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/ath10k/extr_htt_rx.c_ath10k_htt_set_paddrs_ring_64.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/ath10k/extr_htt_rx.c_ath10k_htt_set_paddrs_ring_64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @ath10k_htt_set_paddrs_ring_64], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ath10k_htt_set_paddrs_ring_64(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @__cpu_to_le64(i32 noundef %1) #2
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds i32, ptr %5, i64 %6
store i32 %4, ptr %7, align 4, !tbaa !11
ret void
}
declare i32 @__cpu_to_le64(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"ath10k_htt", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/ath10k/extr_htt_rx.c_ath10k_htt_set_paddrs_ring_64.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/ath10k/extr_htt_rx.c_ath10k_htt_set_paddrs_ring_64.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ath10k_htt_set_paddrs_ring_64], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ath10k_htt_set_paddrs_ring_64(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @__cpu_to_le64(i32 noundef %1) #2
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds i32, ptr %5, i64 %6
store i32 %4, ptr %7, align 4, !tbaa !12
ret void
}
declare i32 @__cpu_to_le64(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"ath10k_htt", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !10, i64 0}
| linux_drivers_net_wireless_ath_ath10k_extr_htt_rx.c_ath10k_htt_set_paddrs_ring_64 |
; ModuleID = 'AnghaBench/mongoose/extr_mongoose.c_cs_base64_emit_chunk.c'
source_filename = "AnghaBench/mongoose/extr_mongoose.c_cs_base64_emit_chunk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.cs_base64_ctx = type { ptr, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @cs_base64_emit_chunk], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cs_base64_emit_chunk(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !11
%4 = getelementptr inbounds i32, ptr %2, i64 1
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = getelementptr inbounds i32, ptr %2, i64 2
%7 = load i32, ptr %6, align 4, !tbaa !11
%8 = ashr i32 %3, 2
%9 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %8) #2
%10 = shl i32 %3, 4
%11 = and i32 %10, 48
%12 = ashr i32 %5, 4
%13 = or i32 %11, %12
%14 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %13) #2
%15 = getelementptr inbounds %struct.cs_base64_ctx, ptr %0, i64 0, i32 1
%16 = load i32, ptr %15, align 8, !tbaa !12
%17 = icmp sgt i32 %16, 1
br i1 %17, label %18, label %29
18: ; preds = %1
%19 = shl i32 %5, 2
%20 = and i32 %19, 60
%21 = ashr i32 %7, 6
%22 = or i32 %20, %21
%23 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %22) #2
%24 = load i32, ptr %15, align 8, !tbaa !12
%25 = icmp sgt i32 %24, 2
br i1 %25, label %26, label %29
26: ; preds = %18
%27 = and i32 %7, 63
%28 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %27) #2
br label %29
29: ; preds = %1, %26, %18
ret void
}
declare i32 @cs_base64_emit_code(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"cs_base64_ctx", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/mongoose/extr_mongoose.c_cs_base64_emit_chunk.c'
source_filename = "AnghaBench/mongoose/extr_mongoose.c_cs_base64_emit_chunk.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @cs_base64_emit_chunk], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cs_base64_emit_chunk(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !12
%4 = getelementptr inbounds i8, ptr %2, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = getelementptr inbounds i8, ptr %2, i64 8
%7 = load i32, ptr %6, align 4, !tbaa !12
%8 = ashr i32 %3, 2
%9 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %8) #2
%10 = shl i32 %3, 4
%11 = and i32 %10, 48
%12 = ashr i32 %5, 4
%13 = or i32 %11, %12
%14 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %13) #2
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load i32, ptr %15, align 8, !tbaa !13
%17 = icmp sgt i32 %16, 1
br i1 %17, label %18, label %29
18: ; preds = %1
%19 = shl i32 %5, 2
%20 = and i32 %19, 60
%21 = ashr i32 %7, 6
%22 = or i32 %20, %21
%23 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %22) #2
%24 = load i32, ptr %15, align 8, !tbaa !13
%25 = icmp sgt i32 %24, 2
br i1 %25, label %26, label %29
26: ; preds = %18
%27 = and i32 %7, 63
%28 = tail call i32 @cs_base64_emit_code(ptr noundef nonnull %0, i32 noundef %27) #2
br label %29
29: ; preds = %1, %26, %18
ret void
}
declare i32 @cs_base64_emit_code(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"cs_base64_ctx", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !11, i64 8}
| mongoose_extr_mongoose.c_cs_base64_emit_chunk |
; ModuleID = 'AnghaBench/linux/arch/powerpc/kvm/extr_e500_mmu_host.c_write_stlbe.c'
source_filename = "AnghaBench/linux/arch/powerpc/kvm/extr_e500_mmu_host.c_write_stlbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @write_stlbe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @write_stlbe(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call i32 (...) @preempt_disable() #2
%7 = tail call i32 @kvmppc_e500_get_tlb_stid(ptr noundef %0, ptr noundef %1) #2
%8 = tail call i32 @MAS1_TID(i32 noundef %7) #2
%9 = load i32, ptr %2, align 4, !tbaa !5
%10 = or i32 %9, %8
store i32 %10, ptr %2, align 4, !tbaa !5
%11 = tail call i32 @write_host_tlbe(ptr noundef %0, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %2) #2
%12 = tail call i32 (...) @preempt_enable() #2
ret void
}
declare i32 @preempt_disable(...) local_unnamed_addr #1
declare i32 @kvmppc_e500_get_tlb_stid(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @MAS1_TID(i32 noundef) local_unnamed_addr #1
declare i32 @write_host_tlbe(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @preempt_enable(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"kvm_book3e_206_tlb_entry", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/arch/powerpc/kvm/extr_e500_mmu_host.c_write_stlbe.c'
source_filename = "AnghaBench/linux/arch/powerpc/kvm/extr_e500_mmu_host.c_write_stlbe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @write_stlbe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @write_stlbe(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call i32 @preempt_disable() #2
%7 = tail call i32 @kvmppc_e500_get_tlb_stid(ptr noundef %0, ptr noundef %1) #2
%8 = tail call i32 @MAS1_TID(i32 noundef %7) #2
%9 = load i32, ptr %2, align 4, !tbaa !6
%10 = or i32 %9, %8
store i32 %10, ptr %2, align 4, !tbaa !6
%11 = tail call i32 @write_host_tlbe(ptr noundef %0, i32 noundef %3, i32 noundef %4, ptr noundef nonnull %2) #2
%12 = tail call i32 @preempt_enable() #2
ret void
}
declare i32 @preempt_disable(...) local_unnamed_addr #1
declare i32 @kvmppc_e500_get_tlb_stid(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @MAS1_TID(i32 noundef) local_unnamed_addr #1
declare i32 @write_host_tlbe(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @preempt_enable(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"kvm_book3e_206_tlb_entry", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_arch_powerpc_kvm_extr_e500_mmu_host.c_write_stlbe |
; ModuleID = 'AnghaBench/exploitdb/exploits/php/webapps/extr_866.c_main.c'
source_filename = "AnghaBench/exploitdb/exploits/php/webapps/extr_866.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.hostent = type { i32, i32 }
@AF_INET = dso_local local_unnamed_addr global i32 0, align 4
@SOCK_STREAM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"clear\00", align 1
@PORT = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [85 x i8] c"[*] Now check on\0A http://%s%s\0A\0A your username: %s\0A with password: anacron\0A\0A\00", align 1
@str = private unnamed_addr constant [37 x i8] c"[*] Creating socket [OK]\00", align 1
@str.5 = private unnamed_addr constant [37 x i8] c"[*] Resolving victim host [OK]\00", align 1
@str.6 = private unnamed_addr constant [37 x i8] c"[*] Connecting at victim host [OK]\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.sockaddr_in, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
%4 = icmp eq i32 %0, 4
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 (...) @info() #6
br label %7
7: ; preds = %5, %2
%8 = load i32, ptr @AF_INET, align 4, !tbaa !5
%9 = load i32, ptr @SOCK_STREAM, align 4, !tbaa !5
%10 = tail call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef 0) #6
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %7
%13 = tail call i32 (...) @errsock() #6
br label %14
14: ; preds = %12, %7
%15 = tail call i32 @system(ptr noundef nonnull @.str) #6
%16 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
%17 = getelementptr inbounds ptr, ptr %1, i64 1
%18 = load ptr, ptr %17, align 8, !tbaa !9
%19 = tail call ptr @gethostbyname(ptr noundef %18) #6
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = tail call i32 (...) @errgeth() #6
br label %23
23: ; preds = %21, %14
%24 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str.5)
%25 = call i32 @memset(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 12) #6
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i64 0, i32 2
%27 = getelementptr inbounds %struct.hostent, ptr %19, i64 0, i32 1
%28 = load i32, ptr %27, align 4, !tbaa !11
%29 = load i32, ptr %19, align 4, !tbaa !13
%30 = call i32 @memcpy(ptr noundef nonnull %26, i32 noundef %28, i32 noundef %29) #6
%31 = load i32, ptr @AF_INET, align 4, !tbaa !5
%32 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i64 0, i32 1
store i32 %31, ptr %32, align 4, !tbaa !14
%33 = load i32, ptr @PORT, align 4, !tbaa !5
%34 = call i32 @htons(i32 noundef %33) #6
store i32 %34, ptr %3, align 4, !tbaa !16
%35 = call i32 @connect(i32 noundef %10, ptr noundef nonnull %3, i32 noundef 12) #6
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %23
%38 = call i32 (...) @errsock() #6
br label %39
39: ; preds = %37, %23
%40 = call i32 @puts(ptr nonnull dereferenceable(1) @str.6)
%41 = call i32 @sendxpl(i32 noundef %10, ptr noundef nonnull %1) #6
%42 = load ptr, ptr %17, align 8, !tbaa !9
%43 = getelementptr inbounds ptr, ptr %1, i64 2
%44 = load ptr, ptr %43, align 8, !tbaa !9
%45 = getelementptr inbounds ptr, ptr %1, i64 3
%46 = load ptr, ptr %45, align 8, !tbaa !9
%47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %42, ptr noundef %44, ptr noundef %46)
%48 = call i32 @shutdown(i32 noundef %10, i32 noundef 2) #6
%49 = call i32 @close(i32 noundef %10) #6
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @info(...) local_unnamed_addr #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errsock(...) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4
declare ptr @gethostbyname(ptr noundef) local_unnamed_addr #2
declare i32 @errgeth(...) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sendxpl(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @shutdown(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind }
attributes #6 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 4}
!12 = !{!"hostent", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 0}
!14 = !{!15, !6, i64 4}
!15 = !{!"sockaddr_in", !6, i64 0, !6, i64 4, !6, i64 8}
!16 = !{!15, !6, i64 0}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/php/webapps/extr_866.c_main.c'
source_filename = "AnghaBench/exploitdb/exploits/php/webapps/extr_866.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = common local_unnamed_addr global i32 0, align 4
@SOCK_STREAM = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"clear\00", align 1
@PORT = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [85 x i8] c"[*] Now check on\0A http://%s%s\0A\0A your username: %s\0A with password: anacron\0A\0A\00", align 1
@str = private unnamed_addr constant [37 x i8] c"[*] Creating socket [OK]\00", align 1
@str.5 = private unnamed_addr constant [37 x i8] c"[*] Resolving victim host [OK]\00", align 1
@str.6 = private unnamed_addr constant [37 x i8] c"[*] Connecting at victim host [OK]\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.sockaddr_in, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
%4 = icmp eq i32 %0, 4
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @info() #6
br label %7
7: ; preds = %5, %2
%8 = load i32, ptr @AF_INET, align 4, !tbaa !6
%9 = load i32, ptr @SOCK_STREAM, align 4, !tbaa !6
%10 = tail call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef 0) #6
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %7
%13 = tail call i32 @errsock() #6
br label %14
14: ; preds = %12, %7
%15 = tail call i32 @system(ptr noundef nonnull @.str) #6
%16 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
%17 = getelementptr inbounds i8, ptr %1, i64 8
%18 = load ptr, ptr %17, align 8, !tbaa !10
%19 = tail call ptr @gethostbyname(ptr noundef %18) #6
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %14
%22 = tail call i32 @errgeth() #6
br label %23
23: ; preds = %21, %14
%24 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str.5)
%25 = call i32 @memset(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 12) #6
%26 = getelementptr inbounds i8, ptr %3, i64 8
%27 = getelementptr inbounds i8, ptr %19, i64 4
%28 = load i32, ptr %27, align 4, !tbaa !12
%29 = load i32, ptr %19, align 4, !tbaa !14
%30 = call i32 @memcpy(ptr noundef nonnull %26, i32 noundef %28, i32 noundef %29) #6
%31 = load i32, ptr @AF_INET, align 4, !tbaa !6
%32 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %31, ptr %32, align 4, !tbaa !15
%33 = load i32, ptr @PORT, align 4, !tbaa !6
%34 = call i32 @htons(i32 noundef %33) #6
store i32 %34, ptr %3, align 4, !tbaa !17
%35 = call i32 @connect(i32 noundef %10, ptr noundef nonnull %3, i32 noundef 12) #6
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %23
%38 = call i32 @errsock() #6
br label %39
39: ; preds = %37, %23
%40 = call i32 @puts(ptr nonnull dereferenceable(1) @str.6)
%41 = call i32 @sendxpl(i32 noundef %10, ptr noundef nonnull %1) #6
%42 = load ptr, ptr %17, align 8, !tbaa !10
%43 = getelementptr inbounds i8, ptr %1, i64 16
%44 = load ptr, ptr %43, align 8, !tbaa !10
%45 = getelementptr inbounds i8, ptr %1, i64 24
%46 = load ptr, ptr %45, align 8, !tbaa !10
%47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %42, ptr noundef %44, ptr noundef %46)
%48 = call i32 @shutdown(i32 noundef %10, i32 noundef 2) #6
%49 = call i32 @close(i32 noundef %10) #6
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @info(...) local_unnamed_addr #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errsock(...) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4
declare ptr @gethostbyname(ptr noundef) local_unnamed_addr #2
declare i32 @errgeth(...) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sendxpl(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @shutdown(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #5 = { nofree nounwind }
attributes #6 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 4}
!13 = !{!"hostent", !7, i64 0, !7, i64 4}
!14 = !{!13, !7, i64 0}
!15 = !{!16, !7, i64 4}
!16 = !{!"sockaddr_in", !7, i64 0, !7, i64 4, !7, i64 8}
!17 = !{!16, !7, i64 0}
| exploitdb_exploits_php_webapps_extr_866.c_main |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/extr_fman_memac.c_fman_memac_set_hash_table.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/extr_fman_memac.c_fman_memac_set_hash_table.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @fman_memac_set_hash_table(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @iowrite32be(i32 noundef %1, ptr noundef %0) #2
ret void
}
declare i32 @iowrite32be(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/extr_fman_memac.c_fman_memac_set_hash_table.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/extr_fman_memac.c_fman_memac_set_hash_table.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @fman_memac_set_hash_table(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @iowrite32be(i32 noundef %1, ptr noundef %0) #2
ret void
}
declare i32 @iowrite32be(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_sys_contrib_ncsw_Peripherals_FM_MAC_extr_fman_memac.c_fman_memac_set_hash_table |
; ModuleID = 'AnghaBench/openwrt/target/linux/generic/files/drivers/net/phy/extr_mvsw61xx.c_mvsw61xx_vlan_port_config.c'
source_filename = "AnghaBench/openwrt/target/linux/generic/files/drivers/net/phy/extr_mvsw61xx.c_mvsw61xx_vlan_port_config.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mvsw61xx_state = type { ptr, ptr }
%struct.TYPE_3__ = type { i32, i32, i64, i32 }
%struct.TYPE_4__ = type { i32, i32, i32, i32 }
@MV_VTUCTL_EGRESS_TAGGED = dso_local local_unnamed_addr global i32 0, align 4
@MV_8021Q_MODE_SECURE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mvsw61xx_vlan_port_config], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mvsw61xx_vlan_port_config(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @get_state(ptr noundef %0) #2
%4 = load i32, ptr %0, align 4, !tbaa !5
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %49
6: ; preds = %2
%7 = getelementptr inbounds %struct.mvsw61xx_state, ptr %3, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !10
%9 = sext i32 %1 to i64
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 %9
%11 = load i32, ptr %10, align 8, !tbaa !13
%12 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 %9, i32 1
%13 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 %9, i32 3
%14 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 %9, i32 2
%15 = zext nneg i32 %4 to i64
br label %16
16: ; preds = %6, %46
%17 = phi i64 [ 0, %6 ], [ %47, %46 ]
%18 = trunc i64 %17 to i32
%19 = shl nuw i32 1, %18
%20 = and i32 %11, %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %46, label %22
22: ; preds = %16
%23 = load i32, ptr %12, align 4, !tbaa !16
%24 = shl nsw i32 %18, 2
%25 = ashr i32 %23, %24
%26 = and i32 %25, 15
%27 = load i32, ptr @MV_VTUCTL_EGRESS_TAGGED, align 4, !tbaa !17
%28 = icmp eq i32 %26, %27
br i1 %28, label %33, label %29
29: ; preds = %22
%30 = load i32, ptr %13, align 8, !tbaa !18
%31 = load ptr, ptr %3, align 8, !tbaa !19
%32 = getelementptr inbounds %struct.TYPE_4__, ptr %31, i64 %17, i32 3
store i32 %30, ptr %32, align 4, !tbaa !20
br label %33
33: ; preds = %29, %22
%34 = load i64, ptr %14, align 8, !tbaa !22
%35 = icmp eq i64 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %33
%37 = load ptr, ptr %3, align 8, !tbaa !19
%38 = getelementptr inbounds %struct.TYPE_4__, ptr %37, i64 %17
%39 = load i32, ptr %38, align 4, !tbaa !23
%40 = or i32 %39, %11
store i32 %40, ptr %38, align 4, !tbaa !23
%41 = getelementptr inbounds %struct.TYPE_4__, ptr %37, i64 %17, i32 1
store i32 %1, ptr %41, align 4, !tbaa !24
br label %46
42: ; preds = %33
%43 = load i32, ptr @MV_8021Q_MODE_SECURE, align 4, !tbaa !17
%44 = load ptr, ptr %3, align 8, !tbaa !19
%45 = getelementptr inbounds %struct.TYPE_4__, ptr %44, i64 %17, i32 2
store i32 %43, ptr %45, align 4, !tbaa !25
br label %46
46: ; preds = %36, %42, %16
%47 = add nuw nsw i64 %17, 1
%48 = icmp eq i64 %47, %15
br i1 %48, label %49, label %16, !llvm.loop !26
49: ; preds = %46, %2
ret void
}
declare ptr @get_state(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"switch_dev", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"mvsw61xx_state", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0, !7, i64 4, !15, i64 8, !7, i64 16}
!15 = !{!"long", !8, i64 0}
!16 = !{!14, !7, i64 4}
!17 = !{!7, !7, i64 0}
!18 = !{!14, !7, i64 16}
!19 = !{!11, !12, i64 0}
!20 = !{!21, !7, i64 12}
!21 = !{!"TYPE_4__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!22 = !{!14, !15, i64 8}
!23 = !{!21, !7, i64 0}
!24 = !{!21, !7, i64 4}
!25 = !{!21, !7, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/openwrt/target/linux/generic/files/drivers/net/phy/extr_mvsw61xx.c_mvsw61xx_vlan_port_config.c'
source_filename = "AnghaBench/openwrt/target/linux/generic/files/drivers/net/phy/extr_mvsw61xx.c_mvsw61xx_vlan_port_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { i32, i32, i64, i32 }
%struct.TYPE_4__ = type { i32, i32, i32, i32 }
@MV_VTUCTL_EGRESS_TAGGED = common local_unnamed_addr global i32 0, align 4
@MV_8021Q_MODE_SECURE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mvsw61xx_vlan_port_config], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mvsw61xx_vlan_port_config(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @get_state(ptr noundef %0) #2
%4 = load i32, ptr %0, align 4, !tbaa !6
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %49
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %3, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = sext i32 %1 to i64
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 %9
%11 = load i32, ptr %10, align 8, !tbaa !14
%12 = getelementptr inbounds i8, ptr %10, i64 4
%13 = getelementptr inbounds i8, ptr %10, i64 16
%14 = getelementptr inbounds i8, ptr %10, i64 8
%15 = zext nneg i32 %4 to i64
br label %16
16: ; preds = %6, %46
%17 = phi i64 [ 0, %6 ], [ %47, %46 ]
%18 = trunc nuw nsw i64 %17 to i32
%19 = shl nuw i32 1, %18
%20 = and i32 %11, %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %46, label %22
22: ; preds = %16
%23 = load i32, ptr %12, align 4, !tbaa !17
%24 = shl i32 %18, 2
%25 = ashr i32 %23, %24
%26 = and i32 %25, 15
%27 = load i32, ptr @MV_VTUCTL_EGRESS_TAGGED, align 4, !tbaa !18
%28 = icmp eq i32 %26, %27
br i1 %28, label %33, label %29
29: ; preds = %22
%30 = load i32, ptr %13, align 8, !tbaa !19
%31 = load ptr, ptr %3, align 8, !tbaa !20
%32 = getelementptr inbounds %struct.TYPE_4__, ptr %31, i64 %17, i32 3
store i32 %30, ptr %32, align 4, !tbaa !21
br label %33
33: ; preds = %29, %22
%34 = load i64, ptr %14, align 8, !tbaa !23
%35 = icmp eq i64 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %33
%37 = load ptr, ptr %3, align 8, !tbaa !20
%38 = getelementptr inbounds %struct.TYPE_4__, ptr %37, i64 %17
%39 = load i32, ptr %38, align 4, !tbaa !24
%40 = or i32 %39, %11
store i32 %40, ptr %38, align 4, !tbaa !24
%41 = getelementptr inbounds %struct.TYPE_4__, ptr %37, i64 %17, i32 1
store i32 %1, ptr %41, align 4, !tbaa !25
br label %46
42: ; preds = %33
%43 = load i32, ptr @MV_8021Q_MODE_SECURE, align 4, !tbaa !18
%44 = load ptr, ptr %3, align 8, !tbaa !20
%45 = getelementptr inbounds %struct.TYPE_4__, ptr %44, i64 %17, i32 2
store i32 %43, ptr %45, align 4, !tbaa !26
br label %46
46: ; preds = %36, %42, %16
%47 = add nuw nsw i64 %17, 1
%48 = icmp eq i64 %47, %15
br i1 %48, label %49, label %16, !llvm.loop !27
49: ; preds = %46, %2
ret void
}
declare ptr @get_state(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"switch_dev", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 8}
!12 = !{!"mvsw61xx_state", !13, i64 0, !13, i64 8}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_3__", !8, i64 0, !8, i64 4, !16, i64 8, !8, i64 16}
!16 = !{!"long", !9, i64 0}
!17 = !{!15, !8, i64 4}
!18 = !{!8, !8, i64 0}
!19 = !{!15, !8, i64 16}
!20 = !{!12, !13, i64 0}
!21 = !{!22, !8, i64 12}
!22 = !{!"TYPE_4__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!23 = !{!15, !16, i64 8}
!24 = !{!22, !8, i64 0}
!25 = !{!22, !8, i64 4}
!26 = !{!22, !8, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
| openwrt_target_linux_generic_files_drivers_net_phy_extr_mvsw61xx.c_mvsw61xx_vlan_port_config |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_tst_16_ai.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_tst_16_ai.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FLAG_N = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_Z = dso_local local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_V = dso_local local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_C = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @m68k_op_tst_16_ai() local_unnamed_addr #0 {
%1 = tail call i32 (...) @OPER_AY_AI_16() #2
%2 = tail call i32 @NFLAG_16(i32 noundef %1) #2
store i32 %2, ptr @FLAG_N, align 4, !tbaa !5
store i32 %1, ptr @FLAG_Z, align 4, !tbaa !5
%3 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !5
store i32 %3, ptr @FLAG_V, align 4, !tbaa !5
%4 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !5
store i32 %4, ptr @FLAG_C, align 4, !tbaa !5
ret void
}
declare i32 @OPER_AY_AI_16(...) local_unnamed_addr #1
declare i32 @NFLAG_16(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_tst_16_ai.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_tst_16_ai.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FLAG_N = common local_unnamed_addr global i32 0, align 4
@FLAG_Z = common local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_V = common local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_C = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @m68k_op_tst_16_ai() local_unnamed_addr #0 {
%1 = tail call i32 @OPER_AY_AI_16() #2
%2 = tail call i32 @NFLAG_16(i32 noundef %1) #2
store i32 %2, ptr @FLAG_N, align 4, !tbaa !6
store i32 %1, ptr @FLAG_Z, align 4, !tbaa !6
%3 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !6
store i32 %3, ptr @FLAG_V, align 4, !tbaa !6
%4 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !6
store i32 %4, ptr @FLAG_C, align 4, !tbaa !6
ret void
}
declare i32 @OPER_AY_AI_16(...) local_unnamed_addr #1
declare i32 @NFLAG_16(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_Yabause_yabause_src_musashi_extr_m68kopnz.c_m68k_op_tst_16_ai |
; ModuleID = 'AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware.c_dw_pcie_find_capability.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware.c_dw_pcie_find_capability.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PCI_CAPABILITY_LIST = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @dw_pcie_find_capability(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @PCI_CAPABILITY_LIST, align 4, !tbaa !5
%4 = tail call i32 @dw_pcie_readw_dbi(ptr noundef %0, i32 noundef %3) #2
%5 = and i32 %4, 255
%6 = tail call i32 @__dw_pcie_find_next_cap(ptr noundef %0, i32 noundef %5, i32 noundef %1) #2
ret i32 %6
}
declare i32 @dw_pcie_readw_dbi(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__dw_pcie_find_next_cap(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware.c_dw_pcie_find_capability.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware.c_dw_pcie_find_capability.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCI_CAPABILITY_LIST = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @dw_pcie_find_capability(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @PCI_CAPABILITY_LIST, align 4, !tbaa !6
%4 = tail call i32 @dw_pcie_readw_dbi(ptr noundef %0, i32 noundef %3) #2
%5 = and i32 %4, 255
%6 = tail call i32 @__dw_pcie_find_next_cap(ptr noundef %0, i32 noundef %5, i32 noundef %1) #2
ret i32 %6
}
declare i32 @dw_pcie_readw_dbi(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__dw_pcie_find_next_cap(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_pci_controller_dwc_extr_pcie-designware.c_dw_pcie_find_capability |
; ModuleID = 'AnghaBench/sway/common/extr_stringop.c_lenient_strcmp.c'
source_filename = "AnghaBench/sway/common/extr_stringop.c_lenient_strcmp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @lenient_strcmp(ptr noundef readonly %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, %1
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = icmp eq ptr %0, null
br i1 %5, label %10, label %6
6: ; preds = %4
%7 = icmp eq ptr %1, null
br i1 %7, label %10, label %8
8: ; preds = %6
%9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) %1)
br label %10
10: ; preds = %6, %4, %2, %8
%11 = phi i32 [ %9, %8 ], [ 0, %2 ], [ -1, %4 ], [ 1, %6 ]
ret i32 %11
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/sway/common/extr_stringop.c_lenient_strcmp.c'
source_filename = "AnghaBench/sway/common/extr_stringop.c_lenient_strcmp.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define i32 @lenient_strcmp(ptr noundef readonly %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %0, %1
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = icmp eq ptr %0, null
br i1 %5, label %10, label %6
6: ; preds = %4
%7 = icmp eq ptr %1, null
br i1 %7, label %10, label %8
8: ; preds = %6
%9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) %1)
br label %10
10: ; preds = %6, %4, %2, %8
%11 = phi i32 [ %9, %8 ], [ 0, %2 ], [ -1, %4 ], [ 1, %6 ]
ret i32 %11
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| sway_common_extr_stringop.c_lenient_strcmp |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_ibmveth.c_ibmveth_init_buffer_pool.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_ibmveth.c_ibmveth_init_buffer_pool.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ibmveth_buff_pool = type { i32, i32, i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ibmveth_init_buffer_pool], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @ibmveth_init_buffer_pool(ptr nocapture noundef writeonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
store i32 %2, ptr %0, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.ibmveth_buff_pool, ptr %0, i64 0, i32 1
store i32 %1, ptr %6, align 4, !tbaa !10
%7 = getelementptr inbounds %struct.ibmveth_buff_pool, ptr %0, i64 0, i32 2
store i32 %3, ptr %7, align 4, !tbaa !11
%8 = mul nsw i32 %2, 7
%9 = sdiv i32 %8, 8
%10 = getelementptr inbounds %struct.ibmveth_buff_pool, ptr %0, i64 0, i32 3
store i32 %9, ptr %10, align 4, !tbaa !12
%11 = getelementptr inbounds %struct.ibmveth_buff_pool, ptr %0, i64 0, i32 4
store i32 %4, ptr %11, align 4, !tbaa !13
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ibmveth_buff_pool", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 12}
!13 = !{!6, !7, i64 16}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_ibmveth.c_ibmveth_init_buffer_pool.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_ibmveth.c_ibmveth_init_buffer_pool.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ibmveth_init_buffer_pool], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @ibmveth_init_buffer_pool(ptr nocapture noundef writeonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
store i32 %2, ptr %0, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %1, ptr %6, align 4, !tbaa !11
%7 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %3, ptr %7, align 4, !tbaa !12
%8 = mul nsw i32 %2, 7
%9 = sdiv i32 %8, 8
%10 = getelementptr inbounds i8, ptr %0, i64 12
store i32 %9, ptr %10, align 4, !tbaa !13
%11 = getelementptr inbounds i8, ptr %0, i64 16
store i32 %4, ptr %11, align 4, !tbaa !14
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ibmveth_buff_pool", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !8, i64 12}
!14 = !{!7, !8, i64 16}
| fastsocket_kernel_drivers_net_extr_ibmveth.c_ibmveth_init_buffer_pool |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/savage/extr_savage_bci.c_savage_freelist_get.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/savage/extr_savage_bci.c_savage_freelist_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { ptr, i32, i32, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { ptr }
%struct.TYPE_7__ = type { ptr, ptr, ptr, %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32, i32 }
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@SAVAGE_STATUS_WORD1 = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c" tail=0x%04x %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c" head=0x%04x %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"returning NULL, tail->buf=%p!\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @savage_freelist_get], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @savage_freelist_get(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 3
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str) #3
%6 = tail call i32 (...) @UPDATE_EVENT_COUNTER() #3
%7 = load ptr, ptr %2, align 8, !tbaa !14
%8 = icmp eq ptr %7, null
br i1 %8, label %12, label %9
9: ; preds = %1
%10 = getelementptr inbounds i32, ptr %7, i64 1
%11 = load i32, ptr %10, align 4, !tbaa !15
br label %15
12: ; preds = %1
%13 = load i32, ptr @SAVAGE_STATUS_WORD1, align 4, !tbaa !15
%14 = tail call i32 @SAVAGE_READ(i32 noundef %13) #3
br label %15
15: ; preds = %12, %9
%16 = phi i32 [ %11, %9 ], [ %14, %12 ]
%17 = and i32 %16, 65535
%18 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 1
%19 = load i32, ptr %18, align 8, !tbaa !16
%20 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 2
%21 = load i32, ptr %20, align 4, !tbaa !17
%22 = icmp sgt i32 %17, %21
%23 = sext i1 %22 to i32
%24 = add i32 %19, %23
%25 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 3
%26 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 3, i32 1
%27 = load i32, ptr %26, align 4, !tbaa !18
%28 = load i32, ptr %25, align 8, !tbaa !21
%29 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str.1, i32 noundef %27, i32 noundef %28) #3
%30 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str.2, i32 noundef %17, i32 noundef %24) #3
%31 = load ptr, ptr %4, align 8, !tbaa !22
%32 = icmp eq ptr %31, null
br i1 %32, label %46, label %33
33: ; preds = %15
%34 = tail call i64 @TEST_AGE(ptr noundef nonnull %25, i32 noundef %17, i32 noundef %24) #3
%35 = icmp ne i64 %34, 0
%36 = icmp eq i32 %17, 0
%37 = or i1 %36, %35
%38 = load ptr, ptr %4, align 8, !tbaa !22
br i1 %37, label %39, label %46
39: ; preds = %33
%40 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 2
%41 = load ptr, ptr %40, align 8, !tbaa !23
%42 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 1
%43 = load ptr, ptr %42, align 8, !tbaa !24
%44 = getelementptr inbounds %struct.TYPE_7__, ptr %43, i64 0, i32 2
store ptr %41, ptr %44, align 8, !tbaa !23
%45 = getelementptr inbounds %struct.TYPE_7__, ptr %41, i64 0, i32 1
store ptr %43, ptr %45, align 8, !tbaa !24
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %42, i8 0, i64 16, i1 false)
br label %49
46: ; preds = %33, %15
%47 = phi ptr [ %38, %33 ], [ null, %15 ]
%48 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str.3, ptr noundef %47) #3
br label %49
49: ; preds = %46, %39
%50 = phi ptr [ %38, %39 ], [ null, %46 ]
ret ptr %50
}
declare i32 @DRM_DEBUG(ptr noundef, ...) local_unnamed_addr #1
declare i32 @UPDATE_EVENT_COUNTER(...) local_unnamed_addr #1
declare i32 @SAVAGE_READ(i32 noundef) local_unnamed_addr #1
declare i64 @TEST_AGE(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"drm_device", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 16}
!11 = !{!"TYPE_6__", !7, i64 0, !12, i64 8, !12, i64 12, !13, i64 16}
!12 = !{!"int", !8, i64 0}
!13 = !{!"TYPE_5__", !7, i64 0}
!14 = !{!11, !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!11, !12, i64 8}
!17 = !{!11, !12, i64 12}
!18 = !{!19, !12, i64 28}
!19 = !{!"TYPE_7__", !7, i64 0, !7, i64 8, !7, i64 16, !20, i64 24}
!20 = !{!"TYPE_8__", !12, i64 0, !12, i64 4}
!21 = !{!19, !12, i64 24}
!22 = !{!19, !7, i64 0}
!23 = !{!19, !7, i64 16}
!24 = !{!19, !7, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/savage/extr_savage_bci.c_savage_freelist_get.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/savage/extr_savage_bci.c_savage_freelist_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@SAVAGE_STATUS_WORD1 = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c" tail=0x%04x %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c" head=0x%04x %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"returning NULL, tail->buf=%p!\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @savage_freelist_get], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @savage_freelist_get(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %2, i64 16
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str) #3
%6 = tail call i32 @UPDATE_EVENT_COUNTER() #3
%7 = load ptr, ptr %2, align 8, !tbaa !15
%8 = icmp eq ptr %7, null
br i1 %8, label %12, label %9
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %7, i64 4
%11 = load i32, ptr %10, align 4, !tbaa !16
br label %15
12: ; preds = %1
%13 = load i32, ptr @SAVAGE_STATUS_WORD1, align 4, !tbaa !16
%14 = tail call i32 @SAVAGE_READ(i32 noundef %13) #3
br label %15
15: ; preds = %12, %9
%16 = phi i32 [ %11, %9 ], [ %14, %12 ]
%17 = and i32 %16, 65535
%18 = getelementptr inbounds i8, ptr %2, i64 8
%19 = load i32, ptr %18, align 8, !tbaa !17
%20 = getelementptr inbounds i8, ptr %2, i64 12
%21 = load i32, ptr %20, align 4, !tbaa !18
%22 = icmp sgt i32 %17, %21
%23 = sext i1 %22 to i32
%24 = add i32 %19, %23
%25 = getelementptr inbounds i8, ptr %4, i64 24
%26 = getelementptr inbounds i8, ptr %4, i64 28
%27 = load i32, ptr %26, align 4, !tbaa !19
%28 = load i32, ptr %25, align 8, !tbaa !22
%29 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str.1, i32 noundef %27, i32 noundef %28) #3
%30 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str.2, i32 noundef %17, i32 noundef %24) #3
%31 = load ptr, ptr %4, align 8, !tbaa !23
%32 = icmp eq ptr %31, null
br i1 %32, label %46, label %33
33: ; preds = %15
%34 = tail call i64 @TEST_AGE(ptr noundef nonnull %25, i32 noundef %17, i32 noundef %24) #3
%35 = icmp ne i64 %34, 0
%36 = icmp eq i32 %17, 0
%37 = or i1 %36, %35
%38 = load ptr, ptr %4, align 8, !tbaa !23
br i1 %37, label %39, label %46
39: ; preds = %33
%40 = getelementptr inbounds i8, ptr %4, i64 16
%41 = load ptr, ptr %40, align 8, !tbaa !24
%42 = getelementptr inbounds i8, ptr %4, i64 8
%43 = load ptr, ptr %42, align 8, !tbaa !25
%44 = getelementptr inbounds i8, ptr %43, i64 16
store ptr %41, ptr %44, align 8, !tbaa !24
%45 = getelementptr inbounds i8, ptr %41, i64 8
store ptr %43, ptr %45, align 8, !tbaa !25
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %42, i8 0, i64 16, i1 false)
br label %49
46: ; preds = %33, %15
%47 = phi ptr [ %38, %33 ], [ null, %15 ]
%48 = tail call i32 (ptr, ...) @DRM_DEBUG(ptr noundef nonnull @.str.3, ptr noundef %47) #3
br label %49
49: ; preds = %46, %39
%50 = phi ptr [ %38, %39 ], [ null, %46 ]
ret ptr %50
}
declare i32 @DRM_DEBUG(ptr noundef, ...) local_unnamed_addr #1
declare i32 @UPDATE_EVENT_COUNTER(...) local_unnamed_addr #1
declare i32 @SAVAGE_READ(i32 noundef) local_unnamed_addr #1
declare i64 @TEST_AGE(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"drm_device", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 16}
!12 = !{!"TYPE_6__", !8, i64 0, !13, i64 8, !13, i64 12, !14, i64 16}
!13 = !{!"int", !9, i64 0}
!14 = !{!"TYPE_5__", !8, i64 0}
!15 = !{!12, !8, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !13, i64 12}
!19 = !{!20, !13, i64 28}
!20 = !{!"TYPE_7__", !8, i64 0, !8, i64 8, !8, i64 16, !21, i64 24}
!21 = !{!"TYPE_8__", !13, i64 0, !13, i64 4}
!22 = !{!20, !13, i64 24}
!23 = !{!20, !8, i64 0}
!24 = !{!20, !8, i64 16}
!25 = !{!20, !8, i64 8}
| fastsocket_kernel_drivers_gpu_drm_savage_extr_savage_bci.c_savage_freelist_get |
; ModuleID = 'AnghaBench/RetroArch/midi/drivers/extr_null_midi.c_null_midi_set_input.c'
source_filename = "AnghaBench/RetroArch/midi/drivers/extr_null_midi.c_null_midi_set_input.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"Null\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @null_midi_set_input], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @null_midi_set_input(ptr nocapture readnone %0, ptr noundef %1) #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = tail call i64 @string_is_equal(ptr noundef nonnull %1, ptr noundef nonnull @.str) #2
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %2
%9 = phi i32 [ 1, %2 ], [ %7, %4 ]
ret i32 %9
}
declare i64 @string_is_equal(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/RetroArch/midi/drivers/extr_null_midi.c_null_midi_set_input.c'
source_filename = "AnghaBench/RetroArch/midi/drivers/extr_null_midi.c_null_midi_set_input.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"Null\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @null_midi_set_input], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @null_midi_set_input(ptr nocapture readnone %0, ptr noundef %1) #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = tail call i64 @string_is_equal(ptr noundef nonnull %1, ptr noundef nonnull @.str) #2
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %2
%9 = phi i32 [ 1, %2 ], [ %7, %4 ]
ret i32 %9
}
declare i64 @string_is_equal(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| RetroArch_midi_drivers_extr_null_midi.c_null_midi_set_input |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_content_filter.c_cfil_data_start.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_content_filter.c_cfil_data_start.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mbuf = type { i32, ptr }
@M_PKTHDR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cfil_data_start], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define internal noundef ptr @cfil_data_start(ptr noundef readonly %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = load i32, ptr @M_PKTHDR, align 4, !tbaa !5
br label %5
5: ; preds = %3, %10
%6 = phi ptr [ %0, %3 ], [ %12, %10 ]
%7 = load i32, ptr %6, align 8, !tbaa !9
%8 = and i32 %4, %7
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = getelementptr inbounds %struct.mbuf, ptr %6, i64 0, i32 1
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %5, !llvm.loop !13
14: ; preds = %10, %5, %1
%15 = phi ptr [ null, %1 ], [ %6, %5 ], [ null, %10 ]
ret ptr %15
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"mbuf", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_content_filter.c_cfil_data_start.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_content_filter.c_cfil_data_start.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@M_PKTHDR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cfil_data_start], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define internal noundef ptr @cfil_data_start(ptr noundef readonly %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = load i32, ptr @M_PKTHDR, align 4, !tbaa !6
br label %5
5: ; preds = %3, %10
%6 = phi ptr [ %0, %3 ], [ %12, %10 ]
%7 = load i32, ptr %6, align 8, !tbaa !10
%8 = and i32 %4, %7
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = getelementptr inbounds i8, ptr %6, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !13
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %5, !llvm.loop !14
14: ; preds = %10, %5, %1
%15 = phi ptr [ null, %1 ], [ %6, %5 ], [ null, %10 ]
ret ptr %15
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"mbuf", !7, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| darwin-xnu_bsd_net_extr_content_filter.c_cfil_data_start |
; ModuleID = 'AnghaBench/linux/drivers/mtd/devices/extr_mtd_dataflash.c_jedec_probe.c'
source_filename = "AnghaBench/linux/drivers/mtd/devices/extr_mtd_dataflash.c_jedec_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@OP_READ_ID = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [27 x i8] c"error %d reading JEDEC ID\0A\00", align 1
@CFI_MFR_ATMEL = dso_local local_unnamed_addr global i64 0, align 8
@DATAFLASH_SHIFT_EXTID = dso_local local_unnamed_addr global i32 0, align 4
@DATAFLASH_SHIFT_ID = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"JEDEC id %016llx not handled\0A\00", align 1
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @jedec_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @jedec_probe(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [4 x i64], align 16
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%4 = load i64, ptr @OP_READ_ID, align 8, !tbaa !5
store i64 %4, ptr %2, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %3, i8 0, i64 32, i1 false)
%5 = call i32 @spi_write_then_read(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 5) #4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @dev_dbg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %5) #4
br label %30
9: ; preds = %1
%10 = load i64, ptr %3, align 16, !tbaa !5
%11 = load i64, ptr @CFI_MFR_ATMEL, align 8, !tbaa !5
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %9
%14 = call i32 @be64_to_cpup(ptr noundef nonnull %3) #4
%15 = load i32, ptr @DATAFLASH_SHIFT_EXTID, align 4, !tbaa !9
%16 = ashr i32 %14, %15
%17 = call ptr @jedec_lookup(ptr noundef %0, i32 noundef %16, i32 noundef 1) #4
%18 = call i32 @IS_ERR(ptr noundef %17) #4
%19 = icmp eq i32 %18, 0
br i1 %19, label %33, label %20
20: ; preds = %13
%21 = load i32, ptr @DATAFLASH_SHIFT_ID, align 4, !tbaa !9
%22 = ashr i32 %14, %21
%23 = call ptr @jedec_lookup(ptr noundef %0, i32 noundef %22, i32 noundef 0) #4
%24 = call i32 @IS_ERR(ptr noundef %23) #4
%25 = icmp eq i32 %24, 0
br i1 %25, label %33, label %26
26: ; preds = %20
%27 = call i32 @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef %14) #4
%28 = load i32, ptr @ENODEV, align 4, !tbaa !9
%29 = sub nsw i32 0, %28
br label %30
30: ; preds = %7, %26
%31 = phi i32 [ %29, %26 ], [ %5, %7 ]
%32 = call ptr @ERR_PTR(i32 noundef %31) #4
br label %33
33: ; preds = %30, %20, %13, %9
%34 = phi ptr [ null, %9 ], [ %17, %13 ], [ %23, %20 ], [ %32, %30 ]
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret ptr %34
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @spi_write_then_read(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @dev_dbg(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #3
declare i32 @be64_to_cpup(ptr noundef) local_unnamed_addr #3
declare ptr @jedec_lookup(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare i32 @IS_ERR(ptr noundef) local_unnamed_addr #3
declare i32 @dev_warn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/mtd/devices/extr_mtd_dataflash.c_jedec_probe.c'
source_filename = "AnghaBench/linux/drivers/mtd/devices/extr_mtd_dataflash.c_jedec_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OP_READ_ID = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [27 x i8] c"error %d reading JEDEC ID\0A\00", align 1
@CFI_MFR_ATMEL = common local_unnamed_addr global i64 0, align 8
@DATAFLASH_SHIFT_EXTID = common local_unnamed_addr global i32 0, align 4
@DATAFLASH_SHIFT_ID = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"JEDEC id %016llx not handled\0A\00", align 1
@ENODEV = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @jedec_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @jedec_probe(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [4 x i64], align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%4 = load i64, ptr @OP_READ_ID, align 8, !tbaa !6
store i64 %4, ptr %2, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 0, i64 32, i1 false)
%5 = call i32 @spi_write_then_read(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 1, ptr noundef nonnull %3, i32 noundef 5) #4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @dev_dbg(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %5) #4
br label %30
9: ; preds = %1
%10 = load i64, ptr %3, align 8, !tbaa !6
%11 = load i64, ptr @CFI_MFR_ATMEL, align 8, !tbaa !6
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %9
%14 = call i32 @be64_to_cpup(ptr noundef nonnull %3) #4
%15 = load i32, ptr @DATAFLASH_SHIFT_EXTID, align 4, !tbaa !10
%16 = ashr i32 %14, %15
%17 = call ptr @jedec_lookup(ptr noundef %0, i32 noundef %16, i32 noundef 1) #4
%18 = call i32 @IS_ERR(ptr noundef %17) #4
%19 = icmp eq i32 %18, 0
br i1 %19, label %33, label %20
20: ; preds = %13
%21 = load i32, ptr @DATAFLASH_SHIFT_ID, align 4, !tbaa !10
%22 = ashr i32 %14, %21
%23 = call ptr @jedec_lookup(ptr noundef %0, i32 noundef %22, i32 noundef 0) #4
%24 = call i32 @IS_ERR(ptr noundef %23) #4
%25 = icmp eq i32 %24, 0
br i1 %25, label %33, label %26
26: ; preds = %20
%27 = call i32 @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef %14) #4
%28 = load i32, ptr @ENODEV, align 4, !tbaa !10
%29 = sub nsw i32 0, %28
br label %30
30: ; preds = %7, %26
%31 = phi i32 [ %29, %26 ], [ %5, %7 ]
%32 = call ptr @ERR_PTR(i32 noundef %31) #4
br label %33
33: ; preds = %30, %20, %13, %9
%34 = phi ptr [ null, %9 ], [ %17, %13 ], [ %23, %20 ], [ %32, %30 ]
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret ptr %34
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @spi_write_then_read(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @dev_dbg(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #3
declare i32 @be64_to_cpup(ptr noundef) local_unnamed_addr #3
declare ptr @jedec_lookup(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare i32 @IS_ERR(ptr noundef) local_unnamed_addr #3
declare i32 @dev_warn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| linux_drivers_mtd_devices_extr_mtd_dataflash.c_jedec_probe |
; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/function/extr_f_fs.c_ffs_data_reset.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/function/extr_f_fs.c_ffs_data_reset.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ffs_data = type { i64, i32, i32, %struct.TYPE_2__, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr }
%struct.TYPE_2__ = type { i64 }
@FFS_READ_DESCRIPTORS = dso_local local_unnamed_addr global i32 0, align 4
@FFS_NO_SETUP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ffs_data_reset], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ffs_data_reset(ptr noundef %0) #0 {
%2 = tail call i32 (...) @ENTER() #3
%3 = tail call i32 @ffs_data_clear(ptr noundef %0) #3
%4 = getelementptr inbounds %struct.ffs_data, ptr %0, i64 0, i32 3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %4, i8 0, i64 104, i1 false)
%5 = load i32, ptr @FFS_READ_DESCRIPTORS, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.ffs_data, ptr %0, i64 0, i32 2
store i32 %5, ptr %6, align 4, !tbaa !9
%7 = load i32, ptr @FFS_NO_SETUP, align 4, !tbaa !5
%8 = getelementptr inbounds %struct.ffs_data, ptr %0, i64 0, i32 1
store i32 %7, ptr %8, align 8, !tbaa !14
store i64 0, ptr %0, align 8, !tbaa !15
ret void
}
declare i32 @ENTER(...) local_unnamed_addr #1
declare i32 @ffs_data_clear(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 12}
!10 = !{!"ffs_data", !11, i64 0, !6, i64 8, !6, i64 12, !12, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112}
!11 = !{!"long", !7, i64 0}
!12 = !{!"TYPE_2__", !11, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/function/extr_f_fs.c_ffs_data_reset.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/function/extr_f_fs.c_ffs_data_reset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FFS_READ_DESCRIPTORS = common local_unnamed_addr global i32 0, align 4
@FFS_NO_SETUP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ffs_data_reset], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ffs_data_reset(ptr noundef %0) #0 {
%2 = tail call i32 @ENTER() #3
%3 = tail call i32 @ffs_data_clear(ptr noundef %0) #3
%4 = getelementptr inbounds i8, ptr %0, i64 16
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %4, i8 0, i64 104, i1 false)
%5 = load i32, ptr @FFS_READ_DESCRIPTORS, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %0, i64 12
store i32 %5, ptr %6, align 4, !tbaa !10
%7 = load i32, ptr @FFS_NO_SETUP, align 4, !tbaa !6
%8 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %7, ptr %8, align 8, !tbaa !15
store i64 0, ptr %0, align 8, !tbaa !16
ret void
}
declare i32 @ENTER(...) local_unnamed_addr #1
declare i32 @ffs_data_clear(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 12}
!11 = !{!"ffs_data", !12, i64 0, !7, i64 8, !7, i64 12, !13, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_2__", !12, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !7, i64 8}
!16 = !{!11, !12, i64 0}
| linux_drivers_usb_gadget_function_extr_f_fs.c_ffs_data_reset |
; ModuleID = 'AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware-plat.c_dw_plat_pcie_host_init.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware-plat.c_dw_plat_pcie_host_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CONFIG_PCI_MSI = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dw_plat_pcie_host_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @dw_plat_pcie_host_init(ptr noundef %0) #0 {
%2 = tail call ptr @to_dw_pcie_from_pp(ptr noundef %0) #2
%3 = tail call i32 @dw_pcie_setup_rc(ptr noundef %0) #2
%4 = tail call i32 @dw_pcie_wait_for_link(ptr noundef %2) #2
%5 = load i32, ptr @CONFIG_PCI_MSI, align 4, !tbaa !5
%6 = tail call i64 @IS_ENABLED(i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @dw_pcie_msi_init(ptr noundef %0) #2
br label %10
10: ; preds = %8, %1
ret i32 0
}
declare ptr @to_dw_pcie_from_pp(ptr noundef) local_unnamed_addr #1
declare i32 @dw_pcie_setup_rc(ptr noundef) local_unnamed_addr #1
declare i32 @dw_pcie_wait_for_link(ptr noundef) local_unnamed_addr #1
declare i64 @IS_ENABLED(i32 noundef) local_unnamed_addr #1
declare i32 @dw_pcie_msi_init(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware-plat.c_dw_plat_pcie_host_init.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/dwc/extr_pcie-designware-plat.c_dw_plat_pcie_host_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CONFIG_PCI_MSI = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dw_plat_pcie_host_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @dw_plat_pcie_host_init(ptr noundef %0) #0 {
%2 = tail call ptr @to_dw_pcie_from_pp(ptr noundef %0) #2
%3 = tail call i32 @dw_pcie_setup_rc(ptr noundef %0) #2
%4 = tail call i32 @dw_pcie_wait_for_link(ptr noundef %2) #2
%5 = load i32, ptr @CONFIG_PCI_MSI, align 4, !tbaa !6
%6 = tail call i64 @IS_ENABLED(i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @dw_pcie_msi_init(ptr noundef %0) #2
br label %10
10: ; preds = %8, %1
ret i32 0
}
declare ptr @to_dw_pcie_from_pp(ptr noundef) local_unnamed_addr #1
declare i32 @dw_pcie_setup_rc(ptr noundef) local_unnamed_addr #1
declare i32 @dw_pcie_wait_for_link(ptr noundef) local_unnamed_addr #1
declare i64 @IS_ENABLED(i32 noundef) local_unnamed_addr #1
declare i32 @dw_pcie_msi_init(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_pci_controller_dwc_extr_pcie-designware-plat.c_dw_plat_pcie_host_init |
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_regcache.c_write_pc_pid.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_regcache.c_write_pc_pid.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@inferior_ptid = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @write_pc_pid(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @inferior_ptid, align 4, !tbaa !5
store i32 %1, ptr @inferior_ptid, align 4, !tbaa !5
%4 = tail call i32 @TARGET_WRITE_PC(i32 noundef %0, i32 noundef %1) #2
store i32 %3, ptr @inferior_ptid, align 4, !tbaa !5
ret void
}
declare i32 @TARGET_WRITE_PC(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_regcache.c_write_pc_pid.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_regcache.c_write_pc_pid.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@inferior_ptid = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @write_pc_pid(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @inferior_ptid, align 4, !tbaa !6
store i32 %1, ptr @inferior_ptid, align 4, !tbaa !6
%4 = tail call i32 @TARGET_WRITE_PC(i32 noundef %0, i32 noundef %1) #2
store i32 %3, ptr @inferior_ptid, align 4, !tbaa !6
ret void
}
declare i32 @TARGET_WRITE_PC(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gdb_gdb_extr_regcache.c_write_pc_pid |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_atom.c_atom_op_mul32.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_atom.c_atom_op_mul32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c" src1: \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c" src2: \00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @atom_op_mul32], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @atom_op_mul32(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = add nsw i32 %4, 1
store i32 %5, ptr %1, align 4, !tbaa !5
%6 = tail call i32 @U8(i32 noundef %4) #2
%7 = tail call i32 @SDEBUG(ptr noundef nonnull @.str) #2
%8 = tail call i64 @atom_get_dst(ptr noundef %0, i32 noundef %2, i32 noundef %6, ptr noundef nonnull %1, ptr noundef null, i32 noundef 1) #2
%9 = tail call i32 @SDEBUG(ptr noundef nonnull @.str.1) #2
%10 = tail call i64 @atom_get_src(ptr noundef %0, i32 noundef %6, ptr noundef nonnull %1) #2
%11 = trunc i64 %8 to i32
%12 = trunc i64 %10 to i32
%13 = mul nsw i32 %12, %11
%14 = tail call i32 @lower_32_bits(i32 noundef %13) #2
%15 = load ptr, ptr %0, align 8, !tbaa !9
%16 = load ptr, ptr %15, align 8, !tbaa !12
store i32 %14, ptr %16, align 4, !tbaa !5
%17 = tail call i32 @upper_32_bits(i32 noundef %13) #2
%18 = load ptr, ptr %0, align 8, !tbaa !9
%19 = load ptr, ptr %18, align 8, !tbaa !12
%20 = getelementptr inbounds i32, ptr %19, i64 1
store i32 %17, ptr %20, align 4, !tbaa !5
ret void
}
declare i32 @U8(i32 noundef) local_unnamed_addr #1
declare i32 @SDEBUG(ptr noundef) local_unnamed_addr #1
declare i64 @atom_get_dst(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @atom_get_src(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lower_32_bits(i32 noundef) local_unnamed_addr #1
declare i32 @upper_32_bits(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_7__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_6__", !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_atom.c_atom_op_mul32.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_atom.c_atom_op_mul32.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [10 x i8] c" src1: \00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c" src2: \00", align 1
@llvm.used = appending global [1 x ptr] [ptr @atom_op_mul32], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @atom_op_mul32(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr %1, align 4, !tbaa !6
%5 = add nsw i32 %4, 1
store i32 %5, ptr %1, align 4, !tbaa !6
%6 = tail call i32 @U8(i32 noundef %4) #2
%7 = tail call i32 @SDEBUG(ptr noundef nonnull @.str) #2
%8 = tail call i64 @atom_get_dst(ptr noundef %0, i32 noundef %2, i32 noundef %6, ptr noundef nonnull %1, ptr noundef null, i32 noundef 1) #2
%9 = tail call i32 @SDEBUG(ptr noundef nonnull @.str.1) #2
%10 = tail call i64 @atom_get_src(ptr noundef %0, i32 noundef %6, ptr noundef nonnull %1) #2
%11 = trunc i64 %8 to i32
%12 = trunc i64 %10 to i32
%13 = mul nsw i32 %12, %11
%14 = tail call i32 @lower_32_bits(i32 noundef %13) #2
%15 = load ptr, ptr %0, align 8, !tbaa !10
%16 = load ptr, ptr %15, align 8, !tbaa !13
store i32 %14, ptr %16, align 4, !tbaa !6
%17 = tail call i32 @upper_32_bits(i32 noundef %13) #2
%18 = load ptr, ptr %0, align 8, !tbaa !10
%19 = load ptr, ptr %18, align 8, !tbaa !13
%20 = getelementptr inbounds i8, ptr %19, i64 4
store i32 %17, ptr %20, align 4, !tbaa !6
ret void
}
declare i32 @U8(i32 noundef) local_unnamed_addr #1
declare i32 @SDEBUG(ptr noundef) local_unnamed_addr #1
declare i64 @atom_get_dst(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @atom_get_src(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lower_32_bits(i32 noundef) local_unnamed_addr #1
declare i32 @upper_32_bits(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_7__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_6__", !12, i64 0}
| linux_drivers_gpu_drm_amd_amdgpu_extr_atom.c_atom_op_mul32 |
; ModuleID = 'AnghaBench/linux/drivers/phy/qualcomm/extr_phy-qcom-ufs.c_ufs_qcom_phy_clk_get.c'
source_filename = "AnghaBench/linux/drivers/phy/qualcomm/extr_phy-qcom-ufs.c_ufs_qcom_phy_clk_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @ufs_qcom_phy_clk_get], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ufs_qcom_phy_clk_get(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @__ufs_qcom_phy_clk_get(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef 1) #2
ret i32 %4
}
declare i32 @__ufs_qcom_phy_clk_get(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/phy/qualcomm/extr_phy-qcom-ufs.c_ufs_qcom_phy_clk_get.c'
source_filename = "AnghaBench/linux/drivers/phy/qualcomm/extr_phy-qcom-ufs.c_ufs_qcom_phy_clk_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ufs_qcom_phy_clk_get], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ufs_qcom_phy_clk_get(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @__ufs_qcom_phy_clk_get(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef 1) #2
ret i32 %4
}
declare i32 @__ufs_qcom_phy_clk_get(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_phy_qualcomm_extr_phy-qcom-ufs.c_ufs_qcom_phy_clk_get |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/s390/kernel/extr_ipl.c_reipl_generic_loadparm_show.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/s390/kernel/extr_ipl.c_reipl_generic_loadparm_show.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@LOADPARM_LEN = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @reipl_generic_loadparm_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @reipl_generic_loadparm_show(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @LOADPARM_LEN, align 4, !tbaa !5
%4 = add nsw i32 %3, 1
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5, align 16
%7 = call i32 @reipl_get_ascii_loadparm(ptr noundef nonnull %6, ptr noundef %0) #2
%8 = call i32 @sprintf(ptr noundef %1, ptr noundef nonnull @.str, ptr noundef nonnull %6) #2
ret i32 %8
}
declare i32 @reipl_get_ascii_loadparm(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/s390/kernel/extr_ipl.c_reipl_generic_loadparm_show.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/s390/kernel/extr_ipl.c_reipl_generic_loadparm_show.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LOADPARM_LEN = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @reipl_generic_loadparm_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @reipl_generic_loadparm_show(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @LOADPARM_LEN, align 4, !tbaa !6
%4 = add nsw i32 %3, 1
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5, align 1
%7 = call i32 @reipl_get_ascii_loadparm(ptr noundef nonnull %6, ptr noundef %0) #2
%8 = call i32 @sprintf(ptr noundef %1, ptr noundef nonnull @.str, ptr noundef nonnull %6) #2
ret i32 %8
}
declare i32 @reipl_get_ascii_loadparm(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_arch_s390_kernel_extr_ipl.c_reipl_generic_loadparm_show |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/mips/nxp/pnx833x/stb22x/extr_board.c_get_system_type.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/mips/nxp/pnx833x/stb22x/extr_board.c_get_system_type.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"NXP STB22x\00", align 1
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local noundef nonnull ptr @get_system_type() local_unnamed_addr #0 {
ret ptr @.str
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/mips/nxp/pnx833x/stb22x/extr_board.c_get_system_type.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/mips/nxp/pnx833x/stb22x/extr_board.c_get_system_type.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [11 x i8] c"NXP STB22x\00", align 1
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define noundef nonnull ptr @get_system_type() local_unnamed_addr #0 {
ret ptr @.str
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_arch_mips_nxp_pnx833x_stb22x_extr_board.c_get_system_type |
; ModuleID = 'AnghaBench/timescaledb/src/extr_indexing.c_create_default_indexes.c'
source_filename = "AnghaBench/timescaledb/src/extr_indexing.c_create_default_indexes.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_12__ = type { i32, i32, i32, i32 }
@SORTBY_DESC = dso_local local_unnamed_addr global i32 0, align 4
@T_IndexElem = dso_local local_unnamed_addr global i32 0, align 4
@SORTBY_ASC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @create_default_indexes], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @create_default_indexes(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca %struct.TYPE_12__, align 4
%7 = alloca %struct.TYPE_12__, align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
%8 = load i32, ptr @SORTBY_DESC, align 4, !tbaa !5
store i32 %8, ptr %6, align 4, !tbaa !9
%9 = getelementptr inbounds %struct.TYPE_12__, ptr %6, i64 0, i32 1
%10 = tail call i32 @get_open_dim_name(ptr noundef %1) #3
store i32 %10, ptr %9, align 4, !tbaa !11
%11 = getelementptr inbounds %struct.TYPE_12__, ptr %6, i64 0, i32 2
%12 = load i32, ptr @T_IndexElem, align 4, !tbaa !5
store i32 %12, ptr %11, align 4, !tbaa !12
%13 = getelementptr inbounds %struct.TYPE_12__, ptr %6, i64 0, i32 3
%14 = tail call i32 @get_open_dim_expr(ptr noundef %1) #3
store i32 %14, ptr %13, align 4, !tbaa !13
%15 = icmp eq ptr %1, null
br i1 %15, label %35, label %16
16: ; preds = %5
%17 = icmp eq i32 %3, 0
br i1 %17, label %18, label %21
18: ; preds = %16
%19 = call i32 @list_make1(ptr noundef nonnull %6) #3
%20 = call i32 @create_default_index(ptr noundef %0, i32 noundef %19) #3
br label %21
21: ; preds = %18, %16
%22 = icmp eq ptr %2, null
%23 = icmp ne i32 %4, 0
%24 = or i1 %22, %23
br i1 %24, label %35, label %25
25: ; preds = %21
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
%26 = load i32, ptr @SORTBY_ASC, align 4, !tbaa !5
store i32 %26, ptr %7, align 4, !tbaa !9
%27 = getelementptr inbounds %struct.TYPE_12__, ptr %7, i64 0, i32 1
%28 = load i32, ptr %2, align 4, !tbaa !14
%29 = call i32 @NameStr(i32 noundef %28) #3
store i32 %29, ptr %27, align 4, !tbaa !11
%30 = getelementptr inbounds %struct.TYPE_12__, ptr %7, i64 0, i32 2
%31 = load i32, ptr @T_IndexElem, align 4, !tbaa !5
store i32 %31, ptr %30, align 4, !tbaa !12
%32 = getelementptr inbounds %struct.TYPE_12__, ptr %7, i64 0, i32 3
store i32 0, ptr %32, align 4, !tbaa !13
%33 = call i32 @list_make2(ptr noundef nonnull %7, ptr noundef nonnull %6) #3
%34 = call i32 @create_default_index(ptr noundef %0, i32 noundef %33) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
br label %35
35: ; preds = %21, %25, %5
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @get_open_dim_name(ptr noundef) local_unnamed_addr #2
declare i32 @get_open_dim_expr(ptr noundef) local_unnamed_addr #2
declare i32 @create_default_index(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @list_make1(ptr noundef) local_unnamed_addr #2
declare i32 @NameStr(i32 noundef) local_unnamed_addr #2
declare i32 @list_make2(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_12__", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 12}
!14 = !{!15, !6, i64 0}
!15 = !{!"TYPE_13__", !16, i64 0}
!16 = !{!"TYPE_11__", !6, i64 0}
| ; ModuleID = 'AnghaBench/timescaledb/src/extr_indexing.c_create_default_indexes.c'
source_filename = "AnghaBench/timescaledb/src/extr_indexing.c_create_default_indexes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_12__ = type { i32, i32, i32, i32 }
@SORTBY_DESC = common local_unnamed_addr global i32 0, align 4
@T_IndexElem = common local_unnamed_addr global i32 0, align 4
@SORTBY_ASC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @create_default_indexes], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @create_default_indexes(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca %struct.TYPE_12__, align 4
%7 = alloca %struct.TYPE_12__, align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
%8 = load i32, ptr @SORTBY_DESC, align 4, !tbaa !6
store i32 %8, ptr %6, align 4, !tbaa !10
%9 = getelementptr inbounds i8, ptr %6, i64 4
%10 = tail call i32 @get_open_dim_name(ptr noundef %1) #3
store i32 %10, ptr %9, align 4, !tbaa !12
%11 = getelementptr inbounds i8, ptr %6, i64 8
%12 = load i32, ptr @T_IndexElem, align 4, !tbaa !6
store i32 %12, ptr %11, align 4, !tbaa !13
%13 = getelementptr inbounds i8, ptr %6, i64 12
%14 = tail call i32 @get_open_dim_expr(ptr noundef %1) #3
store i32 %14, ptr %13, align 4, !tbaa !14
%15 = icmp eq ptr %1, null
br i1 %15, label %35, label %16
16: ; preds = %5
%17 = icmp eq i32 %3, 0
br i1 %17, label %18, label %21
18: ; preds = %16
%19 = call i32 @list_make1(ptr noundef nonnull %6) #3
%20 = call i32 @create_default_index(ptr noundef %0, i32 noundef %19) #3
br label %21
21: ; preds = %18, %16
%22 = icmp eq ptr %2, null
%23 = icmp ne i32 %4, 0
%24 = or i1 %22, %23
br i1 %24, label %35, label %25
25: ; preds = %21
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
%26 = load i32, ptr @SORTBY_ASC, align 4, !tbaa !6
store i32 %26, ptr %7, align 4, !tbaa !10
%27 = getelementptr inbounds i8, ptr %7, i64 4
%28 = load i32, ptr %2, align 4, !tbaa !15
%29 = call i32 @NameStr(i32 noundef %28) #3
store i32 %29, ptr %27, align 4, !tbaa !12
%30 = getelementptr inbounds i8, ptr %7, i64 8
%31 = load i32, ptr @T_IndexElem, align 4, !tbaa !6
store i32 %31, ptr %30, align 4, !tbaa !13
%32 = getelementptr inbounds i8, ptr %7, i64 12
store i32 0, ptr %32, align 4, !tbaa !14
%33 = call i32 @list_make2(ptr noundef nonnull %7, ptr noundef nonnull %6) #3
%34 = call i32 @create_default_index(ptr noundef %0, i32 noundef %33) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
br label %35
35: ; preds = %21, %25, %5
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @get_open_dim_name(ptr noundef) local_unnamed_addr #2
declare i32 @get_open_dim_expr(ptr noundef) local_unnamed_addr #2
declare i32 @create_default_index(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @list_make1(ptr noundef) local_unnamed_addr #2
declare i32 @NameStr(i32 noundef) local_unnamed_addr #2
declare i32 @list_make2(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_12__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!12 = !{!11, !7, i64 4}
!13 = !{!11, !7, i64 8}
!14 = !{!11, !7, i64 12}
!15 = !{!16, !7, i64 0}
!16 = !{!"TYPE_13__", !17, i64 0}
!17 = !{!"TYPE_11__", !7, i64 0}
| timescaledb_src_extr_indexing.c_create_default_indexes |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_pretty-print.c_pp_base_character.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_pretty-print.c_pp_base_character.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_7__ = type { i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @pp_base_character(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i64 @pp_is_wrapping_line(ptr noundef %0) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2
%6 = tail call i64 @pp_remaining_character_count_for_line(ptr noundef %0) #2
%7 = icmp slt i64 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = tail call i32 @pp_newline(ptr noundef %0) #2
%10 = tail call i64 @ISSPACE(i32 noundef %1) #2
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %8, %5, %2
%13 = load ptr, ptr %0, align 8, !tbaa !5
%14 = getelementptr inbounds %struct.TYPE_7__, ptr %13, i64 0, i32 1
%15 = load i32, ptr %14, align 4, !tbaa !10
%16 = tail call i32 @obstack_1grow(i32 noundef %15, i32 noundef %1) #2
%17 = load ptr, ptr %0, align 8, !tbaa !5
%18 = load i32, ptr %17, align 4, !tbaa !13
%19 = add nsw i32 %18, 1
store i32 %19, ptr %17, align 4, !tbaa !13
br label %20
20: ; preds = %8, %12
ret void
}
declare i64 @pp_is_wrapping_line(ptr noundef) local_unnamed_addr #1
declare i64 @pp_remaining_character_count_for_line(ptr noundef) local_unnamed_addr #1
declare i32 @pp_newline(ptr noundef) local_unnamed_addr #1
declare i64 @ISSPACE(i32 noundef) local_unnamed_addr #1
declare i32 @obstack_1grow(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_8__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 4}
!11 = !{!"TYPE_7__", !12, i64 0, !12, i64 4}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !12, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_pretty-print.c_pp_base_character.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_pretty-print.c_pp_base_character.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @pp_base_character(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i64 @pp_is_wrapping_line(ptr noundef %0) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2
%6 = tail call i64 @pp_remaining_character_count_for_line(ptr noundef %0) #2
%7 = icmp slt i64 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = tail call i32 @pp_newline(ptr noundef %0) #2
%10 = tail call i64 @ISSPACE(i32 noundef %1) #2
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %8, %5, %2
%13 = load ptr, ptr %0, align 8, !tbaa !6
%14 = getelementptr inbounds i8, ptr %13, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !11
%16 = tail call i32 @obstack_1grow(i32 noundef %15, i32 noundef %1) #2
%17 = load ptr, ptr %0, align 8, !tbaa !6
%18 = load i32, ptr %17, align 4, !tbaa !14
%19 = add nsw i32 %18, 1
store i32 %19, ptr %17, align 4, !tbaa !14
br label %20
20: ; preds = %8, %12
ret void
}
declare i64 @pp_is_wrapping_line(ptr noundef) local_unnamed_addr #1
declare i64 @pp_remaining_character_count_for_line(ptr noundef) local_unnamed_addr #1
declare i32 @pp_newline(ptr noundef) local_unnamed_addr #1
declare i64 @ISSPACE(i32 noundef) local_unnamed_addr #1
declare i32 @obstack_1grow(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_8__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 4}
!12 = !{!"TYPE_7__", !13, i64 0, !13, i64 4}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !13, i64 0}
| freebsd_contrib_gcc_extr_pretty-print.c_pp_base_character |
; ModuleID = 'AnghaBench/linux/drivers/of/extr_property.c_of_property_read_string.c'
source_filename = "AnghaBench/linux/drivers/of/extr_property.c_of_property_read_string.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.property = type { ptr, i64 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@ENODATA = dso_local local_unnamed_addr global i32 0, align 4
@EILSEQ = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @of_property_read_string(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
%4 = tail call ptr @of_find_property(ptr noundef %0, ptr noundef %1, ptr noundef null) #3
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = load i32, ptr @EINVAL, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
br label %24
9: ; preds = %3
%10 = load ptr, ptr %4, align 8, !tbaa !9
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr @ENODATA, align 4, !tbaa !5
%14 = sub nsw i32 0, %13
br label %24
15: ; preds = %9
%16 = getelementptr inbounds %struct.property, ptr %4, i64 0, i32 1
%17 = load i64, ptr %16, align 8, !tbaa !13
%18 = tail call i64 @strnlen(ptr noundef nonnull %10, i64 noundef %17)
%19 = icmp slt i64 %18, %17
br i1 %19, label %23, label %20
20: ; preds = %15
%21 = load i32, ptr @EILSEQ, align 4, !tbaa !5
%22 = sub nsw i32 0, %21
br label %24
23: ; preds = %15
store ptr %10, ptr %2, align 8, !tbaa !14
br label %24
24: ; preds = %23, %20, %12, %6
%25 = phi i32 [ %22, %20 ], [ 0, %23 ], [ %14, %12 ], [ %8, %6 ]
ret i32 %25
}
declare ptr @of_find_property(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strnlen(ptr nocapture noundef, i64 noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"property", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/of/extr_property.c_of_property_read_string.c'
source_filename = "AnghaBench/linux/drivers/of/extr_property.c_of_property_read_string.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@ENODATA = common local_unnamed_addr global i32 0, align 4
@EILSEQ = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @of_property_read_string(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
%4 = tail call ptr @of_find_property(ptr noundef %0, ptr noundef %1, ptr noundef null) #3
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = load i32, ptr @EINVAL, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
br label %24
9: ; preds = %3
%10 = load ptr, ptr %4, align 8, !tbaa !10
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr @ENODATA, align 4, !tbaa !6
%14 = sub nsw i32 0, %13
br label %24
15: ; preds = %9
%16 = getelementptr inbounds i8, ptr %4, i64 8
%17 = load i64, ptr %16, align 8, !tbaa !14
%18 = tail call i64 @strnlen(ptr noundef nonnull %10, i64 noundef %17)
%19 = icmp slt i64 %18, %17
br i1 %19, label %23, label %20
20: ; preds = %15
%21 = load i32, ptr @EILSEQ, align 4, !tbaa !6
%22 = sub nsw i32 0, %21
br label %24
23: ; preds = %15
store ptr %10, ptr %2, align 8, !tbaa !15
br label %24
24: ; preds = %23, %20, %12, %6
%25 = phi i32 [ %22, %20 ], [ 0, %23 ], [ %14, %12 ], [ %8, %6 ]
ret i32 %25
}
declare ptr @of_find_property(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strnlen(ptr nocapture noundef, i64 noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"property", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!11, !13, i64 8}
!15 = !{!12, !12, i64 0}
| linux_drivers_of_extr_property.c_of_property_read_string |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ae/extr_if_ae.c_ae_phy_reset.c'
source_filename = "AnghaBench/freebsd/sys/dev/ae/extr_if_ae.c_ae_phy_reset.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@AE_PHY_ENABLE_REG = dso_local local_unnamed_addr global i32 0, align 4
@AE_PHY_ENABLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ae_phy_reset], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ae_phy_reset(ptr noundef %0) #0 {
%2 = load i32, ptr @AE_PHY_ENABLE_REG, align 4, !tbaa !5
%3 = load i32, ptr @AE_PHY_ENABLE, align 4, !tbaa !5
%4 = tail call i32 @AE_WRITE_4(ptr noundef %0, i32 noundef %2, i32 noundef %3) #2
%5 = tail call i32 @DELAY(i32 noundef 1000) #2
ret void
}
declare i32 @AE_WRITE_4(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @DELAY(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ae/extr_if_ae.c_ae_phy_reset.c'
source_filename = "AnghaBench/freebsd/sys/dev/ae/extr_if_ae.c_ae_phy_reset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AE_PHY_ENABLE_REG = common local_unnamed_addr global i32 0, align 4
@AE_PHY_ENABLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ae_phy_reset], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ae_phy_reset(ptr noundef %0) #0 {
%2 = load i32, ptr @AE_PHY_ENABLE_REG, align 4, !tbaa !6
%3 = load i32, ptr @AE_PHY_ENABLE, align 4, !tbaa !6
%4 = tail call i32 @AE_WRITE_4(ptr noundef %0, i32 noundef %2, i32 noundef %3) #2
%5 = tail call i32 @DELAY(i32 noundef 1000) #2
ret void
}
declare i32 @AE_WRITE_4(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @DELAY(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_dev_ae_extr_if_ae.c_ae_phy_reset |
; ModuleID = 'AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-cards.c_cx231xx_usb_disconnect.c'
source_filename = "AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-cards.c_cx231xx_usb_disconnect.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.cx231xx = type { i64, i32, i32, i32, i64, i32, i32, i32, i32, i32 }
@DEV_DISCONNECTED = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [82 x i8] c"device %s is open! Deregistration and memory deallocation are deferred on close.\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @cx231xx_usb_disconnect], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cx231xx_usb_disconnect(ptr noundef %0) #0 {
%2 = tail call ptr @usb_get_intfdata(ptr noundef %0) #2
%3 = tail call i32 @usb_set_intfdata(ptr noundef %0, ptr noundef null) #2
%4 = icmp eq ptr %2, null
br i1 %4, label %47, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 9
%7 = load i32, ptr %6, align 8, !tbaa !5
%8 = icmp eq i32 %7, 0
br i1 %8, label %47, label %9
9: ; preds = %5
%10 = load i32, ptr @DEV_DISCONNECTED, align 4, !tbaa !11
%11 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 8
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = or i32 %12, %10
store i32 %13, ptr %11, align 4, !tbaa !12
%14 = tail call i32 @flush_request_modules(ptr noundef nonnull %2) #2
%15 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 1
%16 = tail call i32 @mutex_lock(ptr noundef nonnull %15) #2
%17 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 7
%18 = tail call i32 @wake_up_interruptible_all(ptr noundef nonnull %17) #2
%19 = load i64, ptr %2, align 8, !tbaa !13
%20 = icmp eq i64 %19, 0
br i1 %20, label %40, label %21
21: ; preds = %9
%22 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 6
%23 = load i32, ptr %22, align 4, !tbaa !14
%24 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 5
%25 = tail call i32 @video_device_node_name(ptr noundef nonnull %24) #2
%26 = tail call i32 @dev_warn(i32 noundef %23, ptr noundef nonnull @.str, i32 noundef %25) #2
%27 = tail call i32 @cx231xx_ir_exit(ptr noundef nonnull %2) #2
%28 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 4
%29 = load i64, ptr %28, align 8, !tbaa !15
%30 = icmp eq i64 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %21
%32 = tail call i32 @cx231xx_uninit_isoc(ptr noundef nonnull %2) #2
br label %35
33: ; preds = %21
%34 = tail call i32 @cx231xx_uninit_bulk(ptr noundef nonnull %2) #2
br label %35
35: ; preds = %33, %31
%36 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 3
%37 = tail call i32 @wake_up_interruptible(ptr noundef nonnull %36) #2
%38 = getelementptr inbounds %struct.cx231xx, ptr %2, i64 0, i32 2
%39 = tail call i32 @wake_up_interruptible(ptr noundef nonnull %38) #2
br label %40
40: ; preds = %9, %35
%41 = tail call i32 @cx231xx_close_extension(ptr noundef nonnull %2) #2
%42 = tail call i32 @mutex_unlock(ptr noundef nonnull %15) #2
%43 = load i64, ptr %2, align 8, !tbaa !13
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = tail call i32 @cx231xx_release_resources(ptr noundef nonnull %2) #2
br label %47
47: ; preds = %40, %45, %5, %1
ret void
}
declare ptr @usb_get_intfdata(ptr noundef) local_unnamed_addr #1
declare i32 @usb_set_intfdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @flush_request_modules(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up_interruptible_all(ptr noundef) local_unnamed_addr #1
declare i32 @dev_warn(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @video_device_node_name(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_ir_exit(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_uninit_isoc(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_uninit_bulk(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up_interruptible(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_close_extension(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_release_resources(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 48}
!6 = !{!"cx231xx", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 44}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 36}
!15 = !{!6, !7, i64 24}
| ; ModuleID = 'AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-cards.c_cx231xx_usb_disconnect.c'
source_filename = "AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-cards.c_cx231xx_usb_disconnect.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DEV_DISCONNECTED = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [82 x i8] c"device %s is open! Deregistration and memory deallocation are deferred on close.\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @cx231xx_usb_disconnect], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cx231xx_usb_disconnect(ptr noundef %0) #0 {
%2 = tail call ptr @usb_get_intfdata(ptr noundef %0) #2
%3 = tail call i32 @usb_set_intfdata(ptr noundef %0, ptr noundef null) #2
%4 = icmp eq ptr %2, null
br i1 %4, label %47, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %2, i64 48
%7 = load i32, ptr %6, align 8, !tbaa !6
%8 = icmp eq i32 %7, 0
br i1 %8, label %47, label %9
9: ; preds = %5
%10 = load i32, ptr @DEV_DISCONNECTED, align 4, !tbaa !12
%11 = getelementptr inbounds i8, ptr %2, i64 44
%12 = load i32, ptr %11, align 4, !tbaa !13
%13 = or i32 %12, %10
store i32 %13, ptr %11, align 4, !tbaa !13
%14 = tail call i32 @flush_request_modules(ptr noundef nonnull %2) #2
%15 = getelementptr inbounds i8, ptr %2, i64 8
%16 = tail call i32 @mutex_lock(ptr noundef nonnull %15) #2
%17 = getelementptr inbounds i8, ptr %2, i64 40
%18 = tail call i32 @wake_up_interruptible_all(ptr noundef nonnull %17) #2
%19 = load i64, ptr %2, align 8, !tbaa !14
%20 = icmp eq i64 %19, 0
br i1 %20, label %40, label %21
21: ; preds = %9
%22 = getelementptr inbounds i8, ptr %2, i64 36
%23 = load i32, ptr %22, align 4, !tbaa !15
%24 = getelementptr inbounds i8, ptr %2, i64 32
%25 = tail call i32 @video_device_node_name(ptr noundef nonnull %24) #2
%26 = tail call i32 @dev_warn(i32 noundef %23, ptr noundef nonnull @.str, i32 noundef %25) #2
%27 = tail call i32 @cx231xx_ir_exit(ptr noundef nonnull %2) #2
%28 = getelementptr inbounds i8, ptr %2, i64 24
%29 = load i64, ptr %28, align 8, !tbaa !16
%30 = icmp eq i64 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %21
%32 = tail call i32 @cx231xx_uninit_isoc(ptr noundef nonnull %2) #2
br label %35
33: ; preds = %21
%34 = tail call i32 @cx231xx_uninit_bulk(ptr noundef nonnull %2) #2
br label %35
35: ; preds = %33, %31
%36 = getelementptr inbounds i8, ptr %2, i64 16
%37 = tail call i32 @wake_up_interruptible(ptr noundef nonnull %36) #2
%38 = getelementptr inbounds i8, ptr %2, i64 12
%39 = tail call i32 @wake_up_interruptible(ptr noundef nonnull %38) #2
br label %40
40: ; preds = %9, %35
%41 = tail call i32 @cx231xx_close_extension(ptr noundef nonnull %2) #2
%42 = tail call i32 @mutex_unlock(ptr noundef nonnull %15) #2
%43 = load i64, ptr %2, align 8, !tbaa !14
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = tail call i32 @cx231xx_release_resources(ptr noundef nonnull %2) #2
br label %47
47: ; preds = %40, %45, %5, %1
ret void
}
declare ptr @usb_get_intfdata(ptr noundef) local_unnamed_addr #1
declare i32 @usb_set_intfdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @flush_request_modules(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up_interruptible_all(ptr noundef) local_unnamed_addr #1
declare i32 @dev_warn(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @video_device_node_name(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_ir_exit(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_uninit_isoc(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_uninit_bulk(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up_interruptible(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_close_extension(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @cx231xx_release_resources(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 48}
!7 = !{!"cx231xx", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !8, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !11, i64 44}
!14 = !{!7, !8, i64 0}
!15 = !{!7, !11, i64 36}
!16 = !{!7, !8, i64 24}
| linux_drivers_media_usb_cx231xx_extr_cx231xx-cards.c_cx231xx_usb_disconnect |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_emul.c_CFGREAD.c'
source_filename = "AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_emul.c_CFGREAD.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @CFGREAD], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @CFGREAD(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
switch i32 %2, label %8 [
i32 1, label %4
i32 2, label %6
]
4: ; preds = %3
%5 = tail call i32 @pci_get_cfgdata8(ptr noundef %0, i32 noundef %1) #2
br label %10
6: ; preds = %3
%7 = tail call i32 @pci_get_cfgdata16(ptr noundef %0, i32 noundef %1) #2
br label %10
8: ; preds = %3
%9 = tail call i32 @pci_get_cfgdata32(ptr noundef %0, i32 noundef %1) #2
br label %10
10: ; preds = %8, %6, %4
%11 = phi i32 [ %5, %4 ], [ %7, %6 ], [ %9, %8 ]
ret i32 %11
}
declare i32 @pci_get_cfgdata8(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_get_cfgdata16(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_get_cfgdata32(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_emul.c_CFGREAD.c'
source_filename = "AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_emul.c_CFGREAD.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @CFGREAD], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @CFGREAD(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
switch i32 %2, label %8 [
i32 1, label %4
i32 2, label %6
]
4: ; preds = %3
%5 = tail call i32 @pci_get_cfgdata8(ptr noundef %0, i32 noundef %1) #2
br label %10
6: ; preds = %3
%7 = tail call i32 @pci_get_cfgdata16(ptr noundef %0, i32 noundef %1) #2
br label %10
8: ; preds = %3
%9 = tail call i32 @pci_get_cfgdata32(ptr noundef %0, i32 noundef %1) #2
br label %10
10: ; preds = %8, %6, %4
%11 = phi i32 [ %5, %4 ], [ %7, %6 ], [ %9, %8 ]
ret i32 %11
}
declare i32 @pci_get_cfgdata8(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_get_cfgdata16(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_get_cfgdata32(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_usr.sbin_bhyve_extr_pci_emul.c_CFGREAD |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/spi/extr_spi_ppc4xx.c_spi_ppc4xx_setup.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/spi/extr_spi_ppc4xx.c_spi_ppc4xx_setup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.spi_device = type { i32, i32, ptr, i32, i32 }
@.str = private unnamed_addr constant [28 x i8] c"invalid bits-per-word (%d)\0A\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [41 x i8] c"invalid max_speed_hz (must be non-zero)\0A\00", align 1
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@SPI_PPC4XX_MODE_SPE = dso_local local_unnamed_addr global i32 0, align 4
@SPI_CPHA = dso_local local_unnamed_addr global i32 0, align 4
@SPI_CPOL = dso_local local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE0 = dso_local local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE1 = dso_local local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE2 = dso_local local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE3 = dso_local local_unnamed_addr global i32 0, align 4
@SPI_LSB_FIRST = dso_local local_unnamed_addr global i32 0, align 4
@SPI_PPC4XX_MODE_RD = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @spi_ppc4xx_setup], section "llvm.metadata"
@switch.table.spi_ppc4xx_setup = private unnamed_addr constant [4 x ptr] [ptr @SPI_CLK_MODE3, ptr @SPI_CLK_MODE2, ptr @SPI_CLK_MODE1, ptr @SPI_CLK_MODE0], align 8
; Function Attrs: nounwind uwtable
define internal i32 @spi_ppc4xx_setup(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.spi_device, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr %0, align 8, !tbaa !11
%5 = icmp eq i32 %4, 8
br i1 %5, label %11, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.spi_device, ptr %0, i64 0, i32 3
%8 = tail call i32 (ptr, ptr, ...) @dev_err(ptr noundef nonnull %7, ptr noundef nonnull @.str, i32 noundef %4) #2
%9 = load i32, ptr @EINVAL, align 4, !tbaa !12
%10 = sub nsw i32 0, %9
br label %55
11: ; preds = %1
%12 = getelementptr inbounds %struct.spi_device, ptr %0, i64 0, i32 4
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = getelementptr inbounds %struct.spi_device, ptr %0, i64 0, i32 3
%17 = tail call i32 (ptr, ptr, ...) @dev_err(ptr noundef nonnull %16, ptr noundef nonnull @.str.1) #2
%18 = load i32, ptr @EINVAL, align 4, !tbaa !12
%19 = sub nsw i32 0, %18
br label %55
20: ; preds = %11
%21 = icmp eq ptr %3, null
br i1 %21, label %22, label %30
22: ; preds = %20
%23 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !12
%24 = tail call ptr @kzalloc(i32 noundef 4, i32 noundef %23) #2
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, ptr @ENOMEM, align 4, !tbaa !12
%28 = sub nsw i32 0, %27
br label %55
29: ; preds = %22
store ptr %24, ptr %2, align 8, !tbaa !5
br label %30
30: ; preds = %29, %20
%31 = phi ptr [ %24, %29 ], [ %3, %20 ]
%32 = load i32, ptr @SPI_PPC4XX_MODE_SPE, align 4, !tbaa !12
store i32 %32, ptr %31, align 4, !tbaa !14
%33 = getelementptr inbounds %struct.spi_device, ptr %0, i64 0, i32 1
%34 = load i32, ptr %33, align 4, !tbaa !16
%35 = load i32, ptr @SPI_CPHA, align 4, !tbaa !12
%36 = load i32, ptr @SPI_CPOL, align 4, !tbaa !12
%37 = or i32 %36, %35
%38 = and i32 %37, %34
%39 = add i32 %38, -128
%40 = icmp ult i32 %39, 4
br i1 %40, label %41, label %47
41: ; preds = %30
%42 = zext nneg i32 %39 to i64
%43 = getelementptr inbounds [4 x ptr], ptr @switch.table.spi_ppc4xx_setup, i64 0, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %44, align 4, !tbaa !12
%46 = or i32 %45, %32
store i32 %46, ptr %31, align 4, !tbaa !14
br label %47
47: ; preds = %30, %41
%48 = phi i32 [ %32, %30 ], [ %46, %41 ]
%49 = load i32, ptr @SPI_LSB_FIRST, align 4, !tbaa !12
%50 = and i32 %49, %34
%51 = icmp eq i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %47
%53 = load i32, ptr @SPI_PPC4XX_MODE_RD, align 4, !tbaa !12
%54 = or i32 %48, %53
store i32 %54, ptr %31, align 4, !tbaa !14
br label %55
55: ; preds = %47, %52, %26, %15, %6
%56 = phi i32 [ %10, %6 ], [ %28, %26 ], [ %19, %15 ], [ 0, %52 ], [ 0, %47 ]
ret i32 %56
}
declare i32 @dev_err(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"spi_device", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 20}
!14 = !{!15, !7, i64 0}
!15 = !{!"spi_ppc4xx_cs", !7, i64 0}
!16 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/spi/extr_spi_ppc4xx.c_spi_ppc4xx_setup.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/spi/extr_spi_ppc4xx.c_spi_ppc4xx_setup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [28 x i8] c"invalid bits-per-word (%d)\0A\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [41 x i8] c"invalid max_speed_hz (must be non-zero)\0A\00", align 1
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@SPI_PPC4XX_MODE_SPE = common local_unnamed_addr global i32 0, align 4
@SPI_CPHA = common local_unnamed_addr global i32 0, align 4
@SPI_CPOL = common local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE0 = common local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE1 = common local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE2 = common local_unnamed_addr global i32 0, align 4
@SPI_CLK_MODE3 = common local_unnamed_addr global i32 0, align 4
@SPI_LSB_FIRST = common local_unnamed_addr global i32 0, align 4
@SPI_PPC4XX_MODE_RD = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @spi_ppc4xx_setup], section "llvm.metadata"
@switch.table.spi_ppc4xx_setup = private unnamed_addr constant [4 x ptr] [ptr @SPI_CLK_MODE3, ptr @SPI_CLK_MODE2, ptr @SPI_CLK_MODE1, ptr @SPI_CLK_MODE0], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @spi_ppc4xx_setup(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr %0, align 8, !tbaa !12
%5 = icmp eq i32 %4, 8
br i1 %5, label %11, label %6
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = tail call i32 (ptr, ptr, ...) @dev_err(ptr noundef nonnull %7, ptr noundef nonnull @.str, i32 noundef %4) #2
%9 = load i32, ptr @EINVAL, align 4, !tbaa !13
%10 = sub nsw i32 0, %9
br label %55
11: ; preds = %1
%12 = getelementptr inbounds i8, ptr %0, i64 20
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = getelementptr inbounds i8, ptr %0, i64 16
%17 = tail call i32 (ptr, ptr, ...) @dev_err(ptr noundef nonnull %16, ptr noundef nonnull @.str.1) #2
%18 = load i32, ptr @EINVAL, align 4, !tbaa !13
%19 = sub nsw i32 0, %18
br label %55
20: ; preds = %11
%21 = icmp eq ptr %3, null
br i1 %21, label %22, label %30
22: ; preds = %20
%23 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !13
%24 = tail call ptr @kzalloc(i32 noundef 4, i32 noundef %23) #2
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%28 = sub nsw i32 0, %27
br label %55
29: ; preds = %22
store ptr %24, ptr %2, align 8, !tbaa !6
br label %30
30: ; preds = %29, %20
%31 = phi ptr [ %24, %29 ], [ %3, %20 ]
%32 = load i32, ptr @SPI_PPC4XX_MODE_SPE, align 4, !tbaa !13
store i32 %32, ptr %31, align 4, !tbaa !15
%33 = getelementptr inbounds i8, ptr %0, i64 4
%34 = load i32, ptr %33, align 4, !tbaa !17
%35 = load i32, ptr @SPI_CPHA, align 4, !tbaa !13
%36 = load i32, ptr @SPI_CPOL, align 4, !tbaa !13
%37 = or i32 %36, %35
%38 = and i32 %37, %34
%39 = add i32 %38, -128
%40 = icmp ult i32 %39, 4
br i1 %40, label %41, label %47
41: ; preds = %30
%42 = zext nneg i32 %39 to i64
%43 = getelementptr inbounds [4 x ptr], ptr @switch.table.spi_ppc4xx_setup, i64 0, i64 %42
%44 = load ptr, ptr %43, align 8
%45 = load i32, ptr %44, align 4, !tbaa !13
%46 = or i32 %45, %32
store i32 %46, ptr %31, align 4, !tbaa !15
br label %47
47: ; preds = %30, %41
%48 = phi i32 [ %32, %30 ], [ %46, %41 ]
%49 = load i32, ptr @SPI_LSB_FIRST, align 4, !tbaa !13
%50 = and i32 %49, %34
%51 = icmp eq i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %47
%53 = load i32, ptr @SPI_PPC4XX_MODE_RD, align 4, !tbaa !13
%54 = or i32 %48, %53
store i32 %54, ptr %31, align 4, !tbaa !15
br label %55
55: ; preds = %47, %52, %26, %15, %6
%56 = phi i32 [ %10, %6 ], [ %28, %26 ], [ %19, %15 ], [ 0, %52 ], [ 0, %47 ]
ret i32 %56
}
declare i32 @dev_err(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"spi_device", !8, i64 0, !8, i64 4, !11, i64 8, !8, i64 16, !8, i64 20}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !8, i64 20}
!15 = !{!16, !8, i64 0}
!16 = !{!"spi_ppc4xx_cs", !8, i64 0}
!17 = !{!7, !8, i64 4}
| fastsocket_kernel_drivers_spi_extr_spi_ppc4xx.c_spi_ppc4xx_setup |
; ModuleID = 'AnghaBench/the_silver_searcher/src/extr_lang.c_get_lang_count.c'
source_filename = "AnghaBench/the_silver_searcher/src/extr_lang.c_get_lang_count.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local noundef i64 @get_lang_count() local_unnamed_addr #0 {
ret i64 1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/the_silver_searcher/src/extr_lang.c_get_lang_count.c'
source_filename = "AnghaBench/the_silver_searcher/src/extr_lang.c_get_lang_count.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define noundef i64 @get_lang_count() local_unnamed_addr #0 {
ret i64 1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| the_silver_searcher_src_extr_lang.c_get_lang_count |
; ModuleID = 'AnghaBench/lede/target/linux/generic/files/drivers/net/phy/extr_ar8216.c_ar8216_vtu_flush.c'
source_filename = "AnghaBench/lede/target/linux/generic/files/drivers/net/phy/extr_ar8216.c_ar8216_vtu_flush.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@AR8216_VTU_OP_FLUSH = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ar8216_vtu_flush], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ar8216_vtu_flush(ptr noundef %0) #0 {
%2 = load i32, ptr @AR8216_VTU_OP_FLUSH, align 4, !tbaa !5
%3 = tail call i32 @ar8216_vtu_op(ptr noundef %0, i32 noundef %2, i32 noundef 0) #2
ret void
}
declare i32 @ar8216_vtu_op(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/lede/target/linux/generic/files/drivers/net/phy/extr_ar8216.c_ar8216_vtu_flush.c'
source_filename = "AnghaBench/lede/target/linux/generic/files/drivers/net/phy/extr_ar8216.c_ar8216_vtu_flush.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AR8216_VTU_OP_FLUSH = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ar8216_vtu_flush], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ar8216_vtu_flush(ptr noundef %0) #0 {
%2 = load i32, ptr @AR8216_VTU_OP_FLUSH, align 4, !tbaa !6
%3 = tail call i32 @ar8216_vtu_op(ptr noundef %0, i32 noundef %2, i32 noundef 0) #2
ret void
}
declare i32 @ar8216_vtu_op(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| lede_target_linux_generic_files_drivers_net_phy_extr_ar8216.c_ar8216_vtu_flush |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_df_v3_6.c_df_v3_6_pmc_add_cntr.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_df_v3_6.c_df_v3_6_pmc_add_cntr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DF_V3_6_MAX_COUNTERS = dso_local local_unnamed_addr global i32 0, align 4
@ENOSPC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @df_v3_6_pmc_add_cntr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @df_v3_6_pmc_add_cntr(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @df_v3_6_pmc_config_2_cntr(ptr noundef %0, i32 noundef %1) #2
%4 = icmp sgt i32 %3, -1
br i1 %4, label %25, label %5
5: ; preds = %2
%6 = load i32, ptr @DF_V3_6_MAX_COUNTERS, align 4, !tbaa !5
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load ptr, ptr %0, align 8, !tbaa !9
%10 = zext nneg i32 %6 to i64
br label %14
11: ; preds = %14
%12 = add nuw nsw i64 %15, 1
%13 = icmp eq i64 %12, %10
br i1 %13, label %22, label %14, !llvm.loop !12
14: ; preds = %8, %11
%15 = phi i64 [ 0, %8 ], [ %12, %11 ]
%16 = getelementptr inbounds i32, ptr %9, i64 %15
%17 = load i32, ptr %16, align 4, !tbaa !5
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %11
19: ; preds = %14
%20 = getelementptr inbounds i32, ptr %9, i64 %15
%21 = and i32 %1, 16777215
store i32 %21, ptr %20, align 4, !tbaa !5
br label %25
22: ; preds = %11, %5
%23 = load i32, ptr @ENOSPC, align 4, !tbaa !5
%24 = sub nsw i32 0, %23
br label %25
25: ; preds = %2, %22, %19
%26 = phi i32 [ 0, %19 ], [ %24, %22 ], [ 0, %2 ]
ret i32 %26
}
declare i32 @df_v3_6_pmc_config_2_cntr(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"amdgpu_device", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_df_v3_6.c_df_v3_6_pmc_add_cntr.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_df_v3_6.c_df_v3_6_pmc_add_cntr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DF_V3_6_MAX_COUNTERS = common local_unnamed_addr global i32 0, align 4
@ENOSPC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @df_v3_6_pmc_add_cntr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @df_v3_6_pmc_add_cntr(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @df_v3_6_pmc_config_2_cntr(ptr noundef %0, i32 noundef %1) #2
%4 = icmp sgt i32 %3, -1
br i1 %4, label %25, label %5
5: ; preds = %2
%6 = load i32, ptr @DF_V3_6_MAX_COUNTERS, align 4, !tbaa !6
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load ptr, ptr %0, align 8, !tbaa !10
%10 = zext nneg i32 %6 to i64
br label %14
11: ; preds = %14
%12 = add nuw nsw i64 %15, 1
%13 = icmp eq i64 %12, %10
br i1 %13, label %22, label %14, !llvm.loop !13
14: ; preds = %8, %11
%15 = phi i64 [ 0, %8 ], [ %12, %11 ]
%16 = getelementptr inbounds i32, ptr %9, i64 %15
%17 = load i32, ptr %16, align 4, !tbaa !6
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %11
19: ; preds = %14
%20 = getelementptr inbounds i32, ptr %9, i64 %15
%21 = and i32 %1, 16777215
store i32 %21, ptr %20, align 4, !tbaa !6
br label %25
22: ; preds = %11, %5
%23 = load i32, ptr @ENOSPC, align 4, !tbaa !6
%24 = sub nsw i32 0, %23
br label %25
25: ; preds = %2, %22, %19
%26 = phi i32 [ 0, %19 ], [ %24, %22 ], [ 0, %2 ]
ret i32 %26
}
declare i32 @df_v3_6_pmc_config_2_cntr(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"amdgpu_device", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| linux_drivers_gpu_drm_amd_amdgpu_extr_df_v3_6.c_df_v3_6_pmc_add_cntr |
; ModuleID = 'AnghaBench/linux/drivers/w1/slaves/extr_w1_ds2433.c_w1_f23_add_slave.c'
source_filename = "AnghaBench/linux/drivers/w1/slaves/extr_w1_ds2433.c_w1_f23_add_slave.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @w1_f23_add_slave], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @w1_f23_add_slave(ptr nocapture readnone %0) #0 {
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/w1/slaves/extr_w1_ds2433.c_w1_f23_add_slave.c'
source_filename = "AnghaBench/linux/drivers/w1/slaves/extr_w1_ds2433.c_w1_f23_add_slave.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @w1_f23_add_slave], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @w1_f23_add_slave(ptr nocapture readnone %0) #0 {
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_w1_slaves_extr_w1_ds2433.c_w1_f23_add_slave |
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/kern/extr_coalition.c_coalition_type.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/kern/extr_coalition.c_coalition_type.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @coalition_type(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
ret i32 %2
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/darwin-xnu/osfmk/kern/extr_coalition.c_coalition_type.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/kern/extr_coalition.c_coalition_type.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define i32 @coalition_type(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
ret i32 %2
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| darwin-xnu_osfmk_kern_extr_coalition.c_coalition_type |
; ModuleID = 'AnghaBench/linux/drivers/block/extr_umem.c_mm_revalidate.c'
source_filename = "AnghaBench/linux/drivers/block/extr_umem.c_mm_revalidate.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @mm_revalidate], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @mm_revalidate(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !10
%4 = shl i32 %3, 1
%5 = tail call i32 @set_capacity(ptr noundef nonnull %0, i32 noundef %4) #2
ret i32 0
}
declare i32 @set_capacity(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"gendisk", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"cardinfo", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/block/extr_umem.c_mm_revalidate.c'
source_filename = "AnghaBench/linux/drivers/block/extr_umem.c_mm_revalidate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @mm_revalidate], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @mm_revalidate(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !11
%4 = shl i32 %3, 1
%5 = tail call i32 @set_capacity(ptr noundef nonnull %0, i32 noundef %4) #2
ret i32 0
}
declare i32 @set_capacity(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"gendisk", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"cardinfo", !13, i64 0}
!13 = !{!"int", !9, i64 0}
| linux_drivers_block_extr_umem.c_mm_revalidate |
; ModuleID = 'AnghaBench/linux/drivers/scsi/sym53c8xx_2/extr_sym_glue.c_sym_user_command.c'
source_filename = "AnghaBench/linux/drivers/scsi/sym53c8xx_2/extr_sym_glue.c_sym_user_command.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.sym_usrcmd = type { i32, i32, i32 }
@.str = private unnamed_addr constant [8 x i8] c"setsync\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"settags\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"setverbose\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"setwide\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"setflag\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"resetdev\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"cleardev\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [4 x i8] c"all\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"no_disc\00", align 1
@SYM_DISC_ENABLED = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_ALLOC = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_NEGO = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_PHASE = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_POINTER = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_QUEUE = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_RESULT = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_SCATTER = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_SCRIPT = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_TAGS = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_TIMING = dso_local local_unnamed_addr global i32 0, align 4
@DEBUG_TINY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sym_user_command], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sym_user_command(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca %struct.sym_usrcmd, align 4
%5 = tail call ptr @sym_get_hcb(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
%6 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 12) #3
%7 = icmp sgt i32 %2, 0
br i1 %7, label %8, label %16
8: ; preds = %3
%9 = zext nneg i32 %2 to i64
%10 = getelementptr i8, ptr %1, i64 %9
%11 = getelementptr i8, ptr %10, i64 -1
%12 = load i8, ptr %11, align 1, !tbaa !5
%13 = icmp eq i8 %12, 10
%14 = sext i1 %13 to i32
%15 = add nsw i32 %14, %2
br label %16
16: ; preds = %8, %3
%17 = phi i32 [ %2, %3 ], [ %15, %8 ]
%18 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str) #3
%19 = icmp eq i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %16
store i32 131, ptr %4, align 4, !tbaa !8
br label %51
21: ; preds = %16
%22 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.1) #3
%23 = icmp eq i32 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %21
store i32 130, ptr %4, align 4, !tbaa !8
br label %51
25: ; preds = %21
%26 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.2) #3
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %47
28: ; preds = %25
%29 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.3) #3
%30 = icmp eq i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %28
store i32 128, ptr %4, align 4, !tbaa !8
br label %51
32: ; preds = %28
%33 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.4) #3
%34 = icmp eq i32 %33, 0
br i1 %34, label %36, label %35
35: ; preds = %32
store i32 132, ptr %4, align 4, !tbaa !8
br label %51
36: ; preds = %32
%37 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.5) #3
%38 = icmp eq i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %36
store i32 134, ptr %4, align 4, !tbaa !8
br label %51
40: ; preds = %36
%41 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.6) #3
%42 = icmp eq i32 %41, 0
br i1 %42, label %44, label %43
43: ; preds = %40
store i32 135, ptr %4, align 4, !tbaa !8
br label %51
44: ; preds = %40
%45 = load i32, ptr @EINVAL, align 4, !tbaa !11
%46 = sub nsw i32 0, %45
br label %111
47: ; preds = %25
store i32 129, ptr %4, align 4, !tbaa !8
%48 = sext i32 %26 to i64
%49 = getelementptr inbounds i8, ptr %1, i64 %48
%50 = sub nsw i32 %17, %26
br label %74
51: ; preds = %20, %24, %31, %35, %39, %43
%52 = phi i32 [ %18, %20 ], [ %22, %24 ], [ %29, %31 ], [ %33, %35 ], [ %37, %39 ], [ %41, %43 ]
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %1, i64 %53
%55 = sub nsw i32 %17, %52
%56 = call i32 @SKIP_SPACES(ptr noundef nonnull %54, i32 noundef %55) #3
%57 = call i32 @is_keyword(ptr noundef nonnull %54, i32 noundef %55, ptr noundef nonnull @.str.7) #3
%58 = icmp eq i32 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %51
%60 = sext i32 %57 to i64
%61 = getelementptr inbounds i8, ptr %54, i64 %60
%62 = sub nsw i32 %55, %57
%63 = getelementptr inbounds %struct.sym_usrcmd, ptr %4, i64 0, i32 1
store i32 -1, ptr %63, align 4, !tbaa !12
br label %66
64: ; preds = %51
%65 = call i32 @GET_INT_ARG(ptr noundef nonnull %54, i32 noundef %55, i32 noundef undef) #3
br label %66
66: ; preds = %59, %64
%67 = phi i32 [ %55, %64 ], [ %62, %59 ]
%68 = phi ptr [ %54, %64 ], [ %61, %59 ]
%69 = load i32, ptr %4, align 4, !tbaa !8
switch i32 %69, label %99 [
i32 129, label %74
i32 131, label %74
i32 130, label %74
i32 128, label %74
i32 132, label %70
]
70: ; preds = %66
%71 = icmp sgt i32 %67, 0
br i1 %71, label %72, label %99
72: ; preds = %70
%73 = getelementptr inbounds %struct.sym_usrcmd, ptr %4, i64 0, i32 2
br label %81
74: ; preds = %47, %66, %66, %66, %66
%75 = phi ptr [ %49, %47 ], [ %68, %66 ], [ %68, %66 ], [ %68, %66 ], [ %68, %66 ]
%76 = phi i32 [ %50, %47 ], [ %67, %66 ], [ %67, %66 ], [ %67, %66 ], [ %67, %66 ]
%77 = call i32 @SKIP_SPACES(ptr noundef %75, i32 noundef %76) #3
%78 = getelementptr inbounds %struct.sym_usrcmd, ptr %4, i64 0, i32 2
%79 = load i32, ptr %78, align 4, !tbaa !13
%80 = call i32 @GET_INT_ARG(ptr noundef %75, i32 noundef %76, i32 noundef %79) #3
br label %99
81: ; preds = %72, %87
%82 = phi ptr [ %68, %72 ], [ %93, %87 ]
%83 = phi i32 [ %67, %72 ], [ %94, %87 ]
%84 = call i32 @SKIP_SPACES(ptr noundef %82, i32 noundef %83) #3
%85 = call i32 @is_keyword(ptr noundef %82, i32 noundef %83, ptr noundef nonnull @.str.8) #3
%86 = icmp eq i32 %85, 0
br i1 %86, label %96, label %87
87: ; preds = %81
%88 = load i32, ptr @SYM_DISC_ENABLED, align 4, !tbaa !11
%89 = xor i32 %88, -1
%90 = load i32, ptr %73, align 4, !tbaa !13
%91 = and i32 %90, %89
store i32 %91, ptr %73, align 4, !tbaa !13
%92 = sext i32 %85 to i64
%93 = getelementptr inbounds i8, ptr %82, i64 %92
%94 = sub nsw i32 %83, %85
%95 = icmp sgt i32 %94, 0
br i1 %95, label %81, label %99, !llvm.loop !14
96: ; preds = %81
%97 = load i32, ptr @EINVAL, align 4, !tbaa !11
%98 = sub nsw i32 0, %97
br label %111
99: ; preds = %87, %70, %66, %74
%100 = phi i32 [ %67, %66 ], [ %76, %74 ], [ %67, %70 ], [ %94, %87 ]
%101 = icmp eq i32 %100, 0
br i1 %101, label %105, label %102
102: ; preds = %99
%103 = load i32, ptr @EINVAL, align 4, !tbaa !11
%104 = sub nsw i32 0, %103
br label %111
105: ; preds = %99
%106 = load i32, ptr %0, align 4, !tbaa !16
%107 = call i32 @spin_lock_irqsave(i32 noundef %106, i64 noundef undef) #3
%108 = call i32 @sym_exec_user_command(ptr noundef %5, ptr noundef nonnull %4) #3
%109 = load i32, ptr %0, align 4, !tbaa !16
%110 = call i32 @spin_unlock_irqrestore(i32 noundef %109, i64 noundef undef) #3
br label %111
111: ; preds = %105, %102, %96, %44
%112 = phi i32 [ %104, %102 ], [ %2, %105 ], [ %98, %96 ], [ %46, %44 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
ret i32 %112
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sym_get_hcb(ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @is_keyword(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SKIP_SPACES(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GET_INT_ARG(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @sym_exec_user_command(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(i32 noundef, i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"sym_usrcmd", !10, i64 0, !10, i64 4, !10, i64 8}
!10 = !{!"int", !6, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!9, !10, i64 4}
!13 = !{!9, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"Scsi_Host", !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/sym53c8xx_2/extr_sym_glue.c_sym_user_command.c'
source_filename = "AnghaBench/linux/drivers/scsi/sym53c8xx_2/extr_sym_glue.c_sym_user_command.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.sym_usrcmd = type { i32, i32, i32 }
@.str = private unnamed_addr constant [8 x i8] c"setsync\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"settags\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"setverbose\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"setwide\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"setflag\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"resetdev\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"cleardev\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [4 x i8] c"all\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"no_disc\00", align 1
@SYM_DISC_ENABLED = common local_unnamed_addr global i32 0, align 4
@DEBUG_ALLOC = common local_unnamed_addr global i32 0, align 4
@DEBUG_NEGO = common local_unnamed_addr global i32 0, align 4
@DEBUG_PHASE = common local_unnamed_addr global i32 0, align 4
@DEBUG_POINTER = common local_unnamed_addr global i32 0, align 4
@DEBUG_QUEUE = common local_unnamed_addr global i32 0, align 4
@DEBUG_RESULT = common local_unnamed_addr global i32 0, align 4
@DEBUG_SCATTER = common local_unnamed_addr global i32 0, align 4
@DEBUG_SCRIPT = common local_unnamed_addr global i32 0, align 4
@DEBUG_TAGS = common local_unnamed_addr global i32 0, align 4
@DEBUG_TIMING = common local_unnamed_addr global i32 0, align 4
@DEBUG_TINY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sym_user_command], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @sym_user_command(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca %struct.sym_usrcmd, align 4
%5 = tail call ptr @sym_get_hcb(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
%6 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 12) #3
%7 = icmp sgt i32 %2, 0
br i1 %7, label %8, label %16
8: ; preds = %3
%9 = zext nneg i32 %2 to i64
%10 = getelementptr i8, ptr %1, i64 %9
%11 = getelementptr i8, ptr %10, i64 -1
%12 = load i8, ptr %11, align 1, !tbaa !6
%13 = icmp eq i8 %12, 10
%14 = sext i1 %13 to i32
%15 = add nsw i32 %14, %2
br label %16
16: ; preds = %8, %3
%17 = phi i32 [ %2, %3 ], [ %15, %8 ]
%18 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str) #3
%19 = icmp eq i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %16
store i32 131, ptr %4, align 4, !tbaa !9
br label %51
21: ; preds = %16
%22 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.1) #3
%23 = icmp eq i32 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %21
store i32 130, ptr %4, align 4, !tbaa !9
br label %51
25: ; preds = %21
%26 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.2) #3
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %47
28: ; preds = %25
%29 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.3) #3
%30 = icmp eq i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %28
store i32 128, ptr %4, align 4, !tbaa !9
br label %51
32: ; preds = %28
%33 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.4) #3
%34 = icmp eq i32 %33, 0
br i1 %34, label %36, label %35
35: ; preds = %32
store i32 132, ptr %4, align 4, !tbaa !9
br label %51
36: ; preds = %32
%37 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.5) #3
%38 = icmp eq i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %36
store i32 134, ptr %4, align 4, !tbaa !9
br label %51
40: ; preds = %36
%41 = call i32 @is_keyword(ptr noundef %1, i32 noundef %17, ptr noundef nonnull @.str.6) #3
%42 = icmp eq i32 %41, 0
br i1 %42, label %44, label %43
43: ; preds = %40
store i32 135, ptr %4, align 4, !tbaa !9
br label %51
44: ; preds = %40
%45 = load i32, ptr @EINVAL, align 4, !tbaa !12
%46 = sub nsw i32 0, %45
br label %111
47: ; preds = %25
store i32 129, ptr %4, align 4, !tbaa !9
%48 = sext i32 %26 to i64
%49 = getelementptr inbounds i8, ptr %1, i64 %48
%50 = sub nsw i32 %17, %26
br label %74
51: ; preds = %20, %24, %31, %35, %39, %43
%52 = phi i32 [ %18, %20 ], [ %22, %24 ], [ %29, %31 ], [ %33, %35 ], [ %37, %39 ], [ %41, %43 ]
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %1, i64 %53
%55 = sub nsw i32 %17, %52
%56 = call i32 @SKIP_SPACES(ptr noundef nonnull %54, i32 noundef %55) #3
%57 = call i32 @is_keyword(ptr noundef nonnull %54, i32 noundef %55, ptr noundef nonnull @.str.7) #3
%58 = icmp eq i32 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %51
%60 = sext i32 %57 to i64
%61 = getelementptr inbounds i8, ptr %54, i64 %60
%62 = sub nsw i32 %55, %57
%63 = getelementptr inbounds i8, ptr %4, i64 4
store i32 -1, ptr %63, align 4, !tbaa !13
br label %66
64: ; preds = %51
%65 = call i32 @GET_INT_ARG(ptr noundef nonnull %54, i32 noundef %55, i32 noundef undef) #3
br label %66
66: ; preds = %59, %64
%67 = phi i32 [ %55, %64 ], [ %62, %59 ]
%68 = phi ptr [ %54, %64 ], [ %61, %59 ]
%69 = load i32, ptr %4, align 4, !tbaa !9
switch i32 %69, label %99 [
i32 129, label %74
i32 131, label %74
i32 130, label %74
i32 128, label %74
i32 132, label %70
]
70: ; preds = %66
%71 = icmp sgt i32 %67, 0
br i1 %71, label %72, label %99
72: ; preds = %70
%73 = getelementptr inbounds i8, ptr %4, i64 8
br label %81
74: ; preds = %47, %66, %66, %66, %66
%75 = phi ptr [ %49, %47 ], [ %68, %66 ], [ %68, %66 ], [ %68, %66 ], [ %68, %66 ]
%76 = phi i32 [ %50, %47 ], [ %67, %66 ], [ %67, %66 ], [ %67, %66 ], [ %67, %66 ]
%77 = call i32 @SKIP_SPACES(ptr noundef %75, i32 noundef %76) #3
%78 = getelementptr inbounds i8, ptr %4, i64 8
%79 = load i32, ptr %78, align 4, !tbaa !14
%80 = call i32 @GET_INT_ARG(ptr noundef %75, i32 noundef %76, i32 noundef %79) #3
br label %99
81: ; preds = %72, %87
%82 = phi ptr [ %68, %72 ], [ %93, %87 ]
%83 = phi i32 [ %67, %72 ], [ %94, %87 ]
%84 = call i32 @SKIP_SPACES(ptr noundef %82, i32 noundef %83) #3
%85 = call i32 @is_keyword(ptr noundef %82, i32 noundef %83, ptr noundef nonnull @.str.8) #3
%86 = icmp eq i32 %85, 0
br i1 %86, label %96, label %87
87: ; preds = %81
%88 = load i32, ptr @SYM_DISC_ENABLED, align 4, !tbaa !12
%89 = xor i32 %88, -1
%90 = load i32, ptr %73, align 4, !tbaa !14
%91 = and i32 %90, %89
store i32 %91, ptr %73, align 4, !tbaa !14
%92 = sext i32 %85 to i64
%93 = getelementptr inbounds i8, ptr %82, i64 %92
%94 = sub nsw i32 %83, %85
%95 = icmp sgt i32 %94, 0
br i1 %95, label %81, label %99, !llvm.loop !15
96: ; preds = %81
%97 = load i32, ptr @EINVAL, align 4, !tbaa !12
%98 = sub nsw i32 0, %97
br label %111
99: ; preds = %87, %70, %66, %74
%100 = phi i32 [ %67, %66 ], [ %76, %74 ], [ %67, %70 ], [ %94, %87 ]
%101 = icmp eq i32 %100, 0
br i1 %101, label %105, label %102
102: ; preds = %99
%103 = load i32, ptr @EINVAL, align 4, !tbaa !12
%104 = sub nsw i32 0, %103
br label %111
105: ; preds = %99
%106 = load i32, ptr %0, align 4, !tbaa !17
%107 = call i32 @spin_lock_irqsave(i32 noundef %106, i64 noundef undef) #3
%108 = call i32 @sym_exec_user_command(ptr noundef %5, ptr noundef nonnull %4) #3
%109 = load i32, ptr %0, align 4, !tbaa !17
%110 = call i32 @spin_unlock_irqrestore(i32 noundef %109, i64 noundef undef) #3
br label %111
111: ; preds = %105, %102, %96, %44
%112 = phi i32 [ %104, %102 ], [ %2, %105 ], [ %98, %96 ], [ %46, %44 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
ret i32 %112
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sym_get_hcb(ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @is_keyword(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SKIP_SPACES(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GET_INT_ARG(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @sym_exec_user_command(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(i32 noundef, i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"sym_usrcmd", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !11, i64 0}
!18 = !{!"Scsi_Host", !11, i64 0}
| linux_drivers_scsi_sym53c8xx_2_extr_sym_glue.c_sym_user_command |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/extr_base.c_nvkm_bar_bar1_reset.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/extr_base.c_nvkm_bar_bar1_reset.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { ptr, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @nvkm_bar_bar1_reset(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
br i1 %3, label %12, label %4
4: ; preds = %1
%5 = load ptr, ptr %2, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = tail call i32 %7(ptr noundef nonnull %2) #1
%9 = load ptr, ptr %2, align 8, !tbaa !10
%10 = load ptr, ptr %9, align 8, !tbaa !15
%11 = tail call i32 %10(ptr noundef nonnull %2) #1
br label %12
12: ; preds = %4, %1
ret void
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"nvkm_device", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"nvkm_bar", !7, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0, !7, i64 8}
!15 = !{!13, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/extr_base.c_nvkm_bar_bar1_reset.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/extr_base.c_nvkm_bar_bar1_reset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @nvkm_bar_bar1_reset(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
br i1 %3, label %12, label %4
4: ; preds = %1
%5 = load ptr, ptr %2, align 8, !tbaa !11
%6 = getelementptr inbounds i8, ptr %5, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = tail call i32 %7(ptr noundef nonnull %2) #1
%9 = load ptr, ptr %2, align 8, !tbaa !11
%10 = load ptr, ptr %9, align 8, !tbaa !16
%11 = tail call i32 %10(ptr noundef nonnull %2) #1
br label %12
12: ; preds = %4, %1
ret void
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"nvkm_device", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"nvkm_bar", !8, i64 0}
!13 = !{!14, !8, i64 8}
!14 = !{!"TYPE_4__", !15, i64 0}
!15 = !{!"TYPE_3__", !8, i64 0, !8, i64 8}
!16 = !{!14, !8, i64 0}
| linux_drivers_gpu_drm_nouveau_nvkm_subdev_bar_extr_base.c_nvkm_bar_bar1_reset |
; ModuleID = 'AnghaBench/nodemcu-firmware/app/sqlite3/extr_sqlite3.c_compare2pow63.c'
source_filename = "AnghaBench/nodemcu-firmware/app/sqlite3/extr_sqlite3.c_compare2pow63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"922337203685477580\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @compare2pow63], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @compare2pow63(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = sext i32 %1 to i64
br label %4
4: ; preds = %2, %4
%5 = phi i64 [ 0, %2 ], [ %11, %4 ]
%6 = mul nsw i64 %5, %3
%7 = getelementptr inbounds i8, ptr %0, i64 %6
%8 = load i8, ptr %7, align 1, !tbaa !5
%9 = getelementptr inbounds i8, ptr @.str, i64 %5
%10 = load i8, ptr %9, align 1, !tbaa !5
%11 = add nuw nsw i64 %5, 1
%12 = icmp eq i8 %8, %10
%13 = icmp ult i64 %5, 17
%14 = and i1 %12, %13
br i1 %14, label %4, label %15, !llvm.loop !8
15: ; preds = %4
%16 = sext i8 %10 to i32
%17 = sext i8 %8 to i32
%18 = sub nsw i32 %17, %16
%19 = mul nsw i32 %18, 10
br i1 %12, label %20, label %36
20: ; preds = %15
%21 = mul nsw i32 %1, 18
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %0, i64 %22
%24 = load i8, ptr %23, align 1, !tbaa !5
%25 = sext i8 %24 to i32
%26 = add nsw i32 %25, -56
%27 = icmp eq i32 %26, -1
%28 = zext i1 %27 to i32
%29 = tail call i32 @testcase(i32 noundef %28) #2
%30 = icmp eq i32 %26, 0
%31 = zext i1 %30 to i32
%32 = tail call i32 @testcase(i32 noundef %31) #2
%33 = icmp eq i32 %26, 1
%34 = zext i1 %33 to i32
%35 = tail call i32 @testcase(i32 noundef %34) #2
br label %36
36: ; preds = %20, %15
%37 = phi i32 [ %26, %20 ], [ %19, %15 ]
ret i32 %37
}
declare i32 @testcase(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/nodemcu-firmware/app/sqlite3/extr_sqlite3.c_compare2pow63.c'
source_filename = "AnghaBench/nodemcu-firmware/app/sqlite3/extr_sqlite3.c_compare2pow63.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [19 x i8] c"922337203685477580\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @compare2pow63], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2550, 2551) i32 @compare2pow63(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = sext i32 %1 to i64
br label %4
4: ; preds = %2, %4
%5 = phi i64 [ 0, %2 ], [ %11, %4 ]
%6 = mul nsw i64 %5, %3
%7 = getelementptr inbounds i8, ptr %0, i64 %6
%8 = load i8, ptr %7, align 1, !tbaa !6
%9 = getelementptr inbounds i8, ptr @.str, i64 %5
%10 = load i8, ptr %9, align 1, !tbaa !6
%11 = add nuw nsw i64 %5, 1
%12 = icmp eq i8 %8, %10
%13 = icmp ult i64 %5, 17
%14 = and i1 %12, %13
br i1 %14, label %4, label %15, !llvm.loop !9
15: ; preds = %4
%16 = sext i8 %10 to i32
%17 = sext i8 %8 to i32
%18 = sub nsw i32 %17, %16
%19 = mul nsw i32 %18, 10
br i1 %12, label %20, label %36
20: ; preds = %15
%21 = mul nsw i32 %1, 18
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %0, i64 %22
%24 = load i8, ptr %23, align 1, !tbaa !6
%25 = sext i8 %24 to i32
%26 = add nsw i32 %25, -56
%27 = icmp eq i32 %26, -1
%28 = zext i1 %27 to i32
%29 = tail call i32 @testcase(i32 noundef %28) #2
%30 = icmp eq i32 %26, 0
%31 = zext i1 %30 to i32
%32 = tail call i32 @testcase(i32 noundef %31) #2
%33 = icmp eq i32 %26, 1
%34 = zext i1 %33 to i32
%35 = tail call i32 @testcase(i32 noundef %34) #2
br label %36
36: ; preds = %20, %15
%37 = phi i32 [ %26, %20 ], [ %19, %15 ]
ret i32 %37
}
declare i32 @testcase(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| nodemcu-firmware_app_sqlite3_extr_sqlite3.c_compare2pow63 |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/wil6210/extr_cfg80211.c_wil_rx_cb_mode_to_n_bonded.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/wil6210/extr_cfg80211.c_wil_rx_cb_mode_to_n_bonded.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @wil_rx_cb_mode_to_n_bonded], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @wil_rx_cb_mode_to_n_bonded(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 128
%3 = select i1 %2, i32 2, i32 1
ret i32 %3
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/wil6210/extr_cfg80211.c_wil_rx_cb_mode_to_n_bonded.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/wil6210/extr_cfg80211.c_wil_rx_cb_mode_to_n_bonded.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @wil_rx_cb_mode_to_n_bonded], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef range(i32 1, 3) i32 @wil_rx_cb_mode_to_n_bonded(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 128
%3 = select i1 %2, i32 2, i32 1
ret i32 %3
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_net_wireless_ath_wil6210_extr_cfg80211.c_wil_rx_cb_mode_to_n_bonded |
; ModuleID = 'AnghaBench/linux/fs/jbd2/extr_journal.c_jbd2_journal_write_metadata_buffer.c'
source_filename = "AnghaBench/linux/fs/jbd2/extr_journal.c_jbd2_journal_write_metadata_buffer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.buffer_head = type { ptr, ptr, i32, i32, i32, ptr, i32 }
%struct.journal_head = type { ptr, i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
@GFP_NOFS = dso_local local_unnamed_addr global i32 0, align 4
@__GFP_NOFAIL = dso_local local_unnamed_addr global i32 0, align 4
@JBD2_MAGIC_NUMBER = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"file as BJ_Shadow\00", align 1
@BJ_Shadow = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @jbd2_journal_write_metadata_buffer(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @jh2bh(ptr noundef %1) #2
%6 = load ptr, ptr %0, align 8, !tbaa !5
%7 = tail call i32 @buffer_jbddirty(ptr noundef %5) #2
%8 = tail call i32 @J_ASSERT_BH(ptr noundef %5, i32 noundef %7) #2
%9 = load i32, ptr @GFP_NOFS, align 4, !tbaa !10
%10 = load i32, ptr @__GFP_NOFAIL, align 4, !tbaa !10
%11 = or i32 %10, %9
%12 = tail call ptr @alloc_buffer_head(i32 noundef %11) #2
%13 = getelementptr inbounds %struct.buffer_head, ptr %12, i64 0, i32 6
%14 = tail call i32 @atomic_set(ptr noundef nonnull %13, i32 noundef 1) #2
%15 = tail call i32 @jbd_lock_bh_state(ptr noundef %5) #2
%16 = getelementptr inbounds %struct.journal_head, ptr %1, i64 0, i32 1
%17 = getelementptr inbounds %struct.buffer_head, ptr %5, i64 0, i32 4
%18 = load ptr, ptr %1, align 8, !tbaa !12
%19 = icmp ne ptr %18, null
br i1 %19, label %32, label %20
20: ; preds = %4
%21 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%22 = getelementptr inbounds %struct.buffer_head, ptr %21, i64 0, i32 5
%23 = load ptr, ptr %22, align 8, !tbaa !14
%24 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%25 = load ptr, ptr %24, align 8, !tbaa !16
%26 = tail call i32 @offset_in_page(ptr noundef %25) #2
%27 = tail call ptr @kmap_atomic(ptr noundef %23) #2
%28 = zext i32 %26 to i64
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i32, ptr %16, align 8, !tbaa !17
%31 = tail call i32 @jbd2_buffer_frozen_trigger(ptr noundef nonnull %1, ptr noundef %29, i32 noundef %30) #2
br label %38
32: ; preds = %4
%33 = tail call ptr @virt_to_page(ptr noundef nonnull %18) #2
%34 = load ptr, ptr %1, align 8, !tbaa !12
%35 = tail call i32 @offset_in_page(ptr noundef %34) #2
%36 = tail call ptr @kmap_atomic(ptr noundef %33) #2
%37 = zext i32 %35 to i64
br label %38
38: ; preds = %32, %20
%39 = phi i64 [ %37, %32 ], [ %28, %20 ]
%40 = phi ptr [ %36, %32 ], [ %27, %20 ]
%41 = phi i32 [ 2, %32 ], [ 0, %20 ]
%42 = phi i32 [ %35, %32 ], [ %26, %20 ]
%43 = phi ptr [ %33, %32 ], [ %23, %20 ]
%44 = getelementptr inbounds i8, ptr %40, i64 %39
%45 = load i64, ptr %44, align 8, !tbaa !18
%46 = load i32, ptr @JBD2_MAGIC_NUMBER, align 4, !tbaa !10
%47 = tail call i64 @cpu_to_be32(i32 noundef %46) #2
%48 = icmp ne i64 %45, %47
%49 = xor i1 %48, true
%50 = zext i1 %49 to i32
%51 = tail call i32 @kunmap_atomic(ptr noundef %40) #2
%52 = or i1 %19, %48
br i1 %52, label %129, label %53
53: ; preds = %38
%54 = tail call i32 @jbd_unlock_bh_state(ptr noundef %5) #2
%55 = load i32, ptr %17, align 8, !tbaa !20
%56 = load i32, ptr @GFP_NOFS, align 4, !tbaa !10
%57 = tail call ptr @jbd2_alloc(i32 noundef %55, i32 noundef %56) #2
%58 = icmp eq ptr %57, null
br i1 %58, label %107, label %59
59: ; preds = %53
%60 = tail call i32 @jbd_lock_bh_state(ptr noundef nonnull %5) #2
%61 = load ptr, ptr %1, align 8, !tbaa !12
%62 = icmp eq ptr %61, null
br i1 %62, label %115, label %63
63: ; preds = %59, %111
%64 = phi ptr [ %105, %111 ], [ %57, %59 ]
%65 = phi i32 [ %99, %111 ], [ %50, %59 ]
%66 = load i32, ptr %17, align 8, !tbaa !20
%67 = tail call i32 @jbd2_free(ptr noundef nonnull %64, i32 noundef %66) #2
%68 = load ptr, ptr %1, align 8, !tbaa !12
%69 = icmp eq ptr %68, null
br i1 %69, label %76, label %70
70: ; preds = %63
%71 = tail call ptr @virt_to_page(ptr noundef nonnull %68) #2
%72 = load ptr, ptr %1, align 8, !tbaa !12
%73 = tail call i32 @offset_in_page(ptr noundef %72) #2
%74 = tail call ptr @kmap_atomic(ptr noundef %71) #2
%75 = zext i32 %73 to i64
br label %88
76: ; preds = %63
%77 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%78 = getelementptr inbounds %struct.buffer_head, ptr %77, i64 0, i32 5
%79 = load ptr, ptr %78, align 8, !tbaa !14
%80 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%81 = load ptr, ptr %80, align 8, !tbaa !16
%82 = tail call i32 @offset_in_page(ptr noundef %81) #2
%83 = tail call ptr @kmap_atomic(ptr noundef %79) #2
%84 = zext i32 %82 to i64
%85 = getelementptr inbounds i8, ptr %83, i64 %84
%86 = load i32, ptr %16, align 8, !tbaa !17
%87 = tail call i32 @jbd2_buffer_frozen_trigger(ptr noundef nonnull %1, ptr noundef %85, i32 noundef %86) #2
br label %88
88: ; preds = %70, %76
%89 = phi i64 [ %75, %70 ], [ %84, %76 ]
%90 = phi ptr [ %74, %70 ], [ %83, %76 ]
%91 = phi i32 [ 2, %70 ], [ 0, %76 ]
%92 = phi i32 [ %73, %70 ], [ %82, %76 ]
%93 = phi ptr [ %71, %70 ], [ %79, %76 ]
%94 = getelementptr inbounds i8, ptr %90, i64 %89
%95 = load i64, ptr %94, align 8, !tbaa !18
%96 = load i32, ptr @JBD2_MAGIC_NUMBER, align 4, !tbaa !10
%97 = tail call i64 @cpu_to_be32(i32 noundef %96) #2
%98 = icmp eq i64 %95, %97
%99 = select i1 %98, i32 1, i32 %65
%100 = tail call i32 @kunmap_atomic(ptr noundef %90) #2
br i1 %69, label %101, label %129
101: ; preds = %88
%102 = tail call i32 @jbd_unlock_bh_state(ptr noundef nonnull %5) #2
%103 = load i32, ptr %17, align 8, !tbaa !20
%104 = load i32, ptr @GFP_NOFS, align 4, !tbaa !10
%105 = tail call ptr @jbd2_alloc(i32 noundef %103, i32 noundef %104) #2
%106 = icmp eq ptr %105, null
br i1 %106, label %107, label %111
107: ; preds = %101, %53
%108 = tail call i32 @brelse(ptr noundef %12) #2
%109 = load i32, ptr @ENOMEM, align 4, !tbaa !10
%110 = sub nsw i32 0, %109
br label %159
111: ; preds = %101
%112 = tail call i32 @jbd_lock_bh_state(ptr noundef nonnull %5) #2
%113 = load ptr, ptr %1, align 8, !tbaa !12
%114 = icmp eq ptr %113, null
br i1 %114, label %115, label %63, !llvm.loop !21
115: ; preds = %111, %59
%116 = phi ptr [ %57, %59 ], [ %105, %111 ]
%117 = phi ptr [ %43, %59 ], [ %93, %111 ]
%118 = phi i64 [ %39, %59 ], [ %89, %111 ]
%119 = phi i32 [ %50, %59 ], [ %99, %111 ]
store ptr %116, ptr %1, align 8, !tbaa !12
%120 = tail call ptr @kmap_atomic(ptr noundef %117) #2
%121 = getelementptr inbounds i8, ptr %120, i64 %118
%122 = load i32, ptr %17, align 8, !tbaa !20
%123 = tail call i32 @memcpy(ptr noundef nonnull %116, ptr noundef %121, i32 noundef %122) #2
%124 = tail call i32 @kunmap_atomic(ptr noundef %120) #2
%125 = tail call ptr @virt_to_page(ptr noundef nonnull %116) #2
%126 = tail call i32 @offset_in_page(ptr noundef nonnull %116) #2
%127 = load i32, ptr %16, align 8, !tbaa !17
%128 = getelementptr inbounds %struct.journal_head, ptr %1, i64 0, i32 2
store i32 %127, ptr %128, align 4, !tbaa !23
br label %129
129: ; preds = %88, %38, %115
%130 = phi i32 [ %119, %115 ], [ %50, %38 ], [ %99, %88 ]
%131 = phi ptr [ %125, %115 ], [ %43, %38 ], [ %93, %88 ]
%132 = phi i32 [ %126, %115 ], [ %42, %38 ], [ %92, %88 ]
%133 = phi i32 [ 2, %115 ], [ %41, %38 ], [ %91, %88 ]
%134 = icmp eq i32 %130, 0
br i1 %134, label %140, label %135
135: ; preds = %129
%136 = tail call ptr @kmap_atomic(ptr noundef %131) #2
%137 = zext i32 %132 to i64
%138 = getelementptr inbounds i8, ptr %136, i64 %137
store i32 0, ptr %138, align 4, !tbaa !10
%139 = tail call i32 @kunmap_atomic(ptr noundef %136) #2
br label %140
140: ; preds = %135, %129
%141 = tail call i32 @set_bh_page(ptr noundef %12, ptr noundef %131, i32 noundef %132) #2
%142 = load i32, ptr %17, align 8, !tbaa !20
%143 = getelementptr inbounds %struct.buffer_head, ptr %12, i64 0, i32 4
store i32 %142, ptr %143, align 8, !tbaa !20
%144 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 1
%145 = load i32, ptr %144, align 4, !tbaa !24
%146 = getelementptr inbounds %struct.buffer_head, ptr %12, i64 0, i32 3
store i32 %145, ptr %146, align 4, !tbaa !26
%147 = getelementptr inbounds %struct.buffer_head, ptr %12, i64 0, i32 2
store i32 %3, ptr %147, align 8, !tbaa !27
%148 = getelementptr inbounds %struct.buffer_head, ptr %12, i64 0, i32 1
store ptr %5, ptr %148, align 8, !tbaa !28
%149 = tail call i32 @set_buffer_mapped(ptr noundef %12) #2
%150 = tail call i32 @set_buffer_dirty(ptr noundef %12) #2
store ptr %12, ptr %2, align 8, !tbaa !29
%151 = tail call i32 @JBUFFER_TRACE(ptr noundef nonnull %1, ptr noundef nonnull @.str) #2
%152 = tail call i32 @spin_lock(ptr noundef %6) #2
%153 = load i32, ptr @BJ_Shadow, align 4, !tbaa !10
%154 = tail call i32 @__jbd2_journal_file_buffer(ptr noundef nonnull %1, ptr noundef nonnull %0, i32 noundef %153) #2
%155 = tail call i32 @spin_unlock(ptr noundef %6) #2
%156 = tail call i32 @set_buffer_shadow(ptr noundef %5) #2
%157 = tail call i32 @jbd_unlock_bh_state(ptr noundef %5) #2
%158 = or i32 %133, %130
br label %159
159: ; preds = %107, %140
%160 = phi i32 [ %158, %140 ], [ %110, %107 ]
ret i32 %160
}
declare ptr @jh2bh(ptr noundef) local_unnamed_addr #1
declare i32 @J_ASSERT_BH(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @buffer_jbddirty(ptr noundef) local_unnamed_addr #1
declare ptr @alloc_buffer_head(i32 noundef) local_unnamed_addr #1
declare i32 @atomic_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @jbd_lock_bh_state(ptr noundef) local_unnamed_addr #1
declare ptr @virt_to_page(ptr noundef) local_unnamed_addr #1
declare i32 @offset_in_page(ptr noundef) local_unnamed_addr #1
declare ptr @kmap_atomic(ptr noundef) local_unnamed_addr #1
declare i32 @jbd2_buffer_frozen_trigger(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @cpu_to_be32(i32 noundef) local_unnamed_addr #1
declare i32 @kunmap_atomic(ptr noundef) local_unnamed_addr #1
declare i32 @jbd_unlock_bh_state(ptr noundef) local_unnamed_addr #1
declare ptr @jbd2_alloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @brelse(ptr noundef) local_unnamed_addr #1
declare i32 @jbd2_free(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_bh_page(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_buffer_mapped(ptr noundef) local_unnamed_addr #1
declare i32 @set_buffer_dirty(ptr noundef) local_unnamed_addr #1
declare i32 @JBUFFER_TRACE(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @__jbd2_journal_file_buffer(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @set_buffer_shadow(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_5__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"journal_head", !7, i64 0, !11, i64 8, !11, i64 12}
!14 = !{!15, !7, i64 32}
!15 = !{!"buffer_head", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !7, i64 32, !11, i64 40}
!16 = !{!15, !7, i64 0}
!17 = !{!13, !11, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!15, !11, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = !{!13, !11, i64 12}
!24 = !{!25, !11, i64 4}
!25 = !{!"TYPE_6__", !11, i64 0, !11, i64 4}
!26 = !{!15, !11, i64 20}
!27 = !{!15, !11, i64 16}
!28 = !{!15, !7, i64 8}
!29 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/jbd2/extr_journal.c_jbd2_journal_write_metadata_buffer.c'
source_filename = "AnghaBench/linux/fs/jbd2/extr_journal.c_jbd2_journal_write_metadata_buffer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_NOFS = common local_unnamed_addr global i32 0, align 4
@__GFP_NOFAIL = common local_unnamed_addr global i32 0, align 4
@JBD2_MAGIC_NUMBER = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"file as BJ_Shadow\00", align 1
@BJ_Shadow = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @jbd2_journal_write_metadata_buffer(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @jh2bh(ptr noundef %1) #2
%6 = load ptr, ptr %0, align 8, !tbaa !6
%7 = tail call i32 @buffer_jbddirty(ptr noundef %5) #2
%8 = tail call i32 @J_ASSERT_BH(ptr noundef %5, i32 noundef %7) #2
%9 = load i32, ptr @GFP_NOFS, align 4, !tbaa !11
%10 = load i32, ptr @__GFP_NOFAIL, align 4, !tbaa !11
%11 = or i32 %10, %9
%12 = tail call ptr @alloc_buffer_head(i32 noundef %11) #2
%13 = getelementptr inbounds i8, ptr %12, i64 40
%14 = tail call i32 @atomic_set(ptr noundef nonnull %13, i32 noundef 1) #2
%15 = tail call i32 @jbd_lock_bh_state(ptr noundef %5) #2
%16 = getelementptr inbounds i8, ptr %1, i64 8
%17 = getelementptr inbounds i8, ptr %5, i64 24
%18 = load ptr, ptr %1, align 8, !tbaa !13
%19 = icmp ne ptr %18, null
br i1 %19, label %32, label %20
20: ; preds = %4
%21 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%22 = getelementptr inbounds i8, ptr %21, i64 32
%23 = load ptr, ptr %22, align 8, !tbaa !15
%24 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%25 = load ptr, ptr %24, align 8, !tbaa !17
%26 = tail call i32 @offset_in_page(ptr noundef %25) #2
%27 = tail call ptr @kmap_atomic(ptr noundef %23) #2
%28 = zext i32 %26 to i64
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load i32, ptr %16, align 8, !tbaa !18
%31 = tail call i32 @jbd2_buffer_frozen_trigger(ptr noundef nonnull %1, ptr noundef %29, i32 noundef %30) #2
br label %38
32: ; preds = %4
%33 = tail call ptr @virt_to_page(ptr noundef nonnull %18) #2
%34 = load ptr, ptr %1, align 8, !tbaa !13
%35 = tail call i32 @offset_in_page(ptr noundef %34) #2
%36 = tail call ptr @kmap_atomic(ptr noundef %33) #2
%37 = zext i32 %35 to i64
br label %38
38: ; preds = %32, %20
%39 = phi i64 [ %37, %32 ], [ %28, %20 ]
%40 = phi ptr [ %36, %32 ], [ %27, %20 ]
%41 = phi i32 [ 2, %32 ], [ 0, %20 ]
%42 = phi i32 [ %35, %32 ], [ %26, %20 ]
%43 = phi ptr [ %33, %32 ], [ %23, %20 ]
%44 = getelementptr inbounds i8, ptr %40, i64 %39
%45 = load i64, ptr %44, align 8, !tbaa !19
%46 = load i32, ptr @JBD2_MAGIC_NUMBER, align 4, !tbaa !11
%47 = tail call i64 @cpu_to_be32(i32 noundef %46) #2
%48 = icmp ne i64 %45, %47
%49 = xor i1 %48, true
%50 = zext i1 %49 to i32
%51 = tail call i32 @kunmap_atomic(ptr noundef %40) #2
%52 = or i1 %19, %48
br i1 %52, label %129, label %53
53: ; preds = %38
%54 = tail call i32 @jbd_unlock_bh_state(ptr noundef %5) #2
%55 = load i32, ptr %17, align 8, !tbaa !21
%56 = load i32, ptr @GFP_NOFS, align 4, !tbaa !11
%57 = tail call ptr @jbd2_alloc(i32 noundef %55, i32 noundef %56) #2
%58 = icmp eq ptr %57, null
br i1 %58, label %107, label %59
59: ; preds = %53
%60 = tail call i32 @jbd_lock_bh_state(ptr noundef nonnull %5) #2
%61 = load ptr, ptr %1, align 8, !tbaa !13
%62 = icmp eq ptr %61, null
br i1 %62, label %115, label %63
63: ; preds = %59, %111
%64 = phi ptr [ %105, %111 ], [ %57, %59 ]
%65 = phi i32 [ %99, %111 ], [ %50, %59 ]
%66 = load i32, ptr %17, align 8, !tbaa !21
%67 = tail call i32 @jbd2_free(ptr noundef nonnull %64, i32 noundef %66) #2
%68 = load ptr, ptr %1, align 8, !tbaa !13
%69 = icmp eq ptr %68, null
br i1 %69, label %76, label %70
70: ; preds = %63
%71 = tail call ptr @virt_to_page(ptr noundef nonnull %68) #2
%72 = load ptr, ptr %1, align 8, !tbaa !13
%73 = tail call i32 @offset_in_page(ptr noundef %72) #2
%74 = tail call ptr @kmap_atomic(ptr noundef %71) #2
%75 = zext i32 %73 to i64
br label %88
76: ; preds = %63
%77 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%78 = getelementptr inbounds i8, ptr %77, i64 32
%79 = load ptr, ptr %78, align 8, !tbaa !15
%80 = tail call ptr @jh2bh(ptr noundef nonnull %1) #2
%81 = load ptr, ptr %80, align 8, !tbaa !17
%82 = tail call i32 @offset_in_page(ptr noundef %81) #2
%83 = tail call ptr @kmap_atomic(ptr noundef %79) #2
%84 = zext i32 %82 to i64
%85 = getelementptr inbounds i8, ptr %83, i64 %84
%86 = load i32, ptr %16, align 8, !tbaa !18
%87 = tail call i32 @jbd2_buffer_frozen_trigger(ptr noundef nonnull %1, ptr noundef %85, i32 noundef %86) #2
br label %88
88: ; preds = %70, %76
%89 = phi i64 [ %75, %70 ], [ %84, %76 ]
%90 = phi ptr [ %74, %70 ], [ %83, %76 ]
%91 = phi i32 [ 2, %70 ], [ 0, %76 ]
%92 = phi i32 [ %73, %70 ], [ %82, %76 ]
%93 = phi ptr [ %71, %70 ], [ %79, %76 ]
%94 = getelementptr inbounds i8, ptr %90, i64 %89
%95 = load i64, ptr %94, align 8, !tbaa !19
%96 = load i32, ptr @JBD2_MAGIC_NUMBER, align 4, !tbaa !11
%97 = tail call i64 @cpu_to_be32(i32 noundef %96) #2
%98 = icmp eq i64 %95, %97
%99 = select i1 %98, i32 1, i32 %65
%100 = tail call i32 @kunmap_atomic(ptr noundef %90) #2
br i1 %69, label %101, label %129
101: ; preds = %88
%102 = tail call i32 @jbd_unlock_bh_state(ptr noundef nonnull %5) #2
%103 = load i32, ptr %17, align 8, !tbaa !21
%104 = load i32, ptr @GFP_NOFS, align 4, !tbaa !11
%105 = tail call ptr @jbd2_alloc(i32 noundef %103, i32 noundef %104) #2
%106 = icmp eq ptr %105, null
br i1 %106, label %107, label %111
107: ; preds = %101, %53
%108 = tail call i32 @brelse(ptr noundef %12) #2
%109 = load i32, ptr @ENOMEM, align 4, !tbaa !11
%110 = sub nsw i32 0, %109
br label %159
111: ; preds = %101
%112 = tail call i32 @jbd_lock_bh_state(ptr noundef nonnull %5) #2
%113 = load ptr, ptr %1, align 8, !tbaa !13
%114 = icmp eq ptr %113, null
br i1 %114, label %115, label %63, !llvm.loop !22
115: ; preds = %111, %59
%116 = phi ptr [ %57, %59 ], [ %105, %111 ]
%117 = phi ptr [ %43, %59 ], [ %93, %111 ]
%118 = phi i64 [ %39, %59 ], [ %89, %111 ]
%119 = phi i32 [ %50, %59 ], [ %99, %111 ]
store ptr %116, ptr %1, align 8, !tbaa !13
%120 = tail call ptr @kmap_atomic(ptr noundef %117) #2
%121 = getelementptr inbounds i8, ptr %120, i64 %118
%122 = load i32, ptr %17, align 8, !tbaa !21
%123 = tail call i32 @memcpy(ptr noundef nonnull %116, ptr noundef %121, i32 noundef %122) #2
%124 = tail call i32 @kunmap_atomic(ptr noundef %120) #2
%125 = tail call ptr @virt_to_page(ptr noundef nonnull %116) #2
%126 = tail call i32 @offset_in_page(ptr noundef nonnull %116) #2
%127 = load i32, ptr %16, align 8, !tbaa !18
%128 = getelementptr inbounds i8, ptr %1, i64 12
store i32 %127, ptr %128, align 4, !tbaa !24
br label %129
129: ; preds = %88, %38, %115
%130 = phi i32 [ %119, %115 ], [ %50, %38 ], [ %99, %88 ]
%131 = phi ptr [ %125, %115 ], [ %43, %38 ], [ %93, %88 ]
%132 = phi i32 [ %126, %115 ], [ %42, %38 ], [ %92, %88 ]
%133 = phi i32 [ 2, %115 ], [ %41, %38 ], [ %91, %88 ]
%134 = icmp eq i32 %130, 0
br i1 %134, label %140, label %135
135: ; preds = %129
%136 = tail call ptr @kmap_atomic(ptr noundef %131) #2
%137 = zext i32 %132 to i64
%138 = getelementptr inbounds i8, ptr %136, i64 %137
store i32 0, ptr %138, align 4, !tbaa !11
%139 = tail call i32 @kunmap_atomic(ptr noundef %136) #2
br label %140
140: ; preds = %135, %129
%141 = tail call i32 @set_bh_page(ptr noundef %12, ptr noundef %131, i32 noundef %132) #2
%142 = load i32, ptr %17, align 8, !tbaa !21
%143 = getelementptr inbounds i8, ptr %12, i64 24
store i32 %142, ptr %143, align 8, !tbaa !21
%144 = getelementptr inbounds i8, ptr %6, i64 4
%145 = load i32, ptr %144, align 4, !tbaa !25
%146 = getelementptr inbounds i8, ptr %12, i64 20
store i32 %145, ptr %146, align 4, !tbaa !27
%147 = getelementptr inbounds i8, ptr %12, i64 16
store i32 %3, ptr %147, align 8, !tbaa !28
%148 = getelementptr inbounds i8, ptr %12, i64 8
store ptr %5, ptr %148, align 8, !tbaa !29
%149 = tail call i32 @set_buffer_mapped(ptr noundef %12) #2
%150 = tail call i32 @set_buffer_dirty(ptr noundef %12) #2
store ptr %12, ptr %2, align 8, !tbaa !30
%151 = tail call i32 @JBUFFER_TRACE(ptr noundef nonnull %1, ptr noundef nonnull @.str) #2
%152 = tail call i32 @spin_lock(ptr noundef %6) #2
%153 = load i32, ptr @BJ_Shadow, align 4, !tbaa !11
%154 = tail call i32 @__jbd2_journal_file_buffer(ptr noundef nonnull %1, ptr noundef nonnull %0, i32 noundef %153) #2
%155 = tail call i32 @spin_unlock(ptr noundef %6) #2
%156 = tail call i32 @set_buffer_shadow(ptr noundef %5) #2
%157 = tail call i32 @jbd_unlock_bh_state(ptr noundef %5) #2
%158 = or i32 %133, %130
br label %159
159: ; preds = %107, %140
%160 = phi i32 [ %158, %140 ], [ %110, %107 ]
ret i32 %160
}
declare ptr @jh2bh(ptr noundef) local_unnamed_addr #1
declare i32 @J_ASSERT_BH(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @buffer_jbddirty(ptr noundef) local_unnamed_addr #1
declare ptr @alloc_buffer_head(i32 noundef) local_unnamed_addr #1
declare i32 @atomic_set(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @jbd_lock_bh_state(ptr noundef) local_unnamed_addr #1
declare ptr @virt_to_page(ptr noundef) local_unnamed_addr #1
declare i32 @offset_in_page(ptr noundef) local_unnamed_addr #1
declare ptr @kmap_atomic(ptr noundef) local_unnamed_addr #1
declare i32 @jbd2_buffer_frozen_trigger(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @cpu_to_be32(i32 noundef) local_unnamed_addr #1
declare i32 @kunmap_atomic(ptr noundef) local_unnamed_addr #1
declare i32 @jbd_unlock_bh_state(ptr noundef) local_unnamed_addr #1
declare ptr @jbd2_alloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @brelse(ptr noundef) local_unnamed_addr #1
declare i32 @jbd2_free(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_bh_page(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_buffer_mapped(ptr noundef) local_unnamed_addr #1
declare i32 @set_buffer_dirty(ptr noundef) local_unnamed_addr #1
declare i32 @JBUFFER_TRACE(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @__jbd2_journal_file_buffer(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @set_buffer_shadow(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"journal_head", !8, i64 0, !12, i64 8, !12, i64 12}
!15 = !{!16, !8, i64 32}
!16 = !{!"buffer_head", !8, i64 0, !8, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !8, i64 32, !12, i64 40}
!17 = !{!16, !8, i64 0}
!18 = !{!14, !12, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !9, i64 0}
!21 = !{!16, !12, i64 24}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.peeled.count", i32 1}
!24 = !{!14, !12, i64 12}
!25 = !{!26, !12, i64 4}
!26 = !{!"TYPE_6__", !12, i64 0, !12, i64 4}
!27 = !{!16, !12, i64 20}
!28 = !{!16, !12, i64 16}
!29 = !{!16, !8, i64 8}
!30 = !{!8, !8, i64 0}
| linux_fs_jbd2_extr_journal.c_jbd2_journal_write_metadata_buffer |
; ModuleID = 'AnghaBench/freebsd/sys/i386/bios/extr_apm.c_apm_add_hook.c'
source_filename = "AnghaBench/freebsd/sys/i386/bios/extr_apm.c_apm_add_hook.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.apmhook = type { i64, ptr, i32 }
@.str = private unnamed_addr constant [15 x i8] c"Add hook \22%s\22\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @apm_add_hook], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @apm_add_hook(ptr nocapture noundef %0, ptr noundef returned %1) #0 {
%3 = getelementptr inbounds %struct.apmhook, ptr %1, i64 0, i32 2
%4 = load i32, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @APM_DPRINT(ptr noundef nonnull @.str, i32 noundef %4) #2
%6 = load ptr, ptr %0, align 8, !tbaa !12
%7 = icmp eq ptr %6, null
br i1 %7, label %27, label %8
8: ; preds = %2
%9 = load i64, ptr %1, align 8, !tbaa !13
%10 = load i64, ptr %6, align 8, !tbaa !13
%11 = icmp sgt i64 %10, %9
br i1 %11, label %20, label %12
12: ; preds = %8, %17
%13 = phi ptr [ %15, %17 ], [ %6, %8 ]
%14 = getelementptr inbounds %struct.apmhook, ptr %13, i64 0, i32 1
%15 = load ptr, ptr %14, align 8, !tbaa !12
%16 = icmp eq ptr %15, null
br i1 %16, label %23, label %17, !llvm.loop !14
17: ; preds = %12
%18 = load i64, ptr %15, align 8, !tbaa !13
%19 = icmp sgt i64 %18, %9
br i1 %19, label %20, label %12, !llvm.loop !14
20: ; preds = %17, %8
%21 = phi ptr [ null, %8 ], [ %13, %17 ]
%22 = icmp eq ptr %21, null
br i1 %22, label %27, label %23
23: ; preds = %12, %20
%24 = phi ptr [ %21, %20 ], [ %13, %12 ]
%25 = getelementptr inbounds %struct.apmhook, ptr %24, i64 0, i32 1
%26 = load ptr, ptr %25, align 8, !tbaa !16
br label %27
27: ; preds = %20, %2, %23
%28 = phi ptr [ %26, %23 ], [ %6, %2 ], [ %6, %20 ]
%29 = phi ptr [ %25, %23 ], [ %0, %2 ], [ %0, %20 ]
%30 = getelementptr inbounds %struct.apmhook, ptr %1, i64 0, i32 1
store ptr %28, ptr %30, align 8, !tbaa !16
store ptr %1, ptr %29, align 8, !tbaa !12
ret ptr %1
}
declare i32 @APM_DPRINT(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"apmhook", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/sys/i386/bios/extr_apm.c_apm_add_hook.c'
source_filename = "AnghaBench/freebsd/sys/i386/bios/extr_apm.c_apm_add_hook.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [15 x i8] c"Add hook \22%s\22\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @apm_add_hook], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @apm_add_hook(ptr nocapture noundef %0, ptr noundef returned %1) #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 16
%4 = load i32, ptr %3, align 8, !tbaa !6
%5 = tail call i32 @APM_DPRINT(ptr noundef nonnull @.str, i32 noundef %4) #2
%6 = load ptr, ptr %0, align 8, !tbaa !13
%7 = icmp eq ptr %6, null
br i1 %7, label %27, label %8
8: ; preds = %2
%9 = load i64, ptr %1, align 8, !tbaa !14
%10 = load i64, ptr %6, align 8, !tbaa !14
%11 = icmp sgt i64 %10, %9
br i1 %11, label %20, label %12
12: ; preds = %8, %17
%13 = phi ptr [ %15, %17 ], [ %6, %8 ]
%14 = getelementptr inbounds i8, ptr %13, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !13
%16 = icmp eq ptr %15, null
br i1 %16, label %23, label %17, !llvm.loop !15
17: ; preds = %12
%18 = load i64, ptr %15, align 8, !tbaa !14
%19 = icmp sgt i64 %18, %9
br i1 %19, label %20, label %12, !llvm.loop !15
20: ; preds = %17, %8
%21 = phi ptr [ null, %8 ], [ %13, %17 ]
%22 = icmp eq ptr %21, null
br i1 %22, label %27, label %23
23: ; preds = %12, %20
%24 = phi ptr [ %21, %20 ], [ %13, %12 ]
%25 = getelementptr inbounds i8, ptr %24, i64 8
%26 = load ptr, ptr %25, align 8, !tbaa !17
br label %27
27: ; preds = %20, %2, %23
%28 = phi ptr [ %26, %23 ], [ %6, %2 ], [ %6, %20 ]
%29 = phi ptr [ %25, %23 ], [ %0, %2 ], [ %0, %20 ]
%30 = getelementptr inbounds i8, ptr %1, i64 8
store ptr %28, ptr %30, align 8, !tbaa !17
store ptr %1, ptr %29, align 8, !tbaa !13
ret ptr %1
}
declare i32 @APM_DPRINT(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 16}
!7 = !{!"apmhook", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !11, i64 8}
| freebsd_sys_i386_bios_extr_apm.c_apm_add_hook |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_ov7670.c_ov7670_write_smbus.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_ov7670.c_ov7670_write_smbus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@REG_COM7 = dso_local local_unnamed_addr global i8 0, align 1
@COM7_RESET = dso_local local_unnamed_addr global i8 0, align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ov7670_write_smbus], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ov7670_write_smbus(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = tail call ptr @v4l2_get_subdevdata(ptr noundef %0) #2
%5 = tail call i32 @i2c_smbus_write_byte_data(ptr noundef %4, i8 noundef zeroext %1, i8 noundef zeroext %2) #2
%6 = load i8, ptr @REG_COM7, align 1, !tbaa !5
%7 = icmp eq i8 %6, %1
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = load i8, ptr @COM7_RESET, align 1, !tbaa !5
%10 = and i8 %9, %2
%11 = icmp eq i8 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %8
%13 = tail call i32 @msleep(i32 noundef 5) #2
br label %14
14: ; preds = %12, %8, %3
ret i32 %5
}
declare ptr @v4l2_get_subdevdata(ptr noundef) local_unnamed_addr #1
declare i32 @i2c_smbus_write_byte_data(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_ov7670.c_ov7670_write_smbus.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_ov7670.c_ov7670_write_smbus.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@REG_COM7 = common local_unnamed_addr global i8 0, align 1
@COM7_RESET = common local_unnamed_addr global i8 0, align 1
@llvm.used = appending global [1 x ptr] [ptr @ov7670_write_smbus], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ov7670_write_smbus(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = tail call ptr @v4l2_get_subdevdata(ptr noundef %0) #2
%5 = tail call i32 @i2c_smbus_write_byte_data(ptr noundef %4, i8 noundef zeroext %1, i8 noundef zeroext %2) #2
%6 = load i8, ptr @REG_COM7, align 1, !tbaa !6
%7 = icmp eq i8 %6, %1
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = load i8, ptr @COM7_RESET, align 1, !tbaa !6
%10 = and i8 %9, %2
%11 = icmp eq i8 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %8
%13 = tail call i32 @msleep(i32 noundef 5) #2
br label %14
14: ; preds = %12, %8, %3
ret i32 %5
}
declare ptr @v4l2_get_subdevdata(ptr noundef) local_unnamed_addr #1
declare i32 @i2c_smbus_write_byte_data(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_media_video_extr_ov7670.c_ov7670_write_smbus |
; ModuleID = 'AnghaBench/zfs/module/zfs/extr_metaslab.c_metaslab_block_find.c'
source_filename = "AnghaBench/zfs/module/zfs/extr_metaslab.c_metaslab_block_find.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @metaslab_block_find], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @metaslab_block_find(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%7 = call i32 @rs_set_start(ptr noundef nonnull %6, ptr noundef %1, i64 noundef %2) #3
%8 = add nsw i64 %3, %2
%9 = call i32 @rs_set_end(ptr noundef nonnull %6, ptr noundef %1, i64 noundef %8) #3
%10 = call ptr @zfs_btree_find(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %4) #3
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %5
%13 = call ptr @zfs_btree_next(ptr noundef %0, ptr noundef %4, ptr noundef %4) #3
br label %14
14: ; preds = %12, %5
%15 = phi ptr [ %13, %12 ], [ %10, %5 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
ret ptr %15
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @rs_set_start(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @rs_set_end(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare ptr @zfs_btree_find(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @zfs_btree_next(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/zfs/module/zfs/extr_metaslab.c_metaslab_block_find.c'
source_filename = "AnghaBench/zfs/module/zfs/extr_metaslab.c_metaslab_block_find.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @metaslab_block_find], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @metaslab_block_find(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%7 = call i32 @rs_set_start(ptr noundef nonnull %6, ptr noundef %1, i64 noundef %2) #3
%8 = add nsw i64 %3, %2
%9 = call i32 @rs_set_end(ptr noundef nonnull %6, ptr noundef %1, i64 noundef %8) #3
%10 = call ptr @zfs_btree_find(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %4) #3
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %5
%13 = call ptr @zfs_btree_next(ptr noundef %0, ptr noundef %4, ptr noundef %4) #3
br label %14
14: ; preds = %12, %5
%15 = phi ptr [ %13, %12 ], [ %10, %5 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
ret ptr %15
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @rs_set_start(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @rs_set_end(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare ptr @zfs_btree_find(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @zfs_btree_next(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| zfs_module_zfs_extr_metaslab.c_metaslab_block_find |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/core/extr_cma.c_cma_set_req_event_data.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/core/extr_cma.c_cma_set_req_event_data.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ib_cm_req_event_param = type { i32, i32, i32, i32, i32, i32, i32 }
@IB_CM_REQ_PRIVATE_DATA_SIZE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @cma_set_req_event_data], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define internal void @cma_set_req_event_data(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = sext i32 %3 to i64
%6 = getelementptr inbounds i8, ptr %2, i64 %5
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 8
store ptr %6, ptr %7, align 8, !tbaa !5
%8 = load i64, ptr @IB_CM_REQ_PRIVATE_DATA_SIZE, align 8, !tbaa !14
%9 = sub nsw i64 %8, %5
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 7
store i64 %9, ptr %10, align 8, !tbaa !15
%11 = getelementptr inbounds %struct.ib_cm_req_event_param, ptr %1, i64 0, i32 6
%12 = load i32, ptr %11, align 4, !tbaa !16
%13 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 6
store i32 %12, ptr %13, align 8, !tbaa !18
%14 = getelementptr inbounds %struct.ib_cm_req_event_param, ptr %1, i64 0, i32 4
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 4
%16 = load <2 x i32>, ptr %14, align 4, !tbaa !19
store <2 x i32> %16, ptr %15, align 8, !tbaa !19
%17 = load <4 x i32>, ptr %1, align 4, !tbaa !19
store <4 x i32> %17, ptr %0, align 8, !tbaa !19
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !13, i64 40}
!6 = !{!"rdma_cm_event", !7, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"TYPE_3__", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !9, i64 24, !12, i64 32, !13, i64 40}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!6, !12, i64 32}
!16 = !{!17, !9, i64 24}
!17 = !{!"ib_cm_req_event_param", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !9, i64 24}
!18 = !{!6, !9, i64 24}
!19 = !{!9, !9, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/core/extr_cma.c_cma_set_req_event_data.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/core/extr_cma.c_cma_set_req_event_data.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IB_CM_REQ_PRIVATE_DATA_SIZE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @cma_set_req_event_data], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @cma_set_req_event_data(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = sext i32 %3 to i64
%6 = getelementptr inbounds i8, ptr %2, i64 %5
%7 = getelementptr inbounds i8, ptr %0, i64 40
store ptr %6, ptr %7, align 8, !tbaa !6
%8 = load i64, ptr @IB_CM_REQ_PRIVATE_DATA_SIZE, align 8, !tbaa !15
%9 = sub nsw i64 %8, %5
%10 = getelementptr inbounds i8, ptr %0, i64 32
store i64 %9, ptr %10, align 8, !tbaa !16
%11 = getelementptr inbounds i8, ptr %1, i64 24
%12 = load i32, ptr %11, align 4, !tbaa !17
%13 = getelementptr inbounds i8, ptr %0, i64 24
store i32 %12, ptr %13, align 8, !tbaa !19
%14 = getelementptr inbounds i8, ptr %1, i64 16
%15 = getelementptr inbounds i8, ptr %0, i64 16
%16 = load <2 x i32>, ptr %14, align 4, !tbaa !20
store <2 x i32> %16, ptr %15, align 8, !tbaa !20
%17 = load <4 x i32>, ptr %1, align 4, !tbaa !20
store <4 x i32> %17, ptr %0, align 8, !tbaa !20
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !14, i64 40}
!7 = !{!"rdma_cm_event", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0}
!9 = !{!"TYPE_3__", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 32, !14, i64 40}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"any pointer", !11, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!7, !13, i64 32}
!17 = !{!18, !10, i64 24}
!18 = !{!"ib_cm_req_event_param", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!19 = !{!7, !10, i64 24}
!20 = !{!10, !10, i64 0}
| fastsocket_kernel_drivers_infiniband_core_extr_cma.c_cma_set_req_event_data |
; ModuleID = 'AnghaBench/freebsd/sys/dev/mvs/extr_mvs.c_mvs_ch_attach.c'
source_filename = "AnghaBench/freebsd/sys/dev/mvs/extr_mvs.c_mvs_ch_attach.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mvs_channel = type { i64, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32 }
%struct.TYPE_2__ = type { i32, i32, i32, i32, i64 }
@.str = private unnamed_addr constant [17 x i8] c"MVS channel lock\00", align 1
@MTX_DEF = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"pm_level\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"sata_rev\00", align 1
@MVS_Q_GENIIE = dso_local local_unnamed_addr global i32 0, align 4
@MVS_MAX_SLOTS = dso_local local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_H_PMREQ = dso_local local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_H_APST = dso_local local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_D_PMREQ = dso_local local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_D_APST = dso_local local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_H_AN = dso_local local_unnamed_addr global i32 0, align 4
@SYS_RES_MEMORY = dso_local local_unnamed_addr global i32 0, align 4
@RF_ACTIVE = dso_local local_unnamed_addr global i32 0, align 4
@ENXIO = dso_local local_unnamed_addr global i32 0, align 4
@ATA_IRQ_RID = dso_local local_unnamed_addr global i32 0, align 4
@SYS_RES_IRQ = dso_local local_unnamed_addr global i32 0, align 4
@RF_SHAREABLE = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [25 x i8] c"Unable to map interrupt\0A\00", align 1
@ATA_INTR_FLAGS = dso_local local_unnamed_addr global i32 0, align 4
@mvs_ch_intr_locked = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [27 x i8] c"Unable to setup interrupt\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Unable to allocate simq\0A\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@mvsaction = dso_local local_unnamed_addr global i32 0, align 4
@mvspoll = dso_local local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [6 x i8] c"mvsch\00", align 1
@MVS_Q_GENI = dso_local local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [24 x i8] c"unable to allocate sim\0A\00", align 1
@CAM_SUCCESS = dso_local local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [28 x i8] c"unable to register xpt bus\0A\00", align 1
@CAM_TARGET_WILDCARD = dso_local local_unnamed_addr global i32 0, align 4
@CAM_LUN_WILDCARD = dso_local local_unnamed_addr global i32 0, align 4
@CAM_REQ_CMP = dso_local local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [23 x i8] c"unable to create path\0A\00", align 1
@hz = dso_local local_unnamed_addr global i32 0, align 4
@mvs_ch_pm = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mvs_ch_attach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mvs_ch_attach(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = tail call i32 @device_get_parent(i32 noundef %0) #4
%5 = tail call ptr @device_get_softc(i32 noundef %4) #4
%6 = tail call ptr @device_get_softc(i32 noundef %0) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
store i32 0, ptr %3, align 4, !tbaa !5
%7 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 13
store i32 %0, ptr %7, align 4, !tbaa !9
%8 = tail call i64 @device_get_ivars(i32 noundef %0) #4
store i64 %8, ptr %6, align 8, !tbaa !13
%9 = load i32, ptr %5, align 4, !tbaa !14
%10 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 1
store i32 %9, ptr %10, align 8, !tbaa !16
%11 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 3
%12 = load i32, ptr @MTX_DEF, align 4, !tbaa !5
%13 = tail call i32 @mtx_init(ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef null, i32 noundef %12) #4
%14 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 2
store i32 0, ptr %14, align 4, !tbaa !17
%15 = tail call i32 @device_get_name(i32 noundef %0) #4
%16 = tail call i32 @device_get_unit(i32 noundef %0) #4
%17 = tail call i32 @resource_int_value(i32 noundef %15, i32 noundef %16, ptr noundef nonnull @.str.1, ptr noundef nonnull %14) #4
%18 = load i32, ptr %14, align 4, !tbaa !17
%19 = icmp sgt i32 %18, 3
br i1 %19, label %20, label %23
20: ; preds = %1
%21 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 7
%22 = tail call i32 @callout_init_mtx(ptr noundef nonnull %21, ptr noundef nonnull %11, i32 noundef 0) #4
br label %23
23: ; preds = %20, %1
%24 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 12
%25 = tail call i32 @callout_init_mtx(ptr noundef nonnull %24, ptr noundef nonnull %11, i32 noundef 0) #4
%26 = tail call i32 @device_get_name(i32 noundef %0) #4
%27 = tail call i32 @device_get_unit(i32 noundef %0) #4
%28 = call i32 @resource_int_value(i32 noundef %26, i32 noundef %27, ptr noundef nonnull @.str.2, ptr noundef nonnull %3) #4
%29 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 10
%30 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 11
%31 = load ptr, ptr %29, align 8, !tbaa !18
br label %32
32: ; preds = %23, %63
%33 = phi ptr [ %31, %23 ], [ %50, %63 ]
%34 = phi i64 [ 0, %23 ], [ %68, %63 ]
%35 = load i32, ptr %3, align 4, !tbaa !5
%36 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34
store i32 %35, ptr %36, align 8, !tbaa !19
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34, i32 4
store i64 0, ptr %37, align 8, !tbaa !21
%38 = load i32, ptr %10, align 8, !tbaa !16
%39 = load i32, ptr @MVS_Q_GENIIE, align 4, !tbaa !5
%40 = and i32 %39, %38
%41 = icmp eq i32 %40, 0
%42 = select i1 %41, i32 2048, i32 8192
%43 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34, i32 1
store i32 %42, ptr %43, align 4, !tbaa !22
%44 = load i32, ptr @MVS_MAX_SLOTS, align 4, !tbaa !5
%45 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34, i32 2
store i32 %44, ptr %45, align 8, !tbaa !23
%46 = load ptr, ptr %30, align 8, !tbaa !24
%47 = getelementptr inbounds %struct.TYPE_2__, ptr %46, i64 %34
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %36, i64 24, i1 false), !tbaa.struct !25
%48 = load i32, ptr %14, align 4, !tbaa !17
%49 = icmp eq i32 %48, 0
%50 = load ptr, ptr %29, align 8, !tbaa !18
br i1 %49, label %51, label %54
51: ; preds = %32
%52 = getelementptr inbounds %struct.TYPE_2__, ptr %50, i64 %34, i32 3
%53 = load i32, ptr %52, align 4, !tbaa !27
br label %63
54: ; preds = %32
%55 = load i32, ptr @CTS_SATA_CAPS_H_PMREQ, align 4, !tbaa !5
%56 = load i32, ptr @CTS_SATA_CAPS_H_APST, align 4, !tbaa !5
%57 = or i32 %56, %55
%58 = load i32, ptr @CTS_SATA_CAPS_D_PMREQ, align 4, !tbaa !5
%59 = or i32 %57, %58
%60 = load i32, ptr @CTS_SATA_CAPS_D_APST, align 4, !tbaa !5
%61 = or i32 %59, %60
%62 = getelementptr inbounds %struct.TYPE_2__, ptr %50, i64 %34, i32 3
store i32 %61, ptr %62, align 4, !tbaa !27
br label %63
63: ; preds = %51, %54
%64 = phi i32 [ %53, %51 ], [ %61, %54 ]
%65 = load i32, ptr @CTS_SATA_CAPS_H_AN, align 4, !tbaa !5
%66 = getelementptr inbounds %struct.TYPE_2__, ptr %50, i64 %34, i32 3
%67 = or i32 %64, %65
store i32 %67, ptr %66, align 4, !tbaa !27
%68 = add nuw nsw i64 %34, 1
%69 = icmp eq i64 %68, 16
br i1 %69, label %70, label %32, !llvm.loop !28
70: ; preds = %63
%71 = load i64, ptr %6, align 8, !tbaa !13
%72 = trunc i64 %71 to i32
store i32 %72, ptr %2, align 4, !tbaa !5
%73 = load i32, ptr @SYS_RES_MEMORY, align 4, !tbaa !5
%74 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !5
%75 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %73, ptr noundef nonnull %2, i32 noundef %74) #4
%76 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 4
store ptr %75, ptr %76, align 8, !tbaa !30
%77 = icmp eq ptr %75, null
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = load i32, ptr @ENXIO, align 4, !tbaa !5
br label %186
80: ; preds = %70
%81 = call i32 @mvs_dmainit(i32 noundef %0) #4
%82 = call i32 @mvs_slotsalloc(i32 noundef %0) #4
%83 = call i32 @mvs_ch_init(i32 noundef %0) #4
%84 = call i32 @mtx_lock(ptr noundef nonnull %11) #4
%85 = load i32, ptr @ATA_IRQ_RID, align 4, !tbaa !5
store i32 %85, ptr %2, align 4, !tbaa !5
%86 = load i32, ptr @SYS_RES_IRQ, align 4, !tbaa !5
%87 = load i32, ptr @RF_SHAREABLE, align 4, !tbaa !5
%88 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !5
%89 = or i32 %88, %87
%90 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %86, ptr noundef nonnull %2, i32 noundef %89) #4
%91 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 5
store ptr %90, ptr %91, align 8, !tbaa !31
%92 = icmp eq ptr %90, null
br i1 %92, label %93, label %96
93: ; preds = %80
%94 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.3) #4
%95 = load i32, ptr @ENXIO, align 4, !tbaa !5
br label %177
96: ; preds = %80
%97 = load i32, ptr @ATA_INTR_FLAGS, align 4, !tbaa !5
%98 = load i32, ptr @mvs_ch_intr_locked, align 4, !tbaa !5
%99 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 9
%100 = call i64 @bus_setup_intr(i32 noundef %0, ptr noundef nonnull %90, i32 noundef %97, ptr noundef null, i32 noundef %98, i32 noundef %0, ptr noundef nonnull %99) #4
%101 = icmp eq i64 %100, 0
br i1 %101, label %105, label %102
102: ; preds = %96
%103 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.4) #4
%104 = load i32, ptr @ENXIO, align 4, !tbaa !5
br label %171
105: ; preds = %96
%106 = load i32, ptr @MVS_MAX_SLOTS, align 4, !tbaa !5
%107 = add nsw i32 %106, -1
%108 = call ptr @cam_simq_alloc(i32 noundef %107) #4
%109 = icmp eq ptr %108, null
br i1 %109, label %110, label %113
110: ; preds = %105
%111 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.5) #4
%112 = load i32, ptr @ENOMEM, align 4, !tbaa !5
br label %171
113: ; preds = %105
%114 = load i32, ptr @mvsaction, align 4, !tbaa !5
%115 = load i32, ptr @mvspoll, align 4, !tbaa !5
%116 = call i32 @device_get_unit(i32 noundef %0) #4
%117 = load i32, ptr %10, align 8, !tbaa !16
%118 = load i32, ptr @MVS_Q_GENI, align 4, !tbaa !5
%119 = and i32 %118, %117
%120 = icmp eq i32 %119, 0
%121 = load i32, ptr @MVS_MAX_SLOTS, align 4
%122 = add nsw i32 %121, -1
%123 = select i1 %120, i32 %122, i32 0
%124 = call ptr @cam_sim_alloc(i32 noundef %114, i32 noundef %115, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, i32 noundef %116, ptr noundef nonnull %11, i32 noundef 2, i32 noundef %123, ptr noundef nonnull %108) #4
%125 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 6
store ptr %124, ptr %125, align 8, !tbaa !32
%126 = icmp eq ptr %124, null
br i1 %126, label %127, label %131
127: ; preds = %113
%128 = call i32 @cam_simq_free(ptr noundef nonnull %108) #4
%129 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.7) #4
%130 = load i32, ptr @ENOMEM, align 4, !tbaa !5
br label %171
131: ; preds = %113
%132 = call i64 @xpt_bus_register(ptr noundef nonnull %124, i32 noundef %0, i32 noundef 0) #4
%133 = load i64, ptr @CAM_SUCCESS, align 8, !tbaa !26
%134 = icmp eq i64 %132, %133
br i1 %134, label %138, label %135
135: ; preds = %131
%136 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.8) #4
%137 = load i32, ptr @ENXIO, align 4, !tbaa !5
br label %166
138: ; preds = %131
%139 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 8
%140 = load ptr, ptr %125, align 8, !tbaa !32
%141 = call i32 @cam_sim_path(ptr noundef %140) #4
%142 = load i32, ptr @CAM_TARGET_WILDCARD, align 4, !tbaa !5
%143 = load i32, ptr @CAM_LUN_WILDCARD, align 4, !tbaa !5
%144 = call i64 @xpt_create_path(ptr noundef nonnull %139, ptr noundef null, i32 noundef %141, i32 noundef %142, i32 noundef %143) #4
%145 = load i64, ptr @CAM_REQ_CMP, align 8, !tbaa !26
%146 = icmp eq i64 %144, %145
br i1 %146, label %153, label %147
147: ; preds = %138
%148 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.9) #4
%149 = load i32, ptr @ENXIO, align 4, !tbaa !5
%150 = load ptr, ptr %125, align 8, !tbaa !32
%151 = call i32 @cam_sim_path(ptr noundef %150) #4
%152 = call i32 @xpt_bus_deregister(i32 noundef %151) #4
br label %166
153: ; preds = %138
%154 = load i32, ptr %14, align 4, !tbaa !17
%155 = icmp sgt i32 %154, 3
br i1 %155, label %156, label %164
156: ; preds = %153
%157 = getelementptr inbounds %struct.mvs_channel, ptr %6, i64 0, i32 7
%158 = icmp eq i32 %154, 4
%159 = load i32, ptr @hz, align 4, !tbaa !5
%160 = select i1 %158, i32 1000, i32 8
%161 = sdiv i32 %159, %160
%162 = load i32, ptr @mvs_ch_pm, align 4, !tbaa !5
%163 = call i32 @callout_reset(ptr noundef nonnull %157, i32 noundef %161, i32 noundef %162, i32 noundef %0) #4
br label %164
164: ; preds = %156, %153
%165 = call i32 @mtx_unlock(ptr noundef nonnull %11) #4
br label %186
166: ; preds = %147, %135
%167 = phi i32 [ %137, %135 ], [ %149, %147 ]
%168 = load ptr, ptr %125, align 8, !tbaa !32
%169 = load i32, ptr @TRUE, align 4, !tbaa !5
%170 = call i32 @cam_sim_free(ptr noundef %168, i32 noundef %169) #4
br label %171
171: ; preds = %166, %127, %110, %102
%172 = phi i32 [ %104, %102 ], [ %112, %110 ], [ %130, %127 ], [ %167, %166 ]
%173 = load i32, ptr @SYS_RES_IRQ, align 4, !tbaa !5
%174 = load i32, ptr @ATA_IRQ_RID, align 4, !tbaa !5
%175 = load ptr, ptr %91, align 8, !tbaa !31
%176 = call i32 @bus_release_resource(i32 noundef %0, i32 noundef %173, i32 noundef %174, ptr noundef %175) #4
br label %177
177: ; preds = %171, %93
%178 = phi i32 [ %172, %171 ], [ %95, %93 ]
%179 = load i32, ptr @SYS_RES_MEMORY, align 4, !tbaa !5
%180 = load i64, ptr %6, align 8, !tbaa !13
%181 = trunc i64 %180 to i32
%182 = load ptr, ptr %76, align 8, !tbaa !30
%183 = call i32 @bus_release_resource(i32 noundef %0, i32 noundef %179, i32 noundef %181, ptr noundef %182) #4
%184 = call i32 @mtx_unlock(ptr noundef nonnull %11) #4
%185 = call i32 @mtx_destroy(ptr noundef nonnull %11) #4
br label %186
186: ; preds = %177, %164, %78
%187 = phi i32 [ %178, %177 ], [ 0, %164 ], [ %79, %78 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
ret i32 %187
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #2
declare i32 @device_get_parent(i32 noundef) local_unnamed_addr #2
declare i64 @device_get_ivars(i32 noundef) local_unnamed_addr #2
declare i32 @mtx_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @resource_int_value(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_get_name(i32 noundef) local_unnamed_addr #2
declare i32 @device_get_unit(i32 noundef) local_unnamed_addr #2
declare i32 @callout_init_mtx(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare ptr @bus_alloc_resource_any(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mvs_dmainit(i32 noundef) local_unnamed_addr #2
declare i32 @mvs_slotsalloc(i32 noundef) local_unnamed_addr #2
declare i32 @mvs_ch_init(i32 noundef) local_unnamed_addr #2
declare i32 @mtx_lock(ptr noundef) local_unnamed_addr #2
declare i32 @device_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @bus_setup_intr(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @cam_simq_alloc(i32 noundef) local_unnamed_addr #2
declare ptr @cam_sim_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cam_simq_free(ptr noundef) local_unnamed_addr #2
declare i64 @xpt_bus_register(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @xpt_create_path(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cam_sim_path(ptr noundef) local_unnamed_addr #2
declare i32 @callout_reset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mtx_unlock(ptr noundef) local_unnamed_addr #2
declare i32 @xpt_bus_deregister(i32 noundef) local_unnamed_addr #2
declare i32 @cam_sim_free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @bus_release_resource(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mtx_destroy(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 84}
!10 = !{!"mvs_channel", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !6, i64 48, !6, i64 52, !6, i64 56, !12, i64 64, !12, i64 72, !6, i64 80, !6, i64 84}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"mvs_controller", !6, i64 0}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !6, i64 12}
!18 = !{!10, !12, i64 64}
!19 = !{!20, !6, i64 0}
!20 = !{!"TYPE_2__", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !11, i64 16}
!21 = !{!20, !11, i64 16}
!22 = !{!20, !6, i64 4}
!23 = !{!20, !6, i64 8}
!24 = !{!10, !12, i64 72}
!25 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 8, !26}
!26 = !{!11, !11, i64 0}
!27 = !{!20, !6, i64 12}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !12, i64 24}
!31 = !{!10, !12, i64 32}
!32 = !{!10, !12, i64 40}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/mvs/extr_mvs.c_mvs_ch_attach.c'
source_filename = "AnghaBench/freebsd/sys/dev/mvs/extr_mvs.c_mvs_ch_attach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i32, i32, i32, i32, i64 }
@.str = private unnamed_addr constant [17 x i8] c"MVS channel lock\00", align 1
@MTX_DEF = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"pm_level\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"sata_rev\00", align 1
@MVS_Q_GENIIE = common local_unnamed_addr global i32 0, align 4
@MVS_MAX_SLOTS = common local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_H_PMREQ = common local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_H_APST = common local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_D_PMREQ = common local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_D_APST = common local_unnamed_addr global i32 0, align 4
@CTS_SATA_CAPS_H_AN = common local_unnamed_addr global i32 0, align 4
@SYS_RES_MEMORY = common local_unnamed_addr global i32 0, align 4
@RF_ACTIVE = common local_unnamed_addr global i32 0, align 4
@ENXIO = common local_unnamed_addr global i32 0, align 4
@ATA_IRQ_RID = common local_unnamed_addr global i32 0, align 4
@SYS_RES_IRQ = common local_unnamed_addr global i32 0, align 4
@RF_SHAREABLE = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [25 x i8] c"Unable to map interrupt\0A\00", align 1
@ATA_INTR_FLAGS = common local_unnamed_addr global i32 0, align 4
@mvs_ch_intr_locked = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [27 x i8] c"Unable to setup interrupt\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Unable to allocate simq\0A\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@mvsaction = common local_unnamed_addr global i32 0, align 4
@mvspoll = common local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [6 x i8] c"mvsch\00", align 1
@MVS_Q_GENI = common local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [24 x i8] c"unable to allocate sim\0A\00", align 1
@CAM_SUCCESS = common local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [28 x i8] c"unable to register xpt bus\0A\00", align 1
@CAM_TARGET_WILDCARD = common local_unnamed_addr global i32 0, align 4
@CAM_LUN_WILDCARD = common local_unnamed_addr global i32 0, align 4
@CAM_REQ_CMP = common local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [23 x i8] c"unable to create path\0A\00", align 1
@hz = common local_unnamed_addr global i32 0, align 4
@mvs_ch_pm = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mvs_ch_attach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mvs_ch_attach(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = tail call i32 @device_get_parent(i32 noundef %0) #4
%5 = tail call ptr @device_get_softc(i32 noundef %4) #4
%6 = tail call ptr @device_get_softc(i32 noundef %0) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
store i32 0, ptr %3, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %6, i64 84
store i32 %0, ptr %7, align 4, !tbaa !10
%8 = tail call i64 @device_get_ivars(i32 noundef %0) #4
store i64 %8, ptr %6, align 8, !tbaa !14
%9 = load i32, ptr %5, align 4, !tbaa !15
%10 = getelementptr inbounds i8, ptr %6, i64 8
store i32 %9, ptr %10, align 8, !tbaa !17
%11 = getelementptr inbounds i8, ptr %6, i64 16
%12 = load i32, ptr @MTX_DEF, align 4, !tbaa !6
%13 = tail call i32 @mtx_init(ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef null, i32 noundef %12) #4
%14 = getelementptr inbounds i8, ptr %6, i64 12
store i32 0, ptr %14, align 4, !tbaa !18
%15 = tail call i32 @device_get_name(i32 noundef %0) #4
%16 = tail call i32 @device_get_unit(i32 noundef %0) #4
%17 = tail call i32 @resource_int_value(i32 noundef %15, i32 noundef %16, ptr noundef nonnull @.str.1, ptr noundef nonnull %14) #4
%18 = load i32, ptr %14, align 4, !tbaa !18
%19 = icmp sgt i32 %18, 3
br i1 %19, label %20, label %23
20: ; preds = %1
%21 = getelementptr inbounds i8, ptr %6, i64 48
%22 = tail call i32 @callout_init_mtx(ptr noundef nonnull %21, ptr noundef nonnull %11, i32 noundef 0) #4
br label %23
23: ; preds = %20, %1
%24 = getelementptr inbounds i8, ptr %6, i64 80
%25 = tail call i32 @callout_init_mtx(ptr noundef nonnull %24, ptr noundef nonnull %11, i32 noundef 0) #4
%26 = tail call i32 @device_get_name(i32 noundef %0) #4
%27 = tail call i32 @device_get_unit(i32 noundef %0) #4
%28 = call i32 @resource_int_value(i32 noundef %26, i32 noundef %27, ptr noundef nonnull @.str.2, ptr noundef nonnull %3) #4
%29 = getelementptr inbounds i8, ptr %6, i64 64
%30 = getelementptr inbounds i8, ptr %6, i64 72
%31 = load ptr, ptr %29, align 8, !tbaa !19
br label %32
32: ; preds = %23, %63
%33 = phi ptr [ %31, %23 ], [ %50, %63 ]
%34 = phi i64 [ 0, %23 ], [ %68, %63 ]
%35 = load i32, ptr %3, align 4, !tbaa !6
%36 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34
store i32 %35, ptr %36, align 8, !tbaa !20
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34, i32 4
store i64 0, ptr %37, align 8, !tbaa !22
%38 = load i32, ptr %10, align 8, !tbaa !17
%39 = load i32, ptr @MVS_Q_GENIIE, align 4, !tbaa !6
%40 = and i32 %39, %38
%41 = icmp eq i32 %40, 0
%42 = select i1 %41, i32 2048, i32 8192
%43 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34, i32 1
store i32 %42, ptr %43, align 4, !tbaa !23
%44 = load i32, ptr @MVS_MAX_SLOTS, align 4, !tbaa !6
%45 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i64 %34, i32 2
store i32 %44, ptr %45, align 8, !tbaa !24
%46 = load ptr, ptr %30, align 8, !tbaa !25
%47 = getelementptr inbounds %struct.TYPE_2__, ptr %46, i64 %34
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %36, i64 24, i1 false), !tbaa.struct !26
%48 = load i32, ptr %14, align 4, !tbaa !18
%49 = icmp eq i32 %48, 0
%50 = load ptr, ptr %29, align 8, !tbaa !19
br i1 %49, label %51, label %54
51: ; preds = %32
%52 = getelementptr inbounds %struct.TYPE_2__, ptr %50, i64 %34, i32 3
%53 = load i32, ptr %52, align 4, !tbaa !28
br label %63
54: ; preds = %32
%55 = load i32, ptr @CTS_SATA_CAPS_H_PMREQ, align 4, !tbaa !6
%56 = load i32, ptr @CTS_SATA_CAPS_H_APST, align 4, !tbaa !6
%57 = or i32 %56, %55
%58 = load i32, ptr @CTS_SATA_CAPS_D_PMREQ, align 4, !tbaa !6
%59 = or i32 %57, %58
%60 = load i32, ptr @CTS_SATA_CAPS_D_APST, align 4, !tbaa !6
%61 = or i32 %59, %60
%62 = getelementptr inbounds %struct.TYPE_2__, ptr %50, i64 %34, i32 3
store i32 %61, ptr %62, align 4, !tbaa !28
br label %63
63: ; preds = %51, %54
%64 = phi i32 [ %53, %51 ], [ %61, %54 ]
%65 = load i32, ptr @CTS_SATA_CAPS_H_AN, align 4, !tbaa !6
%66 = getelementptr inbounds %struct.TYPE_2__, ptr %50, i64 %34, i32 3
%67 = or i32 %64, %65
store i32 %67, ptr %66, align 4, !tbaa !28
%68 = add nuw nsw i64 %34, 1
%69 = icmp eq i64 %68, 16
br i1 %69, label %70, label %32, !llvm.loop !29
70: ; preds = %63
%71 = load i64, ptr %6, align 8, !tbaa !14
%72 = trunc i64 %71 to i32
store i32 %72, ptr %2, align 4, !tbaa !6
%73 = load i32, ptr @SYS_RES_MEMORY, align 4, !tbaa !6
%74 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !6
%75 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %73, ptr noundef nonnull %2, i32 noundef %74) #4
%76 = getelementptr inbounds i8, ptr %6, i64 24
store ptr %75, ptr %76, align 8, !tbaa !31
%77 = icmp eq ptr %75, null
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = load i32, ptr @ENXIO, align 4, !tbaa !6
br label %186
80: ; preds = %70
%81 = call i32 @mvs_dmainit(i32 noundef %0) #4
%82 = call i32 @mvs_slotsalloc(i32 noundef %0) #4
%83 = call i32 @mvs_ch_init(i32 noundef %0) #4
%84 = call i32 @mtx_lock(ptr noundef nonnull %11) #4
%85 = load i32, ptr @ATA_IRQ_RID, align 4, !tbaa !6
store i32 %85, ptr %2, align 4, !tbaa !6
%86 = load i32, ptr @SYS_RES_IRQ, align 4, !tbaa !6
%87 = load i32, ptr @RF_SHAREABLE, align 4, !tbaa !6
%88 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !6
%89 = or i32 %88, %87
%90 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %86, ptr noundef nonnull %2, i32 noundef %89) #4
%91 = getelementptr inbounds i8, ptr %6, i64 32
store ptr %90, ptr %91, align 8, !tbaa !32
%92 = icmp eq ptr %90, null
br i1 %92, label %93, label %96
93: ; preds = %80
%94 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.3) #4
%95 = load i32, ptr @ENXIO, align 4, !tbaa !6
br label %177
96: ; preds = %80
%97 = load i32, ptr @ATA_INTR_FLAGS, align 4, !tbaa !6
%98 = load i32, ptr @mvs_ch_intr_locked, align 4, !tbaa !6
%99 = getelementptr inbounds i8, ptr %6, i64 56
%100 = call i64 @bus_setup_intr(i32 noundef %0, ptr noundef nonnull %90, i32 noundef %97, ptr noundef null, i32 noundef %98, i32 noundef %0, ptr noundef nonnull %99) #4
%101 = icmp eq i64 %100, 0
br i1 %101, label %105, label %102
102: ; preds = %96
%103 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.4) #4
%104 = load i32, ptr @ENXIO, align 4, !tbaa !6
br label %171
105: ; preds = %96
%106 = load i32, ptr @MVS_MAX_SLOTS, align 4, !tbaa !6
%107 = add nsw i32 %106, -1
%108 = call ptr @cam_simq_alloc(i32 noundef %107) #4
%109 = icmp eq ptr %108, null
br i1 %109, label %110, label %113
110: ; preds = %105
%111 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.5) #4
%112 = load i32, ptr @ENOMEM, align 4, !tbaa !6
br label %171
113: ; preds = %105
%114 = load i32, ptr @mvsaction, align 4, !tbaa !6
%115 = load i32, ptr @mvspoll, align 4, !tbaa !6
%116 = call i32 @device_get_unit(i32 noundef %0) #4
%117 = load i32, ptr %10, align 8, !tbaa !17
%118 = load i32, ptr @MVS_Q_GENI, align 4, !tbaa !6
%119 = and i32 %118, %117
%120 = icmp eq i32 %119, 0
%121 = load i32, ptr @MVS_MAX_SLOTS, align 4
%122 = add nsw i32 %121, -1
%123 = select i1 %120, i32 %122, i32 0
%124 = call ptr @cam_sim_alloc(i32 noundef %114, i32 noundef %115, ptr noundef nonnull @.str.6, ptr noundef nonnull %6, i32 noundef %116, ptr noundef nonnull %11, i32 noundef 2, i32 noundef %123, ptr noundef nonnull %108) #4
%125 = getelementptr inbounds i8, ptr %6, i64 40
store ptr %124, ptr %125, align 8, !tbaa !33
%126 = icmp eq ptr %124, null
br i1 %126, label %127, label %131
127: ; preds = %113
%128 = call i32 @cam_simq_free(ptr noundef nonnull %108) #4
%129 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.7) #4
%130 = load i32, ptr @ENOMEM, align 4, !tbaa !6
br label %171
131: ; preds = %113
%132 = call i64 @xpt_bus_register(ptr noundef nonnull %124, i32 noundef %0, i32 noundef 0) #4
%133 = load i64, ptr @CAM_SUCCESS, align 8, !tbaa !27
%134 = icmp eq i64 %132, %133
br i1 %134, label %138, label %135
135: ; preds = %131
%136 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.8) #4
%137 = load i32, ptr @ENXIO, align 4, !tbaa !6
br label %166
138: ; preds = %131
%139 = getelementptr inbounds i8, ptr %6, i64 52
%140 = load ptr, ptr %125, align 8, !tbaa !33
%141 = call i32 @cam_sim_path(ptr noundef %140) #4
%142 = load i32, ptr @CAM_TARGET_WILDCARD, align 4, !tbaa !6
%143 = load i32, ptr @CAM_LUN_WILDCARD, align 4, !tbaa !6
%144 = call i64 @xpt_create_path(ptr noundef nonnull %139, ptr noundef null, i32 noundef %141, i32 noundef %142, i32 noundef %143) #4
%145 = load i64, ptr @CAM_REQ_CMP, align 8, !tbaa !27
%146 = icmp eq i64 %144, %145
br i1 %146, label %153, label %147
147: ; preds = %138
%148 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.9) #4
%149 = load i32, ptr @ENXIO, align 4, !tbaa !6
%150 = load ptr, ptr %125, align 8, !tbaa !33
%151 = call i32 @cam_sim_path(ptr noundef %150) #4
%152 = call i32 @xpt_bus_deregister(i32 noundef %151) #4
br label %166
153: ; preds = %138
%154 = load i32, ptr %14, align 4, !tbaa !18
%155 = icmp sgt i32 %154, 3
br i1 %155, label %156, label %164
156: ; preds = %153
%157 = getelementptr inbounds i8, ptr %6, i64 48
%158 = icmp eq i32 %154, 4
%159 = load i32, ptr @hz, align 4, !tbaa !6
%160 = select i1 %158, i32 1000, i32 8
%161 = sdiv i32 %159, %160
%162 = load i32, ptr @mvs_ch_pm, align 4, !tbaa !6
%163 = call i32 @callout_reset(ptr noundef nonnull %157, i32 noundef %161, i32 noundef %162, i32 noundef %0) #4
br label %164
164: ; preds = %156, %153
%165 = call i32 @mtx_unlock(ptr noundef nonnull %11) #4
br label %186
166: ; preds = %147, %135
%167 = phi i32 [ %137, %135 ], [ %149, %147 ]
%168 = load ptr, ptr %125, align 8, !tbaa !33
%169 = load i32, ptr @TRUE, align 4, !tbaa !6
%170 = call i32 @cam_sim_free(ptr noundef %168, i32 noundef %169) #4
br label %171
171: ; preds = %166, %127, %110, %102
%172 = phi i32 [ %104, %102 ], [ %112, %110 ], [ %130, %127 ], [ %167, %166 ]
%173 = load i32, ptr @SYS_RES_IRQ, align 4, !tbaa !6
%174 = load i32, ptr @ATA_IRQ_RID, align 4, !tbaa !6
%175 = load ptr, ptr %91, align 8, !tbaa !32
%176 = call i32 @bus_release_resource(i32 noundef %0, i32 noundef %173, i32 noundef %174, ptr noundef %175) #4
br label %177
177: ; preds = %171, %93
%178 = phi i32 [ %172, %171 ], [ %95, %93 ]
%179 = load i32, ptr @SYS_RES_MEMORY, align 4, !tbaa !6
%180 = load i64, ptr %6, align 8, !tbaa !14
%181 = trunc i64 %180 to i32
%182 = load ptr, ptr %76, align 8, !tbaa !31
%183 = call i32 @bus_release_resource(i32 noundef %0, i32 noundef %179, i32 noundef %181, ptr noundef %182) #4
%184 = call i32 @mtx_unlock(ptr noundef nonnull %11) #4
%185 = call i32 @mtx_destroy(ptr noundef nonnull %11) #4
br label %186
186: ; preds = %177, %164, %78
%187 = phi i32 [ %178, %177 ], [ 0, %164 ], [ %79, %78 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
ret i32 %187
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #2
declare i32 @device_get_parent(i32 noundef) local_unnamed_addr #2
declare i64 @device_get_ivars(i32 noundef) local_unnamed_addr #2
declare i32 @mtx_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @resource_int_value(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_get_name(i32 noundef) local_unnamed_addr #2
declare i32 @device_get_unit(i32 noundef) local_unnamed_addr #2
declare i32 @callout_init_mtx(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare ptr @bus_alloc_resource_any(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mvs_dmainit(i32 noundef) local_unnamed_addr #2
declare i32 @mvs_slotsalloc(i32 noundef) local_unnamed_addr #2
declare i32 @mvs_ch_init(i32 noundef) local_unnamed_addr #2
declare i32 @mtx_lock(ptr noundef) local_unnamed_addr #2
declare i32 @device_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @bus_setup_intr(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @cam_simq_alloc(i32 noundef) local_unnamed_addr #2
declare ptr @cam_sim_alloc(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cam_simq_free(ptr noundef) local_unnamed_addr #2
declare i64 @xpt_bus_register(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @xpt_create_path(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cam_sim_path(ptr noundef) local_unnamed_addr #2
declare i32 @callout_reset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mtx_unlock(ptr noundef) local_unnamed_addr #2
declare i32 @xpt_bus_deregister(i32 noundef) local_unnamed_addr #2
declare i32 @cam_sim_free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @bus_release_resource(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mtx_destroy(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 84}
!11 = !{!"mvs_channel", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !13, i64 64, !13, i64 72, !7, i64 80, !7, i64 84}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"mvs_controller", !7, i64 0}
!17 = !{!11, !7, i64 8}
!18 = !{!11, !7, i64 12}
!19 = !{!11, !13, i64 64}
!20 = !{!21, !7, i64 0}
!21 = !{!"TYPE_2__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !12, i64 16}
!22 = !{!21, !12, i64 16}
!23 = !{!21, !7, i64 4}
!24 = !{!21, !7, i64 8}
!25 = !{!11, !13, i64 72}
!26 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 8, !27}
!27 = !{!12, !12, i64 0}
!28 = !{!21, !7, i64 12}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!11, !13, i64 24}
!32 = !{!11, !13, i64 32}
!33 = !{!11, !13, i64 40}
| freebsd_sys_dev_mvs_extr_mvs.c_mvs_ch_attach |
; ModuleID = 'AnghaBench/freebsd/sys/dev/uart/extr_uart_dev_snps.c_snps_detach.c'
source_filename = "AnghaBench/freebsd/sys/dev/uart/extr_uart_dev_snps.c_snps_detach.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @snps_detach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @snps_detach(i32 noundef %0) #0 {
%2 = tail call i32 @uart_bus_detach(i32 noundef %0) #2
ret i32 %2
}
declare i32 @uart_bus_detach(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/uart/extr_uart_dev_snps.c_snps_detach.c'
source_filename = "AnghaBench/freebsd/sys/dev/uart/extr_uart_dev_snps.c_snps_detach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @snps_detach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @snps_detach(i32 noundef %0) #0 {
%2 = tail call i32 @uart_bus_detach(i32 noundef %0) #2
ret i32 %2
}
declare i32 @uart_bus_detach(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_sys_dev_uart_extr_uart_dev_snps.c_snps_detach |
; ModuleID = 'AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_evthread.c_evthread_debug_get_real_lock_.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_evthread.c_evthread_debug_get_real_lock_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local ptr @evthread_debug_get_real_lock_(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
ret ptr %2
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"debug_lock", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_evthread.c_evthread_debug_get_real_lock_.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_evthread.c_evthread_debug_get_real_lock_.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define ptr @evthread_debug_get_real_lock_(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
ret ptr %2
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"debug_lock", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_ntp_sntp_libevent_extr_evthread.c_evthread_debug_get_real_lock_ |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_nsp32.c_nsp32_info.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_nsp32.c_nsp32_info.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @nsp32_info], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal ptr @nsp32_info(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = inttoptr i64 %2 to ptr
%4 = load ptr, ptr %3, align 8, !tbaa !10
ret ptr %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"Scsi_Host", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_nsp32.c_nsp32_info.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_nsp32.c_nsp32_info.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @nsp32_info], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal ptr @nsp32_info(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = inttoptr i64 %2 to ptr
%4 = load ptr, ptr %3, align 8, !tbaa !11
ret ptr %4
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"Scsi_Host", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
| linux_drivers_scsi_extr_nsp32.c_nsp32_info |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc_i225.c_igc_write_nvm_srwr_i225.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc_i225.c_igc_write_nvm_srwr_i225.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { ptr, ptr }
@IGC_EERD_EEWR_MAX_COUNT = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @igc_write_nvm_srwr_i225], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @igc_write_nvm_srwr_i225(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = icmp sgt i64 %2, 0
br i1 %5, label %6, label %29
6: ; preds = %4
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%8 = load i64, ptr @IGC_EERD_EEWR_MAX_COUNT, align 8
br label %9
9: ; preds = %6, %25
%10 = phi i64 [ %8, %6 ], [ %26, %25 ]
%11 = phi i64 [ 0, %6 ], [ %27, %25 ]
%12 = load ptr, ptr %7, align 8, !tbaa !5
%13 = tail call i64 %12(ptr noundef %0) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %29
15: ; preds = %9
%16 = sub nsw i64 %2, %11
%17 = sdiv i64 %16, %10
%18 = icmp sgt i64 %17, 0
%19 = select i1 %18, i64 %10, i64 %16
%20 = getelementptr inbounds i64, ptr %3, i64 %11
%21 = tail call i64 @igc_write_nvm_srwr(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %19, ptr noundef %20) #2
%22 = load ptr, ptr %0, align 8, !tbaa !12
%23 = tail call i32 %22(ptr noundef nonnull %0) #2
%24 = icmp eq i64 %21, 0
br i1 %24, label %25, label %29
25: ; preds = %15
%26 = load i64, ptr @IGC_EERD_EEWR_MAX_COUNT, align 8
%27 = add nsw i64 %26, %11
%28 = icmp slt i64 %27, %2
br i1 %28, label %9, label %29, !llvm.loop !13
29: ; preds = %25, %9, %15, %4
%30 = phi i64 [ 0, %4 ], [ %21, %15 ], [ %13, %9 ], [ 0, %25 ]
ret i64 %30
}
declare i64 @igc_write_nvm_srwr(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !9, i64 8}
!6 = !{!"igc_hw", !7, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"TYPE_3__", !9, i64 0, !9, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!6, !9, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc_i225.c_igc_write_nvm_srwr_i225.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc_i225.c_igc_write_nvm_srwr_i225.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IGC_EERD_EEWR_MAX_COUNT = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @igc_write_nvm_srwr_i225], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @igc_write_nvm_srwr_i225(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = icmp sgt i64 %2, 0
br i1 %5, label %6, label %29
6: ; preds = %4
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load i64, ptr @IGC_EERD_EEWR_MAX_COUNT, align 8
br label %9
9: ; preds = %6, %25
%10 = phi i64 [ %8, %6 ], [ %26, %25 ]
%11 = phi i64 [ 0, %6 ], [ %27, %25 ]
%12 = load ptr, ptr %7, align 8, !tbaa !6
%13 = tail call i64 %12(ptr noundef %0) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %29
15: ; preds = %9
%16 = sub nsw i64 %2, %11
%17 = sdiv i64 %16, %10
%18 = icmp sgt i64 %17, 0
%19 = select i1 %18, i64 %10, i64 %16
%20 = getelementptr inbounds i64, ptr %3, i64 %11
%21 = tail call i64 @igc_write_nvm_srwr(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %19, ptr noundef %20) #2
%22 = load ptr, ptr %0, align 8, !tbaa !13
%23 = tail call i32 %22(ptr noundef nonnull %0) #2
%24 = icmp eq i64 %21, 0
br i1 %24, label %25, label %29
25: ; preds = %15
%26 = load i64, ptr @IGC_EERD_EEWR_MAX_COUNT, align 8
%27 = add nsw i64 %26, %11
%28 = icmp slt i64 %27, %2
br i1 %28, label %9, label %29, !llvm.loop !14
29: ; preds = %25, %9, %15, %4
%30 = phi i64 [ 0, %4 ], [ %21, %15 ], [ %13, %9 ], [ 0, %25 ]
ret i64 %30
}
declare i64 @igc_write_nvm_srwr(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !10, i64 8}
!7 = !{!"igc_hw", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0}
!9 = !{!"TYPE_3__", !10, i64 0, !10, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = !{!7, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| linux_drivers_net_ethernet_intel_igc_extr_igc_i225.c_igc_write_nvm_srwr_i225 |
; ModuleID = 'AnghaBench/Craft/deps/sqlite/extr_sqlite3.c_memjrnlSync.c'
source_filename = "AnghaBench/Craft/deps/sqlite/extr_sqlite3.c_memjrnlSync.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SQLITE_OK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @memjrnlSync], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @memjrnlSync(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @UNUSED_PARAMETER2(ptr noundef %0, i32 noundef %1) #2
%4 = load i32, ptr @SQLITE_OK, align 4, !tbaa !5
ret i32 %4
}
declare i32 @UNUSED_PARAMETER2(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Craft/deps/sqlite/extr_sqlite3.c_memjrnlSync.c'
source_filename = "AnghaBench/Craft/deps/sqlite/extr_sqlite3.c_memjrnlSync.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SQLITE_OK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @memjrnlSync], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @memjrnlSync(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @UNUSED_PARAMETER2(ptr noundef %0, i32 noundef %1) #2
%4 = load i32, ptr @SQLITE_OK, align 4, !tbaa !6
ret i32 %4
}
declare i32 @UNUSED_PARAMETER2(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Craft_deps_sqlite_extr_sqlite3.c_memjrnlSync |
; ModuleID = 'AnghaBench/linux/drivers/bluetooth/extr_btbcm.h_btbcm_setup_patchram.c'
source_filename = "AnghaBench/linux/drivers/bluetooth/extr_btbcm.h_btbcm_setup_patchram.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @btbcm_setup_patchram], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @btbcm_setup_patchram(ptr nocapture readnone %0) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/bluetooth/extr_btbcm.h_btbcm_setup_patchram.c'
source_filename = "AnghaBench/linux/drivers/bluetooth/extr_btbcm.h_btbcm_setup_patchram.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @btbcm_setup_patchram], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @btbcm_setup_patchram(ptr nocapture readnone %0) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_bluetooth_extr_btbcm.h_btbcm_setup_patchram |
; ModuleID = 'AnghaBench/reactos/drivers/filesystems/btrfs/zstd/extr_zstd_compress.c_ZSTD_equivalentLdmParams.c'
source_filename = "AnghaBench/reactos/drivers/filesystems/btrfs/zstd/extr_zstd_compress.c_ZSTD_equivalentLdmParams.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i64, i64, i64, i64, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ZSTD_equivalentLdmParams], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal i32 @ZSTD_equivalentLdmParams(ptr nocapture noundef readonly byval(%struct.TYPE_4__) align 8 %0, ptr nocapture noundef readonly byval(%struct.TYPE_4__) align 8 %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = icmp ne i64 %3, 0
%5 = load i64, ptr %1, align 8
%6 = icmp ne i64 %5, 0
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %8, label %35
8: ; preds = %2
%9 = icmp eq i64 %3, %5
br i1 %9, label %10, label %35
10: ; preds = %8
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !10
%13 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 1
%14 = load i64, ptr %13, align 8, !tbaa !10
%15 = icmp eq i64 %12, %14
br i1 %15, label %16, label %35
16: ; preds = %10
%17 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%18 = load i64, ptr %17, align 8, !tbaa !11
%19 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 2
%20 = load i64, ptr %19, align 8, !tbaa !11
%21 = icmp eq i64 %18, %20
br i1 %21, label %22, label %35
22: ; preds = %16
%23 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
%24 = load i64, ptr %23, align 8, !tbaa !12
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 3
%26 = load i64, ptr %25, align 8, !tbaa !12
%27 = icmp eq i64 %24, %26
br i1 %27, label %28, label %35
28: ; preds = %22
%29 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 4
%30 = load i64, ptr %29, align 8, !tbaa !13
%31 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 4
%32 = load i64, ptr %31, align 8, !tbaa !13
%33 = icmp eq i64 %30, %32
%34 = zext i1 %33 to i32
br label %35
35: ; preds = %8, %10, %16, %22, %28, %2
%36 = phi i32 [ 1, %2 ], [ 0, %22 ], [ 0, %16 ], [ 0, %10 ], [ 0, %8 ], [ %34, %28 ]
ret i32 %36
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 32}
| ; ModuleID = 'AnghaBench/reactos/drivers/filesystems/btrfs/zstd/extr_zstd_compress.c_ZSTD_equivalentLdmParams.c'
source_filename = "AnghaBench/reactos/drivers/filesystems/btrfs/zstd/extr_zstd_compress.c_ZSTD_equivalentLdmParams.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @ZSTD_equivalentLdmParams], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal range(i32 0, 2) i32 @ZSTD_equivalentLdmParams(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
%5 = load i64, ptr %1, align 8, !tbaa !6
%6 = icmp eq i64 %5, 0
%7 = select i1 %4, i1 %6, i1 false
br i1 %7, label %35, label %8
8: ; preds = %2
%9 = icmp eq i64 %3, %5
br i1 %9, label %10, label %35
10: ; preds = %8
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !11
%13 = getelementptr inbounds i8, ptr %1, i64 8
%14 = load i64, ptr %13, align 8, !tbaa !11
%15 = icmp eq i64 %12, %14
br i1 %15, label %16, label %35
16: ; preds = %10
%17 = getelementptr inbounds i8, ptr %0, i64 16
%18 = load i64, ptr %17, align 8, !tbaa !12
%19 = getelementptr inbounds i8, ptr %1, i64 16
%20 = load i64, ptr %19, align 8, !tbaa !12
%21 = icmp eq i64 %18, %20
br i1 %21, label %22, label %35
22: ; preds = %16
%23 = getelementptr inbounds i8, ptr %0, i64 24
%24 = load i64, ptr %23, align 8, !tbaa !13
%25 = getelementptr inbounds i8, ptr %1, i64 24
%26 = load i64, ptr %25, align 8, !tbaa !13
%27 = icmp eq i64 %24, %26
br i1 %27, label %28, label %35
28: ; preds = %22
%29 = getelementptr inbounds i8, ptr %0, i64 32
%30 = load i64, ptr %29, align 8, !tbaa !14
%31 = getelementptr inbounds i8, ptr %1, i64 32
%32 = load i64, ptr %31, align 8, !tbaa !14
%33 = icmp eq i64 %30, %32
%34 = zext i1 %33 to i32
br label %35
35: ; preds = %2, %8, %10, %16, %22, %28
%36 = phi i32 [ 0, %22 ], [ 0, %16 ], [ 0, %10 ], [ 0, %8 ], [ %34, %28 ], [ 1, %2 ]
ret i32 %36
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!7, !8, i64 16}
!13 = !{!7, !8, i64 24}
!14 = !{!7, !8, i64 32}
| reactos_drivers_filesystems_btrfs_zstd_extr_zstd_compress.c_ZSTD_equivalentLdmParams |
; ModuleID = 'AnghaBench/FFmpeg/libavformat/extr_prompeg.c_prompeg_write.c'
source_filename = "AnghaBench/FFmpeg/libavformat/extr_prompeg.c_prompeg_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_11__ = type { i32, i32, i32, i32, i64, ptr, i32, ptr, ptr, i64 }
%struct.TYPE_10__ = type { i32, ptr, ptr }
@PROMPEG_FEC_ROW = dso_local local_unnamed_addr global i32 0, align 4
@PROMPEG_FEC_COL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @prompeg_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @prompeg_write(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = load ptr, ptr %0, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
store ptr null, ptr %4, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 9
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %3
%10 = tail call i32 @prompeg_init(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2) #3
%11 = icmp slt i32 %10, 0
br i1 %11, label %150, label %12
12: ; preds = %9, %3
%13 = call i32 @prompeg_create_bitstring(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %4) #3
%14 = icmp slt i32 %13, 0
br i1 %14, label %150, label %15
15: ; preds = %12
%16 = load i32, ptr %5, align 8, !tbaa !15
%17 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 1
%18 = load i32, ptr %17, align 4, !tbaa !16
%19 = srem i32 %16, %18
%20 = sdiv i32 %16, %18
%21 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 2
%22 = load i32, ptr %21, align 8, !tbaa !17
%23 = srem i32 %20, %22
%24 = icmp eq i32 %19, 0
br i1 %24, label %25, label %54
25: ; preds = %15
%26 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 4
%27 = load i64, ptr %26, align 8, !tbaa !18
%28 = icmp eq i64 %27, 0
%29 = icmp sgt i32 %16, 0
%30 = or i1 %29, %28
br i1 %30, label %31, label %37
31: ; preds = %25
%32 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 8
%33 = load ptr, ptr %32, align 8, !tbaa !19
%34 = load i32, ptr @PROMPEG_FEC_ROW, align 4, !tbaa !20
%35 = call i32 @prompeg_write_fec(ptr noundef nonnull %0, ptr noundef %33, i32 noundef %34) #3
%36 = icmp slt i32 %35, 0
br i1 %36, label %150, label %37
37: ; preds = %31, %25
%38 = phi i32 [ 0, %25 ], [ %35, %31 ]
%39 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 8
%40 = load ptr, ptr %39, align 8, !tbaa !19
%41 = load i32, ptr %40, align 8, !tbaa !21
%42 = load ptr, ptr %4, align 8, !tbaa !10
%43 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 6
%44 = load i32, ptr %43, align 8, !tbaa !23
%45 = call i32 @memcpy(i32 noundef %41, ptr noundef %42, i32 noundef %44) #3
%46 = getelementptr inbounds i32, ptr %1, i64 2
%47 = call ptr @AV_RB16(ptr noundef nonnull %46) #3
%48 = load ptr, ptr %39, align 8, !tbaa !19
%49 = getelementptr inbounds %struct.TYPE_10__, ptr %48, i64 0, i32 2
store ptr %47, ptr %49, align 8, !tbaa !24
%50 = getelementptr inbounds i32, ptr %1, i64 4
%51 = call ptr @AV_RB32(ptr noundef nonnull %50) #3
%52 = load ptr, ptr %39, align 8, !tbaa !19
%53 = getelementptr inbounds %struct.TYPE_10__, ptr %52, i64 0, i32 1
store ptr %51, ptr %53, align 8, !tbaa !25
br label %62
54: ; preds = %15
%55 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 8
%56 = load ptr, ptr %55, align 8, !tbaa !19
%57 = load i32, ptr %56, align 8, !tbaa !21
%58 = load ptr, ptr %4, align 8, !tbaa !10
%59 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 6
%60 = load i32, ptr %59, align 8, !tbaa !23
%61 = call i32 @xor_fast(i32 noundef %57, ptr noundef %58, i32 noundef %57, i32 noundef %60) #3
br label %62
62: ; preds = %54, %37
%63 = phi i32 [ %38, %37 ], [ 0, %54 ]
%64 = icmp eq i32 %23, 0
br i1 %64, label %65, label %106
65: ; preds = %62
%66 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 4
%67 = load i64, ptr %66, align 8, !tbaa !18
%68 = icmp eq i64 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %65
%70 = sext i32 %19 to i64
br label %83
71: ; preds = %65
%72 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 5
%73 = load ptr, ptr %72, align 8, !tbaa !26
%74 = sext i32 %19 to i64
%75 = getelementptr inbounds ptr, ptr %73, i64 %74
%76 = load ptr, ptr %75, align 8, !tbaa !10
%77 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 7
%78 = load ptr, ptr %77, align 8, !tbaa !27
%79 = getelementptr inbounds ptr, ptr %78, i64 %74
%80 = load ptr, ptr %79, align 8, !tbaa !10
store ptr %80, ptr %75, align 8, !tbaa !10
%81 = load ptr, ptr %77, align 8, !tbaa !27
%82 = getelementptr inbounds ptr, ptr %81, i64 %74
store ptr %76, ptr %82, align 8, !tbaa !10
br label %83
83: ; preds = %69, %71
%84 = phi i64 [ %70, %69 ], [ %74, %71 ]
%85 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 7
%86 = load ptr, ptr %85, align 8, !tbaa !27
%87 = getelementptr inbounds ptr, ptr %86, i64 %84
%88 = load ptr, ptr %87, align 8, !tbaa !10
%89 = load i32, ptr %88, align 8, !tbaa !21
%90 = load ptr, ptr %4, align 8, !tbaa !10
%91 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 6
%92 = load i32, ptr %91, align 8, !tbaa !23
%93 = call i32 @memcpy(i32 noundef %89, ptr noundef %90, i32 noundef %92) #3
%94 = getelementptr inbounds i32, ptr %1, i64 2
%95 = call ptr @AV_RB16(ptr noundef nonnull %94) #3
%96 = load ptr, ptr %85, align 8, !tbaa !27
%97 = getelementptr inbounds ptr, ptr %96, i64 %84
%98 = load ptr, ptr %97, align 8, !tbaa !10
%99 = getelementptr inbounds %struct.TYPE_10__, ptr %98, i64 0, i32 2
store ptr %95, ptr %99, align 8, !tbaa !24
%100 = getelementptr inbounds i32, ptr %1, i64 4
%101 = call ptr @AV_RB32(ptr noundef nonnull %100) #3
%102 = load ptr, ptr %85, align 8, !tbaa !27
%103 = getelementptr inbounds ptr, ptr %102, i64 %84
%104 = load ptr, ptr %103, align 8, !tbaa !10
%105 = getelementptr inbounds %struct.TYPE_10__, ptr %104, i64 0, i32 1
store ptr %101, ptr %105, align 8, !tbaa !25
br label %117
106: ; preds = %62
%107 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 7
%108 = load ptr, ptr %107, align 8, !tbaa !27
%109 = sext i32 %19 to i64
%110 = getelementptr inbounds ptr, ptr %108, i64 %109
%111 = load ptr, ptr %110, align 8, !tbaa !10
%112 = load i32, ptr %111, align 8, !tbaa !21
%113 = load ptr, ptr %4, align 8, !tbaa !10
%114 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 6
%115 = load i32, ptr %114, align 8, !tbaa !23
%116 = call i32 @xor_fast(i32 noundef %112, ptr noundef %113, i32 noundef %112, i32 noundef %115) #3
br label %117
117: ; preds = %106, %83
%118 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 4
%119 = load i64, ptr %118, align 8, !tbaa !18
%120 = icmp eq i64 %119, 0
%121 = load i32, ptr %5, align 8, !tbaa !15
br i1 %120, label %122, label %139
122: ; preds = %117
%123 = load i32, ptr %21, align 8, !tbaa !17
%124 = srem i32 %121, %123
%125 = sdiv i32 %121, %123
%126 = icmp eq i32 %124, 0
br i1 %126, label %127, label %139
127: ; preds = %122
%128 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 5
%129 = load ptr, ptr %128, align 8, !tbaa !26
%130 = sext i32 %125 to i64
%131 = getelementptr inbounds ptr, ptr %129, i64 %130
%132 = load ptr, ptr %131, align 8, !tbaa !10
%133 = load i32, ptr @PROMPEG_FEC_COL, align 4, !tbaa !20
%134 = call i32 @prompeg_write_fec(ptr noundef nonnull %0, ptr noundef %132, i32 noundef %133) #3
%135 = icmp slt i32 %134, 0
br i1 %135, label %150, label %136
136: ; preds = %127
%137 = add nuw nsw i32 %134, %63
%138 = load i32, ptr %5, align 8, !tbaa !15
br label %139
139: ; preds = %136, %122, %117
%140 = phi i32 [ %121, %117 ], [ %138, %136 ], [ %121, %122 ]
%141 = phi i32 [ %63, %117 ], [ %137, %136 ], [ %63, %122 ]
%142 = add nsw i32 %140, 1
store i32 %142, ptr %5, align 8, !tbaa !15
%143 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i64 0, i32 3
%144 = load i32, ptr %143, align 4, !tbaa !28
%145 = icmp slt i32 %142, %144
br i1 %145, label %150, label %146
146: ; preds = %139
store i32 0, ptr %5, align 8, !tbaa !15
%147 = load i64, ptr %118, align 8, !tbaa !18
%148 = icmp eq i64 %147, 0
br i1 %148, label %150, label %149
149: ; preds = %146
store i64 0, ptr %118, align 8, !tbaa !18
br label %150
150: ; preds = %139, %149, %146, %127, %31, %12, %9
%151 = phi i32 [ %10, %9 ], [ %13, %12 ], [ %35, %31 ], [ %134, %127 ], [ %141, %146 ], [ %141, %149 ], [ %141, %139 ]
%152 = load ptr, ptr %4, align 8, !tbaa !10
%153 = call i32 @av_free(ptr noundef %152) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret i32 %151
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @prompeg_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @prompeg_create_bitstring(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @prompeg_write_fec(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @AV_RB16(ptr noundef) local_unnamed_addr #2
declare ptr @AV_RB32(ptr noundef) local_unnamed_addr #2
declare i32 @xor_fast(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @av_free(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_9__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !14, i64 56}
!12 = !{!"TYPE_11__", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !14, i64 16, !7, i64 24, !13, i64 32, !7, i64 40, !7, i64 48, !14, i64 56}
!13 = !{!"int", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!12, !13, i64 0}
!16 = !{!12, !13, i64 4}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !14, i64 16}
!19 = !{!12, !7, i64 48}
!20 = !{!13, !13, i64 0}
!21 = !{!22, !13, i64 0}
!22 = !{!"TYPE_10__", !13, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!12, !13, i64 32}
!24 = !{!22, !7, i64 16}
!25 = !{!22, !7, i64 8}
!26 = !{!12, !7, i64 24}
!27 = !{!12, !7, i64 40}
!28 = !{!12, !13, i64 12}
| ; ModuleID = 'AnghaBench/FFmpeg/libavformat/extr_prompeg.c_prompeg_write.c'
source_filename = "AnghaBench/FFmpeg/libavformat/extr_prompeg.c_prompeg_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PROMPEG_FEC_ROW = common local_unnamed_addr global i32 0, align 4
@PROMPEG_FEC_COL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @prompeg_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @prompeg_write(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = load ptr, ptr %0, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
store ptr null, ptr %4, align 8, !tbaa !11
%6 = getelementptr inbounds i8, ptr %5, i64 56
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %3
%10 = tail call i32 @prompeg_init(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2) #3
%11 = icmp slt i32 %10, 0
br i1 %11, label %156, label %12
12: ; preds = %9, %3
%13 = call i32 @prompeg_create_bitstring(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %4) #3
%14 = icmp slt i32 %13, 0
br i1 %14, label %156, label %15
15: ; preds = %12
%16 = load i32, ptr %5, align 8, !tbaa !16
%17 = getelementptr inbounds i8, ptr %5, i64 4
%18 = load i32, ptr %17, align 4, !tbaa !17
%19 = freeze i32 %16
%20 = freeze i32 %18
%21 = sdiv i32 %19, %20
%22 = mul i32 %21, %20
%23 = sub i32 %19, %22
%24 = getelementptr inbounds i8, ptr %5, i64 8
%25 = load i32, ptr %24, align 8, !tbaa !18
%26 = srem i32 %21, %25
%27 = icmp eq i32 %23, 0
br i1 %27, label %28, label %57
28: ; preds = %15
%29 = getelementptr inbounds i8, ptr %5, i64 16
%30 = load i64, ptr %29, align 8, !tbaa !19
%31 = icmp eq i64 %30, 0
%32 = icmp sgt i32 %16, 0
%33 = or i1 %32, %31
br i1 %33, label %34, label %40
34: ; preds = %28
%35 = getelementptr inbounds i8, ptr %5, i64 48
%36 = load ptr, ptr %35, align 8, !tbaa !20
%37 = load i32, ptr @PROMPEG_FEC_ROW, align 4, !tbaa !21
%38 = call i32 @prompeg_write_fec(ptr noundef nonnull %0, ptr noundef %36, i32 noundef %37) #3
%39 = icmp slt i32 %38, 0
br i1 %39, label %156, label %40
40: ; preds = %34, %28
%41 = phi i32 [ 0, %28 ], [ %38, %34 ]
%42 = getelementptr inbounds i8, ptr %5, i64 48
%43 = load ptr, ptr %42, align 8, !tbaa !20
%44 = load i32, ptr %43, align 8, !tbaa !22
%45 = load ptr, ptr %4, align 8, !tbaa !11
%46 = getelementptr inbounds i8, ptr %5, i64 32
%47 = load i32, ptr %46, align 8, !tbaa !24
%48 = call i32 @memcpy(i32 noundef %44, ptr noundef %45, i32 noundef %47) #3
%49 = getelementptr inbounds i8, ptr %1, i64 8
%50 = call ptr @AV_RB16(ptr noundef nonnull %49) #3
%51 = load ptr, ptr %42, align 8, !tbaa !20
%52 = getelementptr inbounds i8, ptr %51, i64 16
store ptr %50, ptr %52, align 8, !tbaa !25
%53 = getelementptr inbounds i8, ptr %1, i64 16
%54 = call ptr @AV_RB32(ptr noundef nonnull %53) #3
%55 = load ptr, ptr %42, align 8, !tbaa !20
%56 = getelementptr inbounds i8, ptr %55, i64 8
store ptr %54, ptr %56, align 8, !tbaa !26
br label %65
57: ; preds = %15
%58 = getelementptr inbounds i8, ptr %5, i64 48
%59 = load ptr, ptr %58, align 8, !tbaa !20
%60 = load i32, ptr %59, align 8, !tbaa !22
%61 = load ptr, ptr %4, align 8, !tbaa !11
%62 = getelementptr inbounds i8, ptr %5, i64 32
%63 = load i32, ptr %62, align 8, !tbaa !24
%64 = call i32 @xor_fast(i32 noundef %60, ptr noundef %61, i32 noundef %60, i32 noundef %63) #3
br label %65
65: ; preds = %57, %40
%66 = phi i32 [ %41, %40 ], [ 0, %57 ]
%67 = icmp eq i32 %26, 0
br i1 %67, label %68, label %109
68: ; preds = %65
%69 = getelementptr inbounds i8, ptr %5, i64 16
%70 = load i64, ptr %69, align 8, !tbaa !19
%71 = icmp eq i64 %70, 0
br i1 %71, label %74, label %72
72: ; preds = %68
%73 = sext i32 %23 to i64
br label %86
74: ; preds = %68
%75 = getelementptr inbounds i8, ptr %5, i64 24
%76 = load ptr, ptr %75, align 8, !tbaa !27
%77 = sext i32 %23 to i64
%78 = getelementptr inbounds ptr, ptr %76, i64 %77
%79 = load ptr, ptr %78, align 8, !tbaa !11
%80 = getelementptr inbounds i8, ptr %5, i64 40
%81 = load ptr, ptr %80, align 8, !tbaa !28
%82 = getelementptr inbounds ptr, ptr %81, i64 %77
%83 = load ptr, ptr %82, align 8, !tbaa !11
store ptr %83, ptr %78, align 8, !tbaa !11
%84 = load ptr, ptr %80, align 8, !tbaa !28
%85 = getelementptr inbounds ptr, ptr %84, i64 %77
store ptr %79, ptr %85, align 8, !tbaa !11
br label %86
86: ; preds = %72, %74
%87 = phi i64 [ %73, %72 ], [ %77, %74 ]
%88 = getelementptr inbounds i8, ptr %5, i64 40
%89 = load ptr, ptr %88, align 8, !tbaa !28
%90 = getelementptr inbounds ptr, ptr %89, i64 %87
%91 = load ptr, ptr %90, align 8, !tbaa !11
%92 = load i32, ptr %91, align 8, !tbaa !22
%93 = load ptr, ptr %4, align 8, !tbaa !11
%94 = getelementptr inbounds i8, ptr %5, i64 32
%95 = load i32, ptr %94, align 8, !tbaa !24
%96 = call i32 @memcpy(i32 noundef %92, ptr noundef %93, i32 noundef %95) #3
%97 = getelementptr inbounds i8, ptr %1, i64 8
%98 = call ptr @AV_RB16(ptr noundef nonnull %97) #3
%99 = load ptr, ptr %88, align 8, !tbaa !28
%100 = getelementptr inbounds ptr, ptr %99, i64 %87
%101 = load ptr, ptr %100, align 8, !tbaa !11
%102 = getelementptr inbounds i8, ptr %101, i64 16
store ptr %98, ptr %102, align 8, !tbaa !25
%103 = getelementptr inbounds i8, ptr %1, i64 16
%104 = call ptr @AV_RB32(ptr noundef nonnull %103) #3
%105 = load ptr, ptr %88, align 8, !tbaa !28
%106 = getelementptr inbounds ptr, ptr %105, i64 %87
%107 = load ptr, ptr %106, align 8, !tbaa !11
%108 = getelementptr inbounds i8, ptr %107, i64 8
store ptr %104, ptr %108, align 8, !tbaa !26
br label %120
109: ; preds = %65
%110 = getelementptr inbounds i8, ptr %5, i64 40
%111 = load ptr, ptr %110, align 8, !tbaa !28
%112 = sext i32 %23 to i64
%113 = getelementptr inbounds ptr, ptr %111, i64 %112
%114 = load ptr, ptr %113, align 8, !tbaa !11
%115 = load i32, ptr %114, align 8, !tbaa !22
%116 = load ptr, ptr %4, align 8, !tbaa !11
%117 = getelementptr inbounds i8, ptr %5, i64 32
%118 = load i32, ptr %117, align 8, !tbaa !24
%119 = call i32 @xor_fast(i32 noundef %115, ptr noundef %116, i32 noundef %115, i32 noundef %118) #3
br label %120
120: ; preds = %109, %86
%121 = getelementptr inbounds i8, ptr %5, i64 16
%122 = load i64, ptr %121, align 8, !tbaa !19
%123 = icmp eq i64 %122, 0
%124 = load i32, ptr %5, align 8, !tbaa !16
br i1 %123, label %125, label %145
125: ; preds = %120
%126 = load i32, ptr %24, align 8, !tbaa !18
%127 = freeze i32 %124
%128 = freeze i32 %126
%129 = sdiv i32 %127, %128
%130 = mul i32 %129, %128
%131 = sub i32 %127, %130
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %145
133: ; preds = %125
%134 = getelementptr inbounds i8, ptr %5, i64 24
%135 = load ptr, ptr %134, align 8, !tbaa !27
%136 = sext i32 %129 to i64
%137 = getelementptr inbounds ptr, ptr %135, i64 %136
%138 = load ptr, ptr %137, align 8, !tbaa !11
%139 = load i32, ptr @PROMPEG_FEC_COL, align 4, !tbaa !21
%140 = call i32 @prompeg_write_fec(ptr noundef nonnull %0, ptr noundef %138, i32 noundef %139) #3
%141 = icmp slt i32 %140, 0
br i1 %141, label %156, label %142
142: ; preds = %133
%143 = add nuw nsw i32 %140, %66
%144 = load i32, ptr %5, align 8, !tbaa !16
br label %145
145: ; preds = %142, %125, %120
%146 = phi i32 [ %124, %120 ], [ %144, %142 ], [ %124, %125 ]
%147 = phi i32 [ %66, %120 ], [ %143, %142 ], [ %66, %125 ]
%148 = add nsw i32 %146, 1
store i32 %148, ptr %5, align 8, !tbaa !16
%149 = getelementptr inbounds i8, ptr %5, i64 12
%150 = load i32, ptr %149, align 4, !tbaa !29
%151 = icmp slt i32 %148, %150
br i1 %151, label %156, label %152
152: ; preds = %145
store i32 0, ptr %5, align 8, !tbaa !16
%153 = load i64, ptr %121, align 8, !tbaa !19
%154 = icmp eq i64 %153, 0
br i1 %154, label %156, label %155
155: ; preds = %152
store i64 0, ptr %121, align 8, !tbaa !19
br label %156
156: ; preds = %145, %155, %152, %133, %34, %12, %9
%157 = phi i32 [ %10, %9 ], [ %13, %12 ], [ %38, %34 ], [ %140, %133 ], [ %147, %152 ], [ %147, %155 ], [ %147, %145 ]
%158 = load ptr, ptr %4, align 8, !tbaa !11
%159 = call i32 @av_free(ptr noundef %158) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret i32 %157
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @prompeg_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @prompeg_create_bitstring(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @prompeg_write_fec(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @AV_RB16(ptr noundef) local_unnamed_addr #2
declare ptr @AV_RB32(ptr noundef) local_unnamed_addr #2
declare i32 @xor_fast(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @av_free(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_9__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !15, i64 56}
!13 = !{!"TYPE_11__", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !15, i64 16, !8, i64 24, !14, i64 32, !8, i64 40, !8, i64 48, !15, i64 56}
!14 = !{!"int", !9, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!13, !14, i64 0}
!17 = !{!13, !14, i64 4}
!18 = !{!13, !14, i64 8}
!19 = !{!13, !15, i64 16}
!20 = !{!13, !8, i64 48}
!21 = !{!14, !14, i64 0}
!22 = !{!23, !14, i64 0}
!23 = !{!"TYPE_10__", !14, i64 0, !8, i64 8, !8, i64 16}
!24 = !{!13, !14, i64 32}
!25 = !{!23, !8, i64 16}
!26 = !{!23, !8, i64 8}
!27 = !{!13, !8, i64 24}
!28 = !{!13, !8, i64 40}
!29 = !{!13, !14, i64 12}
| FFmpeg_libavformat_extr_prompeg.c_prompeg_write |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/vgem/extr_vgem_drv.c_vgem_gem_create.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/vgem/extr_vgem_drv.c_vgem_gem_create.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @vgem_gem_create], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @vgem_gem_create(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = tail call ptr @__vgem_gem_create(ptr noundef %0, i64 noundef %3) #2
%6 = tail call i64 @IS_ERR(ptr noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %4
%9 = tail call ptr @ERR_CAST(ptr noundef %5) #2
br label %16
10: ; preds = %4
%11 = tail call i32 @drm_gem_handle_create(ptr noundef %1, ptr noundef %5, ptr noundef %2) #2
%12 = tail call i32 @drm_gem_object_put_unlocked(ptr noundef %5) #2
%13 = icmp eq i32 %11, 0
br i1 %13, label %16, label %14
14: ; preds = %10
%15 = tail call ptr @ERR_PTR(i32 noundef %11) #2
br label %16
16: ; preds = %10, %14, %8
%17 = phi ptr [ %9, %8 ], [ %15, %14 ], [ %5, %10 ]
ret ptr %17
}
declare ptr @__vgem_gem_create(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare ptr @ERR_CAST(ptr noundef) local_unnamed_addr #1
declare i32 @drm_gem_handle_create(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @drm_gem_object_put_unlocked(ptr noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/vgem/extr_vgem_drv.c_vgem_gem_create.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/vgem/extr_vgem_drv.c_vgem_gem_create.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @vgem_gem_create], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @vgem_gem_create(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = tail call ptr @__vgem_gem_create(ptr noundef %0, i64 noundef %3) #2
%6 = tail call i64 @IS_ERR(ptr noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %4
%9 = tail call ptr @ERR_CAST(ptr noundef %5) #2
br label %16
10: ; preds = %4
%11 = tail call i32 @drm_gem_handle_create(ptr noundef %1, ptr noundef %5, ptr noundef %2) #2
%12 = tail call i32 @drm_gem_object_put_unlocked(ptr noundef %5) #2
%13 = icmp eq i32 %11, 0
br i1 %13, label %16, label %14
14: ; preds = %10
%15 = tail call ptr @ERR_PTR(i32 noundef %11) #2
br label %16
16: ; preds = %10, %14, %8
%17 = phi ptr [ %9, %8 ], [ %15, %14 ], [ %5, %10 ]
ret ptr %17
}
declare ptr @__vgem_gem_create(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare ptr @ERR_CAST(ptr noundef) local_unnamed_addr #1
declare i32 @drm_gem_handle_create(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @drm_gem_object_put_unlocked(ptr noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_gpu_drm_vgem_extr_vgem_drv.c_vgem_gem_create |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/dichotomy/extr_dichotomy.c_led_init.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/dichotomy/extr_dichotomy.c_led_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DDRD = dso_local local_unnamed_addr global i32 0, align 4
@PORTD = dso_local local_unnamed_addr global i32 0, align 4
@DDRF = dso_local local_unnamed_addr global i32 0, align 4
@PORTF = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @led_init() local_unnamed_addr #0 {
%1 = load i32, ptr @DDRD, align 4, !tbaa !5
%2 = or i32 %1, 2
store i32 %2, ptr @DDRD, align 4, !tbaa !5
%3 = load i32, ptr @PORTD, align 4, !tbaa !5
%4 = or i32 %3, 2
store i32 %4, ptr @PORTD, align 4, !tbaa !5
%5 = load i32, ptr @DDRF, align 4, !tbaa !5
%6 = or i32 %5, 48
store i32 %6, ptr @DDRF, align 4, !tbaa !5
%7 = load i32, ptr @PORTF, align 4, !tbaa !5
%8 = or i32 %7, 48
store i32 %8, ptr @PORTF, align 4, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/qmk_firmware/keyboards/dichotomy/extr_dichotomy.c_led_init.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/dichotomy/extr_dichotomy.c_led_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DDRD = common local_unnamed_addr global i32 0, align 4
@PORTD = common local_unnamed_addr global i32 0, align 4
@DDRF = common local_unnamed_addr global i32 0, align 4
@PORTF = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable(sync)
define void @led_init() local_unnamed_addr #0 {
%1 = load i32, ptr @DDRD, align 4, !tbaa !6
%2 = or i32 %1, 2
store i32 %2, ptr @DDRD, align 4, !tbaa !6
%3 = load i32, ptr @PORTD, align 4, !tbaa !6
%4 = or i32 %3, 2
store i32 %4, ptr @PORTD, align 4, !tbaa !6
%5 = load i32, ptr @DDRF, align 4, !tbaa !6
%6 = or i32 %5, 48
store i32 %6, ptr @DDRF, align 4, !tbaa !6
%7 = load i32, ptr @PORTF, align 4, !tbaa !6
%8 = or i32 %7, 48
store i32 %8, ptr @PORTF, align 4, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| qmk_firmware_keyboards_dichotomy_extr_dichotomy.c_led_init |
; ModuleID = 'AnghaBench/lab/engine/code/game/extr_g_syscalls.c_trap_FS_FCloseFile.c'
source_filename = "AnghaBench/lab/engine/code/game/extr_g_syscalls.c_trap_FS_FCloseFile.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@G_FS_FCLOSE_FILE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @trap_FS_FCloseFile(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, i32* @G_FS_FCLOSE_FILE, align 4, !tbaa !5
%3 = tail call i32 @syscall(i32 noundef %2, i32 noundef %0) #2
ret void
}
declare i32 @syscall(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{!"Ubuntu clang version 14.0.0-1ubuntu1.1"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/lab/engine/code/game/extr_g_syscalls.c_trap_FS_FCloseFile.c'
source_filename = "AnghaBench/lab/engine/code/game/extr_g_syscalls.c_trap_FS_FCloseFile.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@G_FS_FCLOSE_FILE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @trap_FS_FCloseFile(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @G_FS_FCLOSE_FILE, align 4, !tbaa !6
%3 = tail call i32 @syscall(i32 noundef %2, i32 noundef %0) #2
ret void
}
declare i32 @syscall(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| lab_engine_code_game_extr_g_syscalls.c_trap_FS_FCloseFile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.