IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/linux/drivers/cpufreq/extr_powernow-k8.c_powernowk8_target.c'
source_filename = "AnghaBench/linux/drivers/cpufreq/extr_powernow-k8.c_powernowk8_target.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.powernowk8_target_arg = type { i32, ptr }
@powernowk8_target_fn = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @powernowk8_target], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @powernowk8_target(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca %struct.powernowk8_target_arg, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
store i32 %1, ptr %3, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.powernowk8_target_arg, ptr %3, i64 0, i32 1
store ptr %0, ptr %4, align 8, !tbaa !11
%5 = load i32, ptr %0, align 4, !tbaa !12
%6 = load i32, ptr @powernowk8_target_fn, align 4, !tbaa !14
%7 = call i32 @work_on_cpu(i32 noundef %5, i32 noundef %6, ptr noundef nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret i32 %7
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @work_on_cpu(i32 noundef, i32 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, !7, i64 0}
!6 = !{!"powernowk8_target_arg", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"cpufreq_policy", !7, i64 0}
!14 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/cpufreq/extr_powernow-k8.c_powernowk8_target.c'
source_filename = "AnghaBench/linux/drivers/cpufreq/extr_powernow-k8.c_powernowk8_target.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.powernowk8_target_arg = type { i32, ptr }
@powernowk8_target_fn = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @powernowk8_target], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @powernowk8_target(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca %struct.powernowk8_target_arg, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
store i32 %1, ptr %3, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 8
store ptr %0, ptr %4, align 8, !tbaa !12
%5 = load i32, ptr %0, align 4, !tbaa !13
%6 = load i32, ptr @powernowk8_target_fn, align 4, !tbaa !15
%7 = call i32 @work_on_cpu(i32 noundef %5, i32 noundef %6, ptr noundef nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret i32 %7
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @work_on_cpu(i32 noundef, i32 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, !8, i64 0}
!7 = !{!"powernowk8_target_arg", !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 = !{!7, !11, i64 8}
!13 = !{!14, !8, i64 0}
!14 = !{!"cpufreq_policy", !8, i64 0}
!15 = !{!8, !8, i64 0}
| linux_drivers_cpufreq_extr_powernow-k8.c_powernowk8_target |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/ipw2x00/extr_ipw2200.c_ipw_send_cmd_pdu.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/ipw2x00/extr_ipw2200.c_ipw_send_cmd_pdu.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.host_cmd = type { ptr, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ipw_send_cmd_pdu], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ipw_send_cmd_pdu(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca %struct.host_cmd, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
store ptr %3, ptr %5, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.host_cmd, ptr %5, i64 0, i32 1
store i32 %2, ptr %6, align 8, !tbaa !11
%7 = getelementptr inbounds %struct.host_cmd, ptr %5, i64 0, i32 2
store i32 %1, ptr %7, align 4, !tbaa !12
%8 = call i32 @__ipw_send_cmd(ptr noundef %0, ptr noundef nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
ret i32 %8
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @__ipw_send_cmd(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, !7, i64 0}
!6 = !{!"host_cmd", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 12}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/ipw2x00/extr_ipw2200.c_ipw_send_cmd_pdu.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/ipw2x00/extr_ipw2200.c_ipw_send_cmd_pdu.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.host_cmd = type { ptr, i32, i32 }
@llvm.used = appending global [1 x ptr] [ptr @ipw_send_cmd_pdu], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ipw_send_cmd_pdu(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca %struct.host_cmd, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
store ptr %3, ptr %5, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %5, i64 8
store i32 %2, ptr %6, align 8, !tbaa !12
%7 = getelementptr inbounds i8, ptr %5, i64 12
store i32 %1, ptr %7, align 4, !tbaa !13
%8 = call i32 @__ipw_send_cmd(ptr noundef %0, ptr noundef nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
ret i32 %8
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @__ipw_send_cmd(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, !8, i64 0}
!7 = !{!"host_cmd", !8, i64 0, !11, i64 8, !11, i64 12}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!7, !11, i64 12}
| fastsocket_kernel_drivers_net_wireless_ipw2x00_extr_ipw2200.c_ipw_send_cmd_pdu |
; ModuleID = 'AnghaBench/freebsd/sys/dev/isci/scil/extr_sati_mode_sense.c_sati_mode_sense_control_translate_data.c'
source_filename = "AnghaBench/freebsd/sys/dev/isci/scil/extr_sati_mode_sense.c_sati_mode_sense_control_translate_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"
@SCSI_MODE_SENSE_PC_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@SCSI_MODE_PAGE_CONTROL = dso_local local_unnamed_addr global i32 0, align 4
@SCSI_MODE_SELECT_MODE_PAGE_D_SENSE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i64 @sati_mode_sense_control_translate_data(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readnone %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = alloca i32, align 4
%6 = tail call ptr @sati_cb_get_cdb_address(ptr noundef %1) #3
%7 = tail call i32 @sati_get_cdb_byte(ptr noundef %6, i32 noundef 2) #3
%8 = load i32, ptr @SCSI_MODE_SENSE_PC_SHIFT, align 4, !tbaa !5
%9 = ashr i32 %7, %8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%10 = load i32, ptr @SCSI_MODE_PAGE_CONTROL, align 4, !tbaa !5
%11 = tail call i64 @sati_mode_sense_copy_initial_data(ptr noundef %0, ptr noundef %1, i64 noundef %3, i32 noundef %9, i32 noundef %10) #3
%12 = load ptr, ptr %0, align 8, !tbaa !9
%13 = load i64, ptr %12, align 8, !tbaa !12
%14 = icmp eq i64 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %4
%16 = add nsw i64 %3, 2
%17 = call i32 @sati_get_data_byte(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %16, ptr noundef nonnull %5) #3
%18 = load i32, ptr %5, align 4, !tbaa !5
%19 = load i32, ptr @SCSI_MODE_SELECT_MODE_PAGE_D_SENSE, align 4, !tbaa !5
%20 = or i32 %19, %18
%21 = call i32 @sati_set_data_byte(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %16, i32 noundef %20) #3
br label %22
22: ; preds = %15, %4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i64 %11
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sati_cb_get_cdb_address(ptr noundef) local_unnamed_addr #2
declare i32 @sati_get_cdb_byte(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @sati_mode_sense_copy_initial_data(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sati_get_data_byte(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sati_set_data_byte(ptr noundef, ptr noundef, i64 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, !11, i64 0}
!10 = !{!"TYPE_8__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_7__", !14, i64 0}
!14 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/isci/scil/extr_sati_mode_sense.c_sati_mode_sense_control_translate_data.c'
source_filename = "AnghaBench/freebsd/sys/dev/isci/scil/extr_sati_mode_sense.c_sati_mode_sense_control_translate_data.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SCSI_MODE_SENSE_PC_SHIFT = common local_unnamed_addr global i32 0, align 4
@SCSI_MODE_PAGE_CONTROL = common local_unnamed_addr global i32 0, align 4
@SCSI_MODE_SELECT_MODE_PAGE_D_SENSE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @sati_mode_sense_control_translate_data(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readnone %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = alloca i32, align 4
%6 = tail call ptr @sati_cb_get_cdb_address(ptr noundef %1) #3
%7 = tail call i32 @sati_get_cdb_byte(ptr noundef %6, i32 noundef 2) #3
%8 = load i32, ptr @SCSI_MODE_SENSE_PC_SHIFT, align 4, !tbaa !6
%9 = ashr i32 %7, %8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%10 = load i32, ptr @SCSI_MODE_PAGE_CONTROL, align 4, !tbaa !6
%11 = tail call i64 @sati_mode_sense_copy_initial_data(ptr noundef %0, ptr noundef %1, i64 noundef %3, i32 noundef %9, i32 noundef %10) #3
%12 = load ptr, ptr %0, align 8, !tbaa !10
%13 = load i64, ptr %12, align 8, !tbaa !13
%14 = icmp eq i64 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %4
%16 = add nsw i64 %3, 2
%17 = call i32 @sati_get_data_byte(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %16, ptr noundef nonnull %5) #3
%18 = load i32, ptr %5, align 4, !tbaa !6
%19 = load i32, ptr @SCSI_MODE_SELECT_MODE_PAGE_D_SENSE, align 4, !tbaa !6
%20 = or i32 %19, %18
%21 = call i32 @sati_set_data_byte(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %16, i32 noundef %20) #3
br label %22
22: ; preds = %15, %4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i64 %11
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sati_cb_get_cdb_address(ptr noundef) local_unnamed_addr #2
declare i32 @sati_get_cdb_byte(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @sati_mode_sense_copy_initial_data(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sati_get_data_byte(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sati_set_data_byte(ptr noundef, ptr noundef, i64 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, !12, i64 0}
!11 = !{!"TYPE_8__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_7__", !15, i64 0}
!15 = !{!"long", !8, i64 0}
| freebsd_sys_dev_isci_scil_extr_sati_mode_sense.c_sati_mode_sense_control_translate_data |
; ModuleID = 'AnghaBench/SoftEtherVPN/src/Cedar/extr_Command.c_PsCAList.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Cedar/extr_Command.c_PsCAList.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_14__ = type { i64, ptr, i32 }
%struct.TYPE_15__ = type { i32, ptr }
%struct.TYPE_13__ = type { ptr, ptr, i32, i32 }
@.str = private unnamed_addr constant [21 x i8] c"CMD_Hub_Not_Selected\00", align 1
@ERR_INVALID_PARAMETER = dso_local local_unnamed_addr global i64 0, align 8
@ERR_NO_ERROR = dso_local local_unnamed_addr global i64 0, align 8
@MAX_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"CMD_CAList_COLUMN_ID\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"CM_CERT_COLUMN_1\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"CM_CERT_COLUMN_2\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"CM_CERT_COLUMN_3\00", align 1
@.str.5 = private unnamed_addr constant [4 x i32] [i32 45, i32 45, i32 45, i32 0], align 4
; Function Attrs: nounwind uwtable
define dso_local i64 @PsCAList(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
%5 = alloca %struct.TYPE_14__, align 8
%6 = alloca [64 x i8], align 16
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
%7 = getelementptr inbounds %struct.TYPE_15__, ptr %3, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !5
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %4
%11 = load ptr, ptr %0, align 8, !tbaa !11
%12 = tail call ptr @_UU(ptr noundef nonnull @.str) #4
%13 = tail call i32 %11(ptr noundef nonnull %0, ptr noundef %12) #4
%14 = load i64, ptr @ERR_INVALID_PARAMETER, align 8, !tbaa !13
br label %78
15: ; preds = %4
%16 = tail call ptr @ParseCommandList(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef null, i32 noundef 0) #4
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i64, ptr @ERR_INVALID_PARAMETER, align 8, !tbaa !13
br label %78
20: ; preds = %15
%21 = call i32 @Zero(ptr noundef nonnull %5, i32 noundef 24) #4
%22 = getelementptr inbounds %struct.TYPE_14__, ptr %5, i64 0, i32 2
%23 = load i32, ptr %22, align 8, !tbaa !15
%24 = load ptr, ptr %7, align 8, !tbaa !5
%25 = call i32 @StrCpy(i32 noundef %23, i32 noundef 4, ptr noundef %24) #4
%26 = load i32, ptr %3, align 8, !tbaa !17
%27 = call i64 @ScEnumCa(i32 noundef %26, ptr noundef nonnull %5) #4
%28 = load i64, ptr @ERR_NO_ERROR, align 8, !tbaa !13
%29 = icmp eq i64 %27, %28
br i1 %29, label %33, label %30
30: ; preds = %20
%31 = call i32 @CmdPrintError(ptr noundef %0, i64 noundef %27) #4
%32 = call i32 @FreeParamValueList(ptr noundef nonnull %16) #4
br label %78
33: ; preds = %20
%34 = call ptr (...) @CtNewStandard() #4
%35 = load i64, ptr %5, align 8, !tbaa !18
%36 = icmp sgt i64 %35, 0
br i1 %36, label %37, label %74
37: ; preds = %33
%38 = getelementptr inbounds %struct.TYPE_14__, ptr %5, i64 0, i32 1
br label %39
39: ; preds = %37, %70
%40 = phi i64 [ 0, %37 ], [ %71, %70 ]
%41 = load i32, ptr @MAX_SIZE, align 4, !tbaa !19
%42 = zext i32 %41 to i64
%43 = call ptr @llvm.stacksave.p0()
%44 = alloca i8, i64 %42, align 16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
%45 = load ptr, ptr %38, align 8, !tbaa !20
%46 = getelementptr inbounds %struct.TYPE_13__, ptr %45, i64 %40
%47 = getelementptr inbounds %struct.TYPE_13__, ptr %45, i64 %40, i32 3
%48 = load i32, ptr %47, align 4, !tbaa !21
%49 = call i32 @SystemToLocal64(i32 noundef %48) #4
%50 = call i32 @GetDateStrEx64(ptr noundef nonnull %44, i32 noundef %41, i32 noundef %49, ptr noundef null) #4
%51 = getelementptr inbounds %struct.TYPE_13__, ptr %45, i64 %40, i32 2
%52 = load i32, ptr %51, align 8, !tbaa !23
%53 = call i32 @UniToStru(ptr noundef nonnull %6, i32 noundef %52) #4
%54 = call ptr @_UU(ptr noundef nonnull @.str.1) #4
%55 = call i32 @CtInsert(ptr noundef %34, ptr noundef %54, ptr noundef nonnull %6) #4
%56 = call ptr @_UU(ptr noundef nonnull @.str.2) #4
%57 = load ptr, ptr %46, align 8, !tbaa !24
%58 = call i32 @CtInsert(ptr noundef %34, ptr noundef %56, ptr noundef %57) #4
%59 = call ptr @_UU(ptr noundef nonnull @.str.3) #4
%60 = getelementptr inbounds %struct.TYPE_13__, ptr %45, i64 %40, i32 1
%61 = load ptr, ptr %60, align 8, !tbaa !25
%62 = call i32 @CtInsert(ptr noundef %34, ptr noundef %59, ptr noundef %61) #4
%63 = call ptr @_UU(ptr noundef nonnull @.str.4) #4
%64 = call i32 @CtInsert(ptr noundef %34, ptr noundef %63, ptr noundef nonnull %44) #4
%65 = load i64, ptr %5, align 8, !tbaa !18
%66 = add nsw i64 %65, -1
%67 = icmp eq i64 %40, %66
br i1 %67, label %70, label %68
68: ; preds = %39
%69 = call i32 @CtInsert(ptr noundef %34, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.5) #4
br label %70
70: ; preds = %68, %39
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
call void @llvm.stackrestore.p0(ptr %43)
%71 = add nuw nsw i64 %40, 1
%72 = load i64, ptr %5, align 8, !tbaa !18
%73 = icmp slt i64 %71, %72
br i1 %73, label %39, label %74, !llvm.loop !26
74: ; preds = %70, %33
%75 = call i32 @CtFree(ptr noundef %34, ptr noundef %0) #4
%76 = call i32 @FreeRpcHubEnumCa(ptr noundef nonnull %5) #4
%77 = call i32 @FreeParamValueList(ptr noundef nonnull %16) #4
br label %78
78: ; preds = %74, %30, %18, %10
%79 = phi i64 [ %14, %10 ], [ %19, %18 ], [ %27, %30 ], [ 0, %74 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
ret i64 %79
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @_UU(ptr noundef) local_unnamed_addr #2
declare ptr @ParseCommandList(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @Zero(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @StrCpy(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ScEnumCa(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @CmdPrintError(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @FreeParamValueList(ptr noundef) local_unnamed_addr #2
declare ptr @CtNewStandard(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3
declare i32 @GetDateStrEx64(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SystemToLocal64(i32 noundef) local_unnamed_addr #2
declare i32 @UniToStru(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CtInsert(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
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3
declare i32 @CtFree(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @FreeRpcHubEnumCa(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 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 nosync nounwind willreturn }
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, !10, i64 8}
!6 = !{!"TYPE_15__", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"TYPE_16__", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !7, i64 16}
!16 = !{!"TYPE_14__", !14, i64 0, !10, i64 8, !7, i64 16}
!17 = !{!6, !7, i64 0}
!18 = !{!16, !14, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!16, !10, i64 8}
!21 = !{!22, !7, i64 20}
!22 = !{!"TYPE_13__", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 20}
!23 = !{!22, !7, i64 16}
!24 = !{!22, !10, i64 0}
!25 = !{!22, !10, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/SoftEtherVPN/src/Cedar/extr_Command.c_PsCAList.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Cedar/extr_Command.c_PsCAList.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_14__ = type { i64, ptr, i32 }
%struct.TYPE_13__ = type { ptr, ptr, i32, i32 }
@.str = private unnamed_addr constant [21 x i8] c"CMD_Hub_Not_Selected\00", align 1
@ERR_INVALID_PARAMETER = common local_unnamed_addr global i64 0, align 8
@ERR_NO_ERROR = common local_unnamed_addr global i64 0, align 8
@MAX_SIZE = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"CMD_CAList_COLUMN_ID\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"CM_CERT_COLUMN_1\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"CM_CERT_COLUMN_2\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"CM_CERT_COLUMN_3\00", align 1
@.str.5 = private unnamed_addr constant [4 x i32] [i32 45, i32 45, i32 45, i32 0], align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @PsCAList(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
%5 = alloca %struct.TYPE_14__, align 8
%6 = alloca [64 x i8], align 1
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
%7 = getelementptr inbounds i8, ptr %3, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !6
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %4
%11 = load ptr, ptr %0, align 8, !tbaa !12
%12 = tail call ptr @_UU(ptr noundef nonnull @.str) #4
%13 = tail call i32 %11(ptr noundef nonnull %0, ptr noundef %12) #4
%14 = load i64, ptr @ERR_INVALID_PARAMETER, align 8, !tbaa !14
br label %78
15: ; preds = %4
%16 = tail call ptr @ParseCommandList(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef null, i32 noundef 0) #4
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i64, ptr @ERR_INVALID_PARAMETER, align 8, !tbaa !14
br label %78
20: ; preds = %15
%21 = call i32 @Zero(ptr noundef nonnull %5, i32 noundef 24) #4
%22 = getelementptr inbounds i8, ptr %5, i64 16
%23 = load i32, ptr %22, align 8, !tbaa !16
%24 = load ptr, ptr %7, align 8, !tbaa !6
%25 = call i32 @StrCpy(i32 noundef %23, i32 noundef 4, ptr noundef %24) #4
%26 = load i32, ptr %3, align 8, !tbaa !18
%27 = call i64 @ScEnumCa(i32 noundef %26, ptr noundef nonnull %5) #4
%28 = load i64, ptr @ERR_NO_ERROR, align 8, !tbaa !14
%29 = icmp eq i64 %27, %28
br i1 %29, label %33, label %30
30: ; preds = %20
%31 = call i32 @CmdPrintError(ptr noundef %0, i64 noundef %27) #4
%32 = call i32 @FreeParamValueList(ptr noundef nonnull %16) #4
br label %78
33: ; preds = %20
%34 = call ptr @CtNewStandard() #4
%35 = load i64, ptr %5, align 8, !tbaa !19
%36 = icmp sgt i64 %35, 0
br i1 %36, label %37, label %74
37: ; preds = %33
%38 = getelementptr inbounds i8, ptr %5, i64 8
br label %39
39: ; preds = %37, %70
%40 = phi i64 [ 0, %37 ], [ %71, %70 ]
%41 = load i32, ptr @MAX_SIZE, align 4, !tbaa !20
%42 = zext i32 %41 to i64
%43 = call ptr @llvm.stacksave.p0()
%44 = alloca i8, i64 %42, align 1
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
%45 = load ptr, ptr %38, align 8, !tbaa !21
%46 = getelementptr inbounds %struct.TYPE_13__, ptr %45, i64 %40
%47 = getelementptr inbounds i8, ptr %46, i64 20
%48 = load i32, ptr %47, align 4, !tbaa !22
%49 = call i32 @SystemToLocal64(i32 noundef %48) #4
%50 = call i32 @GetDateStrEx64(ptr noundef nonnull %44, i32 noundef %41, i32 noundef %49, ptr noundef null) #4
%51 = getelementptr inbounds i8, ptr %46, i64 16
%52 = load i32, ptr %51, align 8, !tbaa !24
%53 = call i32 @UniToStru(ptr noundef nonnull %6, i32 noundef %52) #4
%54 = call ptr @_UU(ptr noundef nonnull @.str.1) #4
%55 = call i32 @CtInsert(ptr noundef %34, ptr noundef %54, ptr noundef nonnull %6) #4
%56 = call ptr @_UU(ptr noundef nonnull @.str.2) #4
%57 = load ptr, ptr %46, align 8, !tbaa !25
%58 = call i32 @CtInsert(ptr noundef %34, ptr noundef %56, ptr noundef %57) #4
%59 = call ptr @_UU(ptr noundef nonnull @.str.3) #4
%60 = getelementptr inbounds i8, ptr %46, i64 8
%61 = load ptr, ptr %60, align 8, !tbaa !26
%62 = call i32 @CtInsert(ptr noundef %34, ptr noundef %59, ptr noundef %61) #4
%63 = call ptr @_UU(ptr noundef nonnull @.str.4) #4
%64 = call i32 @CtInsert(ptr noundef %34, ptr noundef %63, ptr noundef nonnull %44) #4
%65 = load i64, ptr %5, align 8, !tbaa !19
%66 = add nsw i64 %65, -1
%67 = icmp eq i64 %40, %66
br i1 %67, label %70, label %68
68: ; preds = %39
%69 = call i32 @CtInsert(ptr noundef %34, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.5) #4
br label %70
70: ; preds = %68, %39
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
call void @llvm.stackrestore.p0(ptr %43)
%71 = add nuw nsw i64 %40, 1
%72 = load i64, ptr %5, align 8, !tbaa !19
%73 = icmp slt i64 %71, %72
br i1 %73, label %39, label %74, !llvm.loop !27
74: ; preds = %70, %33
%75 = call i32 @CtFree(ptr noundef %34, ptr noundef %0) #4
%76 = call i32 @FreeRpcHubEnumCa(ptr noundef nonnull %5) #4
%77 = call i32 @FreeParamValueList(ptr noundef nonnull %16) #4
br label %78
78: ; preds = %74, %30, %18, %10
%79 = phi i64 [ %14, %10 ], [ %19, %18 ], [ %27, %30 ], [ 0, %74 ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
ret i64 %79
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @_UU(ptr noundef) local_unnamed_addr #2
declare ptr @ParseCommandList(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @Zero(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @StrCpy(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ScEnumCa(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @CmdPrintError(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @FreeParamValueList(ptr noundef) local_unnamed_addr #2
declare ptr @CtNewStandard(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3
declare i32 @GetDateStrEx64(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SystemToLocal64(i32 noundef) local_unnamed_addr #2
declare i32 @UniToStru(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @CtInsert(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
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3
declare i32 @CtFree(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @FreeRpcHubEnumCa(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 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 nosync nounwind willreturn }
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, !11, i64 8}
!7 = !{!"TYPE_15__", !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 = !{!13, !11, i64 0}
!13 = !{!"TYPE_16__", !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!17, !8, i64 16}
!17 = !{!"TYPE_14__", !15, i64 0, !11, i64 8, !8, i64 16}
!18 = !{!7, !8, i64 0}
!19 = !{!17, !15, i64 0}
!20 = !{!8, !8, i64 0}
!21 = !{!17, !11, i64 8}
!22 = !{!23, !8, i64 20}
!23 = !{!"TYPE_13__", !11, i64 0, !11, i64 8, !8, i64 16, !8, i64 20}
!24 = !{!23, !8, i64 16}
!25 = !{!23, !11, i64 0}
!26 = !{!23, !11, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
| SoftEtherVPN_src_Cedar_extr_Command.c_PsCAList |
; ModuleID = 'AnghaBench/mpv/video/out/opengl/extr_ra_gl.c_gl_buf_poll.c'
source_filename = "AnghaBench/mpv/video/out/opengl/extr_ra_gl.c_gl_buf_poll.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.ra_buf = type { ptr, i32 }
%struct.TYPE_3__ = type { ptr, ptr }
@GL_ALREADY_SIGNALED = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @gl_buf_poll], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @gl_buf_poll(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = getelementptr inbounds %struct.ra_buf, ptr %1, i64 0, i32 1
%4 = load i32, ptr %3, align 8, !tbaa !5
%5 = icmp eq i32 %4, 0
br i1 %5, label %25, label %6
6: ; preds = %2
%7 = tail call ptr @ra_gl_get(ptr noundef %0) #2
%8 = load ptr, ptr %1, align 8, !tbaa !11
%9 = load ptr, ptr %8, align 8, !tbaa !12
%10 = icmp eq ptr %9, null
br i1 %10, label %21, label %11
11: ; preds = %6
%12 = load ptr, ptr %7, align 8, !tbaa !14
%13 = tail call i64 %12(ptr noundef nonnull %9, i32 noundef 0, i32 noundef 0) #2
%14 = load i64, ptr @GL_ALREADY_SIGNALED, align 8, !tbaa !16
%15 = icmp eq i64 %13, %14
%16 = load ptr, ptr %8, align 8, !tbaa !12
br i1 %15, label %17, label %21
17: ; preds = %11
%18 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 0, i32 1
%19 = load ptr, ptr %18, align 8, !tbaa !18
%20 = tail call i32 %19(ptr noundef %16) #2
store ptr null, ptr %8, align 8, !tbaa !12
br label %21
21: ; preds = %11, %17, %6
%22 = phi ptr [ %16, %11 ], [ null, %17 ], [ null, %6 ]
%23 = icmp eq ptr %22, null
%24 = zext i1 %23 to i32
br label %25
25: ; preds = %2, %21
%26 = phi i32 [ %24, %21 ], [ 1, %2 ]
ret i32 %26
}
declare ptr @ra_gl_get(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 8}
!6 = !{!"ra_buf", !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 = !{!6, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"ra_buf_gl", !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_3__", !7, i64 0, !7, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!15, !7, i64 8}
| ; ModuleID = 'AnghaBench/mpv/video/out/opengl/extr_ra_gl.c_gl_buf_poll.c'
source_filename = "AnghaBench/mpv/video/out/opengl/extr_ra_gl.c_gl_buf_poll.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GL_ALREADY_SIGNALED = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @gl_buf_poll], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @gl_buf_poll(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 8
%4 = load i32, ptr %3, align 8, !tbaa !6
%5 = icmp eq i32 %4, 0
br i1 %5, label %25, label %6
6: ; preds = %2
%7 = tail call ptr @ra_gl_get(ptr noundef %0) #2
%8 = load ptr, ptr %1, align 8, !tbaa !12
%9 = load ptr, ptr %8, align 8, !tbaa !13
%10 = icmp eq ptr %9, null
br i1 %10, label %21, label %11
11: ; preds = %6
%12 = load ptr, ptr %7, align 8, !tbaa !15
%13 = tail call i64 %12(ptr noundef nonnull %9, i32 noundef 0, i32 noundef 0) #2
%14 = load i64, ptr @GL_ALREADY_SIGNALED, align 8, !tbaa !17
%15 = icmp eq i64 %13, %14
%16 = load ptr, ptr %8, align 8, !tbaa !13
br i1 %15, label %17, label %21
17: ; preds = %11
%18 = getelementptr inbounds i8, ptr %7, i64 8
%19 = load ptr, ptr %18, align 8, !tbaa !19
%20 = tail call i32 %19(ptr noundef %16) #2
store ptr null, ptr %8, align 8, !tbaa !13
br label %21
21: ; preds = %11, %17, %6
%22 = phi ptr [ %16, %11 ], [ null, %17 ], [ null, %6 ]
%23 = icmp eq ptr %22, null
%24 = zext i1 %23 to i32
br label %25
25: ; preds = %2, %21
%26 = phi i32 [ %24, %21 ], [ 1, %2 ]
ret i32 %26
}
declare ptr @ra_gl_get(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 8}
!7 = !{!"ra_buf", !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 = !{!7, !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"ra_buf_gl", !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_3__", !8, i64 0, !8, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !9, i64 0}
!19 = !{!16, !8, i64 8}
| mpv_video_out_opengl_extr_ra_gl.c_gl_buf_poll |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/s3c-camif/extr_camif-capture.c_s3c_camif_qbuf.c'
source_filename = "AnghaBench/linux/drivers/media/platform/s3c-camif/extr_camif-capture.c_s3c_camif_qbuf.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.camif_vp = type { ptr, %struct.TYPE_4__, i32, i32 }
%struct.TYPE_4__ = type { ptr }
@.str = private unnamed_addr constant [8 x i8] c"[vp%d]\0A\00", align 1
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @s3c_camif_qbuf], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @s3c_camif_qbuf(ptr noundef %0, ptr noundef readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @video_drvdata(ptr noundef %0) #2
%5 = getelementptr inbounds %struct.camif_vp, ptr %4, i64 0, i32 3
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = tail call i32 @pr_debug(ptr noundef nonnull @.str, i32 noundef %6) #2
%8 = load ptr, ptr %4, align 8, !tbaa !12
%9 = icmp eq ptr %8, null
%10 = icmp eq ptr %8, %1
%11 = or i1 %9, %10
br i1 %11, label %15, label %12
12: ; preds = %3
%13 = load i32, ptr @EBUSY, align 4, !tbaa !13
%14 = sub nsw i32 0, %13
br label %21
15: ; preds = %3
%16 = getelementptr inbounds %struct.camif_vp, ptr %4, i64 0, i32 2
%17 = getelementptr inbounds %struct.camif_vp, ptr %4, i64 0, i32 1
%18 = load ptr, ptr %17, align 8, !tbaa !14
%19 = load i32, ptr %18, align 4, !tbaa !15
%20 = tail call i32 @vb2_qbuf(ptr noundef nonnull %16, i32 noundef %19, ptr noundef %2) #2
br label %21
21: ; preds = %15, %12
%22 = phi i32 [ %14, %12 ], [ %20, %15 ]
ret i32 %22
}
declare ptr @video_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @pr_debug(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @vb2_qbuf(ptr noundef, 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, !11, i64 20}
!6 = !{!"camif_vp", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_4__", !7, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !7, i64 8}
!15 = !{!16, !11, i64 0}
!16 = !{!"TYPE_3__", !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/s3c-camif/extr_camif-capture.c_s3c_camif_qbuf.c'
source_filename = "AnghaBench/linux/drivers/media/platform/s3c-camif/extr_camif-capture.c_s3c_camif_qbuf.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"[vp%d]\0A\00", align 1
@EBUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @s3c_camif_qbuf], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @s3c_camif_qbuf(ptr noundef %0, ptr noundef readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @video_drvdata(ptr noundef %0) #2
%5 = getelementptr inbounds i8, ptr %4, i64 20
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = tail call i32 @pr_debug(ptr noundef nonnull @.str, i32 noundef %6) #2
%8 = load ptr, ptr %4, align 8, !tbaa !13
%9 = icmp eq ptr %8, null
%10 = icmp eq ptr %8, %1
%11 = or i1 %9, %10
br i1 %11, label %15, label %12
12: ; preds = %3
%13 = load i32, ptr @EBUSY, align 4, !tbaa !14
%14 = sub nsw i32 0, %13
br label %21
15: ; preds = %3
%16 = getelementptr inbounds i8, ptr %4, i64 16
%17 = getelementptr inbounds i8, ptr %4, i64 8
%18 = load ptr, ptr %17, align 8, !tbaa !15
%19 = load i32, ptr %18, align 4, !tbaa !16
%20 = tail call i32 @vb2_qbuf(ptr noundef nonnull %16, i32 noundef %19, ptr noundef %2) #2
br label %21
21: ; preds = %15, %12
%22 = phi i32 [ %14, %12 ], [ %20, %15 ]
ret i32 %22
}
declare ptr @video_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @pr_debug(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @vb2_qbuf(ptr noundef, 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, !12, i64 20}
!7 = !{!"camif_vp", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 20}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_4__", !8, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!7, !8, i64 8}
!16 = !{!17, !12, i64 0}
!17 = !{!"TYPE_3__", !12, i64 0}
| linux_drivers_media_platform_s3c-camif_extr_camif-capture.c_s3c_camif_qbuf |
; ModuleID = 'AnghaBench/Cinder/src/glload/extr_gl_load.c_LoadCore_Version_4_0.c'
source_filename = "AnghaBench/Cinder/src/glload/extr_gl_load.c_LoadCore_Version_4_0.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 [20 x i8] c"glBeginQueryIndexed\00", align 1
@_funcptr_glBeginQueryIndexed = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [24 x i8] c"glBindTransformFeedback\00", align 1
@_funcptr_glBindTransformFeedback = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [25 x i8] c"glBlendEquationSeparatei\00", align 1
@_funcptr_glBlendEquationSeparatei = dso_local local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [17 x i8] c"glBlendEquationi\00", align 1
@_funcptr_glBlendEquationi = dso_local local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [21 x i8] c"glBlendFuncSeparatei\00", align 1
@_funcptr_glBlendFuncSeparatei = dso_local local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [13 x i8] c"glBlendFunci\00", align 1
@_funcptr_glBlendFunci = dso_local local_unnamed_addr global i64 0, align 8
@.str.6 = private unnamed_addr constant [27 x i8] c"glDeleteTransformFeedbacks\00", align 1
@_funcptr_glDeleteTransformFeedbacks = dso_local local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [21 x i8] c"glDrawArraysIndirect\00", align 1
@_funcptr_glDrawArraysIndirect = dso_local local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [23 x i8] c"glDrawElementsIndirect\00", align 1
@_funcptr_glDrawElementsIndirect = dso_local local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [24 x i8] c"glDrawTransformFeedback\00", align 1
@_funcptr_glDrawTransformFeedback = dso_local local_unnamed_addr global i64 0, align 8
@.str.10 = private unnamed_addr constant [30 x i8] c"glDrawTransformFeedbackStream\00", align 1
@_funcptr_glDrawTransformFeedbackStream = dso_local local_unnamed_addr global i64 0, align 8
@.str.11 = private unnamed_addr constant [18 x i8] c"glEndQueryIndexed\00", align 1
@_funcptr_glEndQueryIndexed = dso_local local_unnamed_addr global i64 0, align 8
@.str.12 = private unnamed_addr constant [24 x i8] c"glGenTransformFeedbacks\00", align 1
@_funcptr_glGenTransformFeedbacks = dso_local local_unnamed_addr global i64 0, align 8
@.str.13 = private unnamed_addr constant [26 x i8] c"glGetActiveSubroutineName\00", align 1
@_funcptr_glGetActiveSubroutineName = dso_local local_unnamed_addr global i64 0, align 8
@.str.14 = private unnamed_addr constant [33 x i8] c"glGetActiveSubroutineUniformName\00", align 1
@_funcptr_glGetActiveSubroutineUniformName = dso_local local_unnamed_addr global i64 0, align 8
@.str.15 = private unnamed_addr constant [31 x i8] c"glGetActiveSubroutineUniformiv\00", align 1
@_funcptr_glGetActiveSubroutineUniformiv = dso_local local_unnamed_addr global i64 0, align 8
@.str.16 = private unnamed_addr constant [20 x i8] c"glGetProgramStageiv\00", align 1
@_funcptr_glGetProgramStageiv = dso_local local_unnamed_addr global i64 0, align 8
@.str.17 = private unnamed_addr constant [20 x i8] c"glGetQueryIndexediv\00", align 1
@_funcptr_glGetQueryIndexediv = dso_local local_unnamed_addr global i64 0, align 8
@.str.18 = private unnamed_addr constant [21 x i8] c"glGetSubroutineIndex\00", align 1
@_funcptr_glGetSubroutineIndex = dso_local local_unnamed_addr global i64 0, align 8
@.str.19 = private unnamed_addr constant [31 x i8] c"glGetSubroutineUniformLocation\00", align 1
@_funcptr_glGetSubroutineUniformLocation = dso_local local_unnamed_addr global i64 0, align 8
@.str.20 = private unnamed_addr constant [26 x i8] c"glGetUniformSubroutineuiv\00", align 1
@_funcptr_glGetUniformSubroutineuiv = dso_local local_unnamed_addr global i64 0, align 8
@.str.21 = private unnamed_addr constant [15 x i8] c"glGetUniformdv\00", align 1
@_funcptr_glGetUniformdv = dso_local local_unnamed_addr global i64 0, align 8
@.str.22 = private unnamed_addr constant [22 x i8] c"glIsTransformFeedback\00", align 1
@_funcptr_glIsTransformFeedback = dso_local local_unnamed_addr global i64 0, align 8
@.str.23 = private unnamed_addr constant [19 x i8] c"glMinSampleShading\00", align 1
@_funcptr_glMinSampleShading = dso_local local_unnamed_addr global i64 0, align 8
@.str.24 = private unnamed_addr constant [19 x i8] c"glPatchParameterfv\00", align 1
@_funcptr_glPatchParameterfv = dso_local local_unnamed_addr global i64 0, align 8
@.str.25 = private unnamed_addr constant [18 x i8] c"glPatchParameteri\00", align 1
@_funcptr_glPatchParameteri = dso_local local_unnamed_addr global i64 0, align 8
@.str.26 = private unnamed_addr constant [25 x i8] c"glPauseTransformFeedback\00", align 1
@_funcptr_glPauseTransformFeedback = dso_local local_unnamed_addr global i64 0, align 8
@.str.27 = private unnamed_addr constant [26 x i8] c"glResumeTransformFeedback\00", align 1
@_funcptr_glResumeTransformFeedback = dso_local local_unnamed_addr global i64 0, align 8
@.str.28 = private unnamed_addr constant [12 x i8] c"glUniform1d\00", align 1
@_funcptr_glUniform1d = dso_local local_unnamed_addr global i64 0, align 8
@.str.29 = private unnamed_addr constant [13 x i8] c"glUniform1dv\00", align 1
@_funcptr_glUniform1dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.30 = private unnamed_addr constant [12 x i8] c"glUniform2d\00", align 1
@_funcptr_glUniform2d = dso_local local_unnamed_addr global i64 0, align 8
@.str.31 = private unnamed_addr constant [13 x i8] c"glUniform2dv\00", align 1
@_funcptr_glUniform2dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.32 = private unnamed_addr constant [12 x i8] c"glUniform3d\00", align 1
@_funcptr_glUniform3d = dso_local local_unnamed_addr global i64 0, align 8
@.str.33 = private unnamed_addr constant [13 x i8] c"glUniform3dv\00", align 1
@_funcptr_glUniform3dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.34 = private unnamed_addr constant [12 x i8] c"glUniform4d\00", align 1
@_funcptr_glUniform4d = dso_local local_unnamed_addr global i64 0, align 8
@.str.35 = private unnamed_addr constant [13 x i8] c"glUniform4dv\00", align 1
@_funcptr_glUniform4dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.36 = private unnamed_addr constant [19 x i8] c"glUniformMatrix2dv\00", align 1
@_funcptr_glUniformMatrix2dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.37 = private unnamed_addr constant [21 x i8] c"glUniformMatrix2x3dv\00", align 1
@_funcptr_glUniformMatrix2x3dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.38 = private unnamed_addr constant [21 x i8] c"glUniformMatrix2x4dv\00", align 1
@_funcptr_glUniformMatrix2x4dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.39 = private unnamed_addr constant [19 x i8] c"glUniformMatrix3dv\00", align 1
@_funcptr_glUniformMatrix3dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.40 = private unnamed_addr constant [21 x i8] c"glUniformMatrix3x2dv\00", align 1
@_funcptr_glUniformMatrix3x2dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.41 = private unnamed_addr constant [21 x i8] c"glUniformMatrix3x4dv\00", align 1
@_funcptr_glUniformMatrix3x4dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.42 = private unnamed_addr constant [19 x i8] c"glUniformMatrix4dv\00", align 1
@_funcptr_glUniformMatrix4dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.43 = private unnamed_addr constant [21 x i8] c"glUniformMatrix4x2dv\00", align 1
@_funcptr_glUniformMatrix4x2dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.44 = private unnamed_addr constant [21 x i8] c"glUniformMatrix4x3dv\00", align 1
@_funcptr_glUniformMatrix4x3dv = dso_local local_unnamed_addr global i64 0, align 8
@.str.45 = private unnamed_addr constant [24 x i8] c"glUniformSubroutinesuiv\00", align 1
@_funcptr_glUniformSubroutinesuiv = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @LoadCore_Version_4_0], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @LoadCore_Version_4_0() #0 {
%1 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str) #2
store i64 %1, ptr @_funcptr_glBeginQueryIndexed, align 8, !tbaa !5
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.1) #2
store i64 %4, ptr @_funcptr_glBindTransformFeedback, align 8, !tbaa !5
%5 = icmp eq i64 %4, 0
%6 = select i1 %2, i32 2, i32 1
%7 = select i1 %5, i32 %6, i32 %3
%8 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.2) #2
store i64 %8, ptr @_funcptr_glBlendEquationSeparatei, align 8, !tbaa !5
%9 = icmp eq i64 %8, 0
%10 = zext i1 %9 to i32
%11 = add nuw nsw i32 %7, %10
%12 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.3) #2
store i64 %12, ptr @_funcptr_glBlendEquationi, align 8, !tbaa !5
%13 = icmp eq i64 %12, 0
%14 = zext i1 %13 to i32
%15 = add nuw nsw i32 %11, %14
%16 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.4) #2
store i64 %16, ptr @_funcptr_glBlendFuncSeparatei, align 8, !tbaa !5
%17 = icmp eq i64 %16, 0
%18 = zext i1 %17 to i32
%19 = add nuw nsw i32 %15, %18
%20 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.5) #2
store i64 %20, ptr @_funcptr_glBlendFunci, align 8, !tbaa !5
%21 = icmp eq i64 %20, 0
%22 = zext i1 %21 to i32
%23 = add nuw nsw i32 %19, %22
%24 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.6) #2
store i64 %24, ptr @_funcptr_glDeleteTransformFeedbacks, align 8, !tbaa !5
%25 = icmp eq i64 %24, 0
%26 = zext i1 %25 to i32
%27 = add nuw nsw i32 %23, %26
%28 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.7) #2
store i64 %28, ptr @_funcptr_glDrawArraysIndirect, align 8, !tbaa !5
%29 = icmp eq i64 %28, 0
%30 = zext i1 %29 to i32
%31 = add nuw nsw i32 %27, %30
%32 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.8) #2
store i64 %32, ptr @_funcptr_glDrawElementsIndirect, align 8, !tbaa !5
%33 = icmp eq i64 %32, 0
%34 = zext i1 %33 to i32
%35 = add nuw nsw i32 %31, %34
%36 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.9) #2
store i64 %36, ptr @_funcptr_glDrawTransformFeedback, align 8, !tbaa !5
%37 = icmp eq i64 %36, 0
%38 = zext i1 %37 to i32
%39 = add nuw nsw i32 %35, %38
%40 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.10) #2
store i64 %40, ptr @_funcptr_glDrawTransformFeedbackStream, align 8, !tbaa !5
%41 = icmp eq i64 %40, 0
%42 = zext i1 %41 to i32
%43 = add nuw nsw i32 %39, %42
%44 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.11) #2
store i64 %44, ptr @_funcptr_glEndQueryIndexed, align 8, !tbaa !5
%45 = icmp eq i64 %44, 0
%46 = zext i1 %45 to i32
%47 = add nuw nsw i32 %43, %46
%48 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.12) #2
store i64 %48, ptr @_funcptr_glGenTransformFeedbacks, align 8, !tbaa !5
%49 = icmp eq i64 %48, 0
%50 = zext i1 %49 to i32
%51 = add nuw nsw i32 %47, %50
%52 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.13) #2
store i64 %52, ptr @_funcptr_glGetActiveSubroutineName, align 8, !tbaa !5
%53 = icmp eq i64 %52, 0
%54 = zext i1 %53 to i32
%55 = add nuw nsw i32 %51, %54
%56 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.14) #2
store i64 %56, ptr @_funcptr_glGetActiveSubroutineUniformName, align 8, !tbaa !5
%57 = icmp eq i64 %56, 0
%58 = zext i1 %57 to i32
%59 = add nuw nsw i32 %55, %58
%60 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.15) #2
store i64 %60, ptr @_funcptr_glGetActiveSubroutineUniformiv, align 8, !tbaa !5
%61 = icmp eq i64 %60, 0
%62 = zext i1 %61 to i32
%63 = add nuw nsw i32 %59, %62
%64 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.16) #2
store i64 %64, ptr @_funcptr_glGetProgramStageiv, align 8, !tbaa !5
%65 = icmp eq i64 %64, 0
%66 = zext i1 %65 to i32
%67 = add nuw nsw i32 %63, %66
%68 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.17) #2
store i64 %68, ptr @_funcptr_glGetQueryIndexediv, align 8, !tbaa !5
%69 = icmp eq i64 %68, 0
%70 = zext i1 %69 to i32
%71 = add nuw nsw i32 %67, %70
%72 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.18) #2
store i64 %72, ptr @_funcptr_glGetSubroutineIndex, align 8, !tbaa !5
%73 = icmp eq i64 %72, 0
%74 = zext i1 %73 to i32
%75 = add nuw nsw i32 %71, %74
%76 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.19) #2
store i64 %76, ptr @_funcptr_glGetSubroutineUniformLocation, align 8, !tbaa !5
%77 = icmp eq i64 %76, 0
%78 = zext i1 %77 to i32
%79 = add nuw nsw i32 %75, %78
%80 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.20) #2
store i64 %80, ptr @_funcptr_glGetUniformSubroutineuiv, align 8, !tbaa !5
%81 = icmp eq i64 %80, 0
%82 = zext i1 %81 to i32
%83 = add nuw nsw i32 %79, %82
%84 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.21) #2
store i64 %84, ptr @_funcptr_glGetUniformdv, align 8, !tbaa !5
%85 = icmp eq i64 %84, 0
%86 = zext i1 %85 to i32
%87 = add nuw nsw i32 %83, %86
%88 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.22) #2
store i64 %88, ptr @_funcptr_glIsTransformFeedback, align 8, !tbaa !5
%89 = icmp eq i64 %88, 0
%90 = zext i1 %89 to i32
%91 = add nuw nsw i32 %87, %90
%92 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.23) #2
store i64 %92, ptr @_funcptr_glMinSampleShading, align 8, !tbaa !5
%93 = icmp eq i64 %92, 0
%94 = zext i1 %93 to i32
%95 = add nuw nsw i32 %91, %94
%96 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.24) #2
store i64 %96, ptr @_funcptr_glPatchParameterfv, align 8, !tbaa !5
%97 = icmp eq i64 %96, 0
%98 = zext i1 %97 to i32
%99 = add nuw nsw i32 %95, %98
%100 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.25) #2
store i64 %100, ptr @_funcptr_glPatchParameteri, align 8, !tbaa !5
%101 = icmp eq i64 %100, 0
%102 = zext i1 %101 to i32
%103 = add nuw nsw i32 %99, %102
%104 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.26) #2
store i64 %104, ptr @_funcptr_glPauseTransformFeedback, align 8, !tbaa !5
%105 = icmp eq i64 %104, 0
%106 = zext i1 %105 to i32
%107 = add nuw nsw i32 %103, %106
%108 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.27) #2
store i64 %108, ptr @_funcptr_glResumeTransformFeedback, align 8, !tbaa !5
%109 = icmp eq i64 %108, 0
%110 = zext i1 %109 to i32
%111 = add nuw nsw i32 %107, %110
%112 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.28) #2
store i64 %112, ptr @_funcptr_glUniform1d, align 8, !tbaa !5
%113 = icmp eq i64 %112, 0
%114 = zext i1 %113 to i32
%115 = add nuw nsw i32 %111, %114
%116 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.29) #2
store i64 %116, ptr @_funcptr_glUniform1dv, align 8, !tbaa !5
%117 = icmp eq i64 %116, 0
%118 = zext i1 %117 to i32
%119 = add nuw nsw i32 %115, %118
%120 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.30) #2
store i64 %120, ptr @_funcptr_glUniform2d, align 8, !tbaa !5
%121 = icmp eq i64 %120, 0
%122 = zext i1 %121 to i32
%123 = add nuw nsw i32 %119, %122
%124 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.31) #2
store i64 %124, ptr @_funcptr_glUniform2dv, align 8, !tbaa !5
%125 = icmp eq i64 %124, 0
%126 = zext i1 %125 to i32
%127 = add nuw nsw i32 %123, %126
%128 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.32) #2
store i64 %128, ptr @_funcptr_glUniform3d, align 8, !tbaa !5
%129 = icmp eq i64 %128, 0
%130 = zext i1 %129 to i32
%131 = add nuw nsw i32 %127, %130
%132 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.33) #2
store i64 %132, ptr @_funcptr_glUniform3dv, align 8, !tbaa !5
%133 = icmp eq i64 %132, 0
%134 = zext i1 %133 to i32
%135 = add nuw nsw i32 %131, %134
%136 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.34) #2
store i64 %136, ptr @_funcptr_glUniform4d, align 8, !tbaa !5
%137 = icmp eq i64 %136, 0
%138 = zext i1 %137 to i32
%139 = add nuw nsw i32 %135, %138
%140 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.35) #2
store i64 %140, ptr @_funcptr_glUniform4dv, align 8, !tbaa !5
%141 = icmp eq i64 %140, 0
%142 = zext i1 %141 to i32
%143 = add nuw nsw i32 %139, %142
%144 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.36) #2
store i64 %144, ptr @_funcptr_glUniformMatrix2dv, align 8, !tbaa !5
%145 = icmp eq i64 %144, 0
%146 = zext i1 %145 to i32
%147 = add nuw nsw i32 %143, %146
%148 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.37) #2
store i64 %148, ptr @_funcptr_glUniformMatrix2x3dv, align 8, !tbaa !5
%149 = icmp eq i64 %148, 0
%150 = zext i1 %149 to i32
%151 = add nuw nsw i32 %147, %150
%152 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.38) #2
store i64 %152, ptr @_funcptr_glUniformMatrix2x4dv, align 8, !tbaa !5
%153 = icmp eq i64 %152, 0
%154 = zext i1 %153 to i32
%155 = add nuw nsw i32 %151, %154
%156 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.39) #2
store i64 %156, ptr @_funcptr_glUniformMatrix3dv, align 8, !tbaa !5
%157 = icmp eq i64 %156, 0
%158 = zext i1 %157 to i32
%159 = add nuw nsw i32 %155, %158
%160 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.40) #2
store i64 %160, ptr @_funcptr_glUniformMatrix3x2dv, align 8, !tbaa !5
%161 = icmp eq i64 %160, 0
%162 = zext i1 %161 to i32
%163 = add nuw nsw i32 %159, %162
%164 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.41) #2
store i64 %164, ptr @_funcptr_glUniformMatrix3x4dv, align 8, !tbaa !5
%165 = icmp eq i64 %164, 0
%166 = zext i1 %165 to i32
%167 = add nuw nsw i32 %163, %166
%168 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.42) #2
store i64 %168, ptr @_funcptr_glUniformMatrix4dv, align 8, !tbaa !5
%169 = icmp eq i64 %168, 0
%170 = zext i1 %169 to i32
%171 = add nuw nsw i32 %167, %170
%172 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.43) #2
store i64 %172, ptr @_funcptr_glUniformMatrix4x2dv, align 8, !tbaa !5
%173 = icmp eq i64 %172, 0
%174 = zext i1 %173 to i32
%175 = add nuw nsw i32 %171, %174
%176 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.44) #2
store i64 %176, ptr @_funcptr_glUniformMatrix4x3dv, align 8, !tbaa !5
%177 = icmp eq i64 %176, 0
%178 = zext i1 %177 to i32
%179 = add nuw nsw i32 %175, %178
%180 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.45) #2
store i64 %180, ptr @_funcptr_glUniformSubroutinesuiv, align 8, !tbaa !5
%181 = icmp eq i64 %180, 0
%182 = zext i1 %181 to i32
%183 = add nuw nsw i32 %179, %182
ret i32 %183
}
declare i64 @IntGetProcAddress(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"}
| ; ModuleID = 'AnghaBench/Cinder/src/glload/extr_gl_load.c_LoadCore_Version_4_0.c'
source_filename = "AnghaBench/Cinder/src/glload/extr_gl_load.c_LoadCore_Version_4_0.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 [20 x i8] c"glBeginQueryIndexed\00", align 1
@_funcptr_glBeginQueryIndexed = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [24 x i8] c"glBindTransformFeedback\00", align 1
@_funcptr_glBindTransformFeedback = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [25 x i8] c"glBlendEquationSeparatei\00", align 1
@_funcptr_glBlendEquationSeparatei = common local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [17 x i8] c"glBlendEquationi\00", align 1
@_funcptr_glBlendEquationi = common local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [21 x i8] c"glBlendFuncSeparatei\00", align 1
@_funcptr_glBlendFuncSeparatei = common local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [13 x i8] c"glBlendFunci\00", align 1
@_funcptr_glBlendFunci = common local_unnamed_addr global i64 0, align 8
@.str.6 = private unnamed_addr constant [27 x i8] c"glDeleteTransformFeedbacks\00", align 1
@_funcptr_glDeleteTransformFeedbacks = common local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [21 x i8] c"glDrawArraysIndirect\00", align 1
@_funcptr_glDrawArraysIndirect = common local_unnamed_addr global i64 0, align 8
@.str.8 = private unnamed_addr constant [23 x i8] c"glDrawElementsIndirect\00", align 1
@_funcptr_glDrawElementsIndirect = common local_unnamed_addr global i64 0, align 8
@.str.9 = private unnamed_addr constant [24 x i8] c"glDrawTransformFeedback\00", align 1
@_funcptr_glDrawTransformFeedback = common local_unnamed_addr global i64 0, align 8
@.str.10 = private unnamed_addr constant [30 x i8] c"glDrawTransformFeedbackStream\00", align 1
@_funcptr_glDrawTransformFeedbackStream = common local_unnamed_addr global i64 0, align 8
@.str.11 = private unnamed_addr constant [18 x i8] c"glEndQueryIndexed\00", align 1
@_funcptr_glEndQueryIndexed = common local_unnamed_addr global i64 0, align 8
@.str.12 = private unnamed_addr constant [24 x i8] c"glGenTransformFeedbacks\00", align 1
@_funcptr_glGenTransformFeedbacks = common local_unnamed_addr global i64 0, align 8
@.str.13 = private unnamed_addr constant [26 x i8] c"glGetActiveSubroutineName\00", align 1
@_funcptr_glGetActiveSubroutineName = common local_unnamed_addr global i64 0, align 8
@.str.14 = private unnamed_addr constant [33 x i8] c"glGetActiveSubroutineUniformName\00", align 1
@_funcptr_glGetActiveSubroutineUniformName = common local_unnamed_addr global i64 0, align 8
@.str.15 = private unnamed_addr constant [31 x i8] c"glGetActiveSubroutineUniformiv\00", align 1
@_funcptr_glGetActiveSubroutineUniformiv = common local_unnamed_addr global i64 0, align 8
@.str.16 = private unnamed_addr constant [20 x i8] c"glGetProgramStageiv\00", align 1
@_funcptr_glGetProgramStageiv = common local_unnamed_addr global i64 0, align 8
@.str.17 = private unnamed_addr constant [20 x i8] c"glGetQueryIndexediv\00", align 1
@_funcptr_glGetQueryIndexediv = common local_unnamed_addr global i64 0, align 8
@.str.18 = private unnamed_addr constant [21 x i8] c"glGetSubroutineIndex\00", align 1
@_funcptr_glGetSubroutineIndex = common local_unnamed_addr global i64 0, align 8
@.str.19 = private unnamed_addr constant [31 x i8] c"glGetSubroutineUniformLocation\00", align 1
@_funcptr_glGetSubroutineUniformLocation = common local_unnamed_addr global i64 0, align 8
@.str.20 = private unnamed_addr constant [26 x i8] c"glGetUniformSubroutineuiv\00", align 1
@_funcptr_glGetUniformSubroutineuiv = common local_unnamed_addr global i64 0, align 8
@.str.21 = private unnamed_addr constant [15 x i8] c"glGetUniformdv\00", align 1
@_funcptr_glGetUniformdv = common local_unnamed_addr global i64 0, align 8
@.str.22 = private unnamed_addr constant [22 x i8] c"glIsTransformFeedback\00", align 1
@_funcptr_glIsTransformFeedback = common local_unnamed_addr global i64 0, align 8
@.str.23 = private unnamed_addr constant [19 x i8] c"glMinSampleShading\00", align 1
@_funcptr_glMinSampleShading = common local_unnamed_addr global i64 0, align 8
@.str.24 = private unnamed_addr constant [19 x i8] c"glPatchParameterfv\00", align 1
@_funcptr_glPatchParameterfv = common local_unnamed_addr global i64 0, align 8
@.str.25 = private unnamed_addr constant [18 x i8] c"glPatchParameteri\00", align 1
@_funcptr_glPatchParameteri = common local_unnamed_addr global i64 0, align 8
@.str.26 = private unnamed_addr constant [25 x i8] c"glPauseTransformFeedback\00", align 1
@_funcptr_glPauseTransformFeedback = common local_unnamed_addr global i64 0, align 8
@.str.27 = private unnamed_addr constant [26 x i8] c"glResumeTransformFeedback\00", align 1
@_funcptr_glResumeTransformFeedback = common local_unnamed_addr global i64 0, align 8
@.str.28 = private unnamed_addr constant [12 x i8] c"glUniform1d\00", align 1
@_funcptr_glUniform1d = common local_unnamed_addr global i64 0, align 8
@.str.29 = private unnamed_addr constant [13 x i8] c"glUniform1dv\00", align 1
@_funcptr_glUniform1dv = common local_unnamed_addr global i64 0, align 8
@.str.30 = private unnamed_addr constant [12 x i8] c"glUniform2d\00", align 1
@_funcptr_glUniform2d = common local_unnamed_addr global i64 0, align 8
@.str.31 = private unnamed_addr constant [13 x i8] c"glUniform2dv\00", align 1
@_funcptr_glUniform2dv = common local_unnamed_addr global i64 0, align 8
@.str.32 = private unnamed_addr constant [12 x i8] c"glUniform3d\00", align 1
@_funcptr_glUniform3d = common local_unnamed_addr global i64 0, align 8
@.str.33 = private unnamed_addr constant [13 x i8] c"glUniform3dv\00", align 1
@_funcptr_glUniform3dv = common local_unnamed_addr global i64 0, align 8
@.str.34 = private unnamed_addr constant [12 x i8] c"glUniform4d\00", align 1
@_funcptr_glUniform4d = common local_unnamed_addr global i64 0, align 8
@.str.35 = private unnamed_addr constant [13 x i8] c"glUniform4dv\00", align 1
@_funcptr_glUniform4dv = common local_unnamed_addr global i64 0, align 8
@.str.36 = private unnamed_addr constant [19 x i8] c"glUniformMatrix2dv\00", align 1
@_funcptr_glUniformMatrix2dv = common local_unnamed_addr global i64 0, align 8
@.str.37 = private unnamed_addr constant [21 x i8] c"glUniformMatrix2x3dv\00", align 1
@_funcptr_glUniformMatrix2x3dv = common local_unnamed_addr global i64 0, align 8
@.str.38 = private unnamed_addr constant [21 x i8] c"glUniformMatrix2x4dv\00", align 1
@_funcptr_glUniformMatrix2x4dv = common local_unnamed_addr global i64 0, align 8
@.str.39 = private unnamed_addr constant [19 x i8] c"glUniformMatrix3dv\00", align 1
@_funcptr_glUniformMatrix3dv = common local_unnamed_addr global i64 0, align 8
@.str.40 = private unnamed_addr constant [21 x i8] c"glUniformMatrix3x2dv\00", align 1
@_funcptr_glUniformMatrix3x2dv = common local_unnamed_addr global i64 0, align 8
@.str.41 = private unnamed_addr constant [21 x i8] c"glUniformMatrix3x4dv\00", align 1
@_funcptr_glUniformMatrix3x4dv = common local_unnamed_addr global i64 0, align 8
@.str.42 = private unnamed_addr constant [19 x i8] c"glUniformMatrix4dv\00", align 1
@_funcptr_glUniformMatrix4dv = common local_unnamed_addr global i64 0, align 8
@.str.43 = private unnamed_addr constant [21 x i8] c"glUniformMatrix4x2dv\00", align 1
@_funcptr_glUniformMatrix4x2dv = common local_unnamed_addr global i64 0, align 8
@.str.44 = private unnamed_addr constant [21 x i8] c"glUniformMatrix4x3dv\00", align 1
@_funcptr_glUniformMatrix4x3dv = common local_unnamed_addr global i64 0, align 8
@.str.45 = private unnamed_addr constant [24 x i8] c"glUniformSubroutinesuiv\00", align 1
@_funcptr_glUniformSubroutinesuiv = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @LoadCore_Version_4_0], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 47) i32 @LoadCore_Version_4_0() #0 {
%1 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str) #2
store i64 %1, ptr @_funcptr_glBeginQueryIndexed, align 8, !tbaa !6
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.1) #2
store i64 %4, ptr @_funcptr_glBindTransformFeedback, align 8, !tbaa !6
%5 = icmp eq i64 %4, 0
%6 = select i1 %2, i32 2, i32 1
%7 = select i1 %5, i32 %6, i32 %3
%8 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.2) #2
store i64 %8, ptr @_funcptr_glBlendEquationSeparatei, align 8, !tbaa !6
%9 = icmp eq i64 %8, 0
%10 = zext i1 %9 to i32
%11 = add nuw nsw i32 %7, %10
%12 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.3) #2
store i64 %12, ptr @_funcptr_glBlendEquationi, align 8, !tbaa !6
%13 = icmp eq i64 %12, 0
%14 = zext i1 %13 to i32
%15 = add nuw nsw i32 %11, %14
%16 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.4) #2
store i64 %16, ptr @_funcptr_glBlendFuncSeparatei, align 8, !tbaa !6
%17 = icmp eq i64 %16, 0
%18 = zext i1 %17 to i32
%19 = add nuw nsw i32 %15, %18
%20 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.5) #2
store i64 %20, ptr @_funcptr_glBlendFunci, align 8, !tbaa !6
%21 = icmp eq i64 %20, 0
%22 = zext i1 %21 to i32
%23 = add nuw nsw i32 %19, %22
%24 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.6) #2
store i64 %24, ptr @_funcptr_glDeleteTransformFeedbacks, align 8, !tbaa !6
%25 = icmp eq i64 %24, 0
%26 = zext i1 %25 to i32
%27 = add nuw nsw i32 %23, %26
%28 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.7) #2
store i64 %28, ptr @_funcptr_glDrawArraysIndirect, align 8, !tbaa !6
%29 = icmp eq i64 %28, 0
%30 = zext i1 %29 to i32
%31 = add nuw nsw i32 %27, %30
%32 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.8) #2
store i64 %32, ptr @_funcptr_glDrawElementsIndirect, align 8, !tbaa !6
%33 = icmp eq i64 %32, 0
%34 = zext i1 %33 to i32
%35 = add nuw nsw i32 %31, %34
%36 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.9) #2
store i64 %36, ptr @_funcptr_glDrawTransformFeedback, align 8, !tbaa !6
%37 = icmp eq i64 %36, 0
%38 = zext i1 %37 to i32
%39 = add nuw nsw i32 %35, %38
%40 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.10) #2
store i64 %40, ptr @_funcptr_glDrawTransformFeedbackStream, align 8, !tbaa !6
%41 = icmp eq i64 %40, 0
%42 = zext i1 %41 to i32
%43 = add nuw nsw i32 %39, %42
%44 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.11) #2
store i64 %44, ptr @_funcptr_glEndQueryIndexed, align 8, !tbaa !6
%45 = icmp eq i64 %44, 0
%46 = zext i1 %45 to i32
%47 = add nuw nsw i32 %43, %46
%48 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.12) #2
store i64 %48, ptr @_funcptr_glGenTransformFeedbacks, align 8, !tbaa !6
%49 = icmp eq i64 %48, 0
%50 = zext i1 %49 to i32
%51 = add nuw nsw i32 %47, %50
%52 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.13) #2
store i64 %52, ptr @_funcptr_glGetActiveSubroutineName, align 8, !tbaa !6
%53 = icmp eq i64 %52, 0
%54 = zext i1 %53 to i32
%55 = add nuw nsw i32 %51, %54
%56 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.14) #2
store i64 %56, ptr @_funcptr_glGetActiveSubroutineUniformName, align 8, !tbaa !6
%57 = icmp eq i64 %56, 0
%58 = zext i1 %57 to i32
%59 = add nuw nsw i32 %55, %58
%60 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.15) #2
store i64 %60, ptr @_funcptr_glGetActiveSubroutineUniformiv, align 8, !tbaa !6
%61 = icmp eq i64 %60, 0
%62 = zext i1 %61 to i32
%63 = add nuw nsw i32 %59, %62
%64 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.16) #2
store i64 %64, ptr @_funcptr_glGetProgramStageiv, align 8, !tbaa !6
%65 = icmp eq i64 %64, 0
%66 = zext i1 %65 to i32
%67 = add nuw nsw i32 %63, %66
%68 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.17) #2
store i64 %68, ptr @_funcptr_glGetQueryIndexediv, align 8, !tbaa !6
%69 = icmp eq i64 %68, 0
%70 = zext i1 %69 to i32
%71 = add nuw nsw i32 %67, %70
%72 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.18) #2
store i64 %72, ptr @_funcptr_glGetSubroutineIndex, align 8, !tbaa !6
%73 = icmp eq i64 %72, 0
%74 = zext i1 %73 to i32
%75 = add nuw nsw i32 %71, %74
%76 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.19) #2
store i64 %76, ptr @_funcptr_glGetSubroutineUniformLocation, align 8, !tbaa !6
%77 = icmp eq i64 %76, 0
%78 = zext i1 %77 to i32
%79 = add nuw nsw i32 %75, %78
%80 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.20) #2
store i64 %80, ptr @_funcptr_glGetUniformSubroutineuiv, align 8, !tbaa !6
%81 = icmp eq i64 %80, 0
%82 = zext i1 %81 to i32
%83 = add nuw nsw i32 %79, %82
%84 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.21) #2
store i64 %84, ptr @_funcptr_glGetUniformdv, align 8, !tbaa !6
%85 = icmp eq i64 %84, 0
%86 = zext i1 %85 to i32
%87 = add nuw nsw i32 %83, %86
%88 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.22) #2
store i64 %88, ptr @_funcptr_glIsTransformFeedback, align 8, !tbaa !6
%89 = icmp eq i64 %88, 0
%90 = zext i1 %89 to i32
%91 = add nuw nsw i32 %87, %90
%92 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.23) #2
store i64 %92, ptr @_funcptr_glMinSampleShading, align 8, !tbaa !6
%93 = icmp eq i64 %92, 0
%94 = zext i1 %93 to i32
%95 = add nuw nsw i32 %91, %94
%96 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.24) #2
store i64 %96, ptr @_funcptr_glPatchParameterfv, align 8, !tbaa !6
%97 = icmp eq i64 %96, 0
%98 = zext i1 %97 to i32
%99 = add nuw nsw i32 %95, %98
%100 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.25) #2
store i64 %100, ptr @_funcptr_glPatchParameteri, align 8, !tbaa !6
%101 = icmp eq i64 %100, 0
%102 = zext i1 %101 to i32
%103 = add nuw nsw i32 %99, %102
%104 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.26) #2
store i64 %104, ptr @_funcptr_glPauseTransformFeedback, align 8, !tbaa !6
%105 = icmp eq i64 %104, 0
%106 = zext i1 %105 to i32
%107 = add nuw nsw i32 %103, %106
%108 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.27) #2
store i64 %108, ptr @_funcptr_glResumeTransformFeedback, align 8, !tbaa !6
%109 = icmp eq i64 %108, 0
%110 = zext i1 %109 to i32
%111 = add nuw nsw i32 %107, %110
%112 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.28) #2
store i64 %112, ptr @_funcptr_glUniform1d, align 8, !tbaa !6
%113 = icmp eq i64 %112, 0
%114 = zext i1 %113 to i32
%115 = add nuw nsw i32 %111, %114
%116 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.29) #2
store i64 %116, ptr @_funcptr_glUniform1dv, align 8, !tbaa !6
%117 = icmp eq i64 %116, 0
%118 = zext i1 %117 to i32
%119 = add nuw nsw i32 %115, %118
%120 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.30) #2
store i64 %120, ptr @_funcptr_glUniform2d, align 8, !tbaa !6
%121 = icmp eq i64 %120, 0
%122 = zext i1 %121 to i32
%123 = add nuw nsw i32 %119, %122
%124 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.31) #2
store i64 %124, ptr @_funcptr_glUniform2dv, align 8, !tbaa !6
%125 = icmp eq i64 %124, 0
%126 = zext i1 %125 to i32
%127 = add nuw nsw i32 %123, %126
%128 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.32) #2
store i64 %128, ptr @_funcptr_glUniform3d, align 8, !tbaa !6
%129 = icmp eq i64 %128, 0
%130 = zext i1 %129 to i32
%131 = add nuw nsw i32 %127, %130
%132 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.33) #2
store i64 %132, ptr @_funcptr_glUniform3dv, align 8, !tbaa !6
%133 = icmp eq i64 %132, 0
%134 = zext i1 %133 to i32
%135 = add nuw nsw i32 %131, %134
%136 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.34) #2
store i64 %136, ptr @_funcptr_glUniform4d, align 8, !tbaa !6
%137 = icmp eq i64 %136, 0
%138 = zext i1 %137 to i32
%139 = add nuw nsw i32 %135, %138
%140 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.35) #2
store i64 %140, ptr @_funcptr_glUniform4dv, align 8, !tbaa !6
%141 = icmp eq i64 %140, 0
%142 = zext i1 %141 to i32
%143 = add nuw nsw i32 %139, %142
%144 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.36) #2
store i64 %144, ptr @_funcptr_glUniformMatrix2dv, align 8, !tbaa !6
%145 = icmp eq i64 %144, 0
%146 = zext i1 %145 to i32
%147 = add nuw nsw i32 %143, %146
%148 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.37) #2
store i64 %148, ptr @_funcptr_glUniformMatrix2x3dv, align 8, !tbaa !6
%149 = icmp eq i64 %148, 0
%150 = zext i1 %149 to i32
%151 = add nuw nsw i32 %147, %150
%152 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.38) #2
store i64 %152, ptr @_funcptr_glUniformMatrix2x4dv, align 8, !tbaa !6
%153 = icmp eq i64 %152, 0
%154 = zext i1 %153 to i32
%155 = add nuw nsw i32 %151, %154
%156 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.39) #2
store i64 %156, ptr @_funcptr_glUniformMatrix3dv, align 8, !tbaa !6
%157 = icmp eq i64 %156, 0
%158 = zext i1 %157 to i32
%159 = add nuw nsw i32 %155, %158
%160 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.40) #2
store i64 %160, ptr @_funcptr_glUniformMatrix3x2dv, align 8, !tbaa !6
%161 = icmp eq i64 %160, 0
%162 = zext i1 %161 to i32
%163 = add nuw nsw i32 %159, %162
%164 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.41) #2
store i64 %164, ptr @_funcptr_glUniformMatrix3x4dv, align 8, !tbaa !6
%165 = icmp eq i64 %164, 0
%166 = zext i1 %165 to i32
%167 = add nuw nsw i32 %163, %166
%168 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.42) #2
store i64 %168, ptr @_funcptr_glUniformMatrix4dv, align 8, !tbaa !6
%169 = icmp eq i64 %168, 0
%170 = zext i1 %169 to i32
%171 = add nuw nsw i32 %167, %170
%172 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.43) #2
store i64 %172, ptr @_funcptr_glUniformMatrix4x2dv, align 8, !tbaa !6
%173 = icmp eq i64 %172, 0
%174 = zext i1 %173 to i32
%175 = add nuw nsw i32 %171, %174
%176 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.44) #2
store i64 %176, ptr @_funcptr_glUniformMatrix4x3dv, align 8, !tbaa !6
%177 = icmp eq i64 %176, 0
%178 = zext i1 %177 to i32
%179 = add nuw nsw i32 %175, %178
%180 = tail call i64 @IntGetProcAddress(ptr noundef nonnull @.str.45) #2
store i64 %180, ptr @_funcptr_glUniformSubroutinesuiv, align 8, !tbaa !6
%181 = icmp eq i64 %180, 0
%182 = zext i1 %181 to i32
%183 = add nuw nsw i32 %179, %182
ret i32 %183
}
declare i64 @IntGetProcAddress(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"}
| Cinder_src_glload_extr_gl_load.c_LoadCore_Version_4_0 |
; ModuleID = 'AnghaBench/linux/drivers/misc/extr_tifm_core.c_tifm_free_adapter.c'
source_filename = "AnghaBench/linux/drivers/misc/extr_tifm_core.c_tifm_free_adapter.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 @tifm_free_adapter(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @put_device(ptr noundef %0) #2
ret void
}
declare i32 @put_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)"}
| ; ModuleID = 'AnghaBench/linux/drivers/misc/extr_tifm_core.c_tifm_free_adapter.c'
source_filename = "AnghaBench/linux/drivers/misc/extr_tifm_core.c_tifm_free_adapter.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 @tifm_free_adapter(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @put_device(ptr noundef %0) #2
ret void
}
declare i32 @put_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)"}
| linux_drivers_misc_extr_tifm_core.c_tifm_free_adapter |
; ModuleID = 'AnghaBench/obs-studio/libobs/audio-monitoring/win32/extr_....obs-internal.h_obs_source_dosignal.c'
source_filename = "AnghaBench/obs-studio/libobs/audio-monitoring/win32/extr_....obs-internal.h_obs_source_dosignal.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.calldata = type { i32 }
%struct.TYPE_3__ = type { i32, i32 }
@.str = private unnamed_addr constant [7 x i8] c"source\00", align 1
@obs = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @obs_source_dosignal], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @obs_source_dosignal(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca %struct.calldata, align 4
%5 = alloca [128 x i32], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #3
%6 = call i32 @calldata_init_fixed(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 512) #3
%7 = call i32 @calldata_set_ptr(ptr noundef nonnull %4, ptr noundef nonnull @.str, ptr noundef %0) #3
%8 = icmp eq ptr %1, null
br i1 %8, label %17, label %9
9: ; preds = %3
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%11 = load i32, ptr %10, align 4, !tbaa !5
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load ptr, ptr @obs, align 8, !tbaa !11
%15 = load i32, ptr %14, align 4, !tbaa !13
%16 = call i32 @signal_handler_signal(i32 noundef %15, ptr noundef nonnull %1, ptr noundef nonnull %4) #3
br label %17
17: ; preds = %13, %9, %3
%18 = icmp eq ptr %2, null
br i1 %18, label %22, label %19
19: ; preds = %17
%20 = load i32, ptr %0, align 4, !tbaa !15
%21 = call i32 @signal_handler_signal(i32 noundef %20, ptr noundef nonnull %2, ptr noundef nonnull %4) #3
br label %22
22: ; preds = %19, %17
call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, 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 @calldata_init_fixed(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @calldata_set_ptr(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @signal_handler_signal(i32 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 = { 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, !8, i64 4}
!6 = !{!"obs_source", !7, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_4__", !8, i64 0}
!15 = !{!6, !8, i64 0}
| ; ModuleID = 'AnghaBench/obs-studio/libobs/audio-monitoring/win32/extr_....obs-internal.h_obs_source_dosignal.c'
source_filename = "AnghaBench/obs-studio/libobs/audio-monitoring/win32/extr_....obs-internal.h_obs_source_dosignal.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.calldata = type { i32 }
@.str = private unnamed_addr constant [7 x i8] c"source\00", align 1
@obs = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @obs_source_dosignal], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @obs_source_dosignal(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca %struct.calldata, align 4
%5 = alloca [128 x i32], align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #3
%6 = call i32 @calldata_init_fixed(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 512) #3
%7 = call i32 @calldata_set_ptr(ptr noundef nonnull %4, ptr noundef nonnull @.str, ptr noundef %0) #3
%8 = icmp eq ptr %1, null
br i1 %8, label %17, label %9
9: ; preds = %3
%10 = getelementptr inbounds i8, ptr %0, i64 4
%11 = load i32, ptr %10, align 4, !tbaa !6
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load ptr, ptr @obs, align 8, !tbaa !12
%15 = load i32, ptr %14, align 4, !tbaa !14
%16 = call i32 @signal_handler_signal(i32 noundef %15, ptr noundef nonnull %1, ptr noundef nonnull %4) #3
br label %17
17: ; preds = %13, %9, %3
%18 = icmp eq ptr %2, null
br i1 %18, label %22, label %19
19: ; preds = %17
%20 = load i32, ptr %0, align 4, !tbaa !16
%21 = call i32 @signal_handler_signal(i32 noundef %20, ptr noundef nonnull %2, ptr noundef nonnull %4) #3
br label %22
22: ; preds = %19, %17
call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, 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 @calldata_init_fixed(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @calldata_set_ptr(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @signal_handler_signal(i32 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 = { 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, !9, i64 4}
!7 = !{!"obs_source", !8, i64 0}
!8 = !{!"TYPE_3__", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!15, !9, i64 0}
!15 = !{!"TYPE_4__", !9, i64 0}
!16 = !{!7, !9, i64 0}
| obs-studio_libobs_audio-monitoring_win32_extr_....obs-internal.h_obs_source_dosignal |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/watchdog/extr_wdt_pci.c_wdtpci_notify_sys.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/watchdog/extr_wdt_pci.c_wdtpci_notify_sys.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"
@SYS_DOWN = dso_local local_unnamed_addr global i64 0, align 8
@SYS_HALT = dso_local local_unnamed_addr global i64 0, align 8
@NOTIFY_DONE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @wdtpci_notify_sys], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @wdtpci_notify_sys(ptr nocapture readnone %0, i64 noundef %1, ptr nocapture readnone %2) #0 {
%4 = load i64, ptr @SYS_DOWN, align 8, !tbaa !5
%5 = icmp eq i64 %4, %1
%6 = load i64, ptr @SYS_HALT, align 8
%7 = icmp eq i64 %6, %1
%8 = select i1 %5, i1 true, i1 %7
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = tail call i32 (...) @wdtpci_stop() #2
br label %11
11: ; preds = %3, %9
%12 = load i32, ptr @NOTIFY_DONE, align 4, !tbaa !9
ret i32 %12
}
declare i32 @wdtpci_stop(...) 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/watchdog/extr_wdt_pci.c_wdtpci_notify_sys.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/watchdog/extr_wdt_pci.c_wdtpci_notify_sys.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SYS_DOWN = common local_unnamed_addr global i64 0, align 8
@SYS_HALT = common local_unnamed_addr global i64 0, align 8
@NOTIFY_DONE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @wdtpci_notify_sys], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @wdtpci_notify_sys(ptr nocapture readnone %0, i64 noundef %1, ptr nocapture readnone %2) #0 {
%4 = load i64, ptr @SYS_DOWN, align 8, !tbaa !6
%5 = icmp eq i64 %4, %1
%6 = load i64, ptr @SYS_HALT, align 8
%7 = icmp eq i64 %6, %1
%8 = select i1 %5, i1 true, i1 %7
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = tail call i32 @wdtpci_stop() #2
br label %11
11: ; preds = %3, %9
%12 = load i32, ptr @NOTIFY_DONE, align 4, !tbaa !10
ret i32 %12
}
declare i32 @wdtpci_stop(...) 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, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| fastsocket_kernel_drivers_watchdog_extr_wdt_pci.c_wdtpci_notify_sys |
; ModuleID = 'AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/unistd/extr_gethostname.c_gethostname.c'
source_filename = "AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/unistd/extr_gethostname.c_gethostname.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"localhost\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @gethostname(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @snprintf(ptr noundef %0, i64 noundef %1, ptr noundef nonnull @.str) #2
ret i32 0
}
declare i32 @snprintf(ptr 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)"}
| ; ModuleID = 'AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/unistd/extr_gethostname.c_gethostname.c'
source_filename = "AnghaBench/How-to-Make-a-Computer-Operating-System/src/sdk/src/libc/src/unistd/extr_gethostname.c_gethostname.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"localhost\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @gethostname(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @snprintf(ptr noundef %0, i64 noundef %1, ptr noundef nonnull @.str) #2
ret i32 0
}
declare i32 @snprintf(ptr 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)"}
| How-to-Make-a-Computer-Operating-System_src_sdk_src_libc_src_unistd_extr_gethostname.c_gethostname |
; ModuleID = 'AnghaBench/git/extr_sha1-file.c_assert_oid_type.c'
source_filename = "AnghaBench/git/extr_sha1-file.c_assert_oid_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"
@the_repository = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"%s is not a valid '%s' object\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @assert_oid_type(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @the_repository, align 4, !tbaa !5
%4 = tail call i32 @oid_object_info(i32 noundef %3, ptr noundef %0, ptr noundef null) #2
%5 = icmp eq i32 %4, %1
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = tail call i32 @_(ptr noundef nonnull @.str.1) #2
%8 = tail call i32 @oid_to_hex(ptr noundef %0) #2
%9 = tail call i32 @type_name(i32 noundef %1) #2
%10 = tail call i32 (i32, i32, ...) @die(i32 noundef %7, i32 noundef %8, i32 noundef %9) #2
br label %11
11: ; preds = %6, %2
ret void
}
declare i32 @oid_object_info(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @die(i32 noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @_(ptr noundef) local_unnamed_addr #1
declare i32 @oid_to_hex(ptr noundef) local_unnamed_addr #1
declare i32 @type_name(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/git/extr_sha1-file.c_assert_oid_type.c'
source_filename = "AnghaBench/git/extr_sha1-file.c_assert_oid_type.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@the_repository = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"%s is not a valid '%s' object\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @assert_oid_type(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @the_repository, align 4, !tbaa !6
%4 = tail call i32 @oid_object_info(i32 noundef %3, ptr noundef %0, ptr noundef null) #2
%5 = icmp eq i32 %4, %1
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = tail call i32 @_(ptr noundef nonnull @.str.1) #2
%8 = tail call i32 @oid_to_hex(ptr noundef %0) #2
%9 = tail call i32 @type_name(i32 noundef %1) #2
%10 = tail call i32 (i32, i32, ...) @die(i32 noundef %7, i32 noundef %8, i32 noundef %9) #2
br label %11
11: ; preds = %6, %2
ret void
}
declare i32 @oid_object_info(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @die(i32 noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @_(ptr noundef) local_unnamed_addr #1
declare i32 @oid_to_hex(ptr noundef) local_unnamed_addr #1
declare i32 @type_name(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"}
| git_extr_sha1-file.c_assert_oid_type |
; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/udc/extr_snps_udc_core.c_amd5536_udc_start.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/udc/extr_snps_udc_core.c_amd5536_udc_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.udc = type { ptr, ptr, ptr }
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32 }
@UDC_EP0IN_IX = dso_local local_unnamed_addr global i64 0, align 8
@UDC_EP0OUT_IX = dso_local local_unnamed_addr global i64 0, align 8
@UDC_DEVCTL_SD = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @amd5536_udc_start], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @amd5536_udc_start(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @to_amd5536_udc(ptr noundef %0) #2
store ptr null, ptr %1, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.udc, ptr %3, i64 0, i32 2
store ptr %1, ptr %4, align 8, !tbaa !11
%5 = getelementptr inbounds %struct.udc, ptr %3, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = load i64, ptr @UDC_EP0IN_IX, align 8, !tbaa !14
%8 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 %7
%9 = load i32, ptr %8, align 4, !tbaa !16
%10 = load i64, ptr @UDC_EP0OUT_IX, align 8, !tbaa !14
%11 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 %10
store i32 %9, ptr %11, align 4, !tbaa !16
%12 = tail call i32 @setup_ep0(ptr noundef %3) #2
%13 = load ptr, ptr %3, align 8, !tbaa !20
%14 = tail call i32 @readl(ptr noundef %13) #2
%15 = load i32, ptr @UDC_DEVCTL_SD, align 4, !tbaa !21
%16 = tail call i32 @AMD_CLEAR_BIT(i32 noundef %15) #2
%17 = and i32 %16, %14
%18 = load ptr, ptr %3, align 8, !tbaa !20
%19 = tail call i32 @writel(i32 noundef %17, ptr noundef %18) #2
%20 = tail call i32 @usb_connect(ptr noundef nonnull %3) #2
ret i32 0
}
declare ptr @to_amd5536_udc(ptr noundef) local_unnamed_addr #1
declare i32 @setup_ep0(ptr noundef) local_unnamed_addr #1
declare i32 @readl(ptr noundef) local_unnamed_addr #1
declare i32 @AMD_CLEAR_BIT(i32 noundef) local_unnamed_addr #1
declare i32 @writel(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_connect(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 0}
!6 = !{!"usb_gadget_driver", !7, 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, !8, i64 16}
!12 = !{!"udc", !8, i64 0, !8, i64 8, !8, i64 16}
!13 = !{!12, !8, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!17, !19, i64 0}
!17 = !{!"TYPE_6__", !18, i64 0}
!18 = !{!"TYPE_5__", !19, i64 0}
!19 = !{!"int", !9, i64 0}
!20 = !{!12, !8, i64 0}
!21 = !{!19, !19, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/udc/extr_snps_udc_core.c_amd5536_udc_start.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/udc/extr_snps_udc_core.c_amd5536_udc_start.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32 }
@UDC_EP0IN_IX = common local_unnamed_addr global i64 0, align 8
@UDC_EP0OUT_IX = common local_unnamed_addr global i64 0, align 8
@UDC_DEVCTL_SD = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @amd5536_udc_start], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @amd5536_udc_start(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @to_amd5536_udc(ptr noundef %0) #2
store ptr null, ptr %1, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 16
store ptr %1, ptr %4, align 8, !tbaa !12
%5 = getelementptr inbounds i8, ptr %3, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !14
%7 = load i64, ptr @UDC_EP0IN_IX, align 8, !tbaa !15
%8 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 %7
%9 = load i32, ptr %8, align 4, !tbaa !17
%10 = load i64, ptr @UDC_EP0OUT_IX, align 8, !tbaa !15
%11 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 %10
store i32 %9, ptr %11, align 4, !tbaa !17
%12 = tail call i32 @setup_ep0(ptr noundef %3) #2
%13 = load ptr, ptr %3, align 8, !tbaa !21
%14 = tail call i32 @readl(ptr noundef %13) #2
%15 = load i32, ptr @UDC_DEVCTL_SD, align 4, !tbaa !22
%16 = tail call i32 @AMD_CLEAR_BIT(i32 noundef %15) #2
%17 = and i32 %16, %14
%18 = load ptr, ptr %3, align 8, !tbaa !21
%19 = tail call i32 @writel(i32 noundef %17, ptr noundef %18) #2
%20 = tail call i32 @usb_connect(ptr noundef nonnull %3) #2
ret i32 0
}
declare ptr @to_amd5536_udc(ptr noundef) local_unnamed_addr #1
declare i32 @setup_ep0(ptr noundef) local_unnamed_addr #1
declare i32 @readl(ptr noundef) local_unnamed_addr #1
declare i32 @AMD_CLEAR_BIT(i32 noundef) local_unnamed_addr #1
declare i32 @writel(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_connect(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 0}
!7 = !{!"usb_gadget_driver", !8, i64 0}
!8 = !{!"TYPE_8__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !9, i64 16}
!13 = !{!"udc", !9, i64 0, !9, i64 8, !9, i64 16}
!14 = !{!13, !9, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !10, i64 0}
!17 = !{!18, !20, i64 0}
!18 = !{!"TYPE_6__", !19, i64 0}
!19 = !{!"TYPE_5__", !20, i64 0}
!20 = !{!"int", !10, i64 0}
!21 = !{!13, !9, i64 0}
!22 = !{!20, !20, i64 0}
| linux_drivers_usb_gadget_udc_extr_snps_udc_core.c_amd5536_udc_start |
; ModuleID = 'AnghaBench/kphp-kdb/binlog/extr_kdb-binlog-common.c_init_seqmap_data.c'
source_filename = "AnghaBench/kphp-kdb/binlog/extr_kdb-binlog-common.c_init_seqmap_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"
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"sorry, SEQMAP_SCHEMA module is not loaded.\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @init_seqmap_data(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @stderr, align 4, !tbaa !5
%3 = tail call i32 @fprintf(i32 noundef %2, ptr noundef nonnull @.str) #2
ret i32 -1
}
declare i32 @fprintf(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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/kphp-kdb/binlog/extr_kdb-binlog-common.c_init_seqmap_data.c'
source_filename = "AnghaBench/kphp-kdb/binlog/extr_kdb-binlog-common.c_init_seqmap_data.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@stderr = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"sorry, SEQMAP_SCHEMA module is not loaded.\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @init_seqmap_data(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @stderr, align 4, !tbaa !6
%3 = tail call i32 @fprintf(i32 noundef %2, ptr noundef nonnull @.str) #2
ret i32 -1
}
declare i32 @fprintf(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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| kphp-kdb_binlog_extr_kdb-binlog-common.c_init_seqmap_data |
; ModuleID = 'AnghaBench/linux/drivers/pci/controller/extr_pcie-tango.c_msi_mask.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/extr_pcie-tango.c_msi_mask.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 @msi_mask], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @msi_mask(ptr noundef %0) #0 {
%2 = tail call i32 @pci_msi_mask_irq(ptr noundef %0) #2
%3 = tail call i32 @irq_chip_mask_parent(ptr noundef %0) #2
ret void
}
declare i32 @pci_msi_mask_irq(ptr noundef) local_unnamed_addr #1
declare i32 @irq_chip_mask_parent(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/linux/drivers/pci/controller/extr_pcie-tango.c_msi_mask.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/extr_pcie-tango.c_msi_mask.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 @msi_mask], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @msi_mask(ptr noundef %0) #0 {
%2 = tail call i32 @pci_msi_mask_irq(ptr noundef %0) #2
%3 = tail call i32 @irq_chip_mask_parent(ptr noundef %0) #2
ret void
}
declare i32 @pci_msi_mask_irq(ptr noundef) local_unnamed_addr #1
declare i32 @irq_chip_mask_parent(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)"}
| linux_drivers_pci_controller_extr_pcie-tango.c_msi_mask |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_proc_info.c_bsd_getthreadname.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_proc_info.c_bsd_getthreadname.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"
@MAXTHREADNAMESIZE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @bsd_getthreadname(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = load i32, ptr @MAXTHREADNAMESIZE, align 4, !tbaa !10
%7 = tail call i32 @bcopy(i64 noundef %3, ptr noundef %1, i32 noundef %6) #2
br label %8
8: ; preds = %5, %2
ret void
}
declare i32 @bcopy(i64 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 = !{!"uthread", !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}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_proc_info.c_bsd_getthreadname.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_proc_info.c_bsd_getthreadname.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAXTHREADNAMESIZE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @bsd_getthreadname(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = load i32, ptr @MAXTHREADNAMESIZE, align 4, !tbaa !11
%7 = tail call i32 @bcopy(i64 noundef %3, ptr noundef %1, i32 noundef %6) #2
br label %8
8: ; preds = %5, %2
ret void
}
declare i32 @bcopy(i64 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 = !{!"uthread", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| darwin-xnu_bsd_kern_extr_proc_info.c_bsd_getthreadname |
; ModuleID = 'AnghaBench/linux/drivers/usb/serial/extr_usb-serial.c_usb_serial_put.c'
source_filename = "AnghaBench/linux/drivers/usb/serial/extr_usb-serial.c_usb_serial_put.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"
@destroy_serial = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @usb_serial_put(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @destroy_serial, align 4, !tbaa !5
%3 = tail call i32 @kref_put(ptr noundef %0, i32 noundef %2) #2
ret void
}
declare i32 @kref_put(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/usb/serial/extr_usb-serial.c_usb_serial_put.c'
source_filename = "AnghaBench/linux/drivers/usb/serial/extr_usb-serial.c_usb_serial_put.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@destroy_serial = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @usb_serial_put(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @destroy_serial, align 4, !tbaa !6
%3 = tail call i32 @kref_put(ptr noundef %0, i32 noundef %2) #2
ret void
}
declare i32 @kref_put(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_usb_serial_extr_usb-serial.c_usb_serial_put |
; ModuleID = 'AnghaBench/linux/drivers/net/bonding/extr_bond_3ad.c_ad_mux_machine.c'
source_filename = "AnghaBench/linux/drivers/net/bonding/extr_bond_3ad.c_ad_mux_machine.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.port = type { i64, i32, i32, i32, ptr, i32, i32, ptr, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32 }
%struct.TYPE_8__ = type { i32, ptr }
@AD_PORT_BEGIN = dso_local local_unnamed_addr global i32 0, align 4
@AD_PORT_SELECTED = dso_local local_unnamed_addr global i32 0, align 4
@AD_PORT_STANDBY = dso_local local_unnamed_addr global i32 0, align 4
@AD_PORT_READY_N = dso_local local_unnamed_addr global i32 0, align 4
@AD_PORT_READY = dso_local local_unnamed_addr global i32 0, align 4
@AD_STATE_SYNCHRONIZATION = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [52 x i8] c"Mux Machine: Port=%d, Last State=%d, Curr State=%d\0A\00", align 1
@AD_STATE_COLLECTING = dso_local local_unnamed_addr global i32 0, align 4
@AD_STATE_DISTRIBUTING = dso_local local_unnamed_addr global i32 0, align 4
@AD_WAIT_WHILE_TIMER = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ad_mux_machine], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ad_mux_machine(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 1
%5 = load i32, ptr %4, align 8, !tbaa !13
%6 = load i32, ptr @AD_PORT_BEGIN, align 4, !tbaa !14
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %2
store i64 129, ptr %0, align 8, !tbaa !5
br label %135
10: ; preds = %2
switch i64 %3, label %135 [
i64 129, label %11
i64 128, label %20
i64 131, label %55
i64 130, label %103
]
11: ; preds = %10
%12 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !14
%13 = and i32 %12, %5
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = load i32, ptr @AD_PORT_STANDBY, align 4, !tbaa !14
%17 = and i32 %16, %5
%18 = icmp eq i32 %17, 0
br i1 %18, label %135, label %19
19: ; preds = %15, %11
store i64 128, ptr %0, align 8, !tbaa !5
br label %135
20: ; preds = %10
%21 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !14
%22 = and i32 %21, %5
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = load i32, ptr @AD_PORT_READY_N, align 4, !tbaa !14
%26 = xor i32 %25, -1
%27 = and i32 %5, %26
store i32 %27, ptr %4, align 8, !tbaa !13
%28 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%29 = load ptr, ptr %28, align 8, !tbaa !15
%30 = tail call i32 @__agg_ports_are_ready(ptr noundef %29) #2
%31 = tail call i32 @__set_agg_ports_ready(ptr noundef %29, i32 noundef %30) #2
store i64 129, ptr %0, align 8, !tbaa !5
br label %135
32: ; preds = %20
%33 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 5
%34 = load i32, ptr %33, align 8, !tbaa !16
%35 = icmp eq i32 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %32
%37 = add nsw i32 %34, -1
store i32 %37, ptr %33, align 8, !tbaa !16
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, ptr @AD_PORT_READY_N, align 4, !tbaa !14
%41 = or i32 %40, %5
store i32 %41, ptr %4, align 8, !tbaa !13
br label %42
42: ; preds = %39, %36, %32
%43 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%44 = load ptr, ptr %43, align 8, !tbaa !15
%45 = tail call i32 @__agg_ports_are_ready(ptr noundef %44) #2
%46 = tail call i32 @__set_agg_ports_ready(ptr noundef %44, i32 noundef %45) #2
%47 = load i32, ptr %4, align 8, !tbaa !13
%48 = load i32, ptr @AD_PORT_READY, align 4, !tbaa !14
%49 = and i32 %48, %47
%50 = icmp eq i32 %49, 0
br i1 %50, label %135, label %51
51: ; preds = %42
%52 = load i32, ptr %33, align 8, !tbaa !16
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %135
54: ; preds = %51
store i64 131, ptr %0, align 8, !tbaa !5
br label %135
55: ; preds = %10
%56 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !14
%57 = and i32 %56, %5
%58 = icmp eq i32 %57, 0
br i1 %58, label %84, label %59
59: ; preds = %55
%60 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 8
%61 = load i32, ptr %60, align 8, !tbaa !17
%62 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !14
%63 = and i32 %62, %61
%64 = icmp eq i32 %63, 0
br i1 %64, label %79, label %65
65: ; preds = %59
%66 = tail call i32 @__check_agg_selection_timer(ptr noundef nonnull %0) #2
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %74
68: ; preds = %65
%69 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%70 = load ptr, ptr %69, align 8, !tbaa !15
%71 = load i32, ptr %70, align 4, !tbaa !18
%72 = icmp eq i32 %71, 0
br i1 %72, label %135, label %73
73: ; preds = %68
store i64 130, ptr %0, align 8, !tbaa !5
br label %135
74: ; preds = %65
%75 = load i32, ptr %4, align 8, !tbaa !13
%76 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !14
%77 = and i32 %76, %75
%78 = icmp eq i32 %77, 0
br i1 %78, label %84, label %79
79: ; preds = %59, %74
%80 = phi i32 [ %75, %74 ], [ %5, %59 ]
%81 = load i32, ptr @AD_PORT_STANDBY, align 4, !tbaa !14
%82 = and i32 %81, %80
%83 = icmp eq i32 %82, 0
br i1 %83, label %93, label %84
84: ; preds = %55, %79, %74
%85 = phi i32 [ %80, %79 ], [ %75, %74 ], [ %5, %55 ]
%86 = load i32, ptr @AD_PORT_READY_N, align 4, !tbaa !14
%87 = xor i32 %86, -1
%88 = and i32 %85, %87
store i32 %88, ptr %4, align 8, !tbaa !13
%89 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%90 = load ptr, ptr %89, align 8, !tbaa !15
%91 = tail call i32 @__agg_ports_are_ready(ptr noundef %90) #2
%92 = tail call i32 @__set_agg_ports_ready(ptr noundef %90, i32 noundef %91) #2
store i64 129, ptr %0, align 8, !tbaa !5
br label %135
93: ; preds = %79
%94 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%95 = load ptr, ptr %94, align 8, !tbaa !15
%96 = load i32, ptr %95, align 4, !tbaa !18
%97 = icmp eq i32 %96, 0
br i1 %97, label %135, label %98
98: ; preds = %93
%99 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !14
%100 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%101 = load i32, ptr %100, align 4, !tbaa !20
%102 = or i32 %101, %99
store i32 %102, ptr %100, align 4, !tbaa !20
br label %135
103: ; preds = %10
%104 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !14
%105 = and i32 %104, %5
%106 = icmp eq i32 %105, 0
br i1 %106, label %122, label %107
107: ; preds = %103
%108 = load i32, ptr @AD_PORT_STANDBY, align 4, !tbaa !14
%109 = and i32 %108, %5
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %122
111: ; preds = %107
%112 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 8
%113 = load i32, ptr %112, align 8, !tbaa !17
%114 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !14
%115 = and i32 %114, %113
%116 = icmp eq i32 %115, 0
br i1 %116, label %122, label %117
117: ; preds = %111
%118 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%119 = load i32, ptr %118, align 4, !tbaa !20
%120 = and i32 %119, %114
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %117, %111, %107, %103
store i64 131, ptr %0, align 8, !tbaa !5
br label %135
123: ; preds = %117
%124 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%125 = load ptr, ptr %124, align 8, !tbaa !15
%126 = icmp eq ptr %125, null
br i1 %126, label %135, label %127
127: ; preds = %123
%128 = load i32, ptr %125, align 4, !tbaa !18
%129 = icmp eq i32 %128, 0
br i1 %129, label %135, label %130
130: ; preds = %127
%131 = tail call i32 @__port_is_enabled(ptr noundef nonnull %0) #2
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %130
%134 = tail call i32 @__enable_port(ptr noundef nonnull %0) #2
br label %135
135: ; preds = %24, %19, %15, %54, %51, %42, %84, %98, %93, %68, %73, %123, %127, %130, %133, %122, %10, %9
%136 = load i64, ptr %0, align 8, !tbaa !5
%137 = icmp eq i64 %136, %3
br i1 %137, label %203, label %138
138: ; preds = %135
%139 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 7
%140 = load ptr, ptr %139, align 8, !tbaa !21
%141 = getelementptr inbounds %struct.TYPE_8__, ptr %140, i64 0, i32 1
%142 = load ptr, ptr %141, align 8, !tbaa !22
%143 = load i32, ptr %142, align 4, !tbaa !24
%144 = load i32, ptr %140, align 8, !tbaa !26
%145 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 6
%146 = load i32, ptr %145, align 4, !tbaa !27
%147 = tail call i32 @slave_dbg(i32 noundef %143, i32 noundef %144, ptr noundef nonnull @.str, i32 noundef %146, i64 noundef %3, i64 noundef %136) #2
%148 = load i64, ptr %0, align 8, !tbaa !5
switch i64 %148, label %203 [
i64 129, label %149
i64 128, label %163
i64 131, label %167
i64 130, label %192
]
149: ; preds = %138
%150 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !14
%151 = xor i32 %150, -1
%152 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%153 = load i32, ptr %152, align 4, !tbaa !20
%154 = and i32 %153, %151
store i32 %154, ptr %152, align 4, !tbaa !20
%155 = tail call i32 @ad_disable_collecting_distributing(ptr noundef nonnull %0, ptr noundef %1) #2
%156 = load i32, ptr @AD_STATE_COLLECTING, align 4, !tbaa !14
%157 = load i32, ptr %152, align 4, !tbaa !20
%158 = load i32, ptr @AD_STATE_DISTRIBUTING, align 4, !tbaa !14
%159 = or i32 %156, %158
%160 = xor i32 %159, -1
%161 = and i32 %157, %160
store i32 %161, ptr %152, align 4, !tbaa !20
%162 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 3
store i32 1, ptr %162, align 8, !tbaa !28
br label %203
163: ; preds = %138
%164 = load i32, ptr @AD_WAIT_WHILE_TIMER, align 4, !tbaa !14
%165 = tail call i32 @__ad_timer_to_ticks(i32 noundef %164, i32 noundef 0) #2
%166 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 5
store i32 %165, ptr %166, align 8, !tbaa !16
br label %203
167: ; preds = %138
%168 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 4
%169 = load ptr, ptr %168, align 8, !tbaa !15
%170 = load i32, ptr %169, align 4, !tbaa !18
%171 = icmp eq i32 %170, 0
%172 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !14
br i1 %171, label %177, label %173
173: ; preds = %167
%174 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%175 = load i32, ptr %174, align 4, !tbaa !20
%176 = or i32 %175, %172
br label %182
177: ; preds = %167
%178 = xor i32 %172, -1
%179 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%180 = load i32, ptr %179, align 4, !tbaa !20
%181 = and i32 %180, %178
br label %182
182: ; preds = %177, %173
%183 = phi i32 [ %181, %177 ], [ %176, %173 ]
%184 = load i32, ptr @AD_STATE_COLLECTING, align 4, !tbaa !14
%185 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%186 = load i32, ptr @AD_STATE_DISTRIBUTING, align 4, !tbaa !14
%187 = or i32 %184, %186
%188 = xor i32 %187, -1
%189 = and i32 %183, %188
store i32 %189, ptr %185, align 4, !tbaa !20
%190 = tail call i32 @ad_disable_collecting_distributing(ptr noundef nonnull %0, ptr noundef %1) #2
%191 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 3
store i32 1, ptr %191, align 8, !tbaa !28
br label %203
192: ; preds = %138
%193 = load i32, ptr @AD_STATE_COLLECTING, align 4, !tbaa !14
%194 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 2
%195 = load i32, ptr %194, align 4, !tbaa !20
%196 = or i32 %195, %193
%197 = load i32, ptr @AD_STATE_DISTRIBUTING, align 4, !tbaa !14
%198 = or i32 %197, %196
%199 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !14
%200 = or i32 %199, %198
store i32 %200, ptr %194, align 4, !tbaa !20
%201 = tail call i32 @ad_enable_collecting_distributing(ptr noundef nonnull %0, ptr noundef %1) #2
%202 = getelementptr inbounds %struct.port, ptr %0, i64 0, i32 3
store i32 1, ptr %202, align 8, !tbaa !28
br label %203
203: ; preds = %149, %163, %182, %192, %138, %135
ret void
}
declare i32 @__set_agg_ports_ready(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__agg_ports_are_ready(ptr noundef) local_unnamed_addr #1
declare i32 @__check_agg_selection_timer(ptr noundef) local_unnamed_addr #1
declare i32 @__port_is_enabled(ptr noundef) local_unnamed_addr #1
declare i32 @__enable_port(ptr noundef) local_unnamed_addr #1
declare i32 @slave_dbg(i32 noundef, i32 noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ad_disable_collecting_distributing(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @__ad_timer_to_ticks(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ad_enable_collecting_distributing(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 = !{!"port", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !10, i64 32, !10, i64 36, !11, i64 40, !12, i64 48}
!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 = !{!"TYPE_6__", !10, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !11, i64 24}
!16 = !{!6, !10, i64 32}
!17 = !{!6, !10, i64 48}
!18 = !{!19, !10, i64 0}
!19 = !{!"TYPE_9__", !10, i64 0}
!20 = !{!6, !10, i64 12}
!21 = !{!6, !11, i64 40}
!22 = !{!23, !11, i64 8}
!23 = !{!"TYPE_8__", !10, i64 0, !11, i64 8}
!24 = !{!25, !10, i64 0}
!25 = !{!"TYPE_7__", !10, i64 0}
!26 = !{!23, !10, i64 0}
!27 = !{!6, !10, i64 36}
!28 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/linux/drivers/net/bonding/extr_bond_3ad.c_ad_mux_machine.c'
source_filename = "AnghaBench/linux/drivers/net/bonding/extr_bond_3ad.c_ad_mux_machine.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AD_PORT_BEGIN = common local_unnamed_addr global i32 0, align 4
@AD_PORT_SELECTED = common local_unnamed_addr global i32 0, align 4
@AD_PORT_STANDBY = common local_unnamed_addr global i32 0, align 4
@AD_PORT_READY_N = common local_unnamed_addr global i32 0, align 4
@AD_PORT_READY = common local_unnamed_addr global i32 0, align 4
@AD_STATE_SYNCHRONIZATION = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [52 x i8] c"Mux Machine: Port=%d, Last State=%d, Curr State=%d\0A\00", align 1
@AD_STATE_COLLECTING = common local_unnamed_addr global i32 0, align 4
@AD_STATE_DISTRIBUTING = common local_unnamed_addr global i32 0, align 4
@AD_WAIT_WHILE_TIMER = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ad_mux_machine], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ad_mux_machine(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i32, ptr %4, align 8, !tbaa !14
%6 = load i32, ptr @AD_PORT_BEGIN, align 4, !tbaa !15
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %2
store i64 129, ptr %0, align 8, !tbaa !6
br label %135
10: ; preds = %2
switch i64 %3, label %135 [
i64 129, label %11
i64 128, label %20
i64 131, label %55
i64 130, label %103
]
11: ; preds = %10
%12 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !15
%13 = and i32 %12, %5
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = load i32, ptr @AD_PORT_STANDBY, align 4, !tbaa !15
%17 = and i32 %16, %5
%18 = icmp eq i32 %17, 0
br i1 %18, label %135, label %19
19: ; preds = %15, %11
store i64 128, ptr %0, align 8, !tbaa !6
br label %135
20: ; preds = %10
%21 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !15
%22 = and i32 %21, %5
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = load i32, ptr @AD_PORT_READY_N, align 4, !tbaa !15
%26 = xor i32 %25, -1
%27 = and i32 %5, %26
store i32 %27, ptr %4, align 8, !tbaa !14
%28 = getelementptr inbounds i8, ptr %0, i64 24
%29 = load ptr, ptr %28, align 8, !tbaa !16
%30 = tail call i32 @__agg_ports_are_ready(ptr noundef %29) #2
%31 = tail call i32 @__set_agg_ports_ready(ptr noundef %29, i32 noundef %30) #2
store i64 129, ptr %0, align 8, !tbaa !6
br label %135
32: ; preds = %20
%33 = getelementptr inbounds i8, ptr %0, i64 32
%34 = load i32, ptr %33, align 8, !tbaa !17
%35 = icmp eq i32 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %32
%37 = add nsw i32 %34, -1
store i32 %37, ptr %33, align 8, !tbaa !17
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, ptr @AD_PORT_READY_N, align 4, !tbaa !15
%41 = or i32 %40, %5
store i32 %41, ptr %4, align 8, !tbaa !14
br label %42
42: ; preds = %39, %36, %32
%43 = getelementptr inbounds i8, ptr %0, i64 24
%44 = load ptr, ptr %43, align 8, !tbaa !16
%45 = tail call i32 @__agg_ports_are_ready(ptr noundef %44) #2
%46 = tail call i32 @__set_agg_ports_ready(ptr noundef %44, i32 noundef %45) #2
%47 = load i32, ptr %4, align 8, !tbaa !14
%48 = load i32, ptr @AD_PORT_READY, align 4, !tbaa !15
%49 = and i32 %48, %47
%50 = icmp eq i32 %49, 0
br i1 %50, label %135, label %51
51: ; preds = %42
%52 = load i32, ptr %33, align 8, !tbaa !17
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %135
54: ; preds = %51
store i64 131, ptr %0, align 8, !tbaa !6
br label %135
55: ; preds = %10
%56 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !15
%57 = and i32 %56, %5
%58 = icmp eq i32 %57, 0
br i1 %58, label %84, label %59
59: ; preds = %55
%60 = getelementptr inbounds i8, ptr %0, i64 48
%61 = load i32, ptr %60, align 8, !tbaa !18
%62 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !15
%63 = and i32 %62, %61
%64 = icmp eq i32 %63, 0
br i1 %64, label %79, label %65
65: ; preds = %59
%66 = tail call i32 @__check_agg_selection_timer(ptr noundef nonnull %0) #2
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %74
68: ; preds = %65
%69 = getelementptr inbounds i8, ptr %0, i64 24
%70 = load ptr, ptr %69, align 8, !tbaa !16
%71 = load i32, ptr %70, align 4, !tbaa !19
%72 = icmp eq i32 %71, 0
br i1 %72, label %135, label %73
73: ; preds = %68
store i64 130, ptr %0, align 8, !tbaa !6
br label %135
74: ; preds = %65
%75 = load i32, ptr %4, align 8, !tbaa !14
%76 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !15
%77 = and i32 %76, %75
%78 = icmp eq i32 %77, 0
br i1 %78, label %84, label %79
79: ; preds = %59, %74
%80 = phi i32 [ %75, %74 ], [ %5, %59 ]
%81 = load i32, ptr @AD_PORT_STANDBY, align 4, !tbaa !15
%82 = and i32 %81, %80
%83 = icmp eq i32 %82, 0
br i1 %83, label %93, label %84
84: ; preds = %55, %79, %74
%85 = phi i32 [ %80, %79 ], [ %75, %74 ], [ %5, %55 ]
%86 = load i32, ptr @AD_PORT_READY_N, align 4, !tbaa !15
%87 = xor i32 %86, -1
%88 = and i32 %85, %87
store i32 %88, ptr %4, align 8, !tbaa !14
%89 = getelementptr inbounds i8, ptr %0, i64 24
%90 = load ptr, ptr %89, align 8, !tbaa !16
%91 = tail call i32 @__agg_ports_are_ready(ptr noundef %90) #2
%92 = tail call i32 @__set_agg_ports_ready(ptr noundef %90, i32 noundef %91) #2
store i64 129, ptr %0, align 8, !tbaa !6
br label %135
93: ; preds = %79
%94 = getelementptr inbounds i8, ptr %0, i64 24
%95 = load ptr, ptr %94, align 8, !tbaa !16
%96 = load i32, ptr %95, align 4, !tbaa !19
%97 = icmp eq i32 %96, 0
br i1 %97, label %135, label %98
98: ; preds = %93
%99 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !15
%100 = getelementptr inbounds i8, ptr %0, i64 12
%101 = load i32, ptr %100, align 4, !tbaa !21
%102 = or i32 %101, %99
store i32 %102, ptr %100, align 4, !tbaa !21
br label %135
103: ; preds = %10
%104 = load i32, ptr @AD_PORT_SELECTED, align 4, !tbaa !15
%105 = and i32 %104, %5
%106 = icmp eq i32 %105, 0
br i1 %106, label %122, label %107
107: ; preds = %103
%108 = load i32, ptr @AD_PORT_STANDBY, align 4, !tbaa !15
%109 = and i32 %108, %5
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %122
111: ; preds = %107
%112 = getelementptr inbounds i8, ptr %0, i64 48
%113 = load i32, ptr %112, align 8, !tbaa !18
%114 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !15
%115 = and i32 %114, %113
%116 = icmp eq i32 %115, 0
br i1 %116, label %122, label %117
117: ; preds = %111
%118 = getelementptr inbounds i8, ptr %0, i64 12
%119 = load i32, ptr %118, align 4, !tbaa !21
%120 = and i32 %119, %114
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %117, %111, %107, %103
store i64 131, ptr %0, align 8, !tbaa !6
br label %135
123: ; preds = %117
%124 = getelementptr inbounds i8, ptr %0, i64 24
%125 = load ptr, ptr %124, align 8, !tbaa !16
%126 = icmp eq ptr %125, null
br i1 %126, label %135, label %127
127: ; preds = %123
%128 = load i32, ptr %125, align 4, !tbaa !19
%129 = icmp eq i32 %128, 0
br i1 %129, label %135, label %130
130: ; preds = %127
%131 = tail call i32 @__port_is_enabled(ptr noundef nonnull %0) #2
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %130
%134 = tail call i32 @__enable_port(ptr noundef nonnull %0) #2
br label %135
135: ; preds = %24, %19, %15, %54, %51, %42, %84, %98, %93, %68, %73, %123, %127, %130, %133, %122, %10, %9
%136 = load i64, ptr %0, align 8, !tbaa !6
%137 = icmp eq i64 %136, %3
br i1 %137, label %203, label %138
138: ; preds = %135
%139 = getelementptr inbounds i8, ptr %0, i64 40
%140 = load ptr, ptr %139, align 8, !tbaa !22
%141 = getelementptr inbounds i8, ptr %140, i64 8
%142 = load ptr, ptr %141, align 8, !tbaa !23
%143 = load i32, ptr %142, align 4, !tbaa !25
%144 = load i32, ptr %140, align 8, !tbaa !27
%145 = getelementptr inbounds i8, ptr %0, i64 36
%146 = load i32, ptr %145, align 4, !tbaa !28
%147 = tail call i32 @slave_dbg(i32 noundef %143, i32 noundef %144, ptr noundef nonnull @.str, i32 noundef %146, i64 noundef %3, i64 noundef %136) #2
%148 = load i64, ptr %0, align 8, !tbaa !6
switch i64 %148, label %203 [
i64 129, label %149
i64 128, label %162
i64 131, label %165
i64 130, label %189
]
149: ; preds = %138
%150 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !15
%151 = xor i32 %150, -1
%152 = getelementptr inbounds i8, ptr %0, i64 12
%153 = load i32, ptr %152, align 4, !tbaa !21
%154 = and i32 %153, %151
store i32 %154, ptr %152, align 4, !tbaa !21
%155 = tail call i32 @ad_disable_collecting_distributing(ptr noundef nonnull %0, ptr noundef %1) #2
%156 = load i32, ptr @AD_STATE_COLLECTING, align 4, !tbaa !15
%157 = load i32, ptr %152, align 4, !tbaa !21
%158 = load i32, ptr @AD_STATE_DISTRIBUTING, align 4, !tbaa !15
%159 = or i32 %156, %158
%160 = xor i32 %159, -1
%161 = and i32 %157, %160
store i32 %161, ptr %152, align 4, !tbaa !21
br label %199
162: ; preds = %138
%163 = load i32, ptr @AD_WAIT_WHILE_TIMER, align 4, !tbaa !15
%164 = tail call i32 @__ad_timer_to_ticks(i32 noundef %163, i32 noundef 0) #2
br label %199
165: ; preds = %138
%166 = getelementptr inbounds i8, ptr %0, i64 24
%167 = load ptr, ptr %166, align 8, !tbaa !16
%168 = load i32, ptr %167, align 4, !tbaa !19
%169 = icmp eq i32 %168, 0
%170 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !15
br i1 %169, label %175, label %171
171: ; preds = %165
%172 = getelementptr inbounds i8, ptr %0, i64 12
%173 = load i32, ptr %172, align 4, !tbaa !21
%174 = or i32 %173, %170
br label %180
175: ; preds = %165
%176 = xor i32 %170, -1
%177 = getelementptr inbounds i8, ptr %0, i64 12
%178 = load i32, ptr %177, align 4, !tbaa !21
%179 = and i32 %178, %176
br label %180
180: ; preds = %175, %171
%181 = phi i32 [ %179, %175 ], [ %174, %171 ]
%182 = load i32, ptr @AD_STATE_COLLECTING, align 4, !tbaa !15
%183 = getelementptr inbounds i8, ptr %0, i64 12
%184 = load i32, ptr @AD_STATE_DISTRIBUTING, align 4, !tbaa !15
%185 = or i32 %182, %184
%186 = xor i32 %185, -1
%187 = and i32 %181, %186
store i32 %187, ptr %183, align 4, !tbaa !21
%188 = tail call i32 @ad_disable_collecting_distributing(ptr noundef nonnull %0, ptr noundef %1) #2
br label %199
189: ; preds = %138
%190 = load i32, ptr @AD_STATE_COLLECTING, align 4, !tbaa !15
%191 = getelementptr inbounds i8, ptr %0, i64 12
%192 = load i32, ptr %191, align 4, !tbaa !21
%193 = or i32 %192, %190
%194 = load i32, ptr @AD_STATE_DISTRIBUTING, align 4, !tbaa !15
%195 = or i32 %194, %193
%196 = load i32, ptr @AD_STATE_SYNCHRONIZATION, align 4, !tbaa !15
%197 = or i32 %196, %195
store i32 %197, ptr %191, align 4, !tbaa !21
%198 = tail call i32 @ad_enable_collecting_distributing(ptr noundef nonnull %0, ptr noundef %1) #2
br label %199
199: ; preds = %189, %180, %162, %149
%200 = phi i64 [ 16, %149 ], [ 32, %162 ], [ 16, %180 ], [ 16, %189 ]
%201 = phi i32 [ 1, %149 ], [ %164, %162 ], [ 1, %180 ], [ 1, %189 ]
%202 = getelementptr inbounds i8, ptr %0, i64 %200
store i32 %201, ptr %202, align 8, !tbaa !15
br label %203
203: ; preds = %199, %138, %135
ret void
}
declare i32 @__set_agg_ports_ready(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__agg_ports_are_ready(ptr noundef) local_unnamed_addr #1
declare i32 @__check_agg_selection_timer(ptr noundef) local_unnamed_addr #1
declare i32 @__port_is_enabled(ptr noundef) local_unnamed_addr #1
declare i32 @__enable_port(ptr noundef) local_unnamed_addr #1
declare i32 @slave_dbg(i32 noundef, i32 noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ad_disable_collecting_distributing(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @__ad_timer_to_ticks(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ad_enable_collecting_distributing(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 = !{!"port", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 24, !11, i64 32, !11, i64 36, !12, i64 40, !13, i64 48}
!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 = !{!"TYPE_6__", !11, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!11, !11, i64 0}
!16 = !{!7, !12, i64 24}
!17 = !{!7, !11, i64 32}
!18 = !{!7, !11, i64 48}
!19 = !{!20, !11, i64 0}
!20 = !{!"TYPE_9__", !11, i64 0}
!21 = !{!7, !11, i64 12}
!22 = !{!7, !12, i64 40}
!23 = !{!24, !12, i64 8}
!24 = !{!"TYPE_8__", !11, i64 0, !12, i64 8}
!25 = !{!26, !11, i64 0}
!26 = !{!"TYPE_7__", !11, i64 0}
!27 = !{!24, !11, i64 0}
!28 = !{!7, !11, i64 36}
| linux_drivers_net_bonding_extr_bond_3ad.c_ad_mux_machine |
; ModuleID = 'AnghaBench/linux/drivers/rtc/extr_rtc-omap.c_omap_rtc_scratch_read.c'
source_filename = "AnghaBench/linux/drivers/rtc/extr_rtc-omap.c_omap_rtc_scratch_read.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"
@OMAP_RTC_SCRATCH0_REG = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @omap_rtc_scratch_read], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @omap_rtc_scratch_read(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, i64 noundef %3) #0 {
%5 = lshr i64 %3, 2
%6 = icmp ult i64 %3, 4
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = zext i32 %1 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %17, %9 ]
%11 = load i64, ptr @OMAP_RTC_SCRATCH0_REG, align 8, !tbaa !5
%12 = shl nsw i64 %10, 2
%13 = add nuw nsw i64 %12, %8
%14 = add i64 %13, %11
%15 = tail call i32 @rtc_readl(ptr noundef %0, i64 noundef %14) #2
%16 = getelementptr inbounds i32, ptr %2, i64 %10
store i32 %15, ptr %16, align 4, !tbaa !9
%17 = add nuw nsw i64 %10, 1
%18 = icmp eq i64 %17, %5
br i1 %18, label %19, label %9, !llvm.loop !11
19: ; preds = %9, %4
ret i32 0
}
declare i32 @rtc_readl(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, !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}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/rtc/extr_rtc-omap.c_omap_rtc_scratch_read.c'
source_filename = "AnghaBench/linux/drivers/rtc/extr_rtc-omap.c_omap_rtc_scratch_read.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OMAP_RTC_SCRATCH0_REG = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @omap_rtc_scratch_read], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @omap_rtc_scratch_read(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, i64 noundef %3) #0 {
%5 = lshr i64 %3, 2
%6 = icmp ult i64 %3, 4
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = zext i32 %1 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %17, %9 ]
%11 = load i64, ptr @OMAP_RTC_SCRATCH0_REG, align 8, !tbaa !6
%12 = shl nsw i64 %10, 2
%13 = add nuw nsw i64 %12, %8
%14 = add i64 %13, %11
%15 = tail call i32 @rtc_readl(ptr noundef %0, i64 noundef %14) #2
%16 = getelementptr inbounds i32, ptr %2, i64 %10
store i32 %15, ptr %16, align 4, !tbaa !10
%17 = add nuw nsw i64 %10, 1
%18 = icmp eq i64 %17, %5
br i1 %18, label %19, label %9, !llvm.loop !12
19: ; preds = %9, %4
ret i32 0
}
declare i32 @rtc_readl(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, !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}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| linux_drivers_rtc_extr_rtc-omap.c_omap_rtc_scratch_read |
; ModuleID = 'AnghaBench/linux/drivers/hwmon/extr_lm75.h_LM75_TEMP_TO_REG.c'
source_filename = "AnghaBench/linux/drivers/hwmon/extr_lm75.h_LM75_TEMP_TO_REG.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"
@LM75_TEMP_MIN = dso_local local_unnamed_addr global i32 0, align 4
@LM75_TEMP_MAX = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @LM75_TEMP_TO_REG], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @LM75_TEMP_TO_REG(i64 noundef %0) #0 {
%2 = load i32, ptr @LM75_TEMP_MIN, align 4, !tbaa !5
%3 = load i32, ptr @LM75_TEMP_MAX, align 4, !tbaa !5
%4 = tail call i32 @clamp_val(i64 noundef %0, i32 noundef %2, i32 noundef %3) #2
%5 = icmp slt i32 %4, 0
%6 = select i1 %5, i32 -250, i32 250
%7 = add nsw i32 %6, %4
%8 = sdiv i32 %7, 500
%9 = shl nsw i32 %8, 7
ret i32 %9
}
declare i32 @clamp_val(i64 noundef, i32 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)"}
!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/hwmon/extr_lm75.h_LM75_TEMP_TO_REG.c'
source_filename = "AnghaBench/linux/drivers/hwmon/extr_lm75.h_LM75_TEMP_TO_REG.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LM75_TEMP_MIN = common local_unnamed_addr global i32 0, align 4
@LM75_TEMP_MAX = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @LM75_TEMP_TO_REG], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i32 0, -127) i32 @LM75_TEMP_TO_REG(i64 noundef %0) #0 {
%2 = load i32, ptr @LM75_TEMP_MIN, align 4, !tbaa !6
%3 = load i32, ptr @LM75_TEMP_MAX, align 4, !tbaa !6
%4 = tail call i32 @clamp_val(i64 noundef %0, i32 noundef %2, i32 noundef %3) #2
%5 = icmp slt i32 %4, 0
%6 = select i1 %5, i32 -250, i32 250
%7 = add nsw i32 %6, %4
%8 = sdiv i32 %7, 500
%9 = shl nsw i32 %8, 7
ret i32 %9
}
declare i32 @clamp_val(i64 noundef, i32 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)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_hwmon_extr_lm75.h_LM75_TEMP_TO_REG |
; ModuleID = 'AnghaBench/freebsd/tools/tools/usbtest/extr_usb_msc_test.c_get_io_mode.c'
source_filename = "AnghaBench/freebsd/tools/tools/usbtest/extr_usb_msc_test.c_get_io_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"
@.str = private unnamed_addr constant [10 x i8] c"Read Only\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Write Once, Read Only\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Write Only\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Read and Write\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Unknown\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_io_mode], section "llvm.metadata"
@reltable.get_io_mode = private unnamed_addr constant [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.2 to i64), i64 ptrtoint (ptr @reltable.get_io_mode to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.get_io_mode to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.3 to i64), i64 ptrtoint (ptr @reltable.get_io_mode to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str to i64), i64 ptrtoint (ptr @reltable.get_io_mode to i64)) to i32)], align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal noundef nonnull ptr @get_io_mode(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = add i32 %2, -128
%4 = icmp ult i32 %3, 4
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = zext nneg i32 %3 to i64
%7 = shl i64 %6, 2
%8 = call ptr @llvm.load.relative.i64(ptr @reltable.get_io_mode, i64 %7)
br label %9
9: ; preds = %1, %5
%10 = phi ptr [ %8, %5 ], [ @.str.4, %1 ]
ret ptr %10
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare ptr @llvm.load.relative.i64(ptr, i64) #1
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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
!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 = !{!"usb_msc_params", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/tools/tools/usbtest/extr_usb_msc_test.c_get_io_mode.c'
source_filename = "AnghaBench/freebsd/tools/tools/usbtest/extr_usb_msc_test.c_get_io_mode.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"Read Only\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Write Once, Read Only\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Write Only\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Read and Write\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Unknown\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @get_io_mode], section "llvm.metadata"
@switch.table.get_io_mode = private unnamed_addr constant [4 x ptr] [ptr @.str.2, ptr @.str.1, ptr @.str.3, ptr @.str], align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal noundef nonnull ptr @get_io_mode(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = add i32 %2, -128
%4 = icmp ult i32 %3, 4
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = zext nneg i32 %3 to i64
%7 = getelementptr inbounds [4 x ptr], ptr @switch.table.get_io_mode, i64 0, i64 %6
%8 = load ptr, ptr %7, align 8
br label %9
9: ; preds = %1, %5
%10 = phi ptr [ %8, %5 ], [ @.str.4, %1 ]
ret ptr %10
}
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 = !{!"usb_msc_params", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_tools_tools_usbtest_extr_usb_msc_test.c_get_io_mode |
; ModuleID = 'AnghaBench/freebsd/contrib/netbsd-tests/lib/libutil/extr_t_efun.c_handler.c'
source_filename = "AnghaBench/freebsd/contrib/netbsd-tests/lib/libutil/extr_t_efun.c_handler.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"
@fail = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @handler], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define internal void @handler(i32 %0, ptr nocapture readnone %1, ...) #0 {
store i32 0, ptr @fail, align 4, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, 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/freebsd/contrib/netbsd-tests/lib/libutil/extr_t_efun.c_handler.c'
source_filename = "AnghaBench/freebsd/contrib/netbsd-tests/lib/libutil/extr_t_efun.c_handler.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@fail = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @handler], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal void @handler(i32 %0, ptr nocapture readnone %1, ...) #0 {
store i32 0, ptr @fail, align 4, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, 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"}
| freebsd_contrib_netbsd-tests_lib_libutil_extr_t_efun.c_handler |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ntfs/extr_runlist.h_ntfs_init_runlist.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ntfs/extr_runlist.h_ntfs_init_runlist.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, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ntfs_init_runlist], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @ntfs_init_runlist(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
store ptr null, ptr %2, align 8, !tbaa !5
%3 = tail call i32 @init_rwsem(ptr noundef %0) #2
ret void
}
declare i32 @init_rwsem(ptr 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)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"TYPE_3__", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ntfs/extr_runlist.h_ntfs_init_runlist.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ntfs/extr_runlist.h_ntfs_init_runlist.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 @ntfs_init_runlist], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @ntfs_init_runlist(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
store ptr null, ptr %2, align 8, !tbaa !6
%3 = tail call i32 @init_rwsem(ptr noundef %0) #2
ret void
}
declare i32 @init_rwsem(ptr 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)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"TYPE_3__", !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}
| fastsocket_kernel_fs_ntfs_extr_runlist.h_ntfs_init_runlist |
; ModuleID = 'AnghaBench/sqlcipher/src/extr_tclsqlite.c_DbRollbackHandler.c'
source_filename = "AnghaBench/sqlcipher/src/extr_tclsqlite.c_DbRollbackHandler.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 { i32, i32 }
@TCL_OK = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @DbRollbackHandler], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @DbRollbackHandler(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = tail call i32 @assert(i32 noundef %3) #2
%5 = load i64, ptr @TCL_OK, align 8, !tbaa !10
%6 = load i32, ptr %0, align 4, !tbaa !12
%7 = load i32, ptr %2, align 4, !tbaa !5
%8 = tail call i64 @Tcl_EvalObjEx(i32 noundef %6, i32 noundef %7, i32 noundef 0) #2
%9 = icmp eq i64 %5, %8
br i1 %9, label %13, label %10
10: ; preds = %1
%11 = load i32, ptr %0, align 4, !tbaa !12
%12 = tail call i32 @Tcl_BackgroundError(i32 noundef %11) #2
br label %13
13: ; preds = %10, %1
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i64 @Tcl_EvalObjEx(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Tcl_BackgroundError(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 4}
!6 = !{!"TYPE_2__", !7, i64 0, !7, i64 4}
!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}
!12 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/sqlcipher/src/extr_tclsqlite.c_DbRollbackHandler.c'
source_filename = "AnghaBench/sqlcipher/src/extr_tclsqlite.c_DbRollbackHandler.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TCL_OK = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @DbRollbackHandler], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @DbRollbackHandler(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = tail call i32 @assert(i32 noundef %3) #2
%5 = load i64, ptr @TCL_OK, align 8, !tbaa !11
%6 = load i32, ptr %0, align 4, !tbaa !13
%7 = load i32, ptr %2, align 4, !tbaa !6
%8 = tail call i64 @Tcl_EvalObjEx(i32 noundef %6, i32 noundef %7, i32 noundef 0) #2
%9 = icmp eq i64 %5, %8
br i1 %9, label %13, label %10
10: ; preds = %1
%11 = load i32, ptr %0, align 4, !tbaa !13
%12 = tail call i32 @Tcl_BackgroundError(i32 noundef %11) #2
br label %13
13: ; preds = %10, %1
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i64 @Tcl_EvalObjEx(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Tcl_BackgroundError(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 4}
!7 = !{!"TYPE_2__", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !8, i64 0}
| sqlcipher_src_extr_tclsqlite.c_DbRollbackHandler |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/r128/extr_r128_state.c_r128_emit_masks.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/r128/extr_r128_state.c_r128_emit_masks.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, i32 }
@RING_LOCALS = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@R128_DP_WRITE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@R128_STEN_REF_MASK_C = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @r128_emit_masks], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @r128_emit_masks(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @DRM_DEBUG(ptr noundef nonnull @.str) #2
%4 = tail call i32 @BEGIN_RING(i32 noundef 5) #2
%5 = load i32, ptr @R128_DP_WRITE_MASK, align 4, !tbaa !10
%6 = tail call i32 @CCE_PACKET0(i32 noundef %5, i32 noundef 0) #2
%7 = tail call i32 @OUT_RING(i32 noundef %6) #2
%8 = getelementptr inbounds %struct.TYPE_7__, ptr %2, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = tail call i32 @OUT_RING(i32 noundef %9) #2
%11 = load i32, ptr @R128_STEN_REF_MASK_C, align 4, !tbaa !10
%12 = tail call i32 @CCE_PACKET0(i32 noundef %11, i32 noundef 1) #2
%13 = tail call i32 @OUT_RING(i32 noundef %12) #2
%14 = getelementptr inbounds %struct.TYPE_7__, ptr %2, i64 0, i32 1
%15 = load i32, ptr %14, align 4, !tbaa !14
%16 = tail call i32 @OUT_RING(i32 noundef %15) #2
%17 = load i32, ptr %2, align 4, !tbaa !15
%18 = tail call i32 @OUT_RING(i32 noundef %17) #2
%19 = tail call i32 (...) @ADVANCE_RING() #2
ret void
}
declare i32 @DRM_DEBUG(ptr noundef) local_unnamed_addr #1
declare i32 @BEGIN_RING(i32 noundef) local_unnamed_addr #1
declare i32 @OUT_RING(i32 noundef) local_unnamed_addr #1
declare i32 @CCE_PACKET0(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ADVANCE_RING(...) 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)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_6__", !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_7__", !11, i64 0, !11, i64 4, !11, i64 8}
!14 = !{!13, !11, i64 4}
!15 = !{!13, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/r128/extr_r128_state.c_r128_emit_masks.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/r128/extr_r128_state.c_r128_emit_masks.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RING_LOCALS = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@R128_DP_WRITE_MASK = common local_unnamed_addr global i32 0, align 4
@R128_STEN_REF_MASK_C = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @r128_emit_masks], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @r128_emit_masks(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @DRM_DEBUG(ptr noundef nonnull @.str) #2
%4 = tail call i32 @BEGIN_RING(i32 noundef 5) #2
%5 = load i32, ptr @R128_DP_WRITE_MASK, align 4, !tbaa !11
%6 = tail call i32 @CCE_PACKET0(i32 noundef %5, i32 noundef 0) #2
%7 = tail call i32 @OUT_RING(i32 noundef %6) #2
%8 = getelementptr inbounds i8, ptr %2, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !13
%10 = tail call i32 @OUT_RING(i32 noundef %9) #2
%11 = load i32, ptr @R128_STEN_REF_MASK_C, align 4, !tbaa !11
%12 = tail call i32 @CCE_PACKET0(i32 noundef %11, i32 noundef 1) #2
%13 = tail call i32 @OUT_RING(i32 noundef %12) #2
%14 = getelementptr inbounds i8, ptr %2, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !15
%16 = tail call i32 @OUT_RING(i32 noundef %15) #2
%17 = load i32, ptr %2, align 4, !tbaa !16
%18 = tail call i32 @OUT_RING(i32 noundef %17) #2
%19 = tail call i32 @ADVANCE_RING() #2
ret void
}
declare i32 @DRM_DEBUG(ptr noundef) local_unnamed_addr #1
declare i32 @BEGIN_RING(i32 noundef) local_unnamed_addr #1
declare i32 @OUT_RING(i32 noundef) local_unnamed_addr #1
declare i32 @CCE_PACKET0(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ADVANCE_RING(...) 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)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_6__", !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 = !{!"TYPE_7__", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{!14, !12, i64 4}
!16 = !{!14, !12, i64 0}
| linux_drivers_gpu_drm_r128_extr_r128_state.c_r128_emit_masks |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/disp/mdp5/extr_mdp5.xml.h_REG_MDP5_WB_CSC_MATRIX_COEFF_1.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/disp/mdp5/extr_mdp5.xml.h_REG_MDP5_WB_CSC_MATRIX_COEFF_1.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 @REG_MDP5_WB_CSC_MATRIX_COEFF_1], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i64 @REG_MDP5_WB_CSC_MATRIX_COEFF_1(i64 noundef %0) #0 {
%2 = tail call i64 @__offset_WB(i64 noundef %0) #2
%3 = add nsw i64 %2, 612
ret i64 %3
}
declare i64 @__offset_WB(i64 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/linux/drivers/gpu/drm/msm/disp/mdp5/extr_mdp5.xml.h_REG_MDP5_WB_CSC_MATRIX_COEFF_1.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/disp/mdp5/extr_mdp5.xml.h_REG_MDP5_WB_CSC_MATRIX_COEFF_1.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 @REG_MDP5_WB_CSC_MATRIX_COEFF_1], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i64 -9223372036854775196, -9223372036854775808) i64 @REG_MDP5_WB_CSC_MATRIX_COEFF_1(i64 noundef %0) #0 {
%2 = tail call i64 @__offset_WB(i64 noundef %0) #2
%3 = add nsw i64 %2, 612
ret i64 %3
}
declare i64 @__offset_WB(i64 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)"}
| linux_drivers_gpu_drm_msm_disp_mdp5_extr_mdp5.xml.h_REG_MDP5_WB_CSC_MATRIX_COEFF_1 |
; ModuleID = 'AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_....include....uwbincludespec.h_uwb_ie_drp_set_status.c'
source_filename = "AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_....include....uwbincludespec.h_uwb_ie_drp_set_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 @uwb_ie_drp_set_status], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @uwb_ie_drp_set_status(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call i32 @le16_to_cpu(i32 noundef %3) #2
%5 = and i32 %4, -513
%6 = shl i32 %1, 9
%7 = or i32 %5, %6
%8 = tail call i32 @cpu_to_le16(i32 noundef %7) #2
store i32 %8, ptr %0, align 4, !tbaa !5
ret void
}
declare i32 @le16_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @cpu_to_le16(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)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"uwb_ie_drp", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_....include....uwbincludespec.h_uwb_ie_drp_set_status.c'
source_filename = "AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_....include....uwbincludespec.h_uwb_ie_drp_set_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 @uwb_ie_drp_set_status], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @uwb_ie_drp_set_status(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call i32 @le16_to_cpu(i32 noundef %3) #2
%5 = and i32 %4, -513
%6 = shl i32 %1, 9
%7 = or i32 %5, %6
%8 = tail call i32 @cpu_to_le16(i32 noundef %7) #2
store i32 %8, ptr %0, align 4, !tbaa !6
ret void
}
declare i32 @le16_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @cpu_to_le16(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)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"uwb_ie_drp", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_staging_wusbcore_host_whci_extr_....include....uwbincludespec.h_uwb_ie_drp_set_status |
; ModuleID = 'AnghaBench/vlc/modules/packetizer/extr_h264.c_PacketizeFlush.c'
source_filename = "AnghaBench/vlc/modules/packetizer/extr_h264.c_PacketizeFlush.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 @PacketizeFlush], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @PacketizeFlush(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @packetizer_Flush(ptr noundef %2) #2
ret void
}
declare i32 @packetizer_Flush(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_4__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/vlc/modules/packetizer/extr_h264.c_PacketizeFlush.c'
source_filename = "AnghaBench/vlc/modules/packetizer/extr_h264.c_PacketizeFlush.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 @PacketizeFlush], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @PacketizeFlush(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @packetizer_Flush(ptr noundef %2) #2
ret void
}
declare i32 @packetizer_Flush(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_4__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| vlc_modules_packetizer_extr_h264.c_PacketizeFlush |
; ModuleID = 'AnghaBench/nginx/src/http/extr_ngx_http_upstream.c_ngx_http_upstream_process_content_length.c'
source_filename = "AnghaBench/nginx/src/http/extr_ngx_http_upstream.c_ngx_http_upstream_process_content_length.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 { i32, ptr }
%struct.TYPE_9__ = type { i32, i32 }
@NGX_OK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ngx_http_upstream_process_content_length], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ngx_http_upstream_process_content_length(ptr nocapture noundef readonly %0, ptr noundef %1, i32 %2) #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 1
store ptr %1, ptr %5, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.TYPE_9__, ptr %1, i64 0, i32 1
%7 = load i32, ptr %6, align 4, !tbaa !14
%8 = load i32, ptr %1, align 4, !tbaa !17
%9 = tail call i32 @ngx_atoof(i32 noundef %7, i32 noundef %8) #2
store i32 %9, ptr %4, align 8, !tbaa !18
%10 = load i32, ptr @NGX_OK, align 4, !tbaa !19
ret i32 %10
}
declare i32 @ngx_atoof(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_12__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"TYPE_11__", !12, i64 0}
!12 = !{!"TYPE_8__", !13, i64 0, !7, i64 8}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !13, i64 4}
!15 = !{!"TYPE_10__", !16, i64 0}
!16 = !{!"TYPE_9__", !13, i64 0, !13, i64 4}
!17 = !{!15, !13, i64 0}
!18 = !{!11, !13, i64 0}
!19 = !{!13, !13, i64 0}
| ; ModuleID = 'AnghaBench/nginx/src/http/extr_ngx_http_upstream.c_ngx_http_upstream_process_content_length.c'
source_filename = "AnghaBench/nginx/src/http/extr_ngx_http_upstream.c_ngx_http_upstream_process_content_length.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NGX_OK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ngx_http_upstream_process_content_length], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ngx_http_upstream_process_content_length(ptr nocapture noundef readonly %0, ptr noundef %1, i32 %2) #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %4, i64 8
store ptr %1, ptr %5, align 8, !tbaa !11
%6 = getelementptr inbounds i8, ptr %1, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !15
%8 = load i32, ptr %1, align 4, !tbaa !18
%9 = tail call i32 @ngx_atoof(i32 noundef %7, i32 noundef %8) #2
store i32 %9, ptr %4, align 8, !tbaa !19
%10 = load i32, ptr @NGX_OK, align 4, !tbaa !20
ret i32 %10
}
declare i32 @ngx_atoof(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_12__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"TYPE_11__", !13, i64 0}
!13 = !{!"TYPE_8__", !14, i64 0, !8, i64 8}
!14 = !{!"int", !9, i64 0}
!15 = !{!16, !14, i64 4}
!16 = !{!"TYPE_10__", !17, i64 0}
!17 = !{!"TYPE_9__", !14, i64 0, !14, i64 4}
!18 = !{!16, !14, i64 0}
!19 = !{!12, !14, i64 0}
!20 = !{!14, !14, i64 0}
| nginx_src_http_extr_ngx_http_upstream.c_ngx_http_upstream_process_content_length |
; ModuleID = 'AnghaBench/reactos/modules/rostests/apitests/dbghelp/extr_data.c_tmpdir.c'
source_filename = "AnghaBench/reactos/modules/rostests/apitests/dbghelp/extr_data.c_tmpdir.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"
@szTempPath = dso_local local_unnamed_addr global ptr null, align 8
@MAX_PATH = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"dbghelp_tst\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @tmpdir], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @tmpdir() #0 {
%1 = load ptr, ptr @szTempPath, align 8, !tbaa !5
%2 = load i8, ptr %1, align 1, !tbaa !9
%3 = icmp eq i8 %2, 0
br i1 %3, label %4, label %10
4: ; preds = %0
%5 = load i32, ptr @MAX_PATH, align 4, !tbaa !10
%6 = tail call i32 @GetTempPathA(i32 noundef %5, ptr noundef nonnull %1) #2
%7 = load ptr, ptr @szTempPath, align 8, !tbaa !5
%8 = tail call i32 @lstrcatA(ptr noundef %7, ptr noundef nonnull @.str) #2
%9 = load ptr, ptr @szTempPath, align 8, !tbaa !5
br label %10
10: ; preds = %4, %0
%11 = phi ptr [ %9, %4 ], [ %1, %0 ]
ret ptr %11
}
declare i32 @GetTempPathA(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lstrcatA(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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/modules/rostests/apitests/dbghelp/extr_data.c_tmpdir.c'
source_filename = "AnghaBench/reactos/modules/rostests/apitests/dbghelp/extr_data.c_tmpdir.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@szTempPath = common local_unnamed_addr global ptr null, align 8
@MAX_PATH = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"dbghelp_tst\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @tmpdir], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @tmpdir() #0 {
%1 = load ptr, ptr @szTempPath, align 8, !tbaa !6
%2 = load i8, ptr %1, align 1, !tbaa !10
%3 = icmp eq i8 %2, 0
br i1 %3, label %4, label %10
4: ; preds = %0
%5 = load i32, ptr @MAX_PATH, align 4, !tbaa !11
%6 = tail call i32 @GetTempPathA(i32 noundef %5, ptr noundef nonnull %1) #2
%7 = load ptr, ptr @szTempPath, align 8, !tbaa !6
%8 = tail call i32 @lstrcatA(ptr noundef %7, ptr noundef nonnull @.str) #2
%9 = load ptr, ptr @szTempPath, align 8, !tbaa !6
br label %10
10: ; preds = %4, %0
%11 = phi ptr [ %9, %4 ], [ %1, %0 ]
ret ptr %11
}
declare i32 @GetTempPathA(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lstrcatA(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 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
| reactos_modules_rostests_apitests_dbghelp_extr_data.c_tmpdir |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/x86/mm/extr_tlb.c_flush_tlb_page.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/x86/mm/extr_tlb.c_flush_tlb_page.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 { i64, ptr }
@current = dso_local local_unnamed_addr global ptr null, align 8
@nr_cpu_ids = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @flush_tlb_page(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = tail call i32 (...) @preempt_disable() #2
%5 = load ptr, ptr @current, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !11
%8 = icmp eq ptr %7, %3
br i1 %8, label %9, label %17
9: ; preds = %2
%10 = load i64, ptr %5, align 8, !tbaa !14
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = tail call i32 @__flush_tlb_one(i64 noundef %1) #2
br label %17
14: ; preds = %9
%15 = tail call i32 (...) @smp_processor_id() #2
%16 = tail call i32 @leave_mm(i32 noundef %15) #2
br label %17
17: ; preds = %12, %14, %2
%18 = tail call i32 @mm_cpumask(ptr noundef %3) #2
%19 = tail call i32 (...) @smp_processor_id() #2
%20 = tail call i64 @cpumask_any_but(i32 noundef %18, i32 noundef %19) #2
%21 = load i64, ptr @nr_cpu_ids, align 8, !tbaa !15
%22 = icmp slt i64 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = tail call i32 @mm_cpumask(ptr noundef %3) #2
%25 = tail call i32 @flush_tlb_others(i32 noundef %24, ptr noundef %3, i64 noundef %1) #2
br label %26
26: ; preds = %23, %17
%27 = tail call i32 (...) @preempt_enable() #2
ret void
}
declare i32 @preempt_disable(...) local_unnamed_addr #1
declare i32 @__flush_tlb_one(i64 noundef) local_unnamed_addr #1
declare i32 @leave_mm(i32 noundef) local_unnamed_addr #1
declare i32 @smp_processor_id(...) local_unnamed_addr #1
declare i64 @cpumask_any_but(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mm_cpumask(ptr noundef) local_unnamed_addr #1
declare i32 @flush_tlb_others(i32 noundef, ptr noundef, i64 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 = !{!"vm_area_struct", !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, !7, i64 8}
!12 = !{!"TYPE_2__", !13, i64 0, !7, i64 8}
!13 = !{!"long", !8, i64 0}
!14 = !{!12, !13, i64 0}
!15 = !{!13, !13, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/x86/mm/extr_tlb.c_flush_tlb_page.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/x86/mm/extr_tlb.c_flush_tlb_page.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@current = common local_unnamed_addr global ptr null, align 8
@nr_cpu_ids = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @flush_tlb_page(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = tail call i32 @preempt_disable() #2
%5 = load ptr, ptr @current, align 8, !tbaa !11
%6 = getelementptr inbounds i8, ptr %5, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = icmp eq ptr %7, %3
br i1 %8, label %9, label %17
9: ; preds = %2
%10 = load i64, ptr %5, align 8, !tbaa !15
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = tail call i32 @__flush_tlb_one(i64 noundef %1) #2
br label %17
14: ; preds = %9
%15 = tail call i32 @smp_processor_id() #2
%16 = tail call i32 @leave_mm(i32 noundef %15) #2
br label %17
17: ; preds = %12, %14, %2
%18 = tail call i32 @mm_cpumask(ptr noundef %3) #2
%19 = tail call i32 @smp_processor_id() #2
%20 = tail call i64 @cpumask_any_but(i32 noundef %18, i32 noundef %19) #2
%21 = load i64, ptr @nr_cpu_ids, align 8, !tbaa !16
%22 = icmp slt i64 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = tail call i32 @mm_cpumask(ptr noundef %3) #2
%25 = tail call i32 @flush_tlb_others(i32 noundef %24, ptr noundef %3, i64 noundef %1) #2
br label %26
26: ; preds = %23, %17
%27 = tail call i32 @preempt_enable() #2
ret void
}
declare i32 @preempt_disable(...) local_unnamed_addr #1
declare i32 @__flush_tlb_one(i64 noundef) local_unnamed_addr #1
declare i32 @leave_mm(i32 noundef) local_unnamed_addr #1
declare i32 @smp_processor_id(...) local_unnamed_addr #1
declare i64 @cpumask_any_but(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mm_cpumask(ptr noundef) local_unnamed_addr #1
declare i32 @flush_tlb_others(i32 noundef, ptr noundef, i64 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 = !{!"vm_area_struct", !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, !8, i64 8}
!13 = !{!"TYPE_2__", !14, i64 0, !8, i64 8}
!14 = !{!"long", !9, i64 0}
!15 = !{!13, !14, i64 0}
!16 = !{!14, !14, i64 0}
| fastsocket_kernel_arch_x86_mm_extr_tlb.c_flush_tlb_page |
; ModuleID = 'AnghaBench/freebsd/lib/libc/stdio/extr_getwchar.c_getwchar_l.c'
source_filename = "AnghaBench/freebsd/lib/libc/stdio/extr_getwchar.c_getwchar_l.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"
@stdin = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @getwchar_l(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @stdin, align 4, !tbaa !5
%3 = tail call i32 @fgetwc_l(i32 noundef %2, i32 noundef %0) #2
ret i32 %3
}
declare i32 @fgetwc_l(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/lib/libc/stdio/extr_getwchar.c_getwchar_l.c'
source_filename = "AnghaBench/freebsd/lib/libc/stdio/extr_getwchar.c_getwchar_l.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@stdin = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @getwchar_l(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @stdin, align 4, !tbaa !6
%3 = tail call i32 @fgetwc_l(i32 noundef %2, i32 noundef %0) #2
ret i32 %3
}
declare i32 @fgetwc_l(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_lib_libc_stdio_extr_getwchar.c_getwchar_l |
; ModuleID = 'AnghaBench/linux/scripts/extr_insert-sys-cert.c_get_symbol_from_map.c'
source_filename = "AnghaBench/linux/scripts/extr_insert-sys-cert.c_get_symbol_from_map.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 = type { i32, ptr, ptr, i32, i64 }
@LINE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@SEEK_SET = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"File seek failed\00", align 1
@EXIT_FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Missing line ending.\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Unable to find symbol: %s\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_symbol_from_map], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @get_symbol_from_map(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3) #0 {
%5 = load i32, ptr @LINE_SIZE, align 4, !tbaa !5
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6, align 16
%8 = getelementptr inbounds %struct.sym, ptr %3, i64 0, i32 4
store i64 0, ptr %8, align 8, !tbaa !9
%9 = getelementptr inbounds %struct.sym, ptr %3, i64 0, i32 3
store i32 0, ptr %9, align 8, !tbaa !13
store i32 0, ptr %3, align 8, !tbaa !14
%10 = load i32, ptr @SEEK_SET, align 4, !tbaa !5
%11 = tail call i64 @fseek(ptr noundef %1, i32 noundef 0, i32 noundef %10) #5
%12 = icmp eq i64 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %4
%14 = tail call i32 @perror(ptr noundef nonnull @.str) #5
%15 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !5
%16 = tail call i32 @exit(i32 noundef %15) #6
unreachable
17: ; preds = %4, %26
%18 = load i32, ptr @LINE_SIZE, align 4, !tbaa !5
%19 = call i64 @fgets(ptr noundef nonnull %7, i32 noundef %18, ptr noundef %1) #5
%20 = icmp eq i64 %19, 0
br i1 %20, label %29, label %21
21: ; preds = %17
%22 = call ptr @strchr(ptr noundef nonnull %7, i8 noundef signext 10) #5
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str.1) #5
br label %43
26: ; preds = %21
%27 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %2)
%28 = icmp eq ptr %27, null
br i1 %28, label %17, label %31, !llvm.loop !15
29: ; preds = %17
%30 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str.2, ptr noundef %2) #5
br label %43
31: ; preds = %26
%32 = call ptr @strchr(ptr noundef nonnull %7, i8 noundef signext 32) #5
%33 = icmp eq ptr %32, null
br i1 %33, label %43, label %34
34: ; preds = %31
store i8 0, ptr %32, align 1, !tbaa !17
%35 = call i32 @strtoul(ptr nocapture noundef nonnull %7, ptr noundef null, i32 noundef 16)
store i32 %35, ptr %9, align 8, !tbaa !13
%36 = icmp eq i32 %35, 0
br i1 %36, label %43, label %37
37: ; preds = %34
%38 = call i32 @get_offset_from_address(ptr noundef %0, i32 noundef %35) #5
store i32 %38, ptr %3, align 8, !tbaa !14
%39 = getelementptr inbounds %struct.sym, ptr %3, i64 0, i32 1
store ptr %2, ptr %39, align 8, !tbaa !18
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %0, i64 %40
%42 = getelementptr inbounds %struct.sym, ptr %3, i64 0, i32 2
store ptr %41, ptr %42, align 8, !tbaa !19
br label %43
43: ; preds = %34, %31, %37, %29, %24
ret void
}
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @perror(ptr noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @strchr(ptr noundef, i8 noundef signext) local_unnamed_addr #1
declare i32 @err(ptr noundef, ...) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn
declare i32 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #4
declare i32 @get_offset_from_address(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 = { noreturn "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 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 #4 = { mustprogress nofree nounwind willreturn "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 = { nounwind }
attributes #6 = { noreturn 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 32}
!10 = !{!"sym", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !12, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !11, i64 8}
!19 = !{!10, !11, i64 16}
| ; ModuleID = 'AnghaBench/linux/scripts/extr_insert-sys-cert.c_get_symbol_from_map.c'
source_filename = "AnghaBench/linux/scripts/extr_insert-sys-cert.c_get_symbol_from_map.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LINE_SIZE = common local_unnamed_addr global i32 0, align 4
@SEEK_SET = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"File seek failed\00", align 1
@EXIT_FAILURE = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Missing line ending.\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Unable to find symbol: %s\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @get_symbol_from_map], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @get_symbol_from_map(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3) #0 {
%5 = load i32, ptr @LINE_SIZE, align 4, !tbaa !6
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6, align 1
%8 = getelementptr inbounds i8, ptr %3, i64 32
store i64 0, ptr %8, align 8, !tbaa !10
%9 = getelementptr inbounds i8, ptr %3, i64 24
store i32 0, ptr %9, align 8, !tbaa !14
store i32 0, ptr %3, align 8, !tbaa !15
%10 = load i32, ptr @SEEK_SET, align 4, !tbaa !6
%11 = tail call i64 @fseek(ptr noundef %1, i32 noundef 0, i32 noundef %10) #5
%12 = icmp eq i64 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %4
%14 = tail call i32 @perror(ptr noundef nonnull @.str) #5
%15 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !6
%16 = tail call i32 @exit(i32 noundef %15) #6
unreachable
17: ; preds = %4, %26
%18 = load i32, ptr @LINE_SIZE, align 4, !tbaa !6
%19 = call i64 @fgets(ptr noundef nonnull %7, i32 noundef %18, ptr noundef %1) #5
%20 = icmp eq i64 %19, 0
br i1 %20, label %29, label %21
21: ; preds = %17
%22 = call ptr @strchr(ptr noundef nonnull %7, i8 noundef signext 10) #5
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str.1) #5
br label %43
26: ; preds = %21
%27 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %2)
%28 = icmp eq ptr %27, null
br i1 %28, label %17, label %31, !llvm.loop !16
29: ; preds = %17
%30 = call i32 (ptr, ...) @err(ptr noundef nonnull @.str.2, ptr noundef %2) #5
br label %43
31: ; preds = %26
%32 = call ptr @strchr(ptr noundef nonnull %7, i8 noundef signext 32) #5
%33 = icmp eq ptr %32, null
br i1 %33, label %43, label %34
34: ; preds = %31
store i8 0, ptr %32, align 1, !tbaa !18
%35 = call i32 @strtoul(ptr nocapture noundef nonnull %7, ptr noundef null, i32 noundef 16)
store i32 %35, ptr %9, align 8, !tbaa !14
%36 = icmp eq i32 %35, 0
br i1 %36, label %43, label %37
37: ; preds = %34
%38 = call i32 @get_offset_from_address(ptr noundef %0, i32 noundef %35) #5
store i32 %38, ptr %3, align 8, !tbaa !15
%39 = getelementptr inbounds i8, ptr %3, i64 8
store ptr %2, ptr %39, align 8, !tbaa !19
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds i8, ptr %0, i64 %40
%42 = getelementptr inbounds i8, ptr %3, i64 16
store ptr %41, ptr %42, align 8, !tbaa !20
br label %43
43: ; preds = %34, %31, %37, %29, %24
ret void
}
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @perror(ptr noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @strchr(ptr noundef, i8 noundef signext) local_unnamed_addr #1
declare i32 @err(ptr noundef, ...) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nofree nounwind willreturn
declare i32 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #4
declare i32 @get_offset_from_address(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 = { noreturn "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 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 #4 = { mustprogress nofree nounwind willreturn "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 = { nounwind }
attributes #6 = { noreturn 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 32}
!11 = !{!"sym", !7, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !13, i64 32}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!11, !7, i64 24}
!15 = !{!11, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!8, !8, i64 0}
!19 = !{!11, !12, i64 8}
!20 = !{!11, !12, i64 16}
| linux_scripts_extr_insert-sys-cert.c_get_symbol_from_map |
; ModuleID = 'AnghaBench/linux/net/core/extr_dev_addr_lists.c___hw_addr_unsync_one.c'
source_filename = "AnghaBench/linux/net/core/extr_dev_addr_lists.c___hw_addr_unsync_one.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.netdev_hw_addr = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @__hw_addr_unsync_one], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @__hw_addr_unsync_one(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = getelementptr inbounds %struct.netdev_hw_addr, ptr %2, i64 0, i32 2
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = getelementptr inbounds %struct.netdev_hw_addr, ptr %2, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !10
%9 = tail call i32 @__hw_addr_del_ex(ptr noundef %0, i32 noundef %6, i32 noundef %3, i32 noundef %8, i32 noundef 0, i32 noundef 1) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %4
%12 = load i32, ptr %2, align 4, !tbaa !11
%13 = add nsw i32 %12, -1
store i32 %13, ptr %2, align 4, !tbaa !11
%14 = tail call i32 @__hw_addr_del_entry(ptr noundef %1, ptr noundef nonnull %2, i32 noundef 0, i32 noundef 0) #2
br label %15
15: ; preds = %4, %11
ret void
}
declare i32 @__hw_addr_del_ex(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__hw_addr_del_entry(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)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"netdev_hw_addr", !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 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/core/extr_dev_addr_lists.c___hw_addr_unsync_one.c'
source_filename = "AnghaBench/linux/net/core/extr_dev_addr_lists.c___hw_addr_unsync_one.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 @__hw_addr_unsync_one], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @__hw_addr_unsync_one(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = getelementptr inbounds i8, ptr %2, i64 8
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %2, i64 4
%8 = load i32, ptr %7, align 4, !tbaa !11
%9 = tail call i32 @__hw_addr_del_ex(ptr noundef %0, i32 noundef %6, i32 noundef %3, i32 noundef %8, i32 noundef 0, i32 noundef 1) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %4
%12 = load i32, ptr %2, align 4, !tbaa !12
%13 = add nsw i32 %12, -1
store i32 %13, ptr %2, align 4, !tbaa !12
%14 = tail call i32 @__hw_addr_del_entry(ptr noundef %1, ptr noundef nonnull %2, i32 noundef 0, i32 noundef 0) #2
br label %15
15: ; preds = %4, %11
ret void
}
declare i32 @__hw_addr_del_ex(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__hw_addr_del_entry(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)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"netdev_hw_addr", !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 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 0}
| linux_net_core_extr_dev_addr_lists.c___hw_addr_unsync_one |
; ModuleID = 'AnghaBench/freebsd/sys/dev/sec/extr_sec.c_sec_enqueue_desc.c'
source_filename = "AnghaBench/freebsd/sys/dev/sec/extr_sec.c_sec_enqueue_desc.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.sec_softc = type { i64, i32 }
@SEC_MAX_FIFO_LEVEL = dso_local local_unnamed_addr global i64 0, align 8
@controller = dso_local local_unnamed_addr global i32 0, align 4
@SEC_CHANNELS = dso_local local_unnamed_addr global i32 0, align 4
@SEC_CHAN_CSR2_FFLVL_S = dso_local local_unnamed_addr global i64 0, align 8
@SEC_CHAN_CSR2_FFLVL_M = dso_local local_unnamed_addr global i64 0, align 8
@SEC_CHAN_CSR3_FFLVL_S = dso_local local_unnamed_addr global i64 0, align 8
@SEC_CHAN_CSR3_FFLVL_M = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @sec_enqueue_desc], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sec_enqueue_desc(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = load i64, ptr @SEC_MAX_FIFO_LEVEL, align 8, !tbaa !5
%5 = load i32, ptr @controller, align 4, !tbaa !9
%6 = tail call i32 @SEC_LOCK_ASSERT(ptr noundef %0, i32 noundef %5) #2
%7 = icmp slt i32 %2, 0
br i1 %7, label %8, label %22
8: ; preds = %3
%9 = load i32, ptr @SEC_CHANNELS, align 4, !tbaa !9
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %46
11: ; preds = %8, %18
%12 = phi i32 [ %19, %18 ], [ 0, %8 ]
%13 = tail call i32 @SEC_CHAN_CSR(i32 noundef %2) #2
%14 = tail call i64 @SEC_READ(ptr noundef %0, i32 noundef %13) #2
%15 = load i64, ptr %0, align 8, !tbaa !11
%16 = and i64 %15, %14
%17 = icmp eq i64 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %11
%19 = add nuw nsw i32 %12, 1
%20 = load i32, ptr @SEC_CHANNELS, align 4, !tbaa !9
%21 = icmp slt i32 %19, %20
br i1 %21, label %11, label %46, !llvm.loop !13
22: ; preds = %11, %3
%23 = phi i32 [ %2, %3 ], [ %12, %11 ]
%24 = tail call i32 @SEC_CHAN_CSR(i32 noundef %23) #2
%25 = tail call i64 @SEC_READ(ptr noundef %0, i32 noundef %24) #2
%26 = getelementptr inbounds %struct.sec_softc, ptr %0, i64 0, i32 1
%27 = load i32, ptr %26, align 8, !tbaa !15
switch i32 %27, label %38 [
i32 2, label %28
i32 3, label %33
]
28: ; preds = %22
%29 = load i64, ptr @SEC_CHAN_CSR2_FFLVL_S, align 8, !tbaa !5
%30 = ashr i64 %25, %29
%31 = load i64, ptr @SEC_CHAN_CSR2_FFLVL_M, align 8, !tbaa !5
%32 = and i64 %30, %31
br label %38
33: ; preds = %22
%34 = load i64, ptr @SEC_CHAN_CSR3_FFLVL_S, align 8, !tbaa !5
%35 = ashr i64 %25, %34
%36 = load i64, ptr @SEC_CHAN_CSR3_FFLVL_M, align 8, !tbaa !5
%37 = and i64 %35, %36
br label %38
38: ; preds = %22, %33, %28
%39 = phi i64 [ %4, %22 ], [ %37, %33 ], [ %32, %28 ]
%40 = load i64, ptr @SEC_MAX_FIFO_LEVEL, align 8, !tbaa !5
%41 = icmp slt i64 %39, %40
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = tail call i32 @SEC_CHAN_FF(i32 noundef %23) #2
%44 = load i32, ptr %1, align 4, !tbaa !16
%45 = tail call i32 @SEC_WRITE(ptr noundef nonnull %0, i32 noundef %43, i32 noundef %44) #2
br label %46
46: ; preds = %18, %8, %38, %42
%47 = phi i32 [ %23, %42 ], [ -1, %38 ], [ -1, %8 ], [ -1, %18 ]
ret i32 %47
}
declare i32 @SEC_LOCK_ASSERT(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @SEC_READ(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SEC_CHAN_CSR(i32 noundef) local_unnamed_addr #1
declare i32 @SEC_WRITE(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SEC_CHAN_FF(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 = !{!"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}
!11 = !{!12, !6, i64 0}
!12 = !{!"sec_softc", !6, i64 0, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !10, i64 8}
!16 = !{!17, !10, i64 0}
!17 = !{!"sec_desc", !10, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/sec/extr_sec.c_sec_enqueue_desc.c'
source_filename = "AnghaBench/freebsd/sys/dev/sec/extr_sec.c_sec_enqueue_desc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SEC_MAX_FIFO_LEVEL = common local_unnamed_addr global i64 0, align 8
@controller = common local_unnamed_addr global i32 0, align 4
@SEC_CHANNELS = common local_unnamed_addr global i32 0, align 4
@SEC_CHAN_CSR2_FFLVL_S = common local_unnamed_addr global i64 0, align 8
@SEC_CHAN_CSR2_FFLVL_M = common local_unnamed_addr global i64 0, align 8
@SEC_CHAN_CSR3_FFLVL_S = common local_unnamed_addr global i64 0, align 8
@SEC_CHAN_CSR3_FFLVL_M = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @sec_enqueue_desc], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, -2147483648) i32 @sec_enqueue_desc(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = load i64, ptr @SEC_MAX_FIFO_LEVEL, align 8, !tbaa !6
%5 = load i32, ptr @controller, align 4, !tbaa !10
%6 = tail call i32 @SEC_LOCK_ASSERT(ptr noundef %0, i32 noundef %5) #2
%7 = icmp slt i32 %2, 0
br i1 %7, label %8, label %22
8: ; preds = %3
%9 = load i32, ptr @SEC_CHANNELS, align 4, !tbaa !10
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %46
11: ; preds = %8, %18
%12 = phi i32 [ %19, %18 ], [ 0, %8 ]
%13 = tail call i32 @SEC_CHAN_CSR(i32 noundef %2) #2
%14 = tail call i64 @SEC_READ(ptr noundef %0, i32 noundef %13) #2
%15 = load i64, ptr %0, align 8, !tbaa !12
%16 = and i64 %15, %14
%17 = icmp eq i64 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %11
%19 = add nuw nsw i32 %12, 1
%20 = load i32, ptr @SEC_CHANNELS, align 4, !tbaa !10
%21 = icmp slt i32 %19, %20
br i1 %21, label %11, label %46, !llvm.loop !14
22: ; preds = %11, %3
%23 = phi i32 [ %2, %3 ], [ %12, %11 ]
%24 = tail call i32 @SEC_CHAN_CSR(i32 noundef %23) #2
%25 = tail call i64 @SEC_READ(ptr noundef %0, i32 noundef %24) #2
%26 = getelementptr inbounds i8, ptr %0, i64 8
%27 = load i32, ptr %26, align 8, !tbaa !16
switch i32 %27, label %38 [
i32 2, label %28
i32 3, label %33
]
28: ; preds = %22
%29 = load i64, ptr @SEC_CHAN_CSR2_FFLVL_S, align 8, !tbaa !6
%30 = ashr i64 %25, %29
%31 = load i64, ptr @SEC_CHAN_CSR2_FFLVL_M, align 8, !tbaa !6
%32 = and i64 %30, %31
br label %38
33: ; preds = %22
%34 = load i64, ptr @SEC_CHAN_CSR3_FFLVL_S, align 8, !tbaa !6
%35 = ashr i64 %25, %34
%36 = load i64, ptr @SEC_CHAN_CSR3_FFLVL_M, align 8, !tbaa !6
%37 = and i64 %35, %36
br label %38
38: ; preds = %22, %33, %28
%39 = phi i64 [ %4, %22 ], [ %37, %33 ], [ %32, %28 ]
%40 = load i64, ptr @SEC_MAX_FIFO_LEVEL, align 8, !tbaa !6
%41 = icmp slt i64 %39, %40
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = tail call i32 @SEC_CHAN_FF(i32 noundef %23) #2
%44 = load i32, ptr %1, align 4, !tbaa !17
%45 = tail call i32 @SEC_WRITE(ptr noundef nonnull %0, i32 noundef %43, i32 noundef %44) #2
br label %46
46: ; preds = %18, %8, %38, %42
%47 = phi i32 [ %23, %42 ], [ -1, %38 ], [ -1, %8 ], [ -1, %18 ]
ret i32 %47
}
declare i32 @SEC_LOCK_ASSERT(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @SEC_READ(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SEC_CHAN_CSR(i32 noundef) local_unnamed_addr #1
declare i32 @SEC_WRITE(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SEC_CHAN_FF(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 = !{!"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}
!12 = !{!13, !7, i64 0}
!13 = !{!"sec_softc", !7, i64 0, !11, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!13, !11, i64 8}
!17 = !{!18, !11, i64 0}
!18 = !{!"sec_desc", !11, i64 0}
| freebsd_sys_dev_sec_extr_sec.c_sec_enqueue_desc |
; ModuleID = 'AnghaBench/linux/net/ipv6/extr_inet6_hashtables.c_inet6_hash_connect.c'
source_filename = "AnghaBench/linux/net/ipv6/extr_inet6_hashtables.c_inet6_hash_connect.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"
@__inet6_check_established = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @inet6_hash_connect(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @inet_sk(ptr noundef %1) #2
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @inet6_sk_port_offset(ptr noundef %1) #2
br label %8
8: ; preds = %6, %2
%9 = phi i32 [ 0, %2 ], [ %7, %6 ]
%10 = load i32, ptr @__inet6_check_established, align 4, !tbaa !10
%11 = tail call i32 @__inet_hash_connect(ptr noundef %0, ptr noundef %1, i32 noundef %9, i32 noundef %10) #2
ret i32 %11
}
declare ptr @inet_sk(ptr noundef) local_unnamed_addr #1
declare i32 @inet6_sk_port_offset(ptr noundef) local_unnamed_addr #1
declare i32 @__inet_hash_connect(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)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_2__", !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/net/ipv6/extr_inet6_hashtables.c_inet6_hash_connect.c'
source_filename = "AnghaBench/linux/net/ipv6/extr_inet6_hashtables.c_inet6_hash_connect.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@__inet6_check_established = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @inet6_hash_connect(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @inet_sk(ptr noundef %1) #2
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @inet6_sk_port_offset(ptr noundef %1) #2
br label %8
8: ; preds = %6, %2
%9 = phi i32 [ 0, %2 ], [ %7, %6 ]
%10 = load i32, ptr @__inet6_check_established, align 4, !tbaa !11
%11 = tail call i32 @__inet_hash_connect(ptr noundef %0, ptr noundef %1, i32 noundef %9, i32 noundef %10) #2
ret i32 %11
}
declare ptr @inet_sk(ptr noundef) local_unnamed_addr #1
declare i32 @inet6_sk_port_offset(ptr noundef) local_unnamed_addr #1
declare i32 @__inet_hash_connect(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)"}
!6 = !{!7, !8, 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}
| linux_net_ipv6_extr_inet6_hashtables.c_inet6_hash_connect |
; ModuleID = 'AnghaBench/Craft/deps/lodepng/extr_lodepng.c_addChunk_IDAT.c'
source_filename = "AnghaBench/Craft/deps/lodepng/extr_lodepng.c_addChunk_IDAT.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 }
@.str = private unnamed_addr constant [5 x i8] c"IDAT\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @addChunk_IDAT], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @addChunk_IDAT(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca %struct.TYPE_6__, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = call i32 @ucvector_init(ptr noundef nonnull %5) #3
%7 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 0, i32 1
%8 = call i32 @zlib_compress(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef %1, i64 noundef %2, ptr noundef %3) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %4
%11 = load i32, ptr %7, align 4, !tbaa !5
%12 = load i32, ptr %5, align 4, !tbaa !10
%13 = call i32 @addChunk(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %11, i32 noundef %12) #3
br label %14
14: ; preds = %10, %4
%15 = phi i32 [ %8, %4 ], [ %13, %10 ]
%16 = call i32 @ucvector_cleanup(ptr noundef nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret i32 %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 @ucvector_init(ptr noundef) local_unnamed_addr #2
declare i32 @zlib_compress(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @addChunk(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ucvector_cleanup(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 4}
!6 = !{!"TYPE_6__", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/Craft/deps/lodepng/extr_lodepng.c_addChunk_IDAT.c'
source_filename = "AnghaBench/Craft/deps/lodepng/extr_lodepng.c_addChunk_IDAT.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { i32, i32 }
@.str = private unnamed_addr constant [5 x i8] c"IDAT\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @addChunk_IDAT], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @addChunk_IDAT(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca %struct.TYPE_6__, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = call i32 @ucvector_init(ptr noundef nonnull %5) #3
%7 = getelementptr inbounds i8, ptr %5, i64 4
%8 = call i32 @zlib_compress(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef %1, i64 noundef %2, ptr noundef %3) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %4
%11 = load i32, ptr %7, align 4, !tbaa !6
%12 = load i32, ptr %5, align 4, !tbaa !11
%13 = call i32 @addChunk(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %11, i32 noundef %12) #3
br label %14
14: ; preds = %10, %4
%15 = phi i32 [ %8, %4 ], [ %13, %10 ]
%16 = call i32 @ucvector_cleanup(ptr noundef nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret i32 %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 @ucvector_init(ptr noundef) local_unnamed_addr #2
declare i32 @zlib_compress(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @addChunk(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ucvector_cleanup(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 4}
!7 = !{!"TYPE_6__", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
| Craft_deps_lodepng_extr_lodepng.c_addChunk_IDAT |
; ModuleID = 'AnghaBench/linux/drivers/hwtracing/intel_th/extr_msu.c_msc_iter_install.c'
source_filename = "AnghaBench/linux/drivers/hwtracing/intel_th/extr_msu.c_msc_iter_install.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.msc = type { i32, i32, i64 }
%struct.msc_iter = type { i32, ptr }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @msc_iter_install], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @msc_iter_install(ptr noundef %0) #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%3 = tail call ptr @kzalloc(i32 noundef 16, i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%7 = sub nsw i32 0, %6
%8 = tail call ptr @ERR_PTR(i32 noundef %7) #2
br label %26
9: ; preds = %1
%10 = tail call i32 @mutex_lock(ptr noundef %0) #2
%11 = getelementptr inbounds %struct.msc, ptr %0, i64 0, i32 2
%12 = load i64, ptr %11, align 8, !tbaa !9
%13 = icmp eq i64 %12, 0
br i1 %13, label %19, label %14
14: ; preds = %9
%15 = tail call i32 @kfree(ptr noundef nonnull %3) #2
%16 = load i32, ptr @EBUSY, align 4, !tbaa !5
%17 = sub nsw i32 0, %16
%18 = tail call ptr @ERR_PTR(i32 noundef %17) #2
br label %23
19: ; preds = %9
%20 = getelementptr inbounds %struct.msc_iter, ptr %3, i64 0, i32 1
store ptr %0, ptr %20, align 8, !tbaa !12
%21 = getelementptr inbounds %struct.msc, ptr %0, i64 0, i32 1
%22 = tail call i32 @list_add_tail(ptr noundef nonnull %3, ptr noundef nonnull %21) #2
br label %23
23: ; preds = %19, %14
%24 = phi ptr [ %18, %14 ], [ %3, %19 ]
%25 = tail call i32 @mutex_unlock(ptr noundef nonnull %0) #2
br label %26
26: ; preds = %23, %5
%27 = phi ptr [ %24, %23 ], [ %8, %5 ]
ret ptr %27
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @list_add_tail(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"msc", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !14, i64 8}
!13 = !{!"msc_iter", !6, i64 0, !14, i64 8}
!14 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/hwtracing/intel_th/extr_msu.c_msc_iter_install.c'
source_filename = "AnghaBench/linux/drivers/hwtracing/intel_th/extr_msu.c_msc_iter_install.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
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@EBUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @msc_iter_install], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @msc_iter_install(ptr noundef %0) #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%3 = tail call ptr @kzalloc(i32 noundef 16, i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%7 = sub nsw i32 0, %6
%8 = tail call ptr @ERR_PTR(i32 noundef %7) #2
br label %26
9: ; preds = %1
%10 = tail call i32 @mutex_lock(ptr noundef %0) #2
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !10
%13 = icmp eq i64 %12, 0
br i1 %13, label %19, label %14
14: ; preds = %9
%15 = tail call i32 @kfree(ptr noundef nonnull %3) #2
%16 = load i32, ptr @EBUSY, align 4, !tbaa !6
%17 = sub nsw i32 0, %16
%18 = tail call ptr @ERR_PTR(i32 noundef %17) #2
br label %23
19: ; preds = %9
%20 = getelementptr inbounds i8, ptr %3, i64 8
store ptr %0, ptr %20, align 8, !tbaa !13
%21 = getelementptr inbounds i8, ptr %0, i64 4
%22 = tail call i32 @list_add_tail(ptr noundef nonnull %3, ptr noundef nonnull %21) #2
br label %23
23: ; preds = %19, %14
%24 = phi ptr [ %18, %14 ], [ %3, %19 ]
%25 = tail call i32 @mutex_unlock(ptr noundef nonnull %0) #2
br label %26
26: ; preds = %23, %5
%27 = phi ptr [ %24, %23 ], [ %8, %5 ]
ret ptr %27
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @list_add_tail(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_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, !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 = !{!"msc", !7, i64 0, !7, i64 4, !12, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"msc_iter", !7, i64 0, !15, i64 8}
!15 = !{!"any pointer", !8, i64 0}
| linux_drivers_hwtracing_intel_th_extr_msu.c_msc_iter_install |
; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_nau8824.c_nau8824_i2c_probe.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_nau8824.c_nau8824_i2c_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"
%struct.i2c_client = type { i64, %struct.device }
%struct.device = type { i32 }
%struct.nau8824 = type { i32, i32, i64, ptr }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@nau8824_regmap_config = dso_local global i32 0, align 4
@NAU8824_REG_I2C_DEVICE_ID = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"Failed to read device id from the NAU8824: %d\0A\00", align 1
@nau8824_component_driver = dso_local global i32 0, align 4
@nau8824_dai = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @nau8824_i2c_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @nau8824_i2c_probe(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.i2c_client, ptr %0, i64 0, i32 1
%5 = tail call ptr @dev_get_platdata(ptr noundef nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %17
7: ; preds = %2
%8 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%9 = tail call ptr @devm_kzalloc(ptr noundef nonnull %4, i32 noundef 24, i32 noundef %8) #3
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%13 = sub nsw i32 0, %12
br label %49
14: ; preds = %7
%15 = tail call i32 @nau8824_read_device_properties(ptr noundef nonnull %4, ptr noundef nonnull %9) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %49
17: ; preds = %14, %2
%18 = phi ptr [ %5, %2 ], [ %9, %14 ]
%19 = tail call i32 @i2c_set_clientdata(ptr noundef %0, ptr noundef nonnull %18) #3
%20 = tail call i32 @devm_regmap_init_i2c(ptr noundef %0, ptr noundef nonnull @nau8824_regmap_config) #3
store i32 %20, ptr %18, align 8, !tbaa !9
%21 = tail call i64 @IS_ERR(i32 noundef %20) #3
%22 = icmp eq i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %17
%24 = load i32, ptr %18, align 8, !tbaa !9
%25 = tail call i32 @PTR_ERR(i32 noundef %24) #3
br label %49
26: ; preds = %17
%27 = getelementptr inbounds %struct.nau8824, ptr %18, i64 0, i32 3
store ptr %4, ptr %27, align 8, !tbaa !13
%28 = load i64, ptr %0, align 8, !tbaa !14
%29 = getelementptr inbounds %struct.nau8824, ptr %18, i64 0, i32 2
store i64 %28, ptr %29, align 8, !tbaa !17
%30 = getelementptr inbounds %struct.nau8824, ptr %18, i64 0, i32 1
%31 = tail call i32 @sema_init(ptr noundef nonnull %30, i32 noundef 1) #3
%32 = tail call i32 @nau8824_print_device_properties(ptr noundef nonnull %18) #3
%33 = load i32, ptr %18, align 8, !tbaa !9
%34 = load i32, ptr @NAU8824_REG_I2C_DEVICE_ID, align 4, !tbaa !5
%35 = call i32 @regmap_read(i32 noundef %33, i32 noundef %34, ptr noundef nonnull %3) #3
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %26
%38 = call i32 @dev_err(ptr noundef nonnull %4, ptr noundef nonnull @.str, i32 noundef %35) #3
br label %49
39: ; preds = %26
%40 = load i32, ptr %18, align 8, !tbaa !9
%41 = call i32 @nau8824_reset_chip(i32 noundef %40) #3
%42 = call i32 @nau8824_init_regs(ptr noundef nonnull %18) #3
%43 = load i64, ptr %0, align 8, !tbaa !14
%44 = icmp eq i64 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %39
%46 = call i32 @nau8824_setup_irq(ptr noundef nonnull %18) #3
br label %47
47: ; preds = %45, %39
%48 = call i32 @devm_snd_soc_register_component(ptr noundef nonnull %4, ptr noundef nonnull @nau8824_component_driver, ptr noundef nonnull @nau8824_dai, i32 noundef 1) #3
br label %49
49: ; preds = %14, %47, %37, %23, %11
%50 = phi i32 [ %25, %23 ], [ %35, %37 ], [ %48, %47 ], [ %13, %11 ], [ %15, %14 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %50
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @dev_get_platdata(ptr noundef) local_unnamed_addr #2
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_read_device_properties(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @i2c_set_clientdata(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @devm_regmap_init_i2c(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @sema_init(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_print_device_properties(ptr noundef) local_unnamed_addr #2
declare i32 @regmap_read(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_reset_chip(i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_init_regs(ptr noundef) local_unnamed_addr #2
declare i32 @nau8824_setup_irq(ptr noundef) local_unnamed_addr #2
declare i32 @devm_snd_soc_register_component(ptr noundef, 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 = { 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 = !{!"nau8824", !6, i64 0, !6, i64 4, !11, i64 8, !12, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !12, i64 16}
!14 = !{!15, !11, i64 0}
!15 = !{!"i2c_client", !11, i64 0, !16, i64 8}
!16 = !{!"device", !6, i64 0}
!17 = !{!10, !11, i64 8}
| ; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_nau8824.c_nau8824_i2c_probe.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_nau8824.c_nau8824_i2c_probe.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
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@nau8824_regmap_config = common global i32 0, align 4
@NAU8824_REG_I2C_DEVICE_ID = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"Failed to read device id from the NAU8824: %d\0A\00", align 1
@nau8824_component_driver = common global i32 0, align 4
@nau8824_dai = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @nau8824_i2c_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @nau8824_i2c_probe(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = alloca i32, align 4
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = tail call ptr @dev_get_platdata(ptr noundef nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %17
7: ; preds = %2
%8 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%9 = tail call ptr @devm_kzalloc(ptr noundef nonnull %4, i32 noundef 24, i32 noundef %8) #3
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%13 = sub nsw i32 0, %12
br label %49
14: ; preds = %7
%15 = tail call i32 @nau8824_read_device_properties(ptr noundef nonnull %4, ptr noundef nonnull %9) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %49
17: ; preds = %14, %2
%18 = phi ptr [ %5, %2 ], [ %9, %14 ]
%19 = tail call i32 @i2c_set_clientdata(ptr noundef %0, ptr noundef nonnull %18) #3
%20 = tail call i32 @devm_regmap_init_i2c(ptr noundef %0, ptr noundef nonnull @nau8824_regmap_config) #3
store i32 %20, ptr %18, align 8, !tbaa !10
%21 = tail call i64 @IS_ERR(i32 noundef %20) #3
%22 = icmp eq i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %17
%24 = load i32, ptr %18, align 8, !tbaa !10
%25 = tail call i32 @PTR_ERR(i32 noundef %24) #3
br label %49
26: ; preds = %17
%27 = getelementptr inbounds i8, ptr %18, i64 16
store ptr %4, ptr %27, align 8, !tbaa !14
%28 = load i64, ptr %0, align 8, !tbaa !15
%29 = getelementptr inbounds i8, ptr %18, i64 8
store i64 %28, ptr %29, align 8, !tbaa !18
%30 = getelementptr inbounds i8, ptr %18, i64 4
%31 = tail call i32 @sema_init(ptr noundef nonnull %30, i32 noundef 1) #3
%32 = tail call i32 @nau8824_print_device_properties(ptr noundef nonnull %18) #3
%33 = load i32, ptr %18, align 8, !tbaa !10
%34 = load i32, ptr @NAU8824_REG_I2C_DEVICE_ID, align 4, !tbaa !6
%35 = call i32 @regmap_read(i32 noundef %33, i32 noundef %34, ptr noundef nonnull %3) #3
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %26
%38 = call i32 @dev_err(ptr noundef nonnull %4, ptr noundef nonnull @.str, i32 noundef %35) #3
br label %49
39: ; preds = %26
%40 = load i32, ptr %18, align 8, !tbaa !10
%41 = call i32 @nau8824_reset_chip(i32 noundef %40) #3
%42 = call i32 @nau8824_init_regs(ptr noundef nonnull %18) #3
%43 = load i64, ptr %0, align 8, !tbaa !15
%44 = icmp eq i64 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %39
%46 = call i32 @nau8824_setup_irq(ptr noundef nonnull %18) #3
br label %47
47: ; preds = %45, %39
%48 = call i32 @devm_snd_soc_register_component(ptr noundef nonnull %4, ptr noundef nonnull @nau8824_component_driver, ptr noundef nonnull @nau8824_dai, i32 noundef 1) #3
br label %49
49: ; preds = %14, %47, %37, %23, %11
%50 = phi i32 [ %25, %23 ], [ %35, %37 ], [ %48, %47 ], [ %13, %11 ], [ %15, %14 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %50
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @dev_get_platdata(ptr noundef) local_unnamed_addr #2
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_read_device_properties(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @i2c_set_clientdata(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @devm_regmap_init_i2c(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @sema_init(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_print_device_properties(ptr noundef) local_unnamed_addr #2
declare i32 @regmap_read(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_reset_chip(i32 noundef) local_unnamed_addr #2
declare i32 @nau8824_init_regs(ptr noundef) local_unnamed_addr #2
declare i32 @nau8824_setup_irq(ptr noundef) local_unnamed_addr #2
declare i32 @devm_snd_soc_register_component(ptr noundef, 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 = { 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 = !{!"nau8824", !7, i64 0, !7, i64 4, !12, i64 8, !13, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !13, i64 16}
!15 = !{!16, !12, i64 0}
!16 = !{!"i2c_client", !12, i64 0, !17, i64 8}
!17 = !{!"device", !7, i64 0}
!18 = !{!11, !12, i64 8}
| linux_sound_soc_codecs_extr_nau8824.c_nau8824_i2c_probe |
; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_tlv320dac33.c_dac33_write_reg_cache.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_tlv320dac33.c_dac33_write_reg_cache.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"
@DAC33_CACHEREGNUM = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @dac33_write_reg_cache], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @dac33_write_reg_cache(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = tail call ptr @snd_soc_component_get_drvdata(ptr noundef %0) #2
%5 = load i64, ptr @DAC33_CACHEREGNUM, align 8, !tbaa !5
%6 = icmp ugt i64 %5, %1
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load ptr, ptr %4, align 8, !tbaa !9
%9 = getelementptr inbounds i64, ptr %8, i64 %1
store i64 %2, ptr %9, align 8, !tbaa !5
br label %10
10: ; preds = %3, %7
ret void
}
declare ptr @snd_soc_component_get_drvdata(ptr 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)"}
!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 = !{!"tlv320dac33_priv", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_tlv320dac33.c_dac33_write_reg_cache.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_tlv320dac33.c_dac33_write_reg_cache.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DAC33_CACHEREGNUM = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @dac33_write_reg_cache], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @dac33_write_reg_cache(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = tail call ptr @snd_soc_component_get_drvdata(ptr noundef %0) #2
%5 = load i64, ptr @DAC33_CACHEREGNUM, align 8, !tbaa !6
%6 = icmp ugt i64 %5, %1
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load ptr, ptr %4, align 8, !tbaa !10
%9 = getelementptr inbounds i64, ptr %8, i64 %1
store i64 %2, ptr %9, align 8, !tbaa !6
br label %10
10: ; preds = %3, %7
ret void
}
declare ptr @snd_soc_component_get_drvdata(ptr 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)"}
!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 = !{!"tlv320dac33_priv", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| linux_sound_soc_codecs_extr_tlv320dac33.c_dac33_write_reg_cache |
; ModuleID = 'AnghaBench/linux/kernel/sched/extr_fair.c_attach_task_cfs_rq.c'
source_filename = "AnghaBench/linux/kernel/sched/extr_fair.c_attach_task_cfs_rq.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 @attach_task_cfs_rq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @attach_task_cfs_rq(ptr noundef %0) #0 {
%2 = tail call ptr @cfs_rq_of(ptr noundef %0) #2
%3 = tail call i32 @attach_entity_cfs_rq(ptr noundef %0) #2
%4 = tail call i32 @vruntime_normalized(ptr noundef %0) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i64, ptr %2, align 8, !tbaa !5
%8 = load i32, ptr %0, align 4, !tbaa !10
%9 = trunc i64 %7 to i32
%10 = add i32 %8, %9
store i32 %10, ptr %0, align 4, !tbaa !10
br label %11
11: ; preds = %6, %1
ret void
}
declare ptr @cfs_rq_of(ptr noundef) local_unnamed_addr #1
declare i32 @attach_entity_cfs_rq(ptr noundef) local_unnamed_addr #1
declare i32 @vruntime_normalized(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 = !{!"cfs_rq", !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 = !{!"sched_entity", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/kernel/sched/extr_fair.c_attach_task_cfs_rq.c'
source_filename = "AnghaBench/linux/kernel/sched/extr_fair.c_attach_task_cfs_rq.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 @attach_task_cfs_rq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @attach_task_cfs_rq(ptr noundef %0) #0 {
%2 = tail call ptr @cfs_rq_of(ptr noundef %0) #2
%3 = tail call i32 @attach_entity_cfs_rq(ptr noundef %0) #2
%4 = tail call i32 @vruntime_normalized(ptr noundef %0) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i64, ptr %2, align 8, !tbaa !6
%8 = load i32, ptr %0, align 4, !tbaa !11
%9 = trunc i64 %7 to i32
%10 = add i32 %8, %9
store i32 %10, ptr %0, align 4, !tbaa !11
br label %11
11: ; preds = %6, %1
ret void
}
declare ptr @cfs_rq_of(ptr noundef) local_unnamed_addr #1
declare i32 @attach_entity_cfs_rq(ptr noundef) local_unnamed_addr #1
declare i32 @vruntime_normalized(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 = !{!"cfs_rq", !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 = !{!"sched_entity", !13, i64 0}
!13 = !{!"int", !9, i64 0}
| linux_kernel_sched_extr_fair.c_attach_task_cfs_rq |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/extr_pcie.c_brcmf_pcie_buscoreprep.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/extr_pcie.c_brcmf_pcie_buscoreprep.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 @brcmf_pcie_buscoreprep], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @brcmf_pcie_buscoreprep(ptr noundef %0) #0 {
%2 = tail call i32 @brcmf_pcie_get_resource(ptr noundef %0) #2
ret i32 %2
}
declare i32 @brcmf_pcie_get_resource(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/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/extr_pcie.c_brcmf_pcie_buscoreprep.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/extr_pcie.c_brcmf_pcie_buscoreprep.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 @brcmf_pcie_buscoreprep], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @brcmf_pcie_buscoreprep(ptr noundef %0) #0 {
%2 = tail call i32 @brcmf_pcie_get_resource(ptr noundef %0) #2
ret i32 %2
}
declare i32 @brcmf_pcie_get_resource(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)"}
| linux_drivers_net_wireless_broadcom_brcm80211_brcmfmac_extr_pcie.c_brcmf_pcie_buscoreprep |
; ModuleID = 'AnghaBench/linux/drivers/acpi/extr_pptt.c_fetch_pptt_node.c'
source_filename = "AnghaBench/linux/drivers/acpi/extr_pptt.c_fetch_pptt_node.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 @fetch_pptt_node], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @fetch_pptt_node(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i64 @fetch_pptt_subtable(ptr noundef %0, i32 noundef %1) #2
%4 = inttoptr i64 %3 to ptr
ret ptr %4
}
declare i64 @fetch_pptt_subtable(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/acpi/extr_pptt.c_fetch_pptt_node.c'
source_filename = "AnghaBench/linux/drivers/acpi/extr_pptt.c_fetch_pptt_node.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 @fetch_pptt_node], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @fetch_pptt_node(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i64 @fetch_pptt_subtable(ptr noundef %0, i32 noundef %1) #2
%4 = inttoptr i64 %3 to ptr
ret ptr %4
}
declare i64 @fetch_pptt_subtable(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_acpi_extr_pptt.c_fetch_pptt_node |
; ModuleID = 'AnghaBench/zfs/cmd/ztest/extr_ztest.c_ztest_trim.c'
source_filename = "AnghaBench/zfs/cmd/ztest/extr_ztest.c_ztest_trim.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 }
%struct.TYPE_10__ = type { i32, ptr, i32 }
@ztest_spa = dso_local local_unnamed_addr global ptr null, align 8
@ztest_vdev_lock = dso_local global i32 0, align 4
@SCL_VDEV = dso_local local_unnamed_addr global i32 0, align 4
@FTAG = dso_local local_unnamed_addr global i32 0, align 4
@RW_READER = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"vd %p, guid %llu\00", align 1
@POOL_TRIM_FUNCS = dso_local local_unnamed_addr global i32 0, align 4
@ztest_opts = dso_local local_unnamed_addr global %struct.TYPE_12__ zeroinitializer, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"Cancel TRIM %s\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c" failed (no TRIM active)\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Start TRIM %s\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c" failed (already active)\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c" failed (error %d)\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Suspend TRIM %s\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @ztest_trim(ptr nocapture noundef readnone %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @ztest_spa, align 8, !tbaa !5
%4 = tail call i32 @mutex_enter(ptr noundef nonnull @ztest_vdev_lock) #4
%5 = load i32, ptr @SCL_VDEV, align 4, !tbaa !9
%6 = load i32, ptr @FTAG, align 4, !tbaa !9
%7 = load i32, ptr @RW_READER, align 4, !tbaa !9
%8 = tail call i32 @spa_config_enter(ptr noundef %3, i32 noundef %5, i32 noundef %6, i32 noundef %7) #4
%9 = load i32, ptr %3, align 4, !tbaa !11
%10 = tail call ptr @ztest_random_concrete_vdev_leaf(i32 noundef %9) #4
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, ptr @SCL_VDEV, align 4, !tbaa !9
%14 = load i32, ptr @FTAG, align 4, !tbaa !9
%15 = tail call i32 @spa_config_exit(ptr noundef nonnull %3, i32 noundef %13, i32 noundef %14) #4
br label %74
16: ; preds = %2
%17 = load i32, ptr %10, align 8, !tbaa !13
%18 = getelementptr inbounds %struct.TYPE_10__, ptr %10, i64 0, i32 2
%19 = load i32, ptr %18, align 8, !tbaa !15
%20 = tail call ptr @strdup(i32 noundef %19) #4
%21 = getelementptr inbounds %struct.TYPE_10__, ptr %10, i64 0, i32 1
%22 = load ptr, ptr %21, align 8, !tbaa !16
%23 = icmp ne ptr %22, null
%24 = tail call i32 @zfs_dbgmsg(ptr noundef nonnull @.str, ptr noundef nonnull %10, i32 noundef %17) #4
%25 = load i32, ptr @SCL_VDEV, align 4, !tbaa !9
%26 = load i32, ptr @FTAG, align 4, !tbaa !9
%27 = tail call i32 @spa_config_exit(ptr noundef nonnull %3, i32 noundef %25, i32 noundef %26) #4
%28 = load i32, ptr @POOL_TRIM_FUNCS, align 4, !tbaa !9
%29 = tail call i32 @ztest_random(i32 noundef %28) #4
%30 = tail call i32 @ztest_random(i32 noundef 30) #4
%31 = shl nuw i32 1, %30
%32 = tail call i32 @ztest_random(i32 noundef 5) #4
%33 = icmp sgt i32 %32, 0
%34 = zext i1 %33 to i32
%35 = tail call i32 @ztest_random(i32 noundef 5) #4
%36 = icmp sgt i32 %35, 0
%37 = zext i1 %36 to i32
%38 = tail call ptr (...) @fnvlist_alloc() #4
%39 = tail call ptr (...) @fnvlist_alloc() #4
%40 = tail call i32 @fnvlist_add_uint64(ptr noundef %38, ptr noundef %20, i32 noundef %17) #4
%41 = tail call i32 @spa_vdev_trim(ptr noundef nonnull %3, ptr noundef %38, i32 noundef %29, i32 noundef %31, i32 noundef %34, i32 noundef %37, ptr noundef %39) #4
%42 = tail call i32 @fnvlist_free(ptr noundef %38) #4
%43 = tail call i32 @fnvlist_free(ptr noundef %39) #4
switch i32 %29, label %72 [
i32 130, label %44
i32 129, label %51
i32 128, label %63
]
44: ; preds = %16
%45 = load i32, ptr @ztest_opts, align 4, !tbaa !17
%46 = icmp sgt i32 %45, 3
br i1 %46, label %47, label %72
47: ; preds = %44
%48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %20)
br i1 %23, label %70, label %49
49: ; preds = %47
%50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
br label %70
51: ; preds = %16
%52 = load i32, ptr @ztest_opts, align 4, !tbaa !17
%53 = icmp sgt i32 %52, 3
br i1 %53, label %54, label %72
54: ; preds = %51
%55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %20)
%56 = icmp eq i32 %41, 0
%57 = select i1 %23, i1 %56, i1 false
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
br label %70
60: ; preds = %54
br i1 %56, label %70, label %61
61: ; preds = %60
%62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %41)
br label %70
63: ; preds = %16
%64 = load i32, ptr @ztest_opts, align 4, !tbaa !17
%65 = icmp sgt i32 %64, 3
br i1 %65, label %66, label %72
66: ; preds = %63
%67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %20)
br i1 %23, label %70, label %68
68: ; preds = %66
%69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
br label %70
70: ; preds = %66, %68, %58, %61, %60, %47, %49
%71 = tail call i32 @putchar(i32 10)
br label %72
72: ; preds = %70, %63, %51, %44, %16
%73 = tail call i32 @free(ptr noundef %20) #4
br label %74
74: ; preds = %72, %12
%75 = tail call i32 @mutex_exit(ptr noundef nonnull @ztest_vdev_lock) #4
ret void
}
declare i32 @mutex_enter(ptr noundef) local_unnamed_addr #1
declare i32 @spa_config_enter(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ztest_random_concrete_vdev_leaf(i32 noundef) local_unnamed_addr #1
declare i32 @spa_config_exit(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_exit(ptr noundef) local_unnamed_addr #1
declare ptr @strdup(i32 noundef) local_unnamed_addr #1
declare i32 @zfs_dbgmsg(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ztest_random(i32 noundef) local_unnamed_addr #1
declare ptr @fnvlist_alloc(...) local_unnamed_addr #1
declare i32 @fnvlist_add_uint64(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spa_vdev_trim(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fnvlist_free(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3
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 = { 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 #3 = { nofree nounwind }
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 = !{!12, !10, i64 0}
!12 = !{!"TYPE_11__", !10, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"TYPE_10__", !10, i64 0, !6, i64 8, !10, i64 16}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !6, i64 8}
!17 = !{!18, !10, i64 0}
!18 = !{!"TYPE_12__", !10, i64 0}
| ; ModuleID = 'AnghaBench/zfs/cmd/ztest/extr_ztest.c_ztest_trim.c'
source_filename = "AnghaBench/zfs/cmd/ztest/extr_ztest.c_ztest_trim.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 }
@ztest_spa = common local_unnamed_addr global ptr null, align 8
@ztest_vdev_lock = common global i32 0, align 4
@SCL_VDEV = common local_unnamed_addr global i32 0, align 4
@FTAG = common local_unnamed_addr global i32 0, align 4
@RW_READER = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"vd %p, guid %llu\00", align 1
@POOL_TRIM_FUNCS = common local_unnamed_addr global i32 0, align 4
@ztest_opts = common local_unnamed_addr global %struct.TYPE_12__ zeroinitializer, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"Cancel TRIM %s\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c" failed (no TRIM active)\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Start TRIM %s\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c" failed (already active)\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c" failed (error %d)\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Suspend TRIM %s\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @ztest_trim(ptr nocapture noundef readnone %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @ztest_spa, align 8, !tbaa !6
%4 = tail call i32 @mutex_enter(ptr noundef nonnull @ztest_vdev_lock) #4
%5 = load i32, ptr @SCL_VDEV, align 4, !tbaa !10
%6 = load i32, ptr @FTAG, align 4, !tbaa !10
%7 = load i32, ptr @RW_READER, align 4, !tbaa !10
%8 = tail call i32 @spa_config_enter(ptr noundef %3, i32 noundef %5, i32 noundef %6, i32 noundef %7) #4
%9 = load i32, ptr %3, align 4, !tbaa !12
%10 = tail call ptr @ztest_random_concrete_vdev_leaf(i32 noundef %9) #4
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, ptr @SCL_VDEV, align 4, !tbaa !10
%14 = load i32, ptr @FTAG, align 4, !tbaa !10
%15 = tail call i32 @spa_config_exit(ptr noundef nonnull %3, i32 noundef %13, i32 noundef %14) #4
br label %74
16: ; preds = %2
%17 = load i32, ptr %10, align 8, !tbaa !14
%18 = getelementptr inbounds i8, ptr %10, i64 16
%19 = load i32, ptr %18, align 8, !tbaa !16
%20 = tail call ptr @strdup(i32 noundef %19) #4
%21 = getelementptr inbounds i8, ptr %10, i64 8
%22 = load ptr, ptr %21, align 8, !tbaa !17
%23 = icmp ne ptr %22, null
%24 = tail call i32 @zfs_dbgmsg(ptr noundef nonnull @.str, ptr noundef nonnull %10, i32 noundef %17) #4
%25 = load i32, ptr @SCL_VDEV, align 4, !tbaa !10
%26 = load i32, ptr @FTAG, align 4, !tbaa !10
%27 = tail call i32 @spa_config_exit(ptr noundef nonnull %3, i32 noundef %25, i32 noundef %26) #4
%28 = load i32, ptr @POOL_TRIM_FUNCS, align 4, !tbaa !10
%29 = tail call i32 @ztest_random(i32 noundef %28) #4
%30 = tail call i32 @ztest_random(i32 noundef 30) #4
%31 = shl nuw i32 1, %30
%32 = tail call i32 @ztest_random(i32 noundef 5) #4
%33 = icmp sgt i32 %32, 0
%34 = zext i1 %33 to i32
%35 = tail call i32 @ztest_random(i32 noundef 5) #4
%36 = icmp sgt i32 %35, 0
%37 = zext i1 %36 to i32
%38 = tail call ptr @fnvlist_alloc() #4
%39 = tail call ptr @fnvlist_alloc() #4
%40 = tail call i32 @fnvlist_add_uint64(ptr noundef %38, ptr noundef %20, i32 noundef %17) #4
%41 = tail call i32 @spa_vdev_trim(ptr noundef nonnull %3, ptr noundef %38, i32 noundef %29, i32 noundef %31, i32 noundef %34, i32 noundef %37, ptr noundef %39) #4
%42 = tail call i32 @fnvlist_free(ptr noundef %38) #4
%43 = tail call i32 @fnvlist_free(ptr noundef %39) #4
switch i32 %29, label %72 [
i32 130, label %44
i32 129, label %51
i32 128, label %63
]
44: ; preds = %16
%45 = load i32, ptr @ztest_opts, align 4, !tbaa !18
%46 = icmp sgt i32 %45, 3
br i1 %46, label %47, label %72
47: ; preds = %44
%48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %20)
br i1 %23, label %70, label %49
49: ; preds = %47
%50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
br label %70
51: ; preds = %16
%52 = load i32, ptr @ztest_opts, align 4, !tbaa !18
%53 = icmp sgt i32 %52, 3
br i1 %53, label %54, label %72
54: ; preds = %51
%55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef %20)
%56 = icmp eq i32 %41, 0
%57 = select i1 %23, i1 %56, i1 false
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
br label %70
60: ; preds = %54
br i1 %56, label %70, label %61
61: ; preds = %60
%62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %41)
br label %70
63: ; preds = %16
%64 = load i32, ptr @ztest_opts, align 4, !tbaa !18
%65 = icmp sgt i32 %64, 3
br i1 %65, label %66, label %72
66: ; preds = %63
%67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %20)
br i1 %23, label %70, label %68
68: ; preds = %66
%69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
br label %70
70: ; preds = %66, %68, %58, %61, %60, %47, %49
%71 = tail call i32 @putchar(i32 10)
br label %72
72: ; preds = %70, %63, %51, %44, %16
%73 = tail call i32 @free(ptr noundef %20) #4
br label %74
74: ; preds = %72, %12
%75 = tail call i32 @mutex_exit(ptr noundef nonnull @ztest_vdev_lock) #4
ret void
}
declare i32 @mutex_enter(ptr noundef) local_unnamed_addr #1
declare i32 @spa_config_enter(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ztest_random_concrete_vdev_leaf(i32 noundef) local_unnamed_addr #1
declare i32 @spa_config_exit(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_exit(ptr noundef) local_unnamed_addr #1
declare ptr @strdup(i32 noundef) local_unnamed_addr #1
declare i32 @zfs_dbgmsg(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ztest_random(i32 noundef) local_unnamed_addr #1
declare ptr @fnvlist_alloc(...) local_unnamed_addr #1
declare i32 @fnvlist_add_uint64(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spa_vdev_trim(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fnvlist_free(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) 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 = { "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 = { 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 #3 = { nofree nounwind }
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 = !{!13, !11, i64 0}
!13 = !{!"TYPE_11__", !11, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_10__", !11, i64 0, !7, i64 8, !11, i64 16}
!16 = !{!15, !11, i64 16}
!17 = !{!15, !7, i64 8}
!18 = !{!19, !11, i64 0}
!19 = !{!"TYPE_12__", !11, i64 0}
| zfs_cmd_ztest_extr_ztest.c_ztest_trim |
; ModuleID = 'AnghaBench/linux/drivers/usb/misc/extr_emi62.c_emi62_disconnect.c'
source_filename = "AnghaBench/linux/drivers/usb/misc/extr_emi62.c_emi62_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @emi62_disconnect], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @emi62_disconnect(ptr nocapture readnone %0) #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/linux/drivers/usb/misc/extr_emi62.c_emi62_disconnect.c'
source_filename = "AnghaBench/linux/drivers/usb/misc/extr_emi62.c_emi62_disconnect.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 @emi62_disconnect], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @emi62_disconnect(ptr nocapture readnone %0) #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)"}
| linux_drivers_usb_misc_extr_emi62.c_emi62_disconnect |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_scsi_transport_iscsi.c_iscsi_conn_match.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_scsi_transport_iscsi.c_iscsi_conn_match.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 }
@iscsi_connection_class = dso_local global %struct.TYPE_6__ zeroinitializer, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @iscsi_conn_match], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @iscsi_conn_match(ptr noundef readnone %0, ptr noundef %1) #0 {
%3 = tail call i32 @iscsi_is_conn_dev(ptr noundef %1) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %19, label %5
5: ; preds = %2
%6 = tail call ptr @iscsi_dev_to_conn(ptr noundef %1) #2
%7 = load i32, ptr %6, align 4, !tbaa !5
%8 = tail call ptr @iscsi_dev_to_session(i32 noundef %7) #2
%9 = tail call ptr @iscsi_session_to_shost(ptr noundef %8) #2
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = icmp eq i32 %10, 0
br i1 %11, label %19, label %12
12: ; preds = %5
%13 = tail call ptr @to_iscsi_internal(i32 noundef %10) #2
%14 = load ptr, ptr %13, align 8, !tbaa !13
%15 = icmp eq ptr %14, @iscsi_connection_class
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = icmp eq ptr %13, %0
%18 = zext i1 %17 to i32
br label %19
19: ; preds = %12, %5, %2, %16
%20 = phi i32 [ %18, %16 ], [ 0, %2 ], [ 0, %5 ], [ 0, %12 ]
ret i32 %20
}
declare i32 @iscsi_is_conn_dev(ptr noundef) local_unnamed_addr #1
declare ptr @iscsi_dev_to_conn(ptr noundef) local_unnamed_addr #1
declare ptr @iscsi_dev_to_session(i32 noundef) local_unnamed_addr #1
declare ptr @iscsi_session_to_shost(ptr noundef) local_unnamed_addr #1
declare ptr @to_iscsi_internal(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 = !{!"iscsi_cls_conn", !7, i64 0}
!7 = !{!"TYPE_5__", !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 = !{!"Scsi_Host", !8, i64 0}
!13 = !{!14, !17, i64 0}
!14 = !{!"iscsi_internal", !15, i64 0}
!15 = !{!"TYPE_4__", !16, i64 0}
!16 = !{!"attribute_container", !17, i64 0}
!17 = !{!"any pointer", !9, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_scsi_transport_iscsi.c_iscsi_conn_match.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_scsi_transport_iscsi.c_iscsi_conn_match.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { i32 }
@iscsi_connection_class = common global %struct.TYPE_6__ zeroinitializer, align 4
@llvm.used = appending global [1 x ptr] [ptr @iscsi_conn_match], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @iscsi_conn_match(ptr noundef readnone %0, ptr noundef %1) #0 {
%3 = tail call i32 @iscsi_is_conn_dev(ptr noundef %1) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %19, label %5
5: ; preds = %2
%6 = tail call ptr @iscsi_dev_to_conn(ptr noundef %1) #2
%7 = load i32, ptr %6, align 4, !tbaa !6
%8 = tail call ptr @iscsi_dev_to_session(i32 noundef %7) #2
%9 = tail call ptr @iscsi_session_to_shost(ptr noundef %8) #2
%10 = load i32, ptr %9, align 4, !tbaa !12
%11 = icmp eq i32 %10, 0
br i1 %11, label %19, label %12
12: ; preds = %5
%13 = tail call ptr @to_iscsi_internal(i32 noundef %10) #2
%14 = load ptr, ptr %13, align 8, !tbaa !14
%15 = icmp eq ptr %14, @iscsi_connection_class
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = icmp eq ptr %13, %0
%18 = zext i1 %17 to i32
br label %19
19: ; preds = %12, %5, %2, %16
%20 = phi i32 [ %18, %16 ], [ 0, %2 ], [ 0, %5 ], [ 0, %12 ]
ret i32 %20
}
declare i32 @iscsi_is_conn_dev(ptr noundef) local_unnamed_addr #1
declare ptr @iscsi_dev_to_conn(ptr noundef) local_unnamed_addr #1
declare ptr @iscsi_dev_to_session(i32 noundef) local_unnamed_addr #1
declare ptr @iscsi_session_to_shost(ptr noundef) local_unnamed_addr #1
declare ptr @to_iscsi_internal(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 = !{!"iscsi_cls_conn", !8, i64 0}
!8 = !{!"TYPE_5__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !9, i64 0}
!13 = !{!"Scsi_Host", !9, i64 0}
!14 = !{!15, !18, i64 0}
!15 = !{!"iscsi_internal", !16, i64 0}
!16 = !{!"TYPE_4__", !17, i64 0}
!17 = !{!"attribute_container", !18, i64 0}
!18 = !{!"any pointer", !10, i64 0}
| linux_drivers_scsi_extr_scsi_transport_iscsi.c_iscsi_conn_match |
; ModuleID = 'AnghaBench/linux/drivers/remoteproc/extr_keystone_remoteproc.c_keystone_rproc_remove.c'
source_filename = "AnghaBench/linux/drivers/remoteproc/extr_keystone_remoteproc.c_keystone_rproc_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @keystone_rproc_remove], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @keystone_rproc_remove(ptr noundef %0) #0 {
%2 = tail call ptr @platform_get_drvdata(ptr noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = tail call i32 @rproc_del(i32 noundef %3) #2
%5 = tail call i32 @pm_runtime_put_sync(ptr noundef %0) #2
%6 = tail call i32 @pm_runtime_disable(ptr noundef %0) #2
%7 = load i32, ptr %2, align 4, !tbaa !5
%8 = tail call i32 @rproc_free(i32 noundef %7) #2
%9 = tail call i32 @of_reserved_mem_device_release(ptr noundef %0) #2
ret i32 0
}
declare ptr @platform_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @rproc_del(i32 noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put_sync(ptr noundef) local_unnamed_addr #1
declare i32 @pm_runtime_disable(ptr noundef) local_unnamed_addr #1
declare i32 @rproc_free(i32 noundef) local_unnamed_addr #1
declare i32 @of_reserved_mem_device_release(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 = !{!"keystone_rproc", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/remoteproc/extr_keystone_remoteproc.c_keystone_rproc_remove.c'
source_filename = "AnghaBench/linux/drivers/remoteproc/extr_keystone_remoteproc.c_keystone_rproc_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 @keystone_rproc_remove], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @keystone_rproc_remove(ptr noundef %0) #0 {
%2 = tail call ptr @platform_get_drvdata(ptr noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = tail call i32 @rproc_del(i32 noundef %3) #2
%5 = tail call i32 @pm_runtime_put_sync(ptr noundef %0) #2
%6 = tail call i32 @pm_runtime_disable(ptr noundef %0) #2
%7 = load i32, ptr %2, align 4, !tbaa !6
%8 = tail call i32 @rproc_free(i32 noundef %7) #2
%9 = tail call i32 @of_reserved_mem_device_release(ptr noundef %0) #2
ret i32 0
}
declare ptr @platform_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @rproc_del(i32 noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put_sync(ptr noundef) local_unnamed_addr #1
declare i32 @pm_runtime_disable(ptr noundef) local_unnamed_addr #1
declare i32 @rproc_free(i32 noundef) local_unnamed_addr #1
declare i32 @of_reserved_mem_device_release(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 = !{!"keystone_rproc", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_remoteproc_extr_keystone_remoteproc.c_keystone_rproc_remove |
; ModuleID = 'AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPC_finishWithError.c'
source_filename = "AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPC_finishWithError.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 [29 x i8] c"- ZWRAPC_finishWithError=%d\0A\00", align 1
@Z_STREAM_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ZWRAPC_finishWithError], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ZWRAPC_finishWithError(ptr noundef %0, ptr noundef writeonly %1, i32 noundef %2) #0 {
%4 = tail call i32 @LOG_WRAPPERC(ptr noundef nonnull @.str, i32 noundef %2) #2
%5 = icmp eq ptr %0, null
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @ZWRAP_freeCCtx(ptr noundef nonnull %0) #2
br label %8
8: ; preds = %6, %3
%9 = icmp eq ptr %1, null
br i1 %9, label %11, label %10
10: ; preds = %8
store ptr null, ptr %1, align 8, !tbaa !5
br label %11
11: ; preds = %10, %8
%12 = icmp eq i32 %2, 0
%13 = load i32, ptr @Z_STREAM_ERROR, align 4
%14 = select i1 %12, i32 %13, i32 %2
ret i32 %14
}
declare i32 @LOG_WRAPPERC(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ZWRAP_freeCCtx(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_3__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPC_finishWithError.c'
source_filename = "AnghaBench/zstd/zlibWrapper/extr_zstd_zlibwrapper.c_ZWRAPC_finishWithError.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 [29 x i8] c"- ZWRAPC_finishWithError=%d\0A\00", align 1
@Z_STREAM_ERROR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ZWRAPC_finishWithError], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ZWRAPC_finishWithError(ptr noundef %0, ptr noundef writeonly %1, i32 noundef %2) #0 {
%4 = tail call i32 @LOG_WRAPPERC(ptr noundef nonnull @.str, i32 noundef %2) #2
%5 = icmp eq ptr %0, null
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @ZWRAP_freeCCtx(ptr noundef nonnull %0) #2
br label %8
8: ; preds = %6, %3
%9 = icmp eq ptr %1, null
br i1 %9, label %11, label %10
10: ; preds = %8
store ptr null, ptr %1, align 8, !tbaa !6
br label %11
11: ; preds = %10, %8
%12 = icmp eq i32 %2, 0
%13 = load i32, ptr @Z_STREAM_ERROR, align 4
%14 = select i1 %12, i32 %13, i32 %2
ret i32 %14
}
declare i32 @LOG_WRAPPERC(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ZWRAP_freeCCtx(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_3__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| zstd_zlibWrapper_extr_zstd_zlibwrapper.c_ZWRAPC_finishWithError |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/bnx2i/extr_bnx2i_iscsi.c_bnx2i_nl_set_path.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/bnx2i/extr_bnx2i_iscsi.c_bnx2i_nl_set_path.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"
@ISCSI_UEVENT_PATH_UPDATE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bnx2i_nl_set_path], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @bnx2i_nl_set_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @iscsi_host_priv(ptr noundef %0) #2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = load i32, ptr @ISCSI_UEVENT_PATH_UPDATE, align 4, !tbaa !12
%7 = tail call i32 %5(ptr noundef nonnull %4, i32 noundef %6, ptr noundef %1, i32 noundef 4) #2
ret i32 0
}
declare ptr @iscsi_host_priv(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 = !{!"bnx2i_hba", !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 = !{!"TYPE_2__", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/bnx2i/extr_bnx2i_iscsi.c_bnx2i_nl_set_path.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/bnx2i/extr_bnx2i_iscsi.c_bnx2i_nl_set_path.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ISCSI_UEVENT_PATH_UPDATE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bnx2i_nl_set_path], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @bnx2i_nl_set_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @iscsi_host_priv(ptr noundef %0) #2
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load i32, ptr @ISCSI_UEVENT_PATH_UPDATE, align 4, !tbaa !13
%7 = tail call i32 %5(ptr noundef nonnull %4, i32 noundef %6, ptr noundef %1, i32 noundef 4) #2
ret i32 0
}
declare ptr @iscsi_host_priv(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 = !{!"bnx2i_hba", !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 = !{!"TYPE_2__", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
| fastsocket_kernel_drivers_scsi_bnx2i_extr_bnx2i_iscsi.c_bnx2i_nl_set_path |
; ModuleID = 'AnghaBench/freebsd/sys/dev/dpaa/extr_if_dtsec.c_dtsec_fm_port_ex_to_str.c'
source_filename = "AnghaBench/freebsd/sys/dev/dpaa/extr_if_dtsec.c_dtsec_fm_port_ex_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"
@.str = private unnamed_addr constant [12 x i8] c"IM: RX busy\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"<Unknown Exception>\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @dtsec_fm_port_ex_to_str], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef nonnull ptr @dtsec_fm_port_ex_to_str(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 128
%3 = select i1 %2, ptr @.str, ptr @.str.1
ret ptr %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/freebsd/sys/dev/dpaa/extr_if_dtsec.c_dtsec_fm_port_ex_to_str.c'
source_filename = "AnghaBench/freebsd/sys/dev/dpaa/extr_if_dtsec.c_dtsec_fm_port_ex_to_str.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 [12 x i8] c"IM: RX busy\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"<Unknown Exception>\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @dtsec_fm_port_ex_to_str], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef nonnull ptr @dtsec_fm_port_ex_to_str(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 128
%3 = select i1 %2, ptr @.str, ptr @.str.1
ret ptr %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)"}
| freebsd_sys_dev_dpaa_extr_if_dtsec.c_dtsec_fm_port_ex_to_str |
; ModuleID = 'AnghaBench/libgit2/tests/rebase/extr_iterator.c_test_operations.c'
source_filename = "AnghaBench/libgit2/tests/rebase/extr_iterator.c_test_operations.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 }
@.str = private unnamed_addr constant [41 x i8] c"da9c51a23d02d931a486f45ad18cda05cf5d2b94\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"8d1f13f93c4995760ac07d129246ac1ff64c0be9\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"3069cc907e6294623e5917ef6de663928c1febfb\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"588e5d2f04d49707fe4aab865e1deacaf7ef6787\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"b146bd7608eac53d9bf9e1a6963543588b555c64\00", align 1
@GIT_REBASE_OPERATION_PICK = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_operations], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_operations(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca [5 x i32], align 16
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #3
%4 = call i32 @git_oid_fromstr(ptr noundef nonnull %3, ptr noundef nonnull @.str) #3
%5 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 1
%6 = call i32 @git_oid_fromstr(ptr noundef nonnull %5, ptr noundef nonnull @.str.1) #3
%7 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 2
%8 = call i32 @git_oid_fromstr(ptr noundef nonnull %7, ptr noundef nonnull @.str.2) #3
%9 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 3
%10 = call i32 @git_oid_fromstr(ptr noundef nonnull %9, ptr noundef nonnull @.str.3) #3
%11 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 4
%12 = call i32 @git_oid_fromstr(ptr noundef nonnull %11, ptr noundef nonnull @.str.4) #3
%13 = call i32 @git_rebase_operation_entrycount(ptr noundef %0) #3
%14 = call i32 @cl_assert_equal_i(i64 noundef 5, i32 noundef %13) #3
%15 = call i32 @git_rebase_operation_current(ptr noundef %0) #3
%16 = call i32 @cl_assert_equal_i(i64 noundef %1, i32 noundef %15) #3
%17 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 0) #3
%18 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !5
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %17, i64 0, i32 2
%20 = load i32, ptr %19, align 4, !tbaa !9
%21 = call i32 @cl_assert_equal_i(i64 noundef %18, i32 noundef %20) #3
%22 = getelementptr inbounds %struct.TYPE_3__, ptr %17, i64 0, i32 1
%23 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %3, ptr noundef nonnull %22) #3
%24 = load i32, ptr %17, align 4, !tbaa !12
%25 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %24) #3
%26 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 1) #3
%27 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !5
%28 = getelementptr inbounds %struct.TYPE_3__, ptr %26, i64 0, i32 2
%29 = load i32, ptr %28, align 4, !tbaa !9
%30 = call i32 @cl_assert_equal_i(i64 noundef %27, i32 noundef %29) #3
%31 = getelementptr inbounds %struct.TYPE_3__, ptr %26, i64 0, i32 1
%32 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %5, ptr noundef nonnull %31) #3
%33 = load i32, ptr %26, align 4, !tbaa !12
%34 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %33) #3
%35 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 2) #3
%36 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !5
%37 = getelementptr inbounds %struct.TYPE_3__, ptr %35, i64 0, i32 2
%38 = load i32, ptr %37, align 4, !tbaa !9
%39 = call i32 @cl_assert_equal_i(i64 noundef %36, i32 noundef %38) #3
%40 = getelementptr inbounds %struct.TYPE_3__, ptr %35, i64 0, i32 1
%41 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %7, ptr noundef nonnull %40) #3
%42 = load i32, ptr %35, align 4, !tbaa !12
%43 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %42) #3
%44 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 3) #3
%45 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !5
%46 = getelementptr inbounds %struct.TYPE_3__, ptr %44, i64 0, i32 2
%47 = load i32, ptr %46, align 4, !tbaa !9
%48 = call i32 @cl_assert_equal_i(i64 noundef %45, i32 noundef %47) #3
%49 = getelementptr inbounds %struct.TYPE_3__, ptr %44, i64 0, i32 1
%50 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %9, ptr noundef nonnull %49) #3
%51 = load i32, ptr %44, align 4, !tbaa !12
%52 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %51) #3
%53 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 4) #3
%54 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !5
%55 = getelementptr inbounds %struct.TYPE_3__, ptr %53, i64 0, i32 2
%56 = load i32, ptr %55, align 4, !tbaa !9
%57 = call i32 @cl_assert_equal_i(i64 noundef %54, i32 noundef %56) #3
%58 = getelementptr inbounds %struct.TYPE_3__, ptr %53, i64 0, i32 1
%59 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %11, ptr noundef nonnull %58) #3
%60 = load i32, ptr %53, align 4, !tbaa !12
%61 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %60) #3
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #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 @git_oid_fromstr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cl_assert_equal_i(i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @git_rebase_operation_entrycount(ptr noundef) local_unnamed_addr #2
declare i32 @git_rebase_operation_current(ptr noundef) local_unnamed_addr #2
declare ptr @git_rebase_operation_byindex(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @cl_assert_equal_oid(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cl_assert_equal_p(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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"TYPE_3__", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/libgit2/tests/rebase/extr_iterator.c_test_operations.c'
source_filename = "AnghaBench/libgit2/tests/rebase/extr_iterator.c_test_operations.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 [41 x i8] c"da9c51a23d02d931a486f45ad18cda05cf5d2b94\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"8d1f13f93c4995760ac07d129246ac1ff64c0be9\00", align 1
@.str.2 = private unnamed_addr constant [41 x i8] c"3069cc907e6294623e5917ef6de663928c1febfb\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"588e5d2f04d49707fe4aab865e1deacaf7ef6787\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"b146bd7608eac53d9bf9e1a6963543588b555c64\00", align 1
@GIT_REBASE_OPERATION_PICK = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @test_operations], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_operations(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca [5 x i32], align 4
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #3
%4 = call i32 @git_oid_fromstr(ptr noundef nonnull %3, ptr noundef nonnull @.str) #3
%5 = getelementptr inbounds i8, ptr %3, i64 4
%6 = call i32 @git_oid_fromstr(ptr noundef nonnull %5, ptr noundef nonnull @.str.1) #3
%7 = getelementptr inbounds i8, ptr %3, i64 8
%8 = call i32 @git_oid_fromstr(ptr noundef nonnull %7, ptr noundef nonnull @.str.2) #3
%9 = getelementptr inbounds i8, ptr %3, i64 12
%10 = call i32 @git_oid_fromstr(ptr noundef nonnull %9, ptr noundef nonnull @.str.3) #3
%11 = getelementptr inbounds i8, ptr %3, i64 16
%12 = call i32 @git_oid_fromstr(ptr noundef nonnull %11, ptr noundef nonnull @.str.4) #3
%13 = call i32 @git_rebase_operation_entrycount(ptr noundef %0) #3
%14 = call i32 @cl_assert_equal_i(i64 noundef 5, i32 noundef %13) #3
%15 = call i32 @git_rebase_operation_current(ptr noundef %0) #3
%16 = call i32 @cl_assert_equal_i(i64 noundef %1, i32 noundef %15) #3
%17 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 0) #3
%18 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !6
%19 = getelementptr inbounds i8, ptr %17, i64 8
%20 = load i32, ptr %19, align 4, !tbaa !10
%21 = call i32 @cl_assert_equal_i(i64 noundef %18, i32 noundef %20) #3
%22 = getelementptr inbounds i8, ptr %17, i64 4
%23 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %3, ptr noundef nonnull %22) #3
%24 = load i32, ptr %17, align 4, !tbaa !13
%25 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %24) #3
%26 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 1) #3
%27 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !6
%28 = getelementptr inbounds i8, ptr %26, i64 8
%29 = load i32, ptr %28, align 4, !tbaa !10
%30 = call i32 @cl_assert_equal_i(i64 noundef %27, i32 noundef %29) #3
%31 = getelementptr inbounds i8, ptr %26, i64 4
%32 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %5, ptr noundef nonnull %31) #3
%33 = load i32, ptr %26, align 4, !tbaa !13
%34 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %33) #3
%35 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 2) #3
%36 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !6
%37 = getelementptr inbounds i8, ptr %35, i64 8
%38 = load i32, ptr %37, align 4, !tbaa !10
%39 = call i32 @cl_assert_equal_i(i64 noundef %36, i32 noundef %38) #3
%40 = getelementptr inbounds i8, ptr %35, i64 4
%41 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %7, ptr noundef nonnull %40) #3
%42 = load i32, ptr %35, align 4, !tbaa !13
%43 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %42) #3
%44 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 3) #3
%45 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !6
%46 = getelementptr inbounds i8, ptr %44, i64 8
%47 = load i32, ptr %46, align 4, !tbaa !10
%48 = call i32 @cl_assert_equal_i(i64 noundef %45, i32 noundef %47) #3
%49 = getelementptr inbounds i8, ptr %44, i64 4
%50 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %9, ptr noundef nonnull %49) #3
%51 = load i32, ptr %44, align 4, !tbaa !13
%52 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %51) #3
%53 = call ptr @git_rebase_operation_byindex(ptr noundef %0, i64 noundef 4) #3
%54 = load i64, ptr @GIT_REBASE_OPERATION_PICK, align 8, !tbaa !6
%55 = getelementptr inbounds i8, ptr %53, i64 8
%56 = load i32, ptr %55, align 4, !tbaa !10
%57 = call i32 @cl_assert_equal_i(i64 noundef %54, i32 noundef %56) #3
%58 = getelementptr inbounds i8, ptr %53, i64 4
%59 = call i32 @cl_assert_equal_oid(ptr noundef nonnull %11, ptr noundef nonnull %58) #3
%60 = load i32, ptr %53, align 4, !tbaa !13
%61 = call i32 @cl_assert_equal_p(ptr noundef null, i32 noundef %60) #3
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #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 @git_oid_fromstr(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cl_assert_equal_i(i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @git_rebase_operation_entrycount(ptr noundef) local_unnamed_addr #2
declare i32 @git_rebase_operation_current(ptr noundef) local_unnamed_addr #2
declare ptr @git_rebase_operation_byindex(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @cl_assert_equal_oid(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cl_assert_equal_p(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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"TYPE_3__", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !12, i64 0}
| libgit2_tests_rebase_extr_iterator.c_test_operations |
; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_vdbePmaWriterFinish.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_vdbePmaWriterFinish.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, i64, i64, i64, ptr, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @vdbePmaWriterFinish], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @vdbePmaWriterFinish(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %26
5: ; preds = %2
%6 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 4
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = tail call i64 @ALWAYS(ptr noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %26, label %10
10: ; preds = %5
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !13
%13 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%14 = load i64, ptr %13, align 8, !tbaa !14
%15 = icmp ugt i64 %12, %14
br i1 %15, label %16, label %26
16: ; preds = %10
%17 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 5
%18 = load i32, ptr %17, align 8, !tbaa !15
%19 = load ptr, ptr %6, align 8, !tbaa !12
%20 = getelementptr inbounds i32, ptr %19, i64 %14
%21 = sub i64 %12, %14
%22 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
%23 = load i64, ptr %22, align 8, !tbaa !16
%24 = add i64 %23, %14
%25 = tail call i32 @sqlite3OsWrite(i32 noundef %18, ptr noundef %20, i64 noundef %21, i64 noundef %24) #2
store i32 %25, ptr %0, align 8, !tbaa !5
br label %26
26: ; preds = %16, %10, %5, %2
%27 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
%28 = load i64, ptr %27, align 8, !tbaa !16
%29 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%30 = load i64, ptr %29, align 8, !tbaa !13
%31 = add i64 %30, %28
store i64 %31, ptr %1, align 8, !tbaa !17
%32 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 4
%33 = load ptr, ptr %32, align 8, !tbaa !12
%34 = tail call i32 @sqlite3_free(ptr noundef %33) #2
%35 = load i32, ptr %0, align 8, !tbaa !5
%36 = tail call i32 @memset(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 48) #2
ret i32 %35
}
declare i64 @ALWAYS(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3OsWrite(i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sqlite3_free(ptr noundef) local_unnamed_addr #1
declare i32 @memset(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, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !7, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 32}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !10, i64 16}
!15 = !{!6, !7, i64 40}
!16 = !{!6, !10, i64 24}
!17 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_vdbePmaWriterFinish.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_vdbePmaWriterFinish.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 @vdbePmaWriterFinish], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @vdbePmaWriterFinish(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %26
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %0, i64 32
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = tail call i64 @ALWAYS(ptr noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %26, label %10
10: ; preds = %5
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !14
%13 = getelementptr inbounds i8, ptr %0, i64 16
%14 = load i64, ptr %13, align 8, !tbaa !15
%15 = icmp ugt i64 %12, %14
br i1 %15, label %16, label %26
16: ; preds = %10
%17 = getelementptr inbounds i8, ptr %0, i64 40
%18 = load i32, ptr %17, align 8, !tbaa !16
%19 = load ptr, ptr %6, align 8, !tbaa !13
%20 = getelementptr inbounds i32, ptr %19, i64 %14
%21 = sub i64 %12, %14
%22 = getelementptr inbounds i8, ptr %0, i64 24
%23 = load i64, ptr %22, align 8, !tbaa !17
%24 = add i64 %23, %14
%25 = tail call i32 @sqlite3OsWrite(i32 noundef %18, ptr noundef %20, i64 noundef %21, i64 noundef %24) #2
store i32 %25, ptr %0, align 8, !tbaa !6
br label %26
26: ; preds = %16, %10, %5, %2
%27 = getelementptr inbounds i8, ptr %0, i64 24
%28 = load i64, ptr %27, align 8, !tbaa !17
%29 = getelementptr inbounds i8, ptr %0, i64 8
%30 = load i64, ptr %29, align 8, !tbaa !14
%31 = add i64 %30, %28
store i64 %31, ptr %1, align 8, !tbaa !18
%32 = getelementptr inbounds i8, ptr %0, i64 32
%33 = load ptr, ptr %32, align 8, !tbaa !13
%34 = tail call i32 @sqlite3_free(ptr noundef %33) #2
%35 = load i32, ptr %0, align 8, !tbaa !6
%36 = tail call i32 @memset(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 48) #2
ret i32 %35
}
declare i64 @ALWAYS(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3OsWrite(i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sqlite3_free(ptr noundef) local_unnamed_addr #1
declare i32 @memset(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, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !8, i64 40}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!7, !12, i64 32}
!14 = !{!7, !11, i64 8}
!15 = !{!7, !11, i64 16}
!16 = !{!7, !8, i64 40}
!17 = !{!7, !11, i64 24}
!18 = !{!11, !11, i64 0}
| wcdb_android_sqlcipher_extr_sqlite3.c_vdbePmaWriterFinish |
; ModuleID = 'AnghaBench/glfw/tests/extr_events.c_main.c'
source_filename = "AnghaBench/glfw/tests/extr_events.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.TYPE_8__ = type { i32, i32, i32, i32, i32, i32 }
%struct.TYPE_7__ = type { i32, i32, i32 }
@error_callback = dso_local local_unnamed_addr global i32 0, align 4
@EXIT_FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@monitor_callback = dso_local local_unnamed_addr global i32 0, align 4
@joystick_callback = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"hfn:\00", align 1
@EXIT_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@optarg = dso_local local_unnamed_addr global i32 0, align 4
@GLFW_REFRESH_RATE = dso_local local_unnamed_addr global i32 0, align 4
@GLFW_RED_BITS = dso_local local_unnamed_addr global i32 0, align 4
@GLFW_GREEN_BITS = dso_local local_unnamed_addr global i32 0, align 4
@GLFW_BLUE_BITS = dso_local local_unnamed_addr global i32 0, align 4
@GLFW_TRUE = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"Event Linter (Window %i)\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"Creating full screen window %i (%ix%i on %s)\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"Creating windowed mode window %i (%ix%i)\0A\00", align 1
@window_pos_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_size_callback = dso_local local_unnamed_addr global i32 0, align 4
@framebuffer_size_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_content_scale_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_close_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_refresh_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_focus_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_iconify_callback = dso_local local_unnamed_addr global i32 0, align 4
@window_maximize_callback = dso_local local_unnamed_addr global i32 0, align 4
@mouse_button_callback = dso_local local_unnamed_addr global i32 0, align 4
@cursor_position_callback = dso_local local_unnamed_addr global i32 0, align 4
@cursor_enter_callback = dso_local local_unnamed_addr global i32 0, align 4
@scroll_callback = dso_local local_unnamed_addr global i32 0, align 4
@key_callback = dso_local local_unnamed_addr global i32 0, align 4
@char_callback = dso_local local_unnamed_addr global i32 0, align 4
@drop_callback = dso_local local_unnamed_addr global i32 0, align 4
@glfwGetProcAddress = dso_local local_unnamed_addr global i32 0, align 4
@stdout = dso_local local_unnamed_addr global i32 0, align 4
@str = private unnamed_addr constant [20 x i8] c"Library initialized\00", align 1
@str.6 = private unnamed_addr constant [19 x i8] c"Main loop starting\00", align 1
; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca [128 x i8], align 16
%4 = load i32, ptr @error_callback, align 4, !tbaa !5
%5 = tail call i32 @glfwSetErrorCallback(i32 noundef %4) #6
%6 = tail call i32 (...) @glfwInit() #6
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !5
%10 = tail call i32 @exit(i32 noundef %9) #7
unreachable
11: ; preds = %2
%12 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
%13 = load i32, ptr @monitor_callback, align 4, !tbaa !5
%14 = tail call i32 @glfwSetMonitorCallback(i32 noundef %13) #6
%15 = load i32, ptr @joystick_callback, align 4, !tbaa !5
%16 = tail call i32 @glfwSetJoystickCallback(i32 noundef %15) #6
br label %17
17: ; preds = %29, %11
%18 = phi i32 [ %32, %29 ], [ 1, %11 ]
%19 = phi ptr [ %21, %29 ], [ null, %11 ]
br label %20
20: ; preds = %17, %27
%21 = phi ptr [ %28, %27 ], [ %19, %17 ]
%22 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1) #6
switch i32 %22, label %33 [
i32 -1, label %37
i32 104, label %23
i32 102, label %27
i32 110, label %29
]
23: ; preds = %20
%24 = tail call i32 (...) @usage() #6
%25 = load i32, ptr @EXIT_SUCCESS, align 4, !tbaa !5
%26 = tail call i32 @exit(i32 noundef %25) #7
unreachable
27: ; preds = %20
%28 = tail call ptr (...) @glfwGetPrimaryMonitor() #6
br label %20, !llvm.loop !9
29: ; preds = %20
%30 = load i32, ptr @optarg, align 4, !tbaa !5
%31 = tail call i64 @strtoul(i32 noundef %30, ptr noundef null, i32 noundef 10) #6
%32 = trunc i64 %31 to i32
br label %17, !llvm.loop !9
33: ; preds = %20
%34 = tail call i32 (...) @usage() #6
%35 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !5
%36 = tail call i32 @exit(i32 noundef %35) #7
unreachable
37: ; preds = %20
%38 = icmp eq ptr %21, null
br i1 %38, label %60, label %39
39: ; preds = %37
%40 = tail call ptr @glfwGetVideoMode(ptr noundef nonnull %21) #6
%41 = load i32, ptr @GLFW_REFRESH_RATE, align 4, !tbaa !5
%42 = getelementptr inbounds %struct.TYPE_8__, ptr %40, i64 0, i32 5
%43 = load i32, ptr %42, align 4, !tbaa !11
%44 = tail call i32 @glfwWindowHint(i32 noundef %41, i32 noundef %43) #6
%45 = load i32, ptr @GLFW_RED_BITS, align 4, !tbaa !5
%46 = getelementptr inbounds %struct.TYPE_8__, ptr %40, i64 0, i32 4
%47 = load i32, ptr %46, align 4, !tbaa !13
%48 = tail call i32 @glfwWindowHint(i32 noundef %45, i32 noundef %47) #6
%49 = load i32, ptr @GLFW_GREEN_BITS, align 4, !tbaa !5
%50 = getelementptr inbounds %struct.TYPE_8__, ptr %40, i64 0, i32 3
%51 = load i32, ptr %50, align 4, !tbaa !14
%52 = tail call i32 @glfwWindowHint(i32 noundef %49, i32 noundef %51) #6
%53 = load i32, ptr @GLFW_BLUE_BITS, align 4, !tbaa !5
%54 = getelementptr inbounds %struct.TYPE_8__, ptr %40, i64 0, i32 2
%55 = load i32, ptr %54, align 4, !tbaa !15
%56 = tail call i32 @glfwWindowHint(i32 noundef %53, i32 noundef %55) #6
%57 = load i32, ptr %40, align 4, !tbaa !16
%58 = getelementptr inbounds %struct.TYPE_8__, ptr %40, i64 0, i32 1
%59 = load i32, ptr %58, align 4, !tbaa !17
br label %60
60: ; preds = %37, %39
%61 = phi i32 [ %57, %39 ], [ 640, %37 ]
%62 = phi i32 [ %59, %39 ], [ 480, %37 ]
%63 = tail call ptr @calloc(i32 noundef %18, i32 noundef 12) #6
%64 = icmp sgt i32 %18, 0
br i1 %64, label %65, label %146
65: ; preds = %60
%66 = zext nneg i32 %18 to i64
br label %67
67: ; preds = %65, %90
%68 = phi i64 [ 0, %65 ], [ %72, %90 ]
call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #6
%69 = load i32, ptr @GLFW_TRUE, align 4, !tbaa !5
%70 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %68
%71 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %68, i32 2
store i32 %69, ptr %71, align 4, !tbaa !18
%72 = add nuw nsw i64 %68, 1
%73 = trunc i64 %72 to i32
store i32 %73, ptr %70, align 4, !tbaa !20
%74 = call i32 @snprintf(ptr noundef nonnull %3, i32 noundef 128, ptr noundef nonnull @.str.2, i32 noundef %73) #6
%75 = load i32, ptr %70, align 4, !tbaa !20
br i1 %38, label %79, label %76
76: ; preds = %67
%77 = call ptr @glfwGetMonitorName(ptr noundef nonnull %21) #6
%78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %75, i32 noundef %61, i32 noundef %62, ptr noundef %77)
br label %81
79: ; preds = %67
%80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %75, i32 noundef %61, i32 noundef %62)
br label %81
81: ; preds = %79, %76
%82 = call i32 @glfwCreateWindow(i32 noundef %61, i32 noundef %62, ptr noundef nonnull %3, ptr noundef %21, ptr noundef null) #6
%83 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %68, i32 1
store i32 %82, ptr %83, align 4, !tbaa !21
%84 = icmp eq i32 %82, 0
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = call i32 @free(ptr noundef nonnull %63) #6
%87 = call i32 (...) @glfwTerminate() #6
%88 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !5
%89 = call i32 @exit(i32 noundef %88) #7
unreachable
90: ; preds = %81
%91 = call i32 @glfwSetWindowUserPointer(i32 noundef %82, ptr noundef nonnull %70) #6
%92 = load i32, ptr %83, align 4, !tbaa !21
%93 = load i32, ptr @window_pos_callback, align 4, !tbaa !5
%94 = call i32 @glfwSetWindowPosCallback(i32 noundef %92, i32 noundef %93) #6
%95 = load i32, ptr %83, align 4, !tbaa !21
%96 = load i32, ptr @window_size_callback, align 4, !tbaa !5
%97 = call i32 @glfwSetWindowSizeCallback(i32 noundef %95, i32 noundef %96) #6
%98 = load i32, ptr %83, align 4, !tbaa !21
%99 = load i32, ptr @framebuffer_size_callback, align 4, !tbaa !5
%100 = call i32 @glfwSetFramebufferSizeCallback(i32 noundef %98, i32 noundef %99) #6
%101 = load i32, ptr %83, align 4, !tbaa !21
%102 = load i32, ptr @window_content_scale_callback, align 4, !tbaa !5
%103 = call i32 @glfwSetWindowContentScaleCallback(i32 noundef %101, i32 noundef %102) #6
%104 = load i32, ptr %83, align 4, !tbaa !21
%105 = load i32, ptr @window_close_callback, align 4, !tbaa !5
%106 = call i32 @glfwSetWindowCloseCallback(i32 noundef %104, i32 noundef %105) #6
%107 = load i32, ptr %83, align 4, !tbaa !21
%108 = load i32, ptr @window_refresh_callback, align 4, !tbaa !5
%109 = call i32 @glfwSetWindowRefreshCallback(i32 noundef %107, i32 noundef %108) #6
%110 = load i32, ptr %83, align 4, !tbaa !21
%111 = load i32, ptr @window_focus_callback, align 4, !tbaa !5
%112 = call i32 @glfwSetWindowFocusCallback(i32 noundef %110, i32 noundef %111) #6
%113 = load i32, ptr %83, align 4, !tbaa !21
%114 = load i32, ptr @window_iconify_callback, align 4, !tbaa !5
%115 = call i32 @glfwSetWindowIconifyCallback(i32 noundef %113, i32 noundef %114) #6
%116 = load i32, ptr %83, align 4, !tbaa !21
%117 = load i32, ptr @window_maximize_callback, align 4, !tbaa !5
%118 = call i32 @glfwSetWindowMaximizeCallback(i32 noundef %116, i32 noundef %117) #6
%119 = load i32, ptr %83, align 4, !tbaa !21
%120 = load i32, ptr @mouse_button_callback, align 4, !tbaa !5
%121 = call i32 @glfwSetMouseButtonCallback(i32 noundef %119, i32 noundef %120) #6
%122 = load i32, ptr %83, align 4, !tbaa !21
%123 = load i32, ptr @cursor_position_callback, align 4, !tbaa !5
%124 = call i32 @glfwSetCursorPosCallback(i32 noundef %122, i32 noundef %123) #6
%125 = load i32, ptr %83, align 4, !tbaa !21
%126 = load i32, ptr @cursor_enter_callback, align 4, !tbaa !5
%127 = call i32 @glfwSetCursorEnterCallback(i32 noundef %125, i32 noundef %126) #6
%128 = load i32, ptr %83, align 4, !tbaa !21
%129 = load i32, ptr @scroll_callback, align 4, !tbaa !5
%130 = call i32 @glfwSetScrollCallback(i32 noundef %128, i32 noundef %129) #6
%131 = load i32, ptr %83, align 4, !tbaa !21
%132 = load i32, ptr @key_callback, align 4, !tbaa !5
%133 = call i32 @glfwSetKeyCallback(i32 noundef %131, i32 noundef %132) #6
%134 = load i32, ptr %83, align 4, !tbaa !21
%135 = load i32, ptr @char_callback, align 4, !tbaa !5
%136 = call i32 @glfwSetCharCallback(i32 noundef %134, i32 noundef %135) #6
%137 = load i32, ptr %83, align 4, !tbaa !21
%138 = load i32, ptr @drop_callback, align 4, !tbaa !5
%139 = call i32 @glfwSetDropCallback(i32 noundef %137, i32 noundef %138) #6
%140 = load i32, ptr %83, align 4, !tbaa !21
%141 = call i32 @glfwMakeContextCurrent(i32 noundef %140) #6
%142 = load i32, ptr @glfwGetProcAddress, align 4, !tbaa !5
%143 = call i32 @gladLoadGL(i32 noundef %142) #6
%144 = call i32 @glfwSwapInterval(i32 noundef 1) #6
call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #6
%145 = icmp eq i64 %72, %66
br i1 %145, label %146, label %67, !llvm.loop !22
146: ; preds = %90, %60
%147 = call i32 @puts(ptr nonnull dereferenceable(1) @str.6)
%148 = zext nneg i32 %18 to i64
br label %149
149: ; preds = %159, %146
br i1 %64, label %153, label %159
150: ; preds = %153
%151 = add nuw nsw i64 %154, 1
%152 = icmp eq i64 %151, %148
br i1 %152, label %159, label %153, !llvm.loop !23
153: ; preds = %149, %150
%154 = phi i64 [ %151, %150 ], [ 0, %149 ]
%155 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %154, i32 1
%156 = load i32, ptr %155, align 4, !tbaa !21
%157 = call i64 @glfwWindowShouldClose(i32 noundef %156) #6
%158 = icmp eq i64 %157, 0
br i1 %158, label %150, label %163
159: ; preds = %150, %149
%160 = call i32 (...) @glfwWaitEvents() #6
%161 = load i32, ptr @stdout, align 4, !tbaa !5
%162 = call i32 @fflush(i32 noundef %161) #6
br label %149
163: ; preds = %153
%164 = call i32 @free(ptr noundef nonnull %63) #6
%165 = call i32 (...) @glfwTerminate() #6
%166 = load i32, ptr @EXIT_SUCCESS, align 4, !tbaa !5
%167 = call i32 @exit(i32 noundef %166) #7
unreachable
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @glfwSetErrorCallback(i32 noundef) local_unnamed_addr #2
declare i32 @glfwInit(...) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4
declare i32 @glfwSetMonitorCallback(i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetJoystickCallback(i32 noundef) local_unnamed_addr #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @usage(...) local_unnamed_addr #2
declare ptr @glfwGetPrimaryMonitor(...) local_unnamed_addr #2
declare i64 @strtoul(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @glfwGetVideoMode(ptr noundef) local_unnamed_addr #2
declare i32 @glfwWindowHint(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
declare ptr @calloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @glfwGetMonitorName(ptr noundef) local_unnamed_addr #2
declare i32 @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @glfwTerminate(...) local_unnamed_addr #2
declare i32 @glfwSetWindowUserPointer(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowPosCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowSizeCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetFramebufferSizeCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowContentScaleCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowCloseCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowRefreshCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowFocusCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowIconifyCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowMaximizeCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetMouseButtonCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetCursorPosCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetCursorEnterCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetScrollCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetKeyCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetCharCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetDropCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwMakeContextCurrent(i32 noundef) local_unnamed_addr #2
declare i32 @gladLoadGL(i32 noundef) local_unnamed_addr #2
declare i32 @glfwSwapInterval(i32 noundef) local_unnamed_addr #2
declare i64 @glfwWindowShouldClose(i32 noundef) local_unnamed_addr #2
declare i32 @glfwWaitEvents(...) local_unnamed_addr #2
declare i32 @fflush(i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5
attributes #0 = { noreturn 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 = { noreturn "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 }
attributes #7 = { noreturn 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 20}
!12 = !{!"TYPE_8__", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!13 = !{!12, !6, i64 16}
!14 = !{!12, !6, i64 12}
!15 = !{!12, !6, i64 8}
!16 = !{!12, !6, i64 0}
!17 = !{!12, !6, i64 4}
!18 = !{!19, !6, i64 8}
!19 = !{!"TYPE_7__", !6, i64 0, !6, i64 4, !6, i64 8}
!20 = !{!19, !6, i64 0}
!21 = !{!19, !6, i64 4}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
| ; ModuleID = 'AnghaBench/glfw/tests/extr_events.c_main.c'
source_filename = "AnghaBench/glfw/tests/extr_events.c_main.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 { i32, i32, i32 }
@error_callback = common local_unnamed_addr global i32 0, align 4
@EXIT_FAILURE = common local_unnamed_addr global i32 0, align 4
@monitor_callback = common local_unnamed_addr global i32 0, align 4
@joystick_callback = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"hfn:\00", align 1
@EXIT_SUCCESS = common local_unnamed_addr global i32 0, align 4
@optarg = common local_unnamed_addr global i32 0, align 4
@GLFW_REFRESH_RATE = common local_unnamed_addr global i32 0, align 4
@GLFW_RED_BITS = common local_unnamed_addr global i32 0, align 4
@GLFW_GREEN_BITS = common local_unnamed_addr global i32 0, align 4
@GLFW_BLUE_BITS = common local_unnamed_addr global i32 0, align 4
@GLFW_TRUE = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"Event Linter (Window %i)\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c"Creating full screen window %i (%ix%i on %s)\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"Creating windowed mode window %i (%ix%i)\0A\00", align 1
@window_pos_callback = common local_unnamed_addr global i32 0, align 4
@window_size_callback = common local_unnamed_addr global i32 0, align 4
@framebuffer_size_callback = common local_unnamed_addr global i32 0, align 4
@window_content_scale_callback = common local_unnamed_addr global i32 0, align 4
@window_close_callback = common local_unnamed_addr global i32 0, align 4
@window_refresh_callback = common local_unnamed_addr global i32 0, align 4
@window_focus_callback = common local_unnamed_addr global i32 0, align 4
@window_iconify_callback = common local_unnamed_addr global i32 0, align 4
@window_maximize_callback = common local_unnamed_addr global i32 0, align 4
@mouse_button_callback = common local_unnamed_addr global i32 0, align 4
@cursor_position_callback = common local_unnamed_addr global i32 0, align 4
@cursor_enter_callback = common local_unnamed_addr global i32 0, align 4
@scroll_callback = common local_unnamed_addr global i32 0, align 4
@key_callback = common local_unnamed_addr global i32 0, align 4
@char_callback = common local_unnamed_addr global i32 0, align 4
@drop_callback = common local_unnamed_addr global i32 0, align 4
@glfwGetProcAddress = common local_unnamed_addr global i32 0, align 4
@stdout = common local_unnamed_addr global i32 0, align 4
@str = private unnamed_addr constant [20 x i8] c"Library initialized\00", align 1
@str.6 = private unnamed_addr constant [19 x i8] c"Main loop starting\00", align 1
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca [128 x i8], align 1
%4 = load i32, ptr @error_callback, align 4, !tbaa !6
%5 = tail call i32 @glfwSetErrorCallback(i32 noundef %4) #6
%6 = tail call i32 @glfwInit() #6
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !6
%10 = tail call i32 @exit(i32 noundef %9) #7
unreachable
11: ; preds = %2
%12 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
%13 = load i32, ptr @monitor_callback, align 4, !tbaa !6
%14 = tail call i32 @glfwSetMonitorCallback(i32 noundef %13) #6
%15 = load i32, ptr @joystick_callback, align 4, !tbaa !6
%16 = tail call i32 @glfwSetJoystickCallback(i32 noundef %15) #6
br label %17
17: ; preds = %29, %11
%18 = phi i32 [ %32, %29 ], [ 1, %11 ]
%19 = phi ptr [ %21, %29 ], [ null, %11 ]
br label %20
20: ; preds = %17, %27
%21 = phi ptr [ %28, %27 ], [ %19, %17 ]
%22 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1) #6
switch i32 %22, label %33 [
i32 -1, label %37
i32 104, label %23
i32 102, label %27
i32 110, label %29
]
23: ; preds = %20
%24 = tail call i32 @usage() #6
%25 = load i32, ptr @EXIT_SUCCESS, align 4, !tbaa !6
%26 = tail call i32 @exit(i32 noundef %25) #7
unreachable
27: ; preds = %20
%28 = tail call ptr @glfwGetPrimaryMonitor() #6
br label %20, !llvm.loop !10
29: ; preds = %20
%30 = load i32, ptr @optarg, align 4, !tbaa !6
%31 = tail call i64 @strtoul(i32 noundef %30, ptr noundef null, i32 noundef 10) #6
%32 = trunc i64 %31 to i32
br label %17, !llvm.loop !10
33: ; preds = %20
%34 = tail call i32 @usage() #6
%35 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !6
%36 = tail call i32 @exit(i32 noundef %35) #7
unreachable
37: ; preds = %20
%38 = icmp eq ptr %21, null
br i1 %38, label %60, label %39
39: ; preds = %37
%40 = tail call ptr @glfwGetVideoMode(ptr noundef nonnull %21) #6
%41 = load i32, ptr @GLFW_REFRESH_RATE, align 4, !tbaa !6
%42 = getelementptr inbounds i8, ptr %40, i64 20
%43 = load i32, ptr %42, align 4, !tbaa !12
%44 = tail call i32 @glfwWindowHint(i32 noundef %41, i32 noundef %43) #6
%45 = load i32, ptr @GLFW_RED_BITS, align 4, !tbaa !6
%46 = getelementptr inbounds i8, ptr %40, i64 16
%47 = load i32, ptr %46, align 4, !tbaa !14
%48 = tail call i32 @glfwWindowHint(i32 noundef %45, i32 noundef %47) #6
%49 = load i32, ptr @GLFW_GREEN_BITS, align 4, !tbaa !6
%50 = getelementptr inbounds i8, ptr %40, i64 12
%51 = load i32, ptr %50, align 4, !tbaa !15
%52 = tail call i32 @glfwWindowHint(i32 noundef %49, i32 noundef %51) #6
%53 = load i32, ptr @GLFW_BLUE_BITS, align 4, !tbaa !6
%54 = getelementptr inbounds i8, ptr %40, i64 8
%55 = load i32, ptr %54, align 4, !tbaa !16
%56 = tail call i32 @glfwWindowHint(i32 noundef %53, i32 noundef %55) #6
%57 = load i32, ptr %40, align 4, !tbaa !17
%58 = getelementptr inbounds i8, ptr %40, i64 4
%59 = load i32, ptr %58, align 4, !tbaa !18
br label %60
60: ; preds = %37, %39
%61 = phi i32 [ %57, %39 ], [ 640, %37 ]
%62 = phi i32 [ %59, %39 ], [ 480, %37 ]
%63 = tail call ptr @calloc(i32 noundef %18, i32 noundef 12) #6
%64 = icmp sgt i32 %18, 0
br i1 %64, label %65, label %146
65: ; preds = %60
%66 = zext nneg i32 %18 to i64
br label %67
67: ; preds = %65, %90
%68 = phi i64 [ 0, %65 ], [ %72, %90 ]
call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #6
%69 = load i32, ptr @GLFW_TRUE, align 4, !tbaa !6
%70 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %68
%71 = getelementptr inbounds i8, ptr %70, i64 8
store i32 %69, ptr %71, align 4, !tbaa !19
%72 = add nuw nsw i64 %68, 1
%73 = trunc nuw nsw i64 %72 to i32
store i32 %73, ptr %70, align 4, !tbaa !21
%74 = call i32 @snprintf(ptr noundef nonnull %3, i32 noundef 128, ptr noundef nonnull @.str.2, i32 noundef %73) #6
%75 = load i32, ptr %70, align 4, !tbaa !21
br i1 %38, label %79, label %76
76: ; preds = %67
%77 = call ptr @glfwGetMonitorName(ptr noundef nonnull %21) #6
%78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %75, i32 noundef %61, i32 noundef %62, ptr noundef %77)
br label %81
79: ; preds = %67
%80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %75, i32 noundef %61, i32 noundef %62)
br label %81
81: ; preds = %79, %76
%82 = call i32 @glfwCreateWindow(i32 noundef %61, i32 noundef %62, ptr noundef nonnull %3, ptr noundef %21, ptr noundef null) #6
%83 = getelementptr inbounds i8, ptr %70, i64 4
store i32 %82, ptr %83, align 4, !tbaa !22
%84 = icmp eq i32 %82, 0
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = call i32 @free(ptr noundef nonnull %63) #6
%87 = call i32 @glfwTerminate() #6
%88 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !6
%89 = call i32 @exit(i32 noundef %88) #7
unreachable
90: ; preds = %81
%91 = call i32 @glfwSetWindowUserPointer(i32 noundef %82, ptr noundef nonnull %70) #6
%92 = load i32, ptr %83, align 4, !tbaa !22
%93 = load i32, ptr @window_pos_callback, align 4, !tbaa !6
%94 = call i32 @glfwSetWindowPosCallback(i32 noundef %92, i32 noundef %93) #6
%95 = load i32, ptr %83, align 4, !tbaa !22
%96 = load i32, ptr @window_size_callback, align 4, !tbaa !6
%97 = call i32 @glfwSetWindowSizeCallback(i32 noundef %95, i32 noundef %96) #6
%98 = load i32, ptr %83, align 4, !tbaa !22
%99 = load i32, ptr @framebuffer_size_callback, align 4, !tbaa !6
%100 = call i32 @glfwSetFramebufferSizeCallback(i32 noundef %98, i32 noundef %99) #6
%101 = load i32, ptr %83, align 4, !tbaa !22
%102 = load i32, ptr @window_content_scale_callback, align 4, !tbaa !6
%103 = call i32 @glfwSetWindowContentScaleCallback(i32 noundef %101, i32 noundef %102) #6
%104 = load i32, ptr %83, align 4, !tbaa !22
%105 = load i32, ptr @window_close_callback, align 4, !tbaa !6
%106 = call i32 @glfwSetWindowCloseCallback(i32 noundef %104, i32 noundef %105) #6
%107 = load i32, ptr %83, align 4, !tbaa !22
%108 = load i32, ptr @window_refresh_callback, align 4, !tbaa !6
%109 = call i32 @glfwSetWindowRefreshCallback(i32 noundef %107, i32 noundef %108) #6
%110 = load i32, ptr %83, align 4, !tbaa !22
%111 = load i32, ptr @window_focus_callback, align 4, !tbaa !6
%112 = call i32 @glfwSetWindowFocusCallback(i32 noundef %110, i32 noundef %111) #6
%113 = load i32, ptr %83, align 4, !tbaa !22
%114 = load i32, ptr @window_iconify_callback, align 4, !tbaa !6
%115 = call i32 @glfwSetWindowIconifyCallback(i32 noundef %113, i32 noundef %114) #6
%116 = load i32, ptr %83, align 4, !tbaa !22
%117 = load i32, ptr @window_maximize_callback, align 4, !tbaa !6
%118 = call i32 @glfwSetWindowMaximizeCallback(i32 noundef %116, i32 noundef %117) #6
%119 = load i32, ptr %83, align 4, !tbaa !22
%120 = load i32, ptr @mouse_button_callback, align 4, !tbaa !6
%121 = call i32 @glfwSetMouseButtonCallback(i32 noundef %119, i32 noundef %120) #6
%122 = load i32, ptr %83, align 4, !tbaa !22
%123 = load i32, ptr @cursor_position_callback, align 4, !tbaa !6
%124 = call i32 @glfwSetCursorPosCallback(i32 noundef %122, i32 noundef %123) #6
%125 = load i32, ptr %83, align 4, !tbaa !22
%126 = load i32, ptr @cursor_enter_callback, align 4, !tbaa !6
%127 = call i32 @glfwSetCursorEnterCallback(i32 noundef %125, i32 noundef %126) #6
%128 = load i32, ptr %83, align 4, !tbaa !22
%129 = load i32, ptr @scroll_callback, align 4, !tbaa !6
%130 = call i32 @glfwSetScrollCallback(i32 noundef %128, i32 noundef %129) #6
%131 = load i32, ptr %83, align 4, !tbaa !22
%132 = load i32, ptr @key_callback, align 4, !tbaa !6
%133 = call i32 @glfwSetKeyCallback(i32 noundef %131, i32 noundef %132) #6
%134 = load i32, ptr %83, align 4, !tbaa !22
%135 = load i32, ptr @char_callback, align 4, !tbaa !6
%136 = call i32 @glfwSetCharCallback(i32 noundef %134, i32 noundef %135) #6
%137 = load i32, ptr %83, align 4, !tbaa !22
%138 = load i32, ptr @drop_callback, align 4, !tbaa !6
%139 = call i32 @glfwSetDropCallback(i32 noundef %137, i32 noundef %138) #6
%140 = load i32, ptr %83, align 4, !tbaa !22
%141 = call i32 @glfwMakeContextCurrent(i32 noundef %140) #6
%142 = load i32, ptr @glfwGetProcAddress, align 4, !tbaa !6
%143 = call i32 @gladLoadGL(i32 noundef %142) #6
%144 = call i32 @glfwSwapInterval(i32 noundef 1) #6
call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #6
%145 = icmp eq i64 %72, %66
br i1 %145, label %146, label %67, !llvm.loop !23
146: ; preds = %90, %60
%147 = call i32 @puts(ptr nonnull dereferenceable(1) @str.6)
%148 = zext nneg i32 %18 to i64
br label %149
149: ; preds = %159, %146
br i1 %64, label %153, label %159
150: ; preds = %153
%151 = add nuw nsw i64 %154, 1
%152 = icmp eq i64 %151, %148
br i1 %152, label %159, label %153, !llvm.loop !24
153: ; preds = %149, %150
%154 = phi i64 [ %151, %150 ], [ 0, %149 ]
%155 = getelementptr inbounds %struct.TYPE_7__, ptr %63, i64 %154, i32 1
%156 = load i32, ptr %155, align 4, !tbaa !22
%157 = call i64 @glfwWindowShouldClose(i32 noundef %156) #6
%158 = icmp eq i64 %157, 0
br i1 %158, label %150, label %163
159: ; preds = %150, %149
%160 = call i32 @glfwWaitEvents() #6
%161 = load i32, ptr @stdout, align 4, !tbaa !6
%162 = call i32 @fflush(i32 noundef %161) #6
br label %149
163: ; preds = %153
%164 = call i32 @free(ptr noundef nonnull %63) #6
%165 = call i32 @glfwTerminate() #6
%166 = load i32, ptr @EXIT_SUCCESS, align 4, !tbaa !6
%167 = call i32 @exit(i32 noundef %166) #7
unreachable
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @glfwSetErrorCallback(i32 noundef) local_unnamed_addr #2
declare i32 @glfwInit(...) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4
declare i32 @glfwSetMonitorCallback(i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetJoystickCallback(i32 noundef) local_unnamed_addr #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @usage(...) local_unnamed_addr #2
declare ptr @glfwGetPrimaryMonitor(...) local_unnamed_addr #2
declare i64 @strtoul(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @glfwGetVideoMode(ptr noundef) local_unnamed_addr #2
declare i32 @glfwWindowHint(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
declare ptr @calloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @glfwGetMonitorName(ptr noundef) local_unnamed_addr #2
declare i32 @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @glfwTerminate(...) local_unnamed_addr #2
declare i32 @glfwSetWindowUserPointer(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowPosCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowSizeCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetFramebufferSizeCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowContentScaleCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowCloseCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowRefreshCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowFocusCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowIconifyCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetWindowMaximizeCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetMouseButtonCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetCursorPosCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetCursorEnterCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetScrollCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetKeyCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetCharCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwSetDropCallback(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @glfwMakeContextCurrent(i32 noundef) local_unnamed_addr #2
declare i32 @gladLoadGL(i32 noundef) local_unnamed_addr #2
declare i32 @glfwSwapInterval(i32 noundef) local_unnamed_addr #2
declare i64 @glfwWindowShouldClose(i32 noundef) local_unnamed_addr #2
declare i32 @glfwWaitEvents(...) local_unnamed_addr #2
declare i32 @fflush(i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5
attributes #0 = { noreturn 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 = { noreturn "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 }
attributes #7 = { noreturn 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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !7, i64 20}
!13 = !{!"TYPE_8__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!14 = !{!13, !7, i64 16}
!15 = !{!13, !7, i64 12}
!16 = !{!13, !7, i64 8}
!17 = !{!13, !7, i64 0}
!18 = !{!13, !7, i64 4}
!19 = !{!20, !7, i64 8}
!20 = !{!"TYPE_7__", !7, i64 0, !7, i64 4, !7, i64 8}
!21 = !{!20, !7, i64 0}
!22 = !{!20, !7, i64 4}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}
| glfw_tests_extr_events.c_main |
; ModuleID = 'AnghaBench/freebsd/sys/netinet/tcp_stacks/extr_bbr.c_bbr_log_timer_var.c'
source_filename = "AnghaBench/freebsd/sys/netinet/tcp_stacks/extr_bbr.c_bbr_log_timer_var.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"
%union.tcp_log_stackspecific = type { %struct.TYPE_7__ }
%struct.TYPE_7__ = type { i32, i32, ptr, ptr, ptr, ptr, i32 }
%struct.tcp_bbr = type { i32, ptr, ptr }
%struct.TYPE_8__ = type { i64, i32, i32 }
%struct.TYPE_5__ = type { i32, i32 }
@bbr_verbose_logging = dso_local local_unnamed_addr global i64 0, align 8
@TCP_LOG_STATE_OFF = dso_local local_unnamed_addr global i64 0, align 8
@BBR_LOG_TIMERPREP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bbr_log_timer_var], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bbr_log_timer_var(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca %union.tcp_log_stackspecific, align 8
%9 = load i64, ptr @bbr_verbose_logging, align 8, !tbaa !5
%10 = icmp eq i64 %9, 0
br i1 %10, label %36, label %11
11: ; preds = %7
%12 = getelementptr inbounds %struct.tcp_bbr, ptr %0, i64 0, i32 2
%13 = load ptr, ptr %12, align 8, !tbaa !9
%14 = load i64, ptr %13, align 8, !tbaa !13
%15 = load i64, ptr @TCP_LOG_STATE_OFF, align 8, !tbaa !5
%16 = icmp eq i64 %14, %15
br i1 %16, label %36, label %17
17: ; preds = %11
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #3
%18 = call i32 @bbr_fill_in_logging_data(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef %2) #3
%19 = load ptr, ptr %12, align 8, !tbaa !9
%20 = getelementptr inbounds %struct.TYPE_8__, ptr %19, i64 0, i32 2
%21 = load i32, ptr %20, align 4, !tbaa !15
%22 = getelementptr inbounds %struct.TYPE_7__, ptr %8, i64 0, i32 6
store i32 %21, ptr %22, align 8, !tbaa !16
%23 = getelementptr inbounds %struct.TYPE_7__, ptr %8, i64 0, i32 5
store ptr %3, ptr %23, align 8, !tbaa !16
%24 = getelementptr inbounds %struct.TYPE_7__, ptr %8, i64 0, i32 4
store ptr %4, ptr %24, align 8, !tbaa !16
%25 = getelementptr inbounds %struct.TYPE_7__, ptr %8, i64 0, i32 3
store ptr %5, ptr %25, align 8, !tbaa !16
%26 = getelementptr inbounds %struct.TYPE_7__, ptr %8, i64 0, i32 2
store ptr %6, ptr %26, align 8, !tbaa !16
%27 = getelementptr inbounds %struct.TYPE_8__, ptr %19, i64 0, i32 1
%28 = load i32, ptr %27, align 8, !tbaa !17
%29 = getelementptr inbounds %struct.TYPE_7__, ptr %8, i64 0, i32 1
store i32 %28, ptr %29, align 4, !tbaa !16
store i32 %1, ptr %8, align 8, !tbaa !16
%30 = getelementptr inbounds %struct.tcp_bbr, ptr %0, i64 0, i32 1
%31 = load ptr, ptr %30, align 8, !tbaa !18
%32 = load ptr, ptr %31, align 8, !tbaa !19
%33 = getelementptr inbounds %struct.TYPE_5__, ptr %32, i64 0, i32 1
%34 = load i32, ptr @BBR_LOG_TIMERPREP, align 4, !tbaa !21
%35 = call i32 @TCP_LOG_EVENTP(ptr noundef %19, ptr noundef null, ptr noundef nonnull %33, ptr noundef %32, i32 noundef %34, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8, i32 noundef 0, ptr noundef nonnull %0) #3
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #3
br label %36
36: ; preds = %17, %11, %7
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 @bbr_fill_in_logging_data(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @TCP_LOG_EVENTP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"tcp_bbr", !11, i64 0, !12, i64 8, !12, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"TYPE_8__", !6, i64 0, !11, i64 8, !11, i64 12}
!15 = !{!14, !11, i64 12}
!16 = !{!7, !7, i64 0}
!17 = !{!14, !11, i64 8}
!18 = !{!10, !12, i64 8}
!19 = !{!20, !12, i64 0}
!20 = !{!"TYPE_6__", !12, i64 0}
!21 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/netinet/tcp_stacks/extr_bbr.c_bbr_log_timer_var.c'
source_filename = "AnghaBench/freebsd/sys/netinet/tcp_stacks/extr_bbr.c_bbr_log_timer_var.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%union.tcp_log_stackspecific = type { %struct.TYPE_7__ }
%struct.TYPE_7__ = type { i32, i32, ptr, ptr, ptr, ptr, i32 }
@bbr_verbose_logging = common local_unnamed_addr global i64 0, align 8
@TCP_LOG_STATE_OFF = common local_unnamed_addr global i64 0, align 8
@BBR_LOG_TIMERPREP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bbr_log_timer_var], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bbr_log_timer_var(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca %union.tcp_log_stackspecific, align 8
%9 = load i64, ptr @bbr_verbose_logging, align 8, !tbaa !6
%10 = icmp eq i64 %9, 0
br i1 %10, label %36, label %11
11: ; preds = %7
%12 = getelementptr inbounds i8, ptr %0, i64 16
%13 = load ptr, ptr %12, align 8, !tbaa !10
%14 = load i64, ptr %13, align 8, !tbaa !14
%15 = load i64, ptr @TCP_LOG_STATE_OFF, align 8, !tbaa !6
%16 = icmp eq i64 %14, %15
br i1 %16, label %36, label %17
17: ; preds = %11
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #3
%18 = call i32 @bbr_fill_in_logging_data(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef %2) #3
%19 = load ptr, ptr %12, align 8, !tbaa !10
%20 = getelementptr inbounds i8, ptr %19, i64 12
%21 = load i32, ptr %20, align 4, !tbaa !16
%22 = getelementptr inbounds i8, ptr %8, i64 40
store i32 %21, ptr %22, align 8, !tbaa !17
%23 = getelementptr inbounds i8, ptr %8, i64 32
store ptr %3, ptr %23, align 8, !tbaa !17
%24 = getelementptr inbounds i8, ptr %8, i64 24
store ptr %4, ptr %24, align 8, !tbaa !17
%25 = getelementptr inbounds i8, ptr %8, i64 16
store ptr %5, ptr %25, align 8, !tbaa !17
%26 = getelementptr inbounds i8, ptr %8, i64 8
store ptr %6, ptr %26, align 8, !tbaa !17
%27 = getelementptr inbounds i8, ptr %19, i64 8
%28 = load i32, ptr %27, align 8, !tbaa !18
%29 = getelementptr inbounds i8, ptr %8, i64 4
store i32 %28, ptr %29, align 4, !tbaa !17
store i32 %1, ptr %8, align 8, !tbaa !17
%30 = getelementptr inbounds i8, ptr %0, i64 8
%31 = load ptr, ptr %30, align 8, !tbaa !19
%32 = load ptr, ptr %31, align 8, !tbaa !20
%33 = getelementptr inbounds i8, ptr %32, i64 4
%34 = load i32, ptr @BBR_LOG_TIMERPREP, align 4, !tbaa !22
%35 = call i32 @TCP_LOG_EVENTP(ptr noundef %19, ptr noundef null, ptr noundef nonnull %33, ptr noundef %32, i32 noundef %34, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %8, i32 noundef 0, ptr noundef nonnull %0) #3
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #3
br label %36
36: ; preds = %17, %11, %7
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 @bbr_fill_in_logging_data(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @TCP_LOG_EVENTP(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 16}
!11 = !{!"tcp_bbr", !12, i64 0, !13, i64 8, !13, i64 16}
!12 = !{!"int", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_8__", !7, i64 0, !12, i64 8, !12, i64 12}
!16 = !{!15, !12, i64 12}
!17 = !{!8, !8, i64 0}
!18 = !{!15, !12, i64 8}
!19 = !{!11, !13, i64 8}
!20 = !{!21, !13, i64 0}
!21 = !{!"TYPE_6__", !13, i64 0}
!22 = !{!12, !12, i64 0}
| freebsd_sys_netinet_tcp_stacks_extr_bbr.c_bbr_log_timer_var |
; ModuleID = 'AnghaBench/freebsd/sys/netpfil/ipfw/extr_ip_fw_sockopt.c_ipfw_destroy_obj_rewriter.c'
source_filename = "AnghaBench/freebsd/sys/netpfil/ipfw/extr_ip_fw_sockopt.c_ipfw_destroy_obj_rewriter.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"
@ctl3_rewriters = dso_local local_unnamed_addr global ptr null, align 8
@M_IPFW = dso_local local_unnamed_addr global i32 0, align 4
@ctl3_rsize = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @ipfw_destroy_obj_rewriter() local_unnamed_addr #0 {
%1 = load ptr, ptr @ctl3_rewriters, align 8, !tbaa !5
%2 = icmp eq ptr %1, null
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = load i32, ptr @M_IPFW, align 4, !tbaa !9
%5 = tail call i32 @free(ptr noundef nonnull %1, i32 noundef %4) #2
br label %6
6: ; preds = %3, %0
store ptr null, ptr @ctl3_rewriters, align 8, !tbaa !5
store i64 0, ptr @ctl3_rsize, align 8, !tbaa !11
ret void
}
declare i32 @free(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 = !{!"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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/netpfil/ipfw/extr_ip_fw_sockopt.c_ipfw_destroy_obj_rewriter.c'
source_filename = "AnghaBench/freebsd/sys/netpfil/ipfw/extr_ip_fw_sockopt.c_ipfw_destroy_obj_rewriter.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ctl3_rewriters = common local_unnamed_addr global ptr null, align 8
@M_IPFW = common local_unnamed_addr global i32 0, align 4
@ctl3_rsize = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @ipfw_destroy_obj_rewriter() local_unnamed_addr #0 {
%1 = load ptr, ptr @ctl3_rewriters, align 8, !tbaa !6
%2 = icmp eq ptr %1, null
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = load i32, ptr @M_IPFW, align 4, !tbaa !10
%5 = tail call i32 @free(ptr noundef nonnull %1, i32 noundef %4) #2
br label %6
6: ; preds = %3, %0
store ptr null, ptr @ctl3_rewriters, align 8, !tbaa !6
store i64 0, ptr @ctl3_rsize, align 8, !tbaa !12
ret void
}
declare i32 @free(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 = !{!"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, !13, i64 0}
!13 = !{!"long", !8, i64 0}
| freebsd_sys_netpfil_ipfw_extr_ip_fw_sockopt.c_ipfw_destroy_obj_rewriter |
; ModuleID = 'AnghaBench/postgres/src/backend/utils/misc/extr_guc.c_GetConfigOptionFlags.c'
source_filename = "AnghaBench/postgres/src/backend/utils/misc/extr_guc.c_GetConfigOptionFlags.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"
@WARNING = dso_local local_unnamed_addr global i32 0, align 4
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@ERRCODE_UNDEFINED_OBJECT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"unrecognized configuration parameter \22%s\22\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @GetConfigOptionFlags(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @WARNING, align 4, !tbaa !5
%4 = tail call ptr @find_option(ptr noundef %0, i32 noundef 0, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %14
6: ; preds = %2
%7 = icmp eq i32 %1, 0
br i1 %7, label %8, label %16
8: ; preds = %6
%9 = load i32, ptr @ERROR, align 4, !tbaa !5
%10 = load i32, ptr @ERRCODE_UNDEFINED_OBJECT, align 4, !tbaa !5
%11 = tail call i32 @errcode(i32 noundef %10) #2
%12 = tail call i32 @errmsg(ptr noundef nonnull @.str, ptr noundef %0) #2
%13 = tail call i32 @ereport(i32 noundef %9, i32 noundef %12) #2
br label %14
14: ; preds = %8, %2
%15 = load i32, ptr %4, align 4, !tbaa !9
br label %16
16: ; preds = %6, %14
%17 = phi i32 [ %15, %14 ], [ 0, %6 ]
ret i32 %17
}
declare ptr @find_option(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @errcode(i32 noundef) local_unnamed_addr #1
declare i32 @errmsg(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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"config_generic", !6, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/utils/misc/extr_guc.c_GetConfigOptionFlags.c'
source_filename = "AnghaBench/postgres/src/backend/utils/misc/extr_guc.c_GetConfigOptionFlags.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WARNING = common local_unnamed_addr global i32 0, align 4
@ERROR = common local_unnamed_addr global i32 0, align 4
@ERRCODE_UNDEFINED_OBJECT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"unrecognized configuration parameter \22%s\22\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @GetConfigOptionFlags(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @WARNING, align 4, !tbaa !6
%4 = tail call ptr @find_option(ptr noundef %0, i32 noundef 0, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %14
6: ; preds = %2
%7 = icmp eq i32 %1, 0
br i1 %7, label %8, label %16
8: ; preds = %6
%9 = load i32, ptr @ERROR, align 4, !tbaa !6
%10 = load i32, ptr @ERRCODE_UNDEFINED_OBJECT, align 4, !tbaa !6
%11 = tail call i32 @errcode(i32 noundef %10) #2
%12 = tail call i32 @errmsg(ptr noundef nonnull @.str, ptr noundef %0) #2
%13 = tail call i32 @ereport(i32 noundef %9, i32 noundef %12) #2
br label %14
14: ; preds = %8, %2
%15 = load i32, ptr %4, align 4, !tbaa !10
br label %16
16: ; preds = %6, %14
%17 = phi i32 [ %15, %14 ], [ 0, %6 ]
ret i32 %17
}
declare ptr @find_option(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @errcode(i32 noundef) local_unnamed_addr #1
declare i32 @errmsg(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"}
!10 = !{!11, !7, i64 0}
!11 = !{!"config_generic", !7, i64 0}
| postgres_src_backend_utils_misc_extr_guc.c_GetConfigOptionFlags |
; ModuleID = 'AnghaBench/freebsd/sys/dev/agp/extr_agp_i810.c_agp_gen5_adjust_pgtbl_size.c'
source_filename = "AnghaBench/freebsd/sys/dev/agp/extr_agp_i810.c_agp_gen5_adjust_pgtbl_size.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"
@AGP_I965_PGTBL_CTL2 = dso_local local_unnamed_addr global i32 0, align 4
@AGP_I810_PGTBL_ENABLED = dso_local local_unnamed_addr global i32 0, align 4
@AGP_I810_PGTBL_CTL = dso_local local_unnamed_addr global i32 0, align 4
@AGP_I810_PGTBL_SIZE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @agp_gen5_adjust_pgtbl_size], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @agp_gen5_adjust_pgtbl_size(i32 noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @device_get_softc(i32 noundef %0) #2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %4, align 4, !tbaa !10
%6 = load i32, ptr @AGP_I965_PGTBL_CTL2, align 4, !tbaa !10
%7 = tail call i32 @bus_read_4(i32 noundef %5, i32 noundef %6) #2
%8 = load i32, ptr @AGP_I810_PGTBL_ENABLED, align 4, !tbaa !10
%9 = xor i32 %8, -1
%10 = and i32 %7, %9
%11 = load ptr, ptr %3, align 8, !tbaa !5
%12 = load i32, ptr %11, align 4, !tbaa !10
%13 = load i32, ptr @AGP_I965_PGTBL_CTL2, align 4, !tbaa !10
%14 = tail call i32 @bus_write_4(i32 noundef %12, i32 noundef %13, i32 noundef %10) #2
%15 = load ptr, ptr %3, align 8, !tbaa !5
%16 = load i32, ptr %15, align 4, !tbaa !10
%17 = load i32, ptr @AGP_I810_PGTBL_CTL, align 4, !tbaa !10
%18 = tail call i32 @bus_read_4(i32 noundef %16, i32 noundef %17) #2
%19 = load i32, ptr @AGP_I810_PGTBL_SIZE_MASK, align 4, !tbaa !10
%20 = xor i32 %19, -1
%21 = and i32 %18, %20
%22 = or i32 %21, %1
%23 = load ptr, ptr %3, align 8, !tbaa !5
%24 = load i32, ptr %23, align 4, !tbaa !10
%25 = load i32, ptr @AGP_I810_PGTBL_CTL, align 4, !tbaa !10
%26 = tail call i32 @bus_write_4(i32 noundef %24, i32 noundef %25, i32 noundef %22) #2
ret void
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @bus_read_4(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_write_4(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 = !{!"agp_i810_softc", !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/freebsd/sys/dev/agp/extr_agp_i810.c_agp_gen5_adjust_pgtbl_size.c'
source_filename = "AnghaBench/freebsd/sys/dev/agp/extr_agp_i810.c_agp_gen5_adjust_pgtbl_size.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AGP_I965_PGTBL_CTL2 = common local_unnamed_addr global i32 0, align 4
@AGP_I810_PGTBL_ENABLED = common local_unnamed_addr global i32 0, align 4
@AGP_I810_PGTBL_CTL = common local_unnamed_addr global i32 0, align 4
@AGP_I810_PGTBL_SIZE_MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @agp_gen5_adjust_pgtbl_size], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @agp_gen5_adjust_pgtbl_size(i32 noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @device_get_softc(i32 noundef %0) #2
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = load i32, ptr @AGP_I965_PGTBL_CTL2, align 4, !tbaa !11
%7 = tail call i32 @bus_read_4(i32 noundef %5, i32 noundef %6) #2
%8 = load i32, ptr @AGP_I810_PGTBL_ENABLED, align 4, !tbaa !11
%9 = xor i32 %8, -1
%10 = and i32 %7, %9
%11 = load ptr, ptr %3, align 8, !tbaa !6
%12 = load i32, ptr %11, align 4, !tbaa !11
%13 = load i32, ptr @AGP_I965_PGTBL_CTL2, align 4, !tbaa !11
%14 = tail call i32 @bus_write_4(i32 noundef %12, i32 noundef %13, i32 noundef %10) #2
%15 = load ptr, ptr %3, align 8, !tbaa !6
%16 = load i32, ptr %15, align 4, !tbaa !11
%17 = load i32, ptr @AGP_I810_PGTBL_CTL, align 4, !tbaa !11
%18 = tail call i32 @bus_read_4(i32 noundef %16, i32 noundef %17) #2
%19 = load i32, ptr @AGP_I810_PGTBL_SIZE_MASK, align 4, !tbaa !11
%20 = xor i32 %19, -1
%21 = and i32 %18, %20
%22 = or i32 %21, %1
%23 = load ptr, ptr %3, align 8, !tbaa !6
%24 = load i32, ptr %23, align 4, !tbaa !11
%25 = load i32, ptr @AGP_I810_PGTBL_CTL, align 4, !tbaa !11
%26 = tail call i32 @bus_write_4(i32 noundef %24, i32 noundef %25, i32 noundef %22) #2
ret void
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @bus_read_4(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_write_4(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 = !{!"agp_i810_softc", !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}
| freebsd_sys_dev_agp_extr_agp_i810.c_agp_gen5_adjust_pgtbl_size |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_hpsa.c_lockup_detected.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_hpsa.c_lockup_detected.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 @lockup_detected], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @lockup_detected(ptr nocapture noundef readonly %0) #0 {
%2 = tail call i32 (...) @get_cpu() #2
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call ptr @per_cpu_ptr(i32 noundef %3, i32 noundef %2) #2
%5 = load i32, ptr %4, align 4, !tbaa !10
%6 = tail call i32 (...) @put_cpu() #2
ret i32 %5
}
declare i32 @get_cpu(...) local_unnamed_addr #1
declare ptr @per_cpu_ptr(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @put_cpu(...) 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 = !{!"ctlr_info", !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/drivers/scsi/extr_hpsa.c_lockup_detected.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_hpsa.c_lockup_detected.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 @lockup_detected], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @lockup_detected(ptr nocapture noundef readonly %0) #0 {
%2 = tail call i32 @get_cpu() #2
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call ptr @per_cpu_ptr(i32 noundef %3, i32 noundef %2) #2
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = tail call i32 @put_cpu() #2
ret i32 %5
}
declare i32 @get_cpu(...) local_unnamed_addr #1
declare ptr @per_cpu_ptr(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @put_cpu(...) 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 = !{!"ctlr_info", !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_drivers_scsi_extr_hpsa.c_lockup_detected |
; ModuleID = 'AnghaBench/radare2/libr/bin/p/extr_..formatmach0mach0_defines.h_SET_COMM_ALIGN.c'
source_filename = "AnghaBench/radare2/libr/bin/p/extr_..formatmach0mach0_defines.h_SET_COMM_ALIGN.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 @SET_COMM_ALIGN], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define internal void @SET_COMM_ALIGN(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = and i32 %3, 61695
%5 = shl i32 %1, 8
%6 = and i32 %5, 3840
%7 = or disjoint i32 %4, %6
store i32 %7, ptr %0, align 4, !tbaa !5
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) 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/radare2/libr/bin/p/extr_..formatmach0mach0_defines.h_SET_COMM_ALIGN.c'
source_filename = "AnghaBench/radare2/libr/bin/p/extr_..formatmach0mach0_defines.h_SET_COMM_ALIGN.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 @SET_COMM_ALIGN], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) uwtable(sync)
define internal void @SET_COMM_ALIGN(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = and i32 %3, 61695
%5 = shl i32 %1, 8
%6 = and i32 %5, 3840
%7 = or disjoint i32 %4, %6
store i32 %7, ptr %0, align 4, !tbaa !6
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) 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"}
| radare2_libr_bin_p_extr_..formatmach0mach0_defines.h_SET_COMM_ALIGN |
; ModuleID = 'AnghaBench/kphp-kdb/mc-proxy/extr_mc-proxy.c_do_reload_config.c'
source_filename = "AnghaBench/kphp-kdb/mc-proxy/extr_mc-proxy.c_do_reload_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.mc_config = type { ptr, i32, i64 }
@need_reload_config = dso_local local_unnamed_addr global i64 0, align 8
@config_filename = dso_local local_unnamed_addr global ptr null, align 8
@O_RDONLY = dso_local local_unnamed_addr global i32 0, align 4
@fd = dso_local local_unnamed_addr global ptr null, align 8
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"cannot re-read config file %s: %m\0A\00", align 1
@verbosity = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [30 x i8] c"/etc/hosts changed, reloaded\0A\00", align 1
@NextConf = dso_local local_unnamed_addr global ptr null, align 8
@CurConf = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [70 x i8] c"error while re-reading config file %s, new configuration NOT applied\0A\00", align 1
@.str.3 = private unnamed_addr constant [99 x i8] c"error while re-reading config file %s, new configuration NOT applied: cannot open listening ports\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"fatal error while re-reading config file %s\0A\00", align 1
@now = dso_local local_unnamed_addr global i64 0, align 8
@config_bytes = dso_local local_unnamed_addr global i32 0, align 4
@config_buff = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [70 x i8] c"configuration file %s re-read successfully, new configuration active\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @do_reload_config(i32 noundef %0) local_unnamed_addr #0 {
store i64 0, ptr @need_reload_config, align 8, !tbaa !5
%2 = load ptr, ptr @config_filename, align 8, !tbaa !9
%3 = load i32, ptr @O_RDONLY, align 4, !tbaa !11
%4 = tail call i64 @open(ptr noundef %2, i32 noundef %3) #3
%5 = load ptr, ptr @fd, align 8, !tbaa !9
store i64 %4, ptr %5, align 8, !tbaa !5
%6 = icmp slt i64 %4, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4, !tbaa !11
%9 = load ptr, ptr @config_filename, align 8, !tbaa !9
%10 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef nonnull @.str, ptr noundef %9) #3
br label %87
11: ; preds = %1
%12 = tail call i32 (...) @kdb_load_hosts() #3
%13 = icmp sgt i32 %12, 0
%14 = load i64, ptr @verbosity, align 8
%15 = icmp sgt i64 %14, 0
%16 = select i1 %13, i1 %15, i1 false
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, ptr @stderr, align 4, !tbaa !11
%19 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef nonnull @.str.1) #3
br label %20
20: ; preds = %17, %11
%21 = load ptr, ptr @NextConf, align 8, !tbaa !9
%22 = load ptr, ptr @CurConf, align 8, !tbaa !9
%23 = tail call i32 @parse_config(ptr noundef %21, ptr noundef %22, i32 noundef 0) #3
%24 = load ptr, ptr @fd, align 8, !tbaa !9
%25 = load i64, ptr %24, align 8, !tbaa !5
%26 = tail call i32 @close(i64 noundef %25) #3
%27 = icmp slt i32 %23, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load ptr, ptr @config_filename, align 8, !tbaa !9
%30 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef %29) #3
br label %87
31: ; preds = %20
%32 = load ptr, ptr @NextConf, align 8, !tbaa !9
%33 = tail call i32 @try_open_new_listening_sockets(ptr noundef %32) #3
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load ptr, ptr @config_filename, align 8, !tbaa !9
%37 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef %36) #3
br label %87
38: ; preds = %31
%39 = load ptr, ptr @NextConf, align 8, !tbaa !9
%40 = load ptr, ptr @CurConf, align 8, !tbaa !9
%41 = tail call i32 @parse_config(ptr noundef %39, ptr noundef %40, i32 noundef 1) #3
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %50
43: ; preds = %38
%44 = load ptr, ptr @NextConf, align 8, !tbaa !9
%45 = tail call i32 @clear_config(ptr noundef %44, i32 noundef 0) #3
%46 = load ptr, ptr @config_filename, align 8, !tbaa !9
%47 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.4, ptr noundef %46) #3
%48 = sub nsw i32 0, %41
%49 = tail call i32 @exit(i32 noundef %48) #4
unreachable
50: ; preds = %38
%51 = icmp eq i32 %0, 0
br i1 %51, label %60, label %52
52: ; preds = %50
%53 = load ptr, ptr @NextConf, align 8, !tbaa !9
%54 = load ptr, ptr @CurConf, align 8, !tbaa !9
%55 = tail call i32 @transfer_listening_sockets(ptr noundef %53, ptr noundef %54) #3
%56 = load ptr, ptr @CurConf, align 8, !tbaa !9
%57 = load ptr, ptr @NextConf, align 8, !tbaa !9
store ptr %57, ptr @CurConf, align 8, !tbaa !9
store ptr %56, ptr @NextConf, align 8, !tbaa !9
%58 = tail call i32 @clear_config(ptr noundef %56, i32 noundef 1) #3
%59 = tail call i32 (...) @create_all_outbound_connections() #3
br label %64
60: ; preds = %50
%61 = load ptr, ptr @CurConf, align 8, !tbaa !9
%62 = load ptr, ptr @NextConf, align 8, !tbaa !9
store ptr %62, ptr @CurConf, align 8, !tbaa !9
store ptr %61, ptr @NextConf, align 8, !tbaa !9
%63 = tail call i32 @clear_config(ptr noundef %61, i32 noundef 1) #3
br label %64
64: ; preds = %60, %52
%65 = load i64, ptr @now, align 8, !tbaa !5
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = tail call i64 @time(i32 noundef 0) #3
br label %69
69: ; preds = %64, %67
%70 = phi i64 [ %68, %67 ], [ %65, %64 ]
%71 = load ptr, ptr @CurConf, align 8, !tbaa !9
%72 = getelementptr inbounds %struct.mc_config, ptr %71, i64 0, i32 2
store i64 %70, ptr %72, align 8, !tbaa !13
%73 = load i32, ptr @config_bytes, align 4, !tbaa !11
%74 = getelementptr inbounds %struct.mc_config, ptr %71, i64 0, i32 1
store i32 %73, ptr %74, align 8, !tbaa !15
%75 = tail call ptr @zmalloc(i32 noundef 33) #3
%76 = load ptr, ptr @CurConf, align 8, !tbaa !9
store ptr %75, ptr %76, align 8, !tbaa !16
%77 = load i32, ptr @config_buff, align 4, !tbaa !11
%78 = load i32, ptr @config_bytes, align 4, !tbaa !11
%79 = load ptr, ptr @CurConf, align 8, !tbaa !9
%80 = load ptr, ptr %79, align 8, !tbaa !16
%81 = tail call i32 @md5_hex(i32 noundef %77, i32 noundef %78, ptr noundef %80) #3
%82 = load ptr, ptr @CurConf, align 8, !tbaa !9
%83 = load ptr, ptr %82, align 8, !tbaa !16
%84 = getelementptr inbounds i64, ptr %83, i64 32
store i64 0, ptr %84, align 8, !tbaa !5
%85 = load ptr, ptr @config_filename, align 8, !tbaa !9
%86 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.5, ptr noundef %85) #3
br label %87
87: ; preds = %69, %35, %28, %7
%88 = phi i32 [ -1, %7 ], [ %23, %28 ], [ %33, %35 ], [ 0, %69 ]
ret i32 %88
}
declare i64 @open(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @kdb_load_hosts(...) local_unnamed_addr #1
declare i32 @parse_config(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @close(i64 noundef) local_unnamed_addr #1
declare i32 @vkprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @try_open_new_listening_sockets(ptr noundef) local_unnamed_addr #1
declare i32 @clear_config(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
declare i32 @transfer_listening_sockets(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @create_all_outbound_connections(...) local_unnamed_addr #1
declare i64 @time(i32 noundef) local_unnamed_addr #1
declare ptr @zmalloc(i32 noundef) local_unnamed_addr #1
declare i32 @md5_hex(i32 noundef, 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 = { noreturn "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 }
attributes #4 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"mc_config", !10, i64 0, !12, i64 8, !6, i64 16}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !10, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/mc-proxy/extr_mc-proxy.c_do_reload_config.c'
source_filename = "AnghaBench/kphp-kdb/mc-proxy/extr_mc-proxy.c_do_reload_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@need_reload_config = common local_unnamed_addr global i64 0, align 8
@config_filename = common local_unnamed_addr global ptr null, align 8
@O_RDONLY = common local_unnamed_addr global i32 0, align 4
@fd = common local_unnamed_addr global ptr null, align 8
@stderr = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"cannot re-read config file %s: %m\0A\00", align 1
@verbosity = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [30 x i8] c"/etc/hosts changed, reloaded\0A\00", align 1
@NextConf = common local_unnamed_addr global ptr null, align 8
@CurConf = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [70 x i8] c"error while re-reading config file %s, new configuration NOT applied\0A\00", align 1
@.str.3 = private unnamed_addr constant [99 x i8] c"error while re-reading config file %s, new configuration NOT applied: cannot open listening ports\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"fatal error while re-reading config file %s\0A\00", align 1
@now = common local_unnamed_addr global i64 0, align 8
@config_bytes = common local_unnamed_addr global i32 0, align 4
@config_buff = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [70 x i8] c"configuration file %s re-read successfully, new configuration active\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483648, 1) i32 @do_reload_config(i32 noundef %0) local_unnamed_addr #0 {
store i64 0, ptr @need_reload_config, align 8, !tbaa !6
%2 = load ptr, ptr @config_filename, align 8, !tbaa !10
%3 = load i32, ptr @O_RDONLY, align 4, !tbaa !12
%4 = tail call i64 @open(ptr noundef %2, i32 noundef %3) #3
%5 = load ptr, ptr @fd, align 8, !tbaa !10
store i64 %4, ptr %5, align 8, !tbaa !6
%6 = icmp slt i64 %4, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4, !tbaa !12
%9 = load ptr, ptr @config_filename, align 8, !tbaa !10
%10 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef nonnull @.str, ptr noundef %9) #3
br label %87
11: ; preds = %1
%12 = tail call i32 @kdb_load_hosts() #3
%13 = icmp sgt i32 %12, 0
%14 = load i64, ptr @verbosity, align 8
%15 = icmp sgt i64 %14, 0
%16 = select i1 %13, i1 %15, i1 false
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, ptr @stderr, align 4, !tbaa !12
%19 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef nonnull @.str.1) #3
br label %20
20: ; preds = %17, %11
%21 = load ptr, ptr @NextConf, align 8, !tbaa !10
%22 = load ptr, ptr @CurConf, align 8, !tbaa !10
%23 = tail call i32 @parse_config(ptr noundef %21, ptr noundef %22, i32 noundef 0) #3
%24 = load ptr, ptr @fd, align 8, !tbaa !10
%25 = load i64, ptr %24, align 8, !tbaa !6
%26 = tail call i32 @close(i64 noundef %25) #3
%27 = icmp slt i32 %23, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load ptr, ptr @config_filename, align 8, !tbaa !10
%30 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef %29) #3
br label %87
31: ; preds = %20
%32 = load ptr, ptr @NextConf, align 8, !tbaa !10
%33 = tail call i32 @try_open_new_listening_sockets(ptr noundef %32) #3
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load ptr, ptr @config_filename, align 8, !tbaa !10
%37 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef %36) #3
br label %87
38: ; preds = %31
%39 = load ptr, ptr @NextConf, align 8, !tbaa !10
%40 = load ptr, ptr @CurConf, align 8, !tbaa !10
%41 = tail call i32 @parse_config(ptr noundef %39, ptr noundef %40, i32 noundef 1) #3
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %50
43: ; preds = %38
%44 = load ptr, ptr @NextConf, align 8, !tbaa !10
%45 = tail call i32 @clear_config(ptr noundef %44, i32 noundef 0) #3
%46 = load ptr, ptr @config_filename, align 8, !tbaa !10
%47 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.4, ptr noundef %46) #3
%48 = sub nsw i32 0, %41
%49 = tail call i32 @exit(i32 noundef %48) #4
unreachable
50: ; preds = %38
%51 = icmp eq i32 %0, 0
br i1 %51, label %60, label %52
52: ; preds = %50
%53 = load ptr, ptr @NextConf, align 8, !tbaa !10
%54 = load ptr, ptr @CurConf, align 8, !tbaa !10
%55 = tail call i32 @transfer_listening_sockets(ptr noundef %53, ptr noundef %54) #3
%56 = load ptr, ptr @CurConf, align 8, !tbaa !10
%57 = load ptr, ptr @NextConf, align 8, !tbaa !10
store ptr %57, ptr @CurConf, align 8, !tbaa !10
store ptr %56, ptr @NextConf, align 8, !tbaa !10
%58 = tail call i32 @clear_config(ptr noundef %56, i32 noundef 1) #3
%59 = tail call i32 @create_all_outbound_connections() #3
br label %64
60: ; preds = %50
%61 = load ptr, ptr @CurConf, align 8, !tbaa !10
%62 = load ptr, ptr @NextConf, align 8, !tbaa !10
store ptr %62, ptr @CurConf, align 8, !tbaa !10
store ptr %61, ptr @NextConf, align 8, !tbaa !10
%63 = tail call i32 @clear_config(ptr noundef %61, i32 noundef 1) #3
br label %64
64: ; preds = %60, %52
%65 = load i64, ptr @now, align 8, !tbaa !6
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = tail call i64 @time(i32 noundef 0) #3
br label %69
69: ; preds = %64, %67
%70 = phi i64 [ %68, %67 ], [ %65, %64 ]
%71 = load ptr, ptr @CurConf, align 8, !tbaa !10
%72 = getelementptr inbounds i8, ptr %71, i64 16
store i64 %70, ptr %72, align 8, !tbaa !14
%73 = load i32, ptr @config_bytes, align 4, !tbaa !12
%74 = getelementptr inbounds i8, ptr %71, i64 8
store i32 %73, ptr %74, align 8, !tbaa !16
%75 = tail call ptr @zmalloc(i32 noundef 33) #3
%76 = load ptr, ptr @CurConf, align 8, !tbaa !10
store ptr %75, ptr %76, align 8, !tbaa !17
%77 = load i32, ptr @config_buff, align 4, !tbaa !12
%78 = load i32, ptr @config_bytes, align 4, !tbaa !12
%79 = load ptr, ptr @CurConf, align 8, !tbaa !10
%80 = load ptr, ptr %79, align 8, !tbaa !17
%81 = tail call i32 @md5_hex(i32 noundef %77, i32 noundef %78, ptr noundef %80) #3
%82 = load ptr, ptr @CurConf, align 8, !tbaa !10
%83 = load ptr, ptr %82, align 8, !tbaa !17
%84 = getelementptr inbounds i8, ptr %83, i64 256
store i64 0, ptr %84, align 8, !tbaa !6
%85 = load ptr, ptr @config_filename, align 8, !tbaa !10
%86 = tail call i32 @vkprintf(i32 noundef 0, ptr noundef nonnull @.str.5, ptr noundef %85) #3
br label %87
87: ; preds = %69, %35, %28, %7
%88 = phi i32 [ -1, %7 ], [ %23, %28 ], [ %33, %35 ], [ 0, %69 ]
ret i32 %88
}
declare i64 @open(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @kdb_load_hosts(...) local_unnamed_addr #1
declare i32 @parse_config(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @close(i64 noundef) local_unnamed_addr #1
declare i32 @vkprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @try_open_new_listening_sockets(ptr noundef) local_unnamed_addr #1
declare i32 @clear_config(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
declare i32 @transfer_listening_sockets(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @create_all_outbound_connections(...) local_unnamed_addr #1
declare i64 @time(i32 noundef) local_unnamed_addr #1
declare ptr @zmalloc(i32 noundef) local_unnamed_addr #1
declare i32 @md5_hex(i32 noundef, 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 = { noreturn "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 }
attributes #4 = { noreturn 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 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !7, i64 16}
!15 = !{!"mc_config", !11, i64 0, !13, i64 8, !7, i64 16}
!16 = !{!15, !13, i64 8}
!17 = !{!15, !11, i64 0}
| kphp-kdb_mc-proxy_extr_mc-proxy.c_do_reload_config |
; ModuleID = 'AnghaBench/linux/fs/nfsd/extr_nfs4callback.c_encode_cb_recall4args.c'
source_filename = "AnghaBench/linux/fs/nfsd/extr_nfs4callback.c_encode_cb_recall4args.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 { ptr, i32 }
@OP_CB_RECALL = dso_local local_unnamed_addr global i32 0, align 4
@xdr_zero = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @encode_cb_recall4args], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @encode_cb_recall4args(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2) #0 {
%4 = load i32, ptr @OP_CB_RECALL, align 4, !tbaa !5
%5 = tail call i32 @encode_nfs_cb_opnum4(ptr noundef %0, i32 noundef %4) #2
%6 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 1
%7 = tail call i32 @encode_stateid4(ptr noundef %0, ptr noundef nonnull %6) #2
%8 = tail call ptr @xdr_reserve_space(ptr noundef %0, i32 noundef 4) #2
%9 = load i32, ptr @xdr_zero, align 4, !tbaa !5
store i32 %9, ptr %8, align 4, !tbaa !5
%10 = load ptr, ptr %1, align 8, !tbaa !9
%11 = tail call i32 @encode_nfs_fh4(ptr noundef %0, ptr noundef %10) #2
%12 = load i32, ptr %2, align 4, !tbaa !13
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4, !tbaa !13
ret void
}
declare i32 @encode_nfs_cb_opnum4(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @encode_stateid4(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @xdr_reserve_space(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @encode_nfs_fh4(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"}
!9 = !{!10, !12, i64 0}
!10 = !{!"nfs4_delegation", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0, !6, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"nfs4_cb_compound_hdr", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/nfsd/extr_nfs4callback.c_encode_cb_recall4args.c'
source_filename = "AnghaBench/linux/fs/nfsd/extr_nfs4callback.c_encode_cb_recall4args.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OP_CB_RECALL = common local_unnamed_addr global i32 0, align 4
@xdr_zero = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @encode_cb_recall4args], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @encode_cb_recall4args(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2) #0 {
%4 = load i32, ptr @OP_CB_RECALL, align 4, !tbaa !6
%5 = tail call i32 @encode_nfs_cb_opnum4(ptr noundef %0, i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %1, i64 8
%7 = tail call i32 @encode_stateid4(ptr noundef %0, ptr noundef nonnull %6) #2
%8 = tail call ptr @xdr_reserve_space(ptr noundef %0, i32 noundef 4) #2
%9 = load i32, ptr @xdr_zero, align 4, !tbaa !6
store i32 %9, ptr %8, align 4, !tbaa !6
%10 = load ptr, ptr %1, align 8, !tbaa !10
%11 = tail call i32 @encode_nfs_fh4(ptr noundef %0, ptr noundef %10) #2
%12 = load i32, ptr %2, align 4, !tbaa !14
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4, !tbaa !14
ret void
}
declare i32 @encode_nfs_cb_opnum4(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @encode_stateid4(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @xdr_reserve_space(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @encode_nfs_fh4(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"}
!10 = !{!11, !13, i64 0}
!11 = !{!"nfs4_delegation", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0, !7, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"nfs4_cb_compound_hdr", !7, i64 0}
| linux_fs_nfsd_extr_nfs4callback.c_encode_cb_recall4args |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/md/persistent-data/extr_dm-block-manager.c_dm_bm_block_size.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/md/persistent-data/extr_dm-block-manager.c_dm_bm_block_size.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 i32 @dm_bm_block_size(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = tail call i32 @dm_bufio_get_block_size(i32 noundef %2) #2
ret i32 %3
}
declare i32 @dm_bufio_get_block_size(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 = !{!"dm_block_manager", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/md/persistent-data/extr_dm-block-manager.c_dm_bm_block_size.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/md/persistent-data/extr_dm-block-manager.c_dm_bm_block_size.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 i32 @dm_bm_block_size(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = tail call i32 @dm_bufio_get_block_size(i32 noundef %2) #2
ret i32 %3
}
declare i32 @dm_bufio_get_block_size(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 = !{!"dm_block_manager", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_md_persistent-data_extr_dm-block-manager.c_dm_bm_block_size |
; ModuleID = 'AnghaBench/freebsd/contrib/binutils/ld/extr_ldlang.c_sort_sections_by_lma.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/ld/extr_ldlang.c_sort_sections_by_lma.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 @sort_sections_by_lma], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sort_sections_by_lma(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = load i32, ptr %3, align 4, !tbaa !9
%6 = tail call i64 @bfd_section_lma(i32 noundef %5, ptr noundef nonnull %3) #2
%7 = load i32, ptr %4, align 4, !tbaa !9
%8 = tail call i64 @bfd_section_lma(i32 noundef %7, ptr noundef nonnull %4) #2
%9 = icmp slt i64 %6, %8
br i1 %9, label %17, label %10
10: ; preds = %2
%11 = load i32, ptr %3, align 4, !tbaa !9
%12 = tail call i64 @bfd_section_lma(i32 noundef %11, ptr noundef nonnull %3) #2
%13 = load i32, ptr %4, align 4, !tbaa !9
%14 = tail call i64 @bfd_section_lma(i32 noundef %13, ptr noundef nonnull %4) #2
%15 = icmp sgt i64 %12, %14
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %10, %2
%18 = phi i32 [ -1, %2 ], [ %16, %10 ]
ret i32 %18
}
declare i64 @bfd_section_lma(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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0}
!11 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/binutils/ld/extr_ldlang.c_sort_sections_by_lma.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/ld/extr_ldlang.c_sort_sections_by_lma.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 @sort_sections_by_lma], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 2) i32 @sort_sections_by_lma(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = load i32, ptr %3, align 4, !tbaa !10
%6 = tail call i64 @bfd_section_lma(i32 noundef %5, ptr noundef nonnull %3) #2
%7 = load i32, ptr %4, align 4, !tbaa !10
%8 = tail call i64 @bfd_section_lma(i32 noundef %7, ptr noundef nonnull %4) #2
%9 = icmp slt i64 %6, %8
br i1 %9, label %17, label %10
10: ; preds = %2
%11 = load i32, ptr %3, align 4, !tbaa !10
%12 = tail call i64 @bfd_section_lma(i32 noundef %11, ptr noundef nonnull %3) #2
%13 = load i32, ptr %4, align 4, !tbaa !10
%14 = tail call i64 @bfd_section_lma(i32 noundef %13, ptr noundef nonnull %4) #2
%15 = icmp sgt i64 %12, %14
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %10, %2
%18 = phi i32 [ -1, %2 ], [ %16, %10 ]
ret i32 %18
}
declare i64 @bfd_section_lma(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, !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 = !{!"TYPE_3__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| freebsd_contrib_binutils_ld_extr_ldlang.c_sort_sections_by_lma |
; ModuleID = 'AnghaBench/postgres/src/backend/utils/mmgr/extr_mcxt.c_MemoryContextCreate.c'
source_filename = "AnghaBench/postgres/src/backend/utils/mmgr/extr_mcxt.c_MemoryContextCreate.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, ptr, i32, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, i32 }
@CritSectionCount = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @MemoryContextCreate(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = load i64, ptr @CritSectionCount, align 8, !tbaa !5
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @Assert(i32 noundef %8) #3
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 11
store i32 %1, ptr %10, align 8, !tbaa !9
store i32 1, ptr %0, align 8, !tbaa !13
%11 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 10
store ptr %2, ptr %11, align 8, !tbaa !14
%12 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 9
store ptr %3, ptr %12, align 8, !tbaa !15
%13 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 4
%14 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 8
store i64 0, ptr %14, align 8, !tbaa !16
%15 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
store ptr %4, ptr %15, align 8, !tbaa !17
%16 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 6
%17 = icmp eq ptr %3, null
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, i8 0, i64 16, i1 false)
br i1 %17, label %28, label %18
18: ; preds = %5
%19 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i64 0, i32 4
%20 = load ptr, ptr %19, align 8, !tbaa !18
%21 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 3
store ptr %20, ptr %21, align 8, !tbaa !19
%22 = icmp eq ptr %20, null
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = getelementptr inbounds %struct.TYPE_5__, ptr %20, i64 0, i32 5
store ptr %0, ptr %24, align 8, !tbaa !20
br label %25
25: ; preds = %23, %18
store ptr %0, ptr %19, align 8, !tbaa !18
%26 = getelementptr inbounds %struct.TYPE_5__, ptr %3, i64 0, i32 2
%27 = load i32, ptr %26, align 8, !tbaa !21
br label %30
28: ; preds = %5
%29 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 3
store ptr null, ptr %29, align 8, !tbaa !19
br label %30
30: ; preds = %28, %25
%31 = phi i32 [ 0, %28 ], [ %27, %25 ]
%32 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
store i32 %31, ptr %32, align 8, !tbaa !21
%33 = tail call i32 @VALGRIND_CREATE_MEMPOOL(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #3
ret void
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare i32 @VALGRIND_CREATE_MEMPOOL(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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 88}
!10 = !{!"TYPE_5__", !11, i64 0, !12, i64 8, !11, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !12, i64 72, !12, i64 80, !11, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !12, i64 80}
!15 = !{!10, !12, i64 72}
!16 = !{!10, !6, i64 64}
!17 = !{!10, !12, i64 8}
!18 = !{!10, !12, i64 32}
!19 = !{!10, !12, i64 24}
!20 = !{!10, !12, i64 40}
!21 = !{!10, !11, i64 16}
| ; ModuleID = 'AnghaBench/postgres/src/backend/utils/mmgr/extr_mcxt.c_MemoryContextCreate.c'
source_filename = "AnghaBench/postgres/src/backend/utils/mmgr/extr_mcxt.c_MemoryContextCreate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CritSectionCount = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @MemoryContextCreate(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = load i64, ptr @CritSectionCount, align 8, !tbaa !6
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @Assert(i32 noundef %8) #3
%10 = getelementptr inbounds i8, ptr %0, i64 88
store i32 %1, ptr %10, align 8, !tbaa !10
store i32 1, ptr %0, align 8, !tbaa !14
%11 = getelementptr inbounds i8, ptr %0, i64 80
store ptr %2, ptr %11, align 8, !tbaa !15
%12 = getelementptr inbounds i8, ptr %0, i64 72
store ptr %3, ptr %12, align 8, !tbaa !16
%13 = getelementptr inbounds i8, ptr %0, i64 32
%14 = getelementptr inbounds i8, ptr %0, i64 64
store i64 0, ptr %14, align 8, !tbaa !17
%15 = getelementptr inbounds i8, ptr %0, i64 8
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
store ptr %4, ptr %15, align 8, !tbaa !18
%16 = getelementptr inbounds i8, ptr %0, i64 48
%17 = icmp eq ptr %3, null
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, i8 0, i64 16, i1 false)
br i1 %17, label %28, label %18
18: ; preds = %5
%19 = getelementptr inbounds i8, ptr %3, i64 32
%20 = load ptr, ptr %19, align 8, !tbaa !19
%21 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %20, ptr %21, align 8, !tbaa !20
%22 = icmp eq ptr %20, null
br i1 %22, label %25, label %23
23: ; preds = %18
%24 = getelementptr inbounds i8, ptr %20, i64 40
store ptr %0, ptr %24, align 8, !tbaa !21
br label %25
25: ; preds = %23, %18
store ptr %0, ptr %19, align 8, !tbaa !19
%26 = getelementptr inbounds i8, ptr %3, i64 16
%27 = load i32, ptr %26, align 8, !tbaa !22
br label %30
28: ; preds = %5
%29 = getelementptr inbounds i8, ptr %0, i64 24
store ptr null, ptr %29, align 8, !tbaa !20
br label %30
30: ; preds = %28, %25
%31 = phi i32 [ 0, %28 ], [ %27, %25 ]
%32 = getelementptr inbounds i8, ptr %0, i64 16
store i32 %31, ptr %32, align 8, !tbaa !22
%33 = tail call i32 @VALGRIND_CREATE_MEMPOOL(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #3
ret void
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare i32 @VALGRIND_CREATE_MEMPOOL(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, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 88}
!11 = !{!"TYPE_5__", !12, i64 0, !13, i64 8, !12, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !7, i64 64, !13, i64 72, !13, i64 80, !12, i64 88}
!12 = !{!"int", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!11, !13, i64 80}
!16 = !{!11, !13, i64 72}
!17 = !{!11, !7, i64 64}
!18 = !{!11, !13, i64 8}
!19 = !{!11, !13, i64 32}
!20 = !{!11, !13, i64 24}
!21 = !{!11, !13, i64 40}
!22 = !{!11, !12, i64 16}
| postgres_src_backend_utils_mmgr_extr_mcxt.c_MemoryContextCreate |
; ModuleID = 'AnghaBench/libsodium/src/libsodium/crypto_aead/aegis256/extr_aead_aegis256.c_crypto_aead_aegis256_nsecbytes.c'
source_filename = "AnghaBench/libsodium/src/libsodium/crypto_aead/aegis256/extr_aead_aegis256.c_crypto_aead_aegis256_nsecbytes.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"
@crypto_aead_aegis256_NSECBYTES = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i64 @crypto_aead_aegis256_nsecbytes() local_unnamed_addr #0 {
%1 = load i64, ptr @crypto_aead_aegis256_NSECBYTES, align 8, !tbaa !5
ret i64 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libsodium/src/libsodium/crypto_aead/aegis256/extr_aead_aegis256.c_crypto_aead_aegis256_nsecbytes.c'
source_filename = "AnghaBench/libsodium/src/libsodium/crypto_aead/aegis256/extr_aead_aegis256.c_crypto_aead_aegis256_nsecbytes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@crypto_aead_aegis256_NSECBYTES = common local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i64 @crypto_aead_aegis256_nsecbytes() local_unnamed_addr #0 {
%1 = load i64, ptr @crypto_aead_aegis256_NSECBYTES, align 8, !tbaa !6
ret i64 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, 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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| libsodium_src_libsodium_crypto_aead_aegis256_extr_aead_aegis256.c_crypto_aead_aegis256_nsecbytes |
; ModuleID = 'AnghaBench/openpilot/phonelibs/nanovg/extr_nanovg.c_nvgResetScissor.c'
source_filename = "AnghaBench/openpilot/phonelibs/nanovg/extr_nanovg.c_nvgResetScissor.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 { ptr, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @nvgResetScissor(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @nvg__getState(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.TYPE_4__, ptr %2, i64 0, i32 1
%4 = load i32, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @memset(i32 noundef %4, i32 noundef 0, i32 noundef 4) #2
%6 = load ptr, ptr %2, align 8, !tbaa !12
store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %6, align 4, !tbaa !13
ret void
}
declare ptr @nvg__getState(ptr noundef) local_unnamed_addr #1
declare i32 @memset(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, !11, i64 8}
!6 = !{!"TYPE_5__", !7, i64 0}
!7 = !{!"TYPE_4__", !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 = !{!6, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !9, i64 0}
| ; ModuleID = 'AnghaBench/openpilot/phonelibs/nanovg/extr_nanovg.c_nvgResetScissor.c'
source_filename = "AnghaBench/openpilot/phonelibs/nanovg/extr_nanovg.c_nvgResetScissor.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 @nvgResetScissor(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @nvg__getState(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %2, i64 8
%4 = load i32, ptr %3, align 8, !tbaa !6
%5 = tail call i32 @memset(i32 noundef %4, i32 noundef 0, i32 noundef 4) #2
%6 = load ptr, ptr %2, align 8, !tbaa !13
store <2 x float> <float -1.000000e+00, float -1.000000e+00>, ptr %6, align 4, !tbaa !14
ret void
}
declare ptr @nvg__getState(ptr noundef) local_unnamed_addr #1
declare i32 @memset(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, !12, i64 8}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!7, !9, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !10, i64 0}
| openpilot_phonelibs_nanovg_extr_nanovg.c_nvgResetScissor |
; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/cmd/zhack/extr_zhack.c_zhack_do_feature_enable.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/cmd/zhack/extr_zhack.c_zhack_do_feature_enable.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, ptr, ptr, i64, i32, ptr }
%struct.TYPE_9__ = type { i32, ptr }
@SPA_FEATURE_NONE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"zhack\00", align 1
@optind = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"rmd:\00", align 1
@ZFEATURE_FLAG_READONLY_COMPAT = dso_local local_unnamed_addr global i64 0, align 8
@optarg = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [15 x i8] c"zhack injected\00", align 1
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [37 x i8] c"error: missing feature or pool name\0A\00", align 1
@FTAG = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [25 x i8] c"invalid feature guid: %s\00", align 1
@B_FALSE = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"'%s' is a real feature, will not enable\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"feature already enabled: %s\00", align 1
@zhack_feature_enable_sync = dso_local local_unnamed_addr global i32 0, align 4
@ZFS_SPACE_CHECK_NORMAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @zhack_do_feature_enable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @zhack_do_feature_enable(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca %struct.TYPE_8__, align 8
%5 = alloca [1 x i32], align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
%6 = load i32, ptr @SPA_FEATURE_NONE, align 4, !tbaa !5
store i32 %6, ptr %5, align 4, !tbaa !5
store ptr @.str, ptr %4, align 8, !tbaa !9
%7 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 3
store i64 0, ptr %7, align 8, !tbaa !13
%8 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 5
store ptr %5, ptr %8, align 8, !tbaa !14
%9 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 4
store i32 %6, ptr %9, align 8, !tbaa !15
store i32 1, ptr @optind, align 4, !tbaa !5
br label %10
10: ; preds = %17, %2
%11 = phi i64 [ %19, %17 ], [ 0, %2 ]
%12 = phi ptr [ %14, %17 ], [ null, %2 ]
br label %13
13: ; preds = %10, %20
%14 = phi ptr [ %12, %10 ], [ %22, %20 ]
br label %15
15: ; preds = %13, %23
%16 = call signext i8 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1) #4
switch i8 %16, label %23 [
i8 -1, label %25
i8 114, label %17
i8 100, label %20
]
17: ; preds = %15
%18 = load i64, ptr @ZFEATURE_FLAG_READONLY_COMPAT, align 8, !tbaa !16
%19 = or i64 %11, %18
store i64 %19, ptr %7, align 8, !tbaa !13
br label %10, !llvm.loop !17
20: ; preds = %15
%21 = load ptr, ptr @optarg, align 8, !tbaa !19
%22 = call ptr @strdup(ptr noundef %21)
br label %13, !llvm.loop !17
23: ; preds = %15
%24 = call i32 (...) @usage() #4
br label %15, !llvm.loop !17
25: ; preds = %15
%26 = icmp eq ptr %14, null
br i1 %26, label %27, label %29
27: ; preds = %25
%28 = call dereferenceable_or_null(15) ptr @strdup(ptr noundef nonnull @.str.2)
br label %29
29: ; preds = %27, %25
%30 = phi ptr [ %28, %27 ], [ %14, %25 ]
%31 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 1
store ptr %30, ptr %31, align 8, !tbaa !20
%32 = load i32, ptr @optind, align 4, !tbaa !5
%33 = sub nsw i32 %0, %32
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds ptr, ptr %1, i64 %34
%36 = icmp slt i32 %33, 2
br i1 %36, label %37, label %41
37: ; preds = %29
%38 = load i32, ptr @stderr, align 4, !tbaa !5
%39 = call i32 @fprintf(i32 noundef %38, ptr noundef nonnull @.str.3) #4
%40 = call i32 (...) @usage() #4
br label %41
41: ; preds = %37, %29
%42 = load ptr, ptr %35, align 8, !tbaa !19
%43 = getelementptr inbounds ptr, ptr %35, i64 1
%44 = load ptr, ptr %43, align 8, !tbaa !19
%45 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 2
store ptr %44, ptr %45, align 8, !tbaa !21
%46 = call i32 @zfeature_is_valid_guid(ptr noundef %44) #4
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %41
%49 = load i32, ptr @FTAG, align 4, !tbaa !5
%50 = call i32 (ptr, i32, ptr, ...) @fatal(ptr noundef null, i32 noundef %49, ptr noundef nonnull @.str.4, ptr noundef %44) #4
br label %51
51: ; preds = %48, %41
%52 = load i32, ptr @B_FALSE, align 4, !tbaa !5
%53 = load i32, ptr @FTAG, align 4, !tbaa !5
%54 = call i32 @zhack_spa_open(ptr noundef %42, i32 noundef %52, i32 noundef %53, ptr noundef nonnull %3) #4
%55 = load ptr, ptr %3, align 8, !tbaa !19
%56 = getelementptr inbounds %struct.TYPE_9__, ptr %55, i64 0, i32 1
%57 = load ptr, ptr %56, align 8, !tbaa !22
%58 = call i64 @zfeature_is_supported(ptr noundef %44) #4
%59 = icmp eq i64 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %51
%61 = load ptr, ptr %3, align 8, !tbaa !19
%62 = load i32, ptr @FTAG, align 4, !tbaa !5
%63 = call i32 (ptr, i32, ptr, ...) @fatal(ptr noundef %61, i32 noundef %62, ptr noundef nonnull @.str.5) #4
br label %64
64: ; preds = %60, %51
%65 = load ptr, ptr %3, align 8, !tbaa !19
%66 = load i32, ptr %65, align 8, !tbaa !24
%67 = call i64 @zap_contains(ptr noundef %57, i32 noundef %66, ptr noundef %44) #4
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %64
%70 = load ptr, ptr %3, align 8, !tbaa !19
%71 = load i32, ptr @FTAG, align 4, !tbaa !5
%72 = call i32 (ptr, i32, ptr, ...) @fatal(ptr noundef %70, i32 noundef %71, ptr noundef nonnull @.str.6, ptr noundef %44) #4
br label %73
73: ; preds = %69, %64
%74 = load ptr, ptr %3, align 8, !tbaa !19
%75 = call i32 @spa_name(ptr noundef %74) #4
%76 = load i32, ptr @zhack_feature_enable_sync, align 4, !tbaa !5
%77 = load i32, ptr @ZFS_SPACE_CHECK_NORMAL, align 4, !tbaa !5
%78 = call i32 @dsl_sync_task(i32 noundef %75, ptr noundef null, i32 noundef %76, ptr noundef nonnull %4, i32 noundef 5, i32 noundef %77) #4
%79 = call i32 @VERIFY0(i32 noundef %78) #4
%80 = load ptr, ptr %3, align 8, !tbaa !19
%81 = load i32, ptr @FTAG, align 4, !tbaa !5
%82 = call i32 @spa_close(ptr noundef %80, i32 noundef %81) #4
%83 = call i32 @free(ptr noundef %30) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #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
declare signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3
declare i32 @usage(...) local_unnamed_addr #2
declare i32 @fprintf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @zfeature_is_valid_guid(ptr noundef) local_unnamed_addr #2
declare i32 @fatal(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @zhack_spa_open(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @zfeature_is_supported(ptr noundef) local_unnamed_addr #2
declare i64 @zap_contains(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @VERIFY0(i32 noundef) local_unnamed_addr #2
declare i32 @dsl_sync_task(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spa_name(ptr noundef) local_unnamed_addr #2
declare i32 @spa_close(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = !{!"int", !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, !11, i64 8, !11, i64 16, !12, i64 24, !6, i64 32, !11, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 24}
!14 = !{!10, !11, i64 40}
!15 = !{!10, !6, i64 32}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!11, !11, i64 0}
!20 = !{!10, !11, i64 8}
!21 = !{!10, !11, i64 16}
!22 = !{!23, !11, i64 8}
!23 = !{!"TYPE_9__", !6, i64 0, !11, i64 8}
!24 = !{!23, !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/cmd/zhack/extr_zhack.c_zhack_do_feature_enable.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/cmd/zhack/extr_zhack.c_zhack_do_feature_enable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_8__ = type { ptr, ptr, ptr, i64, i32, ptr }
@SPA_FEATURE_NONE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"zhack\00", align 1
@optind = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"rmd:\00", align 1
@ZFEATURE_FLAG_READONLY_COMPAT = common local_unnamed_addr global i64 0, align 8
@optarg = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [15 x i8] c"zhack injected\00", align 1
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [37 x i8] c"error: missing feature or pool name\0A\00", align 1
@FTAG = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [25 x i8] c"invalid feature guid: %s\00", align 1
@B_FALSE = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"'%s' is a real feature, will not enable\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"feature already enabled: %s\00", align 1
@zhack_feature_enable_sync = common local_unnamed_addr global i32 0, align 4
@ZFS_SPACE_CHECK_NORMAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @zhack_do_feature_enable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @zhack_do_feature_enable(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca %struct.TYPE_8__, align 8
%5 = alloca [1 x i32], align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
%6 = load i32, ptr @SPA_FEATURE_NONE, align 4, !tbaa !6
store i32 %6, ptr %5, align 4, !tbaa !6
store ptr @.str, ptr %4, align 8, !tbaa !10
%7 = getelementptr inbounds i8, ptr %4, i64 24
store i64 0, ptr %7, align 8, !tbaa !14
%8 = getelementptr inbounds i8, ptr %4, i64 40
store ptr %5, ptr %8, align 8, !tbaa !15
%9 = getelementptr inbounds i8, ptr %4, i64 32
store i32 %6, ptr %9, align 8, !tbaa !16
store i32 1, ptr @optind, align 4, !tbaa !6
br label %10
10: ; preds = %17, %2
%11 = phi i64 [ %19, %17 ], [ 0, %2 ]
%12 = phi ptr [ %14, %17 ], [ null, %2 ]
br label %13
13: ; preds = %10, %20
%14 = phi ptr [ %12, %10 ], [ %22, %20 ]
br label %15
15: ; preds = %13, %23
%16 = call signext i8 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1) #4
switch i8 %16, label %23 [
i8 -1, label %25
i8 114, label %17
i8 100, label %20
]
17: ; preds = %15
%18 = load i64, ptr @ZFEATURE_FLAG_READONLY_COMPAT, align 8, !tbaa !17
%19 = or i64 %11, %18
store i64 %19, ptr %7, align 8, !tbaa !14
br label %10, !llvm.loop !18
20: ; preds = %15
%21 = load ptr, ptr @optarg, align 8, !tbaa !20
%22 = call ptr @strdup(ptr noundef %21)
br label %13, !llvm.loop !18
23: ; preds = %15
%24 = call i32 @usage() #4
br label %15, !llvm.loop !18
25: ; preds = %15
%26 = icmp eq ptr %14, null
br i1 %26, label %27, label %29
27: ; preds = %25
%28 = call dereferenceable_or_null(15) ptr @strdup(ptr noundef nonnull @.str.2)
br label %29
29: ; preds = %27, %25
%30 = phi ptr [ %28, %27 ], [ %14, %25 ]
%31 = getelementptr inbounds i8, ptr %4, i64 8
store ptr %30, ptr %31, align 8, !tbaa !21
%32 = load i32, ptr @optind, align 4, !tbaa !6
%33 = sub nsw i32 %0, %32
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds ptr, ptr %1, i64 %34
%36 = icmp slt i32 %33, 2
br i1 %36, label %37, label %41
37: ; preds = %29
%38 = load i32, ptr @stderr, align 4, !tbaa !6
%39 = call i32 @fprintf(i32 noundef %38, ptr noundef nonnull @.str.3) #4
%40 = call i32 @usage() #4
br label %41
41: ; preds = %37, %29
%42 = load ptr, ptr %35, align 8, !tbaa !20
%43 = getelementptr inbounds i8, ptr %35, i64 8
%44 = load ptr, ptr %43, align 8, !tbaa !20
%45 = getelementptr inbounds i8, ptr %4, i64 16
store ptr %44, ptr %45, align 8, !tbaa !22
%46 = call i32 @zfeature_is_valid_guid(ptr noundef %44) #4
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %41
%49 = load i32, ptr @FTAG, align 4, !tbaa !6
%50 = call i32 (ptr, i32, ptr, ...) @fatal(ptr noundef null, i32 noundef %49, ptr noundef nonnull @.str.4, ptr noundef %44) #4
br label %51
51: ; preds = %48, %41
%52 = load i32, ptr @B_FALSE, align 4, !tbaa !6
%53 = load i32, ptr @FTAG, align 4, !tbaa !6
%54 = call i32 @zhack_spa_open(ptr noundef %42, i32 noundef %52, i32 noundef %53, ptr noundef nonnull %3) #4
%55 = load ptr, ptr %3, align 8, !tbaa !20
%56 = getelementptr inbounds i8, ptr %55, i64 8
%57 = load ptr, ptr %56, align 8, !tbaa !23
%58 = call i64 @zfeature_is_supported(ptr noundef %44) #4
%59 = icmp eq i64 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %51
%61 = load ptr, ptr %3, align 8, !tbaa !20
%62 = load i32, ptr @FTAG, align 4, !tbaa !6
%63 = call i32 (ptr, i32, ptr, ...) @fatal(ptr noundef %61, i32 noundef %62, ptr noundef nonnull @.str.5) #4
br label %64
64: ; preds = %60, %51
%65 = load ptr, ptr %3, align 8, !tbaa !20
%66 = load i32, ptr %65, align 8, !tbaa !25
%67 = call i64 @zap_contains(ptr noundef %57, i32 noundef %66, ptr noundef %44) #4
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %64
%70 = load ptr, ptr %3, align 8, !tbaa !20
%71 = load i32, ptr @FTAG, align 4, !tbaa !6
%72 = call i32 (ptr, i32, ptr, ...) @fatal(ptr noundef %70, i32 noundef %71, ptr noundef nonnull @.str.6, ptr noundef %44) #4
br label %73
73: ; preds = %69, %64
%74 = load ptr, ptr %3, align 8, !tbaa !20
%75 = call i32 @spa_name(ptr noundef %74) #4
%76 = load i32, ptr @zhack_feature_enable_sync, align 4, !tbaa !6
%77 = load i32, ptr @ZFS_SPACE_CHECK_NORMAL, align 4, !tbaa !6
%78 = call i32 @dsl_sync_task(i32 noundef %75, ptr noundef null, i32 noundef %76, ptr noundef nonnull %4, i32 noundef 5, i32 noundef %77) #4
%79 = call i32 @VERIFY0(i32 noundef %78) #4
%80 = load ptr, ptr %3, align 8, !tbaa !20
%81 = load i32, ptr @FTAG, align 4, !tbaa !6
%82 = call i32 @spa_close(ptr noundef %80, i32 noundef %81) #4
%83 = call i32 @free(ptr noundef %30) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #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
declare signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3
declare i32 @usage(...) local_unnamed_addr #2
declare i32 @fprintf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @zfeature_is_valid_guid(ptr noundef) local_unnamed_addr #2
declare i32 @fatal(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @zhack_spa_open(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @zfeature_is_supported(ptr noundef) local_unnamed_addr #2
declare i64 @zap_contains(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @VERIFY0(i32 noundef) local_unnamed_addr #2
declare i32 @dsl_sync_task(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spa_name(ptr noundef) local_unnamed_addr #2
declare i32 @spa_close(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = !{!"int", !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, !12, i64 8, !12, i64 16, !13, i64 24, !7, i64 32, !12, i64 40}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!11, !13, i64 24}
!15 = !{!11, !12, i64 40}
!16 = !{!11, !7, i64 32}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !12, i64 0}
!21 = !{!11, !12, i64 8}
!22 = !{!11, !12, i64 16}
!23 = !{!24, !12, i64 8}
!24 = !{!"TYPE_9__", !7, i64 0, !12, i64 8}
!25 = !{!24, !7, i64 0}
| freebsd_cddl_contrib_opensolaris_cmd_zhack_extr_zhack.c_zhack_do_feature_enable |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/sfc/extr_siena_sriov.c_efx_sriov_get_vf_config.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/sfc/extr_siena_sriov.c_efx_sriov_get_vf_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.efx_nic = type { i32, ptr }
%struct.efx_vf = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32 }
%struct.ifla_vf_info = type { i32, i32, i32, i64, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@ETH_ALEN = dso_local local_unnamed_addr global i32 0, align 4
@VLAN_VID_MASK = dso_local local_unnamed_addr global i32 0, align 4
@VLAN_PRIO_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @efx_sriov_get_vf_config(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @netdev_priv(ptr noundef %0) #2
%5 = load i32, ptr %4, align 8, !tbaa !5
%6 = icmp sgt i32 %5, %1
br i1 %6, label %10, label %7
7: ; preds = %3
%8 = load i32, ptr @EINVAL, align 4, !tbaa !11
%9 = sub nsw i32 0, %8
br label %31
10: ; preds = %3
%11 = getelementptr inbounds %struct.efx_nic, ptr %4, i64 0, i32 1
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = sext i32 %1 to i64
%14 = getelementptr inbounds %struct.efx_vf, ptr %12, i64 %13
store i32 %1, ptr %2, align 8, !tbaa !13
%15 = getelementptr inbounds %struct.ifla_vf_info, ptr %2, i64 0, i32 4
%16 = load i32, ptr %15, align 8, !tbaa !16
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %14, i64 0, i32 1
%18 = load i32, ptr %17, align 4, !tbaa !17
%19 = load i32, ptr @ETH_ALEN, align 4, !tbaa !11
%20 = tail call i32 @memcpy(i32 noundef %16, i32 noundef %18, i32 noundef %19) #2
%21 = getelementptr inbounds %struct.ifla_vf_info, ptr %2, i64 0, i32 3
store i64 0, ptr %21, align 8, !tbaa !20
%22 = load i32, ptr %14, align 4, !tbaa !21
%23 = tail call i32 @ntohs(i32 noundef %22) #2
%24 = load i32, ptr @VLAN_VID_MASK, align 4, !tbaa !11
%25 = and i32 %24, %23
%26 = getelementptr inbounds %struct.ifla_vf_info, ptr %2, i64 0, i32 1
store i32 %25, ptr %26, align 4, !tbaa !22
%27 = load i32, ptr @VLAN_PRIO_SHIFT, align 4, !tbaa !11
%28 = ashr i32 %23, %27
%29 = and i32 %28, 7
%30 = getelementptr inbounds %struct.ifla_vf_info, ptr %2, i64 0, i32 2
store i32 %29, ptr %30, align 8, !tbaa !23
br label %31
31: ; preds = %10, %7
%32 = phi i32 [ %9, %7 ], [ 0, %10 ]
ret i32 %32
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ntohs(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 = !{!"efx_nic", !7, i64 0, !10, i64 8}
!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 = !{!6, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"ifla_vf_info", !7, i64 0, !7, i64 4, !7, i64 8, !15, i64 16, !7, i64 24}
!15 = !{!"long", !8, i64 0}
!16 = !{!14, !7, i64 24}
!17 = !{!18, !7, i64 4}
!18 = !{!"efx_vf", !19, i64 0}
!19 = !{!"TYPE_2__", !7, i64 0, !7, i64 4}
!20 = !{!14, !15, i64 16}
!21 = !{!18, !7, i64 0}
!22 = !{!14, !7, i64 4}
!23 = !{!14, !7, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/sfc/extr_siena_sriov.c_efx_sriov_get_vf_config.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/sfc/extr_siena_sriov.c_efx_sriov_get_vf_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.efx_vf = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32 }
@EINVAL = common local_unnamed_addr global i32 0, align 4
@ETH_ALEN = common local_unnamed_addr global i32 0, align 4
@VLAN_VID_MASK = common local_unnamed_addr global i32 0, align 4
@VLAN_PRIO_SHIFT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @efx_sriov_get_vf_config(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @netdev_priv(ptr noundef %0) #2
%5 = load i32, ptr %4, align 8, !tbaa !6
%6 = icmp sgt i32 %5, %1
br i1 %6, label %10, label %7
7: ; preds = %3
%8 = load i32, ptr @EINVAL, align 4, !tbaa !12
%9 = sub nsw i32 0, %8
br label %31
10: ; preds = %3
%11 = getelementptr inbounds i8, ptr %4, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !13
%13 = sext i32 %1 to i64
%14 = getelementptr inbounds %struct.efx_vf, ptr %12, i64 %13
store i32 %1, ptr %2, align 8, !tbaa !14
%15 = getelementptr inbounds i8, ptr %2, i64 24
%16 = load i32, ptr %15, align 8, !tbaa !17
%17 = getelementptr inbounds i8, ptr %14, i64 4
%18 = load i32, ptr %17, align 4, !tbaa !18
%19 = load i32, ptr @ETH_ALEN, align 4, !tbaa !12
%20 = tail call i32 @memcpy(i32 noundef %16, i32 noundef %18, i32 noundef %19) #2
%21 = getelementptr inbounds i8, ptr %2, i64 16
store i64 0, ptr %21, align 8, !tbaa !21
%22 = load i32, ptr %14, align 4, !tbaa !22
%23 = tail call i32 @ntohs(i32 noundef %22) #2
%24 = load i32, ptr @VLAN_VID_MASK, align 4, !tbaa !12
%25 = and i32 %24, %23
%26 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %25, ptr %26, align 4, !tbaa !23
%27 = load i32, ptr @VLAN_PRIO_SHIFT, align 4, !tbaa !12
%28 = ashr i32 %23, %27
%29 = and i32 %28, 7
%30 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %29, ptr %30, align 8, !tbaa !24
br label %31
31: ; preds = %10, %7
%32 = phi i32 [ %9, %7 ], [ 0, %10 ]
ret i32 %32
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ntohs(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 = !{!"efx_nic", !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 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!15, !8, i64 0}
!15 = !{!"ifla_vf_info", !8, i64 0, !8, i64 4, !8, i64 8, !16, i64 16, !8, i64 24}
!16 = !{!"long", !9, i64 0}
!17 = !{!15, !8, i64 24}
!18 = !{!19, !8, i64 4}
!19 = !{!"efx_vf", !20, i64 0}
!20 = !{!"TYPE_2__", !8, i64 0, !8, i64 4}
!21 = !{!15, !16, i64 16}
!22 = !{!19, !8, i64 0}
!23 = !{!15, !8, i64 4}
!24 = !{!15, !8, i64 8}
| fastsocket_kernel_drivers_net_sfc_extr_siena_sriov.c_efx_sriov_get_vf_config |
; ModuleID = 'AnghaBench/mpv/video/out/gpu/extr_video.c_update_surface.c'
source_filename = "AnghaBench/mpv/video/out/gpu/extr_video.c_update_surface.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.gl_video = type { i32, %struct.TYPE_6__, i32, %struct.TYPE_4__ }
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32 }
%struct.TYPE_4__ = type { i32, i32, i32, i32 }
%struct.surface = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @update_surface], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @update_surface(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = getelementptr inbounds %struct.gl_video, ptr %0, i64 0, i32 3
%7 = load i32, ptr %6, align 4, !tbaa !5
%8 = getelementptr inbounds %struct.gl_video, ptr %0, i64 0, i32 3, i32 1
%9 = load i32, ptr %8, align 4, !tbaa !13
%10 = sub nsw i32 %7, %9
%11 = getelementptr inbounds %struct.gl_video, ptr %0, i64 0, i32 3, i32 2
%12 = load i32, ptr %11, align 4, !tbaa !14
%13 = getelementptr inbounds %struct.gl_video, ptr %0, i64 0, i32 3, i32 3
%14 = load i32, ptr %13, align 4, !tbaa !15
%15 = sub nsw i32 %12, %14
%16 = tail call i32 @pass_info_reset(ptr noundef %0, i32 noundef 0) #2
%17 = tail call i32 @pass_render_frame(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %4) #2
%18 = icmp eq i32 %17, 0
br i1 %18, label %33, label %19
19: ; preds = %5
%20 = load i32, ptr %0, align 4, !tbaa !16
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %28
22: ; preds = %19
store i32 1, ptr %0, align 4, !tbaa !16
%23 = getelementptr inbounds %struct.gl_video, ptr %0, i64 0, i32 2
%24 = load i32, ptr %23, align 4, !tbaa !17
%25 = getelementptr inbounds %struct.gl_video, ptr %0, i64 0, i32 1
%26 = load i32, ptr %25, align 4, !tbaa !18
%27 = tail call i32 @pass_linearize(i32 noundef %24, i32 noundef %26) #2
br label %28
28: ; preds = %22, %19
%29 = getelementptr inbounds %struct.surface, ptr %3, i64 0, i32 2
%30 = tail call i32 @finish_pass_tex(ptr noundef nonnull %0, ptr noundef nonnull %29, i32 noundef %10, i32 noundef %15) #2
%31 = getelementptr inbounds %struct.surface, ptr %3, i64 0, i32 1
store i32 %2, ptr %31, align 4, !tbaa !19
%32 = load i32, ptr %1, align 4, !tbaa !21
store i32 %32, ptr %3, align 4, !tbaa !23
br label %33
33: ; preds = %5, %28
%34 = phi i32 [ 1, %28 ], [ 0, %5 ]
ret i32 %34
}
declare i32 @pass_info_reset(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pass_render_frame(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pass_linearize(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @finish_pass_tex(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)"}
!5 = !{!6, !7, i64 12}
!6 = !{!"gl_video", !7, i64 0, !10, i64 4, !7, i64 8, !12, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_6__", !11, i64 0}
!11 = !{!"TYPE_5__", !7, i64 0}
!12 = !{!"TYPE_4__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 20}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 0}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !7, i64 4}
!19 = !{!20, !7, i64 4}
!20 = !{!"surface", !7, i64 0, !7, i64 4, !7, i64 8}
!21 = !{!22, !7, i64 0}
!22 = !{!"mp_image", !7, i64 0}
!23 = !{!20, !7, i64 0}
| ; ModuleID = 'AnghaBench/mpv/video/out/gpu/extr_video.c_update_surface.c'
source_filename = "AnghaBench/mpv/video/out/gpu/extr_video.c_update_surface.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 @update_surface], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @update_surface(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = getelementptr inbounds i8, ptr %0, i64 12
%7 = load i32, ptr %6, align 4, !tbaa !6
%8 = getelementptr inbounds i8, ptr %0, i64 16
%9 = load i32, ptr %8, align 4, !tbaa !14
%10 = sub nsw i32 %7, %9
%11 = getelementptr inbounds i8, ptr %0, i64 20
%12 = load i32, ptr %11, align 4, !tbaa !15
%13 = getelementptr inbounds i8, ptr %0, i64 24
%14 = load i32, ptr %13, align 4, !tbaa !16
%15 = sub nsw i32 %12, %14
%16 = tail call i32 @pass_info_reset(ptr noundef %0, i32 noundef 0) #2
%17 = tail call i32 @pass_render_frame(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %4) #2
%18 = icmp eq i32 %17, 0
br i1 %18, label %33, label %19
19: ; preds = %5
%20 = load i32, ptr %0, align 4, !tbaa !17
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %28
22: ; preds = %19
store i32 1, ptr %0, align 4, !tbaa !17
%23 = getelementptr inbounds i8, ptr %0, i64 8
%24 = load i32, ptr %23, align 4, !tbaa !18
%25 = getelementptr inbounds i8, ptr %0, i64 4
%26 = load i32, ptr %25, align 4, !tbaa !19
%27 = tail call i32 @pass_linearize(i32 noundef %24, i32 noundef %26) #2
br label %28
28: ; preds = %22, %19
%29 = getelementptr inbounds i8, ptr %3, i64 8
%30 = tail call i32 @finish_pass_tex(ptr noundef nonnull %0, ptr noundef nonnull %29, i32 noundef %10, i32 noundef %15) #2
%31 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %2, ptr %31, align 4, !tbaa !20
%32 = load i32, ptr %1, align 4, !tbaa !22
store i32 %32, ptr %3, align 4, !tbaa !24
br label %33
33: ; preds = %5, %28
%34 = phi i32 [ 1, %28 ], [ 0, %5 ]
ret i32 %34
}
declare i32 @pass_info_reset(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pass_render_frame(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pass_linearize(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @finish_pass_tex(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)"}
!6 = !{!7, !8, i64 12}
!7 = !{!"gl_video", !8, i64 0, !11, i64 4, !8, i64 8, !13, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_6__", !12, i64 0}
!12 = !{!"TYPE_5__", !8, i64 0}
!13 = !{!"TYPE_4__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!14 = !{!7, !8, i64 16}
!15 = !{!7, !8, i64 20}
!16 = !{!7, !8, i64 24}
!17 = !{!7, !8, i64 0}
!18 = !{!7, !8, i64 8}
!19 = !{!7, !8, i64 4}
!20 = !{!21, !8, i64 4}
!21 = !{!"surface", !8, i64 0, !8, i64 4, !8, i64 8}
!22 = !{!23, !8, i64 0}
!23 = !{!"mp_image", !8, i64 0}
!24 = !{!21, !8, i64 0}
| mpv_video_out_gpu_extr_video.c_update_surface |
; ModuleID = 'AnghaBench/linux/drivers/pinctrl/extr_pinctrl-ingenic.c_ingenic_gpio_read_reg.c'
source_filename = "AnghaBench/linux/drivers/pinctrl/extr_pinctrl-ingenic.c_ingenic_gpio_read_reg.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.ingenic_gpio_chip = type { i64, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ingenic_gpio_read_reg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ingenic_gpio_read_reg(ptr nocapture noundef readonly %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%4 = getelementptr inbounds %struct.ingenic_gpio_chip, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = load i64, ptr %0, align 8, !tbaa !14
%8 = add nsw i64 %7, %1
%9 = call i32 @regmap_read(i32 noundef %6, i64 noundef %8, ptr noundef nonnull %3) #3
%10 = load i32, ptr %3, align 4, !tbaa !15
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #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 @regmap_read(i32 noundef, i64 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, !10, i64 8}
!6 = !{!"ingenic_gpio_chip", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!13, !13, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/pinctrl/extr_pinctrl-ingenic.c_ingenic_gpio_read_reg.c'
source_filename = "AnghaBench/linux/drivers/pinctrl/extr_pinctrl-ingenic.c_ingenic_gpio_read_reg.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 @ingenic_gpio_read_reg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ingenic_gpio_read_reg(ptr nocapture noundef readonly %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = load i64, ptr %0, align 8, !tbaa !15
%8 = add nsw i64 %7, %1
%9 = call i32 @regmap_read(i32 noundef %6, i64 noundef %8, ptr noundef nonnull %3) #3
%10 = load i32, ptr %3, align 4, !tbaa !16
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #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 @regmap_read(i32 noundef, i64 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, !11, i64 8}
!7 = !{!"ingenic_gpio_chip", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!14, !14, i64 0}
| linux_drivers_pinctrl_extr_pinctrl-ingenic.c_ingenic_gpio_read_reg |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/netronome/nfp/bpf/extr_jit.c_mem_ldx1.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/netronome/nfp/bpf/extr_jit.c_mem_ldx1.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 @mem_ldx1], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mem_ldx1(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @mem_ldx(ptr noundef %0, ptr noundef %1, i32 noundef 1) #2
ret i32 %3
}
declare i32 @mem_ldx(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/net/ethernet/netronome/nfp/bpf/extr_jit.c_mem_ldx1.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/netronome/nfp/bpf/extr_jit.c_mem_ldx1.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 @mem_ldx1], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mem_ldx1(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @mem_ldx(ptr noundef %0, ptr noundef %1, i32 noundef 1) #2
ret i32 %3
}
declare i32 @mem_ldx(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_net_ethernet_netronome_nfp_bpf_extr_jit.c_mem_ldx1 |
; ModuleID = 'AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsShmLock.c'
source_filename = "AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsShmLock.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 i32 @sqlite3OsShmLock(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = tail call i32 %6(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #1
ret i32 %7
}
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 = !{!"TYPE_6__", !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 = !{!"TYPE_5__", !7, i64 0}
| ; ModuleID = 'AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsShmLock.c'
source_filename = "AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsShmLock.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 i32 @sqlite3OsShmLock(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = tail call i32 %6(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #1
ret i32 %7
}
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 = !{!"TYPE_6__", !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 = !{!"TYPE_5__", !8, i64 0}
| sqlcipher_src_extr_os.c_sqlite3OsShmLock |
; ModuleID = 'AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsCheckReservedLock.c'
source_filename = "AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsCheckReservedLock.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 i32 @sqlite3OsCheckReservedLock(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @DO_OS_MALLOC_TEST(ptr noundef %0) #2
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = tail call i32 %5(ptr noundef nonnull %0, ptr noundef %1) #2
ret i32 %6
}
declare i32 @DO_OS_MALLOC_TEST(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_7__", !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 = !{!"TYPE_6__", !7, i64 0}
| ; ModuleID = 'AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsCheckReservedLock.c'
source_filename = "AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsCheckReservedLock.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 i32 @sqlite3OsCheckReservedLock(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @DO_OS_MALLOC_TEST(ptr noundef %0) #2
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = tail call i32 %5(ptr noundef nonnull %0, ptr noundef %1) #2
ret i32 %6
}
declare i32 @DO_OS_MALLOC_TEST(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_7__", !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 = !{!"TYPE_6__", !8, i64 0}
| sqlcipher_src_extr_os.c_sqlite3OsCheckReservedLock |
; ModuleID = 'AnghaBench/freebsd/contrib/bearssl/src/ec/extr_ec_p256_m64.c_br_ec_p256_m64_get.c'
source_filename = "AnghaBench/freebsd/contrib/bearssl/src/ec/extr_ec_p256_m64.c_br_ec_p256_m64_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"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local noalias noundef ptr @br_ec_p256_m64_get() local_unnamed_addr #0 {
ret ptr null
}
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/bearssl/src/ec/extr_ec_p256_m64.c_br_ec_p256_m64_get.c'
source_filename = "AnghaBench/freebsd/contrib/bearssl/src/ec/extr_ec_p256_m64.c_br_ec_p256_m64_get.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 noalias noundef ptr @br_ec_p256_m64_get() local_unnamed_addr #0 {
ret ptr null
}
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_bearssl_src_ec_extr_ec_p256_m64.c_br_ec_p256_m64_get |
; ModuleID = 'AnghaBench/linux/drivers/staging/vt6655/extr_card.c_CARDbRadioPowerOff.c'
source_filename = "AnghaBench/linux/drivers/staging/vt6655/extr_card.c_CARDbRadioPowerOff.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.vnt_private = type { i32, i32, i32, i32 }
@MAC_REG_SOFTPWRCTL = dso_local local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_TXPEINV = dso_local local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_SWPE1 = dso_local local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_SWPE2 = dso_local local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_SWPE3 = dso_local local_unnamed_addr global i32 0, align 4
@MAC_REG_HOSTCR = dso_local local_unnamed_addr global i32 0, align 4
@HOSTCR_RXON = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"chester power off\0A\00", align 1
@MAC_REG_GPIOCTL0 = dso_local local_unnamed_addr global i32 0, align 4
@LED_ACTSET = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @CARDbRadioPowerOff(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %41
4: ; preds = %1
%5 = getelementptr inbounds %struct.vnt_private, ptr %0, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !10
switch i32 %6, label %27 [
i32 128, label %7
i32 131, label %17
i32 129, label %17
i32 130, label %17
]
7: ; preds = %4
%8 = getelementptr inbounds %struct.vnt_private, ptr %0, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !12
%11 = load i32, ptr @SOFTPWRCTL_TXPEINV, align 4, !tbaa !12
%12 = tail call i32 @MACvWordRegBitsOff(i32 noundef %9, i32 noundef %10, i32 noundef %11) #2
%13 = load i32, ptr %8, align 4, !tbaa !11
%14 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !12
%15 = load i32, ptr @SOFTPWRCTL_SWPE1, align 4, !tbaa !12
%16 = tail call i32 @MACvWordRegBitsOn(i32 noundef %13, i32 noundef %14, i32 noundef %15) #2
br label %27
17: ; preds = %4, %4, %4
%18 = getelementptr inbounds %struct.vnt_private, ptr %0, i64 0, i32 2
%19 = load i32, ptr %18, align 4, !tbaa !11
%20 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !12
%21 = load i32, ptr @SOFTPWRCTL_SWPE2, align 4, !tbaa !12
%22 = tail call i32 @MACvWordRegBitsOff(i32 noundef %19, i32 noundef %20, i32 noundef %21) #2
%23 = load i32, ptr %18, align 4, !tbaa !11
%24 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !12
%25 = load i32, ptr @SOFTPWRCTL_SWPE3, align 4, !tbaa !12
%26 = tail call i32 @MACvWordRegBitsOff(i32 noundef %23, i32 noundef %24, i32 noundef %25) #2
br label %27
27: ; preds = %4, %17, %7
%28 = getelementptr inbounds %struct.vnt_private, ptr %0, i64 0, i32 2
%29 = load i32, ptr %28, align 4, !tbaa !11
%30 = load i32, ptr @MAC_REG_HOSTCR, align 4, !tbaa !12
%31 = load i32, ptr @HOSTCR_RXON, align 4, !tbaa !12
%32 = tail call i32 @MACvRegBitsOff(i32 noundef %29, i32 noundef %30, i32 noundef %31) #2
%33 = getelementptr inbounds %struct.vnt_private, ptr %0, i64 0, i32 3
%34 = load i32, ptr %33, align 4, !tbaa !13
%35 = tail call i32 @BBvSetDeepSleep(ptr noundef nonnull %0, i32 noundef %34) #2
store i32 1, ptr %0, align 4, !tbaa !5
%36 = tail call i32 @pr_debug(ptr noundef nonnull @.str) #2
%37 = load i32, ptr %28, align 4, !tbaa !11
%38 = load i32, ptr @MAC_REG_GPIOCTL0, align 4, !tbaa !12
%39 = load i32, ptr @LED_ACTSET, align 4, !tbaa !12
%40 = tail call i32 @MACvRegBitsOn(i32 noundef %37, i32 noundef %38, i32 noundef %39) #2
br label %41
41: ; preds = %1, %27
ret void
}
declare i32 @MACvWordRegBitsOff(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MACvWordRegBitsOn(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MACvRegBitsOff(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BBvSetDeepSleep(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_debug(ptr noundef) local_unnamed_addr #1
declare i32 @MACvRegBitsOn(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 = !{!"vnt_private", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!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 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 12}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/vt6655/extr_card.c_CARDbRadioPowerOff.c'
source_filename = "AnghaBench/linux/drivers/staging/vt6655/extr_card.c_CARDbRadioPowerOff.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAC_REG_SOFTPWRCTL = common local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_TXPEINV = common local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_SWPE1 = common local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_SWPE2 = common local_unnamed_addr global i32 0, align 4
@SOFTPWRCTL_SWPE3 = common local_unnamed_addr global i32 0, align 4
@MAC_REG_HOSTCR = common local_unnamed_addr global i32 0, align 4
@HOSTCR_RXON = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"chester power off\0A\00", align 1
@MAC_REG_GPIOCTL0 = common local_unnamed_addr global i32 0, align 4
@LED_ACTSET = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @CARDbRadioPowerOff(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %41
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !11
switch i32 %6, label %27 [
i32 128, label %7
i32 131, label %17
i32 129, label %17
i32 130, label %17
]
7: ; preds = %4
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !13
%11 = load i32, ptr @SOFTPWRCTL_TXPEINV, align 4, !tbaa !13
%12 = tail call i32 @MACvWordRegBitsOff(i32 noundef %9, i32 noundef %10, i32 noundef %11) #2
%13 = load i32, ptr %8, align 4, !tbaa !12
%14 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !13
%15 = load i32, ptr @SOFTPWRCTL_SWPE1, align 4, !tbaa !13
%16 = tail call i32 @MACvWordRegBitsOn(i32 noundef %13, i32 noundef %14, i32 noundef %15) #2
br label %27
17: ; preds = %4, %4, %4
%18 = getelementptr inbounds i8, ptr %0, i64 8
%19 = load i32, ptr %18, align 4, !tbaa !12
%20 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !13
%21 = load i32, ptr @SOFTPWRCTL_SWPE2, align 4, !tbaa !13
%22 = tail call i32 @MACvWordRegBitsOff(i32 noundef %19, i32 noundef %20, i32 noundef %21) #2
%23 = load i32, ptr %18, align 4, !tbaa !12
%24 = load i32, ptr @MAC_REG_SOFTPWRCTL, align 4, !tbaa !13
%25 = load i32, ptr @SOFTPWRCTL_SWPE3, align 4, !tbaa !13
%26 = tail call i32 @MACvWordRegBitsOff(i32 noundef %23, i32 noundef %24, i32 noundef %25) #2
br label %27
27: ; preds = %4, %17, %7
%28 = getelementptr inbounds i8, ptr %0, i64 8
%29 = load i32, ptr %28, align 4, !tbaa !12
%30 = load i32, ptr @MAC_REG_HOSTCR, align 4, !tbaa !13
%31 = load i32, ptr @HOSTCR_RXON, align 4, !tbaa !13
%32 = tail call i32 @MACvRegBitsOff(i32 noundef %29, i32 noundef %30, i32 noundef %31) #2
%33 = getelementptr inbounds i8, ptr %0, i64 12
%34 = load i32, ptr %33, align 4, !tbaa !14
%35 = tail call i32 @BBvSetDeepSleep(ptr noundef nonnull %0, i32 noundef %34) #2
store i32 1, ptr %0, align 4, !tbaa !6
%36 = tail call i32 @pr_debug(ptr noundef nonnull @.str) #2
%37 = load i32, ptr %28, align 4, !tbaa !12
%38 = load i32, ptr @MAC_REG_GPIOCTL0, align 4, !tbaa !13
%39 = load i32, ptr @LED_ACTSET, align 4, !tbaa !13
%40 = tail call i32 @MACvRegBitsOn(i32 noundef %37, i32 noundef %38, i32 noundef %39) #2
br label %41
41: ; preds = %1, %27
ret void
}
declare i32 @MACvWordRegBitsOff(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MACvWordRegBitsOn(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MACvRegBitsOff(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BBvSetDeepSleep(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_debug(ptr noundef) local_unnamed_addr #1
declare i32 @MACvRegBitsOn(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 = !{!"vnt_private", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!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 = !{!8, !8, i64 0}
!14 = !{!7, !8, i64 12}
| linux_drivers_staging_vt6655_extr_card.c_CARDbRadioPowerOff |
; ModuleID = 'AnghaBench/TDengine/src/system/detail/src/extr_vnodeCache.c_vnodeFreeCacheBlock.c'
source_filename = "AnghaBench/TDengine/src/system/detail/src/extr_vnodeCache.c_vnodeFreeCacheBlock.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 { i64, i32, i32, i64, ptr }
%struct.TYPE_8__ = type { i64, i32, i32, i64 }
%struct.TYPE_12__ = type { i64 }
@.str = private unnamed_addr constant [60 x i8] c"vid:%d sid:%d id:%s, numOfBlocks:%d shall never be negative\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"vid:%d sid:%d id:%s, double free\00", align 1
@vnodeList = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [80 x i8] c"vid:%d sid:%d id:%s, cache block is not free, slot:%d, index:%d notFreeSlots:%d\00", align 1
@.str.3 = private unnamed_addr constant [91 x i8] c"vid:%d sid:%d id:%s, free a cache block, numOfBlocks:%d, slot:%d, index:%d notFreeSlots:%d\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @vnodeFreeCacheBlock(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %66, label %3
3: ; preds = %1
%4 = getelementptr inbounds %struct.TYPE_11__, ptr %0, i64 0, i32 4
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 3
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = inttoptr i64 %7 to ptr
%9 = load i64, ptr %8, align 8, !tbaa !14
%10 = add nsw i64 %9, -1
store i64 %10, ptr %8, align 8, !tbaa !14
%11 = icmp slt i64 %9, 1
br i1 %11, label %12, label %19
12: ; preds = %3
%13 = load i64, ptr %5, align 8, !tbaa !16
%14 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 2
%15 = load i32, ptr %14, align 4, !tbaa !17
%16 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 1
%17 = load i32, ptr %16, align 8, !tbaa !18
%18 = tail call i32 (ptr, ...) @dError(ptr noundef nonnull @.str, i64 noundef %13, i32 noundef %15, i32 noundef %17, i64 noundef %10) #2
br label %19
19: ; preds = %12, %3
%20 = load i64, ptr %0, align 8, !tbaa !19
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i64, ptr %5, align 8, !tbaa !16
%24 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 2
%25 = load i32, ptr %24, align 4, !tbaa !17
%26 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 1
%27 = load i32, ptr %26, align 8, !tbaa !18
%28 = tail call i32 (ptr, ...) @dError(ptr noundef nonnull @.str.1, i64 noundef %23, i32 noundef %25, i32 noundef %27) #2
br label %29
29: ; preds = %22, %19
%30 = load ptr, ptr @vnodeList, align 8, !tbaa !20
%31 = load i64, ptr %5, align 8, !tbaa !16
%32 = getelementptr inbounds %struct.TYPE_12__, ptr %30, i64 %31
%33 = load i64, ptr %32, align 8, !tbaa !21
%34 = inttoptr i64 %33 to ptr
%35 = getelementptr inbounds %struct.TYPE_11__, ptr %0, i64 0, i32 3
%36 = load i64, ptr %35, align 8, !tbaa !23
%37 = icmp eq i64 %36, 0
br i1 %37, label %52, label %38
38: ; preds = %29
%39 = load i32, ptr %34, align 4, !tbaa !24
%40 = add nsw i32 %39, -1
store i32 %40, ptr %34, align 4, !tbaa !24
%41 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 2
%42 = load i32, ptr %41, align 4, !tbaa !17
%43 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 1
%44 = load i32, ptr %43, align 8, !tbaa !18
%45 = getelementptr inbounds %struct.TYPE_11__, ptr %0, i64 0, i32 2
%46 = load i32, ptr %45, align 4, !tbaa !26
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds %struct.TYPE_11__, ptr %0, i64 0, i32 1
%49 = load i32, ptr %48, align 8, !tbaa !27
%50 = tail call i32 (ptr, i64, i32, i32, i64, i32, i32, ...) @dTrace(ptr noundef nonnull @.str.2, i64 noundef %31, i32 noundef %42, i32 noundef %44, i64 noundef %47, i32 noundef %49, i32 noundef %40) #2
%51 = load i64, ptr %5, align 8, !tbaa !16
br label %52
52: ; preds = %38, %29
%53 = phi i64 [ %51, %38 ], [ %31, %29 ]
%54 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 2
%55 = load i32, ptr %54, align 4, !tbaa !17
%56 = getelementptr inbounds %struct.TYPE_8__, ptr %5, i64 0, i32 1
%57 = load i32, ptr %56, align 8, !tbaa !18
%58 = load i64, ptr %8, align 8, !tbaa !14
%59 = getelementptr inbounds %struct.TYPE_11__, ptr %0, i64 0, i32 2
%60 = load i32, ptr %59, align 4, !tbaa !26
%61 = getelementptr inbounds %struct.TYPE_11__, ptr %0, i64 0, i32 1
%62 = load i32, ptr %61, align 8, !tbaa !27
%63 = load i32, ptr %34, align 4, !tbaa !24
%64 = tail call i32 (ptr, i64, i32, i32, i64, i32, i32, ...) @dTrace(ptr noundef nonnull @.str.3, i64 noundef %53, i32 noundef %55, i32 noundef %57, i64 noundef %58, i32 noundef %60, i32 noundef %62, i32 noundef %63) #2
%65 = tail call i32 @memset(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 32) #2
br label %66
66: ; preds = %52, %1
%67 = phi i32 [ -1, %1 ], [ 0, %52 ]
ret i32 %67
}
declare i32 @dError(ptr noundef, ...) local_unnamed_addr #1
declare i32 @dTrace(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @memset(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, !11, i64 24}
!6 = !{!"TYPE_11__", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !11, i64 24}
!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 = !{!13, !7, i64 16}
!13 = !{!"TYPE_8__", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_10__", !7, i64 0}
!16 = !{!13, !7, i64 0}
!17 = !{!13, !10, i64 12}
!18 = !{!13, !10, i64 8}
!19 = !{!6, !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !7, i64 0}
!22 = !{!"TYPE_12__", !7, i64 0}
!23 = !{!6, !7, i64 16}
!24 = !{!25, !10, i64 0}
!25 = !{!"TYPE_9__", !10, i64 0}
!26 = !{!6, !10, i64 12}
!27 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/TDengine/src/system/detail/src/extr_vnodeCache.c_vnodeFreeCacheBlock.c'
source_filename = "AnghaBench/TDengine/src/system/detail/src/extr_vnodeCache.c_vnodeFreeCacheBlock.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 { i64 }
@.str = private unnamed_addr constant [60 x i8] c"vid:%d sid:%d id:%s, numOfBlocks:%d shall never be negative\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"vid:%d sid:%d id:%s, double free\00", align 1
@vnodeList = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [80 x i8] c"vid:%d sid:%d id:%s, cache block is not free, slot:%d, index:%d notFreeSlots:%d\00", align 1
@.str.3 = private unnamed_addr constant [91 x i8] c"vid:%d sid:%d id:%s, free a cache block, numOfBlocks:%d, slot:%d, index:%d notFreeSlots:%d\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -1, 1) i32 @vnodeFreeCacheBlock(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %66, label %3
3: ; preds = %1
%4 = getelementptr inbounds i8, ptr %0, i64 24
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %5, i64 16
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = inttoptr i64 %7 to ptr
%9 = load i64, ptr %8, align 8, !tbaa !15
%10 = add nsw i64 %9, -1
store i64 %10, ptr %8, align 8, !tbaa !15
%11 = icmp slt i64 %9, 1
br i1 %11, label %12, label %19
12: ; preds = %3
%13 = load i64, ptr %5, align 8, !tbaa !17
%14 = getelementptr inbounds i8, ptr %5, i64 12
%15 = load i32, ptr %14, align 4, !tbaa !18
%16 = getelementptr inbounds i8, ptr %5, i64 8
%17 = load i32, ptr %16, align 8, !tbaa !19
%18 = tail call i32 (ptr, ...) @dError(ptr noundef nonnull @.str, i64 noundef %13, i32 noundef %15, i32 noundef %17, i64 noundef %10) #2
br label %19
19: ; preds = %12, %3
%20 = load i64, ptr %0, align 8, !tbaa !20
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i64, ptr %5, align 8, !tbaa !17
%24 = getelementptr inbounds i8, ptr %5, i64 12
%25 = load i32, ptr %24, align 4, !tbaa !18
%26 = getelementptr inbounds i8, ptr %5, i64 8
%27 = load i32, ptr %26, align 8, !tbaa !19
%28 = tail call i32 (ptr, ...) @dError(ptr noundef nonnull @.str.1, i64 noundef %23, i32 noundef %25, i32 noundef %27) #2
br label %29
29: ; preds = %22, %19
%30 = load ptr, ptr @vnodeList, align 8, !tbaa !21
%31 = load i64, ptr %5, align 8, !tbaa !17
%32 = getelementptr inbounds %struct.TYPE_12__, ptr %30, i64 %31
%33 = load i64, ptr %32, align 8, !tbaa !22
%34 = inttoptr i64 %33 to ptr
%35 = getelementptr inbounds i8, ptr %0, i64 16
%36 = load i64, ptr %35, align 8, !tbaa !24
%37 = icmp eq i64 %36, 0
br i1 %37, label %52, label %38
38: ; preds = %29
%39 = load i32, ptr %34, align 4, !tbaa !25
%40 = add nsw i32 %39, -1
store i32 %40, ptr %34, align 4, !tbaa !25
%41 = getelementptr inbounds i8, ptr %5, i64 12
%42 = load i32, ptr %41, align 4, !tbaa !18
%43 = getelementptr inbounds i8, ptr %5, i64 8
%44 = load i32, ptr %43, align 8, !tbaa !19
%45 = getelementptr inbounds i8, ptr %0, i64 12
%46 = load i32, ptr %45, align 4, !tbaa !27
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %0, i64 8
%49 = load i32, ptr %48, align 8, !tbaa !28
%50 = tail call i32 (ptr, i64, i32, i32, i64, i32, i32, ...) @dTrace(ptr noundef nonnull @.str.2, i64 noundef %31, i32 noundef %42, i32 noundef %44, i64 noundef %47, i32 noundef %49, i32 noundef %40) #2
%51 = load i64, ptr %5, align 8, !tbaa !17
br label %52
52: ; preds = %38, %29
%53 = phi i64 [ %51, %38 ], [ %31, %29 ]
%54 = getelementptr inbounds i8, ptr %5, i64 12
%55 = load i32, ptr %54, align 4, !tbaa !18
%56 = getelementptr inbounds i8, ptr %5, i64 8
%57 = load i32, ptr %56, align 8, !tbaa !19
%58 = load i64, ptr %8, align 8, !tbaa !15
%59 = getelementptr inbounds i8, ptr %0, i64 12
%60 = load i32, ptr %59, align 4, !tbaa !27
%61 = getelementptr inbounds i8, ptr %0, i64 8
%62 = load i32, ptr %61, align 8, !tbaa !28
%63 = load i32, ptr %34, align 4, !tbaa !25
%64 = tail call i32 (ptr, i64, i32, i32, i64, i32, i32, ...) @dTrace(ptr noundef nonnull @.str.3, i64 noundef %53, i32 noundef %55, i32 noundef %57, i64 noundef %58, i32 noundef %60, i32 noundef %62, i32 noundef %63) #2
%65 = tail call i32 @memset(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 32) #2
br label %66
66: ; preds = %52, %1
%67 = phi i32 [ -1, %1 ], [ 0, %52 ]
ret i32 %67
}
declare i32 @dError(ptr noundef, ...) local_unnamed_addr #1
declare i32 @dTrace(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @memset(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, !12, i64 24}
!7 = !{!"TYPE_11__", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16, !12, i64 24}
!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 = !{!14, !8, i64 16}
!14 = !{!"TYPE_8__", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_10__", !8, i64 0}
!17 = !{!14, !8, i64 0}
!18 = !{!14, !11, i64 12}
!19 = !{!14, !11, i64 8}
!20 = !{!7, !8, i64 0}
!21 = !{!12, !12, i64 0}
!22 = !{!23, !8, i64 0}
!23 = !{!"TYPE_12__", !8, i64 0}
!24 = !{!7, !8, i64 16}
!25 = !{!26, !11, i64 0}
!26 = !{!"TYPE_9__", !11, i64 0}
!27 = !{!7, !11, i64 12}
!28 = !{!7, !11, i64 8}
| TDengine_src_system_detail_src_extr_vnodeCache.c_vnodeFreeCacheBlock |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/core/extr_neighbour.c_pneigh_ifdown.c'
source_filename = "AnghaBench/fastsocket/kernel/net/core/extr_neighbour.c_pneigh_ifdown.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.neigh_table = type { ptr, ptr }
%struct.pneigh_entry = type { ptr, ptr }
@PNEIGH_HASHMASK = dso_local local_unnamed_addr global i64 0, align 8
@ENOENT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pneigh_ifdown], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pneigh_ifdown(ptr nocapture noundef readonly %0, ptr noundef readnone %1) #0 {
%3 = getelementptr inbounds %struct.neigh_table, ptr %0, i64 0, i32 1
%4 = icmp eq ptr %1, null
br label %5
5: ; preds = %2, %41
%6 = phi i64 [ 0, %2 ], [ %42, %41 ]
%7 = load ptr, ptr %3, align 8, !tbaa !5
%8 = getelementptr inbounds ptr, ptr %7, i64 %6
%9 = load ptr, ptr %8, align 8, !tbaa !10
%10 = icmp eq ptr %9, null
br i1 %10, label %41, label %14
11: ; preds = %19
%12 = load ptr, ptr %18, align 8, !tbaa !10
%13 = icmp eq ptr %12, null
br i1 %13, label %41, label %14, !llvm.loop !11
14: ; preds = %5, %11
%15 = phi ptr [ %12, %11 ], [ %9, %5 ]
%16 = phi ptr [ %18, %11 ], [ %8, %5 ]
br label %17
17: ; preds = %14, %35
%18 = phi ptr [ %15, %14 ], [ %39, %35 ]
br i1 %4, label %23, label %19
19: ; preds = %17
%20 = getelementptr inbounds %struct.pneigh_entry, ptr %18, i64 0, i32 1
%21 = load ptr, ptr %20, align 8, !tbaa !13
%22 = icmp eq ptr %21, %1
br i1 %22, label %23, label %11
23: ; preds = %19, %17
%24 = load ptr, ptr %18, align 8, !tbaa !15
store ptr %24, ptr %16, align 8, !tbaa !10
%25 = load ptr, ptr %0, align 8, !tbaa !16
%26 = icmp eq ptr %25, null
br i1 %26, label %29, label %27
27: ; preds = %23
%28 = tail call i32 %25(ptr noundef nonnull %18) #2
br label %29
29: ; preds = %27, %23
%30 = getelementptr inbounds %struct.pneigh_entry, ptr %18, i64 0, i32 1
%31 = load ptr, ptr %30, align 8, !tbaa !13
%32 = icmp eq ptr %31, null
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = tail call i32 @dev_put(ptr noundef nonnull %31) #2
br label %35
35: ; preds = %33, %29
%36 = tail call i32 @pneigh_net(ptr noundef nonnull %18) #2
%37 = tail call i32 @release_net(i32 noundef %36) #2
%38 = tail call i32 @kfree(ptr noundef nonnull %18) #2
%39 = load ptr, ptr %16, align 8, !tbaa !10
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %17, !llvm.loop !11
41: ; preds = %11, %35, %5
%42 = add i64 %6, 1
%43 = load i64, ptr @PNEIGH_HASHMASK, align 8, !tbaa !17
%44 = icmp ugt i64 %42, %43
br i1 %44, label %45, label %5, !llvm.loop !19
45: ; preds = %41
%46 = load i32, ptr @ENOENT, align 4, !tbaa !20
%47 = sub nsw i32 0, %46
ret i32 %47
}
declare i32 @dev_put(ptr noundef) local_unnamed_addr #1
declare i32 @release_net(i32 noundef) local_unnamed_addr #1
declare i32 @pneigh_net(ptr 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 = { 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 8}
!6 = !{!"neigh_table", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !7, i64 8}
!14 = !{!"pneigh_entry", !7, i64 0, !7, i64 8}
!15 = !{!14, !7, i64 0}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = distinct !{!19, !12}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/core/extr_neighbour.c_pneigh_ifdown.c'
source_filename = "AnghaBench/fastsocket/kernel/net/core/extr_neighbour.c_pneigh_ifdown.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PNEIGH_HASHMASK = common local_unnamed_addr global i64 0, align 8
@ENOENT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pneigh_ifdown], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @pneigh_ifdown(ptr nocapture noundef readonly %0, ptr noundef readnone %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = icmp eq ptr %1, null
br label %5
5: ; preds = %2, %41
%6 = phi i64 [ 0, %2 ], [ %42, %41 ]
%7 = load ptr, ptr %3, align 8, !tbaa !6
%8 = getelementptr inbounds ptr, ptr %7, i64 %6
%9 = load ptr, ptr %8, align 8, !tbaa !11
%10 = icmp eq ptr %9, null
br i1 %10, label %41, label %14
11: ; preds = %19
%12 = load ptr, ptr %18, align 8, !tbaa !11
%13 = icmp eq ptr %12, null
br i1 %13, label %41, label %14, !llvm.loop !12
14: ; preds = %5, %11
%15 = phi ptr [ %12, %11 ], [ %9, %5 ]
%16 = phi ptr [ %18, %11 ], [ %8, %5 ]
br label %17
17: ; preds = %14, %35
%18 = phi ptr [ %15, %14 ], [ %39, %35 ]
br i1 %4, label %23, label %19
19: ; preds = %17
%20 = getelementptr inbounds i8, ptr %18, i64 8
%21 = load ptr, ptr %20, align 8, !tbaa !14
%22 = icmp eq ptr %21, %1
br i1 %22, label %23, label %11
23: ; preds = %19, %17
%24 = load ptr, ptr %18, align 8, !tbaa !16
store ptr %24, ptr %16, align 8, !tbaa !11
%25 = load ptr, ptr %0, align 8, !tbaa !17
%26 = icmp eq ptr %25, null
br i1 %26, label %29, label %27
27: ; preds = %23
%28 = tail call i32 %25(ptr noundef nonnull %18) #2
br label %29
29: ; preds = %27, %23
%30 = getelementptr inbounds i8, ptr %18, i64 8
%31 = load ptr, ptr %30, align 8, !tbaa !14
%32 = icmp eq ptr %31, null
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = tail call i32 @dev_put(ptr noundef nonnull %31) #2
br label %35
35: ; preds = %33, %29
%36 = tail call i32 @pneigh_net(ptr noundef nonnull %18) #2
%37 = tail call i32 @release_net(i32 noundef %36) #2
%38 = tail call i32 @kfree(ptr noundef nonnull %18) #2
%39 = load ptr, ptr %16, align 8, !tbaa !11
%40 = icmp eq ptr %39, null
br i1 %40, label %41, label %17, !llvm.loop !12
41: ; preds = %11, %35, %5
%42 = add i64 %6, 1
%43 = load i64, ptr @PNEIGH_HASHMASK, align 8, !tbaa !18
%44 = icmp ugt i64 %42, %43
br i1 %44, label %45, label %5, !llvm.loop !20
45: ; preds = %41
%46 = load i32, ptr @ENOENT, align 4, !tbaa !21
%47 = sub nsw i32 0, %46
ret i32 %47
}
declare i32 @dev_put(ptr noundef) local_unnamed_addr #1
declare i32 @release_net(i32 noundef) local_unnamed_addr #1
declare i32 @pneigh_net(ptr 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 = { 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 8}
!7 = !{!"neigh_table", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !8, i64 8}
!15 = !{!"pneigh_entry", !8, i64 0, !8, i64 8}
!16 = !{!15, !8, i64 0}
!17 = !{!7, !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !9, i64 0}
!20 = distinct !{!20, !13}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !9, i64 0}
| fastsocket_kernel_net_core_extr_neighbour.c_pneigh_ifdown |
; ModuleID = 'AnghaBench/freebsd/contrib/nvi/vi/extr_vs_msg.c_vs_ex_resolve.c'
source_filename = "AnghaBench/freebsd/contrib/nvi/vi/extr_vs_msg.c_vs_ex_resolve.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_22__ = type { i32, i32, i32 }
%struct.TYPE_20__ = type { i64, i32, i32, i64, ptr, i32 }
%struct.TYPE_21__ = type { ptr, ptr }
@VIP_CUR_INVALID = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@M_NONE = dso_local local_unnamed_addr global i32 0, align 4
@SC_SCR_EXWROTE = dso_local local_unnamed_addr global i32 0, align 4
@SC_VI = dso_local local_unnamed_addr global i32 0, align 4
@SC_EX_WAIT_YES = dso_local local_unnamed_addr global i32 0, align 4
@SC_EX_WAIT_NO = dso_local local_unnamed_addr global i32 0, align 4
@SC_EXIT = dso_local local_unnamed_addr global i32 0, align 4
@SC_EXIT_FORCE = dso_local local_unnamed_addr global i32 0, align 4
@SC_FSWITCH = dso_local local_unnamed_addr global i32 0, align 4
@SC_SSWITCH = dso_local local_unnamed_addr global i32 0, align 4
@SCROLL_W = dso_local local_unnamed_addr global i32 0, align 4
@SCROLL_W_EX = dso_local local_unnamed_addr global i32 0, align 4
@VIP_N_EX_PAINT = dso_local local_unnamed_addr global i32 0, align 4
@q = dso_local local_unnamed_addr global i32 0, align 4
@SC_SCR_REDRAW = dso_local local_unnamed_addr global i32 0, align 4
@VIP_N_EX_REDRAW = dso_local local_unnamed_addr global i32 0, align 4
@SC_SCR_REFORMAT = dso_local local_unnamed_addr global i32 0, align 4
@SA_ALTERNATE = dso_local local_unnamed_addr global i32 0, align 4
@E_REPAINT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @vs_ex_resolve(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.TYPE_22__, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
%4 = getelementptr inbounds %struct.TYPE_20__, ptr %0, i64 0, i32 4
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = tail call ptr @VIP(ptr noundef %0) #3
store i32 0, ptr %1, align 4, !tbaa !12
%7 = load i32, ptr @VIP_CUR_INVALID, align 4, !tbaa !12
%8 = tail call i32 @F_SET(ptr noundef %6, i32 noundef %7) #3
%9 = load i64, ptr %6, align 8, !tbaa !13
%10 = icmp eq i64 %9, 0
br i1 %10, label %16, label %11
11: ; preds = %2
%12 = getelementptr inbounds %struct.TYPE_20__, ptr %6, i64 0, i32 5
%13 = load i32, ptr %12, align 8, !tbaa !14
%14 = tail call i32 @vs_output(ptr noundef nonnull %0, i32 noundef %13, ptr noundef nonnull @.str, i32 noundef 1) #3
store i64 0, ptr %6, align 8, !tbaa !13
%15 = load i32, ptr @M_NONE, align 4, !tbaa !12
store i32 %15, ptr %12, align 8, !tbaa !14
br label %16
16: ; preds = %11, %2
%17 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !12
%18 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %17) #3
%19 = icmp eq i64 %18, 0
br i1 %19, label %27, label %20
20: ; preds = %16
%21 = load ptr, ptr %4, align 8, !tbaa !5
%22 = getelementptr inbounds %struct.TYPE_21__, ptr %21, i64 0, i32 1
%23 = load ptr, ptr %22, align 8, !tbaa !15
%24 = load i32, ptr @SC_VI, align 4, !tbaa !12
%25 = tail call i64 %23(ptr noundef nonnull %0, i32 noundef %24) #3
%26 = icmp eq i64 %25, 0
br i1 %26, label %38, label %115
27: ; preds = %16
%28 = load i32, ptr @SC_EX_WAIT_YES, align 4, !tbaa !12
%29 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %28) #3
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %27
%32 = getelementptr inbounds %struct.TYPE_20__, ptr %6, i64 0, i32 1
%33 = load i32, ptr %32, align 8, !tbaa !17
%34 = icmp slt i32 %33, 2
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr @SC_EX_WAIT_NO, align 4, !tbaa !12
%37 = tail call i32 @F_CLR(ptr noundef nonnull %0, i32 noundef %36) #3
br label %115
38: ; preds = %27, %31, %20
%39 = load i32, ptr @SC_EX_WAIT_YES, align 4, !tbaa !12
%40 = tail call i32 @F_CLR(ptr noundef nonnull %0, i32 noundef %39) #3
%41 = load i32, ptr @SC_EX_WAIT_NO, align 4, !tbaa !12
%42 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %41) #3
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %70
44: ; preds = %38
%45 = tail call i32 @INTERRUPTED(ptr noundef nonnull %0) #3
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %70
47: ; preds = %44
%48 = load i32, ptr @SC_EXIT, align 4, !tbaa !12
%49 = load i32, ptr @SC_EXIT_FORCE, align 4, !tbaa !12
%50 = or i32 %49, %48
%51 = load i32, ptr @SC_FSWITCH, align 4, !tbaa !12
%52 = or i32 %50, %51
%53 = load i32, ptr @SC_SSWITCH, align 4, !tbaa !12
%54 = or i32 %52, %53
%55 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %54) #3
%56 = icmp eq i64 %55, 0
%57 = load i32, ptr @SCROLL_W, align 4
%58 = load i32, ptr @SCROLL_W_EX, align 4
%59 = select i1 %56, i32 %58, i32 %57
%60 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !12
%61 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %60) #3
%62 = icmp eq i64 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %47
%64 = tail call i32 @vs_wait(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %59) #3
br label %67
65: ; preds = %47
%66 = tail call i32 @vs_scroll(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %59) #3
br label %67
67: ; preds = %65, %63
%68 = load i32, ptr %1, align 4, !tbaa !12
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %115
70: ; preds = %67, %44, %38
%71 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !12
%72 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %71) #3
%73 = icmp eq i64 %72, 0
br i1 %73, label %77, label %74
74: ; preds = %70
%75 = load i32, ptr @VIP_N_EX_PAINT, align 4, !tbaa !12
%76 = tail call i32 @F_SET(ptr noundef nonnull %6, i32 noundef %75) #3
br label %77
77: ; preds = %74, %70
%78 = load i32, ptr @q, align 4, !tbaa !12
%79 = tail call ptr @TAILQ_NEXT(ptr noundef nonnull %0, i32 noundef %78) #3
%80 = icmp eq ptr %79, null
br i1 %80, label %84, label %81
81: ; preds = %77
%82 = load i32, ptr @SC_SCR_REDRAW, align 4, !tbaa !12
%83 = tail call i32 @F_SET(ptr noundef nonnull %0, i32 noundef %82) #3
br label %84
84: ; preds = %81, %77
%85 = load i32, ptr @VIP_N_EX_REDRAW, align 4, !tbaa !12
%86 = tail call i64 @F_ISSET(ptr noundef nonnull %6, i32 noundef %85) #3
%87 = icmp eq i64 %86, 0
br i1 %87, label %91, label %88
88: ; preds = %84
%89 = load i32, ptr @SC_SCR_REFORMAT, align 4, !tbaa !12
%90 = tail call i32 @F_SET(ptr noundef nonnull %0, i32 noundef %89) #3
br label %91
91: ; preds = %88, %84
%92 = load ptr, ptr %5, align 8, !tbaa !18
%93 = load i32, ptr @SA_ALTERNATE, align 4, !tbaa !12
%94 = tail call i32 %92(ptr noundef nonnull %0, i32 noundef %93, i32 noundef 1) #3
%95 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !12
%96 = load i32, ptr @SC_EX_WAIT_NO, align 4, !tbaa !12
%97 = or i32 %96, %95
%98 = tail call i32 @F_CLR(ptr noundef nonnull %0, i32 noundef %97) #3
%99 = getelementptr inbounds %struct.TYPE_20__, ptr %6, i64 0, i32 1
%100 = load i32, ptr %99, align 8, !tbaa !17
%101 = icmp sgt i32 %100, 1
br i1 %101, label %102, label %113
102: ; preds = %91
%103 = load i32, ptr @E_REPAINT, align 4, !tbaa !12
%104 = getelementptr inbounds %struct.TYPE_22__, ptr %3, i64 0, i32 2
store i32 %103, ptr %104, align 4, !tbaa !19
%105 = getelementptr inbounds %struct.TYPE_20__, ptr %0, i64 0, i32 2
%106 = load i32, ptr %105, align 4, !tbaa !21
%107 = icmp slt i32 %100, %106
%108 = sub nsw i32 %106, %100
%109 = select i1 %107, i32 %108, i32 1
store i32 %109, ptr %3, align 4, !tbaa !22
%110 = getelementptr inbounds %struct.TYPE_22__, ptr %3, i64 0, i32 1
store i32 %106, ptr %110, align 4, !tbaa !23
store i32 0, ptr %99, align 8, !tbaa !17
store i64 0, ptr %6, align 8, !tbaa !13
%111 = getelementptr inbounds %struct.TYPE_20__, ptr %6, i64 0, i32 3
store i64 0, ptr %111, align 8, !tbaa !24
%112 = call i32 @vs_repaint(ptr noundef nonnull %0, ptr noundef nonnull %3) #3
br label %115
113: ; preds = %91
store i32 0, ptr %99, align 8, !tbaa !17
store i64 0, ptr %6, align 8, !tbaa !13
%114 = getelementptr inbounds %struct.TYPE_20__, ptr %6, i64 0, i32 3
store i64 0, ptr %114, align 8, !tbaa !24
br label %115
115: ; preds = %102, %113, %67, %20, %35
%116 = phi i32 [ 0, %35 ], [ 1, %20 ], [ 0, %67 ], [ 0, %113 ], [ 0, %102 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
ret i32 %116
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @VIP(ptr noundef) local_unnamed_addr #2
declare i32 @F_SET(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vs_output(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @F_ISSET(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @F_CLR(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @INTERRUPTED(ptr noundef) local_unnamed_addr #2
declare i32 @vs_wait(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vs_scroll(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @TAILQ_NEXT(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vs_repaint(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, !11, i64 24}
!6 = !{!"TYPE_20__", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !11, i64 24, !10, i64 32}
!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 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 32}
!15 = !{!16, !11, i64 8}
!16 = !{!"TYPE_21__", !11, i64 0, !11, i64 8}
!17 = !{!6, !10, i64 8}
!18 = !{!16, !11, i64 0}
!19 = !{!20, !10, i64 8}
!20 = !{!"TYPE_22__", !10, i64 0, !10, i64 4, !10, i64 8}
!21 = !{!6, !10, i64 12}
!22 = !{!20, !10, i64 0}
!23 = !{!20, !10, i64 4}
!24 = !{!6, !7, i64 16}
| ; ModuleID = 'AnghaBench/freebsd/contrib/nvi/vi/extr_vs_msg.c_vs_ex_resolve.c'
source_filename = "AnghaBench/freebsd/contrib/nvi/vi/extr_vs_msg.c_vs_ex_resolve.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_22__ = type { i32, i32, i32 }
@VIP_CUR_INVALID = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@M_NONE = common local_unnamed_addr global i32 0, align 4
@SC_SCR_EXWROTE = common local_unnamed_addr global i32 0, align 4
@SC_VI = common local_unnamed_addr global i32 0, align 4
@SC_EX_WAIT_YES = common local_unnamed_addr global i32 0, align 4
@SC_EX_WAIT_NO = common local_unnamed_addr global i32 0, align 4
@SC_EXIT = common local_unnamed_addr global i32 0, align 4
@SC_EXIT_FORCE = common local_unnamed_addr global i32 0, align 4
@SC_FSWITCH = common local_unnamed_addr global i32 0, align 4
@SC_SSWITCH = common local_unnamed_addr global i32 0, align 4
@SCROLL_W = common local_unnamed_addr global i32 0, align 4
@SCROLL_W_EX = common local_unnamed_addr global i32 0, align 4
@VIP_N_EX_PAINT = common local_unnamed_addr global i32 0, align 4
@q = common local_unnamed_addr global i32 0, align 4
@SC_SCR_REDRAW = common local_unnamed_addr global i32 0, align 4
@VIP_N_EX_REDRAW = common local_unnamed_addr global i32 0, align 4
@SC_SCR_REFORMAT = common local_unnamed_addr global i32 0, align 4
@SA_ALTERNATE = common local_unnamed_addr global i32 0, align 4
@E_REPAINT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @vs_ex_resolve(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.TYPE_22__, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
%4 = getelementptr inbounds i8, ptr %0, i64 24
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = tail call ptr @VIP(ptr noundef %0) #3
store i32 0, ptr %1, align 4, !tbaa !13
%7 = load i32, ptr @VIP_CUR_INVALID, align 4, !tbaa !13
%8 = tail call i32 @F_SET(ptr noundef %6, i32 noundef %7) #3
%9 = load i64, ptr %6, align 8, !tbaa !14
%10 = icmp eq i64 %9, 0
br i1 %10, label %16, label %11
11: ; preds = %2
%12 = getelementptr inbounds i8, ptr %6, i64 32
%13 = load i32, ptr %12, align 8, !tbaa !15
%14 = tail call i32 @vs_output(ptr noundef nonnull %0, i32 noundef %13, ptr noundef nonnull @.str, i32 noundef 1) #3
store i64 0, ptr %6, align 8, !tbaa !14
%15 = load i32, ptr @M_NONE, align 4, !tbaa !13
store i32 %15, ptr %12, align 8, !tbaa !15
br label %16
16: ; preds = %11, %2
%17 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !13
%18 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %17) #3
%19 = icmp eq i64 %18, 0
br i1 %19, label %27, label %20
20: ; preds = %16
%21 = load ptr, ptr %4, align 8, !tbaa !6
%22 = getelementptr inbounds i8, ptr %21, i64 8
%23 = load ptr, ptr %22, align 8, !tbaa !16
%24 = load i32, ptr @SC_VI, align 4, !tbaa !13
%25 = tail call i64 %23(ptr noundef nonnull %0, i32 noundef %24) #3
%26 = icmp eq i64 %25, 0
br i1 %26, label %38, label %115
27: ; preds = %16
%28 = load i32, ptr @SC_EX_WAIT_YES, align 4, !tbaa !13
%29 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %28) #3
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %27
%32 = getelementptr inbounds i8, ptr %6, i64 8
%33 = load i32, ptr %32, align 8, !tbaa !18
%34 = icmp slt i32 %33, 2
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, ptr @SC_EX_WAIT_NO, align 4, !tbaa !13
%37 = tail call i32 @F_CLR(ptr noundef nonnull %0, i32 noundef %36) #3
br label %115
38: ; preds = %27, %31, %20
%39 = load i32, ptr @SC_EX_WAIT_YES, align 4, !tbaa !13
%40 = tail call i32 @F_CLR(ptr noundef nonnull %0, i32 noundef %39) #3
%41 = load i32, ptr @SC_EX_WAIT_NO, align 4, !tbaa !13
%42 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %41) #3
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %70
44: ; preds = %38
%45 = tail call i32 @INTERRUPTED(ptr noundef nonnull %0) #3
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %70
47: ; preds = %44
%48 = load i32, ptr @SC_EXIT, align 4, !tbaa !13
%49 = load i32, ptr @SC_EXIT_FORCE, align 4, !tbaa !13
%50 = or i32 %49, %48
%51 = load i32, ptr @SC_FSWITCH, align 4, !tbaa !13
%52 = or i32 %50, %51
%53 = load i32, ptr @SC_SSWITCH, align 4, !tbaa !13
%54 = or i32 %52, %53
%55 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %54) #3
%56 = icmp eq i64 %55, 0
%57 = load i32, ptr @SCROLL_W, align 4
%58 = load i32, ptr @SCROLL_W_EX, align 4
%59 = select i1 %56, i32 %58, i32 %57
%60 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !13
%61 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %60) #3
%62 = icmp eq i64 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %47
%64 = tail call i32 @vs_wait(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %59) #3
br label %67
65: ; preds = %47
%66 = tail call i32 @vs_scroll(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %59) #3
br label %67
67: ; preds = %65, %63
%68 = load i32, ptr %1, align 4, !tbaa !13
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %115
70: ; preds = %67, %44, %38
%71 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !13
%72 = tail call i64 @F_ISSET(ptr noundef nonnull %0, i32 noundef %71) #3
%73 = icmp eq i64 %72, 0
br i1 %73, label %77, label %74
74: ; preds = %70
%75 = load i32, ptr @VIP_N_EX_PAINT, align 4, !tbaa !13
%76 = tail call i32 @F_SET(ptr noundef nonnull %6, i32 noundef %75) #3
br label %77
77: ; preds = %74, %70
%78 = load i32, ptr @q, align 4, !tbaa !13
%79 = tail call ptr @TAILQ_NEXT(ptr noundef nonnull %0, i32 noundef %78) #3
%80 = icmp eq ptr %79, null
br i1 %80, label %84, label %81
81: ; preds = %77
%82 = load i32, ptr @SC_SCR_REDRAW, align 4, !tbaa !13
%83 = tail call i32 @F_SET(ptr noundef nonnull %0, i32 noundef %82) #3
br label %84
84: ; preds = %81, %77
%85 = load i32, ptr @VIP_N_EX_REDRAW, align 4, !tbaa !13
%86 = tail call i64 @F_ISSET(ptr noundef nonnull %6, i32 noundef %85) #3
%87 = icmp eq i64 %86, 0
br i1 %87, label %91, label %88
88: ; preds = %84
%89 = load i32, ptr @SC_SCR_REFORMAT, align 4, !tbaa !13
%90 = tail call i32 @F_SET(ptr noundef nonnull %0, i32 noundef %89) #3
br label %91
91: ; preds = %88, %84
%92 = load ptr, ptr %5, align 8, !tbaa !19
%93 = load i32, ptr @SA_ALTERNATE, align 4, !tbaa !13
%94 = tail call i32 %92(ptr noundef nonnull %0, i32 noundef %93, i32 noundef 1) #3
%95 = load i32, ptr @SC_SCR_EXWROTE, align 4, !tbaa !13
%96 = load i32, ptr @SC_EX_WAIT_NO, align 4, !tbaa !13
%97 = or i32 %96, %95
%98 = tail call i32 @F_CLR(ptr noundef nonnull %0, i32 noundef %97) #3
%99 = getelementptr inbounds i8, ptr %6, i64 8
%100 = load i32, ptr %99, align 8, !tbaa !18
%101 = icmp sgt i32 %100, 1
br i1 %101, label %102, label %113
102: ; preds = %91
%103 = load i32, ptr @E_REPAINT, align 4, !tbaa !13
%104 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %103, ptr %104, align 4, !tbaa !20
%105 = getelementptr inbounds i8, ptr %0, i64 12
%106 = load i32, ptr %105, align 4, !tbaa !22
%107 = icmp slt i32 %100, %106
%108 = sub nsw i32 %106, %100
%109 = select i1 %107, i32 %108, i32 1
store i32 %109, ptr %3, align 4, !tbaa !23
%110 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %106, ptr %110, align 4, !tbaa !24
store i32 0, ptr %99, align 8, !tbaa !18
store i64 0, ptr %6, align 8, !tbaa !14
%111 = getelementptr inbounds i8, ptr %6, i64 16
store i64 0, ptr %111, align 8, !tbaa !25
%112 = call i32 @vs_repaint(ptr noundef nonnull %0, ptr noundef nonnull %3) #3
br label %115
113: ; preds = %91
store i32 0, ptr %99, align 8, !tbaa !18
store i64 0, ptr %6, align 8, !tbaa !14
%114 = getelementptr inbounds i8, ptr %6, i64 16
store i64 0, ptr %114, align 8, !tbaa !25
br label %115
115: ; preds = %102, %113, %67, %20, %35
%116 = phi i32 [ 0, %35 ], [ 1, %20 ], [ 0, %67 ], [ 0, %113 ], [ 0, %102 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
ret i32 %116
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @VIP(ptr noundef) local_unnamed_addr #2
declare i32 @F_SET(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vs_output(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @F_ISSET(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @F_CLR(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @INTERRUPTED(ptr noundef) local_unnamed_addr #2
declare i32 @vs_wait(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vs_scroll(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @TAILQ_NEXT(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vs_repaint(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, !12, i64 24}
!7 = !{!"TYPE_20__", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16, !12, i64 24, !11, i64 32}
!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 = !{!11, !11, i64 0}
!14 = !{!7, !8, i64 0}
!15 = !{!7, !11, i64 32}
!16 = !{!17, !12, i64 8}
!17 = !{!"TYPE_21__", !12, i64 0, !12, i64 8}
!18 = !{!7, !11, i64 8}
!19 = !{!17, !12, i64 0}
!20 = !{!21, !11, i64 8}
!21 = !{!"TYPE_22__", !11, i64 0, !11, i64 4, !11, i64 8}
!22 = !{!7, !11, i64 12}
!23 = !{!21, !11, i64 0}
!24 = !{!21, !11, i64 4}
!25 = !{!7, !8, i64 16}
| freebsd_contrib_nvi_vi_extr_vs_msg.c_vs_ex_resolve |
; ModuleID = 'AnghaBench/lab/q3map2/q3map2/extr_vis.c_ClusterMerge.c'
source_filename = "AnghaBench/lab/q3map2/q3map2/extr_vis.c_ClusterMerge.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 }
%struct.TYPE_5__ = type { i64, i64, i64 }
@MAX_PORTALS = dso_local local_unnamed_addr global i32 0, align 4
@MAX_MAP_LEAFS = dso_local local_unnamed_addr global i32 0, align 4
@leafs = dso_local local_unnamed_addr global ptr null, align 8
@portalbytes = dso_local local_unnamed_addr global i32 0, align 4
@stat_done = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [16 x i8] c"portal not done\00", align 1
@portallongs = dso_local local_unnamed_addr global i32 0, align 4
@portals = dso_local local_unnamed_addr global ptr null, align 8
@leafbytes = dso_local local_unnamed_addr global i32 0, align 4
@totalvis = dso_local local_unnamed_addr global i32 0, align 4
@SYS_VRB = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"cluster %4i : %4i visible\0A\00", align 1
@bspVisBytes = dso_local local_unnamed_addr global i64 0, align 8
@VIS_HEADER_SIZE = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @ClusterMerge(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @MAX_PORTALS, align 4, !tbaa !5
%3 = sdiv i32 %2, 8
%4 = zext i32 %3 to i64
%5 = alloca i32, i64 %4, align 16
%6 = load i32, ptr @MAX_MAP_LEAFS, align 4, !tbaa !5
%7 = sdiv i32 %6, 8
%8 = zext i32 %7 to i64
%9 = alloca i32, i64 %8, align 16
%10 = load ptr, ptr @leafs, align 8, !tbaa !9
br label %11
11: ; preds = %11, %1
%12 = phi i32 [ %0, %1 ], [ %15, %11 ]
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds %struct.TYPE_6__, ptr %10, i64 %13
%15 = load i32, ptr %14, align 8, !tbaa !11
%16 = icmp sgt i32 %15, -1
br i1 %16, label %11, label %17, !llvm.loop !13
17: ; preds = %11
%18 = load i32, ptr @portalbytes, align 4, !tbaa !5
%19 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %18) #2
%20 = load ptr, ptr @leafs, align 8, !tbaa !9
%21 = getelementptr inbounds %struct.TYPE_6__, ptr %20, i64 %13, i32 1
%22 = load i32, ptr %21, align 4, !tbaa !15
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %103
24: ; preds = %17
%25 = getelementptr inbounds %struct.TYPE_6__, ptr %20, i64 %13, i32 2
br label %26
26: ; preds = %24, %98
%27 = phi i32 [ %22, %24 ], [ %99, %98 ]
%28 = phi i64 [ 0, %24 ], [ %100, %98 ]
%29 = load ptr, ptr %25, align 8, !tbaa !16
%30 = getelementptr inbounds ptr, ptr %29, i64 %28
%31 = load ptr, ptr %30, align 8, !tbaa !9
%32 = getelementptr inbounds %struct.TYPE_5__, ptr %31, i64 0, i32 2
%33 = load i64, ptr %32, align 8, !tbaa !17
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %98
35: ; preds = %26
%36 = load i64, ptr %31, align 8, !tbaa !20
%37 = load i64, ptr @stat_done, align 8, !tbaa !21
%38 = icmp eq i64 %36, %37
br i1 %38, label %41, label %39
39: ; preds = %35
%40 = call i32 @Error(ptr noundef nonnull @.str) #2
br label %41
41: ; preds = %39, %35
%42 = load i32, ptr @portallongs, align 4, !tbaa !5
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %83
44: ; preds = %41
%45 = getelementptr inbounds %struct.TYPE_5__, ptr %31, i64 0, i32 1
%46 = zext nneg i32 %42 to i64
%47 = and i64 %46, 1
%48 = icmp eq i32 %42, 1
br i1 %48, label %72, label %49
49: ; preds = %44
%50 = and i64 %46, 2147483646
br label %51
51: ; preds = %51, %49
%52 = phi i64 [ 0, %49 ], [ %69, %51 ]
%53 = phi i64 [ 0, %49 ], [ %70, %51 ]
%54 = load i64, ptr %45, align 8, !tbaa !22
%55 = inttoptr i64 %54 to ptr
%56 = getelementptr inbounds i64, ptr %55, i64 %52
%57 = load i64, ptr %56, align 8, !tbaa !21
%58 = getelementptr inbounds i64, ptr %5, i64 %52
%59 = load i64, ptr %58, align 16, !tbaa !21
%60 = or i64 %59, %57
store i64 %60, ptr %58, align 16, !tbaa !21
%61 = or disjoint i64 %52, 1
%62 = load i64, ptr %45, align 8, !tbaa !22
%63 = inttoptr i64 %62 to ptr
%64 = getelementptr inbounds i64, ptr %63, i64 %61
%65 = load i64, ptr %64, align 8, !tbaa !21
%66 = getelementptr inbounds i64, ptr %5, i64 %61
%67 = load i64, ptr %66, align 8, !tbaa !21
%68 = or i64 %67, %65
store i64 %68, ptr %66, align 8, !tbaa !21
%69 = add nuw nsw i64 %52, 2
%70 = add i64 %53, 2
%71 = icmp eq i64 %70, %50
br i1 %71, label %72, label %51, !llvm.loop !23
72: ; preds = %51, %44
%73 = phi i64 [ 0, %44 ], [ %69, %51 ]
%74 = icmp eq i64 %47, 0
br i1 %74, label %83, label %75
75: ; preds = %72
%76 = load i64, ptr %45, align 8, !tbaa !22
%77 = inttoptr i64 %76 to ptr
%78 = getelementptr inbounds i64, ptr %77, i64 %73
%79 = load i64, ptr %78, align 8, !tbaa !21
%80 = getelementptr inbounds i64, ptr %5, i64 %73
%81 = load i64, ptr %80, align 8, !tbaa !21
%82 = or i64 %81, %79
store i64 %82, ptr %80, align 8, !tbaa !21
br label %83
83: ; preds = %75, %72, %41
%84 = load ptr, ptr @portals, align 8, !tbaa !9
%85 = ptrtoint ptr %31 to i64
%86 = ptrtoint ptr %84 to i64
%87 = sub i64 %85, %86
%88 = sdiv exact i64 %87, 24
%89 = trunc i64 %88 to i32
%90 = and i32 %89, 7
%91 = shl nuw nsw i32 1, %90
%92 = ashr i32 %89, 3
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %5, i64 %93
%95 = load i32, ptr %94, align 4, !tbaa !5
%96 = or i32 %91, %95
store i32 %96, ptr %94, align 4, !tbaa !5
%97 = load i32, ptr %21, align 4, !tbaa !15
br label %98
98: ; preds = %26, %83
%99 = phi i32 [ %27, %26 ], [ %97, %83 ]
%100 = add nuw nsw i64 %28, 1
%101 = sext i32 %99 to i64
%102 = icmp slt i64 %100, %101
br i1 %102, label %26, label %103, !llvm.loop !24
103: ; preds = %98, %17
%104 = load i32, ptr @leafbytes, align 4, !tbaa !5
%105 = call i32 @memset(ptr noundef nonnull %9, i32 noundef 0, i32 noundef %104) #2
%106 = and i32 %12, 7
%107 = shl nuw nsw i32 1, %106
%108 = ashr i32 %12, 3
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %9, i64 %109
%111 = load i32, ptr %110, align 4, !tbaa !5
%112 = or i32 %111, %107
store i32 %112, ptr %110, align 4, !tbaa !5
%113 = call i32 @LeafVectorFromPortalVector(ptr noundef nonnull %5, ptr noundef nonnull %9) #2
%114 = add nsw i32 %113, 1
%115 = load i32, ptr @totalvis, align 4, !tbaa !5
%116 = add nsw i32 %115, %114
store i32 %116, ptr @totalvis, align 4, !tbaa !5
%117 = load i32, ptr @SYS_VRB, align 4, !tbaa !5
%118 = call i32 @Sys_FPrintf(i32 noundef %117, ptr noundef nonnull @.str.1, i32 noundef %0, i32 noundef %114) #2
%119 = load i64, ptr @bspVisBytes, align 8, !tbaa !21
%120 = load i64, ptr @VIS_HEADER_SIZE, align 8, !tbaa !21
%121 = add nsw i64 %120, %119
%122 = load i32, ptr @leafbytes, align 4, !tbaa !5
%123 = mul nsw i32 %122, %0
%124 = sext i32 %123 to i64
%125 = add nsw i64 %121, %124
%126 = call i32 @memcpy(i64 noundef %125, ptr noundef nonnull %9, i32 noundef %122) #2
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Error(ptr noundef) local_unnamed_addr #1
declare i32 @LeafVectorFromPortalVector(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @Sys_FPrintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i64 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"TYPE_6__", !6, i64 0, !6, i64 4, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !6, i64 4}
!16 = !{!12, !10, i64 8}
!17 = !{!18, !19, i64 16}
!18 = !{!"TYPE_5__", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!18, !19, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{!18, !19, i64 8}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
| ; ModuleID = 'AnghaBench/lab/q3map2/q3map2/extr_vis.c_ClusterMerge.c'
source_filename = "AnghaBench/lab/q3map2/q3map2/extr_vis.c_ClusterMerge.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { i32, i32, ptr }
@MAX_PORTALS = common local_unnamed_addr global i32 0, align 4
@MAX_MAP_LEAFS = common local_unnamed_addr global i32 0, align 4
@leafs = common local_unnamed_addr global ptr null, align 8
@portalbytes = common local_unnamed_addr global i32 0, align 4
@stat_done = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [16 x i8] c"portal not done\00", align 1
@portallongs = common local_unnamed_addr global i32 0, align 4
@portals = common local_unnamed_addr global ptr null, align 8
@leafbytes = common local_unnamed_addr global i32 0, align 4
@totalvis = common local_unnamed_addr global i32 0, align 4
@SYS_VRB = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"cluster %4i : %4i visible\0A\00", align 1
@bspVisBytes = common local_unnamed_addr global i64 0, align 8
@VIS_HEADER_SIZE = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @ClusterMerge(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @MAX_PORTALS, align 4, !tbaa !6
%3 = sdiv i32 %2, 8
%4 = zext i32 %3 to i64
%5 = alloca i32, i64 %4, align 4
%6 = load i32, ptr @MAX_MAP_LEAFS, align 4, !tbaa !6
%7 = sdiv i32 %6, 8
%8 = zext i32 %7 to i64
%9 = alloca i32, i64 %8, align 4
%10 = load ptr, ptr @leafs, align 8, !tbaa !10
br label %11
11: ; preds = %11, %1
%12 = phi i32 [ %0, %1 ], [ %15, %11 ]
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds %struct.TYPE_6__, ptr %10, i64 %13
%15 = load i32, ptr %14, align 8, !tbaa !12
%16 = icmp sgt i32 %15, -1
br i1 %16, label %11, label %17, !llvm.loop !14
17: ; preds = %11
%18 = load i32, ptr @portalbytes, align 4, !tbaa !6
%19 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef %18) #2
%20 = load ptr, ptr @leafs, align 8, !tbaa !10
%21 = getelementptr inbounds %struct.TYPE_6__, ptr %20, i64 %13
%22 = getelementptr inbounds i8, ptr %21, i64 4
%23 = load i32, ptr %22, align 4, !tbaa !16
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %79
25: ; preds = %17
%26 = getelementptr inbounds i8, ptr %21, i64 8
br label %27
27: ; preds = %25, %74
%28 = phi i32 [ %23, %25 ], [ %75, %74 ]
%29 = phi i64 [ 0, %25 ], [ %76, %74 ]
%30 = load ptr, ptr %26, align 8, !tbaa !17
%31 = getelementptr inbounds ptr, ptr %30, i64 %29
%32 = load ptr, ptr %31, align 8, !tbaa !10
%33 = getelementptr inbounds i8, ptr %32, i64 16
%34 = load i64, ptr %33, align 8, !tbaa !18
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %74
36: ; preds = %27
%37 = load i64, ptr %32, align 8, !tbaa !21
%38 = load i64, ptr @stat_done, align 8, !tbaa !22
%39 = icmp eq i64 %37, %38
br i1 %39, label %42, label %40
40: ; preds = %36
%41 = call i32 @Error(ptr noundef nonnull @.str) #2
br label %42
42: ; preds = %40, %36
%43 = load i32, ptr @portallongs, align 4, !tbaa !6
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %59
45: ; preds = %42
%46 = getelementptr inbounds i8, ptr %32, i64 8
%47 = zext nneg i32 %43 to i64
br label %48
48: ; preds = %45, %48
%49 = phi i64 [ 0, %45 ], [ %57, %48 ]
%50 = load i64, ptr %46, align 8, !tbaa !23
%51 = inttoptr i64 %50 to ptr
%52 = getelementptr inbounds i64, ptr %51, i64 %49
%53 = load i64, ptr %52, align 8, !tbaa !22
%54 = getelementptr inbounds i64, ptr %5, i64 %49
%55 = load i64, ptr %54, align 4, !tbaa !22
%56 = or i64 %55, %53
store i64 %56, ptr %54, align 4, !tbaa !22
%57 = add nuw nsw i64 %49, 1
%58 = icmp eq i64 %57, %47
br i1 %58, label %59, label %48, !llvm.loop !24
59: ; preds = %48, %42
%60 = load ptr, ptr @portals, align 8, !tbaa !10
%61 = ptrtoint ptr %32 to i64
%62 = ptrtoint ptr %60 to i64
%63 = sub i64 %61, %62
%64 = sdiv exact i64 %63, 24
%65 = trunc i64 %64 to i32
%66 = and i32 %65, 7
%67 = shl nuw nsw i32 1, %66
%68 = ashr i32 %65, 3
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %5, i64 %69
%71 = load i32, ptr %70, align 4, !tbaa !6
%72 = or i32 %67, %71
store i32 %72, ptr %70, align 4, !tbaa !6
%73 = load i32, ptr %22, align 4, !tbaa !16
br label %74
74: ; preds = %27, %59
%75 = phi i32 [ %28, %27 ], [ %73, %59 ]
%76 = add nuw nsw i64 %29, 1
%77 = sext i32 %75 to i64
%78 = icmp slt i64 %76, %77
br i1 %78, label %27, label %79, !llvm.loop !25
79: ; preds = %74, %17
%80 = load i32, ptr @leafbytes, align 4, !tbaa !6
%81 = call i32 @memset(ptr noundef nonnull %9, i32 noundef 0, i32 noundef %80) #2
%82 = and i32 %12, 7
%83 = shl nuw nsw i32 1, %82
%84 = ashr i32 %12, 3
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %9, i64 %85
%87 = load i32, ptr %86, align 4, !tbaa !6
%88 = or i32 %87, %83
store i32 %88, ptr %86, align 4, !tbaa !6
%89 = call i32 @LeafVectorFromPortalVector(ptr noundef nonnull %5, ptr noundef nonnull %9) #2
%90 = add nsw i32 %89, 1
%91 = load i32, ptr @totalvis, align 4, !tbaa !6
%92 = add nsw i32 %91, %90
store i32 %92, ptr @totalvis, align 4, !tbaa !6
%93 = load i32, ptr @SYS_VRB, align 4, !tbaa !6
%94 = call i32 @Sys_FPrintf(i32 noundef %93, ptr noundef nonnull @.str.1, i32 noundef %0, i32 noundef %90) #2
%95 = load i64, ptr @bspVisBytes, align 8, !tbaa !22
%96 = load i64, ptr @VIS_HEADER_SIZE, align 8, !tbaa !22
%97 = add nsw i64 %96, %95
%98 = load i32, ptr @leafbytes, align 4, !tbaa !6
%99 = mul nsw i32 %98, %0
%100 = sext i32 %99 to i64
%101 = add nsw i64 %97, %100
%102 = call i32 @memcpy(i64 noundef %101, ptr noundef nonnull %9, i32 noundef %98) #2
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @Error(ptr noundef) local_unnamed_addr #1
declare i32 @LeafVectorFromPortalVector(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @Sys_FPrintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i64 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"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !11, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!13, !7, i64 4}
!17 = !{!13, !11, i64 8}
!18 = !{!19, !20, i64 16}
!19 = !{!"TYPE_5__", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"long", !8, i64 0}
!21 = !{!19, !20, i64 0}
!22 = !{!20, !20, i64 0}
!23 = !{!19, !20, i64 8}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
| lab_q3map2_q3map2_extr_vis.c_ClusterMerge |
; ModuleID = 'AnghaBench/linux/sound/pci/ymfpci/extr_ymfpci_main.c_snd_ymfpci_free.c'
source_filename = "AnghaBench/linux/sound/pci/ymfpci/extr_ymfpci_main.c_snd_ymfpci_free.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.snd_ymfpci = type { i64, i32, i32, i32, i32, i64, %struct.TYPE_2__, i32, i64, i64, ptr }
%struct.TYPE_2__ = type { i64 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_NATIVEDACOUTVOL = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_BUF441OUTVOL = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_LEGACYOUTVOL = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_PLAYCTRLBASE = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_RECCTRLBASE = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_EFFCTRLBASE = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_WORKBASE = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_WORKSIZE = dso_local local_unnamed_addr global i32 0, align 4
@YDSXGR_GLOBALCTRL = dso_local local_unnamed_addr global i32 0, align 4
@PCI_D3hot = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_ymfpci_free], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @snd_ymfpci_free(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
%3 = zext i1 %2 to i32
%4 = tail call i64 @snd_BUG_ON(i32 noundef %3) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
br label %77
9: ; preds = %1
%10 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 5
%11 = load i64, ptr %10, align 8, !tbaa !9
%12 = icmp eq i64 %11, 0
br i1 %12, label %38, label %13
13: ; preds = %9
%14 = load i32, ptr @YDSXGR_NATIVEDACOUTVOL, align 4, !tbaa !5
%15 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %14, i32 noundef 0) #2
%16 = load i32, ptr @YDSXGR_BUF441OUTVOL, align 4, !tbaa !5
%17 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %16, i32 noundef 0) #2
%18 = load i32, ptr @YDSXGR_LEGACYOUTVOL, align 4, !tbaa !5
%19 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %18, i32 noundef 0) #2
%20 = load i32, ptr @YDSXGR_STATUS, align 4, !tbaa !5
%21 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %20, i32 noundef -1) #2
%22 = tail call i32 @snd_ymfpci_disable_dsp(ptr noundef nonnull %0) #2
%23 = load i32, ptr @YDSXGR_PLAYCTRLBASE, align 4, !tbaa !5
%24 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %23, i32 noundef 0) #2
%25 = load i32, ptr @YDSXGR_RECCTRLBASE, align 4, !tbaa !5
%26 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %25, i32 noundef 0) #2
%27 = load i32, ptr @YDSXGR_EFFCTRLBASE, align 4, !tbaa !5
%28 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %27, i32 noundef 0) #2
%29 = load i32, ptr @YDSXGR_WORKBASE, align 4, !tbaa !5
%30 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %29, i32 noundef 0) #2
%31 = load i32, ptr @YDSXGR_WORKSIZE, align 4, !tbaa !5
%32 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %31, i32 noundef 0) #2
%33 = load i32, ptr @YDSXGR_GLOBALCTRL, align 4, !tbaa !5
%34 = tail call i32 @snd_ymfpci_readw(ptr noundef nonnull %0, i32 noundef %33) #2
%35 = load i32, ptr @YDSXGR_GLOBALCTRL, align 4, !tbaa !5
%36 = and i32 %34, -8
%37 = tail call i32 @snd_ymfpci_writew(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %36) #2
br label %38
38: ; preds = %13, %9
%39 = tail call i32 @snd_ymfpci_ac3_done(ptr noundef nonnull %0) #2
%40 = load i64, ptr %0, align 8, !tbaa !14
%41 = icmp sgt i64 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = tail call i32 @free_irq(i64 noundef %40, ptr noundef nonnull %0) #2
br label %44
44: ; preds = %42, %38
%45 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 9
%46 = load i64, ptr %45, align 8, !tbaa !15
%47 = tail call i32 @release_and_free_resource(i64 noundef %46) #2
%48 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 8
%49 = load i64, ptr %48, align 8, !tbaa !16
%50 = tail call i32 @release_and_free_resource(i64 noundef %49) #2
%51 = tail call i32 @snd_ymfpci_free_gameport(ptr noundef nonnull %0) #2
%52 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 7
%53 = load i32, ptr %52, align 8, !tbaa !17
%54 = tail call i32 @iounmap(i32 noundef %53) #2
%55 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 6
%56 = load i64, ptr %55, align 8, !tbaa !18
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %44
%59 = tail call i32 @snd_dma_free_pages(ptr noundef nonnull %55) #2
br label %60
60: ; preds = %58, %44
%61 = load i64, ptr %10, align 8, !tbaa !9
%62 = tail call i32 @release_and_free_resource(i64 noundef %61) #2
%63 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 3
%64 = load i32, ptr %63, align 8, !tbaa !19
%65 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 4
%66 = load i32, ptr %65, align 4, !tbaa !20
%67 = tail call i32 @pci_write_config_word(i32 noundef %64, i32 noundef 64, i32 noundef %66) #2
%68 = load i32, ptr %63, align 8, !tbaa !19
%69 = tail call i32 @pci_disable_device(i32 noundef %68) #2
%70 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 2
%71 = load i32, ptr %70, align 4, !tbaa !21
%72 = tail call i32 @release_firmware(i32 noundef %71) #2
%73 = getelementptr inbounds %struct.snd_ymfpci, ptr %0, i64 0, i32 1
%74 = load i32, ptr %73, align 8, !tbaa !22
%75 = tail call i32 @release_firmware(i32 noundef %74) #2
%76 = tail call i32 @kfree(ptr noundef nonnull %0) #2
br label %77
77: ; preds = %60, %6
%78 = phi i32 [ %8, %6 ], [ 0, %60 ]
ret i32 %78
}
declare i64 @snd_BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_disable_dsp(ptr noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_readw(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_writew(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_ac3_done(ptr noundef) local_unnamed_addr #1
declare i32 @free_irq(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @release_and_free_resource(i64 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_free_gameport(ptr noundef) local_unnamed_addr #1
declare i32 @iounmap(i32 noundef) local_unnamed_addr #1
declare i32 @snd_dma_free_pages(ptr noundef) local_unnamed_addr #1
declare i32 @pci_write_config_word(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_disable_device(i32 noundef) local_unnamed_addr #1
declare i32 @release_firmware(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 = { 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 24}
!10 = !{!"snd_ymfpci", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !11, i64 24, !12, i64 32, !6, i64 40, !11, i64 48, !11, i64 56, !13, i64 64}
!11 = !{!"long", !7, i64 0}
!12 = !{!"TYPE_2__", !11, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !11, i64 56}
!16 = !{!10, !11, i64 48}
!17 = !{!10, !6, i64 40}
!18 = !{!10, !11, i64 32}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !6, i64 20}
!21 = !{!10, !6, i64 12}
!22 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/linux/sound/pci/ymfpci/extr_ymfpci_main.c_snd_ymfpci_free.c'
source_filename = "AnghaBench/linux/sound/pci/ymfpci/extr_ymfpci_main.c_snd_ymfpci_free.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
@YDSXGR_NATIVEDACOUTVOL = common local_unnamed_addr global i32 0, align 4
@YDSXGR_BUF441OUTVOL = common local_unnamed_addr global i32 0, align 4
@YDSXGR_LEGACYOUTVOL = common local_unnamed_addr global i32 0, align 4
@YDSXGR_STATUS = common local_unnamed_addr global i32 0, align 4
@YDSXGR_PLAYCTRLBASE = common local_unnamed_addr global i32 0, align 4
@YDSXGR_RECCTRLBASE = common local_unnamed_addr global i32 0, align 4
@YDSXGR_EFFCTRLBASE = common local_unnamed_addr global i32 0, align 4
@YDSXGR_WORKBASE = common local_unnamed_addr global i32 0, align 4
@YDSXGR_WORKSIZE = common local_unnamed_addr global i32 0, align 4
@YDSXGR_GLOBALCTRL = common local_unnamed_addr global i32 0, align 4
@PCI_D3hot = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @snd_ymfpci_free], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @snd_ymfpci_free(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
%3 = zext i1 %2 to i32
%4 = tail call i64 @snd_BUG_ON(i32 noundef %3) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
br label %77
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %0, i64 24
%11 = load i64, ptr %10, align 8, !tbaa !10
%12 = icmp eq i64 %11, 0
br i1 %12, label %38, label %13
13: ; preds = %9
%14 = load i32, ptr @YDSXGR_NATIVEDACOUTVOL, align 4, !tbaa !6
%15 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %14, i32 noundef 0) #2
%16 = load i32, ptr @YDSXGR_BUF441OUTVOL, align 4, !tbaa !6
%17 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %16, i32 noundef 0) #2
%18 = load i32, ptr @YDSXGR_LEGACYOUTVOL, align 4, !tbaa !6
%19 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %18, i32 noundef 0) #2
%20 = load i32, ptr @YDSXGR_STATUS, align 4, !tbaa !6
%21 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %20, i32 noundef -1) #2
%22 = tail call i32 @snd_ymfpci_disable_dsp(ptr noundef nonnull %0) #2
%23 = load i32, ptr @YDSXGR_PLAYCTRLBASE, align 4, !tbaa !6
%24 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %23, i32 noundef 0) #2
%25 = load i32, ptr @YDSXGR_RECCTRLBASE, align 4, !tbaa !6
%26 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %25, i32 noundef 0) #2
%27 = load i32, ptr @YDSXGR_EFFCTRLBASE, align 4, !tbaa !6
%28 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %27, i32 noundef 0) #2
%29 = load i32, ptr @YDSXGR_WORKBASE, align 4, !tbaa !6
%30 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %29, i32 noundef 0) #2
%31 = load i32, ptr @YDSXGR_WORKSIZE, align 4, !tbaa !6
%32 = tail call i32 @snd_ymfpci_writel(ptr noundef nonnull %0, i32 noundef %31, i32 noundef 0) #2
%33 = load i32, ptr @YDSXGR_GLOBALCTRL, align 4, !tbaa !6
%34 = tail call i32 @snd_ymfpci_readw(ptr noundef nonnull %0, i32 noundef %33) #2
%35 = load i32, ptr @YDSXGR_GLOBALCTRL, align 4, !tbaa !6
%36 = and i32 %34, -8
%37 = tail call i32 @snd_ymfpci_writew(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %36) #2
br label %38
38: ; preds = %13, %9
%39 = tail call i32 @snd_ymfpci_ac3_done(ptr noundef nonnull %0) #2
%40 = load i64, ptr %0, align 8, !tbaa !15
%41 = icmp sgt i64 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = tail call i32 @free_irq(i64 noundef %40, ptr noundef nonnull %0) #2
br label %44
44: ; preds = %42, %38
%45 = getelementptr inbounds i8, ptr %0, i64 56
%46 = load i64, ptr %45, align 8, !tbaa !16
%47 = tail call i32 @release_and_free_resource(i64 noundef %46) #2
%48 = getelementptr inbounds i8, ptr %0, i64 48
%49 = load i64, ptr %48, align 8, !tbaa !17
%50 = tail call i32 @release_and_free_resource(i64 noundef %49) #2
%51 = tail call i32 @snd_ymfpci_free_gameport(ptr noundef nonnull %0) #2
%52 = getelementptr inbounds i8, ptr %0, i64 40
%53 = load i32, ptr %52, align 8, !tbaa !18
%54 = tail call i32 @iounmap(i32 noundef %53) #2
%55 = getelementptr inbounds i8, ptr %0, i64 32
%56 = load i64, ptr %55, align 8, !tbaa !19
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %44
%59 = tail call i32 @snd_dma_free_pages(ptr noundef nonnull %55) #2
br label %60
60: ; preds = %58, %44
%61 = load i64, ptr %10, align 8, !tbaa !10
%62 = tail call i32 @release_and_free_resource(i64 noundef %61) #2
%63 = getelementptr inbounds i8, ptr %0, i64 16
%64 = load i32, ptr %63, align 8, !tbaa !20
%65 = getelementptr inbounds i8, ptr %0, i64 20
%66 = load i32, ptr %65, align 4, !tbaa !21
%67 = tail call i32 @pci_write_config_word(i32 noundef %64, i32 noundef 64, i32 noundef %66) #2
%68 = load i32, ptr %63, align 8, !tbaa !20
%69 = tail call i32 @pci_disable_device(i32 noundef %68) #2
%70 = getelementptr inbounds i8, ptr %0, i64 12
%71 = load i32, ptr %70, align 4, !tbaa !22
%72 = tail call i32 @release_firmware(i32 noundef %71) #2
%73 = getelementptr inbounds i8, ptr %0, i64 8
%74 = load i32, ptr %73, align 8, !tbaa !23
%75 = tail call i32 @release_firmware(i32 noundef %74) #2
%76 = tail call i32 @kfree(ptr noundef nonnull %0) #2
br label %77
77: ; preds = %60, %6
%78 = phi i32 [ %8, %6 ], [ 0, %60 ]
ret i32 %78
}
declare i64 @snd_BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_disable_dsp(ptr noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_readw(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_writew(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_ac3_done(ptr noundef) local_unnamed_addr #1
declare i32 @free_irq(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @release_and_free_resource(i64 noundef) local_unnamed_addr #1
declare i32 @snd_ymfpci_free_gameport(ptr noundef) local_unnamed_addr #1
declare i32 @iounmap(i32 noundef) local_unnamed_addr #1
declare i32 @snd_dma_free_pages(ptr noundef) local_unnamed_addr #1
declare i32 @pci_write_config_word(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_disable_device(i32 noundef) local_unnamed_addr #1
declare i32 @release_firmware(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 = { 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 24}
!11 = !{!"snd_ymfpci", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !12, i64 24, !13, i64 32, !7, i64 40, !12, i64 48, !12, i64 56, !14, i64 64}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_2__", !12, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !12, i64 0}
!16 = !{!11, !12, i64 56}
!17 = !{!11, !12, i64 48}
!18 = !{!11, !7, i64 40}
!19 = !{!11, !12, i64 32}
!20 = !{!11, !7, i64 16}
!21 = !{!11, !7, i64 20}
!22 = !{!11, !7, i64 12}
!23 = !{!11, !7, i64 8}
| linux_sound_pci_ymfpci_extr_ymfpci_main.c_snd_ymfpci_free |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_uli526x.c_uli526x_remove_one.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_uli526x.c_uli526x_remove_one.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.uli526x_board_info = type { i32, i32, i32, i32, i32, i32 }
@DESC_ALL_CNT = dso_local local_unnamed_addr global i32 0, align 4
@TX_BUF_ALLOC = dso_local local_unnamed_addr global i32 0, align 4
@TX_DESC_CNT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @uli526x_remove_one], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @uli526x_remove_one(ptr noundef %0) #0 {
%2 = tail call ptr @pci_get_drvdata(ptr noundef %0) #2
%3 = tail call ptr @netdev_priv(ptr noundef %2) #2
%4 = tail call i32 @unregister_netdev(ptr noundef %2) #2
%5 = getelementptr inbounds %struct.uli526x_board_info, ptr %3, i64 0, i32 5
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = tail call i32 @pci_iounmap(ptr noundef %0, i32 noundef %6) #2
%8 = getelementptr inbounds %struct.uli526x_board_info, ptr %3, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !10
%10 = load i32, ptr @DESC_ALL_CNT, align 4, !tbaa !11
%11 = shl i32 %10, 2
%12 = add i32 %11, 32
%13 = getelementptr inbounds %struct.uli526x_board_info, ptr %3, i64 0, i32 4
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = getelementptr inbounds %struct.uli526x_board_info, ptr %3, i64 0, i32 3
%16 = load i32, ptr %15, align 4, !tbaa !13
%17 = tail call i32 @pci_free_consistent(i32 noundef %9, i32 noundef %12, i32 noundef %14, i32 noundef %16) #2
%18 = load i32, ptr %8, align 4, !tbaa !10
%19 = load i32, ptr @TX_BUF_ALLOC, align 4, !tbaa !11
%20 = load i32, ptr @TX_DESC_CNT, align 4, !tbaa !11
%21 = mul nsw i32 %20, %19
%22 = add nsw i32 %21, 4
%23 = getelementptr inbounds %struct.uli526x_board_info, ptr %3, i64 0, i32 1
%24 = load i32, ptr %23, align 4, !tbaa !14
%25 = load i32, ptr %3, align 4, !tbaa !15
%26 = tail call i32 @pci_free_consistent(i32 noundef %18, i32 noundef %22, i32 noundef %24, i32 noundef %25) #2
%27 = tail call i32 @pci_release_regions(ptr noundef %0) #2
%28 = tail call i32 @pci_disable_device(ptr noundef %0) #2
%29 = tail call i32 @free_netdev(ptr noundef %2) #2
ret void
}
declare ptr @pci_get_drvdata(ptr noundef) local_unnamed_addr #1
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @unregister_netdev(ptr noundef) local_unnamed_addr #1
declare i32 @pci_iounmap(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_free_consistent(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_release_regions(ptr noundef) local_unnamed_addr #1
declare i32 @pci_disable_device(ptr noundef) local_unnamed_addr #1
declare i32 @free_netdev(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 20}
!6 = !{!"uli526x_board_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 4}
!15 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_uli526x.c_uli526x_remove_one.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_uli526x.c_uli526x_remove_one.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DESC_ALL_CNT = common local_unnamed_addr global i32 0, align 4
@TX_BUF_ALLOC = common local_unnamed_addr global i32 0, align 4
@TX_DESC_CNT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @uli526x_remove_one], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @uli526x_remove_one(ptr noundef %0) #0 {
%2 = tail call ptr @pci_get_drvdata(ptr noundef %0) #2
%3 = tail call ptr @netdev_priv(ptr noundef %2) #2
%4 = tail call i32 @unregister_netdev(ptr noundef %2) #2
%5 = getelementptr inbounds i8, ptr %3, i64 20
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = tail call i32 @pci_iounmap(ptr noundef %0, i32 noundef %6) #2
%8 = getelementptr inbounds i8, ptr %3, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = load i32, ptr @DESC_ALL_CNT, align 4, !tbaa !12
%11 = shl i32 %10, 2
%12 = add i32 %11, 32
%13 = getelementptr inbounds i8, ptr %3, i64 16
%14 = load i32, ptr %13, align 4, !tbaa !13
%15 = getelementptr inbounds i8, ptr %3, i64 12
%16 = load i32, ptr %15, align 4, !tbaa !14
%17 = tail call i32 @pci_free_consistent(i32 noundef %9, i32 noundef %12, i32 noundef %14, i32 noundef %16) #2
%18 = load i32, ptr %8, align 4, !tbaa !11
%19 = load i32, ptr @TX_BUF_ALLOC, align 4, !tbaa !12
%20 = load i32, ptr @TX_DESC_CNT, align 4, !tbaa !12
%21 = mul nsw i32 %20, %19
%22 = add nsw i32 %21, 4
%23 = getelementptr inbounds i8, ptr %3, i64 4
%24 = load i32, ptr %23, align 4, !tbaa !15
%25 = load i32, ptr %3, align 4, !tbaa !16
%26 = tail call i32 @pci_free_consistent(i32 noundef %18, i32 noundef %22, i32 noundef %24, i32 noundef %25) #2
%27 = tail call i32 @pci_release_regions(ptr noundef %0) #2
%28 = tail call i32 @pci_disable_device(ptr noundef %0) #2
%29 = tail call i32 @free_netdev(ptr noundef %2) #2
ret void
}
declare ptr @pci_get_drvdata(ptr noundef) local_unnamed_addr #1
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @unregister_netdev(ptr noundef) local_unnamed_addr #1
declare i32 @pci_iounmap(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_free_consistent(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_release_regions(ptr noundef) local_unnamed_addr #1
declare i32 @pci_disable_device(ptr noundef) local_unnamed_addr #1
declare i32 @free_netdev(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 20}
!7 = !{!"uli526x_board_info", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 16}
!14 = !{!7, !8, i64 12}
!15 = !{!7, !8, i64 4}
!16 = !{!7, !8, i64 0}
| linux_drivers_net_ethernet_dec_tulip_extr_uli526x.c_uli526x_remove_one |
; ModuleID = 'AnghaBench/zstd/lib/legacy/extr_zstd_v01.c_ZSTDv01_createDCtx.c'
source_filename = "AnghaBench/zstd/lib/legacy/extr_zstd_v01.c_ZSTDv01_createDCtx.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 noundef ptr @ZSTDv01_createDCtx() local_unnamed_addr #0 {
%1 = tail call i64 @malloc(i32 noundef 4) #2
%2 = icmp eq i64 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = inttoptr i64 %1 to ptr
%5 = tail call i32 @ZSTDv01_resetDCtx(ptr noundef nonnull %4) #2
br label %6
6: ; preds = %0, %3
%7 = phi ptr [ %4, %3 ], [ null, %0 ]
ret ptr %7
}
declare i64 @malloc(i32 noundef) local_unnamed_addr #1
declare i32 @ZSTDv01_resetDCtx(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/zstd/lib/legacy/extr_zstd_v01.c_ZSTDv01_createDCtx.c'
source_filename = "AnghaBench/zstd/lib/legacy/extr_zstd_v01.c_ZSTDv01_createDCtx.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 noundef ptr @ZSTDv01_createDCtx() local_unnamed_addr #0 {
%1 = tail call i64 @malloc(i32 noundef 4) #2
%2 = icmp eq i64 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = inttoptr i64 %1 to ptr
%5 = tail call i32 @ZSTDv01_resetDCtx(ptr noundef nonnull %4) #2
br label %6
6: ; preds = %0, %3
%7 = phi ptr [ %4, %3 ], [ null, %0 ]
ret ptr %7
}
declare i64 @malloc(i32 noundef) local_unnamed_addr #1
declare i32 @ZSTDv01_resetDCtx(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)"}
| zstd_lib_legacy_extr_zstd_v01.c_ZSTDv01_createDCtx |
; ModuleID = 'AnghaBench/linux/net/mac80211/extr_vht.c_ieee80211_update_mu_groups.c'
source_filename = "AnghaBench/linux/net/mac80211/extr_vht.c_ieee80211_update_mu_groups.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.ieee80211_vif = type { i32, %struct.ieee80211_bss_conf }
%struct.ieee80211_bss_conf = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32 }
@WLAN_MEMBERSHIP_LEN = dso_local local_unnamed_addr global i32 0, align 4
@WLAN_USER_POSITION_LEN = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @ieee80211_update_mu_groups(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr %0, align 4, !tbaa !5
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = tail call i64 @WARN_ON_ONCE(i32 noundef %6) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %3
%10 = getelementptr inbounds %struct.ieee80211_vif, ptr %0, i64 0, i32 1
%11 = getelementptr inbounds %struct.ieee80211_vif, ptr %0, i64 0, i32 1, i32 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = load i32, ptr @WLAN_MEMBERSHIP_LEN, align 4, !tbaa !13
%14 = tail call i32 @memcpy(i32 noundef %12, ptr noundef %1, i32 noundef %13) #2
%15 = load i32, ptr %10, align 4, !tbaa !14
%16 = load i32, ptr @WLAN_USER_POSITION_LEN, align 4, !tbaa !13
%17 = tail call i32 @memcpy(i32 noundef %15, ptr noundef %2, i32 noundef %16) #2
br label %18
18: ; preds = %3, %9
ret void
}
declare i64 @WARN_ON_ONCE(i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i32 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 = !{!"ieee80211_vif", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"ieee80211_bss_conf", !11, i64 0}
!11 = !{!"TYPE_2__", !7, i64 0, !7, i64 4}
!12 = !{!10, !7, i64 4}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/mac80211/extr_vht.c_ieee80211_update_mu_groups.c'
source_filename = "AnghaBench/linux/net/mac80211/extr_vht.c_ieee80211_update_mu_groups.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WLAN_MEMBERSHIP_LEN = common local_unnamed_addr global i32 0, align 4
@WLAN_USER_POSITION_LEN = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @ieee80211_update_mu_groups(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr %0, align 4, !tbaa !6
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
%7 = tail call i64 @WARN_ON_ONCE(i32 noundef %6) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %3
%10 = getelementptr inbounds i8, ptr %0, i64 4
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i32, ptr %11, align 4, !tbaa !13
%13 = load i32, ptr @WLAN_MEMBERSHIP_LEN, align 4, !tbaa !14
%14 = tail call i32 @memcpy(i32 noundef %12, ptr noundef %1, i32 noundef %13) #2
%15 = load i32, ptr %10, align 4, !tbaa !15
%16 = load i32, ptr @WLAN_USER_POSITION_LEN, align 4, !tbaa !14
%17 = tail call i32 @memcpy(i32 noundef %15, ptr noundef %2, i32 noundef %16) #2
br label %18
18: ; preds = %3, %9
ret void
}
declare i64 @WARN_ON_ONCE(i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i32 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 = !{!"ieee80211_vif", !8, i64 0, !11, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"ieee80211_bss_conf", !12, i64 0}
!12 = !{!"TYPE_2__", !8, i64 0, !8, i64 4}
!13 = !{!11, !8, i64 4}
!14 = !{!8, !8, i64 0}
!15 = !{!11, !8, i64 0}
| linux_net_mac80211_extr_vht.c_ieee80211_update_mu_groups |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_need_reserve_rings.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_need_reserve_rings.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.bnxt = type { i32, i32, i64, i32, %struct.bnxt_hw_resc }
%struct.bnxt_hw_resc = type { i64, i32, i32, i32, i32, i32, i32 }
@BNXT_FLAG_RFS = dso_local local_unnamed_addr global i32 0, align 4
@BNXT_FLAG_CHIP_P5 = dso_local local_unnamed_addr global i32 0, align 4
@BNXT_FLAG_AGG_RINGS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bnxt_need_reserve_rings], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @bnxt_need_reserve_rings(ptr noundef %0) #0 {
%2 = tail call i32 @bnxt_cp_rings_in_use(ptr noundef %0) #2
%3 = tail call i32 @bnxt_nq_rings_in_use(ptr noundef %0) #2
%4 = load i32, ptr %0, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = icmp slt i32 %6, 67073
br i1 %7, label %77, label %8
8: ; preds = %1
%9 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4
%10 = load i64, ptr %9, align 8, !tbaa !13
%11 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 2
%12 = load i64, ptr %11, align 8, !tbaa !14
%13 = icmp eq i64 %10, %12
br i1 %13, label %14, label %77
14: ; preds = %8
%15 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 3
%16 = load i32, ptr %15, align 8, !tbaa !15
%17 = load i32, ptr @BNXT_FLAG_RFS, align 4, !tbaa !16
%18 = and i32 %17, %16
%19 = icmp eq i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = load i32, ptr @BNXT_FLAG_CHIP_P5, align 4, !tbaa !16
%22 = and i32 %21, %16
%23 = icmp eq i32 %22, 0
%24 = add nsw i32 %4, 1
%25 = select i1 %23, i32 %24, i32 1
br label %26
26: ; preds = %20, %14
%27 = phi i32 [ 1, %14 ], [ %25, %20 ]
%28 = load i32, ptr @BNXT_FLAG_AGG_RINGS, align 4, !tbaa !16
%29 = tail call i32 @bnxt_get_func_stat_ctxs(ptr noundef nonnull %0) #2
%30 = tail call i64 @BNXT_NEW_RM(ptr noundef nonnull %0) #2
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %26
%33 = load i32, ptr %15, align 8, !tbaa !15
%34 = load i32, ptr @BNXT_FLAG_CHIP_P5, align 4, !tbaa !16
br label %64
35: ; preds = %26
%36 = and i32 %28, %16
%37 = icmp ne i32 %36, 0
%38 = zext i1 %37 to i32
%39 = shl i32 %4, %38
%40 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4, i32 1
%41 = load i32, ptr %40, align 8, !tbaa !17
%42 = icmp eq i32 %41, %39
br i1 %42, label %43, label %77
43: ; preds = %35
%44 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4, i32 2
%45 = load i32, ptr %44, align 4, !tbaa !18
%46 = icmp eq i32 %45, %2
br i1 %46, label %47, label %77
47: ; preds = %43
%48 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4, i32 3
%49 = load i32, ptr %48, align 8, !tbaa !19
%50 = icmp eq i32 %49, %27
br i1 %50, label %51, label %77
51: ; preds = %47
%52 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4, i32 4
%53 = load i32, ptr %52, align 4, !tbaa !20
%54 = icmp eq i32 %53, %29
br i1 %54, label %55, label %77
55: ; preds = %51
%56 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4, i32 5
%57 = load i32, ptr %56, align 8, !tbaa !21
%58 = icmp ne i32 %57, %4
%59 = load i32, ptr %15, align 8, !tbaa !15
%60 = load i32, ptr @BNXT_FLAG_CHIP_P5, align 4, !tbaa !16
%61 = and i32 %60, %59
%62 = icmp eq i32 %61, 0
%63 = select i1 %58, i1 %62, i1 false
br i1 %63, label %77, label %64
64: ; preds = %32, %55
%65 = phi i32 [ %34, %32 ], [ %60, %55 ]
%66 = phi i32 [ %33, %32 ], [ %59, %55 ]
%67 = and i32 %65, %66
%68 = icmp eq i32 %67, 0
br i1 %68, label %76, label %69
69: ; preds = %64
%70 = tail call i64 @BNXT_PF(ptr noundef nonnull %0) #2
%71 = icmp eq i64 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %69
%73 = getelementptr inbounds %struct.bnxt, ptr %0, i64 0, i32 4, i32 6
%74 = load i32, ptr %73, align 4, !tbaa !22
%75 = icmp eq i32 %74, %3
br i1 %75, label %76, label %77
76: ; preds = %72, %69, %64
br label %77
77: ; preds = %55, %72, %35, %43, %47, %51, %8, %1, %76
%78 = phi i32 [ 0, %76 ], [ 0, %1 ], [ 1, %8 ], [ 1, %51 ], [ 1, %47 ], [ 1, %43 ], [ 1, %35 ], [ 1, %72 ], [ 1, %55 ]
ret i32 %78
}
declare i32 @bnxt_cp_rings_in_use(ptr noundef) local_unnamed_addr #1
declare i32 @bnxt_nq_rings_in_use(ptr noundef) local_unnamed_addr #1
declare i32 @bnxt_get_func_stat_ctxs(ptr noundef) local_unnamed_addr #1
declare i64 @BNXT_NEW_RM(ptr noundef) local_unnamed_addr #1
declare i64 @BNXT_PF(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 = !{!"bnxt", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"bnxt_hw_resc", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!12 = !{!6, !7, i64 4}
!13 = !{!11, !10, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !7, i64 16}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !7, i64 8}
!18 = !{!11, !7, i64 12}
!19 = !{!11, !7, i64 16}
!20 = !{!11, !7, i64 20}
!21 = !{!11, !7, i64 24}
!22 = !{!11, !7, i64 28}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_need_reserve_rings.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/bnxt/extr_bnxt.c_bnxt_need_reserve_rings.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BNXT_FLAG_RFS = common local_unnamed_addr global i32 0, align 4
@BNXT_FLAG_CHIP_P5 = common local_unnamed_addr global i32 0, align 4
@BNXT_FLAG_AGG_RINGS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bnxt_need_reserve_rings], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @bnxt_need_reserve_rings(ptr noundef %0) #0 {
%2 = tail call i32 @bnxt_cp_rings_in_use(ptr noundef %0) #2
%3 = tail call i32 @bnxt_nq_rings_in_use(ptr noundef %0) #2
%4 = load i32, ptr %0, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %0, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !13
%7 = icmp slt i32 %6, 67073
br i1 %7, label %77, label %8
8: ; preds = %1
%9 = getelementptr inbounds i8, ptr %0, i64 24
%10 = load i64, ptr %9, align 8, !tbaa !14
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !15
%13 = icmp eq i64 %10, %12
br i1 %13, label %14, label %77
14: ; preds = %8
%15 = getelementptr inbounds i8, ptr %0, i64 16
%16 = load i32, ptr %15, align 8, !tbaa !16
%17 = load i32, ptr @BNXT_FLAG_RFS, align 4, !tbaa !17
%18 = and i32 %17, %16
%19 = icmp eq i32 %18, 0
br i1 %19, label %26, label %20
20: ; preds = %14
%21 = load i32, ptr @BNXT_FLAG_CHIP_P5, align 4, !tbaa !17
%22 = and i32 %21, %16
%23 = icmp eq i32 %22, 0
%24 = add nsw i32 %4, 1
%25 = select i1 %23, i32 %24, i32 1
br label %26
26: ; preds = %20, %14
%27 = phi i32 [ 1, %14 ], [ %25, %20 ]
%28 = load i32, ptr @BNXT_FLAG_AGG_RINGS, align 4, !tbaa !17
%29 = tail call i32 @bnxt_get_func_stat_ctxs(ptr noundef nonnull %0) #2
%30 = tail call i64 @BNXT_NEW_RM(ptr noundef nonnull %0) #2
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %26
%33 = load i32, ptr %15, align 8, !tbaa !16
%34 = load i32, ptr @BNXT_FLAG_CHIP_P5, align 4, !tbaa !17
br label %64
35: ; preds = %26
%36 = and i32 %28, %16
%37 = icmp ne i32 %36, 0
%38 = zext i1 %37 to i32
%39 = shl i32 %4, %38
%40 = getelementptr inbounds i8, ptr %0, i64 32
%41 = load i32, ptr %40, align 8, !tbaa !18
%42 = icmp eq i32 %41, %39
br i1 %42, label %43, label %77
43: ; preds = %35
%44 = getelementptr inbounds i8, ptr %0, i64 36
%45 = load i32, ptr %44, align 4, !tbaa !19
%46 = icmp eq i32 %45, %2
br i1 %46, label %47, label %77
47: ; preds = %43
%48 = getelementptr inbounds i8, ptr %0, i64 40
%49 = load i32, ptr %48, align 8, !tbaa !20
%50 = icmp eq i32 %49, %27
br i1 %50, label %51, label %77
51: ; preds = %47
%52 = getelementptr inbounds i8, ptr %0, i64 44
%53 = load i32, ptr %52, align 4, !tbaa !21
%54 = icmp eq i32 %53, %29
br i1 %54, label %55, label %77
55: ; preds = %51
%56 = getelementptr inbounds i8, ptr %0, i64 48
%57 = load i32, ptr %56, align 8, !tbaa !22
%58 = icmp ne i32 %57, %4
%59 = load i32, ptr %15, align 8, !tbaa !16
%60 = load i32, ptr @BNXT_FLAG_CHIP_P5, align 4, !tbaa !17
%61 = and i32 %60, %59
%62 = icmp eq i32 %61, 0
%63 = select i1 %58, i1 %62, i1 false
br i1 %63, label %77, label %64
64: ; preds = %32, %55
%65 = phi i32 [ %34, %32 ], [ %60, %55 ]
%66 = phi i32 [ %33, %32 ], [ %59, %55 ]
%67 = and i32 %65, %66
%68 = icmp eq i32 %67, 0
br i1 %68, label %76, label %69
69: ; preds = %64
%70 = tail call i64 @BNXT_PF(ptr noundef nonnull %0) #2
%71 = icmp eq i64 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %69
%73 = getelementptr inbounds i8, ptr %0, i64 52
%74 = load i32, ptr %73, align 4, !tbaa !23
%75 = icmp eq i32 %74, %3
br i1 %75, label %76, label %77
76: ; preds = %72, %69, %64
br label %77
77: ; preds = %55, %72, %35, %43, %47, %51, %8, %1, %76
%78 = phi i32 [ 0, %76 ], [ 0, %1 ], [ 1, %8 ], [ 1, %51 ], [ 1, %47 ], [ 1, %43 ], [ 1, %35 ], [ 1, %72 ], [ 1, %55 ]
ret i32 %78
}
declare i32 @bnxt_cp_rings_in_use(ptr noundef) local_unnamed_addr #1
declare i32 @bnxt_nq_rings_in_use(ptr noundef) local_unnamed_addr #1
declare i32 @bnxt_get_func_stat_ctxs(ptr noundef) local_unnamed_addr #1
declare i64 @BNXT_NEW_RM(ptr noundef) local_unnamed_addr #1
declare i64 @BNXT_PF(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 = !{!"bnxt", !8, i64 0, !8, i64 4, !11, i64 8, !8, i64 16, !12, i64 24}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"bnxt_hw_resc", !11, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!13 = !{!7, !8, i64 4}
!14 = !{!12, !11, i64 0}
!15 = !{!7, !11, i64 8}
!16 = !{!7, !8, i64 16}
!17 = !{!8, !8, i64 0}
!18 = !{!12, !8, i64 8}
!19 = !{!12, !8, i64 12}
!20 = !{!12, !8, i64 16}
!21 = !{!12, !8, i64 20}
!22 = !{!12, !8, i64 24}
!23 = !{!12, !8, i64 28}
| linux_drivers_net_ethernet_broadcom_bnxt_extr_bnxt.c_bnxt_need_reserve_rings |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/arm/common/extr_scoop.c___scoop_gpio_set.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/arm/common/extr_scoop.c___scoop_gpio_set.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"
@SCOOP_GPWR = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @__scoop_gpio_set], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @__scoop_gpio_set(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = load i64, ptr @SCOOP_GPWR, align 8, !tbaa !10
%6 = add nsw i64 %5, %4
%7 = tail call zeroext i16 @ioread16(i64 noundef %6) #2
%8 = icmp eq i32 %2, 0
%9 = add i32 %1, 1
%10 = shl nuw i32 1, %9
%11 = trunc i32 %10 to i16
%12 = or i16 %7, %11
%13 = xor i16 %11, -1
%14 = and i16 %7, %13
%15 = select i1 %8, i16 %14, i16 %12
%16 = load i64, ptr %0, align 8, !tbaa !5
%17 = load i64, ptr @SCOOP_GPWR, align 8, !tbaa !10
%18 = add nsw i64 %17, %16
%19 = tail call i32 @iowrite16(i16 noundef zeroext %15, i64 noundef %18) #2
ret void
}
declare zeroext i16 @ioread16(i64 noundef) local_unnamed_addr #1
declare i32 @iowrite16(i16 noundef zeroext, 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 = !{!"scoop_dev", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/arm/common/extr_scoop.c___scoop_gpio_set.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/arm/common/extr_scoop.c___scoop_gpio_set.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SCOOP_GPWR = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @__scoop_gpio_set], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @__scoop_gpio_set(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = load i64, ptr @SCOOP_GPWR, align 8, !tbaa !11
%6 = add nsw i64 %5, %4
%7 = tail call zeroext i16 @ioread16(i64 noundef %6) #2
%8 = icmp eq i32 %2, 0
%9 = add i32 %1, 1
%10 = shl nuw i32 1, %9
%11 = trunc i32 %10 to i16
%12 = or i16 %7, %11
%13 = xor i16 %11, -1
%14 = and i16 %7, %13
%15 = select i1 %8, i16 %14, i16 %12
%16 = load i64, ptr %0, align 8, !tbaa !6
%17 = load i64, ptr @SCOOP_GPWR, align 8, !tbaa !11
%18 = add nsw i64 %17, %16
%19 = tail call i32 @iowrite16(i16 noundef zeroext %15, i64 noundef %18) #2
ret void
}
declare zeroext i16 @ioread16(i64 noundef) local_unnamed_addr #1
declare i32 @iowrite16(i16 noundef zeroext, 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 = !{!"scoop_dev", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| fastsocket_kernel_arch_arm_common_extr_scoop.c___scoop_gpio_set |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/rxrpc/extr_ar-recvmsg.c_rxrpc_remove_user_ID.c'
source_filename = "AnghaBench/fastsocket/kernel/net/rxrpc/extr_ar-recvmsg.c_rxrpc_remove_user_ID.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.rxrpc_call = type { i32, i32, i32, ptr, i32, i32 }
@.str = private unnamed_addr constant [16 x i8] c"RELEASE CALL %d\00", align 1
@RXRPC_CALL_HAS_USERID = dso_local local_unnamed_addr global i32 0, align 4
@RXRPC_CALL_RELEASED = dso_local local_unnamed_addr global i32 0, align 4
@RXRPC_CALL_RELEASE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @rxrpc_remove_user_ID(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.rxrpc_call, ptr %1, i64 0, i32 5
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = tail call i32 @_debug(ptr noundef nonnull @.str, i32 noundef %4) #2
%6 = load i32, ptr @RXRPC_CALL_HAS_USERID, align 4, !tbaa !11
%7 = getelementptr inbounds %struct.rxrpc_call, ptr %1, i64 0, i32 2
%8 = tail call i64 @test_bit(i32 noundef %6, ptr noundef nonnull %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %2
%11 = tail call i32 @write_lock_bh(ptr noundef %0) #2
%12 = getelementptr inbounds %struct.rxrpc_call, ptr %1, i64 0, i32 4
%13 = getelementptr inbounds %struct.rxrpc_call, ptr %1, i64 0, i32 3
%14 = load ptr, ptr %13, align 8, !tbaa !12
%15 = tail call i32 @rb_erase(ptr noundef nonnull %12, ptr noundef %14) #2
%16 = load i32, ptr @RXRPC_CALL_HAS_USERID, align 4, !tbaa !11
%17 = tail call i32 @clear_bit(i32 noundef %16, ptr noundef nonnull %7) #2
%18 = tail call i32 @write_unlock_bh(ptr noundef %0) #2
br label %19
19: ; preds = %10, %2
%20 = tail call i32 @read_lock_bh(ptr noundef nonnull %1) #2
%21 = load i32, ptr @RXRPC_CALL_RELEASED, align 4, !tbaa !11
%22 = tail call i64 @test_bit(i32 noundef %21, ptr noundef nonnull %7) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load i32, ptr @RXRPC_CALL_RELEASE, align 4, !tbaa !11
%26 = getelementptr inbounds %struct.rxrpc_call, ptr %1, i64 0, i32 1
%27 = tail call i32 @test_and_set_bit(i32 noundef %25, ptr noundef nonnull %26) #2
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = tail call i32 @rxrpc_queue_call(ptr noundef nonnull %1) #2
br label %31
31: ; preds = %29, %24, %19
%32 = tail call i32 @read_unlock_bh(ptr noundef nonnull %1) #2
ret void
}
declare i32 @_debug(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @write_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @rb_erase(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @write_unlock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @read_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @test_and_set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @rxrpc_queue_call(ptr noundef) local_unnamed_addr #1
declare i32 @read_unlock_bh(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 28}
!6 = !{!"rxrpc_call", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28}
!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 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/rxrpc/extr_ar-recvmsg.c_rxrpc_remove_user_ID.c'
source_filename = "AnghaBench/fastsocket/kernel/net/rxrpc/extr_ar-recvmsg.c_rxrpc_remove_user_ID.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 [16 x i8] c"RELEASE CALL %d\00", align 1
@RXRPC_CALL_HAS_USERID = common local_unnamed_addr global i32 0, align 4
@RXRPC_CALL_RELEASED = common local_unnamed_addr global i32 0, align 4
@RXRPC_CALL_RELEASE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @rxrpc_remove_user_ID(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 28
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = tail call i32 @_debug(ptr noundef nonnull @.str, i32 noundef %4) #2
%6 = load i32, ptr @RXRPC_CALL_HAS_USERID, align 4, !tbaa !12
%7 = getelementptr inbounds i8, ptr %1, i64 8
%8 = tail call i64 @test_bit(i32 noundef %6, ptr noundef nonnull %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %2
%11 = tail call i32 @write_lock_bh(ptr noundef %0) #2
%12 = getelementptr inbounds i8, ptr %1, i64 24
%13 = getelementptr inbounds i8, ptr %1, i64 16
%14 = load ptr, ptr %13, align 8, !tbaa !13
%15 = tail call i32 @rb_erase(ptr noundef nonnull %12, ptr noundef %14) #2
%16 = load i32, ptr @RXRPC_CALL_HAS_USERID, align 4, !tbaa !12
%17 = tail call i32 @clear_bit(i32 noundef %16, ptr noundef nonnull %7) #2
%18 = tail call i32 @write_unlock_bh(ptr noundef %0) #2
br label %19
19: ; preds = %10, %2
%20 = tail call i32 @read_lock_bh(ptr noundef nonnull %1) #2
%21 = load i32, ptr @RXRPC_CALL_RELEASED, align 4, !tbaa !12
%22 = tail call i64 @test_bit(i32 noundef %21, ptr noundef nonnull %7) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %19
%25 = load i32, ptr @RXRPC_CALL_RELEASE, align 4, !tbaa !12
%26 = getelementptr inbounds i8, ptr %1, i64 4
%27 = tail call i32 @test_and_set_bit(i32 noundef %25, ptr noundef nonnull %26) #2
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = tail call i32 @rxrpc_queue_call(ptr noundef nonnull %1) #2
br label %31
31: ; preds = %29, %24, %19
%32 = tail call i32 @read_unlock_bh(ptr noundef nonnull %1) #2
ret void
}
declare i32 @_debug(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @write_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @rb_erase(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @write_unlock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @read_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @test_and_set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @rxrpc_queue_call(ptr noundef) local_unnamed_addr #1
declare i32 @read_unlock_bh(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 28}
!7 = !{!"rxrpc_call", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !8, i64 24, !8, i64 28}
!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 = !{!7, !11, i64 16}
| fastsocket_kernel_net_rxrpc_extr_ar-recvmsg.c_rxrpc_remove_user_ID |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/nes/extr_nes_cm.c_nes_cm_disconn_true.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/nes/extr_nes_cm.c_nes_cm_disconn_true.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.iw_cm_event = type { i32, i64, ptr, i32, i32, ptr, i32 }
%struct.ib_event = type { %struct.TYPE_4__, i32, i32 }
%struct.TYPE_4__ = type { ptr }
%struct.nes_qp = type { i64, i64, i64, i32, i64, i64, i32, %struct.TYPE_6__, %struct.TYPE_5__, i32, i64, i32, ptr, i32 }
%struct.TYPE_6__ = type { i32, i32, i32 }
%struct.TYPE_5__ = type { i32, ptr, i32 }
%struct.iw_cm_id = type { ptr, ptr, i32, i32, ptr }
@NES_CQP_FLUSH_RQ = dso_local local_unnamed_addr global i32 0, align 4
@NES_DBG_CM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"disconnect_worker nesqp is NULL\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"QP%u disconnect_worker cmid is NULL\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Disconnecting QP%u\0A\00", align 1
@NES_AEQE_TCP_STATE_CLOSE_WAIT = dso_local local_unnamed_addr global i64 0, align 8
@IB_QPS_RTS = dso_local local_unnamed_addr global i64 0, align 8
@NES_AEQE_AEID_LLP_CONNECTION_RESET = dso_local local_unnamed_addr global i64 0, align 8
@ECONNRESET = dso_local local_unnamed_addr global i32 0, align 4
@NES_AEQE_TCP_STATE_CLOSED = dso_local local_unnamed_addr global i64 0, align 8
@NES_AEQE_TCP_STATE_TIME_WAIT = dso_local local_unnamed_addr global i64 0, align 8
@NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE = dso_local local_unnamed_addr global i64 0, align 8
@NES_AEQE_IWARP_STATE_TERMINATE = dso_local local_unnamed_addr global i64 0, align 8
@NES_CQP_FLUSH_SQ = dso_local local_unnamed_addr global i32 0, align 4
@cm_disconnects = dso_local global i32 0, align 4
@IW_CM_EVENT_DISCONNECT = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [100 x i8] c"Generating a CM Disconnect Event for QP%u, SQ Head = %u, SQ Tail = %u. cm_id = %p, refcount = %u.\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"OFA CM event_handler returned, ret=%d\0A\00", align 1
@cm_closes = dso_local global i32 0, align 4
@IW_CM_EVENT_CLOSE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @nes_cm_disconn_true], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @nes_cm_disconn_true(ptr noundef %0) #0 {
%2 = alloca %struct.iw_cm_event, align 8
%3 = alloca %struct.ib_event, align 8
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #4
%4 = load i32, ptr @NES_CQP_FLUSH_RQ, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
%5 = icmp eq ptr %0, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !5
%8 = tail call i32 (i32, ptr, ...) @nes_debug(i32 noundef %7, ptr noundef nonnull @.str) #4
br label %164
9: ; preds = %1
%10 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 11
%11 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %10, i64 noundef undef) #4
%12 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 12
%13 = load ptr, ptr %12, align 8, !tbaa !9
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %21
15: ; preds = %9
%16 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !5
%17 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 7
%18 = load i32, ptr %17, align 4, !tbaa !15
%19 = tail call i32 (i32, ptr, ...) @nes_debug(i32 noundef %16, ptr noundef nonnull @.str.1, i32 noundef %18) #4
%20 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #4
br label %164
21: ; preds = %9
%22 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 8
%23 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 8, i32 2
%24 = load i32, ptr %23, align 8, !tbaa !16
%25 = tail call ptr @to_nesvnic(i32 noundef %24) #4
%26 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !5
%27 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 7
%28 = load i32, ptr %27, align 4, !tbaa !15
%29 = tail call i32 (i32, ptr, ...) @nes_debug(i32 noundef %26, ptr noundef nonnull @.str.2, i32 noundef %28) #4
%30 = load i64, ptr %0, align 8, !tbaa !17
%31 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 1
%32 = load i64, ptr %31, align 8, !tbaa !18
%33 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 2
%34 = load i64, ptr %33, align 8, !tbaa !19
%35 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 10
%36 = load i64, ptr %35, align 8, !tbaa !20
%37 = icmp eq i64 %36, 0
br i1 %37, label %45, label %38
38: ; preds = %21
store ptr null, ptr %12, align 8, !tbaa !9
%39 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 13
%40 = tail call i32 @del_timer(ptr noundef nonnull %39) #4
%41 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 3
%42 = load i32, ptr %41, align 8, !tbaa !21
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %59
44: ; preds = %38
store i32 1, ptr %41, align 8, !tbaa !21
br label %59
45: ; preds = %21
%46 = load i64, ptr @NES_AEQE_TCP_STATE_CLOSE_WAIT, align 8, !tbaa !22
%47 = icmp eq i64 %30, %46
%48 = load i64, ptr @NES_AEQE_AEID_LLP_CONNECTION_RESET, align 8
br i1 %47, label %54, label %49
49: ; preds = %45
%50 = load i64, ptr @IB_QPS_RTS, align 8, !tbaa !22
%51 = icmp eq i64 %32, %50
%52 = icmp eq i64 %34, %48
%53 = select i1 %51, i1 %52, i1 false
br i1 %53, label %54, label %59
54: ; preds = %49, %45
%55 = icmp eq i64 %34, %48
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = load i32, ptr @ECONNRESET, align 4, !tbaa !5
%58 = sub nsw i32 0, %57
br label %59
59: ; preds = %49, %56, %54, %38, %44
%60 = phi i32 [ 0, %44 ], [ 0, %38 ], [ %58, %56 ], [ 0, %54 ], [ 0, %49 ]
%61 = phi i1 [ false, %44 ], [ false, %38 ], [ false, %56 ], [ false, %54 ], [ true, %49 ]
%62 = phi i32 [ 1, %44 ], [ 1, %38 ], [ 0, %56 ], [ 0, %54 ], [ 0, %49 ]
%63 = phi i1 [ false, %44 ], [ true, %38 ], [ true, %56 ], [ true, %54 ], [ true, %49 ]
%64 = load i64, ptr @NES_AEQE_TCP_STATE_CLOSED, align 8, !tbaa !22
%65 = icmp eq i64 %30, %64
%66 = load i64, ptr @NES_AEQE_TCP_STATE_TIME_WAIT, align 8
%67 = icmp eq i64 %30, %66
%68 = select i1 %65, i1 true, i1 %67
%69 = load i64, ptr @NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE, align 8
%70 = icmp eq i64 %34, %69
%71 = select i1 %68, i1 true, i1 %70
%72 = load i64, ptr @NES_AEQE_AEID_LLP_CONNECTION_RESET, align 8
%73 = icmp eq i64 %34, %72
%74 = select i1 %71, i1 true, i1 %73
br i1 %74, label %75, label %81
75: ; preds = %59
store ptr null, ptr %12, align 8, !tbaa !9
%76 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 3
%77 = load i32, ptr %76, align 8, !tbaa !21
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
store i32 1, ptr %76, align 8, !tbaa !21
%80 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #4
br label %84
81: ; preds = %59, %75
%82 = phi i32 [ 1, %75 ], [ %62, %59 ]
%83 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #4
br i1 %63, label %113, label %84
84: ; preds = %79, %81
%85 = phi i32 [ 1, %79 ], [ %82, %81 ]
%86 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 4
%87 = load i64, ptr %86, align 8, !tbaa !23
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %113
89: ; preds = %84
%90 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 5
%91 = load i64, ptr %90, align 8, !tbaa !24
%92 = load i64, ptr @NES_AEQE_IWARP_STATE_TERMINATE, align 8, !tbaa !22
%93 = icmp slt i64 %91, %92
%94 = load i32, ptr @NES_CQP_FLUSH_SQ, align 4
%95 = select i1 %93, i32 0, i32 %94
%96 = or i32 %95, %4
%97 = load i32, ptr %25, align 4, !tbaa !25
%98 = tail call i32 @flush_wqes(i32 noundef %97, ptr noundef nonnull %0, i32 noundef %96, i32 noundef 1) #4
%99 = load i64, ptr %35, align 8, !tbaa !20
%100 = icmp eq i64 %99, 0
br i1 %100, label %113, label %101
101: ; preds = %89
%102 = load i32, ptr %23, align 8, !tbaa !16
%103 = getelementptr inbounds %struct.ib_event, ptr %3, i64 0, i32 2
store i32 %102, ptr %103, align 4, !tbaa !27
%104 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 9
%105 = load i32, ptr %104, align 8, !tbaa !30
%106 = getelementptr inbounds %struct.ib_event, ptr %3, i64 0, i32 1
store i32 %105, ptr %106, align 8, !tbaa !31
store ptr %22, ptr %3, align 8, !tbaa !32
%107 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 8, i32 1
%108 = load ptr, ptr %107, align 8, !tbaa !33
%109 = icmp eq ptr %108, null
br i1 %109, label %113, label %110
110: ; preds = %101
%111 = load i32, ptr %22, align 8, !tbaa !34
%112 = call i32 %108(ptr noundef nonnull %3, i32 noundef %111) #4
br label %113
113: ; preds = %81, %84, %101, %110, %89
%114 = phi i32 [ %82, %81 ], [ %85, %84 ], [ %85, %101 ], [ %85, %110 ], [ %85, %89 ]
%115 = load ptr, ptr %13, align 8, !tbaa !35
%116 = icmp eq ptr %115, null
br i1 %116, label %164, label %117
117: ; preds = %113
br i1 %61, label %141, label %118
118: ; preds = %117
%119 = call i32 @atomic_inc(ptr noundef nonnull @cm_disconnects) #4
%120 = load i32, ptr @IW_CM_EVENT_DISCONNECT, align 4, !tbaa !5
%121 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 6
store i32 %120, ptr %121, align 8, !tbaa !37
store i32 %60, ptr %2, align 8, !tbaa !39
%122 = getelementptr inbounds %struct.iw_cm_id, ptr %13, i64 0, i32 2
%123 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 3
%124 = load <2 x i32>, ptr %122, align 8, !tbaa !5
store <2 x i32> %124, ptr %123, align 8, !tbaa !5
%125 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 1
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %125, i8 0, i64 16, i1 false)
%126 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !5
%127 = load i32, ptr %27, align 4, !tbaa !15
%128 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 7, i32 2
%129 = load i32, ptr %128, align 4, !tbaa !40
%130 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 7, i32 1
%131 = load i32, ptr %130, align 4, !tbaa !41
%132 = getelementptr inbounds %struct.nes_qp, ptr %0, i64 0, i32 6
%133 = call i32 @atomic_read(ptr noundef nonnull %132) #4
%134 = call i32 (i32, ptr, ...) @nes_debug(i32 noundef %126, ptr noundef nonnull @.str.3, i32 noundef %127, i32 noundef %129, i32 noundef %131, ptr noundef nonnull %13, i32 noundef %133) #4
%135 = load ptr, ptr %13, align 8, !tbaa !35
%136 = call i32 %135(ptr noundef nonnull %13, ptr noundef nonnull %2) #4
%137 = icmp eq i32 %136, 0
br i1 %137, label %141, label %138
138: ; preds = %118
%139 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !5
%140 = call i32 (i32, ptr, ...) @nes_debug(i32 noundef %139, ptr noundef nonnull @.str.4, i32 noundef %136) #4
br label %141
141: ; preds = %118, %138, %117
%142 = icmp eq i32 %114, 0
br i1 %142, label %164, label %143
143: ; preds = %141
%144 = call i32 @atomic_inc(ptr noundef nonnull @cm_closes) #4
%145 = call i32 @nes_disconnect(ptr noundef nonnull %0, i32 noundef 1) #4
%146 = getelementptr inbounds %struct.iw_cm_id, ptr %13, i64 0, i32 4
store ptr %0, ptr %146, align 8, !tbaa !42
%147 = load i32, ptr @IW_CM_EVENT_CLOSE, align 4, !tbaa !5
%148 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 6
store i32 %147, ptr %148, align 8, !tbaa !37
store i32 0, ptr %2, align 8, !tbaa !39
%149 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 5
store ptr %0, ptr %149, align 8, !tbaa !43
%150 = getelementptr inbounds %struct.iw_cm_id, ptr %13, i64 0, i32 2
%151 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 3
%152 = load <2 x i32>, ptr %150, align 8, !tbaa !5
store <2 x i32> %152, ptr %151, align 8, !tbaa !5
%153 = getelementptr inbounds %struct.iw_cm_event, ptr %2, i64 0, i32 1
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %153, i8 0, i64 16, i1 false)
%154 = load ptr, ptr %13, align 8, !tbaa !35
%155 = call i32 %154(ptr noundef nonnull %13, ptr noundef nonnull %2) #4
%156 = icmp eq i32 %155, 0
br i1 %156, label %160, label %157
157: ; preds = %143
%158 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !5
%159 = call i32 (i32, ptr, ...) @nes_debug(i32 noundef %158, ptr noundef nonnull @.str.4, i32 noundef %155) #4
br label %160
160: ; preds = %157, %143
%161 = getelementptr inbounds %struct.iw_cm_id, ptr %13, i64 0, i32 1
%162 = load ptr, ptr %161, align 8, !tbaa !44
%163 = call i32 %162(ptr noundef nonnull %13) #4
br label %164
164: ; preds = %113, %160, %141, %15, %6
%165 = phi i32 [ -1, %15 ], [ -1, %6 ], [ 0, %141 ], [ 0, %160 ], [ 0, %113 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
ret i32 %165
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @nes_debug(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #2
declare ptr @to_nesvnic(i32 noundef) local_unnamed_addr #2
declare i32 @del_timer(ptr noundef) local_unnamed_addr #2
declare i32 @flush_wqes(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atomic_inc(ptr noundef) local_unnamed_addr #2
declare i32 @atomic_read(ptr noundef) local_unnamed_addr #2
declare i32 @nes_disconnect(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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !14, i64 112}
!10 = !{!"nes_qp", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 40, !6, i64 48, !12, i64 52, !13, i64 64, !6, i64 88, !11, i64 96, !6, i64 104, !14, i64 112, !6, i64 120}
!11 = !{!"long", !7, i64 0}
!12 = !{!"TYPE_6__", !6, i64 0, !6, i64 4, !6, i64 8}
!13 = !{!"TYPE_5__", !6, i64 0, !14, i64 8, !6, i64 16}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !6, i64 52}
!16 = !{!10, !6, i64 80}
!17 = !{!10, !11, i64 0}
!18 = !{!10, !11, i64 8}
!19 = !{!10, !11, i64 16}
!20 = !{!10, !11, i64 96}
!21 = !{!10, !6, i64 24}
!22 = !{!11, !11, i64 0}
!23 = !{!10, !11, i64 32}
!24 = !{!10, !11, i64 40}
!25 = !{!26, !6, i64 0}
!26 = !{!"nes_vnic", !6, i64 0}
!27 = !{!28, !6, i64 12}
!28 = !{!"ib_event", !29, i64 0, !6, i64 8, !6, i64 12}
!29 = !{!"TYPE_4__", !14, i64 0}
!30 = !{!10, !6, i64 88}
!31 = !{!28, !6, i64 8}
!32 = !{!28, !14, i64 0}
!33 = !{!10, !14, i64 72}
!34 = !{!10, !6, i64 64}
!35 = !{!36, !14, i64 0}
!36 = !{!"iw_cm_id", !14, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !14, i64 24}
!37 = !{!38, !6, i64 40}
!38 = !{!"iw_cm_event", !6, i64 0, !11, i64 8, !14, i64 16, !6, i64 24, !6, i64 28, !14, i64 32, !6, i64 40}
!39 = !{!38, !6, i64 0}
!40 = !{!10, !6, i64 60}
!41 = !{!10, !6, i64 56}
!42 = !{!36, !14, i64 24}
!43 = !{!38, !14, i64 32}
!44 = !{!36, !14, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/nes/extr_nes_cm.c_nes_cm_disconn_true.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/nes/extr_nes_cm.c_nes_cm_disconn_true.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.iw_cm_event = type { i32, i64, ptr, i32, i32, ptr, i32 }
%struct.ib_event = type { %struct.TYPE_4__, i32, i32 }
%struct.TYPE_4__ = type { ptr }
@NES_CQP_FLUSH_RQ = common local_unnamed_addr global i32 0, align 4
@NES_DBG_CM = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"disconnect_worker nesqp is NULL\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"QP%u disconnect_worker cmid is NULL\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Disconnecting QP%u\0A\00", align 1
@NES_AEQE_TCP_STATE_CLOSE_WAIT = common local_unnamed_addr global i64 0, align 8
@IB_QPS_RTS = common local_unnamed_addr global i64 0, align 8
@NES_AEQE_AEID_LLP_CONNECTION_RESET = common local_unnamed_addr global i64 0, align 8
@ECONNRESET = common local_unnamed_addr global i32 0, align 4
@NES_AEQE_TCP_STATE_CLOSED = common local_unnamed_addr global i64 0, align 8
@NES_AEQE_TCP_STATE_TIME_WAIT = common local_unnamed_addr global i64 0, align 8
@NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE = common local_unnamed_addr global i64 0, align 8
@NES_AEQE_IWARP_STATE_TERMINATE = common local_unnamed_addr global i64 0, align 8
@NES_CQP_FLUSH_SQ = common local_unnamed_addr global i32 0, align 4
@cm_disconnects = common global i32 0, align 4
@IW_CM_EVENT_DISCONNECT = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [100 x i8] c"Generating a CM Disconnect Event for QP%u, SQ Head = %u, SQ Tail = %u. cm_id = %p, refcount = %u.\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"OFA CM event_handler returned, ret=%d\0A\00", align 1
@cm_closes = common global i32 0, align 4
@IW_CM_EVENT_CLOSE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @nes_cm_disconn_true], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 1) i32 @nes_cm_disconn_true(ptr noundef %0) #0 {
%2 = alloca %struct.iw_cm_event, align 8
%3 = alloca %struct.ib_event, align 8
call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #4
%4 = load i32, ptr @NES_CQP_FLUSH_RQ, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
%5 = icmp eq ptr %0, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !6
%8 = tail call i32 (i32, ptr, ...) @nes_debug(i32 noundef %7, ptr noundef nonnull @.str) #4
br label %164
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %0, i64 104
%11 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %10, i64 noundef undef) #4
%12 = getelementptr inbounds i8, ptr %0, i64 112
%13 = load ptr, ptr %12, align 8, !tbaa !10
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %21
15: ; preds = %9
%16 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !6
%17 = getelementptr inbounds i8, ptr %0, i64 52
%18 = load i32, ptr %17, align 4, !tbaa !16
%19 = tail call i32 (i32, ptr, ...) @nes_debug(i32 noundef %16, ptr noundef nonnull @.str.1, i32 noundef %18) #4
%20 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #4
br label %164
21: ; preds = %9
%22 = getelementptr inbounds i8, ptr %0, i64 64
%23 = getelementptr inbounds i8, ptr %0, i64 80
%24 = load i32, ptr %23, align 8, !tbaa !17
%25 = tail call ptr @to_nesvnic(i32 noundef %24) #4
%26 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !6
%27 = getelementptr inbounds i8, ptr %0, i64 52
%28 = load i32, ptr %27, align 4, !tbaa !16
%29 = tail call i32 (i32, ptr, ...) @nes_debug(i32 noundef %26, ptr noundef nonnull @.str.2, i32 noundef %28) #4
%30 = load i64, ptr %0, align 8, !tbaa !18
%31 = getelementptr inbounds i8, ptr %0, i64 8
%32 = load i64, ptr %31, align 8, !tbaa !19
%33 = getelementptr inbounds i8, ptr %0, i64 16
%34 = load i64, ptr %33, align 8, !tbaa !20
%35 = getelementptr inbounds i8, ptr %0, i64 96
%36 = load i64, ptr %35, align 8, !tbaa !21
%37 = icmp eq i64 %36, 0
br i1 %37, label %45, label %38
38: ; preds = %21
store ptr null, ptr %12, align 8, !tbaa !10
%39 = getelementptr inbounds i8, ptr %0, i64 120
%40 = tail call i32 @del_timer(ptr noundef nonnull %39) #4
%41 = getelementptr inbounds i8, ptr %0, i64 24
%42 = load i32, ptr %41, align 8, !tbaa !22
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %59
44: ; preds = %38
store i32 1, ptr %41, align 8, !tbaa !22
br label %59
45: ; preds = %21
%46 = load i64, ptr @NES_AEQE_TCP_STATE_CLOSE_WAIT, align 8, !tbaa !23
%47 = icmp eq i64 %30, %46
%48 = load i64, ptr @NES_AEQE_AEID_LLP_CONNECTION_RESET, align 8
br i1 %47, label %54, label %49
49: ; preds = %45
%50 = load i64, ptr @IB_QPS_RTS, align 8, !tbaa !23
%51 = icmp eq i64 %32, %50
%52 = icmp eq i64 %34, %48
%53 = select i1 %51, i1 %52, i1 false
br i1 %53, label %54, label %59
54: ; preds = %49, %45
%55 = icmp eq i64 %34, %48
br i1 %55, label %56, label %59
56: ; preds = %54
%57 = load i32, ptr @ECONNRESET, align 4, !tbaa !6
%58 = sub nsw i32 0, %57
br label %59
59: ; preds = %49, %56, %54, %38, %44
%60 = phi i32 [ 0, %44 ], [ 0, %38 ], [ %58, %56 ], [ 0, %54 ], [ 0, %49 ]
%61 = phi i1 [ false, %44 ], [ false, %38 ], [ false, %56 ], [ false, %54 ], [ true, %49 ]
%62 = phi i32 [ 1, %44 ], [ 1, %38 ], [ 0, %56 ], [ 0, %54 ], [ 0, %49 ]
%63 = phi i1 [ false, %44 ], [ true, %38 ], [ true, %56 ], [ true, %54 ], [ true, %49 ]
%64 = load i64, ptr @NES_AEQE_TCP_STATE_CLOSED, align 8, !tbaa !23
%65 = icmp eq i64 %30, %64
%66 = load i64, ptr @NES_AEQE_TCP_STATE_TIME_WAIT, align 8
%67 = icmp eq i64 %30, %66
%68 = select i1 %65, i1 true, i1 %67
%69 = load i64, ptr @NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE, align 8
%70 = icmp eq i64 %34, %69
%71 = select i1 %68, i1 true, i1 %70
%72 = load i64, ptr @NES_AEQE_AEID_LLP_CONNECTION_RESET, align 8
%73 = icmp eq i64 %34, %72
%74 = select i1 %71, i1 true, i1 %73
br i1 %74, label %75, label %81
75: ; preds = %59
store ptr null, ptr %12, align 8, !tbaa !10
%76 = getelementptr inbounds i8, ptr %0, i64 24
%77 = load i32, ptr %76, align 8, !tbaa !22
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
store i32 1, ptr %76, align 8, !tbaa !22
%80 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #4
br label %84
81: ; preds = %59, %75
%82 = phi i32 [ 1, %75 ], [ %62, %59 ]
%83 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #4
br i1 %63, label %113, label %84
84: ; preds = %79, %81
%85 = phi i32 [ 1, %79 ], [ %82, %81 ]
%86 = getelementptr inbounds i8, ptr %0, i64 32
%87 = load i64, ptr %86, align 8, !tbaa !24
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %113
89: ; preds = %84
%90 = getelementptr inbounds i8, ptr %0, i64 40
%91 = load i64, ptr %90, align 8, !tbaa !25
%92 = load i64, ptr @NES_AEQE_IWARP_STATE_TERMINATE, align 8, !tbaa !23
%93 = icmp slt i64 %91, %92
%94 = load i32, ptr @NES_CQP_FLUSH_SQ, align 4
%95 = select i1 %93, i32 0, i32 %94
%96 = or i32 %95, %4
%97 = load i32, ptr %25, align 4, !tbaa !26
%98 = tail call i32 @flush_wqes(i32 noundef %97, ptr noundef nonnull %0, i32 noundef %96, i32 noundef 1) #4
%99 = load i64, ptr %35, align 8, !tbaa !21
%100 = icmp eq i64 %99, 0
br i1 %100, label %113, label %101
101: ; preds = %89
%102 = load i32, ptr %23, align 8, !tbaa !17
%103 = getelementptr inbounds i8, ptr %3, i64 12
store i32 %102, ptr %103, align 4, !tbaa !28
%104 = getelementptr inbounds i8, ptr %0, i64 88
%105 = load i32, ptr %104, align 8, !tbaa !31
%106 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %105, ptr %106, align 8, !tbaa !32
store ptr %22, ptr %3, align 8, !tbaa !33
%107 = getelementptr inbounds i8, ptr %0, i64 72
%108 = load ptr, ptr %107, align 8, !tbaa !34
%109 = icmp eq ptr %108, null
br i1 %109, label %113, label %110
110: ; preds = %101
%111 = load i32, ptr %22, align 8, !tbaa !35
%112 = call i32 %108(ptr noundef nonnull %3, i32 noundef %111) #4
br label %113
113: ; preds = %81, %84, %101, %110, %89
%114 = phi i32 [ %82, %81 ], [ %85, %84 ], [ %85, %101 ], [ %85, %110 ], [ %85, %89 ]
%115 = load ptr, ptr %13, align 8, !tbaa !36
%116 = icmp eq ptr %115, null
br i1 %116, label %164, label %117
117: ; preds = %113
br i1 %61, label %141, label %118
118: ; preds = %117
%119 = call i32 @atomic_inc(ptr noundef nonnull @cm_disconnects) #4
%120 = load i32, ptr @IW_CM_EVENT_DISCONNECT, align 4, !tbaa !6
%121 = getelementptr inbounds i8, ptr %2, i64 40
store i32 %120, ptr %121, align 8, !tbaa !38
store i32 %60, ptr %2, align 8, !tbaa !40
%122 = getelementptr inbounds i8, ptr %13, i64 16
%123 = getelementptr inbounds i8, ptr %2, i64 24
%124 = load <2 x i32>, ptr %122, align 8, !tbaa !6
store <2 x i32> %124, ptr %123, align 8, !tbaa !6
%125 = getelementptr inbounds i8, ptr %2, i64 8
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %125, i8 0, i64 16, i1 false)
%126 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !6
%127 = load i32, ptr %27, align 4, !tbaa !16
%128 = getelementptr inbounds i8, ptr %0, i64 60
%129 = load i32, ptr %128, align 4, !tbaa !41
%130 = getelementptr inbounds i8, ptr %0, i64 56
%131 = load i32, ptr %130, align 4, !tbaa !42
%132 = getelementptr inbounds i8, ptr %0, i64 48
%133 = call i32 @atomic_read(ptr noundef nonnull %132) #4
%134 = call i32 (i32, ptr, ...) @nes_debug(i32 noundef %126, ptr noundef nonnull @.str.3, i32 noundef %127, i32 noundef %129, i32 noundef %131, ptr noundef nonnull %13, i32 noundef %133) #4
%135 = load ptr, ptr %13, align 8, !tbaa !36
%136 = call i32 %135(ptr noundef nonnull %13, ptr noundef nonnull %2) #4
%137 = icmp eq i32 %136, 0
br i1 %137, label %141, label %138
138: ; preds = %118
%139 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !6
%140 = call i32 (i32, ptr, ...) @nes_debug(i32 noundef %139, ptr noundef nonnull @.str.4, i32 noundef %136) #4
br label %141
141: ; preds = %118, %138, %117
%142 = icmp eq i32 %114, 0
br i1 %142, label %164, label %143
143: ; preds = %141
%144 = call i32 @atomic_inc(ptr noundef nonnull @cm_closes) #4
%145 = call i32 @nes_disconnect(ptr noundef nonnull %0, i32 noundef 1) #4
%146 = getelementptr inbounds i8, ptr %13, i64 24
store ptr %0, ptr %146, align 8, !tbaa !43
%147 = load i32, ptr @IW_CM_EVENT_CLOSE, align 4, !tbaa !6
%148 = getelementptr inbounds i8, ptr %2, i64 40
store i32 %147, ptr %148, align 8, !tbaa !38
store i32 0, ptr %2, align 8, !tbaa !40
%149 = getelementptr inbounds i8, ptr %2, i64 32
store ptr %0, ptr %149, align 8, !tbaa !44
%150 = getelementptr inbounds i8, ptr %13, i64 16
%151 = getelementptr inbounds i8, ptr %2, i64 24
%152 = load <2 x i32>, ptr %150, align 8, !tbaa !6
store <2 x i32> %152, ptr %151, align 8, !tbaa !6
%153 = getelementptr inbounds i8, ptr %2, i64 8
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %153, i8 0, i64 16, i1 false)
%154 = load ptr, ptr %13, align 8, !tbaa !36
%155 = call i32 %154(ptr noundef nonnull %13, ptr noundef nonnull %2) #4
%156 = icmp eq i32 %155, 0
br i1 %156, label %160, label %157
157: ; preds = %143
%158 = load i32, ptr @NES_DBG_CM, align 4, !tbaa !6
%159 = call i32 (i32, ptr, ...) @nes_debug(i32 noundef %158, ptr noundef nonnull @.str.4, i32 noundef %155) #4
br label %160
160: ; preds = %157, %143
%161 = getelementptr inbounds i8, ptr %13, i64 8
%162 = load ptr, ptr %161, align 8, !tbaa !45
%163 = call i32 %162(ptr noundef nonnull %13) #4
br label %164
164: ; preds = %113, %160, %141, %15, %6
%165 = phi i32 [ -1, %15 ], [ -1, %6 ], [ 0, %141 ], [ 0, %160 ], [ 0, %113 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #4
ret i32 %165
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @nes_debug(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #2
declare ptr @to_nesvnic(i32 noundef) local_unnamed_addr #2
declare i32 @del_timer(ptr noundef) local_unnamed_addr #2
declare i32 @flush_wqes(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atomic_inc(ptr noundef) local_unnamed_addr #2
declare i32 @atomic_read(ptr noundef) local_unnamed_addr #2
declare i32 @nes_disconnect(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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !15, i64 112}
!11 = !{!"nes_qp", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !12, i64 32, !12, i64 40, !7, i64 48, !13, i64 52, !14, i64 64, !7, i64 88, !12, i64 96, !7, i64 104, !15, i64 112, !7, i64 120}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !7, i64 8}
!14 = !{!"TYPE_5__", !7, i64 0, !15, i64 8, !7, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!11, !7, i64 52}
!17 = !{!11, !7, i64 80}
!18 = !{!11, !12, i64 0}
!19 = !{!11, !12, i64 8}
!20 = !{!11, !12, i64 16}
!21 = !{!11, !12, i64 96}
!22 = !{!11, !7, i64 24}
!23 = !{!12, !12, i64 0}
!24 = !{!11, !12, i64 32}
!25 = !{!11, !12, i64 40}
!26 = !{!27, !7, i64 0}
!27 = !{!"nes_vnic", !7, i64 0}
!28 = !{!29, !7, i64 12}
!29 = !{!"ib_event", !30, i64 0, !7, i64 8, !7, i64 12}
!30 = !{!"TYPE_4__", !15, i64 0}
!31 = !{!11, !7, i64 88}
!32 = !{!29, !7, i64 8}
!33 = !{!29, !15, i64 0}
!34 = !{!11, !15, i64 72}
!35 = !{!11, !7, i64 64}
!36 = !{!37, !15, i64 0}
!37 = !{!"iw_cm_id", !15, i64 0, !15, i64 8, !7, i64 16, !7, i64 20, !15, i64 24}
!38 = !{!39, !7, i64 40}
!39 = !{!"iw_cm_event", !7, i64 0, !12, i64 8, !15, i64 16, !7, i64 24, !7, i64 28, !15, i64 32, !7, i64 40}
!40 = !{!39, !7, i64 0}
!41 = !{!11, !7, i64 60}
!42 = !{!11, !7, i64 56}
!43 = !{!37, !15, i64 24}
!44 = !{!39, !15, i64 32}
!45 = !{!37, !15, i64 8}
| fastsocket_kernel_drivers_infiniband_hw_nes_extr_nes_cm.c_nes_cm_disconn_true |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_main.c_b43_update_basic_rates.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_main.c_b43_update_basic_rates.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.ieee80211_supported_band = type { i32, ptr }
%struct.ieee80211_rate = type { i32, i32 }
@B43_SHM_SH_CCKDIRECT = dso_local local_unnamed_addr global i32 0, align 4
@B43_SHM_SH_CCKBASIC = dso_local local_unnamed_addr global i32 0, align 4
@B43_SHM_SH_OFDMDIRECT = dso_local local_unnamed_addr global i32 0, align 4
@B43_SHM_SH_OFDMBASIC = dso_local local_unnamed_addr global i32 0, align 4
@B43_SHM_SHARED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @b43_update_basic_rates], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @b43_update_basic_rates(ptr noundef %0, i32 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = load ptr, ptr %5, align 8, !tbaa !14
%7 = tail call i64 @b43_current_band(ptr noundef nonnull %3) #2
%8 = getelementptr inbounds ptr, ptr %6, i64 %7
%9 = load ptr, ptr %8, align 8, !tbaa !16
%10 = load i32, ptr %9, align 8, !tbaa !17
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %61
12: ; preds = %2
%13 = getelementptr inbounds %struct.ieee80211_supported_band, ptr %9, i64 0, i32 1
br label %14
14: ; preds = %12, %45
%15 = phi i64 [ 0, %12 ], [ %57, %45 ]
%16 = load ptr, ptr %13, align 8, !tbaa !20
%17 = getelementptr inbounds %struct.ieee80211_rate, ptr %16, i64 %15
%18 = load i32, ptr %17, align 4, !tbaa !21
%19 = tail call i64 @b43_is_cck_rate(i32 noundef %18) #2
%20 = icmp eq i64 %19, 0
%21 = load i32, ptr %17, align 4, !tbaa !21
br i1 %20, label %26, label %22
22: ; preds = %14
%23 = load i32, ptr @B43_SHM_SH_CCKDIRECT, align 4, !tbaa !23
%24 = load i32, ptr @B43_SHM_SH_CCKBASIC, align 4, !tbaa !23
%25 = tail call i32 @b43_plcp_get_ratecode_cck(i32 noundef %21) #2
br label %30
26: ; preds = %14
%27 = load i32, ptr @B43_SHM_SH_OFDMDIRECT, align 4, !tbaa !23
%28 = load i32, ptr @B43_SHM_SH_OFDMBASIC, align 4, !tbaa !23
%29 = tail call i32 @b43_plcp_get_ratecode_ofdm(i32 noundef %21) #2
br label %30
30: ; preds = %26, %22
%31 = phi i32 [ %24, %22 ], [ %28, %26 ]
%32 = phi i32 [ %23, %22 ], [ %27, %26 ]
%33 = phi i32 [ %25, %22 ], [ %29, %26 ]
%34 = getelementptr inbounds %struct.ieee80211_rate, ptr %16, i64 %15, i32 1
%35 = load i32, ptr %34, align 4, !tbaa !24
%36 = tail call ptr @ieee80211_get_response_rate(ptr noundef nonnull %9, i32 noundef %1, i32 noundef %35) #2
%37 = load i32, ptr %36, align 4, !tbaa !21
%38 = tail call i64 @b43_is_cck_rate(i32 noundef %37) #2
%39 = icmp eq i64 %38, 0
%40 = load i32, ptr %36, align 4, !tbaa !21
br i1 %39, label %43, label %41
41: ; preds = %30
%42 = tail call i32 @b43_plcp_get_ratecode_cck(i32 noundef %40) #2
br label %45
43: ; preds = %30
%44 = tail call i32 @b43_plcp_get_ratecode_ofdm(i32 noundef %40) #2
br label %45
45: ; preds = %43, %41
%46 = phi i32 [ %42, %41 ], [ %44, %43 ]
%47 = load i32, ptr @B43_SHM_SHARED, align 4, !tbaa !23
%48 = shl i32 %46, 1
%49 = and i32 %48, 30
%50 = add nsw i32 %49, %32
%51 = tail call i32 @b43_shm_read16(ptr noundef nonnull %0, i32 noundef %47, i32 noundef %50) #2
%52 = load i32, ptr @B43_SHM_SHARED, align 4, !tbaa !23
%53 = shl i32 %33, 1
%54 = and i32 %53, 30
%55 = add nsw i32 %54, %31
%56 = tail call i32 @b43_shm_write16(ptr noundef nonnull %0, i32 noundef %52, i32 noundef %55, i32 noundef %51) #2
%57 = add nuw nsw i64 %15, 1
%58 = load i32, ptr %9, align 8, !tbaa !17
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %57, %59
br i1 %60, label %14, label %61, !llvm.loop !25
61: ; preds = %45, %2
ret void
}
declare i64 @b43_current_band(ptr noundef) local_unnamed_addr #1
declare i64 @b43_is_cck_rate(i32 noundef) local_unnamed_addr #1
declare i32 @b43_plcp_get_ratecode_cck(i32 noundef) local_unnamed_addr #1
declare i32 @b43_plcp_get_ratecode_ofdm(i32 noundef) local_unnamed_addr #1
declare ptr @ieee80211_get_response_rate(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_shm_read16(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_shm_write16(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, !7, i64 0}
!6 = !{!"b43_wldev", !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 = !{!"TYPE_6__", !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_5__", !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_4__", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"ieee80211_supported_band", !19, i64 0, !7, i64 8}
!19 = !{!"int", !8, i64 0}
!20 = !{!18, !7, i64 8}
!21 = !{!22, !19, i64 0}
!22 = !{!"ieee80211_rate", !19, i64 0, !19, i64 4}
!23 = !{!19, !19, i64 0}
!24 = !{!22, !19, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_main.c_b43_update_basic_rates.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43/extr_main.c_b43_update_basic_rates.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ieee80211_rate = type { i32, i32 }
@B43_SHM_SH_CCKDIRECT = common local_unnamed_addr global i32 0, align 4
@B43_SHM_SH_CCKBASIC = common local_unnamed_addr global i32 0, align 4
@B43_SHM_SH_OFDMDIRECT = common local_unnamed_addr global i32 0, align 4
@B43_SHM_SH_OFDMBASIC = common local_unnamed_addr global i32 0, align 4
@B43_SHM_SHARED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @b43_update_basic_rates], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @b43_update_basic_rates(ptr noundef %0, i32 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load ptr, ptr %4, align 8, !tbaa !13
%6 = load ptr, ptr %5, align 8, !tbaa !15
%7 = tail call i64 @b43_current_band(ptr noundef nonnull %3) #2
%8 = getelementptr inbounds ptr, ptr %6, i64 %7
%9 = load ptr, ptr %8, align 8, !tbaa !17
%10 = load i32, ptr %9, align 8, !tbaa !18
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %61
12: ; preds = %2
%13 = getelementptr inbounds i8, ptr %9, i64 8
br label %14
14: ; preds = %12, %45
%15 = phi i64 [ 0, %12 ], [ %57, %45 ]
%16 = load ptr, ptr %13, align 8, !tbaa !21
%17 = getelementptr inbounds %struct.ieee80211_rate, ptr %16, i64 %15
%18 = load i32, ptr %17, align 4, !tbaa !22
%19 = tail call i64 @b43_is_cck_rate(i32 noundef %18) #2
%20 = icmp eq i64 %19, 0
%21 = load i32, ptr %17, align 4, !tbaa !22
br i1 %20, label %26, label %22
22: ; preds = %14
%23 = load i32, ptr @B43_SHM_SH_CCKDIRECT, align 4, !tbaa !24
%24 = load i32, ptr @B43_SHM_SH_CCKBASIC, align 4, !tbaa !24
%25 = tail call i32 @b43_plcp_get_ratecode_cck(i32 noundef %21) #2
br label %30
26: ; preds = %14
%27 = load i32, ptr @B43_SHM_SH_OFDMDIRECT, align 4, !tbaa !24
%28 = load i32, ptr @B43_SHM_SH_OFDMBASIC, align 4, !tbaa !24
%29 = tail call i32 @b43_plcp_get_ratecode_ofdm(i32 noundef %21) #2
br label %30
30: ; preds = %26, %22
%31 = phi i32 [ %24, %22 ], [ %28, %26 ]
%32 = phi i32 [ %23, %22 ], [ %27, %26 ]
%33 = phi i32 [ %25, %22 ], [ %29, %26 ]
%34 = getelementptr inbounds i8, ptr %17, i64 4
%35 = load i32, ptr %34, align 4, !tbaa !25
%36 = tail call ptr @ieee80211_get_response_rate(ptr noundef nonnull %9, i32 noundef %1, i32 noundef %35) #2
%37 = load i32, ptr %36, align 4, !tbaa !22
%38 = tail call i64 @b43_is_cck_rate(i32 noundef %37) #2
%39 = icmp eq i64 %38, 0
%40 = load i32, ptr %36, align 4, !tbaa !22
br i1 %39, label %43, label %41
41: ; preds = %30
%42 = tail call i32 @b43_plcp_get_ratecode_cck(i32 noundef %40) #2
br label %45
43: ; preds = %30
%44 = tail call i32 @b43_plcp_get_ratecode_ofdm(i32 noundef %40) #2
br label %45
45: ; preds = %43, %41
%46 = phi i32 [ %42, %41 ], [ %44, %43 ]
%47 = load i32, ptr @B43_SHM_SHARED, align 4, !tbaa !24
%48 = shl i32 %46, 1
%49 = and i32 %48, 30
%50 = add nsw i32 %49, %32
%51 = tail call i32 @b43_shm_read16(ptr noundef nonnull %0, i32 noundef %47, i32 noundef %50) #2
%52 = load i32, ptr @B43_SHM_SHARED, align 4, !tbaa !24
%53 = shl i32 %33, 1
%54 = and i32 %53, 30
%55 = add nsw i32 %54, %31
%56 = tail call i32 @b43_shm_write16(ptr noundef nonnull %0, i32 noundef %52, i32 noundef %55, i32 noundef %51) #2
%57 = add nuw nsw i64 %15, 1
%58 = load i32, ptr %9, align 8, !tbaa !18
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %57, %59
br i1 %60, label %14, label %61, !llvm.loop !26
61: ; preds = %45, %2
ret void
}
declare i64 @b43_current_band(ptr noundef) local_unnamed_addr #1
declare i64 @b43_is_cck_rate(i32 noundef) local_unnamed_addr #1
declare i32 @b43_plcp_get_ratecode_cck(i32 noundef) local_unnamed_addr #1
declare i32 @b43_plcp_get_ratecode_ofdm(i32 noundef) local_unnamed_addr #1
declare ptr @ieee80211_get_response_rate(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_shm_read16(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43_shm_write16(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, !8, i64 0}
!7 = !{!"b43_wldev", !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 = !{!"TYPE_6__", !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_5__", !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_4__", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !20, i64 0}
!19 = !{!"ieee80211_supported_band", !20, i64 0, !8, i64 8}
!20 = !{!"int", !9, i64 0}
!21 = !{!19, !8, i64 8}
!22 = !{!23, !20, i64 0}
!23 = !{!"ieee80211_rate", !20, i64 0, !20, i64 4}
!24 = !{!20, !20, i64 0}
!25 = !{!23, !20, i64 4}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
| linux_drivers_net_wireless_broadcom_b43_extr_main.c_b43_update_basic_rates |
; ModuleID = 'AnghaBench/freebsd/contrib/libevent/extr_bufferevent.c_bufferevent_generic_read_timeout_cb.c'
source_filename = "AnghaBench/freebsd/contrib/libevent/extr_bufferevent.c_bufferevent_generic_read_timeout_cb.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"
@EV_READ = dso_local local_unnamed_addr global i32 0, align 4
@BEV_EVENT_TIMEOUT = dso_local local_unnamed_addr global i32 0, align 4
@BEV_EVENT_READING = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bufferevent_generic_read_timeout_cb], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bufferevent_generic_read_timeout_cb(i32 %0, i16 signext %1, ptr noundef %2) #0 {
%4 = tail call i32 @bufferevent_incref_and_lock_(ptr noundef %2) #2
%5 = load i32, ptr @EV_READ, align 4, !tbaa !5
%6 = tail call i32 @bufferevent_disable(ptr noundef %2, i32 noundef %5) #2
%7 = load i32, ptr @BEV_EVENT_TIMEOUT, align 4, !tbaa !5
%8 = load i32, ptr @BEV_EVENT_READING, align 4, !tbaa !5
%9 = or i32 %8, %7
%10 = tail call i32 @bufferevent_run_eventcb_(ptr noundef %2, i32 noundef %9, i32 noundef 0) #2
%11 = tail call i32 @bufferevent_decref_and_unlock_(ptr noundef %2) #2
ret void
}
declare i32 @bufferevent_incref_and_lock_(ptr noundef) local_unnamed_addr #1
declare i32 @bufferevent_disable(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bufferevent_run_eventcb_(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bufferevent_decref_and_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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libevent/extr_bufferevent.c_bufferevent_generic_read_timeout_cb.c'
source_filename = "AnghaBench/freebsd/contrib/libevent/extr_bufferevent.c_bufferevent_generic_read_timeout_cb.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EV_READ = common local_unnamed_addr global i32 0, align 4
@BEV_EVENT_TIMEOUT = common local_unnamed_addr global i32 0, align 4
@BEV_EVENT_READING = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bufferevent_generic_read_timeout_cb], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bufferevent_generic_read_timeout_cb(i32 %0, i16 signext %1, ptr noundef %2) #0 {
%4 = tail call i32 @bufferevent_incref_and_lock_(ptr noundef %2) #2
%5 = load i32, ptr @EV_READ, align 4, !tbaa !6
%6 = tail call i32 @bufferevent_disable(ptr noundef %2, i32 noundef %5) #2
%7 = load i32, ptr @BEV_EVENT_TIMEOUT, align 4, !tbaa !6
%8 = load i32, ptr @BEV_EVENT_READING, align 4, !tbaa !6
%9 = or i32 %8, %7
%10 = tail call i32 @bufferevent_run_eventcb_(ptr noundef %2, i32 noundef %9, i32 noundef 0) #2
%11 = tail call i32 @bufferevent_decref_and_unlock_(ptr noundef %2) #2
ret void
}
declare i32 @bufferevent_incref_and_lock_(ptr noundef) local_unnamed_addr #1
declare i32 @bufferevent_disable(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bufferevent_run_eventcb_(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bufferevent_decref_and_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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_libevent_extr_bufferevent.c_bufferevent_generic_read_timeout_cb |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/sysv/extr_inode.c_sysv_statfs.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/sysv/extr_inode.c_sysv_statfs.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.super_block = type { i32, i32, ptr }
%struct.kstatfs = type { %struct.TYPE_4__, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.TYPE_4__ = type { ptr }
%struct.sysv_sb_info = type { i32, i32 }
@SYSV_NAMELEN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sysv_statfs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sysv_statfs(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = tail call ptr @SYSV_SB(ptr noundef %3) #2
%5 = getelementptr inbounds %struct.super_block, ptr %3, i64 0, i32 2
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = load i32, ptr %6, align 4, !tbaa !13
%8 = tail call i32 @huge_encode_dev(i32 noundef %7) #2
%9 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 7
%10 = load <2 x i32>, ptr %3, align 8, !tbaa !15
store <2 x i32> %10, ptr %9, align 8, !tbaa !15
%11 = getelementptr inbounds %struct.sysv_sb_info, ptr %4, i64 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !16
%13 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 6
store i32 %12, ptr %13, align 4, !tbaa !18
%14 = tail call i32 @sysv_count_free_blocks(ptr noundef nonnull %3) #2
%15 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 4
store i32 %14, ptr %15, align 4, !tbaa !21
%16 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 5
store i32 %14, ptr %16, align 8, !tbaa !22
%17 = load i32, ptr %4, align 4, !tbaa !23
%18 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 3
store i32 %17, ptr %18, align 8, !tbaa !24
%19 = tail call i32 @sysv_count_free_inodes(ptr noundef nonnull %3) #2
%20 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 2
store i32 %19, ptr %20, align 4, !tbaa !25
%21 = load i32, ptr @SYSV_NAMELEN, align 4, !tbaa !15
%22 = getelementptr inbounds %struct.kstatfs, ptr %1, i64 0, i32 1
store i32 %21, ptr %22, align 8, !tbaa !26
%23 = sext i32 %8 to i64
%24 = inttoptr i64 %23 to ptr
%25 = load ptr, ptr %1, align 8, !tbaa !27
store ptr %24, ptr %25, align 8, !tbaa !28
ret i32 0
}
declare ptr @SYSV_SB(ptr noundef) local_unnamed_addr #1
declare i32 @huge_encode_dev(i32 noundef) local_unnamed_addr #1
declare i32 @sysv_count_free_blocks(ptr noundef) local_unnamed_addr #1
declare i32 @sysv_count_free_inodes(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 = !{!"dentry", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"super_block", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_3__", !12, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !12, i64 4}
!17 = !{!"sysv_sb_info", !12, i64 0, !12, i64 4}
!18 = !{!19, !12, i64 28}
!19 = !{!"kstatfs", !20, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!20 = !{!"TYPE_4__", !7, i64 0}
!21 = !{!19, !12, i64 20}
!22 = !{!19, !12, i64 24}
!23 = !{!17, !12, i64 0}
!24 = !{!19, !12, i64 16}
!25 = !{!19, !12, i64 12}
!26 = !{!19, !12, i64 8}
!27 = !{!19, !7, i64 0}
!28 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/sysv/extr_inode.c_sysv_statfs.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/sysv/extr_inode.c_sysv_statfs.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SYSV_NAMELEN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sysv_statfs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @sysv_statfs(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = tail call ptr @SYSV_SB(ptr noundef %3) #2
%5 = getelementptr inbounds i8, ptr %3, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load i32, ptr %6, align 4, !tbaa !14
%8 = tail call i32 @huge_encode_dev(i32 noundef %7) #2
%9 = getelementptr inbounds i8, ptr %1, i64 32
%10 = load <2 x i32>, ptr %3, align 8, !tbaa !16
store <2 x i32> %10, ptr %9, align 8, !tbaa !16
%11 = getelementptr inbounds i8, ptr %4, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !17
%13 = getelementptr inbounds i8, ptr %1, i64 28
store i32 %12, ptr %13, align 4, !tbaa !19
%14 = tail call i32 @sysv_count_free_blocks(ptr noundef nonnull %3) #2
%15 = getelementptr inbounds i8, ptr %1, i64 20
store i32 %14, ptr %15, align 4, !tbaa !22
%16 = getelementptr inbounds i8, ptr %1, i64 24
store i32 %14, ptr %16, align 8, !tbaa !23
%17 = load i32, ptr %4, align 4, !tbaa !24
%18 = getelementptr inbounds i8, ptr %1, i64 16
store i32 %17, ptr %18, align 8, !tbaa !25
%19 = tail call i32 @sysv_count_free_inodes(ptr noundef nonnull %3) #2
%20 = getelementptr inbounds i8, ptr %1, i64 12
store i32 %19, ptr %20, align 4, !tbaa !26
%21 = load i32, ptr @SYSV_NAMELEN, align 4, !tbaa !16
%22 = getelementptr inbounds i8, ptr %1, i64 8
store i32 %21, ptr %22, align 8, !tbaa !27
%23 = sext i32 %8 to i64
%24 = inttoptr i64 %23 to ptr
%25 = load ptr, ptr %1, align 8, !tbaa !28
store ptr %24, ptr %25, align 8, !tbaa !29
ret i32 0
}
declare ptr @SYSV_SB(ptr noundef) local_unnamed_addr #1
declare i32 @huge_encode_dev(i32 noundef) local_unnamed_addr #1
declare i32 @sysv_count_free_blocks(ptr noundef) local_unnamed_addr #1
declare i32 @sysv_count_free_inodes(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 = !{!"dentry", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"super_block", !13, i64 0, !13, i64 4, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_3__", !13, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !13, i64 4}
!18 = !{!"sysv_sb_info", !13, i64 0, !13, i64 4}
!19 = !{!20, !13, i64 28}
!20 = !{!"kstatfs", !21, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36}
!21 = !{!"TYPE_4__", !8, i64 0}
!22 = !{!20, !13, i64 20}
!23 = !{!20, !13, i64 24}
!24 = !{!18, !13, i64 0}
!25 = !{!20, !13, i64 16}
!26 = !{!20, !13, i64 12}
!27 = !{!20, !13, i64 8}
!28 = !{!20, !8, i64 0}
!29 = !{!8, !8, i64 0}
| fastsocket_kernel_fs_sysv_extr_inode.c_sysv_statfs |
; ModuleID = 'AnghaBench/linux/drivers/s390/net/extr_qeth_core_main.c_qeth_send_simple_setassparms_prot.c'
source_filename = "AnghaBench/linux/drivers/s390/net/extr_qeth_core_main.c_qeth_send_simple_setassparms_prot.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"
@flags_32bit = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"simassp%i\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@qeth_setassparms_cb = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @qeth_send_simple_setassparms_prot(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef readonly %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = icmp eq ptr %3, null
br i1 %6, label %10, label %7
7: ; preds = %5
%8 = load i32, ptr @flags_32bit, align 4, !tbaa !5
%9 = tail call i32 @SETASS_DATA_SIZEOF(i32 noundef %8) #2
br label %10
10: ; preds = %5, %7
%11 = phi i32 [ %9, %7 ], [ 0, %5 ]
%12 = tail call i32 @QETH_CARD_TEXT_(ptr noundef %0, i32 noundef 4, ptr noundef nonnull @.str, i32 noundef %4) #2
%13 = tail call ptr @qeth_get_setassparms_cmd(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %11, i32 noundef %4) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%17 = sub nsw i32 0, %16
br label %25
18: ; preds = %10
br i1 %6, label %22, label %19
19: ; preds = %18
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = tail call ptr @__ipa_cmd(ptr noundef nonnull %13) #2
store i32 %20, ptr %21, align 4, !tbaa !9
br label %22
22: ; preds = %19, %18
%23 = load i32, ptr @qeth_setassparms_cb, align 4, !tbaa !5
%24 = tail call i32 @qeth_send_ipa_cmd(ptr noundef %0, ptr noundef nonnull %13, i32 noundef %23, ptr noundef null) #2
br label %25
25: ; preds = %22, %15
%26 = phi i32 [ %24, %22 ], [ %17, %15 ]
ret i32 %26
}
declare i32 @SETASS_DATA_SIZEOF(i32 noundef) local_unnamed_addr #1
declare i32 @QETH_CARD_TEXT_(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @qeth_get_setassparms_cmd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @__ipa_cmd(ptr noundef) local_unnamed_addr #1
declare i32 @qeth_send_ipa_cmd(ptr noundef, ptr noundef, 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, !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_8__", !11, i64 0}
!11 = !{!"TYPE_7__", !12, i64 0}
!12 = !{!"TYPE_6__", !13, i64 0}
!13 = !{!"TYPE_5__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/s390/net/extr_qeth_core_main.c_qeth_send_simple_setassparms_prot.c'
source_filename = "AnghaBench/linux/drivers/s390/net/extr_qeth_core_main.c_qeth_send_simple_setassparms_prot.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@flags_32bit = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"simassp%i\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@qeth_setassparms_cb = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @qeth_send_simple_setassparms_prot(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef readonly %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = icmp eq ptr %3, null
br i1 %6, label %10, label %7
7: ; preds = %5
%8 = load i32, ptr @flags_32bit, align 4, !tbaa !6
%9 = tail call i32 @SETASS_DATA_SIZEOF(i32 noundef %8) #2
br label %10
10: ; preds = %5, %7
%11 = phi i32 [ %9, %7 ], [ 0, %5 ]
%12 = tail call i32 @QETH_CARD_TEXT_(ptr noundef %0, i32 noundef 4, ptr noundef nonnull @.str, i32 noundef %4) #2
%13 = tail call ptr @qeth_get_setassparms_cmd(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %11, i32 noundef %4) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%17 = sub nsw i32 0, %16
br label %25
18: ; preds = %10
br i1 %6, label %22, label %19
19: ; preds = %18
%20 = load i32, ptr %3, align 4, !tbaa !6
%21 = tail call ptr @__ipa_cmd(ptr noundef nonnull %13) #2
store i32 %20, ptr %21, align 4, !tbaa !10
br label %22
22: ; preds = %19, %18
%23 = load i32, ptr @qeth_setassparms_cb, align 4, !tbaa !6
%24 = tail call i32 @qeth_send_ipa_cmd(ptr noundef %0, ptr noundef nonnull %13, i32 noundef %23, ptr noundef null) #2
br label %25
25: ; preds = %22, %15
%26 = phi i32 [ %24, %22 ], [ %17, %15 ]
ret i32 %26
}
declare i32 @SETASS_DATA_SIZEOF(i32 noundef) local_unnamed_addr #1
declare i32 @QETH_CARD_TEXT_(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @qeth_get_setassparms_cmd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @__ipa_cmd(ptr noundef) local_unnamed_addr #1
declare i32 @qeth_send_ipa_cmd(ptr noundef, ptr noundef, 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, !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_8__", !12, i64 0}
!12 = !{!"TYPE_7__", !13, i64 0}
!13 = !{!"TYPE_6__", !14, i64 0}
!14 = !{!"TYPE_5__", !7, i64 0}
| linux_drivers_s390_net_extr_qeth_core_main.c_qeth_send_simple_setassparms_prot |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/8390/extr_8390.c_ei_close.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/8390/extr_8390.c_ei_close.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 i32 @ei_close(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @__ei_close(ptr noundef %0) #2
ret i32 %2
}
declare i32 @__ei_close(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/linux/drivers/net/ethernet/8390/extr_8390.c_ei_close.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/8390/extr_8390.c_ei_close.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 i32 @ei_close(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @__ei_close(ptr noundef %0) #2
ret i32 %2
}
declare i32 @__ei_close(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)"}
| linux_drivers_net_ethernet_8390_extr_8390.c_ei_close |
; ModuleID = 'AnghaBench/reactos/dll/directx/wine/dplayx/extr_dplayx_global.c_DPLAYX_SizeOfLobbyDataA.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/dplayx/extr_dplayx_global.c_DPLAYX_SizeOfLobbyDataA.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_15__ = type { i64, ptr, ptr }
%struct.TYPE_11__ = type { %struct.TYPE_10__, %struct.TYPE_9__ }
%struct.TYPE_10__ = type { i64 }
%struct.TYPE_9__ = type { i64 }
%struct.TYPE_14__ = type { %struct.TYPE_13__, %struct.TYPE_12__ }
%struct.TYPE_13__ = type { i64 }
%struct.TYPE_12__ = type { i64 }
@.str = private unnamed_addr constant [16 x i8] c"lpConn is NULL\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @DPLAYX_SizeOfLobbyDataA], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @DPLAYX_SizeOfLobbyDataA(ptr noundef readonly %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @ERR(ptr noundef nonnull @.str) #2
br label %59
5: ; preds = %1
%6 = getelementptr inbounds %struct.TYPE_15__, ptr %0, i64 0, i32 2
%7 = load ptr, ptr %6, align 8, !tbaa !5
%8 = icmp eq ptr %7, null
br i1 %8, label %28, label %9
9: ; preds = %5
%10 = getelementptr inbounds %struct.TYPE_11__, ptr %7, i64 0, i32 1
%11 = load i64, ptr %10, align 8, !tbaa !11
%12 = icmp eq i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %9
%14 = tail call i64 @strlen(i64 noundef %11) #2
%15 = trunc i64 %14 to i32
%16 = add i32 %15, 29
%17 = load ptr, ptr %6, align 8, !tbaa !5
br label %18
18: ; preds = %13, %9
%19 = phi ptr [ %17, %13 ], [ %7, %9 ]
%20 = phi i32 [ %16, %13 ], [ 28, %9 ]
%21 = load i64, ptr %19, align 8, !tbaa !15
%22 = icmp eq i64 %21, 0
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = tail call i64 @strlen(i64 noundef %21) #2
%25 = trunc i64 %24 to i32
%26 = add i32 %20, 1
%27 = add i32 %26, %25
br label %28
28: ; preds = %18, %23, %5
%29 = phi i32 [ %27, %23 ], [ %20, %18 ], [ 24, %5 ]
%30 = getelementptr inbounds %struct.TYPE_15__, ptr %0, i64 0, i32 1
%31 = load ptr, ptr %30, align 8, !tbaa !16
%32 = icmp eq ptr %31, null
br i1 %32, label %54, label %33
33: ; preds = %28
%34 = add i32 %29, 4
%35 = getelementptr inbounds %struct.TYPE_14__, ptr %31, i64 0, i32 1
%36 = load i64, ptr %35, align 8, !tbaa !17
%37 = icmp eq i64 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %33
%39 = tail call i64 @strlen(i64 noundef %36) #2
%40 = trunc i64 %39 to i32
%41 = add i32 %29, 5
%42 = add i32 %41, %40
%43 = load ptr, ptr %30, align 8, !tbaa !16
br label %44
44: ; preds = %38, %33
%45 = phi ptr [ %43, %38 ], [ %31, %33 ]
%46 = phi i32 [ %42, %38 ], [ %34, %33 ]
%47 = load i64, ptr %45, align 8, !tbaa !21
%48 = icmp eq i64 %47, 0
br i1 %48, label %54, label %49
49: ; preds = %44
%50 = tail call i64 @strlen(i64 noundef %47) #2
%51 = trunc i64 %50 to i32
%52 = add i32 %46, 1
%53 = add i32 %52, %51
br label %54
54: ; preds = %44, %49, %28
%55 = phi i32 [ %53, %49 ], [ %46, %44 ], [ %29, %28 ]
%56 = load i64, ptr %0, align 8, !tbaa !22
%57 = trunc i64 %56 to i32
%58 = add i32 %55, %57
br label %59
59: ; preds = %54, %3
%60 = phi i32 [ 0, %3 ], [ %58, %54 ]
ret i32 %60
}
declare i32 @ERR(ptr noundef) local_unnamed_addr #1
declare i64 @strlen(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, !10, i64 16}
!6 = !{!"TYPE_15__", !7, i64 0, !10, 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 = !{!12, !7, i64 8}
!12 = !{!"TYPE_11__", !13, i64 0, !14, i64 8}
!13 = !{!"TYPE_10__", !7, i64 0}
!14 = !{!"TYPE_9__", !7, i64 0}
!15 = !{!12, !7, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!18, !7, i64 8}
!18 = !{!"TYPE_14__", !19, i64 0, !20, i64 8}
!19 = !{!"TYPE_13__", !7, i64 0}
!20 = !{!"TYPE_12__", !7, i64 0}
!21 = !{!18, !7, i64 0}
!22 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/directx/wine/dplayx/extr_dplayx_global.c_DPLAYX_SizeOfLobbyDataA.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/dplayx/extr_dplayx_global.c_DPLAYX_SizeOfLobbyDataA.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 [16 x i8] c"lpConn is NULL\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @DPLAYX_SizeOfLobbyDataA], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @DPLAYX_SizeOfLobbyDataA(ptr noundef readonly %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @ERR(ptr noundef nonnull @.str) #2
br label %59
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = load ptr, ptr %6, align 8, !tbaa !6
%8 = icmp eq ptr %7, null
br i1 %8, label %28, label %9
9: ; preds = %5
%10 = getelementptr inbounds i8, ptr %7, i64 8
%11 = load i64, ptr %10, align 8, !tbaa !12
%12 = icmp eq i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %9
%14 = tail call i64 @strlen(i64 noundef %11) #2
%15 = trunc i64 %14 to i32
%16 = add i32 %15, 29
%17 = load ptr, ptr %6, align 8, !tbaa !6
br label %18
18: ; preds = %13, %9
%19 = phi ptr [ %17, %13 ], [ %7, %9 ]
%20 = phi i32 [ %16, %13 ], [ 28, %9 ]
%21 = load i64, ptr %19, align 8, !tbaa !16
%22 = icmp eq i64 %21, 0
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = tail call i64 @strlen(i64 noundef %21) #2
%25 = trunc i64 %24 to i32
%26 = add i32 %20, 1
%27 = add i32 %26, %25
br label %28
28: ; preds = %18, %23, %5
%29 = phi i32 [ %27, %23 ], [ %20, %18 ], [ 24, %5 ]
%30 = getelementptr inbounds i8, ptr %0, i64 8
%31 = load ptr, ptr %30, align 8, !tbaa !17
%32 = icmp eq ptr %31, null
br i1 %32, label %54, label %33
33: ; preds = %28
%34 = add i32 %29, 4
%35 = getelementptr inbounds i8, ptr %31, i64 8
%36 = load i64, ptr %35, align 8, !tbaa !18
%37 = icmp eq i64 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %33
%39 = tail call i64 @strlen(i64 noundef %36) #2
%40 = trunc i64 %39 to i32
%41 = add i32 %29, 5
%42 = add i32 %41, %40
%43 = load ptr, ptr %30, align 8, !tbaa !17
br label %44
44: ; preds = %38, %33
%45 = phi ptr [ %43, %38 ], [ %31, %33 ]
%46 = phi i32 [ %42, %38 ], [ %34, %33 ]
%47 = load i64, ptr %45, align 8, !tbaa !22
%48 = icmp eq i64 %47, 0
br i1 %48, label %54, label %49
49: ; preds = %44
%50 = tail call i64 @strlen(i64 noundef %47) #2
%51 = trunc i64 %50 to i32
%52 = add i32 %46, 1
%53 = add i32 %52, %51
br label %54
54: ; preds = %44, %49, %28
%55 = phi i32 [ %53, %49 ], [ %46, %44 ], [ %29, %28 ]
%56 = load i64, ptr %0, align 8, !tbaa !23
%57 = trunc i64 %56 to i32
%58 = add i32 %55, %57
br label %59
59: ; preds = %54, %3
%60 = phi i32 [ 0, %3 ], [ %58, %54 ]
ret i32 %60
}
declare i32 @ERR(ptr noundef) local_unnamed_addr #1
declare i64 @strlen(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, !11, i64 16}
!7 = !{!"TYPE_15__", !8, i64 0, !11, 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 = !{!13, !8, i64 8}
!13 = !{!"TYPE_11__", !14, i64 0, !15, i64 8}
!14 = !{!"TYPE_10__", !8, i64 0}
!15 = !{!"TYPE_9__", !8, i64 0}
!16 = !{!13, !8, i64 0}
!17 = !{!7, !11, i64 8}
!18 = !{!19, !8, i64 8}
!19 = !{!"TYPE_14__", !20, i64 0, !21, i64 8}
!20 = !{!"TYPE_13__", !8, i64 0}
!21 = !{!"TYPE_12__", !8, i64 0}
!22 = !{!19, !8, i64 0}
!23 = !{!7, !8, i64 0}
| reactos_dll_directx_wine_dplayx_extr_dplayx_global.c_DPLAYX_SizeOfLobbyDataA |
; ModuleID = 'AnghaBench/postgres/src/common/extr_saslprep.c_pg_utf8_string_len.c'
source_filename = "AnghaBench/postgres/src/common/extr_saslprep.c_pg_utf8_string_len.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 @pg_utf8_string_len], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pg_utf8_string_len(ptr noundef %0) #0 {
%2 = load i8, ptr %0, align 1, !tbaa !5
%3 = icmp eq i8 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %1, %10
%5 = phi i32 [ %13, %10 ], [ 0, %1 ]
%6 = phi ptr [ %12, %10 ], [ %0, %1 ]
%7 = tail call i32 @pg_utf_mblen(ptr noundef nonnull %6) #2
%8 = tail call i32 @pg_utf8_islegal(ptr noundef nonnull %6, i32 noundef %7) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %16, label %10
10: ; preds = %4
%11 = sext i32 %7 to i64
%12 = getelementptr inbounds i8, ptr %6, i64 %11
%13 = add nuw nsw i32 %5, 1
%14 = load i8, ptr %12, align 1, !tbaa !5
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %4, !llvm.loop !8
16: ; preds = %4, %10, %1
%17 = phi i32 [ 0, %1 ], [ %13, %10 ], [ -1, %4 ]
ret i32 %17
}
declare i32 @pg_utf_mblen(ptr noundef) local_unnamed_addr #1
declare i32 @pg_utf8_islegal(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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/postgres/src/common/extr_saslprep.c_pg_utf8_string_len.c'
source_filename = "AnghaBench/postgres/src/common/extr_saslprep.c_pg_utf8_string_len.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 @pg_utf8_string_len], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @pg_utf8_string_len(ptr noundef %0) #0 {
%2 = load i8, ptr %0, align 1, !tbaa !6
%3 = icmp eq i8 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %1, %10
%5 = phi i32 [ %13, %10 ], [ 0, %1 ]
%6 = phi ptr [ %12, %10 ], [ %0, %1 ]
%7 = tail call i32 @pg_utf_mblen(ptr noundef nonnull %6) #2
%8 = tail call i32 @pg_utf8_islegal(ptr noundef nonnull %6, i32 noundef %7) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %16, label %10
10: ; preds = %4
%11 = sext i32 %7 to i64
%12 = getelementptr inbounds i8, ptr %6, i64 %11
%13 = add nuw nsw i32 %5, 1
%14 = load i8, ptr %12, align 1, !tbaa !6
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %4, !llvm.loop !9
16: ; preds = %4, %10, %1
%17 = phi i32 [ 0, %1 ], [ %13, %10 ], [ -1, %4 ]
ret i32 %17
}
declare i32 @pg_utf_mblen(ptr noundef) local_unnamed_addr #1
declare i32 @pg_utf8_islegal(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 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| postgres_src_common_extr_saslprep.c_pg_utf8_string_len |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_tg3.c_tg3_write_indirect_mbox.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_tg3.c_tg3_write_indirect_mbox.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.tg3 = type { i64, i32, i32 }
@MAILBOX_RCVRET_CON_IDX_0 = dso_local local_unnamed_addr global i64 0, align 8
@TG3_64BIT_REG_LOW = dso_local local_unnamed_addr global i64 0, align 8
@TG3PCI_RCV_RET_RING_CON_IDX = dso_local local_unnamed_addr global i64 0, align 8
@TG3_RX_STD_PROD_IDX_REG = dso_local local_unnamed_addr global i64 0, align 8
@TG3PCI_STD_RING_PROD_IDX = dso_local local_unnamed_addr global i64 0, align 8
@TG3PCI_REG_BASE_ADDR = dso_local local_unnamed_addr global i64 0, align 8
@TG3PCI_REG_DATA = dso_local local_unnamed_addr global i64 0, align 8
@MAILBOX_INTERRUPT_0 = dso_local local_unnamed_addr global i64 0, align 8
@TG3PCI_MISC_LOCAL_CTRL = dso_local local_unnamed_addr global i64 0, align 8
@GRC_LCLCTRL_CLEARINT = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @tg3_write_indirect_mbox], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @tg3_write_indirect_mbox(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = load i64, ptr @MAILBOX_RCVRET_CON_IDX_0, align 8, !tbaa !5
%5 = load i64, ptr @TG3_64BIT_REG_LOW, align 8, !tbaa !5
%6 = add nsw i64 %5, %4
%7 = icmp eq i64 %6, %1
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = getelementptr inbounds %struct.tg3, ptr %0, i64 0, i32 1
%10 = load i32, ptr %9, align 8, !tbaa !9
%11 = load i64, ptr @TG3PCI_RCV_RET_RING_CON_IDX, align 8, !tbaa !5
%12 = add nsw i64 %11, %5
%13 = tail call i32 @pci_write_config_dword(i32 noundef %10, i64 noundef %12, i64 noundef %2) #2
br label %48
14: ; preds = %3
%15 = load i64, ptr @TG3_RX_STD_PROD_IDX_REG, align 8, !tbaa !5
%16 = icmp eq i64 %15, %1
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = getelementptr inbounds %struct.tg3, ptr %0, i64 0, i32 1
%19 = load i32, ptr %18, align 8, !tbaa !9
%20 = load i64, ptr @TG3PCI_STD_RING_PROD_IDX, align 8, !tbaa !5
%21 = add nsw i64 %20, %5
%22 = tail call i32 @pci_write_config_dword(i32 noundef %19, i64 noundef %21, i64 noundef %2) #2
br label %48
23: ; preds = %14
%24 = getelementptr inbounds %struct.tg3, ptr %0, i64 0, i32 2
%25 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %24, i64 noundef undef) #2
%26 = getelementptr inbounds %struct.tg3, ptr %0, i64 0, i32 1
%27 = load i32, ptr %26, align 8, !tbaa !9
%28 = load i64, ptr @TG3PCI_REG_BASE_ADDR, align 8, !tbaa !5
%29 = add nsw i64 %1, 22016
%30 = tail call i32 @pci_write_config_dword(i32 noundef %27, i64 noundef %28, i64 noundef %29) #2
%31 = load i32, ptr %26, align 8, !tbaa !9
%32 = load i64, ptr @TG3PCI_REG_DATA, align 8, !tbaa !5
%33 = tail call i32 @pci_write_config_dword(i32 noundef %31, i64 noundef %32, i64 noundef %2) #2
%34 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %24, i64 noundef undef) #2
%35 = load i64, ptr @MAILBOX_INTERRUPT_0, align 8, !tbaa !5
%36 = load i64, ptr @TG3_64BIT_REG_LOW, align 8, !tbaa !5
%37 = add nsw i64 %36, %35
%38 = icmp eq i64 %37, %1
%39 = icmp eq i64 %2, 1
%40 = and i1 %39, %38
br i1 %40, label %41, label %48
41: ; preds = %23
%42 = load i32, ptr %26, align 8, !tbaa !9
%43 = load i64, ptr @TG3PCI_MISC_LOCAL_CTRL, align 8, !tbaa !5
%44 = load i64, ptr %0, align 8, !tbaa !12
%45 = load i64, ptr @GRC_LCLCTRL_CLEARINT, align 8, !tbaa !5
%46 = or i64 %45, %44
%47 = tail call i32 @pci_write_config_dword(i32 noundef %42, i64 noundef %43, i64 noundef %46) #2
br label %48
48: ; preds = %23, %41, %17, %8
ret void
}
declare i32 @pci_write_config_dword(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) 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)"}
!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 8}
!10 = !{!"tg3", !6, i64 0, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_tg3.c_tg3_write_indirect_mbox.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_tg3.c_tg3_write_indirect_mbox.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAILBOX_RCVRET_CON_IDX_0 = common local_unnamed_addr global i64 0, align 8
@TG3_64BIT_REG_LOW = common local_unnamed_addr global i64 0, align 8
@TG3PCI_RCV_RET_RING_CON_IDX = common local_unnamed_addr global i64 0, align 8
@TG3_RX_STD_PROD_IDX_REG = common local_unnamed_addr global i64 0, align 8
@TG3PCI_STD_RING_PROD_IDX = common local_unnamed_addr global i64 0, align 8
@TG3PCI_REG_BASE_ADDR = common local_unnamed_addr global i64 0, align 8
@TG3PCI_REG_DATA = common local_unnamed_addr global i64 0, align 8
@MAILBOX_INTERRUPT_0 = common local_unnamed_addr global i64 0, align 8
@TG3PCI_MISC_LOCAL_CTRL = common local_unnamed_addr global i64 0, align 8
@GRC_LCLCTRL_CLEARINT = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @tg3_write_indirect_mbox], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @tg3_write_indirect_mbox(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = load i64, ptr @MAILBOX_RCVRET_CON_IDX_0, align 8, !tbaa !6
%5 = load i64, ptr @TG3_64BIT_REG_LOW, align 8, !tbaa !6
%6 = add nsw i64 %5, %4
%7 = icmp eq i64 %6, %1
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load i32, ptr %9, align 8, !tbaa !10
%11 = load i64, ptr @TG3PCI_RCV_RET_RING_CON_IDX, align 8, !tbaa !6
%12 = add nsw i64 %11, %5
%13 = tail call i32 @pci_write_config_dword(i32 noundef %10, i64 noundef %12, i64 noundef %2) #2
br label %48
14: ; preds = %3
%15 = load i64, ptr @TG3_RX_STD_PROD_IDX_REG, align 8, !tbaa !6
%16 = icmp eq i64 %15, %1
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = getelementptr inbounds i8, ptr %0, i64 8
%19 = load i32, ptr %18, align 8, !tbaa !10
%20 = load i64, ptr @TG3PCI_STD_RING_PROD_IDX, align 8, !tbaa !6
%21 = add nsw i64 %20, %5
%22 = tail call i32 @pci_write_config_dword(i32 noundef %19, i64 noundef %21, i64 noundef %2) #2
br label %48
23: ; preds = %14
%24 = getelementptr inbounds i8, ptr %0, i64 12
%25 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %24, i64 noundef undef) #2
%26 = getelementptr inbounds i8, ptr %0, i64 8
%27 = load i32, ptr %26, align 8, !tbaa !10
%28 = load i64, ptr @TG3PCI_REG_BASE_ADDR, align 8, !tbaa !6
%29 = add nsw i64 %1, 22016
%30 = tail call i32 @pci_write_config_dword(i32 noundef %27, i64 noundef %28, i64 noundef %29) #2
%31 = load i32, ptr %26, align 8, !tbaa !10
%32 = load i64, ptr @TG3PCI_REG_DATA, align 8, !tbaa !6
%33 = tail call i32 @pci_write_config_dword(i32 noundef %31, i64 noundef %32, i64 noundef %2) #2
%34 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %24, i64 noundef undef) #2
%35 = load i64, ptr @MAILBOX_INTERRUPT_0, align 8, !tbaa !6
%36 = load i64, ptr @TG3_64BIT_REG_LOW, align 8, !tbaa !6
%37 = add nsw i64 %36, %35
%38 = icmp eq i64 %37, %1
%39 = icmp eq i64 %2, 1
%40 = and i1 %39, %38
br i1 %40, label %41, label %48
41: ; preds = %23
%42 = load i32, ptr %26, align 8, !tbaa !10
%43 = load i64, ptr @TG3PCI_MISC_LOCAL_CTRL, align 8, !tbaa !6
%44 = load i64, ptr %0, align 8, !tbaa !13
%45 = load i64, ptr @GRC_LCLCTRL_CLEARINT, align 8, !tbaa !6
%46 = or i64 %45, %44
%47 = tail call i32 @pci_write_config_dword(i32 noundef %42, i64 noundef %43, i64 noundef %46) #2
br label %48
48: ; preds = %23, %41, %17, %8
ret void
}
declare i32 @pci_write_config_dword(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) 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)"}
!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 8}
!11 = !{!"tg3", !7, i64 0, !12, i64 8, !12, i64 12}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 0}
| fastsocket_kernel_drivers_net_extr_tg3.c_tg3_write_indirect_mbox |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/hpfs/extr_dentry.c_hpfs_compare_dentry.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/hpfs/extr_dentry.c_hpfs_compare_dentry.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.qstr = type { i32, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @hpfs_compare_dentry], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hpfs_compare_dentry(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%6 = load i32, ptr %1, align 8, !tbaa !5
store i32 %6, ptr %4, align 4, !tbaa !11
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%7 = load i32, ptr %2, align 8, !tbaa !5
store i32 %7, ptr %5, align 4, !tbaa !11
%8 = getelementptr inbounds %struct.qstr, ptr %1, i64 0, i32 1
%9 = load i64, ptr %8, align 8, !tbaa !12
%10 = inttoptr i64 %9 to ptr
%11 = call i32 @hpfs_adjust_length(ptr noundef %10, ptr noundef nonnull %4) #3
%12 = getelementptr inbounds %struct.qstr, ptr %2, i64 0, i32 1
%13 = load i64, ptr %12, align 8, !tbaa !12
%14 = inttoptr i64 %13 to ptr
%15 = call i64 @hpfs_chk_name(ptr noundef %14, ptr noundef nonnull %5) #3
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %28
17: ; preds = %3
%18 = load i32, ptr %0, align 4, !tbaa !13
%19 = load i64, ptr %8, align 8, !tbaa !12
%20 = inttoptr i64 %19 to ptr
%21 = load i32, ptr %4, align 4, !tbaa !11
%22 = load i64, ptr %12, align 8, !tbaa !12
%23 = inttoptr i64 %22 to ptr
%24 = load i32, ptr %5, align 4, !tbaa !11
%25 = call i64 @hpfs_compare_names(i32 noundef %18, ptr noundef %20, i32 noundef %21, ptr noundef %23, i32 noundef %24, i32 noundef 0) #3
%26 = icmp ne i64 %25, 0
%27 = zext i1 %26 to i32
br label %28
28: ; preds = %17, %3
%29 = phi i32 [ 1, %3 ], [ %27, %17 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @hpfs_adjust_length(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @hpfs_chk_name(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @hpfs_compare_names(i32 noundef, ptr noundef, i32 noundef, 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, !7, i64 0}
!6 = !{!"qstr", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"dentry", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/hpfs/extr_dentry.c_hpfs_compare_dentry.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/hpfs/extr_dentry.c_hpfs_compare_dentry.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 @hpfs_compare_dentry], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @hpfs_compare_dentry(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%6 = load i32, ptr %1, align 8, !tbaa !6
store i32 %6, ptr %4, align 4, !tbaa !12
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%7 = load i32, ptr %2, align 8, !tbaa !6
store i32 %7, ptr %5, align 4, !tbaa !12
%8 = getelementptr inbounds i8, ptr %1, i64 8
%9 = load i64, ptr %8, align 8, !tbaa !13
%10 = inttoptr i64 %9 to ptr
%11 = call i32 @hpfs_adjust_length(ptr noundef %10, ptr noundef nonnull %4) #3
%12 = getelementptr inbounds i8, ptr %2, i64 8
%13 = load i64, ptr %12, align 8, !tbaa !13
%14 = inttoptr i64 %13 to ptr
%15 = call i64 @hpfs_chk_name(ptr noundef %14, ptr noundef nonnull %5) #3
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %28
17: ; preds = %3
%18 = load i32, ptr %0, align 4, !tbaa !14
%19 = load i64, ptr %8, align 8, !tbaa !13
%20 = inttoptr i64 %19 to ptr
%21 = load i32, ptr %4, align 4, !tbaa !12
%22 = load i64, ptr %12, align 8, !tbaa !13
%23 = inttoptr i64 %22 to ptr
%24 = load i32, ptr %5, align 4, !tbaa !12
%25 = call i64 @hpfs_compare_names(i32 noundef %18, ptr noundef %20, i32 noundef %21, ptr noundef %23, i32 noundef %24, i32 noundef 0) #3
%26 = icmp ne i64 %25, 0
%27 = zext i1 %26 to i32
br label %28
28: ; preds = %17, %3
%29 = phi i32 [ 1, %3 ], [ %27, %17 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @hpfs_adjust_length(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @hpfs_chk_name(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @hpfs_compare_names(i32 noundef, ptr noundef, i32 noundef, 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 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 = !{!"qstr", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!15, !8, i64 0}
!15 = !{!"dentry", !8, i64 0}
| fastsocket_kernel_fs_hpfs_extr_dentry.c_hpfs_compare_dentry |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_sched-deps.c_estimate_dep_weak.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_sched-deps.c_estimate_dep_weak.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"
@MIN_DEP_WEAK = dso_local local_unnamed_addr global i32 0, align 4
@NO_DEP_WEAK = dso_local local_unnamed_addr global i32 0, align 4
@UNCERTAIN_DEP_WEAK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @estimate_dep_weak], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @estimate_dep_weak(i64 noundef %0, i64 noundef %1) #0 {
%3 = icmp eq i64 %0, %1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = load i32, ptr @MIN_DEP_WEAK, align 4, !tbaa !5
br label %42
6: ; preds = %2
%7 = tail call i64 @XEXP(i64 noundef %0, i32 noundef 0) #2
%8 = tail call i64 @XEXP(i64 noundef %1, i32 noundef 0) #2
%9 = icmp eq i64 %7, %8
br i1 %9, label %20, label %10
10: ; preds = %6
%11 = tail call i64 @REG_P(i64 noundef %7) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %22, label %13
13: ; preds = %10
%14 = tail call i64 @REG_P(i64 noundef %8) #2
%15 = icmp eq i64 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %13
%17 = tail call i64 @REGNO(i64 noundef %7) #2
%18 = tail call i64 @REGNO(i64 noundef %8) #2
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16, %6
%21 = load i32, ptr @MIN_DEP_WEAK, align 4, !tbaa !5
br label %42
22: ; preds = %16, %13, %10
%23 = tail call i64 @REG_P(i64 noundef %7) #2
%24 = icmp eq i64 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = tail call i64 @REG_P(i64 noundef %8) #2
%27 = icmp eq i64 %26, 0
br i1 %27, label %34, label %28
28: ; preds = %25, %22
%29 = tail call i64 @REG_P(i64 noundef %7) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %40
31: ; preds = %28
%32 = tail call i64 @REG_P(i64 noundef %8) #2
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31, %25
%35 = load i32, ptr @NO_DEP_WEAK, align 4, !tbaa !5
%36 = load i32, ptr @UNCERTAIN_DEP_WEAK, align 4, !tbaa !5
%37 = sub nsw i32 %35, %36
%38 = sdiv i32 %37, -2
%39 = add i32 %38, %35
br label %42
40: ; preds = %31, %28
%41 = load i32, ptr @UNCERTAIN_DEP_WEAK, align 4, !tbaa !5
br label %42
42: ; preds = %40, %34, %20, %4
%43 = phi i32 [ %5, %4 ], [ %21, %20 ], [ %41, %40 ], [ %39, %34 ]
ret i32 %43
}
declare i64 @XEXP(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @REG_P(i64 noundef) local_unnamed_addr #1
declare i64 @REGNO(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_sched-deps.c_estimate_dep_weak.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_sched-deps.c_estimate_dep_weak.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MIN_DEP_WEAK = common local_unnamed_addr global i32 0, align 4
@NO_DEP_WEAK = common local_unnamed_addr global i32 0, align 4
@UNCERTAIN_DEP_WEAK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @estimate_dep_weak], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @estimate_dep_weak(i64 noundef %0, i64 noundef %1) #0 {
%3 = icmp eq i64 %0, %1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = load i32, ptr @MIN_DEP_WEAK, align 4, !tbaa !6
br label %42
6: ; preds = %2
%7 = tail call i64 @XEXP(i64 noundef %0, i32 noundef 0) #2
%8 = tail call i64 @XEXP(i64 noundef %1, i32 noundef 0) #2
%9 = icmp eq i64 %7, %8
br i1 %9, label %20, label %10
10: ; preds = %6
%11 = tail call i64 @REG_P(i64 noundef %7) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %22, label %13
13: ; preds = %10
%14 = tail call i64 @REG_P(i64 noundef %8) #2
%15 = icmp eq i64 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %13
%17 = tail call i64 @REGNO(i64 noundef %7) #2
%18 = tail call i64 @REGNO(i64 noundef %8) #2
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16, %6
%21 = load i32, ptr @MIN_DEP_WEAK, align 4, !tbaa !6
br label %42
22: ; preds = %16, %13, %10
%23 = tail call i64 @REG_P(i64 noundef %7) #2
%24 = icmp eq i64 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = tail call i64 @REG_P(i64 noundef %8) #2
%27 = icmp eq i64 %26, 0
br i1 %27, label %34, label %28
28: ; preds = %25, %22
%29 = tail call i64 @REG_P(i64 noundef %7) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %40
31: ; preds = %28
%32 = tail call i64 @REG_P(i64 noundef %8) #2
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31, %25
%35 = load i32, ptr @NO_DEP_WEAK, align 4, !tbaa !6
%36 = load i32, ptr @UNCERTAIN_DEP_WEAK, align 4, !tbaa !6
%37 = sub nsw i32 %35, %36
%38 = sdiv i32 %37, -2
%39 = add i32 %38, %35
br label %42
40: ; preds = %31, %28
%41 = load i32, ptr @UNCERTAIN_DEP_WEAK, align 4, !tbaa !6
br label %42
42: ; preds = %40, %34, %20, %4
%43 = phi i32 [ %5, %4 ], [ %21, %20 ], [ %41, %40 ], [ %39, %34 ]
ret i32 %43
}
declare i64 @XEXP(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @REG_P(i64 noundef) local_unnamed_addr #1
declare i64 @REGNO(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 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gcc_extr_sched-deps.c_estimate_dep_weak |
; ModuleID = 'AnghaBench/linux/drivers/base/extr_class.c_class_child_ns_type.c'
source_filename = "AnghaBench/linux/drivers/base/extr_class.c_class_child_ns_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @class_child_ns_type], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @class_child_ns_type(ptr noundef %0) #0 {
%2 = tail call ptr @to_subsys_private(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !10
ret ptr %4
}
declare ptr @to_subsys_private(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 = !{!"subsys_private", !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 = !{!"class", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/base/extr_class.c_class_child_ns_type.c'
source_filename = "AnghaBench/linux/drivers/base/extr_class.c_class_child_ns_type.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 @class_child_ns_type], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @class_child_ns_type(ptr noundef %0) #0 {
%2 = tail call ptr @to_subsys_private(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !11
ret ptr %4
}
declare ptr @to_subsys_private(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 = !{!"subsys_private", !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 = !{!"class", !8, i64 0}
| linux_drivers_base_extr_class.c_class_child_ns_type |
; ModuleID = 'AnghaBench/freebsd/contrib/unbound/validator/extr_val_anchor.c_anchor_store_str.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/validator/extr_val_anchor.c_anchor_store_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"
@.str = private unnamed_addr constant [41 x i8] c"error parsing trust anchor %s: at %d: %s\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"out of memory\00", align 1
; Function Attrs: nounwind uwtable
define dso_local ptr @anchor_store_str(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = tail call ptr @sldns_buffer_begin(ptr noundef %1) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%7 = tail call i64 @sldns_buffer_capacity(ptr noundef %1) #3
store i64 %7, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
store i64 0, ptr %5, align 8, !tbaa !5
%8 = call i32 @sldns_str2wire_rr_buf(ptr noundef %2, ptr noundef %6, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %3
%11 = call i32 @LDNS_WIREPARSE_OFFSET(i32 noundef %8) #3
%12 = call i32 @sldns_get_errorstr_parse(i32 noundef %8) #3
%13 = call i32 (ptr, ...) @log_err(ptr noundef nonnull @.str, ptr noundef %2, i32 noundef %11, i32 noundef %12) #3
br label %21
14: ; preds = %3
%15 = load i64, ptr %4, align 8, !tbaa !5
%16 = load i64, ptr %5, align 8, !tbaa !5
%17 = call ptr @anchor_store_new_rr(ptr noundef %0, ptr noundef %6, i64 noundef %15, i64 noundef %16) #3
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 (ptr, ...) @log_err(ptr noundef nonnull @.str.1) #3
br label %21
21: ; preds = %14, %19, %10
%22 = phi ptr [ null, %10 ], [ null, %19 ], [ %17, %14 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret ptr %22
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sldns_buffer_begin(ptr noundef) local_unnamed_addr #2
declare i64 @sldns_buffer_capacity(ptr noundef) local_unnamed_addr #2
declare i32 @sldns_str2wire_rr_buf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @log_err(ptr noundef, ...) local_unnamed_addr #2
declare i32 @LDNS_WIREPARSE_OFFSET(i32 noundef) local_unnamed_addr #2
declare i32 @sldns_get_errorstr_parse(i32 noundef) local_unnamed_addr #2
declare ptr @anchor_store_new_rr(ptr noundef, ptr noundef, i64 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/unbound/validator/extr_val_anchor.c_anchor_store_str.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/validator/extr_val_anchor.c_anchor_store_str.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 [41 x i8] c"error parsing trust anchor %s: at %d: %s\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"out of memory\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @anchor_store_str(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = tail call ptr @sldns_buffer_begin(ptr noundef %1) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%7 = tail call i64 @sldns_buffer_capacity(ptr noundef %1) #3
store i64 %7, ptr %4, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
store i64 0, ptr %5, align 8, !tbaa !6
%8 = call i32 @sldns_str2wire_rr_buf(ptr noundef %2, ptr noundef %6, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %3
%11 = call i32 @LDNS_WIREPARSE_OFFSET(i32 noundef %8) #3
%12 = call i32 @sldns_get_errorstr_parse(i32 noundef %8) #3
%13 = call i32 (ptr, ...) @log_err(ptr noundef nonnull @.str, ptr noundef %2, i32 noundef %11, i32 noundef %12) #3
br label %21
14: ; preds = %3
%15 = load i64, ptr %4, align 8, !tbaa !6
%16 = load i64, ptr %5, align 8, !tbaa !6
%17 = call ptr @anchor_store_new_rr(ptr noundef %0, ptr noundef %6, i64 noundef %15, i64 noundef %16) #3
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 (ptr, ...) @log_err(ptr noundef nonnull @.str.1) #3
br label %21
21: ; preds = %14, %19, %10
%22 = phi ptr [ null, %10 ], [ null, %19 ], [ %17, %14 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret ptr %22
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sldns_buffer_begin(ptr noundef) local_unnamed_addr #2
declare i64 @sldns_buffer_capacity(ptr noundef) local_unnamed_addr #2
declare i32 @sldns_str2wire_rr_buf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @log_err(ptr noundef, ...) local_unnamed_addr #2
declare i32 @LDNS_WIREPARSE_OFFSET(i32 noundef) local_unnamed_addr #2
declare i32 @sldns_get_errorstr_parse(i32 noundef) local_unnamed_addr #2
declare ptr @anchor_store_new_rr(ptr noundef, ptr noundef, i64 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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_unbound_validator_extr_val_anchor.c_anchor_store_str |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_base/extr_err.c_svn_fs_base__err_corrupt_txn.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_base/extr_err.c_svn_fs_base__err_corrupt_txn.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"
@SVN_ERR_FS_CORRUPT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"Corrupt entry in 'transactions' table for '%s' in filesystem '%s'\00", align 1
; Function Attrs: nounwind uwtable
define dso_local ptr @svn_fs_base__err_corrupt_txn(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @SVN_ERR_FS_CORRUPT, align 4, !tbaa !5
%4 = tail call i32 @_(ptr noundef nonnull @.str) #2
%5 = load i32, ptr %0, align 4, !tbaa !9
%6 = tail call ptr @svn_error_createf(i32 noundef %3, i32 noundef 0, i32 noundef %4, ptr noundef %1, i32 noundef %5) #2
ret ptr %6
}
declare ptr @svn_error_createf(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @_(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, !6, i64 0}
!10 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_base/extr_err.c_svn_fs_base__err_corrupt_txn.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_base/extr_err.c_svn_fs_base__err_corrupt_txn.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SVN_ERR_FS_CORRUPT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"Corrupt entry in 'transactions' table for '%s' in filesystem '%s'\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @svn_fs_base__err_corrupt_txn(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @SVN_ERR_FS_CORRUPT, align 4, !tbaa !6
%4 = tail call i32 @_(ptr noundef nonnull @.str) #2
%5 = load i32, ptr %0, align 4, !tbaa !10
%6 = tail call ptr @svn_error_createf(i32 noundef %3, i32 noundef 0, i32 noundef %4, ptr noundef %1, i32 noundef %5) #2
ret ptr %6
}
declare ptr @svn_error_createf(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @_(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, !7, i64 0}
!11 = !{!"TYPE_3__", !7, i64 0}
| freebsd_contrib_subversion_subversion_libsvn_fs_base_extr_err.c_svn_fs_base__err_corrupt_txn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.