IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/davinci/extr_vpfe_capture.c_vpfe_g_fmt_vid_cap.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/davinci/extr_vpfe_capture.c_vpfe_g_fmt_vid_cap.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.vpfe_device = type { %struct.v4l2_format, i32 }
%struct.v4l2_format = type { i32 }
@debug = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"vpfe_g_fmt_vid_cap\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @vpfe_g_fmt_vid_cap], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @vpfe_g_fmt_vid_cap(ptr noundef %0, ptr nocapture readnone %1, ptr nocapture noundef writeonly %2) #0 {
%4 = tail call ptr @video_drvdata(ptr noundef %0) #2
%5 = load i32, ptr @debug, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.vpfe_device, ptr %4, i64 0, i32 1
%7 = tail call i32 @v4l2_dbg(i32 noundef 1, i32 noundef %5, ptr noundef nonnull %6, ptr noundef nonnull @.str) #2
%8 = load i32, ptr %4, align 4, !tbaa !5
store i32 %8, ptr %2, align 4, !tbaa !5
ret i32 0
}
declare ptr @video_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_dbg(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/davinci/extr_vpfe_capture.c_vpfe_g_fmt_vid_cap.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/davinci/extr_vpfe_capture.c_vpfe_g_fmt_vid_cap.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@debug = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"vpfe_g_fmt_vid_cap\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @vpfe_g_fmt_vid_cap], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @vpfe_g_fmt_vid_cap(ptr noundef %0, ptr nocapture readnone %1, ptr nocapture noundef writeonly %2) #0 {
%4 = tail call ptr @video_drvdata(ptr noundef %0) #2
%5 = load i32, ptr @debug, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %4, i64 4
%7 = tail call i32 @v4l2_dbg(i32 noundef 1, i32 noundef %5, ptr noundef nonnull %6, ptr noundef nonnull @.str) #2
%8 = load i32, ptr %4, align 4, !tbaa !6
store i32 %8, ptr %2, align 4, !tbaa !6
ret i32 0
}
declare ptr @video_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_dbg(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_media_video_davinci_extr_vpfe_capture.c_vpfe_g_fmt_vid_cap |
; ModuleID = 'AnghaBench/mruby/mrbgems/mruby-socket/src/extr_socket.c_mrb_ipsocket_ntop.c'
source_filename = "AnghaBench/mruby/mrbgems/mruby-socket/src/extr_socket.c_mrb_ipsocket_ntop.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 [3 x i8] c"is\00", align 1
@AF_INET = dso_local local_unnamed_addr global i64 0, align 8
@AF_INET6 = dso_local local_unnamed_addr global i64 0, align 8
@E_ARGUMENT_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"invalid address\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @mrb_ipsocket_ntop], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mrb_ipsocket_ntop(ptr noundef %0, i32 %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca [50 x i8], align 16
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %6) #3
%7 = call i32 @mrb_get_args(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %4) #3
%8 = load i64, ptr %3, align 8, !tbaa !5
%9 = load i64, ptr @AF_INET, align 8, !tbaa !5
%10 = icmp eq i64 %8, %9
%11 = load i64, ptr %4, align 8
%12 = icmp ne i64 %11, 4
%13 = select i1 %10, i1 %12, i1 false
br i1 %13, label %19, label %14
14: ; preds = %2
%15 = load i64, ptr @AF_INET6, align 8, !tbaa !5
%16 = icmp eq i64 %8, %15
%17 = icmp ne i64 %11, 16
%18 = select i1 %16, i1 %17, i1 false
br i1 %18, label %19, label %23
19: ; preds = %14, %2
%20 = load i32, ptr @E_ARGUMENT_ERROR, align 4, !tbaa !9
%21 = call i32 @mrb_raise(ptr noundef %0, i32 noundef %20, ptr noundef nonnull @.str.1) #3
%22 = load i64, ptr %3, align 8, !tbaa !5
br label %23
23: ; preds = %19, %14
%24 = phi i64 [ %22, %19 ], [ %8, %14 ]
%25 = trunc i64 %24 to i32
%26 = load ptr, ptr %5, align 8, !tbaa !11
%27 = call ptr @inet_ntop(i32 noundef %25, ptr noundef %26, ptr noundef nonnull %6, i32 noundef 50) #3
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, ptr @E_ARGUMENT_ERROR, align 4, !tbaa !9
%31 = call i32 @mrb_raise(ptr noundef %0, i32 noundef %30, ptr noundef nonnull @.str.1) #3
br label %32
32: ; preds = %29, %23
%33 = call i32 @mrb_str_new_cstr(ptr noundef %0, ptr noundef nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %33
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mrb_get_args(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mrb_raise(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mrb_str_new_cstr(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/mruby/mrbgems/mruby-socket/src/extr_socket.c_mrb_ipsocket_ntop.c'
source_filename = "AnghaBench/mruby/mrbgems/mruby-socket/src/extr_socket.c_mrb_ipsocket_ntop.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 [3 x i8] c"is\00", align 1
@AF_INET = common local_unnamed_addr global i64 0, align 8
@AF_INET6 = common local_unnamed_addr global i64 0, align 8
@E_ARGUMENT_ERROR = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"invalid address\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @mrb_ipsocket_ntop], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mrb_ipsocket_ntop(ptr noundef %0, i32 %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca [50 x i8], align 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %6) #3
%7 = call i32 @mrb_get_args(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %4) #3
%8 = load i64, ptr %3, align 8, !tbaa !6
%9 = load i64, ptr @AF_INET, align 8, !tbaa !6
%10 = icmp eq i64 %8, %9
%11 = load i64, ptr %4, align 8
%12 = icmp ne i64 %11, 4
%13 = select i1 %10, i1 %12, i1 false
br i1 %13, label %19, label %14
14: ; preds = %2
%15 = load i64, ptr @AF_INET6, align 8, !tbaa !6
%16 = icmp eq i64 %8, %15
%17 = icmp ne i64 %11, 16
%18 = select i1 %16, i1 %17, i1 false
br i1 %18, label %19, label %23
19: ; preds = %14, %2
%20 = load i32, ptr @E_ARGUMENT_ERROR, align 4, !tbaa !10
%21 = call i32 @mrb_raise(ptr noundef %0, i32 noundef %20, ptr noundef nonnull @.str.1) #3
%22 = load i64, ptr %3, align 8, !tbaa !6
br label %23
23: ; preds = %19, %14
%24 = phi i64 [ %22, %19 ], [ %8, %14 ]
%25 = trunc i64 %24 to i32
%26 = load ptr, ptr %5, align 8, !tbaa !12
%27 = call ptr @inet_ntop(i32 noundef %25, ptr noundef %26, ptr noundef nonnull %6, i32 noundef 50) #3
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, ptr @E_ARGUMENT_ERROR, align 4, !tbaa !10
%31 = call i32 @mrb_raise(ptr noundef %0, i32 noundef %30, ptr noundef nonnull @.str.1) #3
br label %32
32: ; preds = %29, %23
%33 = call i32 @mrb_str_new_cstr(ptr noundef %0, ptr noundef nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %33
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mrb_get_args(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mrb_raise(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mrb_str_new_cstr(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
| mruby_mrbgems_mruby-socket_src_extr_socket.c_mrb_ipsocket_ntop |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/eap_peer/extr_eap_tls_common.c_eap_peer_tls_reset_output.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/eap_peer/extr_eap_tls_common.c_eap_peer_tls_reset_output.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.eap_ssl_data = type { ptr, i64 }
; Function Attrs: nounwind uwtable
define dso_local void @eap_peer_tls_reset_output(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.eap_ssl_data, ptr %0, i64 0, i32 1
store i64 0, ptr %2, align 8, !tbaa !5
%3 = load ptr, ptr %0, align 8, !tbaa !11
%4 = tail call i32 @wpabuf_free(ptr noundef %3) #2
store ptr null, ptr %0, align 8, !tbaa !11
ret void
}
declare i32 @wpabuf_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"eap_ssl_data", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/eap_peer/extr_eap_tls_common.c_eap_peer_tls_reset_output.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/eap_peer/extr_eap_tls_common.c_eap_peer_tls_reset_output.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 @eap_peer_tls_reset_output(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
store i64 0, ptr %2, align 8, !tbaa !6
%3 = load ptr, ptr %0, align 8, !tbaa !12
%4 = tail call i32 @wpabuf_free(ptr noundef %3) #2
store ptr null, ptr %0, align 8, !tbaa !12
ret void
}
declare i32 @wpabuf_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"eap_ssl_data", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !8, i64 0}
| freebsd_contrib_wpa_src_eap_peer_extr_eap_tls_common.c_eap_peer_tls_reset_output |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/xilinx/extr_xilinx_axienet_main.c_axienet_ethtools_get_regs.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/xilinx/extr_xilinx_axienet_main.c_axienet_ethtools_get_regs.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.ethtool_regs = type { i64, i64 }
@AXIENET_REGS_N = dso_local local_unnamed_addr global i32 0, align 4
@XAE_RAF_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_TPF_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_IFGP_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_IS_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_IP_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_IE_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_TTAG_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_RTAG_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_UAWL_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_UAWU_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_TPID0_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_TPID1_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_PPST_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_RCW0_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_RCW1_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_TC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_FCC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_EMMC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_PHYC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MCR_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MWD_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MRD_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIS_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIP_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIE_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_UAW0_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_UAW1_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_FMI_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_AF0_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAE_AF1_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_CR_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_SR_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_CDESC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_TDESC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_CR_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_SR_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_CDESC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_TDESC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @axienet_ethtools_get_regs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @axienet_ethtools_get_regs(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2) #0 {
%4 = load i32, ptr @AXIENET_REGS_N, align 4, !tbaa !5
%5 = sext i32 %4 to i64
%6 = shl nsw i64 %5, 2
%7 = tail call ptr @netdev_priv(ptr noundef %0) #2
%8 = getelementptr inbounds %struct.ethtool_regs, ptr %1, i64 0, i32 1
store i64 0, ptr %8, align 8, !tbaa !9
store i64 %6, ptr %1, align 8, !tbaa !12
%9 = tail call i32 @memset(ptr noundef %2, i32 noundef 0, i64 noundef %6) #2
%10 = load i32, ptr @XAE_RAF_OFFSET, align 4, !tbaa !5
%11 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %10) #2
store i32 %11, ptr %2, align 4, !tbaa !5
%12 = load i32, ptr @XAE_TPF_OFFSET, align 4, !tbaa !5
%13 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %12) #2
%14 = getelementptr inbounds i32, ptr %2, i64 1
store i32 %13, ptr %14, align 4, !tbaa !5
%15 = load i32, ptr @XAE_IFGP_OFFSET, align 4, !tbaa !5
%16 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %15) #2
%17 = getelementptr inbounds i32, ptr %2, i64 2
store i32 %16, ptr %17, align 4, !tbaa !5
%18 = load i32, ptr @XAE_IS_OFFSET, align 4, !tbaa !5
%19 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %18) #2
%20 = getelementptr inbounds i32, ptr %2, i64 3
store i32 %19, ptr %20, align 4, !tbaa !5
%21 = load i32, ptr @XAE_IP_OFFSET, align 4, !tbaa !5
%22 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %21) #2
%23 = getelementptr inbounds i32, ptr %2, i64 4
store i32 %22, ptr %23, align 4, !tbaa !5
%24 = load i32, ptr @XAE_IE_OFFSET, align 4, !tbaa !5
%25 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %24) #2
%26 = getelementptr inbounds i32, ptr %2, i64 5
store i32 %25, ptr %26, align 4, !tbaa !5
%27 = load i32, ptr @XAE_TTAG_OFFSET, align 4, !tbaa !5
%28 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %27) #2
%29 = getelementptr inbounds i32, ptr %2, i64 6
store i32 %28, ptr %29, align 4, !tbaa !5
%30 = load i32, ptr @XAE_RTAG_OFFSET, align 4, !tbaa !5
%31 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %30) #2
%32 = getelementptr inbounds i32, ptr %2, i64 7
store i32 %31, ptr %32, align 4, !tbaa !5
%33 = load i32, ptr @XAE_UAWL_OFFSET, align 4, !tbaa !5
%34 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %33) #2
%35 = getelementptr inbounds i32, ptr %2, i64 8
store i32 %34, ptr %35, align 4, !tbaa !5
%36 = load i32, ptr @XAE_UAWU_OFFSET, align 4, !tbaa !5
%37 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %36) #2
%38 = getelementptr inbounds i32, ptr %2, i64 9
store i32 %37, ptr %38, align 4, !tbaa !5
%39 = load i32, ptr @XAE_TPID0_OFFSET, align 4, !tbaa !5
%40 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %39) #2
%41 = getelementptr inbounds i32, ptr %2, i64 10
store i32 %40, ptr %41, align 4, !tbaa !5
%42 = load i32, ptr @XAE_TPID1_OFFSET, align 4, !tbaa !5
%43 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %42) #2
%44 = getelementptr inbounds i32, ptr %2, i64 11
store i32 %43, ptr %44, align 4, !tbaa !5
%45 = load i32, ptr @XAE_PPST_OFFSET, align 4, !tbaa !5
%46 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %45) #2
%47 = getelementptr inbounds i32, ptr %2, i64 12
store i32 %46, ptr %47, align 4, !tbaa !5
%48 = load i32, ptr @XAE_RCW0_OFFSET, align 4, !tbaa !5
%49 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %48) #2
%50 = getelementptr inbounds i32, ptr %2, i64 13
store i32 %49, ptr %50, align 4, !tbaa !5
%51 = load i32, ptr @XAE_RCW1_OFFSET, align 4, !tbaa !5
%52 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %51) #2
%53 = getelementptr inbounds i32, ptr %2, i64 14
store i32 %52, ptr %53, align 4, !tbaa !5
%54 = load i32, ptr @XAE_TC_OFFSET, align 4, !tbaa !5
%55 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %54) #2
%56 = getelementptr inbounds i32, ptr %2, i64 15
store i32 %55, ptr %56, align 4, !tbaa !5
%57 = load i32, ptr @XAE_FCC_OFFSET, align 4, !tbaa !5
%58 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %57) #2
%59 = getelementptr inbounds i32, ptr %2, i64 16
store i32 %58, ptr %59, align 4, !tbaa !5
%60 = load i32, ptr @XAE_EMMC_OFFSET, align 4, !tbaa !5
%61 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %60) #2
%62 = getelementptr inbounds i32, ptr %2, i64 17
store i32 %61, ptr %62, align 4, !tbaa !5
%63 = load i32, ptr @XAE_PHYC_OFFSET, align 4, !tbaa !5
%64 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %63) #2
%65 = getelementptr inbounds i32, ptr %2, i64 18
store i32 %64, ptr %65, align 4, !tbaa !5
%66 = load i32, ptr @XAE_MDIO_MC_OFFSET, align 4, !tbaa !5
%67 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %66) #2
%68 = getelementptr inbounds i32, ptr %2, i64 19
store i32 %67, ptr %68, align 4, !tbaa !5
%69 = load i32, ptr @XAE_MDIO_MCR_OFFSET, align 4, !tbaa !5
%70 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %69) #2
%71 = getelementptr inbounds i32, ptr %2, i64 20
store i32 %70, ptr %71, align 4, !tbaa !5
%72 = load i32, ptr @XAE_MDIO_MWD_OFFSET, align 4, !tbaa !5
%73 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %72) #2
%74 = getelementptr inbounds i32, ptr %2, i64 21
store i32 %73, ptr %74, align 4, !tbaa !5
%75 = load i32, ptr @XAE_MDIO_MRD_OFFSET, align 4, !tbaa !5
%76 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %75) #2
%77 = getelementptr inbounds i32, ptr %2, i64 22
store i32 %76, ptr %77, align 4, !tbaa !5
%78 = load i32, ptr @XAE_MDIO_MIS_OFFSET, align 4, !tbaa !5
%79 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %78) #2
%80 = getelementptr inbounds i32, ptr %2, i64 23
store i32 %79, ptr %80, align 4, !tbaa !5
%81 = load i32, ptr @XAE_MDIO_MIP_OFFSET, align 4, !tbaa !5
%82 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %81) #2
%83 = getelementptr inbounds i32, ptr %2, i64 24
store i32 %82, ptr %83, align 4, !tbaa !5
%84 = load i32, ptr @XAE_MDIO_MIE_OFFSET, align 4, !tbaa !5
%85 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %84) #2
%86 = getelementptr inbounds i32, ptr %2, i64 25
store i32 %85, ptr %86, align 4, !tbaa !5
%87 = load i32, ptr @XAE_MDIO_MIC_OFFSET, align 4, !tbaa !5
%88 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %87) #2
%89 = getelementptr inbounds i32, ptr %2, i64 26
store i32 %88, ptr %89, align 4, !tbaa !5
%90 = load i32, ptr @XAE_UAW0_OFFSET, align 4, !tbaa !5
%91 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %90) #2
%92 = getelementptr inbounds i32, ptr %2, i64 27
store i32 %91, ptr %92, align 4, !tbaa !5
%93 = load i32, ptr @XAE_UAW1_OFFSET, align 4, !tbaa !5
%94 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %93) #2
%95 = getelementptr inbounds i32, ptr %2, i64 28
store i32 %94, ptr %95, align 4, !tbaa !5
%96 = load i32, ptr @XAE_FMI_OFFSET, align 4, !tbaa !5
%97 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %96) #2
%98 = getelementptr inbounds i32, ptr %2, i64 29
store i32 %97, ptr %98, align 4, !tbaa !5
%99 = load i32, ptr @XAE_AF0_OFFSET, align 4, !tbaa !5
%100 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %99) #2
%101 = getelementptr inbounds i32, ptr %2, i64 30
store i32 %100, ptr %101, align 4, !tbaa !5
%102 = load i32, ptr @XAE_AF1_OFFSET, align 4, !tbaa !5
%103 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %102) #2
%104 = getelementptr inbounds i32, ptr %2, i64 31
store i32 %103, ptr %104, align 4, !tbaa !5
%105 = load i32, ptr @XAXIDMA_TX_CR_OFFSET, align 4, !tbaa !5
%106 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %105) #2
%107 = getelementptr inbounds i32, ptr %2, i64 32
store i32 %106, ptr %107, align 4, !tbaa !5
%108 = load i32, ptr @XAXIDMA_TX_SR_OFFSET, align 4, !tbaa !5
%109 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %108) #2
%110 = getelementptr inbounds i32, ptr %2, i64 33
store i32 %109, ptr %110, align 4, !tbaa !5
%111 = load i32, ptr @XAXIDMA_TX_CDESC_OFFSET, align 4, !tbaa !5
%112 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %111) #2
%113 = getelementptr inbounds i32, ptr %2, i64 34
store i32 %112, ptr %113, align 4, !tbaa !5
%114 = load i32, ptr @XAXIDMA_TX_TDESC_OFFSET, align 4, !tbaa !5
%115 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %114) #2
%116 = getelementptr inbounds i32, ptr %2, i64 35
store i32 %115, ptr %116, align 4, !tbaa !5
%117 = load i32, ptr @XAXIDMA_RX_CR_OFFSET, align 4, !tbaa !5
%118 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %117) #2
%119 = getelementptr inbounds i32, ptr %2, i64 36
store i32 %118, ptr %119, align 4, !tbaa !5
%120 = load i32, ptr @XAXIDMA_RX_SR_OFFSET, align 4, !tbaa !5
%121 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %120) #2
%122 = getelementptr inbounds i32, ptr %2, i64 37
store i32 %121, ptr %122, align 4, !tbaa !5
%123 = load i32, ptr @XAXIDMA_RX_CDESC_OFFSET, align 4, !tbaa !5
%124 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %123) #2
%125 = getelementptr inbounds i32, ptr %2, i64 38
store i32 %124, ptr %125, align 4, !tbaa !5
%126 = load i32, ptr @XAXIDMA_RX_TDESC_OFFSET, align 4, !tbaa !5
%127 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %126) #2
%128 = getelementptr inbounds i32, ptr %2, i64 39
store i32 %127, ptr %128, align 4, !tbaa !5
ret void
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @axienet_ior(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @axienet_dma_in32(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"ethtool_regs", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/xilinx/extr_xilinx_axienet_main.c_axienet_ethtools_get_regs.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/xilinx/extr_xilinx_axienet_main.c_axienet_ethtools_get_regs.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AXIENET_REGS_N = common local_unnamed_addr global i32 0, align 4
@XAE_RAF_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_TPF_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_IFGP_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_IS_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_IP_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_IE_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_TTAG_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_RTAG_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_UAWL_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_UAWU_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_TPID0_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_TPID1_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_PPST_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_RCW0_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_RCW1_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_TC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_FCC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_EMMC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_PHYC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MCR_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MWD_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MRD_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIS_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIP_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIE_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_MDIO_MIC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_UAW0_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_UAW1_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_FMI_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_AF0_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAE_AF1_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_CR_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_SR_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_CDESC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_TX_TDESC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_CR_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_SR_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_CDESC_OFFSET = common local_unnamed_addr global i32 0, align 4
@XAXIDMA_RX_TDESC_OFFSET = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @axienet_ethtools_get_regs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @axienet_ethtools_get_regs(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2) #0 {
%4 = load i32, ptr @AXIENET_REGS_N, align 4, !tbaa !6
%5 = sext i32 %4 to i64
%6 = shl nsw i64 %5, 2
%7 = tail call ptr @netdev_priv(ptr noundef %0) #2
%8 = getelementptr inbounds i8, ptr %1, i64 8
store i64 0, ptr %8, align 8, !tbaa !10
store i64 %6, ptr %1, align 8, !tbaa !13
%9 = tail call i32 @memset(ptr noundef %2, i32 noundef 0, i64 noundef %6) #2
%10 = load i32, ptr @XAE_RAF_OFFSET, align 4, !tbaa !6
%11 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %10) #2
store i32 %11, ptr %2, align 4, !tbaa !6
%12 = load i32, ptr @XAE_TPF_OFFSET, align 4, !tbaa !6
%13 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %12) #2
%14 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %13, ptr %14, align 4, !tbaa !6
%15 = load i32, ptr @XAE_IFGP_OFFSET, align 4, !tbaa !6
%16 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %15) #2
%17 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %16, ptr %17, align 4, !tbaa !6
%18 = load i32, ptr @XAE_IS_OFFSET, align 4, !tbaa !6
%19 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %18) #2
%20 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %19, ptr %20, align 4, !tbaa !6
%21 = load i32, ptr @XAE_IP_OFFSET, align 4, !tbaa !6
%22 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %21) #2
%23 = getelementptr inbounds i8, ptr %2, i64 16
store i32 %22, ptr %23, align 4, !tbaa !6
%24 = load i32, ptr @XAE_IE_OFFSET, align 4, !tbaa !6
%25 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %24) #2
%26 = getelementptr inbounds i8, ptr %2, i64 20
store i32 %25, ptr %26, align 4, !tbaa !6
%27 = load i32, ptr @XAE_TTAG_OFFSET, align 4, !tbaa !6
%28 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %27) #2
%29 = getelementptr inbounds i8, ptr %2, i64 24
store i32 %28, ptr %29, align 4, !tbaa !6
%30 = load i32, ptr @XAE_RTAG_OFFSET, align 4, !tbaa !6
%31 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %30) #2
%32 = getelementptr inbounds i8, ptr %2, i64 28
store i32 %31, ptr %32, align 4, !tbaa !6
%33 = load i32, ptr @XAE_UAWL_OFFSET, align 4, !tbaa !6
%34 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %33) #2
%35 = getelementptr inbounds i8, ptr %2, i64 32
store i32 %34, ptr %35, align 4, !tbaa !6
%36 = load i32, ptr @XAE_UAWU_OFFSET, align 4, !tbaa !6
%37 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %36) #2
%38 = getelementptr inbounds i8, ptr %2, i64 36
store i32 %37, ptr %38, align 4, !tbaa !6
%39 = load i32, ptr @XAE_TPID0_OFFSET, align 4, !tbaa !6
%40 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %39) #2
%41 = getelementptr inbounds i8, ptr %2, i64 40
store i32 %40, ptr %41, align 4, !tbaa !6
%42 = load i32, ptr @XAE_TPID1_OFFSET, align 4, !tbaa !6
%43 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %42) #2
%44 = getelementptr inbounds i8, ptr %2, i64 44
store i32 %43, ptr %44, align 4, !tbaa !6
%45 = load i32, ptr @XAE_PPST_OFFSET, align 4, !tbaa !6
%46 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %45) #2
%47 = getelementptr inbounds i8, ptr %2, i64 48
store i32 %46, ptr %47, align 4, !tbaa !6
%48 = load i32, ptr @XAE_RCW0_OFFSET, align 4, !tbaa !6
%49 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %48) #2
%50 = getelementptr inbounds i8, ptr %2, i64 52
store i32 %49, ptr %50, align 4, !tbaa !6
%51 = load i32, ptr @XAE_RCW1_OFFSET, align 4, !tbaa !6
%52 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %51) #2
%53 = getelementptr inbounds i8, ptr %2, i64 56
store i32 %52, ptr %53, align 4, !tbaa !6
%54 = load i32, ptr @XAE_TC_OFFSET, align 4, !tbaa !6
%55 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %54) #2
%56 = getelementptr inbounds i8, ptr %2, i64 60
store i32 %55, ptr %56, align 4, !tbaa !6
%57 = load i32, ptr @XAE_FCC_OFFSET, align 4, !tbaa !6
%58 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %57) #2
%59 = getelementptr inbounds i8, ptr %2, i64 64
store i32 %58, ptr %59, align 4, !tbaa !6
%60 = load i32, ptr @XAE_EMMC_OFFSET, align 4, !tbaa !6
%61 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %60) #2
%62 = getelementptr inbounds i8, ptr %2, i64 68
store i32 %61, ptr %62, align 4, !tbaa !6
%63 = load i32, ptr @XAE_PHYC_OFFSET, align 4, !tbaa !6
%64 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %63) #2
%65 = getelementptr inbounds i8, ptr %2, i64 72
store i32 %64, ptr %65, align 4, !tbaa !6
%66 = load i32, ptr @XAE_MDIO_MC_OFFSET, align 4, !tbaa !6
%67 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %66) #2
%68 = getelementptr inbounds i8, ptr %2, i64 76
store i32 %67, ptr %68, align 4, !tbaa !6
%69 = load i32, ptr @XAE_MDIO_MCR_OFFSET, align 4, !tbaa !6
%70 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %69) #2
%71 = getelementptr inbounds i8, ptr %2, i64 80
store i32 %70, ptr %71, align 4, !tbaa !6
%72 = load i32, ptr @XAE_MDIO_MWD_OFFSET, align 4, !tbaa !6
%73 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %72) #2
%74 = getelementptr inbounds i8, ptr %2, i64 84
store i32 %73, ptr %74, align 4, !tbaa !6
%75 = load i32, ptr @XAE_MDIO_MRD_OFFSET, align 4, !tbaa !6
%76 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %75) #2
%77 = getelementptr inbounds i8, ptr %2, i64 88
store i32 %76, ptr %77, align 4, !tbaa !6
%78 = load i32, ptr @XAE_MDIO_MIS_OFFSET, align 4, !tbaa !6
%79 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %78) #2
%80 = getelementptr inbounds i8, ptr %2, i64 92
store i32 %79, ptr %80, align 4, !tbaa !6
%81 = load i32, ptr @XAE_MDIO_MIP_OFFSET, align 4, !tbaa !6
%82 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %81) #2
%83 = getelementptr inbounds i8, ptr %2, i64 96
store i32 %82, ptr %83, align 4, !tbaa !6
%84 = load i32, ptr @XAE_MDIO_MIE_OFFSET, align 4, !tbaa !6
%85 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %84) #2
%86 = getelementptr inbounds i8, ptr %2, i64 100
store i32 %85, ptr %86, align 4, !tbaa !6
%87 = load i32, ptr @XAE_MDIO_MIC_OFFSET, align 4, !tbaa !6
%88 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %87) #2
%89 = getelementptr inbounds i8, ptr %2, i64 104
store i32 %88, ptr %89, align 4, !tbaa !6
%90 = load i32, ptr @XAE_UAW0_OFFSET, align 4, !tbaa !6
%91 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %90) #2
%92 = getelementptr inbounds i8, ptr %2, i64 108
store i32 %91, ptr %92, align 4, !tbaa !6
%93 = load i32, ptr @XAE_UAW1_OFFSET, align 4, !tbaa !6
%94 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %93) #2
%95 = getelementptr inbounds i8, ptr %2, i64 112
store i32 %94, ptr %95, align 4, !tbaa !6
%96 = load i32, ptr @XAE_FMI_OFFSET, align 4, !tbaa !6
%97 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %96) #2
%98 = getelementptr inbounds i8, ptr %2, i64 116
store i32 %97, ptr %98, align 4, !tbaa !6
%99 = load i32, ptr @XAE_AF0_OFFSET, align 4, !tbaa !6
%100 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %99) #2
%101 = getelementptr inbounds i8, ptr %2, i64 120
store i32 %100, ptr %101, align 4, !tbaa !6
%102 = load i32, ptr @XAE_AF1_OFFSET, align 4, !tbaa !6
%103 = tail call i32 @axienet_ior(ptr noundef %7, i32 noundef %102) #2
%104 = getelementptr inbounds i8, ptr %2, i64 124
store i32 %103, ptr %104, align 4, !tbaa !6
%105 = load i32, ptr @XAXIDMA_TX_CR_OFFSET, align 4, !tbaa !6
%106 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %105) #2
%107 = getelementptr inbounds i8, ptr %2, i64 128
store i32 %106, ptr %107, align 4, !tbaa !6
%108 = load i32, ptr @XAXIDMA_TX_SR_OFFSET, align 4, !tbaa !6
%109 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %108) #2
%110 = getelementptr inbounds i8, ptr %2, i64 132
store i32 %109, ptr %110, align 4, !tbaa !6
%111 = load i32, ptr @XAXIDMA_TX_CDESC_OFFSET, align 4, !tbaa !6
%112 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %111) #2
%113 = getelementptr inbounds i8, ptr %2, i64 136
store i32 %112, ptr %113, align 4, !tbaa !6
%114 = load i32, ptr @XAXIDMA_TX_TDESC_OFFSET, align 4, !tbaa !6
%115 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %114) #2
%116 = getelementptr inbounds i8, ptr %2, i64 140
store i32 %115, ptr %116, align 4, !tbaa !6
%117 = load i32, ptr @XAXIDMA_RX_CR_OFFSET, align 4, !tbaa !6
%118 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %117) #2
%119 = getelementptr inbounds i8, ptr %2, i64 144
store i32 %118, ptr %119, align 4, !tbaa !6
%120 = load i32, ptr @XAXIDMA_RX_SR_OFFSET, align 4, !tbaa !6
%121 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %120) #2
%122 = getelementptr inbounds i8, ptr %2, i64 148
store i32 %121, ptr %122, align 4, !tbaa !6
%123 = load i32, ptr @XAXIDMA_RX_CDESC_OFFSET, align 4, !tbaa !6
%124 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %123) #2
%125 = getelementptr inbounds i8, ptr %2, i64 152
store i32 %124, ptr %125, align 4, !tbaa !6
%126 = load i32, ptr @XAXIDMA_RX_TDESC_OFFSET, align 4, !tbaa !6
%127 = tail call i32 @axienet_dma_in32(ptr noundef %7, i32 noundef %126) #2
%128 = getelementptr inbounds i8, ptr %2, i64 156
store i32 %127, ptr %128, align 4, !tbaa !6
ret void
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @axienet_ior(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @axienet_dma_in32(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"ethtool_regs", !12, i64 0, !12, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 0}
| linux_drivers_net_ethernet_xilinx_extr_xilinx_axienet_main.c_axienet_ethtools_get_regs |
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_libvpxenc.c_vp8_ts_parse_int_array.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_libvpxenc.c_vp8_ts_parse_int_array.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 [2 x i8] c",\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @vp8_ts_parse_int_array], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @vp8_ts_parse_int_array(ptr nocapture noundef writeonly %0, ptr noundef %1, i64 %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
store ptr null, ptr %5, align 8, !tbaa !5
%6 = call ptr @av_strtok(ptr noundef %1, ptr noundef nonnull @.str, ptr noundef nonnull %5) #4
%7 = icmp ne ptr %6, null
%8 = icmp sgt i32 %3, 0
%9 = and i1 %7, %8
br i1 %9, label %10, label %22
10: ; preds = %4
%11 = zext nneg i32 %3 to i64
br label %12
12: ; preds = %10, %12
%13 = phi i64 [ 0, %10 ], [ %16, %12 ]
%14 = phi ptr [ %6, %10 ], [ %18, %12 ]
%15 = call i32 @strtoul(ptr nocapture noundef nonnull %14, ptr noundef null, i32 noundef 10)
%16 = add nuw nsw i64 %13, 1
%17 = getelementptr inbounds i32, ptr %0, i64 %13
store i32 %15, ptr %17, align 4, !tbaa !9
%18 = call ptr @av_strtok(ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull %5) #4
%19 = icmp ne ptr %18, null
%20 = icmp ult i64 %16, %11
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %12, label %22, !llvm.loop !11
22: ; preds = %12, %4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #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 ptr @av_strtok(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn
declare i32 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_libvpxenc.c_vp8_ts_parse_int_array.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_libvpxenc.c_vp8_ts_parse_int_array.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @vp8_ts_parse_int_array], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @vp8_ts_parse_int_array(ptr nocapture noundef writeonly %0, ptr noundef %1, i64 %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
store ptr null, ptr %5, align 8, !tbaa !6
%6 = call ptr @av_strtok(ptr noundef %1, ptr noundef nonnull @.str, ptr noundef nonnull %5) #4
%7 = icmp ne ptr %6, null
%8 = icmp sgt i32 %3, 0
%9 = and i1 %7, %8
br i1 %9, label %10, label %22
10: ; preds = %4
%11 = zext nneg i32 %3 to i64
br label %12
12: ; preds = %10, %12
%13 = phi i64 [ 0, %10 ], [ %16, %12 ]
%14 = phi ptr [ %6, %10 ], [ %18, %12 ]
%15 = call i32 @strtoul(ptr nocapture noundef nonnull %14, ptr noundef null, i32 noundef 10)
%16 = add nuw nsw i64 %13, 1
%17 = getelementptr inbounds i32, ptr %0, i64 %13
store i32 %15, ptr %17, align 4, !tbaa !10
%18 = call ptr @av_strtok(ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull %5) #4
%19 = icmp ne ptr %18, null
%20 = icmp ult i64 %16, %11
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %12, label %22, !llvm.loop !12
22: ; preds = %12, %4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #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 ptr @av_strtok(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn
declare i32 @strtoul(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+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 "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| FFmpeg_libavcodec_extr_libvpxenc.c_vp8_ts_parse_int_array |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/ocrdma/extr_ocrdma_hw.c_ocrdma_free_eq_vect_gen2.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/ocrdma/extr_ocrdma_hw.c_ocrdma_free_eq_vect_gen2.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 @ocrdma_free_eq_vect_gen2], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define internal void @ocrdma_free_eq_vect_gen2(ptr nocapture noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = add nsw i32 %2, -1
store i32 %3, ptr %0, align 4, !tbaa !5
ret void
}
attributes #0 = { 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, !9, i64 0}
!6 = !{!"ocrdma_dev", !7, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"TYPE_3__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/ocrdma/extr_ocrdma_hw.c_ocrdma_free_eq_vect_gen2.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/ocrdma/extr_ocrdma_hw.c_ocrdma_free_eq_vect_gen2.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 @ocrdma_free_eq_vect_gen2], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) uwtable(sync)
define internal void @ocrdma_free_eq_vect_gen2(ptr nocapture noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = add nsw i32 %2, -1
store i32 %3, ptr %0, align 4, !tbaa !6
ret void
}
attributes #0 = { 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, !10, i64 0}
!7 = !{!"ocrdma_dev", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0}
!9 = !{!"TYPE_3__", !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_infiniband_hw_ocrdma_extr_ocrdma_hw.c_ocrdma_free_eq_vect_gen2 |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb3/extr_xgmac.c_rx_fifo_hwm.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb3/extr_xgmac.c_rx_fifo_hwm.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"
@MAC_RXFIFO_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @rx_fifo_hwm], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @rx_fifo_hwm(i32 noundef %0) #0 {
%2 = load i32, ptr @MAC_RXFIFO_SIZE, align 4, !tbaa !5
%3 = mul i32 %0, -3
%4 = add i32 %2, %3
%5 = mul nsw i32 %2, 38
%6 = sdiv i32 %5, 100
%7 = tail call i32 @max(i32 noundef %4, i32 noundef %6) #2
%8 = load i32, ptr @MAC_RXFIFO_SIZE, align 4, !tbaa !5
%9 = add nsw i32 %8, -8192
%10 = tail call i32 @min(i32 noundef %7, i32 noundef %9) #2
ret i32 %10
}
declare i32 @max(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb3/extr_xgmac.c_rx_fifo_hwm.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb3/extr_xgmac.c_rx_fifo_hwm.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAC_RXFIFO_SIZE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @rx_fifo_hwm], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @rx_fifo_hwm(i32 noundef %0) #0 {
%2 = load i32, ptr @MAC_RXFIFO_SIZE, align 4, !tbaa !6
%3 = mul i32 %0, -3
%4 = add i32 %2, %3
%5 = mul nsw i32 %2, 38
%6 = sdiv i32 %5, 100
%7 = tail call i32 @max(i32 noundef %4, i32 noundef %6) #2
%8 = load i32, ptr @MAC_RXFIFO_SIZE, align 4, !tbaa !6
%9 = add nsw i32 %8, -8192
%10 = tail call i32 @min(i32 noundef %7, i32 noundef %9) #2
ret i32 %10
}
declare i32 @max(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_chelsio_cxgb3_extr_xgmac.c_rx_fifo_hwm |
; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_perf_event_sched_in.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_perf_event_sched_in.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"
@EVENT_PINNED = dso_local local_unnamed_addr global i32 0, align 4
@EVENT_FLEXIBLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @perf_event_sched_in], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @perf_event_sched_in(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @EVENT_PINNED, align 4, !tbaa !5
%5 = tail call i32 @cpu_ctx_sched_in(ptr noundef %0, i32 noundef %4, ptr noundef %2) #2
%6 = icmp eq ptr %1, null
br i1 %6, label %14, label %7
7: ; preds = %3
%8 = load i32, ptr @EVENT_PINNED, align 4, !tbaa !5
%9 = tail call i32 @ctx_sched_in(ptr noundef nonnull %1, ptr noundef %0, i32 noundef %8, ptr noundef %2) #2
%10 = load i32, ptr @EVENT_FLEXIBLE, align 4, !tbaa !5
%11 = tail call i32 @cpu_ctx_sched_in(ptr noundef %0, i32 noundef %10, ptr noundef %2) #2
%12 = load i32, ptr @EVENT_FLEXIBLE, align 4, !tbaa !5
%13 = tail call i32 @ctx_sched_in(ptr noundef nonnull %1, ptr noundef %0, i32 noundef %12, ptr noundef %2) #2
br label %17
14: ; preds = %3
%15 = load i32, ptr @EVENT_FLEXIBLE, align 4, !tbaa !5
%16 = tail call i32 @cpu_ctx_sched_in(ptr noundef %0, i32 noundef %15, ptr noundef %2) #2
br label %17
17: ; preds = %14, %7
ret void
}
declare i32 @cpu_ctx_sched_in(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ctx_sched_in(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"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_perf_event_sched_in.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_perf_event_sched_in.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EVENT_PINNED = common local_unnamed_addr global i32 0, align 4
@EVENT_FLEXIBLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @perf_event_sched_in], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @perf_event_sched_in(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @EVENT_PINNED, align 4, !tbaa !6
%5 = tail call i32 @cpu_ctx_sched_in(ptr noundef %0, i32 noundef %4, ptr noundef %2) #2
%6 = icmp eq ptr %1, null
br i1 %6, label %14, label %7
7: ; preds = %3
%8 = load i32, ptr @EVENT_PINNED, align 4, !tbaa !6
%9 = tail call i32 @ctx_sched_in(ptr noundef nonnull %1, ptr noundef %0, i32 noundef %8, ptr noundef %2) #2
%10 = load i32, ptr @EVENT_FLEXIBLE, align 4, !tbaa !6
%11 = tail call i32 @cpu_ctx_sched_in(ptr noundef %0, i32 noundef %10, ptr noundef %2) #2
%12 = load i32, ptr @EVENT_FLEXIBLE, align 4, !tbaa !6
%13 = tail call i32 @ctx_sched_in(ptr noundef nonnull %1, ptr noundef %0, i32 noundef %12, ptr noundef %2) #2
br label %17
14: ; preds = %3
%15 = load i32, ptr @EVENT_FLEXIBLE, align 4, !tbaa !6
%16 = tail call i32 @cpu_ctx_sched_in(ptr noundef %0, i32 noundef %15, ptr noundef %2) #2
br label %17
17: ; preds = %14, %7
ret void
}
declare i32 @cpu_ctx_sched_in(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ctx_sched_in(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"}
| fastsocket_kernel_kernel_events_extr_core.c_perf_event_sched_in |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_sysfs.c_gt_max_freq_mhz_show.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_sysfs.c_gt_max_freq_mhz_show.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @gt_max_freq_mhz_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @gt_max_freq_mhz_show(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @kdev_minor_to_i915(ptr noundef %0) #2
%5 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
%6 = load i32, ptr %4, align 4, !tbaa !9
%7 = tail call i32 @intel_gpu_freq(ptr noundef nonnull %4, i32 noundef %6) #2
%8 = tail call i32 @snprintf(ptr noundef %2, i32 noundef %5, ptr noundef nonnull @.str, i32 noundef %7) #2
ret i32 %8
}
declare ptr @kdev_minor_to_i915(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @intel_gpu_freq(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, !6, i64 0}
!10 = !{!"drm_i915_private", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_sysfs.c_gt_max_freq_mhz_show.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_sysfs.c_gt_max_freq_mhz_show.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @gt_max_freq_mhz_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @gt_max_freq_mhz_show(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @kdev_minor_to_i915(ptr noundef %0) #2
%5 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
%6 = load i32, ptr %4, align 4, !tbaa !10
%7 = tail call i32 @intel_gpu_freq(ptr noundef nonnull %4, i32 noundef %6) #2
%8 = tail call i32 @snprintf(ptr noundef %2, i32 noundef %5, ptr noundef nonnull @.str, i32 noundef %7) #2
ret i32 %8
}
declare ptr @kdev_minor_to_i915(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @intel_gpu_freq(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, !7, i64 0}
!11 = !{!"drm_i915_private", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0}
| linux_drivers_gpu_drm_i915_extr_i915_sysfs.c_gt_max_freq_mhz_show |
; ModuleID = 'AnghaBench/nginx/src/os/unix/extr_ngx_files.c_ngx_set_file_time.c'
source_filename = "AnghaBench/nginx/src/os/unix/extr_ngx_files.c_ngx_set_file_time.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.timeval = type { i64, i32 }
@NGX_OK = dso_local local_unnamed_addr global i32 0, align 4
@NGX_ERROR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ngx_set_file_time(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = alloca [2 x %struct.timeval], align 16
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
%5 = tail call i32 (...) @ngx_time() #4
%6 = getelementptr inbounds %struct.timeval, ptr %4, i64 0, i32 1
store i32 %5, ptr %6, align 8, !tbaa !5
store i64 0, ptr %4, align 16, !tbaa !11
%7 = getelementptr inbounds [2 x %struct.timeval], ptr %4, i64 0, i64 1
%8 = getelementptr inbounds [2 x %struct.timeval], ptr %4, i64 0, i64 1, i32 1
store i32 %2, ptr %8, align 8, !tbaa !5
store i64 0, ptr %7, align 16, !tbaa !11
%9 = call i32 @utimes(ptr noundef %0, ptr noundef nonnull %4)
%10 = icmp eq i32 %9, -1
%11 = load i32, ptr @NGX_ERROR, align 4
%12 = load i32, ptr @NGX_OK, align 4
%13 = select i1 %10, i32 %11, i32 %12
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
ret i32 %13
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ngx_time(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @utimes(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-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 "no-trapping-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, !10, i64 8}
!6 = !{!"timeval", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/nginx/src/os/unix/extr_ngx_files.c_ngx_set_file_time.c'
source_filename = "AnghaBench/nginx/src/os/unix/extr_ngx_files.c_ngx_set_file_time.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.timeval = type { i64, i32 }
@NGX_OK = common local_unnamed_addr global i32 0, align 4
@NGX_ERROR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ngx_set_file_time(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = alloca [2 x %struct.timeval], align 8
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
%5 = tail call i32 @ngx_time() #4
%6 = getelementptr inbounds i8, ptr %4, i64 8
store i32 %5, ptr %6, align 8, !tbaa !6
store i64 0, ptr %4, align 8, !tbaa !12
%7 = getelementptr inbounds i8, ptr %4, i64 16
%8 = getelementptr inbounds i8, ptr %4, i64 24
store i32 %2, ptr %8, align 8, !tbaa !6
store i64 0, ptr %7, align 8, !tbaa !12
%9 = call i32 @utimes(ptr noundef %0, ptr noundef nonnull %4)
%10 = icmp eq i32 %9, -1
%11 = load i32, ptr @NGX_ERROR, align 4
%12 = load i32, ptr @NGX_OK, align 4
%13 = select i1 %10, i32 %11, i32 %12
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
ret i32 %13
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ngx_time(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @utimes(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+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 "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+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, !11, i64 8}
!7 = !{!"timeval", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !8, i64 0}
| nginx_src_os_unix_extr_ngx_files.c_ngx_set_file_time |
; ModuleID = 'AnghaBench/freebsd/contrib/elftoolchain/readelf/extr_readelf.c_hex_dump.c'
source_filename = "AnghaBench/freebsd/contrib/elftoolchain/readelf/extr_readelf.c_hex_dump.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.readelf = type { i64, ptr }
%struct.section = type { ptr, i64, i32 }
%struct.TYPE_4__ = type { i64, ptr }
@HEX_DUMP = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"elf_getdata failed: %s\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"\0ASection '%s' has no data to dump.\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"\0AHex dump of section '%s':\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c" 0x%8.8jx \00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%2.2x\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c" \00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @hex_dump], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @hex_dump(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = icmp ugt i64 %2, 1
br i1 %3, label %4, label %96
4: ; preds = %1
%5 = getelementptr inbounds %struct.readelf, ptr %0, i64 0, i32 1
br label %6
6: ; preds = %4, %92
%7 = phi i64 [ 1, %4 ], [ %93, %92 ]
%8 = load ptr, ptr %5, align 8, !tbaa !11
%9 = getelementptr inbounds %struct.section, ptr %8, i64 %7
%10 = load ptr, ptr %9, align 8, !tbaa !12
%11 = load i32, ptr @HEX_DUMP, align 4, !tbaa !15
%12 = tail call ptr @find_dumpop(ptr noundef nonnull %0, i64 noundef %7, ptr noundef %10, i32 noundef %11, i32 noundef -1) #5
%13 = icmp eq ptr %12, null
br i1 %13, label %92, label %14
14: ; preds = %6
%15 = tail call i32 (...) @elf_errno() #5
%16 = getelementptr inbounds %struct.section, ptr %8, i64 %7, i32 2
%17 = load i32, ptr %16, align 8, !tbaa !16
%18 = tail call ptr @elf_getdata(i32 noundef %17, ptr noundef null) #5
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %30
20: ; preds = %14
%21 = load i32, ptr %16, align 8, !tbaa !16
%22 = tail call ptr @elf_rawdata(i32 noundef %21, ptr noundef null) #5
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = tail call i32 (...) @elf_errno() #5
%26 = icmp eq i32 %25, 0
br i1 %26, label %92, label %27
27: ; preds = %24
%28 = tail call i32 @elf_errmsg(i32 noundef %25) #5
%29 = tail call i32 @warnx(ptr noundef nonnull @.str, i32 noundef %28) #5
br label %92
30: ; preds = %20, %14
%31 = phi ptr [ %22, %20 ], [ %18, %14 ]
%32 = tail call i32 (...) @elf_errno() #5
%33 = load i64, ptr %31, align 8, !tbaa !17
%34 = icmp eq i64 %33, 0
br i1 %34, label %39, label %35
35: ; preds = %30
%36 = getelementptr inbounds %struct.TYPE_4__, ptr %31, i64 0, i32 1
%37 = load ptr, ptr %36, align 8, !tbaa !19
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %42
39: ; preds = %35, %30
%40 = load ptr, ptr %9, align 8, !tbaa !12
%41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %40)
br label %92
42: ; preds = %35
%43 = getelementptr inbounds %struct.section, ptr %8, i64 %7, i32 1
%44 = load i64, ptr %43, align 8, !tbaa !20
%45 = load ptr, ptr %9, align 8, !tbaa !12
%46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %45)
br label %47
47: ; preds = %42, %86
%48 = phi i64 [ %44, %42 ], [ %89, %86 ]
%49 = phi ptr [ %37, %42 ], [ %88, %86 ]
%50 = phi i64 [ %33, %42 ], [ %90, %86 ]
%51 = trunc i64 %48 to i32
%52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %51)
br label %53
53: ; preds = %47, %67
%54 = phi i64 [ 0, %47 ], [ %68, %67 ]
%55 = icmp ugt i64 %50, %54
br i1 %55, label %56, label %60
56: ; preds = %53
%57 = getelementptr inbounds i32, ptr %49, i64 %54
%58 = load i32, ptr %57, align 4, !tbaa !15
%59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %58)
br label %62
60: ; preds = %53
%61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
br label %62
62: ; preds = %60, %56
%63 = and i64 %54, 3
%64 = icmp eq i64 %63, 3
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = tail call i32 @putchar(i32 32)
br label %67
67: ; preds = %62, %65
%68 = add nuw nsw i64 %54, 1
%69 = icmp eq i64 %68, 16
br i1 %69, label %70, label %53, !llvm.loop !21
70: ; preds = %67
%71 = tail call i64 @llvm.umin.i64(i64 %50, i64 16)
%72 = tail call i64 @llvm.umax.i64(i64 %71, i64 1)
br label %73
73: ; preds = %70, %81
%74 = phi i64 [ 0, %70 ], [ %84, %81 ]
%75 = getelementptr inbounds i32, ptr %49, i64 %74
%76 = load i32, ptr %75, align 4, !tbaa !15
%77 = tail call i64 @isprint(i32 noundef %76) #5
%78 = icmp eq i64 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %73
%80 = load i32, ptr %75, align 4, !tbaa !15
br label %81
81: ; preds = %73, %79
%82 = phi i32 [ %80, %79 ], [ 46, %73 ]
%83 = tail call i32 @putchar(i32 %82)
%84 = add nuw nsw i64 %74, 1
%85 = icmp eq i64 %84, %72
br i1 %85, label %86, label %73, !llvm.loop !23
86: ; preds = %81
%87 = tail call i32 @putchar(i32 10)
%88 = getelementptr inbounds i32, ptr %49, i64 %71
%89 = add i64 %48, %71
%90 = sub i64 %50, %71
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %47, !llvm.loop !24
92: ; preds = %86, %24, %27, %6, %39
%93 = add nuw i64 %7, 1
%94 = load i64, ptr %0, align 8, !tbaa !5
%95 = icmp ugt i64 %94, %93
br i1 %95, label %6, label %96, !llvm.loop !25
96: ; preds = %92, %1
ret void
}
declare ptr @find_dumpop(ptr noundef, i64 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @elf_errno(...) local_unnamed_addr #1
declare ptr @elf_getdata(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @elf_rawdata(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @warnx(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @elf_errmsg(i32 noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i64 @isprint(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nofree nounwind }
attributes #5 = { 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 = !{!"readelf", !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 = !{!6, !10, i64 8}
!12 = !{!13, !10, i64 0}
!13 = !{!"section", !10, i64 0, !7, i64 8, !14, i64 16}
!14 = !{!"int", !8, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!13, !14, i64 16}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_4__", !7, i64 0, !10, i64 8}
!19 = !{!18, !10, i64 8}
!20 = !{!13, !7, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
| ; ModuleID = 'AnghaBench/freebsd/contrib/elftoolchain/readelf/extr_readelf.c_hex_dump.c'
source_filename = "AnghaBench/freebsd/contrib/elftoolchain/readelf/extr_readelf.c_hex_dump.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.section = type { ptr, i64, i32 }
@HEX_DUMP = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"elf_getdata failed: %s\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"\0ASection '%s' has no data to dump.\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"\0AHex dump of section '%s':\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c" 0x%8.8jx \00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"%2.2x\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c" \00", align 1
@llvm.used = appending global [1 x ptr] [ptr @hex_dump], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @hex_dump(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = icmp ugt i64 %2, 1
br i1 %3, label %4, label %96
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 8
br label %6
6: ; preds = %4, %92
%7 = phi i64 [ 1, %4 ], [ %93, %92 ]
%8 = load ptr, ptr %5, align 8, !tbaa !12
%9 = getelementptr inbounds %struct.section, ptr %8, i64 %7
%10 = load ptr, ptr %9, align 8, !tbaa !13
%11 = load i32, ptr @HEX_DUMP, align 4, !tbaa !16
%12 = tail call ptr @find_dumpop(ptr noundef nonnull %0, i64 noundef %7, ptr noundef %10, i32 noundef %11, i32 noundef -1) #5
%13 = icmp eq ptr %12, null
br i1 %13, label %92, label %14
14: ; preds = %6
%15 = tail call i32 @elf_errno() #5
%16 = getelementptr inbounds i8, ptr %9, i64 16
%17 = load i32, ptr %16, align 8, !tbaa !17
%18 = tail call ptr @elf_getdata(i32 noundef %17, ptr noundef null) #5
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %30
20: ; preds = %14
%21 = load i32, ptr %16, align 8, !tbaa !17
%22 = tail call ptr @elf_rawdata(i32 noundef %21, ptr noundef null) #5
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = tail call i32 @elf_errno() #5
%26 = icmp eq i32 %25, 0
br i1 %26, label %92, label %27
27: ; preds = %24
%28 = tail call i32 @elf_errmsg(i32 noundef %25) #5
%29 = tail call i32 @warnx(ptr noundef nonnull @.str, i32 noundef %28) #5
br label %92
30: ; preds = %20, %14
%31 = phi ptr [ %22, %20 ], [ %18, %14 ]
%32 = tail call i32 @elf_errno() #5
%33 = load i64, ptr %31, align 8, !tbaa !18
%34 = icmp eq i64 %33, 0
br i1 %34, label %39, label %35
35: ; preds = %30
%36 = getelementptr inbounds i8, ptr %31, i64 8
%37 = load ptr, ptr %36, align 8, !tbaa !20
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %42
39: ; preds = %35, %30
%40 = load ptr, ptr %9, align 8, !tbaa !13
%41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %40)
br label %92
42: ; preds = %35
%43 = getelementptr inbounds i8, ptr %9, i64 8
%44 = load i64, ptr %43, align 8, !tbaa !21
%45 = load ptr, ptr %9, align 8, !tbaa !13
%46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %45)
br label %47
47: ; preds = %42, %86
%48 = phi i64 [ %44, %42 ], [ %89, %86 ]
%49 = phi ptr [ %37, %42 ], [ %88, %86 ]
%50 = phi i64 [ %33, %42 ], [ %90, %86 ]
%51 = trunc i64 %48 to i32
%52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %51)
br label %53
53: ; preds = %47, %67
%54 = phi i64 [ 0, %47 ], [ %68, %67 ]
%55 = icmp ugt i64 %50, %54
br i1 %55, label %56, label %60
56: ; preds = %53
%57 = getelementptr inbounds i32, ptr %49, i64 %54
%58 = load i32, ptr %57, align 4, !tbaa !16
%59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %58)
br label %62
60: ; preds = %53
%61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
br label %62
62: ; preds = %60, %56
%63 = and i64 %54, 3
%64 = icmp eq i64 %63, 3
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = tail call i32 @putchar(i32 32)
br label %67
67: ; preds = %62, %65
%68 = add nuw nsw i64 %54, 1
%69 = icmp eq i64 %68, 16
br i1 %69, label %70, label %53, !llvm.loop !22
70: ; preds = %67
%71 = tail call i64 @llvm.umin.i64(i64 %50, i64 16)
%72 = tail call i64 @llvm.umax.i64(i64 %71, i64 1)
br label %73
73: ; preds = %70, %81
%74 = phi i64 [ 0, %70 ], [ %84, %81 ]
%75 = getelementptr inbounds i32, ptr %49, i64 %74
%76 = load i32, ptr %75, align 4, !tbaa !16
%77 = tail call i64 @isprint(i32 noundef %76) #5
%78 = icmp eq i64 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %73
%80 = load i32, ptr %75, align 4, !tbaa !16
br label %81
81: ; preds = %73, %79
%82 = phi i32 [ %80, %79 ], [ 46, %73 ]
%83 = tail call i32 @putchar(i32 %82)
%84 = add nuw nsw i64 %74, 1
%85 = icmp eq i64 %84, %72
br i1 %85, label %86, label %73, !llvm.loop !24
86: ; preds = %81
%87 = tail call i32 @putchar(i32 10)
%88 = getelementptr inbounds i32, ptr %49, i64 %71
%89 = add i64 %48, %71
%90 = sub i64 %50, %71
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %47, !llvm.loop !25
92: ; preds = %86, %24, %27, %6, %39
%93 = add nuw nsw i64 %7, 1
%94 = load i64, ptr %0, align 8, !tbaa !6
%95 = icmp ugt i64 %94, %93
br i1 %95, label %6, label %96, !llvm.loop !26
96: ; preds = %92, %1
ret void
}
declare ptr @find_dumpop(ptr noundef, i64 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @elf_errno(...) local_unnamed_addr #1
declare ptr @elf_getdata(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @elf_rawdata(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @warnx(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @elf_errmsg(i32 noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i64 @isprint(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #4
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nofree nounwind }
attributes #5 = { 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 = !{!"readelf", !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 = !{!7, !11, i64 8}
!13 = !{!14, !11, i64 0}
!14 = !{!"section", !11, i64 0, !8, i64 8, !15, i64 16}
!15 = !{!"int", !9, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!14, !15, i64 16}
!18 = !{!19, !8, i64 0}
!19 = !{!"TYPE_4__", !8, i64 0, !11, i64 8}
!20 = !{!19, !11, i64 8}
!21 = !{!14, !8, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
| freebsd_contrib_elftoolchain_readelf_extr_readelf.c_hex_dump |
; ModuleID = 'AnghaBench/openssl/crypto/x509/extr_x509name.c_X509_NAME_add_entry_by_txt.c'
source_filename = "AnghaBench/openssl/crypto/x509/extr_x509name.c_X509_NAME_add_entry_by_txt.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 @X509_NAME_add_entry_by_txt(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 {
%8 = tail call ptr @X509_NAME_ENTRY_create_by_txt(ptr noundef null, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = tail call i32 @X509_NAME_add_entry(ptr noundef %0, ptr noundef nonnull %8, i32 noundef %5, i32 noundef %6) #2
%12 = tail call i32 @X509_NAME_ENTRY_free(ptr noundef nonnull %8) #2
br label %13
13: ; preds = %7, %10
%14 = phi i32 [ %11, %10 ], [ 0, %7 ]
ret i32 %14
}
declare ptr @X509_NAME_ENTRY_create_by_txt(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @X509_NAME_add_entry(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @X509_NAME_ENTRY_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/openssl/crypto/x509/extr_x509name.c_X509_NAME_add_entry_by_txt.c'
source_filename = "AnghaBench/openssl/crypto/x509/extr_x509name.c_X509_NAME_add_entry_by_txt.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 @X509_NAME_add_entry_by_txt(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 {
%8 = tail call ptr @X509_NAME_ENTRY_create_by_txt(ptr noundef null, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = tail call i32 @X509_NAME_add_entry(ptr noundef %0, ptr noundef nonnull %8, i32 noundef %5, i32 noundef %6) #2
%12 = tail call i32 @X509_NAME_ENTRY_free(ptr noundef nonnull %8) #2
br label %13
13: ; preds = %7, %10
%14 = phi i32 [ %11, %10 ], [ 0, %7 ]
ret i32 %14
}
declare ptr @X509_NAME_ENTRY_create_by_txt(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @X509_NAME_add_entry(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @X509_NAME_ENTRY_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| openssl_crypto_x509_extr_x509name.c_X509_NAME_add_entry_by_txt |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/uvc/extr_uvc_queue.c_uvc_queue_waiton.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/uvc/extr_uvc_queue.c_uvc_queue_waiton.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.uvc_buffer = type { i64, i32 }
@UVC_BUF_STATE_QUEUED = dso_local local_unnamed_addr global i64 0, align 8
@UVC_BUF_STATE_ACTIVE = dso_local local_unnamed_addr global i64 0, align 8
@UVC_BUF_STATE_READY = dso_local local_unnamed_addr global i64 0, align 8
@EAGAIN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @uvc_queue_waiton], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @uvc_queue_waiton(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
br i1 %3, label %17, label %4
4: ; preds = %2
%5 = load i64, ptr %0, align 8, !tbaa !5
%6 = load i64, ptr @UVC_BUF_STATE_QUEUED, align 8, !tbaa !11
%7 = icmp eq i64 %5, %6
%8 = load i64, ptr @UVC_BUF_STATE_ACTIVE, align 8
%9 = icmp eq i64 %5, %8
%10 = select i1 %7, i1 true, i1 %9
%11 = load i64, ptr @UVC_BUF_STATE_READY, align 8
%12 = icmp eq i64 %5, %11
%13 = select i1 %10, i1 true, i1 %12
%14 = load i32, ptr @EAGAIN, align 4
%15 = sub nsw i32 0, %14
%16 = select i1 %13, i32 %15, i32 0
br label %31
17: ; preds = %2
%18 = getelementptr inbounds %struct.uvc_buffer, ptr %0, i64 0, i32 1
%19 = load i32, ptr %18, align 8, !tbaa !12
%20 = load i64, ptr %0, align 8, !tbaa !5
%21 = load i64, ptr @UVC_BUF_STATE_QUEUED, align 8, !tbaa !11
%22 = icmp ne i64 %20, %21
%23 = load i64, ptr @UVC_BUF_STATE_ACTIVE, align 8
%24 = icmp ne i64 %20, %23
%25 = select i1 %22, i1 %24, i1 false
%26 = load i64, ptr @UVC_BUF_STATE_READY, align 8
%27 = icmp ne i64 %20, %26
%28 = select i1 %25, i1 %27, i1 false
%29 = zext i1 %28 to i32
%30 = tail call i32 @wait_event_interruptible(i32 noundef %19, i32 noundef %29) #2
br label %31
31: ; preds = %17, %4
%32 = phi i32 [ %16, %4 ], [ %30, %17 ]
ret i32 %32
}
declare i32 @wait_event_interruptible(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 = !{!"uvc_buffer", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/uvc/extr_uvc_queue.c_uvc_queue_waiton.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/uvc/extr_uvc_queue.c_uvc_queue_waiton.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UVC_BUF_STATE_QUEUED = common local_unnamed_addr global i64 0, align 8
@UVC_BUF_STATE_ACTIVE = common local_unnamed_addr global i64 0, align 8
@UVC_BUF_STATE_READY = common local_unnamed_addr global i64 0, align 8
@EAGAIN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @uvc_queue_waiton], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @uvc_queue_waiton(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
br i1 %3, label %17, label %4
4: ; preds = %2
%5 = load i64, ptr %0, align 8, !tbaa !6
%6 = load i64, ptr @UVC_BUF_STATE_QUEUED, align 8, !tbaa !12
%7 = icmp eq i64 %5, %6
%8 = load i64, ptr @UVC_BUF_STATE_ACTIVE, align 8
%9 = icmp eq i64 %5, %8
%10 = select i1 %7, i1 true, i1 %9
%11 = load i64, ptr @UVC_BUF_STATE_READY, align 8
%12 = icmp eq i64 %5, %11
%13 = select i1 %10, i1 true, i1 %12
%14 = load i32, ptr @EAGAIN, align 4
%15 = sub nsw i32 0, %14
%16 = select i1 %13, i32 %15, i32 0
br label %31
17: ; preds = %2
%18 = getelementptr inbounds i8, ptr %0, i64 8
%19 = load i32, ptr %18, align 8, !tbaa !13
%20 = load i64, ptr %0, align 8, !tbaa !6
%21 = load i64, ptr @UVC_BUF_STATE_QUEUED, align 8, !tbaa !12
%22 = icmp ne i64 %20, %21
%23 = load i64, ptr @UVC_BUF_STATE_ACTIVE, align 8
%24 = icmp ne i64 %20, %23
%25 = select i1 %22, i1 %24, i1 false
%26 = load i64, ptr @UVC_BUF_STATE_READY, align 8
%27 = icmp ne i64 %20, %26
%28 = select i1 %25, i1 %27, i1 false
%29 = zext i1 %28 to i32
%30 = tail call i32 @wait_event_interruptible(i32 noundef %19, i32 noundef %29) #2
br label %31
31: ; preds = %17, %4
%32 = phi i32 [ %16, %4 ], [ %30, %17 ]
ret i32 %32
}
declare i32 @wait_event_interruptible(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 = !{!"uvc_buffer", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
| fastsocket_kernel_drivers_media_video_uvc_extr_uvc_queue.c_uvc_queue_waiton |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/video/console/extr_vgacon.c_vgacon_set_cursor_size.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/video/console/extr_vgacon.c_vgacon_set_cursor_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"
@cursor_size_lastfrom = dso_local local_unnamed_addr global i32 0, align 4
@cursor_size_lastto = dso_local local_unnamed_addr global i32 0, align 4
@vga_lock = dso_local global i32 0, align 4
@vga_video_type = dso_local local_unnamed_addr global i64 0, align 8
@VIDEO_TYPE_VGAC = dso_local local_unnamed_addr global i64 0, align 8
@VGA_CRTC_CURSOR_START = dso_local local_unnamed_addr global i32 0, align 4
@vga_video_port_reg = dso_local local_unnamed_addr global i32 0, align 4
@vga_video_port_val = dso_local local_unnamed_addr global i32 0, align 4
@VGA_CRTC_CURSOR_END = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vgacon_set_cursor_size], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @vgacon_set_cursor_size(i32 %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr @cursor_size_lastfrom, align 4, !tbaa !5
%5 = icmp eq i32 %4, %1
%6 = load i32, ptr @cursor_size_lastto, align 4
%7 = icmp eq i32 %6, %2
%8 = select i1 %5, i1 %7, i1 false
br i1 %8, label %43, label %9
9: ; preds = %3
store i32 %1, ptr @cursor_size_lastfrom, align 4, !tbaa !5
store i32 %2, ptr @cursor_size_lastto, align 4, !tbaa !5
%10 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @vga_lock, i64 noundef undef) #2
%11 = load i64, ptr @vga_video_type, align 8, !tbaa !9
%12 = load i64, ptr @VIDEO_TYPE_VGAC, align 8, !tbaa !9
%13 = icmp slt i64 %11, %12
br i1 %13, label %27, label %14
14: ; preds = %9
%15 = load i32, ptr @VGA_CRTC_CURSOR_START, align 4, !tbaa !5
%16 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !5
%17 = tail call i32 @outb_p(i32 noundef %15, i32 noundef %16) #2
%18 = load i32, ptr @vga_video_port_val, align 4, !tbaa !5
%19 = tail call i32 @inb_p(i32 noundef %18) #2
%20 = load i32, ptr @VGA_CRTC_CURSOR_END, align 4, !tbaa !5
%21 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !5
%22 = tail call i32 @outb_p(i32 noundef %20, i32 noundef %21) #2
%23 = load i32, ptr @vga_video_port_val, align 4, !tbaa !5
%24 = tail call i32 @inb_p(i32 noundef %23) #2
%25 = and i32 %19, 192
%26 = and i32 %24, 224
br label %27
27: ; preds = %9, %14
%28 = phi i32 [ %25, %14 ], [ 0, %9 ]
%29 = phi i32 [ %26, %14 ], [ 0, %9 ]
%30 = or i32 %28, %1
%31 = or i32 %29, %2
%32 = load i32, ptr @VGA_CRTC_CURSOR_START, align 4, !tbaa !5
%33 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !5
%34 = tail call i32 @outb_p(i32 noundef %32, i32 noundef %33) #2
%35 = load i32, ptr @vga_video_port_val, align 4, !tbaa !5
%36 = tail call i32 @outb_p(i32 noundef %30, i32 noundef %35) #2
%37 = load i32, ptr @VGA_CRTC_CURSOR_END, align 4, !tbaa !5
%38 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !5
%39 = tail call i32 @outb_p(i32 noundef %37, i32 noundef %38) #2
%40 = load i32, ptr @vga_video_port_val, align 4, !tbaa !5
%41 = tail call i32 @outb_p(i32 noundef %31, i32 noundef %40) #2
%42 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @vga_lock, i64 noundef undef) #2
br label %43
43: ; preds = %3, %27
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @outb_p(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @inb_p(i32 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/video/console/extr_vgacon.c_vgacon_set_cursor_size.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/video/console/extr_vgacon.c_vgacon_set_cursor_size.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@cursor_size_lastfrom = common local_unnamed_addr global i32 0, align 4
@cursor_size_lastto = common local_unnamed_addr global i32 0, align 4
@vga_lock = common global i32 0, align 4
@vga_video_type = common local_unnamed_addr global i64 0, align 8
@VIDEO_TYPE_VGAC = common local_unnamed_addr global i64 0, align 8
@VGA_CRTC_CURSOR_START = common local_unnamed_addr global i32 0, align 4
@vga_video_port_reg = common local_unnamed_addr global i32 0, align 4
@vga_video_port_val = common local_unnamed_addr global i32 0, align 4
@VGA_CRTC_CURSOR_END = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vgacon_set_cursor_size], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @vgacon_set_cursor_size(i32 %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr @cursor_size_lastfrom, align 4, !tbaa !6
%5 = icmp eq i32 %4, %1
%6 = load i32, ptr @cursor_size_lastto, align 4
%7 = icmp eq i32 %6, %2
%8 = select i1 %5, i1 %7, i1 false
br i1 %8, label %43, label %9
9: ; preds = %3
store i32 %1, ptr @cursor_size_lastfrom, align 4, !tbaa !6
store i32 %2, ptr @cursor_size_lastto, align 4, !tbaa !6
%10 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @vga_lock, i64 noundef undef) #2
%11 = load i64, ptr @vga_video_type, align 8, !tbaa !10
%12 = load i64, ptr @VIDEO_TYPE_VGAC, align 8, !tbaa !10
%13 = icmp slt i64 %11, %12
br i1 %13, label %27, label %14
14: ; preds = %9
%15 = load i32, ptr @VGA_CRTC_CURSOR_START, align 4, !tbaa !6
%16 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !6
%17 = tail call i32 @outb_p(i32 noundef %15, i32 noundef %16) #2
%18 = load i32, ptr @vga_video_port_val, align 4, !tbaa !6
%19 = tail call i32 @inb_p(i32 noundef %18) #2
%20 = load i32, ptr @VGA_CRTC_CURSOR_END, align 4, !tbaa !6
%21 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !6
%22 = tail call i32 @outb_p(i32 noundef %20, i32 noundef %21) #2
%23 = load i32, ptr @vga_video_port_val, align 4, !tbaa !6
%24 = tail call i32 @inb_p(i32 noundef %23) #2
%25 = and i32 %19, 192
%26 = and i32 %24, 224
br label %27
27: ; preds = %9, %14
%28 = phi i32 [ %25, %14 ], [ 0, %9 ]
%29 = phi i32 [ %26, %14 ], [ 0, %9 ]
%30 = or i32 %28, %1
%31 = or i32 %29, %2
%32 = load i32, ptr @VGA_CRTC_CURSOR_START, align 4, !tbaa !6
%33 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !6
%34 = tail call i32 @outb_p(i32 noundef %32, i32 noundef %33) #2
%35 = load i32, ptr @vga_video_port_val, align 4, !tbaa !6
%36 = tail call i32 @outb_p(i32 noundef %30, i32 noundef %35) #2
%37 = load i32, ptr @VGA_CRTC_CURSOR_END, align 4, !tbaa !6
%38 = load i32, ptr @vga_video_port_reg, align 4, !tbaa !6
%39 = tail call i32 @outb_p(i32 noundef %37, i32 noundef %38) #2
%40 = load i32, ptr @vga_video_port_val, align 4, !tbaa !6
%41 = tail call i32 @outb_p(i32 noundef %31, i32 noundef %40) #2
%42 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @vga_lock, i64 noundef undef) #2
br label %43
43: ; preds = %3, %27
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @outb_p(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @inb_p(i32 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 = !{!"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}
| fastsocket_kernel_drivers_video_console_extr_vgacon.c_vgacon_set_cursor_size |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/iavf/extr_iavf_txrx.c_iavf_clean_rx_ring.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/iavf/extr_iavf_txrx.c_iavf_clean_rx_ring.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.iavf_ring = type { i64, i64, i64, i64, i64, ptr, ptr, i32, i32, ptr }
%struct.iavf_rx_buffer = type { i64, ptr, i32, i32 }
@DMA_FROM_DEVICE = dso_local local_unnamed_addr global i32 0, align 4
@IAVF_RX_DMA_ATTR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @iavf_clean_rx_ring(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 6
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %60, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 9
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = icmp eq ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %5
%10 = tail call i32 @dev_kfree_skb(ptr noundef nonnull %7) #3
store ptr null, ptr %6, align 8, !tbaa !12
br label %11
11: ; preds = %9, %5
%12 = load i64, ptr %0, align 8, !tbaa !13
%13 = icmp eq i64 %12, 0
br i1 %13, label %50, label %14
14: ; preds = %11
%15 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 7
%16 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 8
br label %17
17: ; preds = %14, %44
%18 = phi i64 [ %12, %14 ], [ %45, %44 ]
%19 = phi i64 [ 0, %14 ], [ %46, %44 ]
%20 = load ptr, ptr %2, align 8, !tbaa !5
%21 = getelementptr inbounds %struct.iavf_rx_buffer, ptr %20, i64 %19, i32 1
%22 = load ptr, ptr %21, align 8, !tbaa !14
%23 = icmp eq ptr %22, null
br i1 %23, label %44, label %24
24: ; preds = %17
%25 = getelementptr inbounds %struct.iavf_rx_buffer, ptr %20, i64 %19
%26 = load i32, ptr %15, align 8, !tbaa !16
%27 = getelementptr inbounds %struct.iavf_rx_buffer, ptr %20, i64 %19, i32 3
%28 = load i32, ptr %27, align 4, !tbaa !17
%29 = load i64, ptr %25, align 8, !tbaa !18
%30 = load i32, ptr %16, align 4, !tbaa !19
%31 = load i32, ptr @DMA_FROM_DEVICE, align 4, !tbaa !20
%32 = tail call i32 @dma_sync_single_range_for_cpu(i32 noundef %26, i32 noundef %28, i64 noundef %29, i32 noundef %30, i32 noundef %31) #3
%33 = load i32, ptr %15, align 8, !tbaa !16
%34 = load i32, ptr %27, align 4, !tbaa !17
%35 = tail call i32 @iavf_rx_pg_size(ptr noundef nonnull %0) #3
%36 = load i32, ptr @DMA_FROM_DEVICE, align 4, !tbaa !20
%37 = load i32, ptr @IAVF_RX_DMA_ATTR, align 4, !tbaa !20
%38 = tail call i32 @dma_unmap_page_attrs(i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37) #3
%39 = load ptr, ptr %21, align 8, !tbaa !14
%40 = getelementptr inbounds %struct.iavf_rx_buffer, ptr %20, i64 %19, i32 2
%41 = load i32, ptr %40, align 8, !tbaa !21
%42 = tail call i32 @__page_frag_cache_drain(ptr noundef %39, i32 noundef %41) #3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %25, i8 0, i64 16, i1 false)
%43 = load i64, ptr %0, align 8, !tbaa !13
br label %44
44: ; preds = %17, %24
%45 = phi i64 [ %18, %17 ], [ %43, %24 ]
%46 = add nuw i64 %19, 1
%47 = icmp ult i64 %46, %45
br i1 %47, label %17, label %48, !llvm.loop !22
48: ; preds = %44
%49 = mul i64 %45, 24
br label %50
50: ; preds = %48, %11
%51 = phi i64 [ 0, %11 ], [ %49, %48 ]
%52 = load ptr, ptr %2, align 8, !tbaa !5
%53 = tail call i32 @memset(ptr noundef %52, i32 noundef 0, i64 noundef %51) #3
%54 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 5
%55 = load ptr, ptr %54, align 8, !tbaa !24
%56 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 1
%57 = load i64, ptr %56, align 8, !tbaa !25
%58 = tail call i32 @memset(ptr noundef %55, i32 noundef 0, i64 noundef %57) #3
%59 = getelementptr inbounds %struct.iavf_ring, ptr %0, i64 0, i32 2
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %59, i8 0, i64 24, i1 false)
br label %60
60: ; preds = %1, %50
ret void
}
declare i32 @dev_kfree_skb(ptr noundef) local_unnamed_addr #1
declare i32 @dma_sync_single_range_for_cpu(i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dma_unmap_page_attrs(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @iavf_rx_pg_size(ptr noundef) local_unnamed_addr #1
declare i32 @__page_frag_cache_drain(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i64 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, !10, i64 48}
!6 = !{!"iavf_ring", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !10, i64 64}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 64}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"iavf_rx_buffer", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20}
!16 = !{!6, !11, i64 56}
!17 = !{!15, !11, i64 20}
!18 = !{!15, !7, i64 0}
!19 = !{!6, !11, i64 60}
!20 = !{!11, !11, i64 0}
!21 = !{!15, !11, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !10, i64 40}
!25 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/iavf/extr_iavf_txrx.c_iavf_clean_rx_ring.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/iavf/extr_iavf_txrx.c_iavf_clean_rx_ring.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.iavf_rx_buffer = type { i64, ptr, i32, i32 }
@DMA_FROM_DEVICE = common local_unnamed_addr global i32 0, align 4
@IAVF_RX_DMA_ATTR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @iavf_clean_rx_ring(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 48
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %60, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 64
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = icmp eq ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %5
%10 = tail call i32 @dev_kfree_skb(ptr noundef nonnull %7) #3
store ptr null, ptr %6, align 8, !tbaa !13
br label %11
11: ; preds = %9, %5
%12 = load i64, ptr %0, align 8, !tbaa !14
%13 = icmp eq i64 %12, 0
br i1 %13, label %50, label %14
14: ; preds = %11
%15 = getelementptr inbounds i8, ptr %0, i64 56
%16 = getelementptr inbounds i8, ptr %0, i64 60
br label %17
17: ; preds = %14, %44
%18 = phi i64 [ %12, %14 ], [ %45, %44 ]
%19 = phi i64 [ 0, %14 ], [ %46, %44 ]
%20 = load ptr, ptr %2, align 8, !tbaa !6
%21 = getelementptr inbounds %struct.iavf_rx_buffer, ptr %20, i64 %19
%22 = getelementptr inbounds i8, ptr %21, i64 8
%23 = load ptr, ptr %22, align 8, !tbaa !15
%24 = icmp eq ptr %23, null
br i1 %24, label %44, label %25
25: ; preds = %17
%26 = load i32, ptr %15, align 8, !tbaa !17
%27 = getelementptr inbounds i8, ptr %21, i64 20
%28 = load i32, ptr %27, align 4, !tbaa !18
%29 = load i64, ptr %21, align 8, !tbaa !19
%30 = load i32, ptr %16, align 4, !tbaa !20
%31 = load i32, ptr @DMA_FROM_DEVICE, align 4, !tbaa !21
%32 = tail call i32 @dma_sync_single_range_for_cpu(i32 noundef %26, i32 noundef %28, i64 noundef %29, i32 noundef %30, i32 noundef %31) #3
%33 = load i32, ptr %15, align 8, !tbaa !17
%34 = load i32, ptr %27, align 4, !tbaa !18
%35 = tail call i32 @iavf_rx_pg_size(ptr noundef nonnull %0) #3
%36 = load i32, ptr @DMA_FROM_DEVICE, align 4, !tbaa !21
%37 = load i32, ptr @IAVF_RX_DMA_ATTR, align 4, !tbaa !21
%38 = tail call i32 @dma_unmap_page_attrs(i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37) #3
%39 = load ptr, ptr %22, align 8, !tbaa !15
%40 = getelementptr inbounds i8, ptr %21, i64 16
%41 = load i32, ptr %40, align 8, !tbaa !22
%42 = tail call i32 @__page_frag_cache_drain(ptr noundef %39, i32 noundef %41) #3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, i8 0, i64 16, i1 false)
%43 = load i64, ptr %0, align 8, !tbaa !14
br label %44
44: ; preds = %17, %25
%45 = phi i64 [ %18, %17 ], [ %43, %25 ]
%46 = add nuw i64 %19, 1
%47 = icmp ult i64 %46, %45
br i1 %47, label %17, label %48, !llvm.loop !23
48: ; preds = %44
%49 = mul i64 %45, 24
br label %50
50: ; preds = %48, %11
%51 = phi i64 [ 0, %11 ], [ %49, %48 ]
%52 = load ptr, ptr %2, align 8, !tbaa !6
%53 = tail call i32 @memset(ptr noundef %52, i32 noundef 0, i64 noundef %51) #3
%54 = getelementptr inbounds i8, ptr %0, i64 40
%55 = load ptr, ptr %54, align 8, !tbaa !25
%56 = getelementptr inbounds i8, ptr %0, i64 8
%57 = load i64, ptr %56, align 8, !tbaa !26
%58 = tail call i32 @memset(ptr noundef %55, i32 noundef 0, i64 noundef %57) #3
%59 = getelementptr inbounds i8, ptr %0, i64 16
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %59, i8 0, i64 24, i1 false)
br label %60
60: ; preds = %1, %50
ret void
}
declare i32 @dev_kfree_skb(ptr noundef) local_unnamed_addr #1
declare i32 @dma_sync_single_range_for_cpu(i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dma_unmap_page_attrs(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @iavf_rx_pg_size(ptr noundef) local_unnamed_addr #1
declare i32 @__page_frag_cache_drain(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i64 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, !11, i64 48}
!7 = !{!"iavf_ring", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !12, i64 60, !11, i64 64}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!7, !11, i64 64}
!14 = !{!7, !8, i64 0}
!15 = !{!16, !11, i64 8}
!16 = !{!"iavf_rx_buffer", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 20}
!17 = !{!7, !12, i64 56}
!18 = !{!16, !12, i64 20}
!19 = !{!16, !8, i64 0}
!20 = !{!7, !12, i64 60}
!21 = !{!12, !12, i64 0}
!22 = !{!16, !12, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!7, !11, i64 40}
!26 = !{!7, !8, i64 8}
| linux_drivers_net_ethernet_intel_iavf_extr_iavf_txrx.c_iavf_clean_rx_ring |
; ModuleID = 'AnghaBench/linux/kernel/trace/extr_ring_buffer.c_ring_buffer_nr_pages.c'
source_filename = "AnghaBench/linux/kernel/trace/extr_ring_buffer.c_ring_buffer_nr_pages.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(read, inaccessiblemem: none) uwtable
define dso_local i64 @ring_buffer_nr_pages(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds ptr, ptr %3, i64 %4
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = load i64, ptr %6, align 8, !tbaa !11
ret i64 %7
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ring_buffer", !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, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"long", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/kernel/trace/extr_ring_buffer.c_ring_buffer_nr_pages.c'
source_filename = "AnghaBench/linux/kernel/trace/extr_ring_buffer.c_ring_buffer_nr_pages.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(read, inaccessiblemem: none) uwtable(sync)
define i64 @ring_buffer_nr_pages(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds ptr, ptr %3, i64 %4
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load i64, ptr %6, align 8, !tbaa !12
ret i64 %7
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ring_buffer", !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, !14, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0}
!14 = !{!"long", !9, i64 0}
| linux_kernel_trace_extr_ring_buffer.c_ring_buffer_nr_pages |
; ModuleID = 'AnghaBench/obs-studio/plugins/win-capture/graphics-hook/extr_..hook-helpers.h_object_signalled.c'
source_filename = "AnghaBench/obs-studio/plugins/win-capture/graphics-hook/extr_..hook-helpers.h_object_signalled.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"
@WAIT_OBJECT_0 = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @object_signalled], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @object_signalled(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 0
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = tail call i64 @WaitForSingleObject(i32 noundef %0, i32 noundef 0) #2
%5 = load i64, ptr @WAIT_OBJECT_0, align 8, !tbaa !5
%6 = icmp eq i64 %4, %5
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %1, %3
%9 = phi i32 [ %7, %3 ], [ 0, %1 ]
ret i32 %9
}
declare i64 @WaitForSingleObject(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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/obs-studio/plugins/win-capture/graphics-hook/extr_..hook-helpers.h_object_signalled.c'
source_filename = "AnghaBench/obs-studio/plugins/win-capture/graphics-hook/extr_..hook-helpers.h_object_signalled.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WAIT_OBJECT_0 = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @object_signalled], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @object_signalled(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 0
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = tail call i64 @WaitForSingleObject(i32 noundef %0, i32 noundef 0) #2
%5 = load i64, ptr @WAIT_OBJECT_0, align 8, !tbaa !6
%6 = icmp eq i64 %4, %5
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %1, %3
%9 = phi i32 [ %7, %3 ], [ 0, %1 ]
ret i32 %9
}
declare i64 @WaitForSingleObject(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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| obs-studio_plugins_win-capture_graphics-hook_extr_..hook-helpers.h_object_signalled |
; ModuleID = 'AnghaBench/php-src/main/extr_snprintf.c___cvt.c'
source_filename = "AnghaBench/php-src/main/extr_snprintf.c___cvt.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 [4 x i8] c"INF\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"NAN\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @__cvt], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @__cvt(double noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
%8 = icmp slt i32 %1, 0
%9 = sub i32 1, %1
%10 = sext i32 %9 to i64
%11 = add nuw nsw i32 %1, 1
%12 = zext nneg i32 %11 to i64
%13 = select i1 %8, i64 %10, i64 %12
%14 = fcmp oeq double %0, 0.000000e+00
br i1 %14, label %15, label %24
15: ; preds = %6
%16 = sub nsw i32 1, %4
store i32 %16, ptr %2, align 4, !tbaa !5
store i32 0, ptr %3, align 4, !tbaa !5
%17 = icmp eq i32 %1, 0
%18 = select i1 %17, i64 2, i64 %13
%19 = tail call i64 @malloc(i64 noundef %18) #4
%20 = icmp eq i64 %19, 0
br i1 %20, label %101, label %21
21: ; preds = %15
%22 = inttoptr i64 %19 to ptr
%23 = getelementptr inbounds i8, ptr %22, i64 1
store ptr %23, ptr %7, align 8, !tbaa !9
store i8 48, ptr %22, align 1, !tbaa !11
store i8 0, ptr %23, align 1, !tbaa !11
br i1 %17, label %101, label %56
24: ; preds = %6
%25 = add nsw i32 %4, 2
%26 = call ptr @zend_dtoa(double noundef %0, i32 noundef %25, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %7) #4
%27 = load i32, ptr %2, align 4, !tbaa !5
%28 = icmp eq i32 %27, 9999
br i1 %28, label %29, label %35
29: ; preds = %24
store i32 0, ptr %2, align 4, !tbaa !5
%30 = load i8, ptr %26, align 1, !tbaa !11
%31 = call i32 @zend_freedtoa(ptr noundef nonnull %26) #4
%32 = icmp eq i8 %30, 73
%33 = select i1 %32, ptr @.str, ptr @.str.1
%34 = call dereferenceable_or_null(4) ptr @strdup(ptr noundef nonnull %33)
br label %101
35: ; preds = %24
%36 = icmp ne i32 %5, 0
%37 = icmp ne i32 %4, 0
%38 = and i1 %37, %36
%39 = sext i32 %27 to i64
%40 = select i1 %38, i64 %39, i64 0
%41 = add nsw i64 %40, %13
%42 = add nsw i64 %41, 1
%43 = call i64 @malloc(i64 noundef %42) #4
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %35
%46 = call i32 @zend_freedtoa(ptr noundef %26) #4
br label %101
47: ; preds = %35
%48 = inttoptr i64 %43 to ptr
%49 = call i32 @strlcpy(ptr noundef nonnull %48, ptr noundef %26, i64 noundef %41) #4
%50 = load ptr, ptr %7, align 8, !tbaa !9
%51 = ptrtoint ptr %50 to i64
%52 = ptrtoint ptr %26 to i64
%53 = sub i64 %51, %52
%54 = getelementptr inbounds i8, ptr %48, i64 %53
store ptr %54, ptr %7, align 8, !tbaa !9
%55 = call i32 @zend_freedtoa(ptr noundef %26) #4
br label %56
56: ; preds = %21, %47
%57 = phi ptr [ %22, %21 ], [ %48, %47 ]
%58 = phi i64 [ %13, %21 ], [ %41, %47 ]
%59 = icmp eq i32 %5, 0
br i1 %59, label %101, label %60
60: ; preds = %56
%61 = load ptr, ptr %7, align 8, !tbaa !9
%62 = ptrtoint ptr %61 to i64
%63 = ptrtoint ptr %57 to i64
%64 = add i64 %58, %63
%65 = xor i64 %62, -1
%66 = add i64 %64, %65
%67 = icmp eq i64 %66, 0
br i1 %67, label %99, label %68
68: ; preds = %60
%69 = add i64 %58, %63
%70 = add i64 %69, -2
%71 = sub i64 %70, %62
%72 = and i64 %66, 3
%73 = icmp eq i64 %72, 0
br i1 %73, label %82, label %74
74: ; preds = %68, %74
%75 = phi i64 [ %79, %74 ], [ %66, %68 ]
%76 = phi i64 [ %80, %74 ], [ 0, %68 ]
%77 = load ptr, ptr %7, align 8, !tbaa !9
%78 = getelementptr inbounds i8, ptr %77, i64 1
store ptr %78, ptr %7, align 8, !tbaa !9
store i8 48, ptr %77, align 1, !tbaa !11
%79 = add i64 %75, -1
%80 = add i64 %76, 1
%81 = icmp eq i64 %80, %72
br i1 %81, label %82, label %74, !llvm.loop !12
82: ; preds = %74, %68
%83 = phi i64 [ %66, %68 ], [ %79, %74 ]
%84 = icmp ult i64 %71, 3
br i1 %84, label %97, label %85
85: ; preds = %82, %85
%86 = phi i64 [ %95, %85 ], [ %83, %82 ]
%87 = load ptr, ptr %7, align 8, !tbaa !9
%88 = getelementptr inbounds i8, ptr %87, i64 1
store ptr %88, ptr %7, align 8, !tbaa !9
store i8 48, ptr %87, align 1, !tbaa !11
%89 = load ptr, ptr %7, align 8, !tbaa !9
%90 = getelementptr inbounds i8, ptr %89, i64 1
store ptr %90, ptr %7, align 8, !tbaa !9
store i8 48, ptr %89, align 1, !tbaa !11
%91 = load ptr, ptr %7, align 8, !tbaa !9
%92 = getelementptr inbounds i8, ptr %91, i64 1
store ptr %92, ptr %7, align 8, !tbaa !9
store i8 48, ptr %91, align 1, !tbaa !11
%93 = load ptr, ptr %7, align 8, !tbaa !9
%94 = getelementptr inbounds i8, ptr %93, i64 1
store ptr %94, ptr %7, align 8, !tbaa !9
store i8 48, ptr %93, align 1, !tbaa !11
%95 = add i64 %86, -4
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %85, !llvm.loop !14
97: ; preds = %85, %82
%98 = load ptr, ptr %7, align 8, !tbaa !9
br label %99
99: ; preds = %97, %60
%100 = phi ptr [ %98, %97 ], [ %61, %60 ]
store i8 0, ptr %100, align 1, !tbaa !11
br label %101
101: ; preds = %56, %99, %21, %15, %45, %29
%102 = phi ptr [ %34, %29 ], [ null, %45 ], [ null, %15 ], [ %22, %21 ], [ %57, %99 ], [ %57, %56 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
ret ptr %102
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @malloc(i64 noundef) local_unnamed_addr #2
declare ptr @zend_dtoa(double noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @zend_freedtoa(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 @strlcpy(ptr noundef, ptr 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 = { 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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/php-src/main/extr_snprintf.c___cvt.c'
source_filename = "AnghaBench/php-src/main/extr_snprintf.c___cvt.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 [4 x i8] c"INF\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"NAN\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @__cvt], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @__cvt(double noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
%8 = tail call i32 @llvm.abs.i32(i32 %1, i1 false)
%9 = add nuw i32 %8, 1
%10 = zext i32 %9 to i64
%11 = fcmp oeq double %0, 0.000000e+00
br i1 %11, label %12, label %21
12: ; preds = %6
%13 = sub nsw i32 1, %4
store i32 %13, ptr %2, align 4, !tbaa !6
store i32 0, ptr %3, align 4, !tbaa !6
%14 = icmp eq i32 %1, 0
%15 = select i1 %14, i64 2, i64 %10
%16 = tail call i64 @malloc(i64 noundef %15) #5
%17 = icmp eq i64 %16, 0
br i1 %17, label %75, label %18
18: ; preds = %12
%19 = inttoptr i64 %16 to ptr
%20 = getelementptr inbounds i8, ptr %19, i64 1
store ptr %20, ptr %7, align 8, !tbaa !10
store i8 48, ptr %19, align 1, !tbaa !12
store i8 0, ptr %20, align 1, !tbaa !12
br i1 %14, label %75, label %53
21: ; preds = %6
%22 = add nsw i32 %4, 2
%23 = call ptr @zend_dtoa(double noundef %0, i32 noundef %22, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %7) #5
%24 = load i32, ptr %2, align 4, !tbaa !6
%25 = icmp eq i32 %24, 9999
br i1 %25, label %26, label %32
26: ; preds = %21
store i32 0, ptr %2, align 4, !tbaa !6
%27 = load i8, ptr %23, align 1, !tbaa !12
%28 = call i32 @zend_freedtoa(ptr noundef nonnull %23) #5
%29 = icmp eq i8 %27, 73
%30 = select i1 %29, ptr @.str, ptr @.str.1
%31 = call dereferenceable_or_null(4) ptr @strdup(ptr noundef nonnull %30)
br label %75
32: ; preds = %21
%33 = icmp ne i32 %5, 0
%34 = icmp ne i32 %4, 0
%35 = and i1 %34, %33
%36 = sext i32 %24 to i64
%37 = select i1 %35, i64 %36, i64 0
%38 = add nsw i64 %37, %10
%39 = add nsw i64 %38, 1
%40 = call i64 @malloc(i64 noundef %39) #5
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %32
%43 = call i32 @zend_freedtoa(ptr noundef %23) #5
br label %75
44: ; preds = %32
%45 = inttoptr i64 %40 to ptr
%46 = call i32 @strlcpy(ptr noundef nonnull %45, ptr noundef %23, i64 noundef %38) #5
%47 = load ptr, ptr %7, align 8, !tbaa !10
%48 = ptrtoint ptr %47 to i64
%49 = ptrtoint ptr %23 to i64
%50 = sub i64 %48, %49
%51 = getelementptr inbounds i8, ptr %45, i64 %50
store ptr %51, ptr %7, align 8, !tbaa !10
%52 = call i32 @zend_freedtoa(ptr noundef %23) #5
br label %53
53: ; preds = %18, %44
%54 = phi ptr [ %19, %18 ], [ %45, %44 ]
%55 = phi i64 [ %10, %18 ], [ %38, %44 ]
%56 = icmp eq i32 %5, 0
br i1 %56, label %75, label %57
57: ; preds = %53
%58 = load ptr, ptr %7, align 8, !tbaa !10
%59 = ptrtoint ptr %58 to i64
%60 = ptrtoint ptr %54 to i64
%61 = add i64 %55, %60
%62 = xor i64 %59, -1
%63 = add i64 %61, %62
%64 = icmp eq i64 %63, 0
br i1 %64, label %73, label %65
65: ; preds = %57, %65
%66 = phi i64 [ %69, %65 ], [ %63, %57 ]
%67 = load ptr, ptr %7, align 8, !tbaa !10
%68 = getelementptr inbounds i8, ptr %67, i64 1
store ptr %68, ptr %7, align 8, !tbaa !10
store i8 48, ptr %67, align 1, !tbaa !12
%69 = add i64 %66, -1
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %65, !llvm.loop !13
71: ; preds = %65
%72 = load ptr, ptr %7, align 8, !tbaa !10
br label %73
73: ; preds = %71, %57
%74 = phi ptr [ %72, %71 ], [ %58, %57 ]
store i8 0, ptr %74, align 1, !tbaa !12
br label %75
75: ; preds = %53, %73, %18, %12, %42, %26
%76 = phi ptr [ %31, %26 ], [ null, %42 ], [ null, %12 ], [ %19, %18 ], [ %54, %73 ], [ %54, %53 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
ret ptr %76
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @malloc(i64 noundef) local_unnamed_addr #2
declare ptr @zend_dtoa(double noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @zend_freedtoa(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 @strlcpy(ptr noundef, ptr 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
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| php-src_main_extr_snprintf.c___cvt |
; ModuleID = 'AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Network.c_SendTo6Ex.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Network.c_SendTo6Ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.sockaddr_in6 = type { i32, i32, i32, i32 }
%struct.TYPE_8__ = type { i32, i32, i64, i64, i32, i32, i32, i32 }
@SOCK_UDP = dso_local local_unnamed_addr global i64 0, align 8
@INVALID_SOCKET = dso_local local_unnamed_addr global i64 0, align 8
@AF_INET6 = dso_local local_unnamed_addr global i32 0, align 4
@IPV6_ADDR_MULTICAST = dso_local local_unnamed_addr global i32 0, align 4
@SOL_SOCKET = dso_local local_unnamed_addr global i32 0, align 4
@SO_BROADCAST = dso_local local_unnamed_addr global i32 0, align 4
@errno = dso_local local_unnamed_addr global i64 0, align 8
@ECONNREFUSED = dso_local local_unnamed_addr global i64 0, align 8
@ECONNRESET = dso_local local_unnamed_addr global i64 0, align 8
@EMSGSIZE = dso_local local_unnamed_addr global i64 0, align 8
@ENOBUFS = dso_local local_unnamed_addr global i64 0, align 8
@ENOMEM = dso_local local_unnamed_addr global i64 0, align 8
@EINTR = dso_local local_unnamed_addr global i64 0, align 8
@EAGAIN = dso_local local_unnamed_addr global i64 0, align 8
@SOCK_LATER = dso_local local_unnamed_addr global i32 0, align 4
@WSAEADDRNOTAVAIL = dso_local local_unnamed_addr global i64 0, align 8
@WSAECONNRESET = dso_local local_unnamed_addr global i64 0, align 8
@WSAEHOSTUNREACH = dso_local local_unnamed_addr global i64 0, align 8
@WSAEINPROGRESS = dso_local local_unnamed_addr global i64 0, align 8
@WSAEINVAL = dso_local local_unnamed_addr global i64 0, align 8
@WSAEMSGSIZE = dso_local local_unnamed_addr global i64 0, align 8
@WSAENETRESET = dso_local local_unnamed_addr global i64 0, align 8
@WSAENETUNREACH = dso_local local_unnamed_addr global i64 0, align 8
@WSAENOBUFS = dso_local local_unnamed_addr global i64 0, align 8
@WSAEUSERS = dso_local local_unnamed_addr global i64 0, align 8
@WSAEWOULDBLOCK = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @SendTo6Ex(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = alloca %struct.sockaddr_in6, align 4
%8 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
%9 = icmp eq ptr %0, null
br i1 %9, label %103, label %10
10: ; preds = %6
store i32 0, ptr %0, align 8, !tbaa !5
%11 = icmp eq ptr %1, null
br i1 %11, label %103, label %12
12: ; preds = %10
%13 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 1
%14 = load i32, ptr %13, align 4, !tbaa !11
%15 = or i32 %14, %2
%16 = icmp eq i32 %15, 0
%17 = icmp eq ptr %3, null
%18 = or i1 %17, %16
br i1 %18, label %103, label %19
19: ; preds = %12
%20 = icmp ne i32 %14, 0
%21 = icmp slt i32 %2, 65536
%22 = or i1 %21, %20
br i1 %22, label %23, label %103
23: ; preds = %19
%24 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 2
%25 = load i64, ptr %24, align 8, !tbaa !12
%26 = load i64, ptr @SOCK_UDP, align 8, !tbaa !13
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %103
28: ; preds = %23
%29 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 3
%30 = load i64, ptr %29, align 8, !tbaa !14
%31 = load i64, ptr @INVALID_SOCKET, align 8, !tbaa !13
%32 = icmp eq i64 %30, %31
%33 = icmp eq i32 %4, 0
%34 = or i1 %33, %32
br i1 %34, label %103, label %35
35: ; preds = %28
%36 = tail call i32 @IsIP6(ptr noundef nonnull %1) #3
%37 = icmp eq i32 %36, 0
br i1 %37, label %103, label %38
38: ; preds = %35
%39 = load i64, ptr %29, align 8, !tbaa !14
%40 = call i32 @Zero(ptr noundef nonnull %7, i32 noundef 16) #3
%41 = load i32, ptr @AF_INET6, align 4, !tbaa !15
%42 = getelementptr inbounds %struct.sockaddr_in6, ptr %7, i64 0, i32 3
store i32 %41, ptr %42, align 4, !tbaa !16
%43 = load i32, ptr %13, align 4, !tbaa !11
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = call i32 @htons(i32 noundef %2) #3
%47 = getelementptr inbounds %struct.sockaddr_in6, ptr %7, i64 0, i32 2
store i32 %46, ptr %47, align 4, !tbaa !18
br label %48
48: ; preds = %45, %38
%49 = getelementptr inbounds %struct.sockaddr_in6, ptr %7, i64 0, i32 1
%50 = call i32 @IPToInAddr6(ptr noundef nonnull %49, ptr noundef nonnull %1) #3
%51 = load i32, ptr %1, align 4, !tbaa !19
store i32 %51, ptr %7, align 4, !tbaa !21
%52 = call i32 @GetIPAddrType6(ptr noundef nonnull %1) #3
%53 = load i32, ptr @IPV6_ADDR_MULTICAST, align 4, !tbaa !15
%54 = and i32 %53, %52
%55 = or i32 %54, %5
%56 = icmp eq i32 %55, 0
br i1 %56, label %65, label %57
57: ; preds = %48
%58 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 4
%59 = load i32, ptr %58, align 8, !tbaa !22
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %57
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
store i32 1, ptr %8, align 4, !tbaa !15
store i32 1, ptr %58, align 8, !tbaa !22
%62 = load i32, ptr @SOL_SOCKET, align 4, !tbaa !15
%63 = load i32, ptr @SO_BROADCAST, align 4, !tbaa !15
%64 = call i32 @setsockopt(i64 noundef %39, i32 noundef %62, i32 noundef %63, ptr noundef nonnull %8, i32 noundef 4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
br label %65
65: ; preds = %57, %61, %48
%66 = call i32 @sendto(i64 noundef %39, ptr noundef nonnull %3, i32 noundef %4, i32 noundef 0, ptr noundef nonnull %7, i32 noundef 16) #3
%67 = icmp eq i32 %66, %4
br i1 %67, label %93, label %68
68: ; preds = %65
store i32 0, ptr %0, align 8, !tbaa !5
%69 = load i64, ptr @errno, align 8, !tbaa !13
%70 = load i64, ptr @ECONNREFUSED, align 8, !tbaa !13
%71 = icmp eq i64 %69, %70
%72 = load i64, ptr @ECONNRESET, align 8
%73 = icmp eq i64 %69, %72
%74 = select i1 %71, i1 true, i1 %73
%75 = load i64, ptr @EMSGSIZE, align 8
%76 = icmp eq i64 %69, %75
%77 = select i1 %74, i1 true, i1 %76
%78 = load i64, ptr @ENOBUFS, align 8
%79 = icmp eq i64 %69, %78
%80 = select i1 %77, i1 true, i1 %79
%81 = load i64, ptr @ENOMEM, align 8
%82 = icmp eq i64 %69, %81
%83 = select i1 %80, i1 true, i1 %82
%84 = load i64, ptr @EINTR, align 8
%85 = icmp eq i64 %69, %84
%86 = select i1 %83, i1 true, i1 %85
br i1 %86, label %87, label %88
87: ; preds = %68
store i32 1, ptr %0, align 8, !tbaa !5
br label %103
88: ; preds = %68
%89 = load i64, ptr @EAGAIN, align 8, !tbaa !13
%90 = icmp eq i64 %69, %89
%91 = load i32, ptr @SOCK_LATER, align 4
%92 = select i1 %90, i32 %91, i32 0
br label %103
93: ; preds = %65
%94 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 5
%95 = load i32, ptr %94, align 4, !tbaa !23
%96 = call i32 @Lock(i32 noundef %95) #3
%97 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 6
%98 = load <2 x i32>, ptr %97, align 8, !tbaa !15
%99 = insertelement <2 x i32> <i32 1, i32 poison>, i32 %4, i64 1
%100 = add <2 x i32> %98, %99
store <2 x i32> %100, ptr %97, align 8, !tbaa !15
%101 = load i32, ptr %94, align 4, !tbaa !23
%102 = call i32 @Unlock(i32 noundef %101) #3
br label %103
103: ; preds = %6, %88, %87, %35, %23, %28, %19, %10, %12, %93
%104 = phi i32 [ %4, %93 ], [ 0, %12 ], [ 0, %10 ], [ 0, %19 ], [ 0, %28 ], [ 0, %23 ], [ 0, %35 ], [ 0, %87 ], [ %92, %88 ], [ 0, %6 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
ret i32 %104
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @IsIP6(ptr noundef) local_unnamed_addr #2
declare i32 @Zero(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @IPToInAddr6(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GetIPAddrType6(ptr noundef) local_unnamed_addr #2
declare i32 @setsockopt(i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @sendto(i64 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @Lock(i32 noundef) local_unnamed_addr #2
declare i32 @Unlock(i32 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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_8__", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 8}
!13 = !{!10, !10, i64 0}
!14 = !{!6, !10, i64 16}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !7, i64 12}
!17 = !{!"sockaddr_in6", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!18 = !{!17, !7, i64 8}
!19 = !{!20, !7, i64 0}
!20 = !{!"TYPE_9__", !7, i64 0}
!21 = !{!17, !7, i64 0}
!22 = !{!6, !7, i64 24}
!23 = !{!6, !7, i64 28}
| ; ModuleID = 'AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Network.c_SendTo6Ex.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Mayaqua/extr_Network.c_SendTo6Ex.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.sockaddr_in6 = type { i32, i32, i32, i32 }
@SOCK_UDP = common local_unnamed_addr global i64 0, align 8
@INVALID_SOCKET = common local_unnamed_addr global i64 0, align 8
@AF_INET6 = common local_unnamed_addr global i32 0, align 4
@IPV6_ADDR_MULTICAST = common local_unnamed_addr global i32 0, align 4
@SOL_SOCKET = common local_unnamed_addr global i32 0, align 4
@SO_BROADCAST = common local_unnamed_addr global i32 0, align 4
@errno = common local_unnamed_addr global i64 0, align 8
@ECONNREFUSED = common local_unnamed_addr global i64 0, align 8
@ECONNRESET = common local_unnamed_addr global i64 0, align 8
@EMSGSIZE = common local_unnamed_addr global i64 0, align 8
@ENOBUFS = common local_unnamed_addr global i64 0, align 8
@ENOMEM = common local_unnamed_addr global i64 0, align 8
@EINTR = common local_unnamed_addr global i64 0, align 8
@EAGAIN = common local_unnamed_addr global i64 0, align 8
@SOCK_LATER = common local_unnamed_addr global i32 0, align 4
@WSAEADDRNOTAVAIL = common local_unnamed_addr global i64 0, align 8
@WSAECONNRESET = common local_unnamed_addr global i64 0, align 8
@WSAEHOSTUNREACH = common local_unnamed_addr global i64 0, align 8
@WSAEINPROGRESS = common local_unnamed_addr global i64 0, align 8
@WSAEINVAL = common local_unnamed_addr global i64 0, align 8
@WSAEMSGSIZE = common local_unnamed_addr global i64 0, align 8
@WSAENETRESET = common local_unnamed_addr global i64 0, align 8
@WSAENETUNREACH = common local_unnamed_addr global i64 0, align 8
@WSAENOBUFS = common local_unnamed_addr global i64 0, align 8
@WSAEUSERS = common local_unnamed_addr global i64 0, align 8
@WSAEWOULDBLOCK = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @SendTo6Ex(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = alloca %struct.sockaddr_in6, align 4
%8 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
%9 = icmp eq ptr %0, null
br i1 %9, label %103, label %10
10: ; preds = %6
store i32 0, ptr %0, align 8, !tbaa !6
%11 = icmp eq ptr %1, null
br i1 %11, label %103, label %12
12: ; preds = %10
%13 = getelementptr inbounds i8, ptr %0, i64 4
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = or i32 %14, %2
%16 = icmp eq i32 %15, 0
%17 = icmp eq ptr %3, null
%18 = or i1 %17, %16
br i1 %18, label %103, label %19
19: ; preds = %12
%20 = icmp ne i32 %14, 0
%21 = icmp slt i32 %2, 65536
%22 = or i1 %21, %20
br i1 %22, label %23, label %103
23: ; preds = %19
%24 = getelementptr inbounds i8, ptr %0, i64 8
%25 = load i64, ptr %24, align 8, !tbaa !13
%26 = load i64, ptr @SOCK_UDP, align 8, !tbaa !14
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %103
28: ; preds = %23
%29 = getelementptr inbounds i8, ptr %0, i64 16
%30 = load i64, ptr %29, align 8, !tbaa !15
%31 = load i64, ptr @INVALID_SOCKET, align 8, !tbaa !14
%32 = icmp eq i64 %30, %31
%33 = icmp eq i32 %4, 0
%34 = or i1 %33, %32
br i1 %34, label %103, label %35
35: ; preds = %28
%36 = tail call i32 @IsIP6(ptr noundef nonnull %1) #3
%37 = icmp eq i32 %36, 0
br i1 %37, label %103, label %38
38: ; preds = %35
%39 = load i64, ptr %29, align 8, !tbaa !15
%40 = call i32 @Zero(ptr noundef nonnull %7, i32 noundef 16) #3
%41 = load i32, ptr @AF_INET6, align 4, !tbaa !16
%42 = getelementptr inbounds i8, ptr %7, i64 12
store i32 %41, ptr %42, align 4, !tbaa !17
%43 = load i32, ptr %13, align 4, !tbaa !12
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = call i32 @htons(i32 noundef %2) #3
%47 = getelementptr inbounds i8, ptr %7, i64 8
store i32 %46, ptr %47, align 4, !tbaa !19
br label %48
48: ; preds = %45, %38
%49 = getelementptr inbounds i8, ptr %7, i64 4
%50 = call i32 @IPToInAddr6(ptr noundef nonnull %49, ptr noundef nonnull %1) #3
%51 = load i32, ptr %1, align 4, !tbaa !20
store i32 %51, ptr %7, align 4, !tbaa !22
%52 = call i32 @GetIPAddrType6(ptr noundef nonnull %1) #3
%53 = load i32, ptr @IPV6_ADDR_MULTICAST, align 4, !tbaa !16
%54 = and i32 %53, %52
%55 = or i32 %54, %5
%56 = icmp eq i32 %55, 0
br i1 %56, label %65, label %57
57: ; preds = %48
%58 = getelementptr inbounds i8, ptr %0, i64 24
%59 = load i32, ptr %58, align 8, !tbaa !23
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %57
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
store i32 1, ptr %8, align 4, !tbaa !16
store i32 1, ptr %58, align 8, !tbaa !23
%62 = load i32, ptr @SOL_SOCKET, align 4, !tbaa !16
%63 = load i32, ptr @SO_BROADCAST, align 4, !tbaa !16
%64 = call i32 @setsockopt(i64 noundef %39, i32 noundef %62, i32 noundef %63, ptr noundef nonnull %8, i32 noundef 4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
br label %65
65: ; preds = %57, %61, %48
%66 = call i32 @sendto(i64 noundef %39, ptr noundef nonnull %3, i32 noundef %4, i32 noundef 0, ptr noundef nonnull %7, i32 noundef 16) #3
%67 = icmp eq i32 %66, %4
br i1 %67, label %93, label %68
68: ; preds = %65
store i32 0, ptr %0, align 8, !tbaa !6
%69 = load i64, ptr @errno, align 8, !tbaa !14
%70 = load i64, ptr @ECONNREFUSED, align 8, !tbaa !14
%71 = icmp eq i64 %69, %70
%72 = load i64, ptr @ECONNRESET, align 8
%73 = icmp eq i64 %69, %72
%74 = select i1 %71, i1 true, i1 %73
%75 = load i64, ptr @EMSGSIZE, align 8
%76 = icmp eq i64 %69, %75
%77 = select i1 %74, i1 true, i1 %76
%78 = load i64, ptr @ENOBUFS, align 8
%79 = icmp eq i64 %69, %78
%80 = select i1 %77, i1 true, i1 %79
%81 = load i64, ptr @ENOMEM, align 8
%82 = icmp eq i64 %69, %81
%83 = select i1 %80, i1 true, i1 %82
%84 = load i64, ptr @EINTR, align 8
%85 = icmp eq i64 %69, %84
%86 = select i1 %83, i1 true, i1 %85
br i1 %86, label %87, label %88
87: ; preds = %68
store i32 1, ptr %0, align 8, !tbaa !6
br label %103
88: ; preds = %68
%89 = load i64, ptr @EAGAIN, align 8, !tbaa !14
%90 = icmp eq i64 %69, %89
%91 = load i32, ptr @SOCK_LATER, align 4
%92 = select i1 %90, i32 %91, i32 0
br label %103
93: ; preds = %65
%94 = getelementptr inbounds i8, ptr %0, i64 28
%95 = load i32, ptr %94, align 4, !tbaa !24
%96 = call i32 @Lock(i32 noundef %95) #3
%97 = getelementptr inbounds i8, ptr %0, i64 32
%98 = load <2 x i32>, ptr %97, align 8, !tbaa !16
%99 = insertelement <2 x i32> <i32 1, i32 poison>, i32 %4, i64 1
%100 = add <2 x i32> %98, %99
store <2 x i32> %100, ptr %97, align 8, !tbaa !16
%101 = load i32, ptr %94, align 4, !tbaa !24
%102 = call i32 @Unlock(i32 noundef %101) #3
br label %103
103: ; preds = %6, %88, %87, %35, %23, %28, %19, %10, %12, %93
%104 = phi i32 [ %4, %93 ], [ 0, %12 ], [ 0, %10 ], [ 0, %19 ], [ 0, %28 ], [ 0, %23 ], [ 0, %35 ], [ 0, %87 ], [ %92, %88 ], [ 0, %6 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
ret i32 %104
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @IsIP6(ptr noundef) local_unnamed_addr #2
declare i32 @Zero(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @IPToInAddr6(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GetIPAddrType6(ptr noundef) local_unnamed_addr #2
declare i32 @setsockopt(i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @sendto(i64 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @Lock(i32 noundef) local_unnamed_addr #2
declare i32 @Unlock(i32 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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_8__", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !8, i64 4}
!13 = !{!7, !11, i64 8}
!14 = !{!11, !11, i64 0}
!15 = !{!7, !11, i64 16}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !8, i64 12}
!18 = !{!"sockaddr_in6", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!19 = !{!18, !8, i64 8}
!20 = !{!21, !8, i64 0}
!21 = !{!"TYPE_9__", !8, i64 0}
!22 = !{!18, !8, i64 0}
!23 = !{!7, !8, i64 24}
!24 = !{!7, !8, i64 28}
| SoftEtherVPN_src_Mayaqua_extr_Network.c_SendTo6Ex |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_e82545.c_e82545_rx_disable.c'
source_filename = "AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_e82545.c_e82545_rx_disable.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.e82545_softc = type { i32, i32, i64, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @e82545_rx_disable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @e82545_rx_disable(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.e82545_softc, ptr %0, i64 0, i32 3
store i64 0, ptr %2, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.e82545_softc, ptr %0, i64 0, i32 2
%4 = load i64, ptr %3, align 8, !tbaa !11
%5 = icmp eq i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.e82545_softc, ptr %0, i64 0, i32 1
br label %8
8: ; preds = %6, %8
%9 = tail call i32 @pthread_cond_wait(ptr noundef nonnull %7, ptr noundef nonnull %0) #2
%10 = load i64, ptr %3, align 8, !tbaa !11
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %8, !llvm.loop !12
12: ; preds = %8, %1
ret void
}
declare i32 @pthread_cond_wait(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, !10, i64 16}
!6 = !{!"e82545_softc", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_e82545.c_e82545_rx_disable.c'
source_filename = "AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_e82545.c_e82545_rx_disable.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 @e82545_rx_disable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @e82545_rx_disable(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
store i64 0, ptr %2, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load i64, ptr %3, align 8, !tbaa !12
%5 = icmp eq i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %0, i64 4
br label %8
8: ; preds = %6, %8
%9 = tail call i32 @pthread_cond_wait(ptr noundef nonnull %7, ptr noundef nonnull %0) #2
%10 = load i64, ptr %3, align 8, !tbaa !12
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %8, !llvm.loop !13
12: ; preds = %8, %1
ret void
}
declare i32 @pthread_cond_wait(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, !11, i64 16}
!7 = !{!"e82545_softc", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| freebsd_usr.sbin_bhyve_extr_pci_e82545.c_e82545_rx_disable |
; ModuleID = 'AnghaBench/freebsd/lib/libthread_db/extr_libthr_db.c_pt_thr_setgregs.c'
source_filename = "AnghaBench/freebsd/lib/libthread_db/extr_libthr_db.c_pt_thr_setgregs.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 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @pt_thr_setgregs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pt_thr_setgregs(ptr noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = tail call i32 (...) @TDBG_FUNC() #2
%6 = tail call i32 @pt_validate(ptr noundef %0) #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i32, ptr %4, align 4, !tbaa !11
%10 = load i32, ptr %0, align 8, !tbaa !13
%11 = tail call i32 @ps_lsetregs(i32 noundef %9, i32 noundef %10, i32 noundef %1) #2
%12 = tail call i32 @P2T(i32 noundef %11) #2
br label %13
13: ; preds = %2, %8
%14 = phi i32 [ %12, %8 ], [ %6, %2 ]
ret i32 %14
}
declare i32 @TDBG_FUNC(...) local_unnamed_addr #1
declare i32 @pt_validate(ptr noundef) local_unnamed_addr #1
declare i32 @ps_lsetregs(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @P2T(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"TYPE_5__", !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, !7, i64 0}
!12 = !{!"TYPE_6__", !7, i64 0}
!13 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/lib/libthread_db/extr_libthr_db.c_pt_thr_setgregs.c'
source_filename = "AnghaBench/freebsd/lib/libthread_db/extr_libthr_db.c_pt_thr_setgregs.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 @pt_thr_setgregs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @pt_thr_setgregs(ptr noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = tail call i32 @TDBG_FUNC() #2
%6 = tail call i32 @pt_validate(ptr noundef %0) #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i32, ptr %4, align 4, !tbaa !12
%10 = load i32, ptr %0, align 8, !tbaa !14
%11 = tail call i32 @ps_lsetregs(i32 noundef %9, i32 noundef %10, i32 noundef %1) #2
%12 = tail call i32 @P2T(i32 noundef %11) #2
br label %13
13: ; preds = %2, %8
%14 = phi i32 [ %12, %8 ], [ %6, %2 ]
ret i32 %14
}
declare i32 @TDBG_FUNC(...) local_unnamed_addr #1
declare i32 @pt_validate(ptr noundef) local_unnamed_addr #1
declare i32 @ps_lsetregs(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @P2T(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"TYPE_5__", !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, !8, i64 0}
!13 = !{!"TYPE_6__", !8, i64 0}
!14 = !{!7, !8, i64 0}
| freebsd_lib_libthread_db_extr_libthr_db.c_pt_thr_setgregs |
; ModuleID = 'AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zcp.c_zcp_parse_pos_args.c'
source_filename = "AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zcp.c_zcp_parse_pos_args.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, ptr }
@LUA_TNONE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"too few arguments\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"unreachable code\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"arg %d wrong type (is '%s', expected '%s')\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"too many positional arguments\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @zcp_parse_pos_args], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @zcp_parse_pos_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %33, label %8
8: ; preds = %4, %28
%9 = phi i64 [ %11, %28 ], [ 0, %4 ]
%10 = phi ptr [ %29, %28 ], [ %2, %4 ]
%11 = add nuw nsw i64 %9, 1
%12 = trunc i64 %11 to i32
%13 = tail call i32 @lua_type(ptr noundef %0, i32 noundef %12) #2
%14 = load i32, ptr @LUA_TNONE, align 4, !tbaa !11
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %8
%17 = tail call i32 (ptr, ptr, ptr, ptr, ptr, ...) @zcp_args_error(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull @.str) #2
br label %26
18: ; preds = %8
%19 = load i32, ptr %10, align 8, !tbaa !12
%20 = icmp eq i32 %13, %19
br i1 %20, label %28, label %21
21: ; preds = %18
%22 = tail call i32 @lua_typename(ptr noundef %0, i32 noundef %13) #2
%23 = load i32, ptr %10, align 8, !tbaa !12
%24 = tail call i32 @lua_typename(ptr noundef %0, i32 noundef %23) #2
%25 = tail call i32 (ptr, ptr, ptr, ptr, ptr, ...) @zcp_args_error(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull @.str.2, i32 noundef %12, i32 noundef %22, i32 noundef %24) #2
br label %26
26: ; preds = %21, %16
%27 = tail call i32 @panic(ptr noundef nonnull @.str.1) #2
br label %28
28: ; preds = %26, %18
%29 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 %11
%30 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 %11, i32 1
%31 = load ptr, ptr %30, align 8, !tbaa !5
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %8, !llvm.loop !13
33: ; preds = %28, %4
%34 = phi i32 [ 0, %4 ], [ %12, %28 ]
%35 = tail call i32 @lua_gettop(ptr noundef %0) #2
%36 = icmp eq i32 %35, %34
br i1 %36, label %40, label %37
37: ; preds = %33
%38 = tail call i32 (ptr, ptr, ptr, ptr, ptr, ...) @zcp_args_error(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull @.str.3) #2
%39 = tail call i32 @panic(ptr noundef nonnull @.str.1) #2
br label %40
40: ; preds = %37, %33
%41 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 0, i32 1
%42 = load ptr, ptr %41, align 8, !tbaa !5
%43 = icmp eq ptr %42, null
br i1 %43, label %51, label %44
44: ; preds = %40, %44
%45 = phi i64 [ %47, %44 ], [ 0, %40 ]
%46 = tail call i32 @lua_pushnil(ptr noundef %0) #2
%47 = add nuw i64 %45, 1
%48 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 %47, i32 1
%49 = load ptr, ptr %48, align 8, !tbaa !5
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %44, !llvm.loop !15
51: ; preds = %44, %40
ret void
}
declare i32 @lua_type(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @zcp_args_error(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @panic(ptr noundef) local_unnamed_addr #1
declare i32 @lua_typename(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lua_gettop(ptr noundef) local_unnamed_addr #1
declare i32 @lua_pushnil(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 = !{!"TYPE_6__", !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, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
| ; ModuleID = 'AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zcp.c_zcp_parse_pos_args.c'
source_filename = "AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zcp.c_zcp_parse_pos_args.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, ptr }
@LUA_TNONE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"too few arguments\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"unreachable code\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"arg %d wrong type (is '%s', expected '%s')\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"too many positional arguments\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @zcp_parse_pos_args], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @zcp_parse_pos_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = getelementptr inbounds i8, ptr %2, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %32, label %8
8: ; preds = %4, %28
%9 = phi i64 [ %11, %28 ], [ 0, %4 ]
%10 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 %9
%11 = add nuw nsw i64 %9, 1
%12 = trunc nuw nsw i64 %11 to i32
%13 = tail call i32 @lua_type(ptr noundef %0, i32 noundef %12) #2
%14 = load i32, ptr @LUA_TNONE, align 4, !tbaa !12
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %8
%17 = tail call i32 (ptr, ptr, ptr, ptr, ptr, ...) @zcp_args_error(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull @.str) #2
br label %26
18: ; preds = %8
%19 = load i32, ptr %10, align 8, !tbaa !13
%20 = icmp eq i32 %13, %19
br i1 %20, label %28, label %21
21: ; preds = %18
%22 = tail call i32 @lua_typename(ptr noundef %0, i32 noundef %13) #2
%23 = load i32, ptr %10, align 8, !tbaa !13
%24 = tail call i32 @lua_typename(ptr noundef %0, i32 noundef %23) #2
%25 = tail call i32 (ptr, ptr, ptr, ptr, ptr, ...) @zcp_args_error(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull @.str.2, i32 noundef %12, i32 noundef %22, i32 noundef %24) #2
br label %26
26: ; preds = %21, %16
%27 = tail call i32 @panic(ptr noundef nonnull @.str.1) #2
br label %28
28: ; preds = %26, %18
%29 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 %11, i32 1
%30 = load ptr, ptr %29, align 8, !tbaa !6
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %8, !llvm.loop !14
32: ; preds = %28, %4
%33 = phi i32 [ 0, %4 ], [ %12, %28 ]
%34 = tail call i32 @lua_gettop(ptr noundef %0) #2
%35 = icmp eq i32 %34, %33
br i1 %35, label %39, label %36
36: ; preds = %32
%37 = tail call i32 (ptr, ptr, ptr, ptr, ptr, ...) @zcp_args_error(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull @.str.3) #2
%38 = tail call i32 @panic(ptr noundef nonnull @.str.1) #2
br label %39
39: ; preds = %36, %32
%40 = getelementptr inbounds i8, ptr %3, i64 8
%41 = load ptr, ptr %40, align 8, !tbaa !6
%42 = icmp eq ptr %41, null
br i1 %42, label %50, label %43
43: ; preds = %39, %43
%44 = phi i64 [ %46, %43 ], [ 0, %39 ]
%45 = tail call i32 @lua_pushnil(ptr noundef %0) #2
%46 = add nuw nsw i64 %44, 1
%47 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 %46, i32 1
%48 = load ptr, ptr %47, align 8, !tbaa !6
%49 = icmp eq ptr %48, null
br i1 %49, label %50, label %43, !llvm.loop !16
50: ; preds = %43, %39
ret void
}
declare i32 @lua_type(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @zcp_args_error(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @panic(ptr noundef) local_unnamed_addr #1
declare i32 @lua_typename(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lua_gettop(ptr noundef) local_unnamed_addr #1
declare i32 @lua_pushnil(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 = !{!"TYPE_6__", !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, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
| freebsd_sys_cddl_contrib_opensolaris_uts_common_fs_zfs_extr_zcp.c_zcp_parse_pos_args |
; ModuleID = 'AnghaBench/htop/extr_Vector.c_Vector_quickSort.c'
source_filename = "AnghaBench/htop/extr_Vector.c_Vector_quickSort.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { ptr, i64, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @Vector_quickSort(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !12
%4 = tail call i32 @assert(i32 noundef %3) #2
%5 = tail call i32 @Vector_isConsistent(ptr noundef nonnull %0) #2
%6 = tail call i32 @assert(i32 noundef %5) #2
%7 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
%8 = load i32, ptr %7, align 8, !tbaa !14
%9 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
%10 = load i64, ptr %9, align 8, !tbaa !15
%11 = add nsw i64 %10, -1
%12 = load ptr, ptr %0, align 8, !tbaa !5
%13 = load i32, ptr %12, align 4, !tbaa !12
%14 = tail call i32 @quickSort(i32 noundef %8, i32 noundef 0, i64 noundef %11, i32 noundef %13) #2
%15 = tail call i32 @Vector_isConsistent(ptr noundef nonnull %0) #2
%16 = tail call i32 @assert(i32 noundef %15) #2
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @Vector_isConsistent(ptr noundef) local_unnamed_addr #1
declare i32 @quickSort(i32 noundef, i32 noundef, i64 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_6__", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_5__", !11, i64 0}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/htop/extr_Vector.c_Vector_quickSort.c'
source_filename = "AnghaBench/htop/extr_Vector.c_Vector_quickSort.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 @Vector_quickSort(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !13
%4 = tail call i32 @assert(i32 noundef %3) #2
%5 = tail call i32 @Vector_isConsistent(ptr noundef nonnull %0) #2
%6 = tail call i32 @assert(i32 noundef %5) #2
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = load i32, ptr %7, align 8, !tbaa !15
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load i64, ptr %9, align 8, !tbaa !16
%11 = add nsw i64 %10, -1
%12 = load ptr, ptr %0, align 8, !tbaa !6
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = tail call i32 @quickSort(i32 noundef %8, i32 noundef 0, i64 noundef %11, i32 noundef %13) #2
%15 = tail call i32 @Vector_isConsistent(ptr noundef nonnull %0) #2
%16 = tail call i32 @assert(i32 noundef %15) #2
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @Vector_isConsistent(ptr noundef) local_unnamed_addr #1
declare i32 @quickSort(i32 noundef, i32 noundef, i64 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_6__", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_5__", !12, i64 0}
!15 = !{!7, !12, i64 16}
!16 = !{!7, !11, i64 8}
| htop_extr_Vector.c_Vector_quickSort |
; ModuleID = 'AnghaBench/freebsd/sys/security/mac/extr_mac_vfs.c_mac_vnode_execve_transition.c'
source_filename = "AnghaBench/freebsd/sys/security/mac/extr_mac_vfs.c_mac_vnode_execve_transition.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 [28 x i8] c"mac_vnode_execve_transition\00", align 1
@vnode_execve_transition = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @mac_vnode_execve_transition(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = tail call i32 @ASSERT_VOP_LOCKED(ptr noundef %2, ptr noundef nonnull @.str) #2
%7 = load i32, ptr @vnode_execve_transition, align 4, !tbaa !5
%8 = load i32, ptr %2, align 4, !tbaa !9
%9 = load i32, ptr %4, align 4, !tbaa !11
%10 = tail call i32 @MAC_POLICY_PERFORM(i32 noundef %7, ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, i32 noundef %8, ptr noundef %3, ptr noundef nonnull %4, i32 noundef %9) #2
ret void
}
declare i32 @ASSERT_VOP_LOCKED(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @MAC_POLICY_PERFORM(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!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 = !{!"vnode", !6, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"image_params", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/security/mac/extr_mac_vfs.c_mac_vnode_execve_transition.c'
source_filename = "AnghaBench/freebsd/sys/security/mac/extr_mac_vfs.c_mac_vnode_execve_transition.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [28 x i8] c"mac_vnode_execve_transition\00", align 1
@vnode_execve_transition = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @mac_vnode_execve_transition(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = tail call i32 @ASSERT_VOP_LOCKED(ptr noundef %2, ptr noundef nonnull @.str) #2
%7 = load i32, ptr @vnode_execve_transition, align 4, !tbaa !6
%8 = load i32, ptr %2, align 4, !tbaa !10
%9 = load i32, ptr %4, align 4, !tbaa !12
%10 = tail call i32 @MAC_POLICY_PERFORM(i32 noundef %7, ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, i32 noundef %8, ptr noundef %3, ptr noundef nonnull %4, i32 noundef %9) #2
ret void
}
declare i32 @ASSERT_VOP_LOCKED(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @MAC_POLICY_PERFORM(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!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 = !{!"vnode", !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"image_params", !7, i64 0}
| freebsd_sys_security_mac_extr_mac_vfs.c_mac_vnode_execve_transition |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/core/extr_pcm_memory.c_snd_pcm_lib_preallocate_pages_for_all.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/core/extr_pcm_memory.c_snd_pcm_lib_preallocate_pages_for_all.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { ptr }
; Function Attrs: nounwind uwtable
define dso_local i32 @snd_pcm_lib_preallocate_pages_for_all(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #0 {
%6 = load ptr, ptr %0, align 8, !tbaa !5
br label %7
7: ; preds = %11, %5
%8 = phi ptr [ %6, %5 ], [ %9, %11 ]
%9 = load ptr, ptr %8, align 8, !tbaa !10
%10 = icmp eq ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = tail call i32 @snd_pcm_lib_preallocate_pages(ptr noundef nonnull %9, i32 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #2
%13 = icmp slt i32 %12, 0
br i1 %13, label %24, label %7, !llvm.loop !11
14: ; preds = %7
%15 = load ptr, ptr %0, align 8, !tbaa !5
%16 = getelementptr inbounds %struct.TYPE_2__, ptr %15, i64 1
br label %17
17: ; preds = %21, %14
%18 = phi ptr [ %16, %14 ], [ %19, %21 ]
%19 = load ptr, ptr %18, align 8, !tbaa !10
%20 = icmp eq ptr %19, null
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = tail call i32 @snd_pcm_lib_preallocate_pages(ptr noundef nonnull %19, i32 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #2
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %17, !llvm.loop !11
24: ; preds = %11, %21, %17
%25 = phi i32 [ %22, %21 ], [ 0, %17 ], [ %12, %11 ]
ret i32 %25
}
declare i32 @snd_pcm_lib_preallocate_pages(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"snd_pcm", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/core/extr_pcm_memory.c_snd_pcm_lib_preallocate_pages_for_all.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/core/extr_pcm_memory.c_snd_pcm_lib_preallocate_pages_for_all.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 range(i32 -2147483648, 1) i32 @snd_pcm_lib_preallocate_pages_for_all(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #0 {
%6 = load ptr, ptr %0, align 8, !tbaa !6
br label %7
7: ; preds = %11, %5
%8 = phi ptr [ %6, %5 ], [ %9, %11 ]
%9 = load ptr, ptr %8, align 8, !tbaa !11
%10 = icmp eq ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = tail call i32 @snd_pcm_lib_preallocate_pages(ptr noundef nonnull %9, i32 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #2
%13 = icmp slt i32 %12, 0
br i1 %13, label %24, label %7, !llvm.loop !12
14: ; preds = %7
%15 = load ptr, ptr %0, align 8, !tbaa !6
%16 = getelementptr inbounds i8, ptr %15, i64 8
br label %17
17: ; preds = %21, %14
%18 = phi ptr [ %16, %14 ], [ %19, %21 ]
%19 = load ptr, ptr %18, align 8, !tbaa !11
%20 = icmp eq ptr %19, null
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = tail call i32 @snd_pcm_lib_preallocate_pages(ptr noundef nonnull %19, i32 noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #2
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %17, !llvm.loop !12
24: ; preds = %11, %21, %17
%25 = phi i32 [ %22, %21 ], [ 0, %17 ], [ %12, %11 ]
ret i32 %25
}
declare i32 @snd_pcm_lib_preallocate_pages(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"snd_pcm", !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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_sound_core_extr_pcm_memory.c_snd_pcm_lib_preallocate_pages_for_all |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/cs46xx/extr_dsp_spos.c_cs46xx_dsp_disable_spdif_in.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/cs46xx/extr_dsp_spos.c_cs46xx_dsp_disable_spdif_in.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_cs46xx = type { ptr, ptr, i32, ptr }
%struct.dsp_spos_instance = type { i64, i32, ptr }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @cs46xx_dsp_disable_spdif_in(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.snd_cs46xx, ptr %0, i64 0, i32 3
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.dsp_spos_instance, ptr %3, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = icmp eq ptr %5, null
%7 = zext i1 %6 to i32
%8 = tail call i64 @snd_BUG_ON(i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %1
%11 = load i32, ptr @EINVAL, align 4, !tbaa !14
%12 = sub nsw i32 0, %11
br label %36
13: ; preds = %1
%14 = getelementptr inbounds %struct.dsp_spos_instance, ptr %3, i64 0, i32 1
%15 = load i32, ptr %14, align 8, !tbaa !15
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = tail call i64 @snd_BUG_ON(i32 noundef %17) #2
%19 = icmp eq i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %13
%21 = load i32, ptr @EINVAL, align 4, !tbaa !14
%22 = sub nsw i32 0, %21
br label %36
23: ; preds = %13
%24 = getelementptr inbounds %struct.snd_cs46xx, ptr %0, i64 0, i32 2
%25 = tail call i32 @mutex_lock(ptr noundef nonnull %24) #2
%26 = load ptr, ptr %4, align 8, !tbaa !11
%27 = tail call i32 @cs46xx_dsp_remove_scb(ptr noundef nonnull %0, ptr noundef %26) #2
store ptr null, ptr %4, align 8, !tbaa !11
%28 = load i32, ptr %14, align 8, !tbaa !15
%29 = tail call i32 @cs46xx_src_unlink(ptr noundef nonnull %0, i32 noundef %28) #2
store i64 0, ptr %3, align 8, !tbaa !16
%30 = tail call i32 @mutex_unlock(ptr noundef nonnull %24) #2
%31 = getelementptr inbounds %struct.snd_cs46xx, ptr %0, i64 0, i32 1
%32 = load ptr, ptr %31, align 8, !tbaa !17
%33 = tail call i32 %32(ptr noundef nonnull %0, i32 noundef -1) #2
%34 = load ptr, ptr %0, align 8, !tbaa !18
%35 = tail call i32 %34(ptr noundef nonnull %0, i32 noundef -1) #2
br label %36
36: ; preds = %23, %20, %10
%37 = phi i32 [ %12, %10 ], [ %22, %20 ], [ 0, %23 ]
ret i32 %37
}
declare i64 @snd_BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @cs46xx_dsp_remove_scb(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @cs46xx_src_unlink(ptr noundef, i32 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, !7, i64 24}
!6 = !{!"snd_cs46xx", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 16}
!12 = !{!"dsp_spos_instance", !13, i64 0, !10, i64 8, !7, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!12, !10, i64 8}
!16 = !{!12, !13, i64 0}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/cs46xx/extr_dsp_spos.c_cs46xx_dsp_disable_spdif_in.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/cs46xx/extr_dsp_spos.c_cs46xx_dsp_disable_spdif_in.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
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @cs46xx_dsp_disable_spdif_in(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 24
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %3, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = icmp eq ptr %5, null
%7 = zext i1 %6 to i32
%8 = tail call i64 @snd_BUG_ON(i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %1
%11 = load i32, ptr @EINVAL, align 4, !tbaa !15
%12 = sub nsw i32 0, %11
br label %36
13: ; preds = %1
%14 = getelementptr inbounds i8, ptr %3, i64 8
%15 = load i32, ptr %14, align 8, !tbaa !16
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = tail call i64 @snd_BUG_ON(i32 noundef %17) #2
%19 = icmp eq i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %13
%21 = load i32, ptr @EINVAL, align 4, !tbaa !15
%22 = sub nsw i32 0, %21
br label %36
23: ; preds = %13
%24 = getelementptr inbounds i8, ptr %0, i64 16
%25 = tail call i32 @mutex_lock(ptr noundef nonnull %24) #2
%26 = load ptr, ptr %4, align 8, !tbaa !12
%27 = tail call i32 @cs46xx_dsp_remove_scb(ptr noundef nonnull %0, ptr noundef %26) #2
store ptr null, ptr %4, align 8, !tbaa !12
%28 = load i32, ptr %14, align 8, !tbaa !16
%29 = tail call i32 @cs46xx_src_unlink(ptr noundef nonnull %0, i32 noundef %28) #2
store i64 0, ptr %3, align 8, !tbaa !17
%30 = tail call i32 @mutex_unlock(ptr noundef nonnull %24) #2
%31 = getelementptr inbounds i8, ptr %0, i64 8
%32 = load ptr, ptr %31, align 8, !tbaa !18
%33 = tail call i32 %32(ptr noundef nonnull %0, i32 noundef -1) #2
%34 = load ptr, ptr %0, align 8, !tbaa !19
%35 = tail call i32 %34(ptr noundef nonnull %0, i32 noundef -1) #2
br label %36
36: ; preds = %23, %20, %10
%37 = phi i32 [ %12, %10 ], [ %22, %20 ], [ 0, %23 ]
ret i32 %37
}
declare i64 @snd_BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @cs46xx_dsp_remove_scb(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @cs46xx_src_unlink(ptr noundef, i32 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, !8, i64 24}
!7 = !{!"snd_cs46xx", !8, i64 0, !8, i64 8, !11, i64 16, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !8, i64 16}
!13 = !{!"dsp_spos_instance", !14, i64 0, !11, i64 8, !8, i64 16}
!14 = !{!"long", !9, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!13, !11, i64 8}
!17 = !{!13, !14, i64 0}
!18 = !{!7, !8, i64 8}
!19 = !{!7, !8, i64 0}
| fastsocket_kernel_sound_pci_cs46xx_extr_dsp_spos.c_cs46xx_dsp_disable_spdif_in |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/power/extr_power_supply_leds.c_power_supply_remove_bat_triggers.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/power/extr_power_supply_leds.c_power_supply_remove_bat_triggers.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.power_supply = type { i32, i32, i32, i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @power_supply_remove_bat_triggers], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @power_supply_remove_bat_triggers(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.power_supply, ptr %0, i64 0, i32 5
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = tail call i32 @led_trigger_unregister_simple(i32 noundef %3) #2
%5 = getelementptr inbounds %struct.power_supply, ptr %0, i64 0, i32 4
%6 = load i32, ptr %5, align 4, !tbaa !10
%7 = tail call i32 @led_trigger_unregister_simple(i32 noundef %6) #2
%8 = getelementptr inbounds %struct.power_supply, ptr %0, i64 0, i32 3
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = tail call i32 @led_trigger_unregister_simple(i32 noundef %9) #2
%11 = getelementptr inbounds %struct.power_supply, ptr %0, i64 0, i32 2
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = tail call i32 @kfree(i32 noundef %12) #2
%14 = getelementptr inbounds %struct.power_supply, ptr %0, i64 0, i32 1
%15 = load i32, ptr %14, align 4, !tbaa !13
%16 = tail call i32 @kfree(i32 noundef %15) #2
%17 = load i32, ptr %0, align 4, !tbaa !14
%18 = tail call i32 @kfree(i32 noundef %17) #2
ret void
}
declare i32 @led_trigger_unregister_simple(i32 noundef) local_unnamed_addr #1
declare i32 @kfree(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 20}
!6 = !{!"power_supply", !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 16}
!11 = !{!6, !7, i64 12}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/power/extr_power_supply_leds.c_power_supply_remove_bat_triggers.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/power/extr_power_supply_leds.c_power_supply_remove_bat_triggers.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 @power_supply_remove_bat_triggers], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @power_supply_remove_bat_triggers(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 20
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = tail call i32 @led_trigger_unregister_simple(i32 noundef %3) #2
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = tail call i32 @led_trigger_unregister_simple(i32 noundef %6) #2
%8 = getelementptr inbounds i8, ptr %0, i64 12
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = tail call i32 @led_trigger_unregister_simple(i32 noundef %9) #2
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i32, ptr %11, align 4, !tbaa !13
%13 = tail call i32 @kfree(i32 noundef %12) #2
%14 = getelementptr inbounds i8, ptr %0, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !14
%16 = tail call i32 @kfree(i32 noundef %15) #2
%17 = load i32, ptr %0, align 4, !tbaa !15
%18 = tail call i32 @kfree(i32 noundef %17) #2
ret void
}
declare i32 @led_trigger_unregister_simple(i32 noundef) local_unnamed_addr #1
declare i32 @kfree(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 20}
!7 = !{!"power_supply", !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 16}
!12 = !{!7, !8, i64 12}
!13 = !{!7, !8, i64 8}
!14 = !{!7, !8, i64 4}
!15 = !{!7, !8, i64 0}
| fastsocket_kernel_drivers_power_extr_power_supply_leds.c_power_supply_remove_bat_triggers |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_rdma.h_qed_rdma_dpm_bar.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_rdma.h_qed_rdma_dpm_bar.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 @qed_rdma_dpm_bar], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @qed_rdma_dpm_bar(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_rdma.h_qed_rdma_dpm_bar.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_rdma.h_qed_rdma_dpm_bar.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 @qed_rdma_dpm_bar], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @qed_rdma_dpm_bar(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_net_ethernet_qlogic_qed_extr_qed_rdma.h_qed_rdma_dpm_bar |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_cached_data.c_get_dir_contents.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_cached_data.c_get_dir_contents.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_8__ = type { ptr, i32 }
%struct.TYPE_9__ = type { i32, i64 }
%struct.TYPE_10__ = type { i64, %struct.TYPE_7__ }
%struct.TYPE_7__ = type { i32 }
@SVN_INVALID_FILESIZE = dso_local local_unnamed_addr global i64 0, align 8
@APR_READ = dso_local local_unnamed_addr global i32 0, align 4
@APR_BUFFERED = dso_local local_unnamed_addr global i32 0, align 4
@APR_OS_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@SVN_NO_ERROR = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_dir_contents], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @get_dir_contents(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%9 = getelementptr inbounds %struct.TYPE_8__, ptr %2, i64 0, i32 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%10 = load i64, ptr @SVN_INVALID_FILESIZE, align 8, !tbaa !5
%11 = getelementptr inbounds %struct.TYPE_9__, ptr %0, i64 0, i32 1
store i64 %10, ptr %11, align 8, !tbaa !9
%12 = load ptr, ptr %2, align 8, !tbaa !12
%13 = icmp eq ptr %12, null
br i1 %13, label %45, label %14
14: ; preds = %5
%15 = getelementptr inbounds %struct.TYPE_10__, ptr %12, i64 0, i32 1
%16 = load i32, ptr %15, align 8, !tbaa !15
%17 = tail call i32 @svn_fs_x__is_revision(i32 noundef %16) #3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %35
19: ; preds = %14
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
%20 = tail call ptr @svn_fs_x__path_txn_node_children(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %4, ptr noundef %4) #3
%21 = load i32, ptr @APR_READ, align 4, !tbaa !18
%22 = load i32, ptr @APR_BUFFERED, align 4, !tbaa !18
%23 = or i32 %22, %21
%24 = load i32, ptr @APR_OS_DEFAULT, align 4, !tbaa !18
%25 = call i32 @svn_io_file_open(ptr noundef nonnull %8, ptr noundef %20, i32 noundef %23, i32 noundef %24, ptr noundef %4) #3
%26 = call i32 @SVN_ERR(i32 noundef %25) #3
%27 = load ptr, ptr %8, align 8, !tbaa !19
%28 = call i32 @svn_io_file_size_get(ptr noundef nonnull %11, ptr noundef %27, ptr noundef %4) #3
%29 = call i32 @SVN_ERR(i32 noundef %28) #3
%30 = load i64, ptr %11, align 8, !tbaa !9
%31 = load ptr, ptr %8, align 8, !tbaa !19
%32 = load i32, ptr @FALSE, align 4, !tbaa !18
%33 = call ptr @svn_stream_from_aprfile2(ptr noundef %31, i32 noundef %32, ptr noundef %4) #3
store ptr %33, ptr %6, align 8, !tbaa !19
%34 = load i32, ptr @TRUE, align 4, !tbaa !18
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
br label %47
35: ; preds = %14
%36 = load ptr, ptr %2, align 8, !tbaa !12
%37 = icmp eq ptr %36, null
br i1 %37, label %45, label %38
38: ; preds = %35
%39 = load i64, ptr %36, align 8, !tbaa !20
%40 = load i32, ptr @FALSE, align 4, !tbaa !18
%41 = call i32 @svn_fs_x__get_contents(ptr noundef nonnull %6, ptr noundef %1, ptr noundef nonnull %36, i32 noundef %40, ptr noundef %4) #3
%42 = call i32 @SVN_ERR(i32 noundef %41) #3
%43 = load i32, ptr @FALSE, align 4, !tbaa !18
%44 = load ptr, ptr %6, align 8, !tbaa !19
br label %47
45: ; preds = %5, %35
%46 = tail call i32 @apr_array_make(ptr noundef %3, i32 noundef 0, i32 noundef 8) #3
store i32 %46, ptr %0, align 8, !tbaa !21
br label %59
47: ; preds = %38, %19
%48 = phi ptr [ %44, %38 ], [ %33, %19 ]
%49 = phi i64 [ %39, %38 ], [ %30, %19 ]
%50 = phi i32 [ %43, %38 ], [ %34, %19 ]
%51 = call i32 @svn_stringbuf_from_stream(ptr noundef nonnull %7, ptr noundef %48, i64 noundef %49, ptr noundef %3) #3
%52 = call i32 @SVN_ERR(i32 noundef %51) #3
%53 = load ptr, ptr %6, align 8, !tbaa !19
%54 = call i32 @svn_stream_close(ptr noundef %53) #3
%55 = call i32 @SVN_ERR(i32 noundef %54) #3
%56 = load ptr, ptr %7, align 8, !tbaa !19
%57 = call i32 @parse_dir_entries(ptr noundef nonnull %0, ptr noundef %56, i32 noundef %50, ptr noundef nonnull %9, ptr noundef %3, ptr noundef %4) #3
%58 = call i32 @SVN_ERR(i32 noundef %57) #3
br label %59
59: ; preds = %47, %45
%60 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !19
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret ptr %60
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @svn_fs_x__is_revision(i32 noundef) local_unnamed_addr #2
declare ptr @svn_fs_x__path_txn_node_children(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @svn_io_file_open(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @svn_io_file_size_get(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_stream_from_aprfile2(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
declare i32 @svn_fs_x__get_contents(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @apr_array_make(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @svn_stringbuf_from_stream(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @svn_stream_close(ptr noundef) local_unnamed_addr #2
declare i32 @parse_dir_entries(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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, !6, i64 8}
!10 = !{!"TYPE_9__", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_8__", !14, i64 0, !11, i64 8}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !11, i64 8}
!16 = !{!"TYPE_10__", !6, i64 0, !17, i64 8}
!17 = !{!"TYPE_7__", !11, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!14, !14, i64 0}
!20 = !{!16, !6, i64 0}
!21 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_cached_data.c_get_dir_contents.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_cached_data.c_get_dir_contents.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SVN_INVALID_FILESIZE = common local_unnamed_addr global i64 0, align 8
@APR_READ = common local_unnamed_addr global i32 0, align 4
@APR_BUFFERED = common local_unnamed_addr global i32 0, align 4
@APR_OS_DEFAULT = common local_unnamed_addr global i32 0, align 4
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@SVN_NO_ERROR = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @get_dir_contents], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @get_dir_contents(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%9 = getelementptr inbounds i8, ptr %2, i64 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%10 = load i64, ptr @SVN_INVALID_FILESIZE, align 8, !tbaa !6
%11 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %10, ptr %11, align 8, !tbaa !10
%12 = load ptr, ptr %2, align 8, !tbaa !13
%13 = icmp eq ptr %12, null
br i1 %13, label %45, label %14
14: ; preds = %5
%15 = getelementptr inbounds i8, ptr %12, i64 8
%16 = load i32, ptr %15, align 8, !tbaa !16
%17 = tail call i32 @svn_fs_x__is_revision(i32 noundef %16) #3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %35
19: ; preds = %14
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
%20 = tail call ptr @svn_fs_x__path_txn_node_children(ptr noundef %1, ptr noundef nonnull %9, ptr noundef %4, ptr noundef %4) #3
%21 = load i32, ptr @APR_READ, align 4, !tbaa !19
%22 = load i32, ptr @APR_BUFFERED, align 4, !tbaa !19
%23 = or i32 %22, %21
%24 = load i32, ptr @APR_OS_DEFAULT, align 4, !tbaa !19
%25 = call i32 @svn_io_file_open(ptr noundef nonnull %8, ptr noundef %20, i32 noundef %23, i32 noundef %24, ptr noundef %4) #3
%26 = call i32 @SVN_ERR(i32 noundef %25) #3
%27 = load ptr, ptr %8, align 8, !tbaa !20
%28 = call i32 @svn_io_file_size_get(ptr noundef nonnull %11, ptr noundef %27, ptr noundef %4) #3
%29 = call i32 @SVN_ERR(i32 noundef %28) #3
%30 = load i64, ptr %11, align 8, !tbaa !10
%31 = load ptr, ptr %8, align 8, !tbaa !20
%32 = load i32, ptr @FALSE, align 4, !tbaa !19
%33 = call ptr @svn_stream_from_aprfile2(ptr noundef %31, i32 noundef %32, ptr noundef %4) #3
store ptr %33, ptr %6, align 8, !tbaa !20
%34 = load i32, ptr @TRUE, align 4, !tbaa !19
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
br label %47
35: ; preds = %14
%36 = load ptr, ptr %2, align 8, !tbaa !13
%37 = icmp eq ptr %36, null
br i1 %37, label %45, label %38
38: ; preds = %35
%39 = load i64, ptr %36, align 8, !tbaa !21
%40 = load i32, ptr @FALSE, align 4, !tbaa !19
%41 = call i32 @svn_fs_x__get_contents(ptr noundef nonnull %6, ptr noundef %1, ptr noundef nonnull %36, i32 noundef %40, ptr noundef %4) #3
%42 = call i32 @SVN_ERR(i32 noundef %41) #3
%43 = load i32, ptr @FALSE, align 4, !tbaa !19
%44 = load ptr, ptr %6, align 8, !tbaa !20
br label %47
45: ; preds = %5, %35
%46 = tail call i32 @apr_array_make(ptr noundef %3, i32 noundef 0, i32 noundef 8) #3
store i32 %46, ptr %0, align 8, !tbaa !22
br label %59
47: ; preds = %38, %19
%48 = phi ptr [ %44, %38 ], [ %33, %19 ]
%49 = phi i64 [ %39, %38 ], [ %30, %19 ]
%50 = phi i32 [ %43, %38 ], [ %34, %19 ]
%51 = call i32 @svn_stringbuf_from_stream(ptr noundef nonnull %7, ptr noundef %48, i64 noundef %49, ptr noundef %3) #3
%52 = call i32 @SVN_ERR(i32 noundef %51) #3
%53 = load ptr, ptr %6, align 8, !tbaa !20
%54 = call i32 @svn_stream_close(ptr noundef %53) #3
%55 = call i32 @SVN_ERR(i32 noundef %54) #3
%56 = load ptr, ptr %7, align 8, !tbaa !20
%57 = call i32 @parse_dir_entries(ptr noundef nonnull %0, ptr noundef %56, i32 noundef %50, ptr noundef nonnull %9, ptr noundef %3, ptr noundef %4) #3
%58 = call i32 @SVN_ERR(i32 noundef %57) #3
br label %59
59: ; preds = %47, %45
%60 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !20
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret ptr %60
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @svn_fs_x__is_revision(i32 noundef) local_unnamed_addr #2
declare ptr @svn_fs_x__path_txn_node_children(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @svn_io_file_open(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @svn_io_file_size_get(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_stream_from_aprfile2(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
declare i32 @svn_fs_x__get_contents(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @apr_array_make(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @svn_stringbuf_from_stream(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @svn_stream_close(ptr noundef) local_unnamed_addr #2
declare i32 @parse_dir_entries(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress 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, !7, i64 8}
!11 = !{!"TYPE_9__", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_8__", !15, i64 0, !12, i64 8}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!17, !12, i64 8}
!17 = !{!"TYPE_10__", !7, i64 0, !18, i64 8}
!18 = !{!"TYPE_7__", !12, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!15, !15, i64 0}
!21 = !{!17, !7, i64 0}
!22 = !{!11, !12, i64 0}
| freebsd_contrib_subversion_subversion_libsvn_fs_x_extr_cached_data.c_get_dir_contents |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/marvell/mvpp2/extr_mvpp2_debugfs.c_mvpp2_dbgfs_flow_tbl_entry_init.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/marvell/mvpp2/extr_mvpp2_debugfs.c_mvpp2_dbgfs_flow_tbl_entry_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mvpp2_dbgfs_flow_tbl_entry = type { i32, ptr }
@MVPP2_CLS_FLOWS_TBL_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%03d\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"hits\00", align 1
@mvpp2_dbgfs_flow_flt_hits_fops = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mvpp2_dbgfs_flow_tbl_entry_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mvpp2_dbgfs_flow_tbl_entry_init(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca [10 x i8], align 1
call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %4) #3
%5 = load i32, ptr @MVPP2_CLS_FLOWS_TBL_SIZE, align 4, !tbaa !5
%6 = icmp sgt i32 %5, %2
br i1 %6, label %10, label %7
7: ; preds = %3
%8 = load i32, ptr @EINVAL, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %24
10: ; preds = %3
%11 = call i32 @sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str, i32 noundef %2) #3
%12 = call ptr @debugfs_create_dir(ptr noundef nonnull %4, ptr noundef %0) #3
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%16 = sub nsw i32 0, %15
br label %24
17: ; preds = %10
%18 = load ptr, ptr %1, align 8, !tbaa !9
%19 = load ptr, ptr %18, align 8, !tbaa !12
%20 = sext i32 %2 to i64
%21 = getelementptr inbounds %struct.mvpp2_dbgfs_flow_tbl_entry, ptr %19, i64 %20
store i32 %2, ptr %21, align 8, !tbaa !14
%22 = getelementptr inbounds %struct.mvpp2_dbgfs_flow_tbl_entry, ptr %19, i64 %20, i32 1
store ptr %1, ptr %22, align 8, !tbaa !16
%23 = call i32 @debugfs_create_file(ptr noundef nonnull @.str.1, i32 noundef 292, ptr noundef nonnull %12, ptr noundef nonnull %21, ptr noundef nonnull @mvpp2_dbgfs_flow_flt_hits_fops) #3
br label %24
24: ; preds = %17, %14, %7
%25 = phi i32 [ %9, %7 ], [ 0, %17 ], [ %16, %14 ]
call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %4) #3
ret i32 %25
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @debugfs_create_dir(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @debugfs_create_file(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!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 = !{!"mvpp2", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_2__", !11, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"mvpp2_dbgfs_flow_tbl_entry", !6, i64 0, !11, i64 8}
!16 = !{!15, !11, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/marvell/mvpp2/extr_mvpp2_debugfs.c_mvpp2_dbgfs_flow_tbl_entry_init.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/marvell/mvpp2/extr_mvpp2_debugfs.c_mvpp2_dbgfs_flow_tbl_entry_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.mvpp2_dbgfs_flow_tbl_entry = type { i32, ptr }
@MVPP2_CLS_FLOWS_TBL_SIZE = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%03d\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"hits\00", align 1
@mvpp2_dbgfs_flow_flt_hits_fops = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mvpp2_dbgfs_flow_tbl_entry_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @mvpp2_dbgfs_flow_tbl_entry_init(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca [10 x i8], align 1
call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %4) #3
%5 = load i32, ptr @MVPP2_CLS_FLOWS_TBL_SIZE, align 4, !tbaa !6
%6 = icmp sgt i32 %5, %2
br i1 %6, label %10, label %7
7: ; preds = %3
%8 = load i32, ptr @EINVAL, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %24
10: ; preds = %3
%11 = call i32 @sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str, i32 noundef %2) #3
%12 = call ptr @debugfs_create_dir(ptr noundef nonnull %4, ptr noundef %0) #3
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%16 = sub nsw i32 0, %15
br label %24
17: ; preds = %10
%18 = load ptr, ptr %1, align 8, !tbaa !10
%19 = load ptr, ptr %18, align 8, !tbaa !13
%20 = sext i32 %2 to i64
%21 = getelementptr inbounds %struct.mvpp2_dbgfs_flow_tbl_entry, ptr %19, i64 %20
store i32 %2, ptr %21, align 8, !tbaa !15
%22 = getelementptr inbounds i8, ptr %21, i64 8
store ptr %1, ptr %22, align 8, !tbaa !17
%23 = call i32 @debugfs_create_file(ptr noundef nonnull @.str.1, i32 noundef 292, ptr noundef nonnull %12, ptr noundef nonnull %21, ptr noundef nonnull @mvpp2_dbgfs_flow_flt_hits_fops) #3
br label %24
24: ; preds = %17, %14, %7
%25 = phi i32 [ %9, %7 ], [ 0, %17 ], [ %16, %14 ]
call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %4) #3
ret i32 %25
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @debugfs_create_dir(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @debugfs_create_file(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!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 = !{!"mvpp2", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_2__", !12, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"mvpp2_dbgfs_flow_tbl_entry", !7, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
| linux_drivers_net_ethernet_marvell_mvpp2_extr_mvpp2_debugfs.c_mvpp2_dbgfs_flow_tbl_entry_init |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn10/extr_dcn10_hw_sequencer.c_dcn10_set_cursor_attribute.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn10/extr_dcn10_hw_sequencer.c_dcn10_set_cursor_attribute.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.pipe_ctx = type { %struct.TYPE_10__, ptr }
%struct.TYPE_10__ = type { ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @dcn10_set_cursor_attribute], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @dcn10_set_cursor_attribute(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.pipe_ctx, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_10__, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = tail call i32 %7(ptr noundef nonnull %5, ptr noundef %3) #1
%9 = load ptr, ptr %0, align 8, !tbaa !16
%10 = load ptr, ptr %9, align 8, !tbaa !17
%11 = load ptr, ptr %10, align 8, !tbaa !19
%12 = tail call i32 %11(ptr noundef nonnull %9, ptr noundef %3) #1
ret void
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 16}
!6 = !{!"pipe_ctx", !7, i64 0, !8, i64 16}
!7 = !{!"TYPE_10__", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!6, !8, i64 8}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_12__", !8, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_8__", !8, i64 0}
!16 = !{!6, !8, i64 0}
!17 = !{!18, !8, i64 0}
!18 = !{!"TYPE_11__", !8, i64 0}
!19 = !{!20, !8, i64 0}
!20 = !{!"TYPE_9__", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn10/extr_dcn10_hw_sequencer.c_dcn10_set_cursor_attribute.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn10/extr_dcn10_hw_sequencer.c_dcn10_set_cursor_attribute.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 @dcn10_set_cursor_attribute], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @dcn10_set_cursor_attribute(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = load ptr, ptr %6, align 8, !tbaa !15
%8 = tail call i32 %7(ptr noundef nonnull %5, ptr noundef %3) #1
%9 = load ptr, ptr %0, align 8, !tbaa !17
%10 = load ptr, ptr %9, align 8, !tbaa !18
%11 = load ptr, ptr %10, align 8, !tbaa !20
%12 = tail call i32 %11(ptr noundef nonnull %9, ptr noundef %3) #1
ret void
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 16}
!7 = !{!"pipe_ctx", !8, i64 0, !9, i64 16}
!8 = !{!"TYPE_10__", !9, i64 0, !9, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!7, !9, i64 8}
!13 = !{!14, !9, i64 0}
!14 = !{!"TYPE_12__", !9, i64 0}
!15 = !{!16, !9, i64 0}
!16 = !{!"TYPE_8__", !9, i64 0}
!17 = !{!7, !9, i64 0}
!18 = !{!19, !9, i64 0}
!19 = !{!"TYPE_11__", !9, i64 0}
!20 = !{!21, !9, i64 0}
!21 = !{!"TYPE_9__", !9, i64 0}
| linux_drivers_gpu_drm_amd_display_dc_dcn10_extr_dcn10_hw_sequencer.c_dcn10_set_cursor_attribute |
; ModuleID = 'AnghaBench/freebsd/sys/dev/bxe/extr_bxe_elink.c_elink_get_cfg_pin.c'
source_filename = "AnghaBench/freebsd/sys/dev/bxe/extr_bxe_elink.c_elink_get_cfg_pin.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"
@PIN_CFG_NA = dso_local local_unnamed_addr global i64 0, align 8
@ELINK_STATUS_ERROR = dso_local local_unnamed_addr global i64 0, align 8
@PIN_CFG_EPIO0 = dso_local local_unnamed_addr global i64 0, align 8
@PIN_CFG_GPIO0_P0 = dso_local local_unnamed_addr global i64 0, align 8
@ELINK_STATUS_OK = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @elink_get_cfg_pin], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @elink_get_cfg_pin(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = load i64, ptr @PIN_CFG_NA, align 8, !tbaa !5
%5 = icmp eq i64 %4, %1
br i1 %5, label %18, label %6
6: ; preds = %3
%7 = load i64, ptr @PIN_CFG_EPIO0, align 8, !tbaa !5
%8 = icmp sgt i64 %7, %1
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = sub nsw i64 %1, %7
%11 = tail call i32 @elink_get_epio(ptr noundef %0, i64 noundef %10, ptr noundef %2) #2
br label %18
12: ; preds = %6
%13 = load i64, ptr @PIN_CFG_GPIO0_P0, align 8, !tbaa !5
%14 = sub nsw i64 %1, %13
%15 = and i64 %14, 3
%16 = ashr i64 %14, 2
%17 = tail call i64 @elink_cb_gpio_read(ptr noundef %0, i64 noundef %15, i64 noundef %16) #2
store i64 %17, ptr %2, align 8, !tbaa !5
br label %18
18: ; preds = %9, %12, %3
%19 = phi ptr [ @ELINK_STATUS_ERROR, %3 ], [ @ELINK_STATUS_OK, %12 ], [ @ELINK_STATUS_OK, %9 ]
%20 = load i64, ptr %19, align 8, !tbaa !5
ret i64 %20
}
declare i32 @elink_get_epio(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @elink_cb_gpio_read(ptr noundef, i64 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"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/bxe/extr_bxe_elink.c_elink_get_cfg_pin.c'
source_filename = "AnghaBench/freebsd/sys/dev/bxe/extr_bxe_elink.c_elink_get_cfg_pin.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PIN_CFG_NA = common local_unnamed_addr global i64 0, align 8
@ELINK_STATUS_ERROR = common local_unnamed_addr global i64 0, align 8
@PIN_CFG_EPIO0 = common local_unnamed_addr global i64 0, align 8
@PIN_CFG_GPIO0_P0 = common local_unnamed_addr global i64 0, align 8
@ELINK_STATUS_OK = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @elink_get_cfg_pin], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @elink_get_cfg_pin(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = load i64, ptr @PIN_CFG_NA, align 8, !tbaa !6
%5 = icmp eq i64 %4, %1
br i1 %5, label %18, label %6
6: ; preds = %3
%7 = load i64, ptr @PIN_CFG_EPIO0, align 8, !tbaa !6
%8 = icmp sgt i64 %7, %1
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = sub nsw i64 %1, %7
%11 = tail call i32 @elink_get_epio(ptr noundef %0, i64 noundef %10, ptr noundef %2) #2
br label %18
12: ; preds = %6
%13 = load i64, ptr @PIN_CFG_GPIO0_P0, align 8, !tbaa !6
%14 = sub nsw i64 %1, %13
%15 = and i64 %14, 3
%16 = ashr i64 %14, 2
%17 = tail call i64 @elink_cb_gpio_read(ptr noundef %0, i64 noundef %15, i64 noundef %16) #2
store i64 %17, ptr %2, align 8, !tbaa !6
br label %18
18: ; preds = %9, %12, %3
%19 = phi ptr [ @ELINK_STATUS_ERROR, %3 ], [ @ELINK_STATUS_OK, %12 ], [ @ELINK_STATUS_OK, %9 ]
%20 = load i64, ptr %19, align 8, !tbaa !6
ret i64 %20
}
declare i32 @elink_get_epio(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @elink_cb_gpio_read(ptr noundef, i64 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"}
| freebsd_sys_dev_bxe_extr_bxe_elink.c_elink_get_cfg_pin |
; ModuleID = 'AnghaBench/linux/drivers/pci/extr_quirks.c_fixup_mpss_256.c'
source_filename = "AnghaBench/linux/drivers/pci/extr_quirks.c_fixup_mpss_256.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 @fixup_mpss_256], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @fixup_mpss_256(ptr nocapture noundef writeonly %0) #0 {
store i32 1, ptr %0, align 4, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"pci_dev", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/pci/extr_quirks.c_fixup_mpss_256.c'
source_filename = "AnghaBench/linux/drivers/pci/extr_quirks.c_fixup_mpss_256.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 @fixup_mpss_256], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @fixup_mpss_256(ptr nocapture noundef writeonly %0) #0 {
store i32 1, ptr %0, align 4, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"pci_dev", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_pci_extr_quirks.c_fixup_mpss_256 |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/extr_iwl-trans.h_iwl_trans_set_bits_mask.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/extr_iwl-trans.h_iwl_trans_set_bits_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 @iwl_trans_set_bits_mask], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @iwl_trans_set_bits_mask(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #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 void
}
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 = { 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 = !{!"iwl_trans", !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}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/extr_iwl-trans.h_iwl_trans_set_bits_mask.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/extr_iwl-trans.h_iwl_trans_set_bits_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 @iwl_trans_set_bits_mask], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @iwl_trans_set_bits_mask(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #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 void
}
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 = { 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 = !{!"iwl_trans", !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}
| linux_drivers_net_wireless_intel_iwlwifi_extr_iwl-trans.h_iwl_trans_set_bits_mask |
; ModuleID = 'AnghaBench/postgres/src/backend/optimizer/util/extr_var.c_pull_var_clause.c'
source_filename = "AnghaBench/postgres/src/backend/optimizer/util/extr_var.c_pull_var_clause.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 }
@PVC_INCLUDE_AGGREGATES = dso_local local_unnamed_addr global i32 0, align 4
@PVC_RECURSE_AGGREGATES = dso_local local_unnamed_addr global i32 0, align 4
@PVC_INCLUDE_WINDOWFUNCS = dso_local local_unnamed_addr global i32 0, align 4
@PVC_RECURSE_WINDOWFUNCS = dso_local local_unnamed_addr global i32 0, align 4
@PVC_INCLUDE_PLACEHOLDERS = dso_local local_unnamed_addr global i32 0, align 4
@PVC_RECURSE_PLACEHOLDERS = dso_local local_unnamed_addr global i32 0, align 4
@NIL = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @pull_var_clause(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.TYPE_3__, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%4 = load i32, ptr @PVC_INCLUDE_AGGREGATES, align 4, !tbaa !5
%5 = load i32, ptr @PVC_RECURSE_AGGREGATES, align 4, !tbaa !5
%6 = or i32 %5, %4
%7 = and i32 %6, %1
%8 = icmp ne i32 %7, %6
%9 = zext i1 %8 to i32
%10 = tail call i32 @Assert(i32 noundef %9) #3
%11 = load i32, ptr @PVC_INCLUDE_WINDOWFUNCS, align 4, !tbaa !5
%12 = load i32, ptr @PVC_RECURSE_WINDOWFUNCS, align 4, !tbaa !5
%13 = or i32 %12, %11
%14 = and i32 %13, %1
%15 = icmp ne i32 %14, %13
%16 = zext i1 %15 to i32
%17 = tail call i32 @Assert(i32 noundef %16) #3
%18 = load i32, ptr @PVC_INCLUDE_PLACEHOLDERS, align 4, !tbaa !5
%19 = load i32, ptr @PVC_RECURSE_PLACEHOLDERS, align 4, !tbaa !5
%20 = or i32 %19, %18
%21 = and i32 %20, %1
%22 = icmp ne i32 %21, %20
%23 = zext i1 %22 to i32
%24 = tail call i32 @Assert(i32 noundef %23) #3
%25 = load ptr, ptr @NIL, align 8, !tbaa !9
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i64 0, i32 1
store ptr %25, ptr %26, align 8, !tbaa !11
store i32 %1, ptr %3, align 8, !tbaa !13
%27 = call i32 @pull_var_clause_walker(ptr noundef %0, ptr noundef nonnull %3) #3
%28 = load ptr, ptr %26, align 8, !tbaa !11
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret ptr %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @Assert(i32 noundef) local_unnamed_addr #2
declare i32 @pull_var_clause_walker(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"TYPE_3__", !6, i64 0, !10, i64 8}
!13 = !{!12, !6, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/optimizer/util/extr_var.c_pull_var_clause.c'
source_filename = "AnghaBench/postgres/src/backend/optimizer/util/extr_var.c_pull_var_clause.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { i32, ptr }
@PVC_INCLUDE_AGGREGATES = common local_unnamed_addr global i32 0, align 4
@PVC_RECURSE_AGGREGATES = common local_unnamed_addr global i32 0, align 4
@PVC_INCLUDE_WINDOWFUNCS = common local_unnamed_addr global i32 0, align 4
@PVC_RECURSE_WINDOWFUNCS = common local_unnamed_addr global i32 0, align 4
@PVC_INCLUDE_PLACEHOLDERS = common local_unnamed_addr global i32 0, align 4
@PVC_RECURSE_PLACEHOLDERS = common local_unnamed_addr global i32 0, align 4
@NIL = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @pull_var_clause(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.TYPE_3__, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%4 = load i32, ptr @PVC_INCLUDE_AGGREGATES, align 4, !tbaa !6
%5 = load i32, ptr @PVC_RECURSE_AGGREGATES, align 4, !tbaa !6
%6 = or i32 %5, %4
%7 = and i32 %6, %1
%8 = icmp ne i32 %7, %6
%9 = zext i1 %8 to i32
%10 = tail call i32 @Assert(i32 noundef %9) #3
%11 = load i32, ptr @PVC_INCLUDE_WINDOWFUNCS, align 4, !tbaa !6
%12 = load i32, ptr @PVC_RECURSE_WINDOWFUNCS, align 4, !tbaa !6
%13 = or i32 %12, %11
%14 = and i32 %13, %1
%15 = icmp ne i32 %14, %13
%16 = zext i1 %15 to i32
%17 = tail call i32 @Assert(i32 noundef %16) #3
%18 = load i32, ptr @PVC_INCLUDE_PLACEHOLDERS, align 4, !tbaa !6
%19 = load i32, ptr @PVC_RECURSE_PLACEHOLDERS, align 4, !tbaa !6
%20 = or i32 %19, %18
%21 = and i32 %20, %1
%22 = icmp ne i32 %21, %20
%23 = zext i1 %22 to i32
%24 = tail call i32 @Assert(i32 noundef %23) #3
%25 = load ptr, ptr @NIL, align 8, !tbaa !10
%26 = getelementptr inbounds i8, ptr %3, i64 8
store ptr %25, ptr %26, align 8, !tbaa !12
store i32 %1, ptr %3, align 8, !tbaa !14
%27 = call i32 @pull_var_clause_walker(ptr noundef %0, ptr noundef nonnull %3) #3
%28 = load ptr, ptr %26, align 8, !tbaa !12
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret ptr %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @Assert(i32 noundef) local_unnamed_addr #2
declare i32 @pull_var_clause_walker(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"TYPE_3__", !7, i64 0, !11, i64 8}
!14 = !{!13, !7, i64 0}
| postgres_src_backend_optimizer_util_extr_var.c_pull_var_clause |
; ModuleID = 'AnghaBench/reactos/dll/directx/wine/wined3d/extr_arb_program_shader.c_vshader_add_footer.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/wined3d/extr_arb_program_shader.c_vshader_add_footer.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.arb_vs_compile_args = type { %struct.TYPE_10__, %struct.TYPE_7__ }
%struct.TYPE_10__ = type { %struct.TYPE_9__ }
%struct.TYPE_9__ = type { i32, i32 }
%struct.TYPE_7__ = type { i64, i64 }
%struct.wined3d_shader_reg_maps = type { %struct.TYPE_6__, i32 }
%struct.TYPE_6__ = type { i32 }
%struct.shader_arb_ctx_priv = type { i64, i32, i32 }
%struct.wined3d_gl_info = type { ptr, %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32 }
@VS_FOG_Z = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [33 x i8] c"MOV result.fogcoord, TMP_OUT.z;\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c"ADD result.fogcoord, posFixup.x, -posFixup.x;\0A\00", align 1
@ARB_ZERO = dso_local local_unnamed_addr global i32 0, align 4
@ARB_ONE = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [41 x i8] c"MIN TMP_FOGCOORD.x, TMP_FOGCOORD.x, %s;\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"MAX result.fogcoord.x, TMP_FOGCOORD.x, %s;\0A\00", align 1
@NV2 = dso_local local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [55 x i8] c"DP4 result.clip[%u].x, TMP_OUT, state.clip[%u].plane;\0A\00", align 1
@vshader_add_footer.component = internal unnamed_addr constant [4 x i8] c"xyzw", align 1
@WINED3D_SHADER_TYPE_VERTEX = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [43 x i8] c"DP4 TA.%c, TMP_OUT, state.clip[%u].plane;\0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"MOV TA, %s;\0A\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"MOV TA.yzw, %s;\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"MOV TA.zw, %s;\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"MOV TA.w, %s;\0A\00", align 1
@.str.10 = private unnamed_addr constant [30 x i8] c"MOV result.texcoord[%u], TA;\0A\00", align 1
@ARB_CLIP_CONTROL = dso_local local_unnamed_addr global i64 0, align 8
@.str.11 = private unnamed_addr constant [30 x i8] c"MUL TA, posFixup, TMP_OUT.w;\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"ADD TMP_OUT.x, TMP_OUT.x, TA.z;\0A\00", align 1
@.str.13 = private unnamed_addr constant [45 x i8] c"MAD TMP_OUT.y, TMP_OUT.y, posFixup.y, TA.w;\0A\00", align 1
@ARB_TWO = dso_local local_unnamed_addr global i32 0, align 4
@.str.14 = private unnamed_addr constant [43 x i8] c"MAD TMP_OUT.z, TMP_OUT.z, %s, -TMP_OUT.w;\0A\00", align 1
@.str.15 = private unnamed_addr constant [38 x i8] c"ADD TMP_OUT.z, TMP_OUT.z, TMP_OUT.z;\0A\00", align 1
@.str.16 = private unnamed_addr constant [39 x i8] c"ADD TMP_OUT.z, TMP_OUT.z, -TMP_OUT.w;\0A\00", align 1
@.str.17 = private unnamed_addr constant [31 x i8] c"MOV result.position, TMP_OUT;\0A\00", align 1
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vshader_add_footer], section "llvm.metadata"
@reltable.vshader_add_footer = private unnamed_addr constant [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.6 to i64), i64 ptrtoint (ptr @reltable.vshader_add_footer to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.7 to i64), i64 ptrtoint (ptr @reltable.vshader_add_footer to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.8 to i64), i64 ptrtoint (ptr @reltable.vshader_add_footer to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.9 to i64), i64 ptrtoint (ptr @reltable.vshader_add_footer to i64)) to i32)], align 4
; Function Attrs: nounwind uwtable
define internal void @vshader_add_footer(ptr nocapture noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = getelementptr inbounds %struct.arb_vs_compile_args, ptr %2, i64 0, i32 1
%8 = load i64, ptr %7, align 8, !tbaa !5
%9 = load i64, ptr @VS_FOG_Z, align 8, !tbaa !14
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str) #3
br label %28
13: ; preds = %6
%14 = getelementptr inbounds %struct.wined3d_shader_reg_maps, ptr %3, i64 0, i32 1
%15 = load i32, ptr %14, align 4, !tbaa !15
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.1) #3
br label %28
19: ; preds = %13
%20 = load i32, ptr %3, align 4, !tbaa !18
%21 = load i32, ptr @ARB_ZERO, align 4, !tbaa !19
%22 = tail call ptr @arb_get_helper_value(i32 noundef %20, i32 noundef %21) #3
%23 = load i32, ptr %3, align 4, !tbaa !18
%24 = load i32, ptr @ARB_ONE, align 4, !tbaa !19
%25 = tail call ptr @arb_get_helper_value(i32 noundef %23, i32 noundef %24) #3
%26 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.2, ptr noundef %25) #3
%27 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.3, ptr noundef %22) #3
br label %28
28: ; preds = %17, %19, %11
%29 = tail call i64 @use_nv_clip(ptr noundef %4) #3
%30 = icmp eq i64 %29, 0
br i1 %30, label %49, label %31
31: ; preds = %28
%32 = load i64, ptr %0, align 8, !tbaa !20
%33 = load i64, ptr @NV2, align 8, !tbaa !14
%34 = icmp slt i64 %32, %33
br i1 %34, label %49, label %35
35: ; preds = %31
%36 = getelementptr inbounds %struct.arb_vs_compile_args, ptr %2, i64 0, i32 1, i32 1
%37 = load i64, ptr %36, align 8, !tbaa !22
%38 = icmp eq i64 %37, 0
br i1 %38, label %94, label %39
39: ; preds = %35
%40 = getelementptr inbounds %struct.shader_arb_ctx_priv, ptr %0, i64 0, i32 1
%41 = load i32, ptr %40, align 8, !tbaa !23
%42 = icmp eq i32 %41, 0
br i1 %42, label %94, label %43
43: ; preds = %39, %43
%44 = phi i32 [ %46, %43 ], [ 0, %39 ]
%45 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.4, i32 noundef %44, i32 noundef %44) #3
%46 = add nuw i32 %44, 1
%47 = load i32, ptr %40, align 8, !tbaa !23
%48 = icmp ult i32 %46, %47
br i1 %48, label %43, label %94, !llvm.loop !24
49: ; preds = %31, %28
%50 = getelementptr inbounds %struct.TYPE_9__, ptr %2, i64 0, i32 1
%51 = load i32, ptr %50, align 4, !tbaa !26
%52 = icmp eq i32 %51, 0
br i1 %52, label %94, label %53
53: ; preds = %49
%54 = load i32, ptr @WINED3D_SHADER_TYPE_VERTEX, align 4, !tbaa !19
%55 = load i32, ptr @ARB_ZERO, align 4, !tbaa !19
%56 = tail call ptr @arb_get_helper_value(i32 noundef %54, i32 noundef %55) #3
%57 = getelementptr inbounds %struct.wined3d_gl_info, ptr %4, i64 0, i32 1
%58 = load i32, ptr %57, align 8, !tbaa !27
%59 = icmp eq i32 %58, 0
br i1 %59, label %87, label %60
60: ; preds = %53, %76
%61 = phi i32 [ %77, %76 ], [ %58, %53 ]
%62 = phi i32 [ %79, %76 ], [ 0, %53 ]
%63 = phi i32 [ %78, %76 ], [ 0, %53 ]
%64 = load i32, ptr %2, align 8, !tbaa !31
%65 = shl nuw i32 1, %62
%66 = and i32 %64, %65
%67 = icmp eq i32 %66, 0
br i1 %67, label %76, label %68
68: ; preds = %60
%69 = add i32 %63, 1
%70 = zext i32 %63 to i64
%71 = getelementptr inbounds [4 x i8], ptr @vshader_add_footer.component, i64 0, i64 %70
%72 = load i8, ptr %71, align 1, !tbaa !32
%73 = sext i8 %72 to i32
%74 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.5, i32 noundef %73, i32 noundef %62) #3
%75 = load i32, ptr %57, align 8, !tbaa !27
br label %76
76: ; preds = %60, %68
%77 = phi i32 [ %75, %68 ], [ %61, %60 ]
%78 = phi i32 [ %69, %68 ], [ %63, %60 ]
%79 = add nuw i32 %62, 1
%80 = icmp ult i32 %79, %77
br i1 %80, label %60, label %81, !llvm.loop !33
81: ; preds = %76
%82 = icmp ult i32 %78, 4
br i1 %82, label %83, label %90
83: ; preds = %81
%84 = zext nneg i32 %78 to i64
%85 = shl i64 %84, 2
%86 = call ptr @llvm.load.relative.i64(ptr @reltable.vshader_add_footer, i64 %85)
br label %87
87: ; preds = %83, %53
%88 = phi ptr [ @.str.6, %53 ], [ %86, %83 ]
%89 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull %88, ptr noundef %56) #3
br label %90
90: ; preds = %81, %87
%91 = load i32, ptr %50, align 4, !tbaa !26
%92 = add nsw i32 %91, -1
%93 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.10, i32 noundef %92) #3
br label %94
94: ; preds = %43, %39, %49, %90, %35
%95 = load ptr, ptr %4, align 8, !tbaa !34
%96 = load i64, ptr @ARB_CLIP_CONTROL, align 8, !tbaa !14
%97 = getelementptr inbounds i32, ptr %95, i64 %96
%98 = load i32, ptr %97, align 4, !tbaa !19
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %114
100: ; preds = %94
%101 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.11) #3
%102 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.12) #3
%103 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.13) #3
%104 = tail call i64 @need_helper_const(ptr noundef %1, ptr noundef %3, ptr noundef nonnull %4) #3
%105 = icmp eq i64 %104, 0
br i1 %105, label %111, label %106
106: ; preds = %100
%107 = load i32, ptr @WINED3D_SHADER_TYPE_VERTEX, align 4, !tbaa !19
%108 = load i32, ptr @ARB_TWO, align 4, !tbaa !19
%109 = tail call ptr @arb_get_helper_value(i32 noundef %107, i32 noundef %108) #3
%110 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.14, ptr noundef %109) #3
br label %114
111: ; preds = %100
%112 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.15) #3
%113 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.16) #3
br label %114
114: ; preds = %106, %111, %94
%115 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.17) #3
%116 = load i32, ptr @TRUE, align 4, !tbaa !19
%117 = getelementptr inbounds %struct.shader_arb_ctx_priv, ptr %0, i64 0, i32 2
store i32 %116, ptr %117, align 4, !tbaa !35
ret void
}
declare i32 @shader_addline(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @arb_get_helper_value(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @use_nv_clip(ptr noundef) local_unnamed_addr #1
declare i64 @need_helper_const(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare ptr @llvm.load.relative.i64(ptr, i64) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
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, !13, i64 8}
!6 = !{!"arb_vs_compile_args", !7, i64 0, !12, i64 8}
!7 = !{!"TYPE_10__", !8, i64 0}
!8 = !{!"TYPE_9__", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"TYPE_7__", !13, i64 0, !13, i64 8}
!13 = !{!"long", !10, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !9, i64 4}
!16 = !{!"wined3d_shader_reg_maps", !17, i64 0, !9, i64 4}
!17 = !{!"TYPE_6__", !9, i64 0}
!18 = !{!16, !9, i64 0}
!19 = !{!9, !9, i64 0}
!20 = !{!21, !13, i64 0}
!21 = !{!"shader_arb_ctx_priv", !13, i64 0, !9, i64 8, !9, i64 12}
!22 = !{!6, !13, i64 16}
!23 = !{!21, !9, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !9, i64 4}
!27 = !{!28, !9, i64 8}
!28 = !{!"wined3d_gl_info", !29, i64 0, !30, i64 8}
!29 = !{!"any pointer", !10, i64 0}
!30 = !{!"TYPE_8__", !9, i64 0}
!31 = !{!6, !9, i64 0}
!32 = !{!10, !10, i64 0}
!33 = distinct !{!33, !25}
!34 = !{!28, !29, i64 0}
!35 = !{!21, !9, i64 12}
| ; ModuleID = 'AnghaBench/reactos/dll/directx/wine/wined3d/extr_arb_program_shader.c_vshader_add_footer.c'
source_filename = "AnghaBench/reactos/dll/directx/wine/wined3d/extr_arb_program_shader.c_vshader_add_footer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VS_FOG_Z = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [33 x i8] c"MOV result.fogcoord, TMP_OUT.z;\0A\00", align 1
@.str.1 = private unnamed_addr constant [47 x i8] c"ADD result.fogcoord, posFixup.x, -posFixup.x;\0A\00", align 1
@ARB_ZERO = common local_unnamed_addr global i32 0, align 4
@ARB_ONE = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [41 x i8] c"MIN TMP_FOGCOORD.x, TMP_FOGCOORD.x, %s;\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"MAX result.fogcoord.x, TMP_FOGCOORD.x, %s;\0A\00", align 1
@NV2 = common local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [55 x i8] c"DP4 result.clip[%u].x, TMP_OUT, state.clip[%u].plane;\0A\00", align 1
@vshader_add_footer.component = internal unnamed_addr constant [4 x i8] c"xyzw", align 1
@WINED3D_SHADER_TYPE_VERTEX = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [43 x i8] c"DP4 TA.%c, TMP_OUT, state.clip[%u].plane;\0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"MOV TA, %s;\0A\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"MOV TA.yzw, %s;\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"MOV TA.zw, %s;\0A\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"MOV TA.w, %s;\0A\00", align 1
@.str.10 = private unnamed_addr constant [30 x i8] c"MOV result.texcoord[%u], TA;\0A\00", align 1
@ARB_CLIP_CONTROL = common local_unnamed_addr global i64 0, align 8
@.str.11 = private unnamed_addr constant [30 x i8] c"MUL TA, posFixup, TMP_OUT.w;\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"ADD TMP_OUT.x, TMP_OUT.x, TA.z;\0A\00", align 1
@.str.13 = private unnamed_addr constant [45 x i8] c"MAD TMP_OUT.y, TMP_OUT.y, posFixup.y, TA.w;\0A\00", align 1
@ARB_TWO = common local_unnamed_addr global i32 0, align 4
@.str.14 = private unnamed_addr constant [43 x i8] c"MAD TMP_OUT.z, TMP_OUT.z, %s, -TMP_OUT.w;\0A\00", align 1
@.str.15 = private unnamed_addr constant [38 x i8] c"ADD TMP_OUT.z, TMP_OUT.z, TMP_OUT.z;\0A\00", align 1
@.str.16 = private unnamed_addr constant [39 x i8] c"ADD TMP_OUT.z, TMP_OUT.z, -TMP_OUT.w;\0A\00", align 1
@.str.17 = private unnamed_addr constant [31 x i8] c"MOV result.position, TMP_OUT;\0A\00", align 1
@TRUE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vshader_add_footer], section "llvm.metadata"
@switch.table.vshader_add_footer = private unnamed_addr constant [4 x ptr] [ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @vshader_add_footer(ptr nocapture noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = getelementptr inbounds i8, ptr %2, i64 8
%8 = load i64, ptr %7, align 8, !tbaa !6
%9 = load i64, ptr @VS_FOG_Z, align 8, !tbaa !15
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str) #2
br label %28
13: ; preds = %6
%14 = getelementptr inbounds i8, ptr %3, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !16
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.1) #2
br label %28
19: ; preds = %13
%20 = load i32, ptr %3, align 4, !tbaa !19
%21 = load i32, ptr @ARB_ZERO, align 4, !tbaa !20
%22 = tail call ptr @arb_get_helper_value(i32 noundef %20, i32 noundef %21) #2
%23 = load i32, ptr %3, align 4, !tbaa !19
%24 = load i32, ptr @ARB_ONE, align 4, !tbaa !20
%25 = tail call ptr @arb_get_helper_value(i32 noundef %23, i32 noundef %24) #2
%26 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.2, ptr noundef %25) #2
%27 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.3, ptr noundef %22) #2
br label %28
28: ; preds = %17, %19, %11
%29 = tail call i64 @use_nv_clip(ptr noundef %4) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %49, label %31
31: ; preds = %28
%32 = load i64, ptr %0, align 8, !tbaa !21
%33 = load i64, ptr @NV2, align 8, !tbaa !15
%34 = icmp slt i64 %32, %33
br i1 %34, label %49, label %35
35: ; preds = %31
%36 = getelementptr inbounds i8, ptr %2, i64 16
%37 = load i64, ptr %36, align 8, !tbaa !23
%38 = icmp eq i64 %37, 0
br i1 %38, label %94, label %39
39: ; preds = %35
%40 = getelementptr inbounds i8, ptr %0, i64 8
%41 = load i32, ptr %40, align 8, !tbaa !24
%42 = icmp eq i32 %41, 0
br i1 %42, label %94, label %43
43: ; preds = %39, %43
%44 = phi i32 [ %46, %43 ], [ 0, %39 ]
%45 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.4, i32 noundef %44, i32 noundef %44) #2
%46 = add nuw i32 %44, 1
%47 = load i32, ptr %40, align 8, !tbaa !24
%48 = icmp ult i32 %46, %47
br i1 %48, label %43, label %94, !llvm.loop !25
49: ; preds = %31, %28
%50 = getelementptr inbounds i8, ptr %2, i64 4
%51 = load i32, ptr %50, align 4, !tbaa !27
%52 = icmp eq i32 %51, 0
br i1 %52, label %94, label %53
53: ; preds = %49
%54 = load i32, ptr @WINED3D_SHADER_TYPE_VERTEX, align 4, !tbaa !20
%55 = load i32, ptr @ARB_ZERO, align 4, !tbaa !20
%56 = tail call ptr @arb_get_helper_value(i32 noundef %54, i32 noundef %55) #2
%57 = getelementptr inbounds i8, ptr %4, i64 8
%58 = load i32, ptr %57, align 8, !tbaa !28
%59 = icmp eq i32 %58, 0
br i1 %59, label %87, label %60
60: ; preds = %53, %76
%61 = phi i32 [ %77, %76 ], [ %58, %53 ]
%62 = phi i32 [ %79, %76 ], [ 0, %53 ]
%63 = phi i32 [ %78, %76 ], [ 0, %53 ]
%64 = load i32, ptr %2, align 8, !tbaa !32
%65 = shl nuw i32 1, %62
%66 = and i32 %64, %65
%67 = icmp eq i32 %66, 0
br i1 %67, label %76, label %68
68: ; preds = %60
%69 = add i32 %63, 1
%70 = zext i32 %63 to i64
%71 = getelementptr inbounds [4 x i8], ptr @vshader_add_footer.component, i64 0, i64 %70
%72 = load i8, ptr %71, align 1, !tbaa !33
%73 = sext i8 %72 to i32
%74 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.5, i32 noundef %73, i32 noundef %62) #2
%75 = load i32, ptr %57, align 8, !tbaa !28
br label %76
76: ; preds = %60, %68
%77 = phi i32 [ %75, %68 ], [ %61, %60 ]
%78 = phi i32 [ %69, %68 ], [ %63, %60 ]
%79 = add nuw i32 %62, 1
%80 = icmp ult i32 %79, %77
br i1 %80, label %60, label %81, !llvm.loop !34
81: ; preds = %76
%82 = icmp ult i32 %78, 4
br i1 %82, label %83, label %90
83: ; preds = %81
%84 = zext nneg i32 %78 to i64
%85 = getelementptr inbounds [4 x ptr], ptr @switch.table.vshader_add_footer, i64 0, i64 %84
%86 = load ptr, ptr %85, align 8
br label %87
87: ; preds = %83, %53
%88 = phi ptr [ @.str.6, %53 ], [ %86, %83 ]
%89 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull %88, ptr noundef %56) #2
br label %90
90: ; preds = %81, %87
%91 = load i32, ptr %50, align 4, !tbaa !27
%92 = add nsw i32 %91, -1
%93 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.10, i32 noundef %92) #2
br label %94
94: ; preds = %43, %39, %49, %90, %35
%95 = load ptr, ptr %4, align 8, !tbaa !35
%96 = load i64, ptr @ARB_CLIP_CONTROL, align 8, !tbaa !15
%97 = getelementptr inbounds i32, ptr %95, i64 %96
%98 = load i32, ptr %97, align 4, !tbaa !20
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %114
100: ; preds = %94
%101 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.11) #2
%102 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.12) #2
%103 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.13) #2
%104 = tail call i64 @need_helper_const(ptr noundef %1, ptr noundef %3, ptr noundef nonnull %4) #2
%105 = icmp eq i64 %104, 0
br i1 %105, label %111, label %106
106: ; preds = %100
%107 = load i32, ptr @WINED3D_SHADER_TYPE_VERTEX, align 4, !tbaa !20
%108 = load i32, ptr @ARB_TWO, align 4, !tbaa !20
%109 = tail call ptr @arb_get_helper_value(i32 noundef %107, i32 noundef %108) #2
%110 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.14, ptr noundef %109) #2
br label %114
111: ; preds = %100
%112 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.15) #2
%113 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.16) #2
br label %114
114: ; preds = %106, %111, %94
%115 = tail call i32 (ptr, ptr, ...) @shader_addline(ptr noundef %5, ptr noundef nonnull @.str.17) #2
%116 = load i32, ptr @TRUE, align 4, !tbaa !20
%117 = getelementptr inbounds i8, ptr %0, i64 12
store i32 %116, ptr %117, align 4, !tbaa !36
ret void
}
declare i32 @shader_addline(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare ptr @arb_get_helper_value(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @use_nv_clip(ptr noundef) local_unnamed_addr #1
declare i64 @need_helper_const(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !14, i64 8}
!7 = !{!"arb_vs_compile_args", !8, i64 0, !13, i64 8}
!8 = !{!"TYPE_10__", !9, i64 0}
!9 = !{!"TYPE_9__", !10, i64 0, !10, i64 4}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = !{!"TYPE_7__", !14, i64 0, !14, i64 8}
!14 = !{!"long", !11, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !10, i64 4}
!17 = !{!"wined3d_shader_reg_maps", !18, i64 0, !10, i64 4}
!18 = !{!"TYPE_6__", !10, i64 0}
!19 = !{!17, !10, i64 0}
!20 = !{!10, !10, i64 0}
!21 = !{!22, !14, i64 0}
!22 = !{!"shader_arb_ctx_priv", !14, i64 0, !10, i64 8, !10, i64 12}
!23 = !{!7, !14, i64 16}
!24 = !{!22, !10, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!7, !10, i64 4}
!28 = !{!29, !10, i64 8}
!29 = !{!"wined3d_gl_info", !30, i64 0, !31, i64 8}
!30 = !{!"any pointer", !11, i64 0}
!31 = !{!"TYPE_8__", !10, i64 0}
!32 = !{!7, !10, i64 0}
!33 = !{!11, !11, i64 0}
!34 = distinct !{!34, !26}
!35 = !{!29, !30, i64 0}
!36 = !{!22, !10, i64 12}
| reactos_dll_directx_wine_wined3d_extr_arb_program_shader.c_vshader_add_footer |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_set_crtc_interrupt_state.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_set_crtc_interrupt_state.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 @dce_v8_0_set_crtc_interrupt_state], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @dce_v8_0_set_crtc_interrupt_state(ptr noundef %0, ptr nocapture readnone %1, i32 noundef %2, i32 noundef %3) #0 {
switch i32 %2, label %29 [
i32 139, label %5
i32 138, label %7
i32 137, label %9
i32 136, label %11
i32 135, label %13
i32 134, label %15
i32 133, label %17
i32 132, label %19
i32 131, label %21
i32 130, label %23
i32 129, label %25
i32 128, label %27
]
5: ; preds = %4
%6 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 0, i32 noundef %3) #2
br label %29
7: ; preds = %4
%8 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 1, i32 noundef %3) #2
br label %29
9: ; preds = %4
%10 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 2, i32 noundef %3) #2
br label %29
11: ; preds = %4
%12 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 3, i32 noundef %3) #2
br label %29
13: ; preds = %4
%14 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 4, i32 noundef %3) #2
br label %29
15: ; preds = %4
%16 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 5, i32 noundef %3) #2
br label %29
17: ; preds = %4
%18 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 0, i32 noundef %3) #2
br label %29
19: ; preds = %4
%20 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 1, i32 noundef %3) #2
br label %29
21: ; preds = %4
%22 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 2, i32 noundef %3) #2
br label %29
23: ; preds = %4
%24 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 3, i32 noundef %3) #2
br label %29
25: ; preds = %4
%26 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 4, i32 noundef %3) #2
br label %29
27: ; preds = %4
%28 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 5, i32 noundef %3) #2
br label %29
29: ; preds = %4, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
ret i32 0
}
declare i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_set_crtc_interrupt_state.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_set_crtc_interrupt_state.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 @dce_v8_0_set_crtc_interrupt_state], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @dce_v8_0_set_crtc_interrupt_state(ptr noundef %0, ptr nocapture readnone %1, i32 noundef %2, i32 noundef %3) #0 {
switch i32 %2, label %29 [
i32 139, label %5
i32 138, label %7
i32 137, label %9
i32 136, label %11
i32 135, label %13
i32 134, label %15
i32 133, label %17
i32 132, label %19
i32 131, label %21
i32 130, label %23
i32 129, label %25
i32 128, label %27
]
5: ; preds = %4
%6 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 0, i32 noundef %3) #2
br label %29
7: ; preds = %4
%8 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 1, i32 noundef %3) #2
br label %29
9: ; preds = %4
%10 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 2, i32 noundef %3) #2
br label %29
11: ; preds = %4
%12 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 3, i32 noundef %3) #2
br label %29
13: ; preds = %4
%14 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 4, i32 noundef %3) #2
br label %29
15: ; preds = %4
%16 = tail call i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef %0, i32 noundef 5, i32 noundef %3) #2
br label %29
17: ; preds = %4
%18 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 0, i32 noundef %3) #2
br label %29
19: ; preds = %4
%20 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 1, i32 noundef %3) #2
br label %29
21: ; preds = %4
%22 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 2, i32 noundef %3) #2
br label %29
23: ; preds = %4
%24 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 3, i32 noundef %3) #2
br label %29
25: ; preds = %4
%26 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 4, i32 noundef %3) #2
br label %29
27: ; preds = %4
%28 = tail call i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef %0, i32 noundef 5, i32 noundef %3) #2
br label %29
29: ; preds = %4, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
ret i32 0
}
declare i32 @dce_v8_0_set_crtc_vblank_interrupt_state(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dce_v8_0_set_crtc_vline_interrupt_state(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_gpu_drm_amd_amdgpu_extr_dce_v8_0.c_dce_v8_0_set_crtc_interrupt_state |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-main.c_vxge_rem_isr.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-main.c_vxge_rem_isr.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.vxgedev = type { ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
@CONFIG_PCI_MSI = dso_local local_unnamed_addr global i32 0, align 4
@MSI_X = dso_local local_unnamed_addr global i64 0, align 8
@INTA = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @vxge_rem_isr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @vxge_rem_isr(ptr noundef %0) #0 {
%2 = load i32, ptr @CONFIG_PCI_MSI, align 4, !tbaa !5
%3 = tail call i64 @IS_ENABLED(i32 noundef %2) #2
%4 = icmp ne i64 %3, 0
%5 = getelementptr inbounds %struct.vxgedev, ptr %0, i64 0, i32 1
%6 = load i64, ptr %5, align 8, !tbaa !9
%7 = load i64, ptr @MSI_X, align 8
%8 = icmp eq i64 %6, %7
%9 = select i1 %4, i1 %8, i1 false
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @vxge_rem_msix_isr(ptr noundef nonnull %0) #2
br label %22
12: ; preds = %1
%13 = load i64, ptr @INTA, align 8, !tbaa !14
%14 = icmp eq i64 %6, %13
br i1 %14, label %15, label %22
15: ; preds = %12
%16 = load ptr, ptr %0, align 8, !tbaa !15
%17 = load i32, ptr %16, align 4, !tbaa !16
%18 = tail call i32 @synchronize_irq(i32 noundef %17) #2
%19 = load ptr, ptr %0, align 8, !tbaa !15
%20 = load i32, ptr %19, align 4, !tbaa !16
%21 = tail call i32 @free_irq(i32 noundef %20, ptr noundef nonnull %0) #2
br label %22
22: ; preds = %12, %15, %10
ret void
}
declare i64 @IS_ENABLED(i32 noundef) local_unnamed_addr #1
declare i32 @vxge_rem_msix_isr(ptr noundef) local_unnamed_addr #1
declare i32 @synchronize_irq(i32 noundef) local_unnamed_addr #1
declare i32 @free_irq(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, !13, i64 8}
!10 = !{!"vxgedev", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"TYPE_3__", !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!10, !11, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"TYPE_4__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-main.c_vxge_rem_isr.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/neterion/vxge/extr_vxge-main.c_vxge_rem_isr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CONFIG_PCI_MSI = common local_unnamed_addr global i32 0, align 4
@MSI_X = common local_unnamed_addr global i64 0, align 8
@INTA = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @vxge_rem_isr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @vxge_rem_isr(ptr noundef %0) #0 {
%2 = load i32, ptr @CONFIG_PCI_MSI, align 4, !tbaa !6
%3 = tail call i64 @IS_ENABLED(i32 noundef %2) #2
%4 = icmp ne i64 %3, 0
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load i64, ptr %5, align 8, !tbaa !10
%7 = load i64, ptr @MSI_X, align 8
%8 = icmp eq i64 %6, %7
%9 = select i1 %4, i1 %8, i1 false
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @vxge_rem_msix_isr(ptr noundef nonnull %0) #2
br label %22
12: ; preds = %1
%13 = load i64, ptr @INTA, align 8, !tbaa !15
%14 = icmp eq i64 %6, %13
br i1 %14, label %15, label %22
15: ; preds = %12
%16 = load ptr, ptr %0, align 8, !tbaa !16
%17 = load i32, ptr %16, align 4, !tbaa !17
%18 = tail call i32 @synchronize_irq(i32 noundef %17) #2
%19 = load ptr, ptr %0, align 8, !tbaa !16
%20 = load i32, ptr %19, align 4, !tbaa !17
%21 = tail call i32 @free_irq(i32 noundef %20, ptr noundef nonnull %0) #2
br label %22
22: ; preds = %12, %15, %10
ret void
}
declare i64 @IS_ENABLED(i32 noundef) local_unnamed_addr #1
declare i32 @vxge_rem_msix_isr(ptr noundef) local_unnamed_addr #1
declare i32 @synchronize_irq(i32 noundef) local_unnamed_addr #1
declare i32 @free_irq(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, !14, i64 8}
!11 = !{!"vxgedev", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!11, !12, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_4__", !7, i64 0}
| linux_drivers_net_ethernet_neterion_vxge_extr_vxge-main.c_vxge_rem_isr |
; ModuleID = 'AnghaBench/linux/net/mac80211/extr_tx.c_ieee80211_probe_mesh_link.c'
source_filename = "AnghaBench/linux/net/mac80211/extr_tx.c_ieee80211_probe_mesh_link.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.sk_buff = type { ptr, i32 }
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@ETH_P_802_3 = dso_local local_unnamed_addr global i32 0, align 4
@IEEE80211_TX_CTRL_SKIP_MPATH_LOOKUP = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ieee80211_probe_mesh_link(ptr nocapture noundef readnone %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @IEEE80211_DEV_TO_SUB_IF(ptr noundef %1) #2
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = load i64, ptr %6, align 8, !tbaa !10
%8 = add i64 %3, 48
%9 = add i64 %8, %7
%10 = tail call ptr @dev_alloc_skb(i64 noundef %9) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr @ENOMEM, align 4, !tbaa !14
%14 = sub nsw i32 0, %13
br label %29
15: ; preds = %4
%16 = load i64, ptr %6, align 8, !tbaa !10
%17 = tail call i32 @skb_reserve(ptr noundef nonnull %10, i64 noundef %16) #2
%18 = tail call i32 @skb_put_data(ptr noundef nonnull %10, ptr noundef %2, i64 noundef %3) #2
store ptr %1, ptr %10, align 8, !tbaa !16
%19 = load i32, ptr @ETH_P_802_3, align 4, !tbaa !14
%20 = tail call i32 @htons(i32 noundef %19) #2
%21 = getelementptr inbounds %struct.sk_buff, ptr %10, i64 0, i32 1
store i32 %20, ptr %21, align 8, !tbaa !18
%22 = tail call i32 @skb_reset_network_header(ptr noundef nonnull %10) #2
%23 = tail call i32 @skb_reset_mac_header(ptr noundef nonnull %10) #2
%24 = tail call i32 (...) @local_bh_disable() #2
%25 = load ptr, ptr %10, align 8, !tbaa !16
%26 = load i32, ptr @IEEE80211_TX_CTRL_SKIP_MPATH_LOOKUP, align 4, !tbaa !14
%27 = tail call i32 @__ieee80211_subif_start_xmit(ptr noundef nonnull %10, ptr noundef %25, i32 noundef 0, i32 noundef %26) #2
%28 = tail call i32 (...) @local_bh_enable() #2
br label %29
29: ; preds = %15, %12
%30 = phi i32 [ 0, %15 ], [ %14, %12 ]
ret i32 %30
}
declare ptr @IEEE80211_DEV_TO_SUB_IF(ptr noundef) local_unnamed_addr #1
declare ptr @dev_alloc_skb(i64 noundef) local_unnamed_addr #1
declare i32 @skb_reserve(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @skb_put_data(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @htons(i32 noundef) local_unnamed_addr #1
declare i32 @skb_reset_network_header(ptr noundef) local_unnamed_addr #1
declare i32 @skb_reset_mac_header(ptr noundef) local_unnamed_addr #1
declare i32 @local_bh_disable(...) local_unnamed_addr #1
declare i32 @__ieee80211_subif_start_xmit(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @local_bh_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 = !{!"ieee80211_sub_if_data", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 0}
!11 = !{!"ieee80211_local", !12, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"sk_buff", !7, i64 0, !15, i64 8}
!18 = !{!17, !15, i64 8}
| ; ModuleID = 'AnghaBench/linux/net/mac80211/extr_tx.c_ieee80211_probe_mesh_link.c'
source_filename = "AnghaBench/linux/net/mac80211/extr_tx.c_ieee80211_probe_mesh_link.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@ETH_P_802_3 = common local_unnamed_addr global i32 0, align 4
@IEEE80211_TX_CTRL_SKIP_MPATH_LOOKUP = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @ieee80211_probe_mesh_link(ptr nocapture noundef readnone %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = tail call ptr @IEEE80211_DEV_TO_SUB_IF(ptr noundef %1) #2
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = add i64 %3, 48
%9 = add i64 %8, %7
%10 = tail call ptr @dev_alloc_skb(i64 noundef %9) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr @ENOMEM, align 4, !tbaa !15
%14 = sub nsw i32 0, %13
br label %29
15: ; preds = %4
%16 = load i64, ptr %6, align 8, !tbaa !11
%17 = tail call i32 @skb_reserve(ptr noundef nonnull %10, i64 noundef %16) #2
%18 = tail call i32 @skb_put_data(ptr noundef nonnull %10, ptr noundef %2, i64 noundef %3) #2
store ptr %1, ptr %10, align 8, !tbaa !17
%19 = load i32, ptr @ETH_P_802_3, align 4, !tbaa !15
%20 = tail call i32 @htons(i32 noundef %19) #2
%21 = getelementptr inbounds i8, ptr %10, i64 8
store i32 %20, ptr %21, align 8, !tbaa !19
%22 = tail call i32 @skb_reset_network_header(ptr noundef nonnull %10) #2
%23 = tail call i32 @skb_reset_mac_header(ptr noundef nonnull %10) #2
%24 = tail call i32 @local_bh_disable() #2
%25 = load ptr, ptr %10, align 8, !tbaa !17
%26 = load i32, ptr @IEEE80211_TX_CTRL_SKIP_MPATH_LOOKUP, align 4, !tbaa !15
%27 = tail call i32 @__ieee80211_subif_start_xmit(ptr noundef nonnull %10, ptr noundef %25, i32 noundef 0, i32 noundef %26) #2
%28 = tail call i32 @local_bh_enable() #2
br label %29
29: ; preds = %15, %12
%30 = phi i32 [ 0, %15 ], [ %14, %12 ]
ret i32 %30
}
declare ptr @IEEE80211_DEV_TO_SUB_IF(ptr noundef) local_unnamed_addr #1
declare ptr @dev_alloc_skb(i64 noundef) local_unnamed_addr #1
declare i32 @skb_reserve(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @skb_put_data(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @htons(i32 noundef) local_unnamed_addr #1
declare i32 @skb_reset_network_header(ptr noundef) local_unnamed_addr #1
declare i32 @skb_reset_mac_header(ptr noundef) local_unnamed_addr #1
declare i32 @local_bh_disable(...) local_unnamed_addr #1
declare i32 @__ieee80211_subif_start_xmit(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @local_bh_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 = !{!"ieee80211_sub_if_data", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 0}
!12 = !{!"ieee80211_local", !13, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!18, !8, i64 0}
!18 = !{!"sk_buff", !8, i64 0, !16, i64 8}
!19 = !{!18, !16, i64 8}
| linux_net_mac80211_extr_tx.c_ieee80211_probe_mesh_link |
; ModuleID = 'AnghaBench/linux/drivers/pci/controller/extr_pcie-xilinx.c_xilinx_pcie_clear_err_interrupts.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/extr_pcie-xilinx.c_xilinx_pcie_clear_err_interrupts.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"
@XILINX_PCIE_REG_RPEFR = dso_local local_unnamed_addr global i32 0, align 4
@XILINX_PCIE_RPEFR_ERR_VALID = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [18 x i8] c"Requester ID %lu\0A\00", align 1
@XILINX_PCIE_RPEFR_REQ_ID = dso_local local_unnamed_addr global i64 0, align 8
@XILINX_PCIE_RPEFR_ALL_MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @xilinx_pcie_clear_err_interrupts], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @xilinx_pcie_clear_err_interrupts(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr @XILINX_PCIE_REG_RPEFR, align 4, !tbaa !10
%4 = tail call i64 @pcie_read(ptr noundef nonnull %0, i32 noundef %3) #2
%5 = load i64, ptr @XILINX_PCIE_RPEFR_ERR_VALID, align 8, !tbaa !12
%6 = and i64 %5, %4
%7 = icmp eq i64 %6, 0
br i1 %7, label %15, label %8
8: ; preds = %1
%9 = load i64, ptr @XILINX_PCIE_RPEFR_REQ_ID, align 8, !tbaa !12
%10 = and i64 %9, %4
%11 = tail call i32 @dev_dbg(ptr noundef %2, ptr noundef nonnull @.str, i64 noundef %10) #2
%12 = load i32, ptr @XILINX_PCIE_RPEFR_ALL_MASK, align 4, !tbaa !10
%13 = load i32, ptr @XILINX_PCIE_REG_RPEFR, align 4, !tbaa !10
%14 = tail call i32 @pcie_write(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %13) #2
br label %15
15: ; preds = %8, %1
ret void
}
declare i64 @pcie_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @pcie_write(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 = !{!"xilinx_pcie_port", !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}
| ; ModuleID = 'AnghaBench/linux/drivers/pci/controller/extr_pcie-xilinx.c_xilinx_pcie_clear_err_interrupts.c'
source_filename = "AnghaBench/linux/drivers/pci/controller/extr_pcie-xilinx.c_xilinx_pcie_clear_err_interrupts.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@XILINX_PCIE_REG_RPEFR = common local_unnamed_addr global i32 0, align 4
@XILINX_PCIE_RPEFR_ERR_VALID = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [18 x i8] c"Requester ID %lu\0A\00", align 1
@XILINX_PCIE_RPEFR_REQ_ID = common local_unnamed_addr global i64 0, align 8
@XILINX_PCIE_RPEFR_ALL_MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @xilinx_pcie_clear_err_interrupts], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @xilinx_pcie_clear_err_interrupts(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr @XILINX_PCIE_REG_RPEFR, align 4, !tbaa !11
%4 = tail call i64 @pcie_read(ptr noundef nonnull %0, i32 noundef %3) #2
%5 = load i64, ptr @XILINX_PCIE_RPEFR_ERR_VALID, align 8, !tbaa !13
%6 = and i64 %5, %4
%7 = icmp eq i64 %6, 0
br i1 %7, label %15, label %8
8: ; preds = %1
%9 = load i64, ptr @XILINX_PCIE_RPEFR_REQ_ID, align 8, !tbaa !13
%10 = and i64 %9, %4
%11 = tail call i32 @dev_dbg(ptr noundef %2, ptr noundef nonnull @.str, i64 noundef %10) #2
%12 = load i32, ptr @XILINX_PCIE_RPEFR_ALL_MASK, align 4, !tbaa !11
%13 = load i32, ptr @XILINX_PCIE_REG_RPEFR, align 4, !tbaa !11
%14 = tail call i32 @pcie_write(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %13) #2
br label %15
15: ; preds = %8, %1
ret void
}
declare i64 @pcie_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @pcie_write(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 = !{!"xilinx_pcie_port", !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, !14, i64 0}
!14 = !{!"long", !9, i64 0}
| linux_drivers_pci_controller_extr_pcie-xilinx.c_xilinx_pcie_clear_err_interrupts |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/nscd/extr_mp_rs_query.c_on_mp_read_session_response_write1.c'
source_filename = "AnghaBench/freebsd/usr.sbin/nscd/extr_mp_rs_query.c_on_mp_read_session_response_write1.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.query_state = type { ptr, i32, ptr, i32, i32 }
@.str = private unnamed_addr constant [35 x i8] c"on_mp_read_session_response_write1\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"write failed\00", align 1
@on_mp_read_session_mapper = dso_local local_unnamed_addr global ptr null, align 8
@EVFILT_READ = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @on_mp_read_session_response_write1], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @on_mp_read_session_response_write1(ptr noundef %0) #0 {
%2 = tail call i32 @TRACE_IN(ptr noundef nonnull @on_mp_read_session_response_write1) #2
%3 = getelementptr inbounds %struct.query_state, ptr %0, i64 0, i32 4
%4 = tail call ptr @get_cache_mp_read_session_response(ptr noundef nonnull %3) #2
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = tail call i32 %5(ptr noundef nonnull %0, ptr noundef %4, i32 noundef 4) #2
%7 = icmp eq i32 %6, 4
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @LOG_ERR_3(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #2
br label %22
10: ; preds = %1
%11 = load i64, ptr %4, align 8, !tbaa !11
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load ptr, ptr @on_mp_read_session_mapper, align 8, !tbaa !14
%15 = load i32, ptr @EVFILT_READ, align 4, !tbaa !15
%16 = getelementptr inbounds %struct.query_state, ptr %0, i64 0, i32 3
store i32 %15, ptr %16, align 8, !tbaa !16
br label %17
17: ; preds = %10, %13
%18 = phi i32 [ 4, %13 ], [ 0, %10 ]
%19 = phi ptr [ %14, %13 ], [ null, %10 ]
%20 = getelementptr inbounds %struct.query_state, ptr %0, i64 0, i32 1
store i32 %18, ptr %20, align 8
%21 = getelementptr inbounds %struct.query_state, ptr %0, i64 0, i32 2
store ptr %19, ptr %21, align 8
br label %22
22: ; preds = %17, %8
%23 = phi i32 [ -1, %8 ], [ 0, %17 ]
%24 = tail call i32 @TRACE_OUT(ptr noundef nonnull @on_mp_read_session_response_write1) #2
ret i32 %23
}
declare i32 @TRACE_IN(ptr noundef) local_unnamed_addr #1
declare ptr @get_cache_mp_read_session_response(ptr noundef) local_unnamed_addr #1
declare i32 @LOG_ERR_3(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @TRACE_OUT(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 = !{!"query_state", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"cache_mp_read_session_response", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !10, i64 24}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/nscd/extr_mp_rs_query.c_on_mp_read_session_response_write1.c'
source_filename = "AnghaBench/freebsd/usr.sbin/nscd/extr_mp_rs_query.c_on_mp_read_session_response_write1.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 [35 x i8] c"on_mp_read_session_response_write1\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"write failed\00", align 1
@on_mp_read_session_mapper = common local_unnamed_addr global ptr null, align 8
@EVFILT_READ = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @on_mp_read_session_response_write1], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 1) i32 @on_mp_read_session_response_write1(ptr noundef %0) #0 {
%2 = tail call i32 @TRACE_IN(ptr noundef nonnull @on_mp_read_session_response_write1) #2
%3 = getelementptr inbounds i8, ptr %0, i64 28
%4 = tail call ptr @get_cache_mp_read_session_response(ptr noundef nonnull %3) #2
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = tail call i32 %5(ptr noundef nonnull %0, ptr noundef %4, i32 noundef 4) #2
%7 = icmp eq i32 %6, 4
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @LOG_ERR_3(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #2
br label %22
10: ; preds = %1
%11 = load i64, ptr %4, align 8, !tbaa !12
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load ptr, ptr @on_mp_read_session_mapper, align 8, !tbaa !15
%15 = load i32, ptr @EVFILT_READ, align 4, !tbaa !16
%16 = getelementptr inbounds i8, ptr %0, i64 24
store i32 %15, ptr %16, align 8, !tbaa !17
br label %17
17: ; preds = %10, %13
%18 = phi i32 [ 4, %13 ], [ 0, %10 ]
%19 = phi ptr [ %14, %13 ], [ null, %10 ]
%20 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %18, ptr %20, align 8
%21 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %19, ptr %21, align 8
br label %22
22: ; preds = %17, %8
%23 = phi i32 [ -1, %8 ], [ 0, %17 ]
%24 = tail call i32 @TRACE_OUT(ptr noundef nonnull @on_mp_read_session_response_write1) #2
ret i32 %23
}
declare i32 @TRACE_IN(ptr noundef) local_unnamed_addr #1
declare ptr @get_cache_mp_read_session_response(ptr noundef) local_unnamed_addr #1
declare i32 @LOG_ERR_3(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @TRACE_OUT(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 = !{!"query_state", !8, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !11, i64 28}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"cache_mp_read_session_response", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!7, !11, i64 24}
| freebsd_usr.sbin_nscd_extr_mp_rs_query.c_on_mp_read_session_response_write1 |
; ModuleID = 'AnghaBench/Mirai-Source-Code/mirai/bot/extr_rand.c_rand_alphastr.c'
source_filename = "AnghaBench/Mirai-Source-Code/mirai/bot/extr_rand.c_rand_alphastr.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"
@__const.rand_alphastr.alphaset = private unnamed_addr constant [33 x i8] c"abcdefghijklmnopqrstuvw012345678\00", align 16
; Function Attrs: nounwind uwtable
define dso_local void @rand_alphastr(ptr nocapture noundef writeonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %47
4: ; preds = %2, %42
%5 = phi ptr [ %44, %42 ], [ %0, %2 ]
%6 = phi i32 [ %45, %42 ], [ %1, %2 ]
%7 = icmp ugt i32 %6, 3
%8 = tail call i32 (...) @rand_next() #2
br i1 %7, label %9, label %37
9: ; preds = %4
%10 = lshr i32 %8, 11
%11 = lshr i32 %8, 3
%12 = and i32 %11, 31
%13 = zext nneg i32 %12 to i64
%14 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %13
%15 = load i8, ptr %14, align 1, !tbaa !5
%16 = sext i8 %15 to i32
%17 = getelementptr inbounds i32, ptr %5, i64 1
store i32 %16, ptr %5, align 4, !tbaa !8
%18 = lshr i32 %8, 19
%19 = and i32 %10, 31
%20 = zext nneg i32 %19 to i64
%21 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %20
%22 = load i8, ptr %21, align 1, !tbaa !5
%23 = sext i8 %22 to i32
%24 = getelementptr inbounds i32, ptr %5, i64 2
store i32 %23, ptr %17, align 4, !tbaa !8
%25 = lshr i32 %8, 27
%26 = and i32 %18, 31
%27 = zext nneg i32 %26 to i64
%28 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %27
%29 = load i8, ptr %28, align 1, !tbaa !5
%30 = sext i8 %29 to i32
%31 = getelementptr inbounds i32, ptr %5, i64 3
store i32 %30, ptr %24, align 4, !tbaa !8
%32 = zext nneg i32 %25 to i64
%33 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %32
%34 = load i8, ptr %33, align 1, !tbaa !5
%35 = sext i8 %34 to i32
%36 = getelementptr inbounds i32, ptr %5, i64 4
store i32 %35, ptr %31, align 4, !tbaa !8
br label %42
37: ; preds = %4
%38 = sext i32 %8 to i64
%39 = urem i64 %38, 33
%40 = trunc i64 %39 to i32
%41 = getelementptr inbounds i32, ptr %5, i64 1
store i32 %40, ptr %5, align 4, !tbaa !8
br label %42
42: ; preds = %37, %9
%43 = phi i32 [ -1, %37 ], [ -4, %9 ]
%44 = phi ptr [ %41, %37 ], [ %36, %9 ]
%45 = add nsw i32 %6, %43
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %4, !llvm.loop !10
47: ; preds = %42, %2
ret void
}
declare i32 @rand_next(...) 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 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/Mirai-Source-Code/mirai/bot/extr_rand.c_rand_alphastr.c'
source_filename = "AnghaBench/Mirai-Source-Code/mirai/bot/extr_rand.c_rand_alphastr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@__const.rand_alphastr.alphaset = private unnamed_addr constant [33 x i8] c"abcdefghijklmnopqrstuvw012345678\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @rand_alphastr(ptr nocapture noundef writeonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %47
4: ; preds = %2, %42
%5 = phi ptr [ %44, %42 ], [ %0, %2 ]
%6 = phi i32 [ %45, %42 ], [ %1, %2 ]
%7 = icmp ugt i32 %6, 3
%8 = tail call i32 @rand_next() #2
br i1 %7, label %9, label %37
9: ; preds = %4
%10 = lshr i32 %8, 11
%11 = lshr i32 %8, 3
%12 = and i32 %11, 31
%13 = zext nneg i32 %12 to i64
%14 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %13
%15 = load i8, ptr %14, align 1, !tbaa !6
%16 = sext i8 %15 to i32
%17 = getelementptr inbounds i8, ptr %5, i64 4
store i32 %16, ptr %5, align 4, !tbaa !9
%18 = lshr i32 %8, 19
%19 = and i32 %10, 31
%20 = zext nneg i32 %19 to i64
%21 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %20
%22 = load i8, ptr %21, align 1, !tbaa !6
%23 = sext i8 %22 to i32
%24 = getelementptr inbounds i8, ptr %5, i64 8
store i32 %23, ptr %17, align 4, !tbaa !9
%25 = lshr i32 %8, 27
%26 = and i32 %18, 31
%27 = zext nneg i32 %26 to i64
%28 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %27
%29 = load i8, ptr %28, align 1, !tbaa !6
%30 = sext i8 %29 to i32
%31 = getelementptr inbounds i8, ptr %5, i64 12
store i32 %30, ptr %24, align 4, !tbaa !9
%32 = zext nneg i32 %25 to i64
%33 = getelementptr inbounds [33 x i8], ptr @__const.rand_alphastr.alphaset, i64 0, i64 %32
%34 = load i8, ptr %33, align 1, !tbaa !6
%35 = sext i8 %34 to i32
%36 = getelementptr inbounds i8, ptr %5, i64 16
store i32 %35, ptr %31, align 4, !tbaa !9
br label %42
37: ; preds = %4
%38 = sext i32 %8 to i64
%39 = urem i64 %38, 33
%40 = trunc nuw nsw i64 %39 to i32
%41 = getelementptr inbounds i8, ptr %5, i64 4
store i32 %40, ptr %5, align 4, !tbaa !9
br label %42
42: ; preds = %37, %9
%43 = phi i32 [ -1, %37 ], [ -4, %9 ]
%44 = phi ptr [ %41, %37 ], [ %36, %9 ]
%45 = add nsw i32 %6, %43
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %4, !llvm.loop !11
47: ; preds = %42, %2
ret void
}
declare i32 @rand_next(...) 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| Mirai-Source-Code_mirai_bot_extr_rand.c_rand_alphastr |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/extr_rv1_clk_mgr.c_rv1_determine_dppclk_threshold.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/extr_rv1_clk_mgr.c_rv1_determine_dppclk_threshold.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.dc_clocks = type { i32, i32, i32 }
%struct.TYPE_3__ = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @rv1_determine_dppclk_threshold], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal i32 @rv1_determine_dppclk_threshold(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = getelementptr inbounds %struct.dc_clocks, ptr %1, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !10
%6 = icmp sgt i32 %3, %5
%7 = load i32, ptr %0, align 4, !tbaa !11
%8 = icmp sgt i32 %3, %7
%9 = getelementptr inbounds %struct.dc_clocks, ptr %1, i64 0, i32 2
%10 = load i32, ptr %9, align 4, !tbaa !15
%11 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !16
%13 = icmp sle i32 %7, %12
br i1 %8, label %14, label %20
14: ; preds = %2
%15 = icmp sle i32 %3, %10
%16 = xor i1 %13, true
%17 = select i1 %16, i1 true, i1 %15
%18 = xor i1 %6, true
%19 = select i1 %17, i1 true, i1 %18
br i1 %19, label %25, label %24
20: ; preds = %2
%21 = icmp sle i32 %7, %10
%22 = select i1 %13, i1 true, i1 %21
%23 = select i1 %22, i1 true, i1 %6
br i1 %23, label %25, label %24
24: ; preds = %20, %14
br label %25
25: ; preds = %20, %14, %24
%26 = phi i32 [ %10, %24 ], [ %3, %14 ], [ %3, %20 ]
ret i32 %26
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"dc_clocks", !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 = !{!12, !7, i64 0}
!12 = !{!"clk_mgr_internal", !13, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0, !7, i64 4}
!15 = !{!6, !7, i64 8}
!16 = !{!12, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/extr_rv1_clk_mgr.c_rv1_determine_dppclk_threshold.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/extr_rv1_clk_mgr.c_rv1_determine_dppclk_threshold.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 @rv1_determine_dppclk_threshold], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal i32 @rv1_determine_dppclk_threshold(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
%4 = getelementptr inbounds i8, ptr %1, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = icmp sgt i32 %3, %5
%7 = load i32, ptr %0, align 4, !tbaa !12
%8 = icmp sgt i32 %3, %7
%9 = getelementptr inbounds i8, ptr %1, i64 8
%10 = load i32, ptr %9, align 4, !tbaa !16
%11 = getelementptr inbounds i8, ptr %0, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !17
%13 = icmp sle i32 %7, %12
br i1 %8, label %14, label %18
14: ; preds = %2
%15 = icmp sgt i32 %3, %10
%16 = select i1 %13, i1 %15, i1 false
%17 = select i1 %16, i1 %6, i1 false
br i1 %17, label %22, label %23
18: ; preds = %2
%19 = icmp sle i32 %7, %10
%20 = select i1 %13, i1 true, i1 %19
%21 = select i1 %20, i1 true, i1 %6
br i1 %21, label %23, label %22
22: ; preds = %18, %14
br label %23
23: ; preds = %18, %14, %22
%24 = phi i32 [ %10, %22 ], [ %3, %14 ], [ %3, %18 ]
ret i32 %24
}
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 = !{!"dc_clocks", !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 = !{!13, !8, i64 0}
!13 = !{!"clk_mgr_internal", !14, i64 0}
!14 = !{!"TYPE_4__", !15, i64 0}
!15 = !{!"TYPE_3__", !8, i64 0, !8, i64 4}
!16 = !{!7, !8, i64 8}
!17 = !{!13, !8, i64 4}
| linux_drivers_gpu_drm_amd_display_dc_clk_mgr_dcn10_extr_rv1_clk_mgr.c_rv1_determine_dppclk_threshold |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/ppp/extr_command.c_command_Run.c'
source_filename = "AnghaBench/freebsd/usr.sbin/ppp/extr_command.c_command_Run.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"
@LogCOMMAND = dso_local local_unnamed_addr global i32 0, align 4
@LINE_LEN = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"********\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@Commands = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @command_Run(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = icmp sgt i32 %1, 0
br i1 %7, label %8, label %88
8: ; preds = %6
%9 = load i32, ptr @LogCOMMAND, align 4, !tbaa !5
%10 = tail call i64 @log_IsKept(i32 noundef %9) #4
%11 = icmp eq i64 %10, 0
br i1 %11, label %85, label %12
12: ; preds = %8
%13 = load i32, ptr @LINE_LEN, align 4, !tbaa !5
%14 = zext i32 %13 to i64
%15 = tail call ptr @llvm.stacksave.p0()
%16 = alloca i8, i64 %14, align 16
%17 = icmp eq ptr %4, null
br i1 %17, label %25, label %18
18: ; preds = %12
%19 = add nsw i64 %14, -3
%20 = trunc i64 %19 to i32
%21 = call i32 @strncpy(ptr noundef nonnull %16, ptr noundef nonnull %4, i32 noundef %20) #4
%22 = getelementptr inbounds i8, ptr %16, i64 %19
store i8 0, ptr %22, align 1, !tbaa !9
%23 = call i32 @strcat(ptr noundef nonnull %16, ptr noundef nonnull @.str) #4
%24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %16)
br label %26
25: ; preds = %12
store i8 0, ptr %16, align 16, !tbaa !9
br label %26
26: ; preds = %25, %18
%27 = phi i64 [ %24, %18 ], [ 0, %25 ]
%28 = add nsw i64 %14, -1
%29 = getelementptr inbounds i8, ptr %16, i64 %28
store i8 0, ptr %29, align 1, !tbaa !9
%30 = zext nneg i32 %1 to i64
%31 = call i64 @arghidden(ptr noundef %2, i32 noundef 0) #4
%32 = icmp eq i64 %31, 0
%33 = getelementptr inbounds i8, ptr %16, i64 %27
br i1 %32, label %39, label %34
34: ; preds = %26
%35 = trunc i64 %27 to i32
%36 = xor i32 %35, -1
%37 = add i32 %13, %36
%38 = call i32 @strncpy(ptr noundef nonnull %33, ptr noundef nonnull @.str.1, i32 noundef %37) #4
br label %45
39: ; preds = %26
%40 = load ptr, ptr %2, align 8, !tbaa !10
%41 = trunc i64 %27 to i32
%42 = xor i32 %41, -1
%43 = add i32 %13, %42
%44 = call i32 @strncpy(ptr noundef nonnull %33, ptr noundef %40, i32 noundef %43) #4
br label %45
45: ; preds = %39, %34
%46 = icmp eq i32 %1, 1
br i1 %46, label %82, label %47
47: ; preds = %45
%48 = getelementptr inbounds i8, ptr %16, i64 %27
%49 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %48)
%50 = add i64 %49, %27
br label %51
51: ; preds = %47, %76
%52 = phi i64 [ 1, %47 ], [ %80, %76 ]
%53 = phi i64 [ %50, %47 ], [ %79, %76 ]
%54 = icmp ult i64 %53, %28
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = add nuw i64 %53, 1
%57 = getelementptr inbounds i8, ptr %16, i64 %53
store i8 32, ptr %57, align 1, !tbaa !9
br label %58
58: ; preds = %55, %51
%59 = phi i64 [ %56, %55 ], [ %53, %51 ]
%60 = trunc i64 %52 to i32
%61 = call i64 @arghidden(ptr noundef %2, i32 noundef %60) #4
%62 = icmp eq i64 %61, 0
%63 = getelementptr inbounds i8, ptr %16, i64 %59
br i1 %62, label %69, label %64
64: ; preds = %58
%65 = trunc i64 %59 to i32
%66 = xor i32 %65, -1
%67 = add i32 %13, %66
%68 = call i32 @strncpy(ptr noundef nonnull %63, ptr noundef nonnull @.str.1, i32 noundef %67) #4
br label %76
69: ; preds = %58
%70 = getelementptr inbounds ptr, ptr %2, i64 %52
%71 = load ptr, ptr %70, align 8, !tbaa !10
%72 = trunc i64 %59 to i32
%73 = xor i32 %72, -1
%74 = add i32 %13, %73
%75 = call i32 @strncpy(ptr noundef nonnull %63, ptr noundef %71, i32 noundef %74) #4
br label %76
76: ; preds = %69, %64
%77 = getelementptr inbounds i8, ptr %16, i64 %59
%78 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %77)
%79 = add i64 %78, %59
%80 = add nuw nsw i64 %52, 1
%81 = icmp eq i64 %80, %30
br i1 %81, label %82, label %51, !llvm.loop !12
82: ; preds = %76, %45
%83 = load i32, ptr @LogCOMMAND, align 4, !tbaa !5
%84 = call i32 @log_Printf(i32 noundef %83, ptr noundef nonnull @.str.2, ptr noundef nonnull %16) #4
call void @llvm.stackrestore.p0(ptr %15)
br label %85
85: ; preds = %82, %8
%86 = load i32, ptr @Commands, align 4, !tbaa !5
%87 = call i32 @FindExec(ptr noundef %0, i32 noundef %86, i32 noundef %1, i32 noundef 0, ptr noundef %2, ptr noundef %3, ptr noundef %5) #4
br label %88
88: ; preds = %85, %6
ret void
}
declare i64 @log_IsKept(i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strcat(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3
declare i64 @arghidden(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @log_Printf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2
declare i32 @FindExec(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13, !14}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.peeled.count", i32 1}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/ppp/extr_command.c_command_Run.c'
source_filename = "AnghaBench/freebsd/usr.sbin/ppp/extr_command.c_command_Run.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LogCOMMAND = common local_unnamed_addr global i32 0, align 4
@LINE_LEN = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c": \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"********\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@Commands = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @command_Run(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = icmp sgt i32 %1, 0
br i1 %7, label %8, label %86
8: ; preds = %6
%9 = load i32, ptr @LogCOMMAND, align 4, !tbaa !6
%10 = tail call i64 @log_IsKept(i32 noundef %9) #4
%11 = icmp eq i64 %10, 0
br i1 %11, label %83, label %12
12: ; preds = %8
%13 = load i32, ptr @LINE_LEN, align 4, !tbaa !6
%14 = zext i32 %13 to i64
%15 = tail call ptr @llvm.stacksave.p0()
%16 = alloca i8, i64 %14, align 1
%17 = icmp eq ptr %4, null
br i1 %17, label %25, label %18
18: ; preds = %12
%19 = add nsw i64 %14, -3
%20 = trunc i64 %19 to i32
%21 = call i32 @strncpy(ptr noundef nonnull %16, ptr noundef nonnull %4, i32 noundef %20) #4
%22 = getelementptr inbounds i8, ptr %16, i64 %19
store i8 0, ptr %22, align 1, !tbaa !10
%23 = call i32 @strcat(ptr noundef nonnull %16, ptr noundef nonnull @.str) #4
%24 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %16)
br label %26
25: ; preds = %12
store i8 0, ptr %16, align 1, !tbaa !10
br label %26
26: ; preds = %25, %18
%27 = phi i64 [ %24, %18 ], [ 0, %25 ]
%28 = add nsw i64 %14, -1
%29 = getelementptr inbounds i8, ptr %16, i64 %28
store i8 0, ptr %29, align 1, !tbaa !10
%30 = zext nneg i32 %1 to i64
%31 = call i64 @arghidden(ptr noundef %2, i32 noundef 0) #4
%32 = icmp eq i64 %31, 0
%33 = getelementptr inbounds i8, ptr %16, i64 %27
br i1 %32, label %39, label %34
34: ; preds = %26
%35 = trunc i64 %27 to i32
%36 = xor i32 %35, -1
%37 = add i32 %13, %36
%38 = call i32 @strncpy(ptr noundef nonnull %33, ptr noundef nonnull @.str.1, i32 noundef %37) #4
br label %45
39: ; preds = %26
%40 = load ptr, ptr %2, align 8, !tbaa !11
%41 = trunc i64 %27 to i32
%42 = xor i32 %41, -1
%43 = add i32 %13, %42
%44 = call i32 @strncpy(ptr noundef nonnull %33, ptr noundef %40, i32 noundef %43) #4
br label %45
45: ; preds = %39, %34
%46 = icmp eq i32 %1, 1
br i1 %46, label %80, label %47
47: ; preds = %45
%48 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %33)
%49 = add i64 %48, %27
br label %50
50: ; preds = %47, %75
%51 = phi i64 [ 1, %47 ], [ %78, %75 ]
%52 = phi i64 [ %49, %47 ], [ %77, %75 ]
%53 = icmp ult i64 %52, %28
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = add nuw i64 %52, 1
%56 = getelementptr inbounds i8, ptr %16, i64 %52
store i8 32, ptr %56, align 1, !tbaa !10
br label %57
57: ; preds = %54, %50
%58 = phi i64 [ %55, %54 ], [ %52, %50 ]
%59 = trunc nuw nsw i64 %51 to i32
%60 = call i64 @arghidden(ptr noundef %2, i32 noundef %59) #4
%61 = icmp eq i64 %60, 0
%62 = getelementptr inbounds i8, ptr %16, i64 %58
br i1 %61, label %68, label %63
63: ; preds = %57
%64 = trunc i64 %58 to i32
%65 = xor i32 %64, -1
%66 = add i32 %13, %65
%67 = call i32 @strncpy(ptr noundef nonnull %62, ptr noundef nonnull @.str.1, i32 noundef %66) #4
br label %75
68: ; preds = %57
%69 = getelementptr inbounds ptr, ptr %2, i64 %51
%70 = load ptr, ptr %69, align 8, !tbaa !11
%71 = trunc i64 %58 to i32
%72 = xor i32 %71, -1
%73 = add i32 %13, %72
%74 = call i32 @strncpy(ptr noundef nonnull %62, ptr noundef %70, i32 noundef %73) #4
br label %75
75: ; preds = %68, %63
%76 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %62)
%77 = add i64 %76, %58
%78 = add nuw nsw i64 %51, 1
%79 = icmp eq i64 %78, %30
br i1 %79, label %80, label %50, !llvm.loop !13
80: ; preds = %75, %45
%81 = load i32, ptr @LogCOMMAND, align 4, !tbaa !6
%82 = call i32 @log_Printf(i32 noundef %81, ptr noundef nonnull @.str.2, ptr noundef nonnull %16) #4
call void @llvm.stackrestore.p0(ptr %15)
br label %83
83: ; preds = %80, %8
%84 = load i32, ptr @Commands, align 4, !tbaa !6
%85 = call i32 @FindExec(ptr noundef %0, i32 noundef %84, i32 noundef %1, i32 noundef 0, ptr noundef %2, ptr noundef %3, ptr noundef %5) #4
br label %86
86: ; preds = %83, %6
ret void
}
declare i64 @log_IsKept(i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strcat(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3
declare i64 @arghidden(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @log_Printf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2
declare i32 @FindExec(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { 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 = !{!8, !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.peeled.count", i32 1}
| freebsd_usr.sbin_ppp_extr_command.c_command_Run |
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_vc2enc.c_encode_slice_params.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_vc2enc.c_encode_slice_params.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @encode_slice_params], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @encode_slice_params(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%3 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 4
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %4) #2
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 3
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %7) #2
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 2
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %10) #2
%12 = load i32, ptr %0, align 4, !tbaa !12
%13 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %12) #2
ret void
}
declare i32 @put_vc2_ue_uint(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 16}
!6 = !{!"TYPE_3__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 12}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_vc2enc.c_encode_slice_params.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_vc2enc.c_encode_slice_params.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 @encode_slice_params], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @encode_slice_params(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = getelementptr inbounds i8, ptr %0, i64 16
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %0, i64 12
%7 = load i32, ptr %6, align 4, !tbaa !11
%8 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %7) #2
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load i32, ptr %9, align 4, !tbaa !12
%11 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %10) #2
%12 = load i32, ptr %0, align 4, !tbaa !13
%13 = tail call i32 @put_vc2_ue_uint(ptr noundef nonnull %2, i32 noundef %12) #2
ret void
}
declare i32 @put_vc2_ue_uint(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 16}
!7 = !{!"TYPE_3__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 12}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !8, i64 0}
| FFmpeg_libavcodec_extr_vc2enc.c_encode_slice_params |
; ModuleID = 'AnghaBench/linux/mm/extr_rmap.c_page_move_anon_rmap.c'
source_filename = "AnghaBench/linux/mm/extr_rmap.c_page_move_anon_rmap.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"
@PAGE_MAPPING_ANON = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @page_move_anon_rmap(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !5
%4 = tail call ptr @compound_head(ptr noundef %0) #2
%5 = tail call i32 @PageLocked(ptr noundef %4) #2
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @VM_BUG_ON_PAGE(i32 noundef %7, ptr noundef %4) #2
%9 = icmp eq ptr %3, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @VM_BUG_ON_VMA(i32 noundef %10, ptr noundef nonnull %1) #2
%12 = load i32, ptr @PAGE_MAPPING_ANON, align 4, !tbaa !10
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %3, i64 %13
%15 = load i32, ptr %4, align 4, !tbaa !12
%16 = tail call i32 @WRITE_ONCE(i32 noundef %15, ptr noundef %14) #2
ret void
}
declare ptr @compound_head(ptr noundef) local_unnamed_addr #1
declare i32 @VM_BUG_ON_PAGE(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @PageLocked(ptr noundef) local_unnamed_addr #1
declare i32 @VM_BUG_ON_VMA(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @WRITE_ONCE(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 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 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"page", !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/mm/extr_rmap.c_page_move_anon_rmap.c'
source_filename = "AnghaBench/linux/mm/extr_rmap.c_page_move_anon_rmap.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_MAPPING_ANON = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @page_move_anon_rmap(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !6
%4 = tail call ptr @compound_head(ptr noundef %0) #2
%5 = tail call i32 @PageLocked(ptr noundef %4) #2
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @VM_BUG_ON_PAGE(i32 noundef %7, ptr noundef %4) #2
%9 = icmp eq ptr %3, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @VM_BUG_ON_VMA(i32 noundef %10, ptr noundef nonnull %1) #2
%12 = load i32, ptr @PAGE_MAPPING_ANON, align 4, !tbaa !11
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %3, i64 %13
%15 = load i32, ptr %4, align 4, !tbaa !13
%16 = tail call i32 @WRITE_ONCE(i32 noundef %15, ptr noundef %14) #2
ret void
}
declare ptr @compound_head(ptr noundef) local_unnamed_addr #1
declare i32 @VM_BUG_ON_PAGE(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @PageLocked(ptr noundef) local_unnamed_addr #1
declare i32 @VM_BUG_ON_VMA(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @WRITE_ONCE(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 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 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"page", !12, i64 0}
| linux_mm_extr_rmap.c_page_move_anon_rmap |
; ModuleID = 'AnghaBench/freebsd/sys/dev/bwn/extr_if_bwn.c_bwn_set_txantenna.c'
source_filename = "AnghaBench/freebsd/sys/dev/bwn/extr_if_bwn.c_bwn_set_txantenna.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"
@BWN_SHARED = dso_local local_unnamed_addr global i32 0, align 4
@BWN_SHARED_ACKCTS_PHYCTL = dso_local local_unnamed_addr global i32 0, align 4
@BWN_TX_PHY_ANT = dso_local local_unnamed_addr global i32 0, align 4
@BWN_SHARED_PROBE_RESP_PHYCTL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bwn_set_txantenna], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bwn_set_txantenna(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @bwn_ant2phy(i32 noundef %1) #2
%4 = load i32, ptr @BWN_SHARED, align 4, !tbaa !5
%5 = load i32, ptr @BWN_SHARED_ACKCTS_PHYCTL, align 4, !tbaa !5
%6 = tail call i32 @bwn_shm_read_2(ptr noundef %0, i32 noundef %4, i32 noundef %5) #2
%7 = load i32, ptr @BWN_TX_PHY_ANT, align 4, !tbaa !5
%8 = xor i32 %7, -1
%9 = and i32 %6, %8
%10 = or i32 %9, %3
%11 = load i32, ptr @BWN_SHARED, align 4, !tbaa !5
%12 = load i32, ptr @BWN_SHARED_ACKCTS_PHYCTL, align 4, !tbaa !5
%13 = tail call i32 @bwn_shm_write_2(ptr noundef %0, i32 noundef %11, i32 noundef %12, i32 noundef %10) #2
%14 = load i32, ptr @BWN_SHARED, align 4, !tbaa !5
%15 = load i32, ptr @BWN_SHARED_PROBE_RESP_PHYCTL, align 4, !tbaa !5
%16 = tail call i32 @bwn_shm_read_2(ptr noundef %0, i32 noundef %14, i32 noundef %15) #2
%17 = load i32, ptr @BWN_TX_PHY_ANT, align 4, !tbaa !5
%18 = xor i32 %17, -1
%19 = and i32 %16, %18
%20 = or i32 %19, %3
%21 = load i32, ptr @BWN_SHARED, align 4, !tbaa !5
%22 = load i32, ptr @BWN_SHARED_PROBE_RESP_PHYCTL, align 4, !tbaa !5
%23 = tail call i32 @bwn_shm_write_2(ptr noundef %0, i32 noundef %21, i32 noundef %22, i32 noundef %20) #2
ret void
}
declare i32 @bwn_ant2phy(i32 noundef) local_unnamed_addr #1
declare i32 @bwn_shm_read_2(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bwn_shm_write_2(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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/bwn/extr_if_bwn.c_bwn_set_txantenna.c'
source_filename = "AnghaBench/freebsd/sys/dev/bwn/extr_if_bwn.c_bwn_set_txantenna.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BWN_SHARED = common local_unnamed_addr global i32 0, align 4
@BWN_SHARED_ACKCTS_PHYCTL = common local_unnamed_addr global i32 0, align 4
@BWN_TX_PHY_ANT = common local_unnamed_addr global i32 0, align 4
@BWN_SHARED_PROBE_RESP_PHYCTL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bwn_set_txantenna], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bwn_set_txantenna(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @bwn_ant2phy(i32 noundef %1) #2
%4 = load i32, ptr @BWN_SHARED, align 4, !tbaa !6
%5 = load i32, ptr @BWN_SHARED_ACKCTS_PHYCTL, align 4, !tbaa !6
%6 = tail call i32 @bwn_shm_read_2(ptr noundef %0, i32 noundef %4, i32 noundef %5) #2
%7 = load i32, ptr @BWN_TX_PHY_ANT, align 4, !tbaa !6
%8 = xor i32 %7, -1
%9 = and i32 %6, %8
%10 = or i32 %9, %3
%11 = load i32, ptr @BWN_SHARED, align 4, !tbaa !6
%12 = load i32, ptr @BWN_SHARED_ACKCTS_PHYCTL, align 4, !tbaa !6
%13 = tail call i32 @bwn_shm_write_2(ptr noundef %0, i32 noundef %11, i32 noundef %12, i32 noundef %10) #2
%14 = load i32, ptr @BWN_SHARED, align 4, !tbaa !6
%15 = load i32, ptr @BWN_SHARED_PROBE_RESP_PHYCTL, align 4, !tbaa !6
%16 = tail call i32 @bwn_shm_read_2(ptr noundef %0, i32 noundef %14, i32 noundef %15) #2
%17 = load i32, ptr @BWN_TX_PHY_ANT, align 4, !tbaa !6
%18 = xor i32 %17, -1
%19 = and i32 %16, %18
%20 = or i32 %19, %3
%21 = load i32, ptr @BWN_SHARED, align 4, !tbaa !6
%22 = load i32, ptr @BWN_SHARED_PROBE_RESP_PHYCTL, align 4, !tbaa !6
%23 = tail call i32 @bwn_shm_write_2(ptr noundef %0, i32 noundef %21, i32 noundef %22, i32 noundef %20) #2
ret void
}
declare i32 @bwn_ant2phy(i32 noundef) local_unnamed_addr #1
declare i32 @bwn_shm_read_2(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bwn_shm_write_2(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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_dev_bwn_extr_if_bwn.c_bwn_set_txantenna |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_scheduler.c_i915_global_scheduler_exit.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_scheduler.c_i915_global_scheduler_exit.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 }
@global = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @i915_global_scheduler_exit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @i915_global_scheduler_exit() #0 {
%1 = load i32, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @global, i64 0, i32 1), align 4, !tbaa !5
%2 = tail call i32 @kmem_cache_destroy(i32 noundef %1) #2
%3 = load i32, ptr @global, align 4, !tbaa !10
%4 = tail call i32 @kmem_cache_destroy(i32 noundef %3) #2
ret void
}
declare i32 @kmem_cache_destroy(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 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_scheduler.c_i915_global_scheduler_exit.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/extr_i915_scheduler.c_i915_global_scheduler_exit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i32, i32 }
@global = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
@llvm.used = appending global [1 x ptr] [ptr @i915_global_scheduler_exit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @i915_global_scheduler_exit() #0 {
%1 = load i32, ptr getelementptr inbounds (i8, ptr @global, i64 4), align 4, !tbaa !6
%2 = tail call i32 @kmem_cache_destroy(i32 noundef %1) #2
%3 = load i32, ptr @global, align 4, !tbaa !11
%4 = tail call i32 @kmem_cache_destroy(i32 noundef %3) #2
ret void
}
declare i32 @kmem_cache_destroy(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 = !{!7, !8, i64 0}
| linux_drivers_gpu_drm_i915_extr_i915_scheduler.c_i915_global_scheduler_exit |
; ModuleID = 'AnghaBench/freebsd/sys/geom/raid/extr_md_nvidia.c_nvidia_meta_put_name.c'
source_filename = "AnghaBench/freebsd/sys/geom/raid/extr_md_nvidia.c_nvidia_meta_put_name.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 @nvidia_meta_put_name], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @nvidia_meta_put_name(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call i32 @memset(i32 noundef %3, i32 noundef 32, i32 noundef 16) #2
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = tail call i32 @strlen(ptr noundef %1) #2
%7 = tail call i32 @MIN(i32 noundef %6, i32 noundef 16) #2
%8 = tail call i32 @memcpy(i32 noundef %5, ptr noundef %1, i32 noundef %7) #2
ret void
}
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MIN(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strlen(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 = !{!"nvidia_raid_conf", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/geom/raid/extr_md_nvidia.c_nvidia_meta_put_name.c'
source_filename = "AnghaBench/freebsd/sys/geom/raid/extr_md_nvidia.c_nvidia_meta_put_name.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 @nvidia_meta_put_name], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @nvidia_meta_put_name(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call i32 @memset(i32 noundef %3, i32 noundef 32, i32 noundef 16) #2
%5 = load i32, ptr %0, align 4, !tbaa !6
%6 = tail call i32 @strlen(ptr noundef %1) #2
%7 = tail call i32 @MIN(i32 noundef %6, i32 noundef 16) #2
%8 = tail call i32 @memcpy(i32 noundef %5, ptr noundef %1, i32 noundef %7) #2
ret void
}
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MIN(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strlen(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 = !{!"nvidia_raid_conf", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_geom_raid_extr_md_nvidia.c_nvidia_meta_put_name |
; ModuleID = 'AnghaBench/linux/drivers/edac/extr_i5100_edac.c_i5100_recmemb_cas.c'
source_filename = "AnghaBench/linux/drivers/edac/extr_i5100_edac.c_i5100_recmemb_cas.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 @i5100_recmemb_cas], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @i5100_recmemb_cas(i32 noundef %0) #0 {
%2 = tail call i32 @i5100_nrecmemb_cas(i32 noundef %0) #2
ret i32 %2
}
declare i32 @i5100_nrecmemb_cas(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/edac/extr_i5100_edac.c_i5100_recmemb_cas.c'
source_filename = "AnghaBench/linux/drivers/edac/extr_i5100_edac.c_i5100_recmemb_cas.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 @i5100_recmemb_cas], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @i5100_recmemb_cas(i32 noundef %0) #0 {
%2 = tail call i32 @i5100_nrecmemb_cas(i32 noundef %0) #2
ret i32 %2
}
declare i32 @i5100_nrecmemb_cas(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)"}
| linux_drivers_edac_extr_i5100_edac.c_i5100_recmemb_cas |
; ModuleID = 'AnghaBench/RetroArch/gfx/common/extr_vulkan_common.c_vulkan_buffer_chain_free.c'
source_filename = "AnghaBench/RetroArch/gfx/common/extr_vulkan_common.c_vulkan_buffer_chain_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.vk_buffer_node = type { i32, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @vulkan_buffer_chain_free(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %12, label %5
5: ; preds = %2, %5
%6 = phi ptr [ %8, %5 ], [ %3, %2 ]
%7 = getelementptr inbounds %struct.vk_buffer_node, ptr %6, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !10
%9 = tail call i32 @vulkan_destroy_buffer(i32 noundef %0, ptr noundef nonnull %6) #2
%10 = tail call i32 @free(ptr noundef nonnull %6) #2
%11 = icmp eq ptr %8, null
br i1 %11, label %12, label %5, !llvm.loop !13
12: ; preds = %5, %2
%13 = tail call i32 @memset(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 8) #2
ret void
}
declare i32 @vulkan_destroy_buffer(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @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 = !{!"vk_buffer_chain", !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 = !{!"vk_buffer_node", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/RetroArch/gfx/common/extr_vulkan_common.c_vulkan_buffer_chain_free.c'
source_filename = "AnghaBench/RetroArch/gfx/common/extr_vulkan_common.c_vulkan_buffer_chain_free.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 @vulkan_buffer_chain_free(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %12, label %5
5: ; preds = %2, %5
%6 = phi ptr [ %8, %5 ], [ %3, %2 ]
%7 = getelementptr inbounds i8, ptr %6, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = tail call i32 @vulkan_destroy_buffer(i32 noundef %0, ptr noundef nonnull %6) #2
%10 = tail call i32 @free(ptr noundef nonnull %6) #2
%11 = icmp eq ptr %8, null
br i1 %11, label %12, label %5, !llvm.loop !14
12: ; preds = %5, %2
%13 = tail call i32 @memset(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 8) #2
ret void
}
declare i32 @vulkan_destroy_buffer(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @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 = !{!"vk_buffer_chain", !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 = !{!"vk_buffer_node", !13, i64 0, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| RetroArch_gfx_common_extr_vulkan_common.c_vulkan_buffer_chain_free |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_phy.c_b43legacy_phy_lo_b_r15_loop.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_phy.c_b43legacy_phy_lo_b_r15_loop.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 @b43legacy_phy_lo_b_r15_loop], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @b43legacy_phy_lo_b_r15_loop(ptr noundef %0) #0 {
%2 = tail call i32 @local_irq_save(i64 noundef undef) #2
br label %3
3: ; preds = %1, %3
%4 = phi i32 [ 0, %1 ], [ %14, %3 ]
%5 = phi i32 [ 0, %1 ], [ %15, %3 ]
%6 = tail call i32 @b43legacy_phy_write(ptr noundef %0, i32 noundef 21, i32 noundef 44960) #2
%7 = tail call i32 @udelay(i32 noundef 1) #2
%8 = tail call i32 @b43legacy_phy_write(ptr noundef %0, i32 noundef 21, i32 noundef 61344) #2
%9 = tail call i32 @udelay(i32 noundef 10) #2
%10 = tail call i32 @b43legacy_phy_write(ptr noundef %0, i32 noundef 21, i32 noundef 65440) #2
%11 = tail call i32 @udelay(i32 noundef 40) #2
%12 = tail call i64 @b43legacy_phy_read(ptr noundef %0, i32 noundef 44) #2
%13 = trunc i64 %12 to i32
%14 = add i32 %4, %13
%15 = add nuw nsw i32 %5, 1
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %3, !llvm.loop !5
17: ; preds = %3
%18 = tail call i32 @local_irq_restore(i64 noundef undef) #2
%19 = tail call i32 (...) @b43legacy_voluntary_preempt() #2
ret i32 %14
}
declare i32 @local_irq_save(i64 noundef) local_unnamed_addr #1
declare i32 @b43legacy_phy_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
declare i64 @b43legacy_phy_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @local_irq_restore(i64 noundef) local_unnamed_addr #1
declare i32 @b43legacy_voluntary_preempt(...) 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_phy.c_b43legacy_phy_lo_b_r15_loop.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_phy.c_b43legacy_phy_lo_b_r15_loop.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 @b43legacy_phy_lo_b_r15_loop], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @b43legacy_phy_lo_b_r15_loop(ptr noundef %0) #0 {
%2 = tail call i32 @local_irq_save(i64 noundef undef) #2
br label %3
3: ; preds = %1, %3
%4 = phi i32 [ 0, %1 ], [ %14, %3 ]
%5 = phi i32 [ 0, %1 ], [ %15, %3 ]
%6 = tail call i32 @b43legacy_phy_write(ptr noundef %0, i32 noundef 21, i32 noundef 44960) #2
%7 = tail call i32 @udelay(i32 noundef 1) #2
%8 = tail call i32 @b43legacy_phy_write(ptr noundef %0, i32 noundef 21, i32 noundef 61344) #2
%9 = tail call i32 @udelay(i32 noundef 10) #2
%10 = tail call i32 @b43legacy_phy_write(ptr noundef %0, i32 noundef 21, i32 noundef 65440) #2
%11 = tail call i32 @udelay(i32 noundef 40) #2
%12 = tail call i64 @b43legacy_phy_read(ptr noundef %0, i32 noundef 44) #2
%13 = trunc i64 %12 to i32
%14 = add i32 %4, %13
%15 = add nuw nsw i32 %5, 1
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %3, !llvm.loop !6
17: ; preds = %3
%18 = tail call i32 @local_irq_restore(i64 noundef undef) #2
%19 = tail call i32 @b43legacy_voluntary_preempt() #2
ret i32 %14
}
declare i32 @local_irq_save(i64 noundef) local_unnamed_addr #1
declare i32 @b43legacy_phy_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
declare i64 @b43legacy_phy_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @local_irq_restore(i64 noundef) local_unnamed_addr #1
declare i32 @b43legacy_voluntary_preempt(...) 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 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_drivers_net_wireless_b43legacy_extr_phy.c_b43legacy_phy_lo_b_r15_loop |
; ModuleID = 'AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_sldns_wire2str_b64_scan_num.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_sldns_wire2str_b64_scan_num.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 @sldns_wire2str_b64_scan_num], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sldns_wire2str_b64_scan_num(ptr nocapture noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, i64 noundef %4) #0 {
%6 = tail call i32 @sldns_b64_ntop_calculate_size(i64 noundef %4) #2
%7 = add nsw i32 %6, -1
%8 = sext i32 %7 to i64
%9 = load i64, ptr %3, align 8, !tbaa !5
%10 = add nsw i64 %8, 1
%11 = icmp ult i64 %9, %10
%12 = load ptr, ptr %0, align 8, !tbaa !9
br i1 %11, label %13, label %15
13: ; preds = %5
%14 = getelementptr inbounds i32, ptr %12, i64 %4
store ptr %14, ptr %0, align 8, !tbaa !9
br label %24
15: ; preds = %5
%16 = load ptr, ptr %2, align 8, !tbaa !9
%17 = tail call i32 @sldns_b64_ntop(ptr noundef %12, i64 noundef %4, ptr noundef %16, i64 noundef %9) #2
%18 = load ptr, ptr %0, align 8, !tbaa !9
%19 = getelementptr inbounds i32, ptr %18, i64 %4
store ptr %19, ptr %0, align 8, !tbaa !9
%20 = load i64, ptr %1, align 8, !tbaa !5
%21 = sub i64 %20, %4
store i64 %21, ptr %1, align 8, !tbaa !5
%22 = load ptr, ptr %2, align 8, !tbaa !9
%23 = getelementptr inbounds i8, ptr %22, i64 %8
store ptr %23, ptr %2, align 8, !tbaa !9
br label %24
24: ; preds = %15, %13
%25 = phi ptr [ %3, %15 ], [ %1, %13 ]
%26 = phi i64 [ %8, %15 ], [ %4, %13 ]
%27 = load i64, ptr %25, align 8, !tbaa !5
%28 = sub i64 %27, %26
store i64 %28, ptr %25, align 8, !tbaa !5
ret i32 %7
}
declare i32 @sldns_b64_ntop_calculate_size(i64 noundef) local_unnamed_addr #1
declare i32 @sldns_b64_ntop(ptr noundef, i64 noundef, 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 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_sldns_wire2str_b64_scan_num.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/sldns/extr_wire2str.c_sldns_wire2str_b64_scan_num.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 @sldns_wire2str_b64_scan_num], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483648, 2147483647) i32 @sldns_wire2str_b64_scan_num(ptr nocapture noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, i64 noundef %4) #0 {
%6 = tail call i32 @sldns_b64_ntop_calculate_size(i64 noundef %4) #2
%7 = add nsw i32 %6, -1
%8 = sext i32 %7 to i64
%9 = load i64, ptr %3, align 8, !tbaa !6
%10 = add nsw i64 %8, 1
%11 = icmp ult i64 %9, %10
%12 = load ptr, ptr %0, align 8, !tbaa !10
br i1 %11, label %13, label %15
13: ; preds = %5
%14 = getelementptr inbounds i32, ptr %12, i64 %4
store ptr %14, ptr %0, align 8, !tbaa !10
br label %24
15: ; preds = %5
%16 = load ptr, ptr %2, align 8, !tbaa !10
%17 = tail call i32 @sldns_b64_ntop(ptr noundef %12, i64 noundef %4, ptr noundef %16, i64 noundef %9) #2
%18 = load ptr, ptr %0, align 8, !tbaa !10
%19 = getelementptr inbounds i32, ptr %18, i64 %4
store ptr %19, ptr %0, align 8, !tbaa !10
%20 = load i64, ptr %1, align 8, !tbaa !6
%21 = sub i64 %20, %4
store i64 %21, ptr %1, align 8, !tbaa !6
%22 = load ptr, ptr %2, align 8, !tbaa !10
%23 = getelementptr inbounds i8, ptr %22, i64 %8
store ptr %23, ptr %2, align 8, !tbaa !10
br label %24
24: ; preds = %15, %13
%25 = phi ptr [ %3, %15 ], [ %1, %13 ]
%26 = phi i64 [ %8, %15 ], [ %4, %13 ]
%27 = load i64, ptr %25, align 8, !tbaa !6
%28 = sub i64 %27, %26
store i64 %28, ptr %25, align 8, !tbaa !6
ret i32 %7
}
declare i32 @sldns_b64_ntop_calculate_size(i64 noundef) local_unnamed_addr #1
declare i32 @sldns_b64_ntop(ptr noundef, i64 noundef, 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 = !{!"any pointer", !8, i64 0}
| freebsd_contrib_unbound_sldns_extr_wire2str.c_sldns_wire2str_b64_scan_num |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/misc/sgi-gru/extr_gruhandles.h_get_cbe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/misc/sgi-gru/extr_gruhandles.h_get_cbe.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"
@GRU_CBE_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GRU_HANDLE_STRIDE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_cbe], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal ptr @get_cbe(ptr noundef readnone %0, i32 noundef %1) #0 {
%3 = load i32, ptr @GRU_CBE_BASE, align 4, !tbaa !5
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, ptr %0, i64 %4
%6 = load i32, ptr @GRU_HANDLE_STRIDE, align 4, !tbaa !5
%7 = mul nsw i32 %6, %1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %5, i64 %8
ret ptr %9
}
attributes #0 = { inlinehint 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/misc/sgi-gru/extr_gruhandles.h_get_cbe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/misc/sgi-gru/extr_gruhandles.h_get_cbe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GRU_CBE_BASE = common local_unnamed_addr global i32 0, align 4
@GRU_HANDLE_STRIDE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @get_cbe], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal ptr @get_cbe(ptr noundef readnone %0, i32 noundef %1) #0 {
%3 = load i32, ptr @GRU_CBE_BASE, align 4, !tbaa !6
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, ptr %0, i64 %4
%6 = load i32, ptr @GRU_HANDLE_STRIDE, align 4, !tbaa !6
%7 = mul nsw i32 %6, %1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %5, i64 %8
ret ptr %9
}
attributes #0 = { inlinehint 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 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_misc_sgi-gru_extr_gruhandles.h_get_cbe |
; ModuleID = 'AnghaBench/linux/drivers/clocksource/extr_sh_mtu2.c_sh_mtu2_clock_event_suspend.c'
source_filename = "AnghaBench/linux/drivers/clocksource/extr_sh_mtu2.c_sh_mtu2_clock_event_suspend.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 @sh_mtu2_clock_event_suspend], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @sh_mtu2_clock_event_suspend(ptr noundef %0) #0 {
%2 = tail call ptr @ced_to_sh_mtu2(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = tail call i32 @pm_genpd_syscore_poweroff(ptr noundef %4) #2
ret void
}
declare i32 @pm_genpd_syscore_poweroff(ptr noundef) local_unnamed_addr #1
declare ptr @ced_to_sh_mtu2(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_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/linux/drivers/clocksource/extr_sh_mtu2.c_sh_mtu2_clock_event_suspend.c'
source_filename = "AnghaBench/linux/drivers/clocksource/extr_sh_mtu2.c_sh_mtu2_clock_event_suspend.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 @sh_mtu2_clock_event_suspend], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @sh_mtu2_clock_event_suspend(ptr noundef %0) #0 {
%2 = tail call ptr @ced_to_sh_mtu2(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = tail call i32 @pm_genpd_syscore_poweroff(ptr noundef %4) #2
ret void
}
declare i32 @pm_genpd_syscore_poweroff(ptr noundef) local_unnamed_addr #1
declare ptr @ced_to_sh_mtu2(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_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}
| linux_drivers_clocksource_extr_sh_mtu2.c_sh_mtu2_clock_event_suspend |
; ModuleID = 'AnghaBench/postgres/src/interfaces/ecpg/ecpglib/extr_memory.c_ecpg_realloc.c'
source_filename = "AnghaBench/postgres/src/interfaces/ecpg/ecpglib/extr_memory.c_ecpg_realloc.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"
@ECPG_OUT_OF_MEMORY = dso_local local_unnamed_addr global i32 0, align 4
@ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @ecpg_realloc(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i64 @realloc(ptr noundef %0, i64 noundef %1) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load i32, ptr @ECPG_OUT_OF_MEMORY, align 4, !tbaa !5
%8 = load i32, ptr @ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, align 4, !tbaa !5
%9 = tail call i32 @ecpg_raise(i32 noundef %2, i32 noundef %7, i32 noundef %8, ptr noundef null) #2
br label %12
10: ; preds = %3
%11 = inttoptr i64 %4 to ptr
br label %12
12: ; preds = %10, %6
%13 = phi ptr [ %11, %10 ], [ null, %6 ]
ret ptr %13
}
declare i64 @realloc(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ecpg_raise(i32 noundef, 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 = { 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/postgres/src/interfaces/ecpg/ecpglib/extr_memory.c_ecpg_realloc.c'
source_filename = "AnghaBench/postgres/src/interfaces/ecpg/ecpglib/extr_memory.c_ecpg_realloc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ECPG_OUT_OF_MEMORY = common local_unnamed_addr global i32 0, align 4
@ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @ecpg_realloc(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i64 @realloc(ptr noundef %0, i64 noundef %1) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load i32, ptr @ECPG_OUT_OF_MEMORY, align 4, !tbaa !6
%8 = load i32, ptr @ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY, align 4, !tbaa !6
%9 = tail call i32 @ecpg_raise(i32 noundef %2, i32 noundef %7, i32 noundef %8, ptr noundef null) #2
br label %12
10: ; preds = %3
%11 = inttoptr i64 %4 to ptr
br label %12
12: ; preds = %10, %6
%13 = phi ptr [ %11, %10 ], [ null, %6 ]
ret ptr %13
}
declare i64 @realloc(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ecpg_raise(i32 noundef, 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 = { 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"}
| postgres_src_interfaces_ecpg_ecpglib_extr_memory.c_ecpg_realloc |
; ModuleID = 'AnghaBench/linux/drivers/hwmon/extr_max6639.c_temp_emergency_store.c'
source_filename = "AnghaBench/linux/drivers/hwmon/extr_max6639.c_temp_emergency_store.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.max6639_data = type { i32, ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @temp_emergency_store], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @temp_emergency_store(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = tail call ptr @to_sensor_dev_attr(ptr noundef %1) #3
%7 = tail call ptr @dev_get_drvdata(ptr noundef %0) #3
%8 = getelementptr inbounds %struct.max6639_data, ptr %7, i64 0, i32 2
%9 = load ptr, ptr %8, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%10 = call i32 @kstrtoul(ptr noundef %2, i32 noundef 10, ptr noundef nonnull %5) #3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %28
12: ; preds = %4
%13 = call i32 @mutex_lock(ptr noundef nonnull %7) #3
%14 = load i64, ptr %5, align 8, !tbaa !11
%15 = call i32 @TEMP_LIMIT_TO_REG(i64 noundef %14) #3
%16 = getelementptr inbounds %struct.max6639_data, ptr %7, i64 0, i32 1
%17 = load ptr, ptr %16, align 8, !tbaa !13
%18 = load i64, ptr %6, align 8, !tbaa !14
%19 = getelementptr inbounds i32, ptr %17, i64 %18
store i32 %15, ptr %19, align 4, !tbaa !16
%20 = call i32 @MAX6639_REG_OT_LIMIT(i64 noundef %18) #3
%21 = load ptr, ptr %16, align 8, !tbaa !13
%22 = load i64, ptr %6, align 8, !tbaa !14
%23 = getelementptr inbounds i32, ptr %21, i64 %22
%24 = load i32, ptr %23, align 4, !tbaa !16
%25 = call i32 @i2c_smbus_write_byte_data(ptr noundef %9, i32 noundef %20, i32 noundef %24) #3
%26 = call i32 @mutex_unlock(ptr noundef nonnull %7) #3
%27 = trunc i64 %3 to i32
br label %28
28: ; preds = %4, %12
%29 = phi i32 [ %27, %12 ], [ %10, %4 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #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 ptr @to_sensor_dev_attr(ptr noundef) local_unnamed_addr #2
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #2
declare i32 @kstrtoul(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #2
declare i32 @TEMP_LIMIT_TO_REG(i64 noundef) local_unnamed_addr #2
declare i32 @i2c_smbus_write_byte_data(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @MAX6639_REG_OT_LIMIT(i64 noundef) local_unnamed_addr #2
declare i32 @mutex_unlock(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 16}
!6 = !{!"max6639_data", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !12, i64 0}
!15 = !{!"sensor_device_attribute", !12, i64 0}
!16 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/hwmon/extr_max6639.c_temp_emergency_store.c'
source_filename = "AnghaBench/linux/drivers/hwmon/extr_max6639.c_temp_emergency_store.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 @temp_emergency_store], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @temp_emergency_store(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i64, align 8
%6 = tail call ptr @to_sensor_dev_attr(ptr noundef %1) #3
%7 = tail call ptr @dev_get_drvdata(ptr noundef %0) #3
%8 = getelementptr inbounds i8, ptr %7, i64 16
%9 = load ptr, ptr %8, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%10 = call i32 @kstrtoul(ptr noundef %2, i32 noundef 10, ptr noundef nonnull %5) #3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %28
12: ; preds = %4
%13 = call i32 @mutex_lock(ptr noundef nonnull %7) #3
%14 = load i64, ptr %5, align 8, !tbaa !12
%15 = call i32 @TEMP_LIMIT_TO_REG(i64 noundef %14) #3
%16 = getelementptr inbounds i8, ptr %7, i64 8
%17 = load ptr, ptr %16, align 8, !tbaa !14
%18 = load i64, ptr %6, align 8, !tbaa !15
%19 = getelementptr inbounds i32, ptr %17, i64 %18
store i32 %15, ptr %19, align 4, !tbaa !17
%20 = call i32 @MAX6639_REG_OT_LIMIT(i64 noundef %18) #3
%21 = load ptr, ptr %16, align 8, !tbaa !14
%22 = load i64, ptr %6, align 8, !tbaa !15
%23 = getelementptr inbounds i32, ptr %21, i64 %22
%24 = load i32, ptr %23, align 4, !tbaa !17
%25 = call i32 @i2c_smbus_write_byte_data(ptr noundef %9, i32 noundef %20, i32 noundef %24) #3
%26 = call i32 @mutex_unlock(ptr noundef nonnull %7) #3
%27 = trunc i64 %3 to i32
br label %28
28: ; preds = %4, %12
%29 = phi i32 [ %27, %12 ], [ %10, %4 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #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 ptr @to_sensor_dev_attr(ptr noundef) local_unnamed_addr #2
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #2
declare i32 @kstrtoul(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #2
declare i32 @TEMP_LIMIT_TO_REG(i64 noundef) local_unnamed_addr #2
declare i32 @i2c_smbus_write_byte_data(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @MAX6639_REG_OT_LIMIT(i64 noundef) local_unnamed_addr #2
declare i32 @mutex_unlock(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 16}
!7 = !{!"max6639_data", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!16, !13, i64 0}
!16 = !{!"sensor_device_attribute", !13, i64 0}
!17 = !{!8, !8, i64 0}
| linux_drivers_hwmon_extr_max6639.c_temp_emergency_store |
; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_ov5675.c_ov5675_start_streaming.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_ov5675.c_ov5675_start_streaming.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.ov5675 = type { %struct.TYPE_5__, ptr }
%struct.TYPE_5__ = type { i32 }
%struct.TYPE_6__ = type { %struct.ov5675_reg_list }
%struct.ov5675_reg_list = type { i32 }
%struct.TYPE_4__ = type { i32, %struct.ov5675_reg_list }
@link_freq_configs = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [19 x i8] c"failed to set plls\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"failed to set mode\00", align 1
@OV5675_REG_MODE_SELECT = dso_local local_unnamed_addr global i32 0, align 4
@OV5675_REG_VALUE_08BIT = dso_local local_unnamed_addr global i32 0, align 4
@OV5675_MODE_STREAMING = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"failed to set stream\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ov5675_start_streaming], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ov5675_start_streaming(ptr noundef %0) #0 {
%2 = tail call ptr @v4l2_get_subdevdata(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.ov5675, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = load ptr, ptr @link_freq_configs, align 8, !tbaa !15
%7 = sext i32 %5 to i64
%8 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 %7
%9 = tail call i32 @ov5675_write_reg_list(ptr noundef %0, ptr noundef %8) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %26
11: ; preds = %1
%12 = load ptr, ptr %3, align 8, !tbaa !5
%13 = getelementptr inbounds %struct.TYPE_4__, ptr %12, i64 0, i32 1
%14 = tail call i32 @ov5675_write_reg_list(ptr noundef nonnull %0, ptr noundef nonnull %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %11
%17 = load i32, ptr %0, align 8, !tbaa !16
%18 = tail call i32 @__v4l2_ctrl_handler_setup(i32 noundef %17) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %16
%21 = load i32, ptr @OV5675_REG_MODE_SELECT, align 4, !tbaa !17
%22 = load i32, ptr @OV5675_REG_VALUE_08BIT, align 4, !tbaa !17
%23 = load i32, ptr @OV5675_MODE_STREAMING, align 4, !tbaa !17
%24 = tail call i32 @ov5675_write_reg(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %22, i32 noundef %23) #2
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %20, %11, %1
%27 = phi ptr [ @.str, %1 ], [ @.str.1, %11 ], [ @.str.2, %20 ]
%28 = phi i32 [ %9, %1 ], [ %14, %11 ], [ %24, %20 ]
%29 = tail call i32 @dev_err(ptr noundef %2, ptr noundef nonnull %27) #2
br label %30
30: ; preds = %26, %20, %16
%31 = phi i32 [ %18, %16 ], [ 0, %20 ], [ %28, %26 ]
ret i32 %31
}
declare ptr @v4l2_get_subdevdata(ptr noundef) local_unnamed_addr #1
declare i32 @ov5675_write_reg_list(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @__v4l2_ctrl_handler_setup(i32 noundef) local_unnamed_addr #1
declare i32 @ov5675_write_reg(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, !11, i64 8}
!6 = !{!"ov5675", !7, i64 0, !11, i64 8}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_4__", !8, i64 0, !14, i64 4}
!14 = !{!"ov5675_reg_list", !8, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !8, i64 0}
!17 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_ov5675.c_ov5675_start_streaming.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_ov5675.c_ov5675_start_streaming.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.ov5675_reg_list }
%struct.ov5675_reg_list = type { i32 }
@link_freq_configs = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [19 x i8] c"failed to set plls\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"failed to set mode\00", align 1
@OV5675_REG_MODE_SELECT = common local_unnamed_addr global i32 0, align 4
@OV5675_REG_VALUE_08BIT = common local_unnamed_addr global i32 0, align 4
@OV5675_MODE_STREAMING = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"failed to set stream\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @ov5675_start_streaming], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ov5675_start_streaming(ptr noundef %0) #0 {
%2 = tail call ptr @v4l2_get_subdevdata(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %4, align 4, !tbaa !13
%6 = load ptr, ptr @link_freq_configs, align 8, !tbaa !16
%7 = sext i32 %5 to i64
%8 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 %7
%9 = tail call i32 @ov5675_write_reg_list(ptr noundef %0, ptr noundef %8) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %26
11: ; preds = %1
%12 = load ptr, ptr %3, align 8, !tbaa !6
%13 = getelementptr inbounds i8, ptr %12, i64 4
%14 = tail call i32 @ov5675_write_reg_list(ptr noundef nonnull %0, ptr noundef nonnull %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %11
%17 = load i32, ptr %0, align 8, !tbaa !17
%18 = tail call i32 @__v4l2_ctrl_handler_setup(i32 noundef %17) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %16
%21 = load i32, ptr @OV5675_REG_MODE_SELECT, align 4, !tbaa !18
%22 = load i32, ptr @OV5675_REG_VALUE_08BIT, align 4, !tbaa !18
%23 = load i32, ptr @OV5675_MODE_STREAMING, align 4, !tbaa !18
%24 = tail call i32 @ov5675_write_reg(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %22, i32 noundef %23) #2
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %20, %11, %1
%27 = phi ptr [ @.str, %1 ], [ @.str.1, %11 ], [ @.str.2, %20 ]
%28 = phi i32 [ %9, %1 ], [ %14, %11 ], [ %24, %20 ]
%29 = tail call i32 @dev_err(ptr noundef %2, ptr noundef nonnull %27) #2
br label %30
30: ; preds = %26, %20, %16
%31 = phi i32 [ %18, %16 ], [ 0, %20 ], [ %28, %26 ]
ret i32 %31
}
declare ptr @v4l2_get_subdevdata(ptr noundef) local_unnamed_addr #1
declare i32 @ov5675_write_reg_list(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @__v4l2_ctrl_handler_setup(i32 noundef) local_unnamed_addr #1
declare i32 @ov5675_write_reg(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, !12, i64 8}
!7 = !{!"ov5675", !8, i64 0, !12, i64 8}
!8 = !{!"TYPE_5__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !9, i64 0}
!14 = !{!"TYPE_4__", !9, i64 0, !15, i64 4}
!15 = !{!"ov5675_reg_list", !9, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!7, !9, i64 0}
!18 = !{!9, !9, i64 0}
| linux_drivers_media_i2c_extr_ov5675.c_ov5675_start_streaming |
; ModuleID = 'AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_tick.c'
source_filename = "AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_tick.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.cas_softc = type { i64, i32, i32, ptr }
@MA_OWNED = dso_local local_unnamed_addr global i32 0, align 4
@IFCOUNTER_COLLISIONS = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_NORM_COLL_CNT = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_FIRST_COLL_CNT = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_EXCESS_COLL_CNT = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_LATE_COLL_CNT = dso_local local_unnamed_addr global i32 0, align 4
@IFCOUNTER_OERRORS = dso_local local_unnamed_addr global i32 0, align 4
@IFCOUNTER_IERRORS = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_LEN_ERR_CNT = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_ALIGN_ERR = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CRC_ERR_CNT = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CODE_VIOL = dso_local local_unnamed_addr global i32 0, align 4
@CAS_MAXTXFREE = dso_local local_unnamed_addr global i64 0, align 8
@hz = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cas_tick], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cas_tick(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.cas_softc, ptr %0, i64 0, i32 3
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr @MA_OWNED, align 4, !tbaa !12
%5 = tail call i32 @CAS_LOCK_ASSERT(ptr noundef %0, i32 noundef %4) #2
%6 = load i32, ptr @IFCOUNTER_COLLISIONS, align 4, !tbaa !12
%7 = load i32, ptr @CAS_MAC_NORM_COLL_CNT, align 4, !tbaa !12
%8 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %7) #2
%9 = load i32, ptr @CAS_MAC_FIRST_COLL_CNT, align 4, !tbaa !12
%10 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %9) #2
%11 = add nsw i64 %10, %8
%12 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %6, i64 noundef %11) #2
%13 = load i32, ptr @CAS_MAC_EXCESS_COLL_CNT, align 4, !tbaa !12
%14 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %13) #2
%15 = load i32, ptr @CAS_MAC_LATE_COLL_CNT, align 4, !tbaa !12
%16 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %15) #2
%17 = add nsw i64 %16, %14
%18 = load i32, ptr @IFCOUNTER_COLLISIONS, align 4, !tbaa !12
%19 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %18, i64 noundef %17) #2
%20 = load i32, ptr @IFCOUNTER_OERRORS, align 4, !tbaa !12
%21 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %20, i64 noundef %17) #2
%22 = load i32, ptr @IFCOUNTER_IERRORS, align 4, !tbaa !12
%23 = load i32, ptr @CAS_MAC_RX_LEN_ERR_CNT, align 4, !tbaa !12
%24 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %23) #2
%25 = load i32, ptr @CAS_MAC_RX_ALIGN_ERR, align 4, !tbaa !12
%26 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %25) #2
%27 = add nsw i64 %26, %24
%28 = load i32, ptr @CAS_MAC_RX_CRC_ERR_CNT, align 4, !tbaa !12
%29 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %28) #2
%30 = add nsw i64 %27, %29
%31 = load i32, ptr @CAS_MAC_RX_CODE_VIOL, align 4, !tbaa !12
%32 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %31) #2
%33 = add nsw i64 %30, %32
%34 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %22, i64 noundef %33) #2
%35 = load i32, ptr @CAS_MAC_NORM_COLL_CNT, align 4, !tbaa !12
%36 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %35, i32 noundef 0) #2
%37 = load i32, ptr @CAS_MAC_FIRST_COLL_CNT, align 4, !tbaa !12
%38 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %37, i32 noundef 0) #2
%39 = load i32, ptr @CAS_MAC_EXCESS_COLL_CNT, align 4, !tbaa !12
%40 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %39, i32 noundef 0) #2
%41 = load i32, ptr @CAS_MAC_LATE_COLL_CNT, align 4, !tbaa !12
%42 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %41, i32 noundef 0) #2
%43 = load i32, ptr @CAS_MAC_RX_LEN_ERR_CNT, align 4, !tbaa !12
%44 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %43, i32 noundef 0) #2
%45 = load i32, ptr @CAS_MAC_RX_ALIGN_ERR, align 4, !tbaa !12
%46 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %45, i32 noundef 0) #2
%47 = load i32, ptr @CAS_MAC_RX_CRC_ERR_CNT, align 4, !tbaa !12
%48 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %47, i32 noundef 0) #2
%49 = load i32, ptr @CAS_MAC_RX_CODE_VIOL, align 4, !tbaa !12
%50 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %49, i32 noundef 0) #2
%51 = getelementptr inbounds %struct.cas_softc, ptr %0, i64 0, i32 2
%52 = load i32, ptr %51, align 4, !tbaa !13
%53 = tail call i32 @mii_tick(i32 noundef %52) #2
%54 = load i64, ptr %0, align 8, !tbaa !14
%55 = load i64, ptr @CAS_MAXTXFREE, align 8, !tbaa !15
%56 = icmp eq i64 %54, %55
br i1 %56, label %59, label %57
57: ; preds = %1
%58 = tail call i32 @cas_tint(ptr noundef nonnull %0) #2
br label %59
59: ; preds = %57, %1
%60 = tail call i32 @cas_watchdog(ptr noundef nonnull %0) #2
%61 = getelementptr inbounds %struct.cas_softc, ptr %0, i64 0, i32 1
%62 = load i32, ptr @hz, align 4, !tbaa !12
%63 = tail call i32 @callout_reset(ptr noundef nonnull %61, i32 noundef %62, ptr noundef nonnull @cas_tick, ptr noundef nonnull %0) #2
ret void
}
declare i32 @CAS_LOCK_ASSERT(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @if_inc_counter(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @CAS_READ_4(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CAS_WRITE_4(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mii_tick(i32 noundef) local_unnamed_addr #1
declare i32 @cas_tint(ptr noundef) local_unnamed_addr #1
declare i32 @cas_watchdog(ptr noundef) local_unnamed_addr #1
declare i32 @callout_reset(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"cas_softc", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 12}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_tick.c'
source_filename = "AnghaBench/freebsd/sys/dev/cas/extr_if_cas.c_cas_tick.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MA_OWNED = common local_unnamed_addr global i32 0, align 4
@IFCOUNTER_COLLISIONS = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_NORM_COLL_CNT = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_FIRST_COLL_CNT = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_EXCESS_COLL_CNT = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_LATE_COLL_CNT = common local_unnamed_addr global i32 0, align 4
@IFCOUNTER_OERRORS = common local_unnamed_addr global i32 0, align 4
@IFCOUNTER_IERRORS = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_LEN_ERR_CNT = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_ALIGN_ERR = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CRC_ERR_CNT = common local_unnamed_addr global i32 0, align 4
@CAS_MAC_RX_CODE_VIOL = common local_unnamed_addr global i32 0, align 4
@CAS_MAXTXFREE = common local_unnamed_addr global i64 0, align 8
@hz = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cas_tick], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cas_tick(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr @MA_OWNED, align 4, !tbaa !13
%5 = tail call i32 @CAS_LOCK_ASSERT(ptr noundef %0, i32 noundef %4) #2
%6 = load i32, ptr @IFCOUNTER_COLLISIONS, align 4, !tbaa !13
%7 = load i32, ptr @CAS_MAC_NORM_COLL_CNT, align 4, !tbaa !13
%8 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %7) #2
%9 = load i32, ptr @CAS_MAC_FIRST_COLL_CNT, align 4, !tbaa !13
%10 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %9) #2
%11 = add nsw i64 %10, %8
%12 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %6, i64 noundef %11) #2
%13 = load i32, ptr @CAS_MAC_EXCESS_COLL_CNT, align 4, !tbaa !13
%14 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %13) #2
%15 = load i32, ptr @CAS_MAC_LATE_COLL_CNT, align 4, !tbaa !13
%16 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %15) #2
%17 = add nsw i64 %16, %14
%18 = load i32, ptr @IFCOUNTER_COLLISIONS, align 4, !tbaa !13
%19 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %18, i64 noundef %17) #2
%20 = load i32, ptr @IFCOUNTER_OERRORS, align 4, !tbaa !13
%21 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %20, i64 noundef %17) #2
%22 = load i32, ptr @IFCOUNTER_IERRORS, align 4, !tbaa !13
%23 = load i32, ptr @CAS_MAC_RX_LEN_ERR_CNT, align 4, !tbaa !13
%24 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %23) #2
%25 = load i32, ptr @CAS_MAC_RX_ALIGN_ERR, align 4, !tbaa !13
%26 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %25) #2
%27 = add nsw i64 %26, %24
%28 = load i32, ptr @CAS_MAC_RX_CRC_ERR_CNT, align 4, !tbaa !13
%29 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %28) #2
%30 = add nsw i64 %27, %29
%31 = load i32, ptr @CAS_MAC_RX_CODE_VIOL, align 4, !tbaa !13
%32 = tail call i64 @CAS_READ_4(ptr noundef %0, i32 noundef %31) #2
%33 = add nsw i64 %30, %32
%34 = tail call i32 @if_inc_counter(ptr noundef %3, i32 noundef %22, i64 noundef %33) #2
%35 = load i32, ptr @CAS_MAC_NORM_COLL_CNT, align 4, !tbaa !13
%36 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %35, i32 noundef 0) #2
%37 = load i32, ptr @CAS_MAC_FIRST_COLL_CNT, align 4, !tbaa !13
%38 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %37, i32 noundef 0) #2
%39 = load i32, ptr @CAS_MAC_EXCESS_COLL_CNT, align 4, !tbaa !13
%40 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %39, i32 noundef 0) #2
%41 = load i32, ptr @CAS_MAC_LATE_COLL_CNT, align 4, !tbaa !13
%42 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %41, i32 noundef 0) #2
%43 = load i32, ptr @CAS_MAC_RX_LEN_ERR_CNT, align 4, !tbaa !13
%44 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %43, i32 noundef 0) #2
%45 = load i32, ptr @CAS_MAC_RX_ALIGN_ERR, align 4, !tbaa !13
%46 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %45, i32 noundef 0) #2
%47 = load i32, ptr @CAS_MAC_RX_CRC_ERR_CNT, align 4, !tbaa !13
%48 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %47, i32 noundef 0) #2
%49 = load i32, ptr @CAS_MAC_RX_CODE_VIOL, align 4, !tbaa !13
%50 = tail call i32 @CAS_WRITE_4(ptr noundef %0, i32 noundef %49, i32 noundef 0) #2
%51 = getelementptr inbounds i8, ptr %0, i64 12
%52 = load i32, ptr %51, align 4, !tbaa !14
%53 = tail call i32 @mii_tick(i32 noundef %52) #2
%54 = load i64, ptr %0, align 8, !tbaa !15
%55 = load i64, ptr @CAS_MAXTXFREE, align 8, !tbaa !16
%56 = icmp eq i64 %54, %55
br i1 %56, label %59, label %57
57: ; preds = %1
%58 = tail call i32 @cas_tint(ptr noundef nonnull %0) #2
br label %59
59: ; preds = %57, %1
%60 = tail call i32 @cas_watchdog(ptr noundef nonnull %0) #2
%61 = getelementptr inbounds i8, ptr %0, i64 8
%62 = load i32, ptr @hz, align 4, !tbaa !13
%63 = tail call i32 @callout_reset(ptr noundef nonnull %61, i32 noundef %62, ptr noundef nonnull @cas_tick, ptr noundef nonnull %0) #2
ret void
}
declare i32 @CAS_LOCK_ASSERT(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @if_inc_counter(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @CAS_READ_4(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CAS_WRITE_4(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mii_tick(i32 noundef) local_unnamed_addr #1
declare i32 @cas_tint(ptr noundef) local_unnamed_addr #1
declare i32 @cas_watchdog(ptr noundef) local_unnamed_addr #1
declare i32 @callout_reset(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 16}
!7 = !{!"cas_softc", !8, i64 0, !11, i64 8, !11, i64 12, !12, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !11, i64 12}
!15 = !{!7, !8, i64 0}
!16 = !{!8, !8, i64 0}
| freebsd_sys_dev_cas_extr_if_cas.c_cas_tick |
; ModuleID = 'AnghaBench/linux/virt/kvm/arm/extr_mmu.c_kvm_handle_guest_abort.c'
source_filename = "AnghaBench/linux/virt/kvm/arm/extr_mmu.c_kvm_handle_guest_abort.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"
@FSC_FAULT = dso_local local_unnamed_addr global i64 0, align 8
@FSC_PERM = dso_local local_unnamed_addr global i64 0, align 8
@FSC_ACCESS = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [48 x i8] c"Unsupported FSC: EC=%#x xFSC=%#lx ESR_EL2=%#lx\0A\00", align 1
@EFAULT = dso_local local_unnamed_addr global i32 0, align 4
@PAGE_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @kvm_handle_guest_abort(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
%4 = tail call i64 @kvm_vcpu_trap_get_fault_type(ptr noundef %0) #4
%5 = tail call i32 @kvm_vcpu_get_fault_ipa(ptr noundef %0) #4
%6 = tail call i32 @kvm_vcpu_trap_is_iabt(ptr noundef %0) #4
%7 = tail call i64 @kvm_vcpu_dabt_isextabt(ptr noundef %0) #4
%8 = icmp eq i64 %7, 0
br i1 %8, label %20, label %9
9: ; preds = %2
%10 = tail call i64 @kvm_vcpu_get_hsr(ptr noundef %0) #4
%11 = tail call i32 @kvm_handle_guest_sea(i32 noundef %5, i64 noundef %10) #4
%12 = icmp eq i32 %11, 0
br i1 %12, label %90, label %13
13: ; preds = %9
%14 = icmp eq i32 %6, 0
%15 = zext i1 %14 to i32
%16 = tail call i64 @unlikely(i32 noundef %15) #4
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %13
%19 = tail call i32 @kvm_inject_vabt(ptr noundef %0) #4
br label %90
20: ; preds = %13, %2
%21 = tail call ptr @vcpu_pc(ptr noundef %0) #4
%22 = load i32, ptr %21, align 4, !tbaa !5
%23 = tail call i64 @kvm_vcpu_get_hsr(ptr noundef %0) #4
%24 = tail call i32 @kvm_vcpu_get_hfar(ptr noundef %0) #4
%25 = tail call i32 @trace_kvm_guest_fault(i32 noundef %22, i64 noundef %23, i32 noundef %24, i32 noundef %5) #4
%26 = load i64, ptr @FSC_FAULT, align 8, !tbaa !9
%27 = icmp eq i64 %4, %26
%28 = load i64, ptr @FSC_PERM, align 8
%29 = icmp eq i64 %4, %28
%30 = select i1 %27, i1 true, i1 %29
%31 = load i64, ptr @FSC_ACCESS, align 8
%32 = icmp eq i64 %4, %31
%33 = select i1 %30, i1 true, i1 %32
br i1 %33, label %41, label %34
34: ; preds = %20
%35 = tail call i32 @kvm_vcpu_trap_get_class(ptr noundef %0) #4
%36 = tail call i64 @kvm_vcpu_trap_get_fault(ptr noundef %0) #4
%37 = tail call i64 @kvm_vcpu_get_hsr(ptr noundef %0) #4
%38 = tail call i32 @kvm_err(ptr noundef nonnull @.str, i32 noundef %35, i64 noundef %36, i64 noundef %37) #4
%39 = load i32, ptr @EFAULT, align 4, !tbaa !5
%40 = sub nsw i32 0, %39
br label %90
41: ; preds = %20
%42 = load ptr, ptr %0, align 8, !tbaa !11
%43 = tail call i32 @srcu_read_lock(ptr noundef %42) #4
%44 = load i32, ptr @PAGE_SHIFT, align 4, !tbaa !5
%45 = ashr i32 %5, %44
%46 = load ptr, ptr %0, align 8, !tbaa !11
%47 = tail call ptr @gfn_to_memslot(ptr noundef %46, i32 noundef %45) #4
%48 = call i64 @gfn_to_hva_memslot_prot(ptr noundef %47, i32 noundef %45, ptr noundef nonnull %3) #4
%49 = call i32 @kvm_is_write_fault(ptr noundef nonnull %0) #4
%50 = call i64 @kvm_is_error_hva(i64 noundef %48) #4
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %41
%53 = icmp eq i32 %49, 0
%54 = load i32, ptr %3, align 4
%55 = icmp ne i32 %54, 0
%56 = select i1 %53, i1 true, i1 %55
br i1 %56, label %73, label %57
57: ; preds = %52, %41
%58 = icmp eq i32 %6, 0
br i1 %58, label %62, label %59
59: ; preds = %57
%60 = call i32 @kvm_vcpu_get_hfar(ptr noundef nonnull %0) #4
%61 = call i32 @kvm_inject_pabt(ptr noundef nonnull %0, i32 noundef %60) #4
br label %86
62: ; preds = %57
%63 = call i64 @kvm_vcpu_dabt_is_cm(ptr noundef nonnull %0) #4
%64 = icmp eq i64 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %62
%66 = call i32 @kvm_vcpu_trap_il_is32bit(ptr noundef nonnull %0) #4
%67 = call i32 @kvm_skip_instr(ptr noundef nonnull %0, i32 noundef %66) #4
br label %86
68: ; preds = %62
%69 = call i32 @kvm_vcpu_get_hfar(ptr noundef nonnull %0) #4
%70 = and i32 %69, 4095
%71 = or i32 %70, %5
%72 = call i32 @io_mem_abort(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %71) #4
br label %86
73: ; preds = %52
%74 = load ptr, ptr %0, align 8, !tbaa !11
%75 = call i32 @kvm_phys_size(ptr noundef %74) #4
%76 = icmp sge i32 %5, %75
%77 = zext i1 %76 to i32
%78 = call i32 @VM_BUG_ON(i32 noundef %77) #4
%79 = load i64, ptr @FSC_ACCESS, align 8, !tbaa !9
%80 = icmp eq i64 %4, %79
br i1 %80, label %81, label %83
81: ; preds = %73
%82 = call i32 @handle_access_fault(ptr noundef nonnull %0, i32 noundef %5) #4
br label %86
83: ; preds = %73
%84 = call i32 @user_mem_abort(ptr noundef nonnull %0, i32 noundef %5, ptr noundef %47, i64 noundef %48, i64 noundef %4) #4
%85 = call i32 @llvm.umax.i32(i32 %84, i32 1)
br label %86
86: ; preds = %83, %81, %68, %65, %59
%87 = phi i32 [ 1, %59 ], [ 1, %65 ], [ %72, %68 ], [ 1, %81 ], [ %85, %83 ]
%88 = load ptr, ptr %0, align 8, !tbaa !11
%89 = call i32 @srcu_read_unlock(ptr noundef %88, i32 noundef %43) #4
br label %90
90: ; preds = %9, %86, %34, %18
%91 = phi i32 [ 1, %18 ], [ %40, %34 ], [ %87, %86 ], [ 1, %9 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
ret i32 %91
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @kvm_vcpu_trap_get_fault_type(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_get_fault_ipa(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_trap_is_iabt(ptr noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_dabt_isextabt(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_handle_guest_sea(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_get_hsr(ptr noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i32 @kvm_inject_vabt(ptr noundef) local_unnamed_addr #2
declare i32 @trace_kvm_guest_fault(i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @vcpu_pc(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_get_hfar(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_err(ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_trap_get_class(ptr noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_trap_get_fault(ptr noundef) local_unnamed_addr #2
declare i32 @srcu_read_lock(ptr noundef) local_unnamed_addr #2
declare ptr @gfn_to_memslot(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @gfn_to_hva_memslot_prot(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kvm_is_write_fault(ptr noundef) local_unnamed_addr #2
declare i64 @kvm_is_error_hva(i64 noundef) local_unnamed_addr #2
declare i32 @kvm_inject_pabt(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_dabt_is_cm(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_skip_instr(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_trap_il_is32bit(ptr noundef) local_unnamed_addr #2
declare i32 @io_mem_abort(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @VM_BUG_ON(i32 noundef) local_unnamed_addr #2
declare i32 @kvm_phys_size(ptr noundef) local_unnamed_addr #2
declare i32 @handle_access_fault(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @user_mem_abort(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @srcu_read_unlock(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 nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"kvm_vcpu", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/virt/kvm/arm/extr_mmu.c_kvm_handle_guest_abort.c'
source_filename = "AnghaBench/linux/virt/kvm/arm/extr_mmu.c_kvm_handle_guest_abort.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FSC_FAULT = common local_unnamed_addr global i64 0, align 8
@FSC_PERM = common local_unnamed_addr global i64 0, align 8
@FSC_ACCESS = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [48 x i8] c"Unsupported FSC: EC=%#x xFSC=%#lx ESR_EL2=%#lx\0A\00", align 1
@EFAULT = common local_unnamed_addr global i32 0, align 4
@PAGE_SHIFT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @kvm_handle_guest_abort(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
%4 = tail call i64 @kvm_vcpu_trap_get_fault_type(ptr noundef %0) #4
%5 = tail call i32 @kvm_vcpu_get_fault_ipa(ptr noundef %0) #4
%6 = tail call i32 @kvm_vcpu_trap_is_iabt(ptr noundef %0) #4
%7 = tail call i64 @kvm_vcpu_dabt_isextabt(ptr noundef %0) #4
%8 = icmp eq i64 %7, 0
br i1 %8, label %20, label %9
9: ; preds = %2
%10 = tail call i64 @kvm_vcpu_get_hsr(ptr noundef %0) #4
%11 = tail call i32 @kvm_handle_guest_sea(i32 noundef %5, i64 noundef %10) #4
%12 = icmp eq i32 %11, 0
br i1 %12, label %90, label %13
13: ; preds = %9
%14 = icmp eq i32 %6, 0
%15 = zext i1 %14 to i32
%16 = tail call i64 @unlikely(i32 noundef %15) #4
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %13
%19 = tail call i32 @kvm_inject_vabt(ptr noundef %0) #4
br label %90
20: ; preds = %13, %2
%21 = tail call ptr @vcpu_pc(ptr noundef %0) #4
%22 = load i32, ptr %21, align 4, !tbaa !6
%23 = tail call i64 @kvm_vcpu_get_hsr(ptr noundef %0) #4
%24 = tail call i32 @kvm_vcpu_get_hfar(ptr noundef %0) #4
%25 = tail call i32 @trace_kvm_guest_fault(i32 noundef %22, i64 noundef %23, i32 noundef %24, i32 noundef %5) #4
%26 = load i64, ptr @FSC_FAULT, align 8, !tbaa !10
%27 = icmp eq i64 %4, %26
%28 = load i64, ptr @FSC_PERM, align 8
%29 = icmp eq i64 %4, %28
%30 = select i1 %27, i1 true, i1 %29
%31 = load i64, ptr @FSC_ACCESS, align 8
%32 = icmp eq i64 %4, %31
%33 = select i1 %30, i1 true, i1 %32
br i1 %33, label %41, label %34
34: ; preds = %20
%35 = tail call i32 @kvm_vcpu_trap_get_class(ptr noundef %0) #4
%36 = tail call i64 @kvm_vcpu_trap_get_fault(ptr noundef %0) #4
%37 = tail call i64 @kvm_vcpu_get_hsr(ptr noundef %0) #4
%38 = tail call i32 @kvm_err(ptr noundef nonnull @.str, i32 noundef %35, i64 noundef %36, i64 noundef %37) #4
%39 = load i32, ptr @EFAULT, align 4, !tbaa !6
%40 = sub nsw i32 0, %39
br label %90
41: ; preds = %20
%42 = load ptr, ptr %0, align 8, !tbaa !12
%43 = tail call i32 @srcu_read_lock(ptr noundef %42) #4
%44 = load i32, ptr @PAGE_SHIFT, align 4, !tbaa !6
%45 = ashr i32 %5, %44
%46 = load ptr, ptr %0, align 8, !tbaa !12
%47 = tail call ptr @gfn_to_memslot(ptr noundef %46, i32 noundef %45) #4
%48 = call i64 @gfn_to_hva_memslot_prot(ptr noundef %47, i32 noundef %45, ptr noundef nonnull %3) #4
%49 = call i32 @kvm_is_write_fault(ptr noundef nonnull %0) #4
%50 = call i64 @kvm_is_error_hva(i64 noundef %48) #4
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %41
%53 = icmp eq i32 %49, 0
%54 = load i32, ptr %3, align 4
%55 = icmp ne i32 %54, 0
%56 = select i1 %53, i1 true, i1 %55
br i1 %56, label %73, label %57
57: ; preds = %52, %41
%58 = icmp eq i32 %6, 0
br i1 %58, label %62, label %59
59: ; preds = %57
%60 = call i32 @kvm_vcpu_get_hfar(ptr noundef nonnull %0) #4
%61 = call i32 @kvm_inject_pabt(ptr noundef nonnull %0, i32 noundef %60) #4
br label %86
62: ; preds = %57
%63 = call i64 @kvm_vcpu_dabt_is_cm(ptr noundef nonnull %0) #4
%64 = icmp eq i64 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %62
%66 = call i32 @kvm_vcpu_trap_il_is32bit(ptr noundef nonnull %0) #4
%67 = call i32 @kvm_skip_instr(ptr noundef nonnull %0, i32 noundef %66) #4
br label %86
68: ; preds = %62
%69 = call i32 @kvm_vcpu_get_hfar(ptr noundef nonnull %0) #4
%70 = and i32 %69, 4095
%71 = or i32 %70, %5
%72 = call i32 @io_mem_abort(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %71) #4
br label %86
73: ; preds = %52
%74 = load ptr, ptr %0, align 8, !tbaa !12
%75 = call i32 @kvm_phys_size(ptr noundef %74) #4
%76 = icmp sge i32 %5, %75
%77 = zext i1 %76 to i32
%78 = call i32 @VM_BUG_ON(i32 noundef %77) #4
%79 = load i64, ptr @FSC_ACCESS, align 8, !tbaa !10
%80 = icmp eq i64 %4, %79
br i1 %80, label %81, label %83
81: ; preds = %73
%82 = call i32 @handle_access_fault(ptr noundef nonnull %0, i32 noundef %5) #4
br label %86
83: ; preds = %73
%84 = call i32 @user_mem_abort(ptr noundef nonnull %0, i32 noundef %5, ptr noundef %47, i64 noundef %48, i64 noundef %4) #4
%85 = call i32 @llvm.umax.i32(i32 %84, i32 1)
br label %86
86: ; preds = %83, %81, %68, %65, %59
%87 = phi i32 [ 1, %59 ], [ 1, %65 ], [ %72, %68 ], [ 1, %81 ], [ %85, %83 ]
%88 = load ptr, ptr %0, align 8, !tbaa !12
%89 = call i32 @srcu_read_unlock(ptr noundef %88, i32 noundef %43) #4
br label %90
90: ; preds = %9, %86, %34, %18
%91 = phi i32 [ 1, %18 ], [ %40, %34 ], [ %87, %86 ], [ 1, %9 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
ret i32 %91
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @kvm_vcpu_trap_get_fault_type(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_get_fault_ipa(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_trap_is_iabt(ptr noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_dabt_isextabt(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_handle_guest_sea(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_get_hsr(ptr noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i32 @kvm_inject_vabt(ptr noundef) local_unnamed_addr #2
declare i32 @trace_kvm_guest_fault(i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @vcpu_pc(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_get_hfar(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_err(ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_trap_get_class(ptr noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_trap_get_fault(ptr noundef) local_unnamed_addr #2
declare i32 @srcu_read_lock(ptr noundef) local_unnamed_addr #2
declare ptr @gfn_to_memslot(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @gfn_to_hva_memslot_prot(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @kvm_is_write_fault(ptr noundef) local_unnamed_addr #2
declare i64 @kvm_is_error_hva(i64 noundef) local_unnamed_addr #2
declare i32 @kvm_inject_pabt(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @kvm_vcpu_dabt_is_cm(ptr noundef) local_unnamed_addr #2
declare i32 @kvm_skip_instr(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kvm_vcpu_trap_il_is32bit(ptr noundef) local_unnamed_addr #2
declare i32 @io_mem_abort(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @VM_BUG_ON(i32 noundef) local_unnamed_addr #2
declare i32 @kvm_phys_size(ptr noundef) local_unnamed_addr #2
declare i32 @handle_access_fault(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @user_mem_abort(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @srcu_read_unlock(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 nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"kvm_vcpu", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
| linux_virt_kvm_arm_extr_mmu.c_kvm_handle_guest_abort |
; ModuleID = 'AnghaBench/linux/drivers/iio/light/extr_apds9960.c_apds9960_buffer_predisable.c'
source_filename = "AnghaBench/linux/drivers/iio/light/extr_apds9960.c_apds9960_buffer_predisable.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.apds9960_data = type { ptr, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @apds9960_buffer_predisable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @apds9960_buffer_predisable(ptr noundef %0) #0 {
%2 = tail call ptr @iio_priv(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.apds9960_data, ptr %2, i64 0, i32 2
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = tail call i32 @regmap_field_write(i32 noundef %4, i32 noundef 0) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = getelementptr inbounds %struct.apds9960_data, ptr %2, i64 0, i32 1
%9 = load i32, ptr %8, align 8, !tbaa !11
%10 = tail call i32 @regmap_field_write(i32 noundef %9, i32 noundef 0) #2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %7
%13 = load ptr, ptr %2, align 8, !tbaa !12
%14 = tail call i32 @pm_runtime_put_autosuspend(ptr noundef %13) #2
br label %15
15: ; preds = %7, %1, %12
%16 = phi i32 [ 0, %12 ], [ %5, %1 ], [ %10, %7 ]
ret i32 %16
}
declare ptr @iio_priv(ptr noundef) local_unnamed_addr #1
declare i32 @regmap_field_write(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put_autosuspend(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 12}
!6 = !{!"apds9960_data", !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, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/iio/light/extr_apds9960.c_apds9960_buffer_predisable.c'
source_filename = "AnghaBench/linux/drivers/iio/light/extr_apds9960.c_apds9960_buffer_predisable.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 @apds9960_buffer_predisable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @apds9960_buffer_predisable(ptr noundef %0) #0 {
%2 = tail call ptr @iio_priv(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %2, i64 12
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = tail call i32 @regmap_field_write(i32 noundef %4, i32 noundef 0) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %2, i64 8
%9 = load i32, ptr %8, align 8, !tbaa !12
%10 = tail call i32 @regmap_field_write(i32 noundef %9, i32 noundef 0) #2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %7
%13 = load ptr, ptr %2, align 8, !tbaa !13
%14 = tail call i32 @pm_runtime_put_autosuspend(ptr noundef %13) #2
br label %15
15: ; preds = %7, %1, %12
%16 = phi i32 [ 0, %12 ], [ %5, %1 ], [ %10, %7 ]
ret i32 %16
}
declare ptr @iio_priv(ptr noundef) local_unnamed_addr #1
declare i32 @regmap_field_write(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put_autosuspend(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 12}
!7 = !{!"apds9960_data", !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, !8, i64 0}
| linux_drivers_iio_light_extr_apds9960.c_apds9960_buffer_predisable |
; ModuleID = 'AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Prev.c'
source_filename = "AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Prev.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.Slice = type { i32, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @Slice_Iter_Prev], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @Slice_Iter_Prev(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds %struct.Slice, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i64, ptr %4, align 8, !tbaa !11
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %2, %7
%8 = phi i64 [ %12, %7 ], [ 0, %2 ]
%9 = phi ptr [ %11, %7 ], [ %1, %2 ]
%10 = load i32, ptr %0, align 8, !tbaa !14
%11 = tail call ptr @iter_prev(i32 noundef %10, ptr noundef %9) #2
%12 = add nuw nsw i64 %8, 1
%13 = load i64, ptr %4, align 8, !tbaa !11
%14 = icmp slt i64 %12, %13
br i1 %14, label %7, label %15, !llvm.loop !15
15: ; preds = %7, %2
%16 = phi i64 [ %5, %2 ], [ %13, %7 ]
%17 = phi ptr [ %1, %2 ], [ %11, %7 ]
%18 = icmp slt i64 %16, 0
br i1 %18, label %19, label %28
19: ; preds = %15, %19
%20 = phi i64 [ %24, %19 ], [ 0, %15 ]
%21 = phi ptr [ %23, %19 ], [ %17, %15 ]
%22 = load i32, ptr %0, align 8, !tbaa !14
%23 = tail call ptr @iter_next(i32 noundef %22, ptr noundef %21) #2
%24 = add nuw nsw i64 %20, 1
%25 = load i64, ptr %4, align 8, !tbaa !11
%26 = sub nsw i64 0, %25
%27 = icmp slt i64 %24, %26
br i1 %27, label %19, label %28, !llvm.loop !17
28: ; preds = %19, %15
%29 = phi ptr [ %17, %15 ], [ %23, %19 ]
ret ptr %29
}
declare ptr @iter_prev(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @iter_next(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, !10, i64 8}
!6 = !{!"Slice", !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, !13, i64 0}
!12 = !{!"Range", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
| ; ModuleID = 'AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Prev.c'
source_filename = "AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Prev.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 @Slice_Iter_Prev], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @Slice_Iter_Prev(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i64, ptr %4, align 8, !tbaa !12
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %2, %7
%8 = phi i64 [ %12, %7 ], [ 0, %2 ]
%9 = phi ptr [ %11, %7 ], [ %1, %2 ]
%10 = load i32, ptr %0, align 8, !tbaa !15
%11 = tail call ptr @iter_prev(i32 noundef %10, ptr noundef %9) #2
%12 = add nuw nsw i64 %8, 1
%13 = load i64, ptr %4, align 8, !tbaa !12
%14 = icmp slt i64 %12, %13
br i1 %14, label %7, label %15, !llvm.loop !16
15: ; preds = %7, %2
%16 = phi i64 [ %5, %2 ], [ %13, %7 ]
%17 = phi ptr [ %1, %2 ], [ %11, %7 ]
%18 = icmp slt i64 %16, 0
br i1 %18, label %19, label %28
19: ; preds = %15, %19
%20 = phi i64 [ %24, %19 ], [ 0, %15 ]
%21 = phi ptr [ %23, %19 ], [ %17, %15 ]
%22 = load i32, ptr %0, align 8, !tbaa !15
%23 = tail call ptr @iter_next(i32 noundef %22, ptr noundef %21) #2
%24 = add nuw nsw i64 %20, 1
%25 = load i64, ptr %4, align 8, !tbaa !12
%26 = sub nsw i64 0, %25
%27 = icmp slt i64 %24, %26
br i1 %27, label %19, label %28, !llvm.loop !18
28: ; preds = %19, %15
%29 = phi ptr [ %17, %15 ], [ %23, %19 ]
ret ptr %29
}
declare ptr @iter_prev(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @iter_next(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, !11, i64 8}
!7 = !{!"Slice", !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, !14, i64 0}
!13 = !{!"Range", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
| Cello_src_extr_Iter.c_Slice_Iter_Prev |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_htc_drv_init.c_ath9k_regwrite_buffer.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_htc_drv_init.c_ath9k_regwrite_buffer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i64, i32, ptr }
%struct.TYPE_3__ = type { ptr, ptr }
@MAX_CMD_NUMBER = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @ath9k_regwrite_buffer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ath9k_regwrite_buffer(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @ath9k_hw_common(ptr noundef %0) #2
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = inttoptr i64 %5 to ptr
%7 = load ptr, ptr %6, align 8, !tbaa !10
%8 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i64 0, i32 1
%9 = tail call i32 @mutex_lock(ptr noundef nonnull %8) #2
%10 = tail call ptr @cpu_to_be32(i32 noundef %2) #2
%11 = load ptr, ptr %6, align 8, !tbaa !10
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 0, i32 2
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = load i64, ptr %11, align 8, !tbaa !16
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %13, i64 %14, i32 1
store ptr %10, ptr %15, align 8, !tbaa !17
%16 = tail call ptr @cpu_to_be32(i32 noundef %1) #2
%17 = load ptr, ptr %6, align 8, !tbaa !10
%18 = getelementptr inbounds %struct.TYPE_4__, ptr %17, i64 0, i32 2
%19 = load ptr, ptr %18, align 8, !tbaa !13
%20 = load i64, ptr %17, align 8, !tbaa !16
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %19, i64 %20
store ptr %16, ptr %21, align 8, !tbaa !19
%22 = add i64 %20, 1
store i64 %22, ptr %17, align 8, !tbaa !16
%23 = load i64, ptr @MAX_CMD_NUMBER, align 8, !tbaa !20
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %3
%26 = tail call i32 @ath9k_regwrite_multi(ptr noundef nonnull %4) #2
%27 = load ptr, ptr %6, align 8, !tbaa !10
br label %28
28: ; preds = %25, %3
%29 = phi ptr [ %27, %25 ], [ %17, %3 ]
%30 = getelementptr inbounds %struct.TYPE_4__, ptr %29, i64 0, i32 1
%31 = tail call i32 @mutex_unlock(ptr noundef nonnull %30) #2
ret void
}
declare ptr @ath9k_hw_common(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @cpu_to_be32(i32 noundef) local_unnamed_addr #1
declare i32 @ath9k_regwrite_multi(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, !7, i64 0}
!6 = !{!"ath_common", !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 = !{!"ath9k_htc_priv", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"TYPE_4__", !7, i64 0, !15, i64 8, !12, i64 16}
!15 = !{!"int", !8, i64 0}
!16 = !{!14, !7, i64 0}
!17 = !{!18, !12, i64 8}
!18 = !{!"TYPE_3__", !12, i64 0, !12, i64 8}
!19 = !{!18, !12, i64 0}
!20 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_htc_drv_init.c_ath9k_regwrite_buffer.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_htc_drv_init.c_ath9k_regwrite_buffer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { ptr, ptr }
@MAX_CMD_NUMBER = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @ath9k_regwrite_buffer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ath9k_regwrite_buffer(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @ath9k_hw_common(ptr noundef %0) #2
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = inttoptr i64 %5 to ptr
%7 = load ptr, ptr %6, align 8, !tbaa !11
%8 = getelementptr inbounds i8, ptr %7, i64 8
%9 = tail call i32 @mutex_lock(ptr noundef nonnull %8) #2
%10 = tail call ptr @cpu_to_be32(i32 noundef %2) #2
%11 = load ptr, ptr %6, align 8, !tbaa !11
%12 = getelementptr inbounds i8, ptr %11, i64 16
%13 = load ptr, ptr %12, align 8, !tbaa !14
%14 = load i64, ptr %11, align 8, !tbaa !17
%15 = getelementptr inbounds %struct.TYPE_3__, ptr %13, i64 %14, i32 1
store ptr %10, ptr %15, align 8, !tbaa !18
%16 = tail call ptr @cpu_to_be32(i32 noundef %1) #2
%17 = load ptr, ptr %6, align 8, !tbaa !11
%18 = getelementptr inbounds i8, ptr %17, i64 16
%19 = load ptr, ptr %18, align 8, !tbaa !14
%20 = load i64, ptr %17, align 8, !tbaa !17
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %19, i64 %20
store ptr %16, ptr %21, align 8, !tbaa !20
%22 = add i64 %20, 1
store i64 %22, ptr %17, align 8, !tbaa !17
%23 = load i64, ptr @MAX_CMD_NUMBER, align 8, !tbaa !21
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %3
%26 = tail call i32 @ath9k_regwrite_multi(ptr noundef nonnull %4) #2
%27 = load ptr, ptr %6, align 8, !tbaa !11
br label %28
28: ; preds = %25, %3
%29 = phi ptr [ %27, %25 ], [ %17, %3 ]
%30 = getelementptr inbounds i8, ptr %29, i64 8
%31 = tail call i32 @mutex_unlock(ptr noundef nonnull %30) #2
ret void
}
declare ptr @ath9k_hw_common(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare ptr @cpu_to_be32(i32 noundef) local_unnamed_addr #1
declare i32 @ath9k_regwrite_multi(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, !8, i64 0}
!7 = !{!"ath_common", !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 = !{!"ath9k_htc_priv", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !13, i64 16}
!15 = !{!"TYPE_4__", !8, i64 0, !16, i64 8, !13, i64 16}
!16 = !{!"int", !9, i64 0}
!17 = !{!15, !8, i64 0}
!18 = !{!19, !13, i64 8}
!19 = !{!"TYPE_3__", !13, i64 0, !13, i64 8}
!20 = !{!19, !13, i64 0}
!21 = !{!8, !8, i64 0}
| linux_drivers_net_wireless_ath_ath9k_extr_htc_drv_init.c_ath9k_regwrite_buffer |
; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/tar/extr_bsdtar.c_version.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/tar/extr_bsdtar.c_version.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 [17 x i8] c"bsdtar %s - %s \0A\00", align 1
@BSDTAR_VERSION_STRING = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @version], section "llvm.metadata"
; Function Attrs: noreturn nounwind uwtable
define internal void @version() #0 {
%1 = load ptr, ptr @BSDTAR_VERSION_STRING, align 8, !tbaa !5
%2 = tail call ptr (...) @archive_version_details() #3
%3 = tail call i32 @printf(ptr noundef nonnull @.str, ptr noundef %1, ptr noundef %2) #3
%4 = tail call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @archive_version_details(...) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
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 = { "no-trapping-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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/tar/extr_bsdtar.c_version.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/tar/extr_bsdtar.c_version.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 [17 x i8] c"bsdtar %s - %s \0A\00", align 1
@BSDTAR_VERSION_STRING = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @version], section "llvm.metadata"
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define internal void @version() #0 {
%1 = load ptr, ptr @BSDTAR_VERSION_STRING, align 8, !tbaa !6
%2 = tail call ptr @archive_version_details() #3
%3 = tail call i32 @printf(ptr noundef nonnull @.str, ptr noundef %1, ptr noundef %2) #3
%4 = tail call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @archive_version_details(...) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
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 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+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 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_libarchive_tar_extr_bsdtar.c_version |
; ModuleID = 'AnghaBench/freebsd/sys/fs/nfsclient/extr_nfs_clrpcops.c_nfsrpc_fillsa.c'
source_filename = "AnghaBench/freebsd/sys/fs/nfsclient/extr_nfs_clrpcops.c_nfsrpc_fillsa.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.nfsmount = type { i32, %struct.TYPE_5__, ptr }
%struct.TYPE_5__ = type { ptr, i64 }
%struct.sockaddr_in = type { i64, i64, i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
%struct.nfsclds = type { i32, %struct.TYPE_6__, ptr, i32, i32 }
%struct.TYPE_6__ = type { i64, i32, i32 }
%struct.sockaddr = type { i32, ptr, i32, i32, i32, i32 }
%struct.sockaddr_in6 = type { i64, i64, i32, i32 }
%struct.nfssockreq = type { i32, ptr, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [28 x i8] c"nfsrpc_fillsa: NULL nr_cred\00", align 1
@EPERM = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET = dso_local local_unnamed_addr global i64 0, align 8
@NFSCLDS_DS = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"fnd same addr\0A\00", align 1
@nfsclds_list = dso_local local_unnamed_addr global i32 0, align 4
@M_SONAME = dso_local local_unnamed_addr global i32 0, align 4
@M_WAITOK = dso_local local_unnamed_addr global i32 0, align 4
@M_ZERO = dso_local local_unnamed_addr global i32 0, align 4
@M_NFSSOCKREQ = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET6 = dso_local local_unnamed_addr global i64 0, align 8
@SOCK_STREAM = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"nfssock\00", align 1
@MTX_DEF = dso_local local_unnamed_addr global i32 0, align 4
@NFS_PROG = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"DS connect=%d\0A\00", align 1
@NFS_VER4 = dso_local local_unnamed_addr global i32 0, align 4
@NFSV4EXCH_USEPNFSDS = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"DS exchangeid=%d\0A\00", align 1
@M_NFSCLDS = dso_local local_unnamed_addr global i32 0, align 4
@INT32_MAX = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [6 x i8] c"nfsds\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"nfssession\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"getsame ret=%d\0A\00", align 1
@NFSDSP_USETHISSESSION = dso_local local_unnamed_addr global i32 0, align 4
@nfscl_dssameconn = dso_local local_unnamed_addr global i64 0, align 8
@NFSCLDS_SAMECONN = dso_local local_unnamed_addr global i32 0, align 4
@NFSDSP_NOTFOUND = dso_local local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [18 x i8] c"DS createsess=%d\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"add DS session\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @nfsrpc_fillsa], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @nfsrpc_fillsa(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, i32 noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
%11 = getelementptr inbounds %struct.nfsmount, ptr %0, i64 0, i32 1
%12 = load ptr, ptr %11, align 8, !tbaa !5
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = tail call i32 @KASSERT(i32 noundef %14, ptr noundef nonnull @.str) #3
%16 = tail call i32 (...) @NFSLOCKCLSTATE() #3
%17 = getelementptr inbounds %struct.nfsmount, ptr %0, i64 0, i32 2
%18 = load ptr, ptr %17, align 8, !tbaa !13
%19 = tail call i32 (...) @NFSUNLOCKCLSTATE() #3
%20 = icmp eq ptr %18, null
br i1 %20, label %21, label %23
21: ; preds = %7
%22 = load i32, ptr @EPERM, align 4, !tbaa !14
br label %287
23: ; preds = %7
%24 = load i64, ptr @AF_INET, align 8, !tbaa !15
%25 = icmp eq i64 %24, %3
br i1 %25, label %26, label %94
26: ; preds = %23
%27 = tail call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%28 = getelementptr inbounds %struct.nfsmount, ptr %0, i64 0, i32 1, i32 1
%29 = load i64, ptr %28, align 8, !tbaa !16
%30 = tail call ptr @TAILQ_FIRST(ptr noundef nonnull %0) #3
%31 = icmp eq ptr %30, null
br i1 %31, label %79, label %32
32: ; preds = %26
%33 = inttoptr i64 %29 to ptr
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i64 0, i32 3
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i64 0, i32 1
br label %36
36: ; preds = %74, %32
%37 = phi ptr [ %33, %32 ], [ %75, %74 ]
%38 = phi ptr [ %30, %32 ], [ %68, %74 ]
%39 = icmp eq ptr %37, null
br i1 %39, label %66, label %40
40: ; preds = %36
%41 = load i64, ptr %37, align 8, !tbaa !17
%42 = load i64, ptr @AF_INET, align 8, !tbaa !15
%43 = icmp eq i64 %41, %42
br i1 %43, label %44, label %66
44: ; preds = %40
%45 = load i64, ptr %34, align 8, !tbaa !20
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %37, i64 0, i32 3
%47 = load i64, ptr %46, align 8, !tbaa !20
%48 = icmp eq i64 %45, %47
br i1 %48, label %49, label %66
49: ; preds = %44
%50 = load i64, ptr %35, align 8, !tbaa !21
%51 = getelementptr inbounds %struct.sockaddr_in, ptr %37, i64 0, i32 1
%52 = load i64, ptr %51, align 8, !tbaa !21
%53 = icmp eq i64 %50, %52
br i1 %53, label %54, label %66
54: ; preds = %49
%55 = load i32, ptr %38, align 8, !tbaa !22
%56 = load i32, ptr @NFSCLDS_DS, align 4, !tbaa !14
%57 = and i32 %56, %55
%58 = icmp eq i32 %57, 0
br i1 %58, label %66, label %59
59: ; preds = %54
%60 = getelementptr inbounds %struct.nfsclds, ptr %38, i64 0, i32 1
%61 = load i64, ptr %60, align 8, !tbaa !25
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
store ptr %38, ptr %5, align 8, !tbaa !26
%64 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
%65 = tail call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 4, ptr noundef nonnull @.str.1) #3
br label %287
66: ; preds = %59, %54, %49, %44, %40, %36
%67 = load i32, ptr @nfsclds_list, align 4, !tbaa !14
%68 = tail call ptr @TAILQ_NEXT(ptr noundef nonnull %38, i32 noundef %67) #3
%69 = icmp eq ptr %68, null
br i1 %69, label %79, label %70
70: ; preds = %66
%71 = getelementptr inbounds %struct.nfsclds, ptr %68, i64 0, i32 2
%72 = load ptr, ptr %71, align 8, !tbaa !27
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %76
74: ; preds = %70, %76
%75 = phi ptr [ %78, %76 ], [ null, %70 ]
br label %36, !llvm.loop !28
76: ; preds = %70
%77 = getelementptr inbounds %struct.sockaddr, ptr %72, i64 0, i32 1
%78 = load ptr, ptr %77, align 8, !tbaa !30
br label %74
79: ; preds = %66, %26
store ptr null, ptr %9, align 8, !tbaa !26
%80 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
%81 = load i32, ptr @M_SONAME, align 4, !tbaa !14
%82 = load i32, ptr @M_WAITOK, align 4, !tbaa !14
%83 = load i32, ptr @M_ZERO, align 4, !tbaa !14
%84 = or i32 %83, %82
%85 = tail call ptr @malloc(i32 noundef 32, i32 noundef %81, i32 noundef %84) #3
%86 = getelementptr inbounds %struct.sockaddr_in, ptr %85, i64 0, i32 2
store i32 32, ptr %86, align 8, !tbaa !32
%87 = load i64, ptr @AF_INET, align 8, !tbaa !15
store i64 %87, ptr %85, align 8, !tbaa !17
%88 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i64 0, i32 1
%89 = load i64, ptr %88, align 8, !tbaa !21
%90 = getelementptr inbounds %struct.sockaddr_in, ptr %85, i64 0, i32 1
store i64 %89, ptr %90, align 8, !tbaa !21
%91 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i64 0, i32 3
%92 = load i64, ptr %91, align 8, !tbaa !20
%93 = getelementptr inbounds %struct.sockaddr_in, ptr %85, i64 0, i32 3
store i64 %92, ptr %93, align 8, !tbaa !20
br label %165
94: ; preds = %23
%95 = load i64, ptr @AF_INET6, align 8, !tbaa !15
%96 = icmp eq i64 %95, %3
br i1 %96, label %97, label %163
97: ; preds = %94
%98 = tail call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%99 = getelementptr inbounds %struct.nfsmount, ptr %0, i64 0, i32 1, i32 1
%100 = load i64, ptr %99, align 8, !tbaa !16
%101 = tail call ptr @TAILQ_FIRST(ptr noundef nonnull %0) #3
%102 = icmp eq ptr %101, null
br i1 %102, label %148, label %103
103: ; preds = %97
%104 = inttoptr i64 %100 to ptr
%105 = getelementptr inbounds %struct.sockaddr_in6, ptr %2, i64 0, i32 3
%106 = getelementptr inbounds %struct.sockaddr_in6, ptr %2, i64 0, i32 1
br label %107
107: ; preds = %143, %103
%108 = phi ptr [ %104, %103 ], [ %144, %143 ]
%109 = phi ptr [ %101, %103 ], [ %137, %143 ]
%110 = icmp eq ptr %108, null
br i1 %110, label %135, label %111
111: ; preds = %107
%112 = load i64, ptr %108, align 8, !tbaa !33
%113 = load i64, ptr @AF_INET6, align 8, !tbaa !15
%114 = icmp eq i64 %112, %113
br i1 %114, label %115, label %135
115: ; preds = %111
%116 = getelementptr inbounds %struct.sockaddr_in6, ptr %108, i64 0, i32 3
%117 = tail call i64 @IN6_ARE_ADDR_EQUAL(ptr noundef nonnull %105, ptr noundef nonnull %116) #3
%118 = icmp eq i64 %117, 0
br i1 %118, label %135, label %119
119: ; preds = %115
%120 = load i64, ptr %106, align 8, !tbaa !35
%121 = getelementptr inbounds %struct.sockaddr_in6, ptr %108, i64 0, i32 1
%122 = load i64, ptr %121, align 8, !tbaa !35
%123 = icmp eq i64 %120, %122
br i1 %123, label %124, label %135
124: ; preds = %119
%125 = load i32, ptr %109, align 8, !tbaa !22
%126 = load i32, ptr @NFSCLDS_DS, align 4, !tbaa !14
%127 = and i32 %126, %125
%128 = icmp eq i32 %127, 0
br i1 %128, label %135, label %129
129: ; preds = %124
%130 = getelementptr inbounds %struct.nfsclds, ptr %109, i64 0, i32 1
%131 = load i64, ptr %130, align 8, !tbaa !25
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %129
store ptr %109, ptr %5, align 8, !tbaa !26
%134 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
br label %287
135: ; preds = %129, %124, %119, %115, %111, %107
%136 = load i32, ptr @nfsclds_list, align 4, !tbaa !14
%137 = tail call ptr @TAILQ_NEXT(ptr noundef nonnull %109, i32 noundef %136) #3
%138 = icmp eq ptr %137, null
br i1 %138, label %148, label %139
139: ; preds = %135
%140 = getelementptr inbounds %struct.nfsclds, ptr %137, i64 0, i32 2
%141 = load ptr, ptr %140, align 8, !tbaa !27
%142 = icmp eq ptr %141, null
br i1 %142, label %143, label %145
143: ; preds = %139, %145
%144 = phi ptr [ %147, %145 ], [ null, %139 ]
br label %107, !llvm.loop !36
145: ; preds = %139
%146 = getelementptr inbounds %struct.sockaddr, ptr %141, i64 0, i32 1
%147 = load ptr, ptr %146, align 8, !tbaa !30
br label %143
148: ; preds = %135, %97
store ptr null, ptr %9, align 8, !tbaa !26
%149 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
%150 = load i32, ptr @M_SONAME, align 4, !tbaa !14
%151 = load i32, ptr @M_WAITOK, align 4, !tbaa !14
%152 = load i32, ptr @M_ZERO, align 4, !tbaa !14
%153 = or i32 %152, %151
%154 = tail call ptr @malloc(i32 noundef 24, i32 noundef %150, i32 noundef %153) #3
%155 = getelementptr inbounds %struct.sockaddr_in6, ptr %154, i64 0, i32 2
store i32 24, ptr %155, align 8, !tbaa !37
%156 = load i64, ptr @AF_INET6, align 8, !tbaa !15
store i64 %156, ptr %154, align 8, !tbaa !33
%157 = getelementptr inbounds %struct.sockaddr_in6, ptr %2, i64 0, i32 1
%158 = load i64, ptr %157, align 8, !tbaa !35
%159 = getelementptr inbounds %struct.sockaddr_in6, ptr %154, i64 0, i32 1
store i64 %158, ptr %159, align 8, !tbaa !35
%160 = getelementptr inbounds %struct.sockaddr_in6, ptr %2, i64 0, i32 3
%161 = getelementptr inbounds %struct.sockaddr_in6, ptr %154, i64 0, i32 3
%162 = tail call i32 @NFSBCOPY(ptr noundef nonnull %160, ptr noundef nonnull %161, i32 noundef 4) #3
br label %165
163: ; preds = %94
%164 = load i32, ptr @EPERM, align 4, !tbaa !14
br label %287
165: ; preds = %148, %79
%166 = phi ptr [ %154, %148 ], [ %85, %79 ]
%167 = load i32, ptr @M_NFSSOCKREQ, align 4, !tbaa !14
%168 = load i32, ptr @M_WAITOK, align 4, !tbaa !14
%169 = load i32, ptr @M_ZERO, align 4, !tbaa !14
%170 = or i32 %169, %168
%171 = tail call ptr @malloc(i32 noundef 32, i32 noundef %167, i32 noundef %170) #3
%172 = getelementptr inbounds %struct.nfssockreq, ptr %171, i64 0, i32 1
store ptr %166, ptr %172, align 8, !tbaa !38
%173 = load i32, ptr @SOCK_STREAM, align 4, !tbaa !14
%174 = getelementptr inbounds %struct.nfssockreq, ptr %171, i64 0, i32 5
store i32 %173, ptr %174, align 4, !tbaa !40
%175 = getelementptr inbounds %struct.nfssockreq, ptr %171, i64 0, i32 2
%176 = load i32, ptr @MTX_DEF, align 4, !tbaa !14
%177 = tail call i32 @mtx_init(ptr noundef nonnull %175, ptr noundef nonnull @.str.2, ptr noundef null, i32 noundef %176) #3
%178 = load i32, ptr @NFS_PROG, align 4, !tbaa !14
%179 = getelementptr inbounds %struct.nfssockreq, ptr %171, i64 0, i32 4
store i32 %178, ptr %179, align 8, !tbaa !41
store i32 %4, ptr %171, align 8, !tbaa !42
%180 = load ptr, ptr %11, align 8, !tbaa !5
%181 = tail call i32 @crhold(ptr noundef %180) #3
%182 = getelementptr inbounds %struct.nfssockreq, ptr %171, i64 0, i32 3
store i32 %181, ptr %182, align 4, !tbaa !43
%183 = tail call i32 @newnfs_connect(ptr noundef %0, ptr noundef nonnull %171, ptr noundef null, ptr noundef %6, i32 noundef 0) #3
%184 = tail call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.3, i32 noundef %183) #3
store ptr null, ptr %8, align 8, !tbaa !26
%185 = icmp eq i32 %183, 0
br i1 %185, label %186, label %251
186: ; preds = %165
%187 = load i32, ptr @NFS_VER4, align 4, !tbaa !14
%188 = icmp eq i32 %187, %4
br i1 %188, label %189, label %199
189: ; preds = %186
%190 = load i32, ptr @NFSV4EXCH_USEPNFSDS, align 4, !tbaa !14
%191 = load i32, ptr %182, align 4, !tbaa !43
%192 = call i32 @nfsrpc_exchangeid(ptr noundef nonnull %0, ptr noundef nonnull %18, ptr noundef nonnull %171, i32 noundef %190, ptr noundef nonnull %8, i32 noundef %191, ptr noundef %6) #3
%193 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.4, i32 noundef %192) #3
%194 = icmp eq i32 %192, 0
br i1 %194, label %195, label %197
195: ; preds = %189
%196 = load ptr, ptr %8, align 8, !tbaa !26
br label %216
197: ; preds = %189
%198 = call i32 @newnfs_disconnect(ptr noundef nonnull %171) #3
br label %251
199: ; preds = %186
%200 = load i32, ptr @M_NFSCLDS, align 4, !tbaa !14
%201 = load i32, ptr @M_WAITOK, align 4, !tbaa !14
%202 = load i32, ptr @M_ZERO, align 4, !tbaa !14
%203 = or i32 %202, %201
%204 = tail call ptr @malloc(i32 noundef 40, i32 noundef %200, i32 noundef %203) #3
store ptr %204, ptr %8, align 8, !tbaa !26
%205 = load i32, ptr @NFSCLDS_DS, align 4, !tbaa !14
%206 = load i32, ptr %204, align 8, !tbaa !22
%207 = or i32 %206, %205
store i32 %207, ptr %204, align 8, !tbaa !22
%208 = load i32, ptr @INT32_MAX, align 4, !tbaa !14
%209 = getelementptr inbounds %struct.nfsclds, ptr %204, i64 0, i32 4
store i32 %208, ptr %209, align 4, !tbaa !44
%210 = getelementptr inbounds %struct.nfsclds, ptr %204, i64 0, i32 3
%211 = load i32, ptr @MTX_DEF, align 4, !tbaa !14
%212 = tail call i32 @mtx_init(ptr noundef nonnull %210, ptr noundef nonnull @.str.5, ptr noundef null, i32 noundef %211) #3
%213 = getelementptr inbounds %struct.nfsclds, ptr %204, i64 0, i32 1, i32 2
%214 = load i32, ptr @MTX_DEF, align 4, !tbaa !14
%215 = tail call i32 @mtx_init(ptr noundef nonnull %213, ptr noundef nonnull @.str.6, ptr noundef null, i32 noundef %214) #3
br label %216
216: ; preds = %195, %199
%217 = phi ptr [ %196, %195 ], [ %204, %199 ]
%218 = getelementptr inbounds %struct.nfsclds, ptr %217, i64 0, i32 2
store ptr %171, ptr %218, align 8, !tbaa !27
%219 = load i32, ptr @NFS_VER4, align 4, !tbaa !14
%220 = icmp eq i32 %219, %4
br i1 %220, label %221, label %271
221: ; preds = %216
%222 = call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%223 = load ptr, ptr %8, align 8, !tbaa !26
%224 = call i32 @nfscl_getsameserver(ptr noundef nonnull %0, ptr noundef %223, ptr noundef nonnull %9, ptr noundef nonnull %10) #3
%225 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.7, i32 noundef %224) #3
%226 = load i32, ptr @NFSDSP_USETHISSESSION, align 4, !tbaa !14
%227 = icmp eq i32 %224, %226
%228 = load i64, ptr @nfscl_dssameconn, align 8
%229 = icmp ne i64 %228, 0
%230 = select i1 %227, i1 %229, i1 false
br i1 %230, label %231, label %244
231: ; preds = %221
%232 = load ptr, ptr %9, align 8, !tbaa !26
%233 = call i32 @NFSLOCKDS(ptr noundef %232) #3
%234 = load i32, ptr @NFSCLDS_SAMECONN, align 4, !tbaa !14
%235 = load ptr, ptr %9, align 8, !tbaa !26
%236 = load i32, ptr %235, align 8, !tbaa !22
%237 = or i32 %236, %234
store i32 %237, ptr %235, align 8, !tbaa !22
%238 = call i32 @NFSUNLOCKDS(ptr noundef nonnull %235) #3
%239 = call i32 @NFSUNLOCKMNT(ptr noundef nonnull %0) #3
%240 = call i32 @newnfs_disconnect(ptr noundef nonnull %171) #3
%241 = load ptr, ptr %8, align 8, !tbaa !26
%242 = call i32 @nfscl_freenfsclds(ptr noundef %241) #3
%243 = load ptr, ptr %9, align 8, !tbaa !26
store ptr %243, ptr %5, align 8, !tbaa !26
br label %287
244: ; preds = %221
%245 = load i32, ptr @NFSDSP_NOTFOUND, align 4, !tbaa !14
%246 = icmp eq i32 %224, %245
br i1 %246, label %247, label %262
247: ; preds = %244
%248 = load ptr, ptr %8, align 8, !tbaa !26
%249 = getelementptr inbounds %struct.nfsclds, ptr %248, i64 0, i32 1, i32 1
%250 = load i32, ptr %249, align 8, !tbaa !45
store i32 %250, ptr %10, align 4, !tbaa !14
br label %262
251: ; preds = %197, %165
%252 = phi i32 [ %192, %197 ], [ %183, %165 ]
%253 = load i32, ptr %182, align 4, !tbaa !43
%254 = call i32 @NFSFREECRED(i32 noundef %253) #3
%255 = call i32 @NFSFREEMUTEX(ptr noundef nonnull %175) #3
%256 = getelementptr inbounds %struct.nfssockreq, ptr %171, i64 0, i32 1
%257 = load ptr, ptr %256, align 8, !tbaa !38
%258 = load i32, ptr @M_SONAME, align 4, !tbaa !14
%259 = call i32 @free(ptr noundef %257, i32 noundef %258) #3
%260 = load i32, ptr @M_NFSSOCKREQ, align 4, !tbaa !14
%261 = call i32 @free(ptr noundef nonnull %171, i32 noundef %260) #3
br label %279
262: ; preds = %244, %247
%263 = call i32 @NFSUNLOCKMNT(ptr noundef nonnull %0) #3
%264 = load ptr, ptr %8, align 8, !tbaa !26
%265 = getelementptr inbounds %struct.nfsclds, ptr %264, i64 0, i32 1
%266 = load i32, ptr %10, align 4, !tbaa !14
%267 = load i32, ptr %182, align 4, !tbaa !43
%268 = call i32 @nfsrpc_createsession(ptr noundef nonnull %0, ptr noundef nonnull %265, ptr noundef nonnull %171, i32 noundef %266, i32 noundef 0, i32 noundef %267, ptr noundef %6) #3
%269 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.8, i32 noundef %268) #3
%270 = icmp eq i32 %268, 0
br i1 %270, label %271, label %279
271: ; preds = %216, %262
%272 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.9) #3
%273 = call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%274 = load ptr, ptr %8, align 8, !tbaa !26
%275 = load i32, ptr @nfsclds_list, align 4, !tbaa !14
%276 = call i32 @TAILQ_INSERT_TAIL(ptr noundef nonnull %0, ptr noundef %274, i32 noundef %275) #3
%277 = call i32 @NFSUNLOCKMNT(ptr noundef nonnull %0) #3
%278 = load ptr, ptr %8, align 8, !tbaa !26
store ptr %278, ptr %5, align 8, !tbaa !26
br label %287
279: ; preds = %251, %262
%280 = phi i32 [ %252, %251 ], [ %268, %262 ]
%281 = load ptr, ptr %8, align 8, !tbaa !26
%282 = icmp eq ptr %281, null
br i1 %282, label %287, label %283
283: ; preds = %279
%284 = call i32 @newnfs_disconnect(ptr noundef nonnull %171) #3
%285 = load ptr, ptr %8, align 8, !tbaa !26
%286 = call i32 @nfscl_freenfsclds(ptr noundef %285) #3
br label %287
287: ; preds = %271, %283, %279, %231, %163, %133, %63, %21
%288 = phi i32 [ %22, %21 ], [ 0, %63 ], [ 0, %231 ], [ 0, %133 ], [ %164, %163 ], [ %280, %279 ], [ %280, %283 ], [ 0, %271 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
ret i32 %288
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @KASSERT(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSLOCKCLSTATE(...) local_unnamed_addr #2
declare i32 @NFSUNLOCKCLSTATE(...) local_unnamed_addr #2
declare i32 @NFSLOCKMNT(ptr noundef) local_unnamed_addr #2
declare ptr @TAILQ_FIRST(ptr noundef) local_unnamed_addr #2
declare i32 @NFSUNLOCKMNT(ptr noundef) local_unnamed_addr #2
declare i32 @NFSCL_DEBUG(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare ptr @TAILQ_NEXT(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @IN6_ARE_ADDR_EQUAL(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSBCOPY(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mtx_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @crhold(ptr noundef) local_unnamed_addr #2
declare i32 @newnfs_connect(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nfsrpc_exchangeid(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @newnfs_disconnect(ptr noundef) local_unnamed_addr #2
declare i32 @nfscl_getsameserver(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSLOCKDS(ptr noundef) local_unnamed_addr #2
declare i32 @NFSUNLOCKDS(ptr noundef) local_unnamed_addr #2
declare i32 @nfscl_freenfsclds(ptr noundef) local_unnamed_addr #2
declare i32 @nfsrpc_createsession(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSFREECRED(i32 noundef) local_unnamed_addr #2
declare i32 @NFSFREEMUTEX(ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @TAILQ_INSERT_TAIL(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, !11, i64 8}
!6 = !{!"nfsmount", !7, i64 0, !10, i64 8, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_5__", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 24}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!6, !12, i64 16}
!17 = !{!18, !12, i64 0}
!18 = !{!"sockaddr_in", !12, i64 0, !12, i64 8, !7, i64 16, !19, i64 24}
!19 = !{!"TYPE_4__", !12, i64 0}
!20 = !{!18, !12, i64 24}
!21 = !{!18, !12, i64 8}
!22 = !{!23, !7, i64 0}
!23 = !{!"nfsclds", !7, i64 0, !24, i64 8, !11, i64 24, !7, i64 32, !7, i64 36}
!24 = !{!"TYPE_6__", !12, i64 0, !7, i64 8, !7, i64 12}
!25 = !{!23, !12, i64 8}
!26 = !{!11, !11, i64 0}
!27 = !{!23, !11, i64 24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !11, i64 8}
!31 = !{!"sockaddr", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!32 = !{!18, !7, i64 16}
!33 = !{!34, !12, i64 0}
!34 = !{!"sockaddr_in6", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 20}
!35 = !{!34, !12, i64 8}
!36 = distinct !{!36, !29}
!37 = !{!34, !7, i64 16}
!38 = !{!39, !11, i64 8}
!39 = !{!"nfssockreq", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!40 = !{!39, !7, i64 28}
!41 = !{!39, !7, i64 24}
!42 = !{!39, !7, i64 0}
!43 = !{!39, !7, i64 20}
!44 = !{!23, !7, i64 36}
!45 = !{!23, !7, i64 16}
| ; ModuleID = 'AnghaBench/freebsd/sys/fs/nfsclient/extr_nfs_clrpcops.c_nfsrpc_fillsa.c'
source_filename = "AnghaBench/freebsd/sys/fs/nfsclient/extr_nfs_clrpcops.c_nfsrpc_fillsa.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [28 x i8] c"nfsrpc_fillsa: NULL nr_cred\00", align 1
@EPERM = common local_unnamed_addr global i32 0, align 4
@AF_INET = common local_unnamed_addr global i64 0, align 8
@NFSCLDS_DS = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"fnd same addr\0A\00", align 1
@nfsclds_list = common local_unnamed_addr global i32 0, align 4
@M_SONAME = common local_unnamed_addr global i32 0, align 4
@M_WAITOK = common local_unnamed_addr global i32 0, align 4
@M_ZERO = common local_unnamed_addr global i32 0, align 4
@M_NFSSOCKREQ = common local_unnamed_addr global i32 0, align 4
@AF_INET6 = common local_unnamed_addr global i64 0, align 8
@SOCK_STREAM = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [8 x i8] c"nfssock\00", align 1
@MTX_DEF = common local_unnamed_addr global i32 0, align 4
@NFS_PROG = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [15 x i8] c"DS connect=%d\0A\00", align 1
@NFS_VER4 = common local_unnamed_addr global i32 0, align 4
@NFSV4EXCH_USEPNFSDS = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"DS exchangeid=%d\0A\00", align 1
@M_NFSCLDS = common local_unnamed_addr global i32 0, align 4
@INT32_MAX = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [6 x i8] c"nfsds\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"nfssession\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"getsame ret=%d\0A\00", align 1
@NFSDSP_USETHISSESSION = common local_unnamed_addr global i32 0, align 4
@nfscl_dssameconn = common local_unnamed_addr global i64 0, align 8
@NFSCLDS_SAMECONN = common local_unnamed_addr global i32 0, align 4
@NFSDSP_NOTFOUND = common local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [18 x i8] c"DS createsess=%d\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"add DS session\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @nfsrpc_fillsa], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @nfsrpc_fillsa(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, i32 noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !6
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = tail call i32 @KASSERT(i32 noundef %14, ptr noundef nonnull @.str) #3
%16 = tail call i32 @NFSLOCKCLSTATE() #3
%17 = getelementptr inbounds i8, ptr %0, i64 24
%18 = load ptr, ptr %17, align 8, !tbaa !14
%19 = tail call i32 @NFSUNLOCKCLSTATE() #3
%20 = icmp eq ptr %18, null
br i1 %20, label %21, label %23
21: ; preds = %7
%22 = load i32, ptr @EPERM, align 4, !tbaa !15
br label %286
23: ; preds = %7
%24 = load i64, ptr @AF_INET, align 8, !tbaa !16
%25 = icmp eq i64 %24, %3
br i1 %25, label %26, label %94
26: ; preds = %23
%27 = tail call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%28 = getelementptr inbounds i8, ptr %0, i64 16
%29 = load i64, ptr %28, align 8, !tbaa !17
%30 = tail call ptr @TAILQ_FIRST(ptr noundef nonnull %0) #3
%31 = icmp eq ptr %30, null
br i1 %31, label %79, label %32
32: ; preds = %26
%33 = inttoptr i64 %29 to ptr
%34 = getelementptr inbounds i8, ptr %1, i64 24
%35 = getelementptr inbounds i8, ptr %1, i64 8
br label %36
36: ; preds = %74, %32
%37 = phi ptr [ %33, %32 ], [ %75, %74 ]
%38 = phi ptr [ %30, %32 ], [ %68, %74 ]
%39 = icmp eq ptr %37, null
br i1 %39, label %66, label %40
40: ; preds = %36
%41 = load i64, ptr %37, align 8, !tbaa !18
%42 = load i64, ptr @AF_INET, align 8, !tbaa !16
%43 = icmp eq i64 %41, %42
br i1 %43, label %44, label %66
44: ; preds = %40
%45 = load i64, ptr %34, align 8, !tbaa !21
%46 = getelementptr inbounds i8, ptr %37, i64 24
%47 = load i64, ptr %46, align 8, !tbaa !21
%48 = icmp eq i64 %45, %47
br i1 %48, label %49, label %66
49: ; preds = %44
%50 = load i64, ptr %35, align 8, !tbaa !22
%51 = getelementptr inbounds i8, ptr %37, i64 8
%52 = load i64, ptr %51, align 8, !tbaa !22
%53 = icmp eq i64 %50, %52
br i1 %53, label %54, label %66
54: ; preds = %49
%55 = load i32, ptr %38, align 8, !tbaa !23
%56 = load i32, ptr @NFSCLDS_DS, align 4, !tbaa !15
%57 = and i32 %56, %55
%58 = icmp eq i32 %57, 0
br i1 %58, label %66, label %59
59: ; preds = %54
%60 = getelementptr inbounds i8, ptr %38, i64 8
%61 = load i64, ptr %60, align 8, !tbaa !26
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
store ptr %38, ptr %5, align 8, !tbaa !27
%64 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
%65 = tail call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 4, ptr noundef nonnull @.str.1) #3
br label %286
66: ; preds = %59, %54, %49, %44, %40, %36
%67 = load i32, ptr @nfsclds_list, align 4, !tbaa !15
%68 = tail call ptr @TAILQ_NEXT(ptr noundef nonnull %38, i32 noundef %67) #3
%69 = icmp eq ptr %68, null
br i1 %69, label %79, label %70
70: ; preds = %66
%71 = getelementptr inbounds i8, ptr %68, i64 24
%72 = load ptr, ptr %71, align 8, !tbaa !28
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %76
74: ; preds = %70, %76
%75 = phi ptr [ %78, %76 ], [ null, %70 ]
br label %36, !llvm.loop !29
76: ; preds = %70
%77 = getelementptr inbounds i8, ptr %72, i64 8
%78 = load ptr, ptr %77, align 8, !tbaa !31
br label %74
79: ; preds = %66, %26
store ptr null, ptr %9, align 8, !tbaa !27
%80 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
%81 = load i32, ptr @M_SONAME, align 4, !tbaa !15
%82 = load i32, ptr @M_WAITOK, align 4, !tbaa !15
%83 = load i32, ptr @M_ZERO, align 4, !tbaa !15
%84 = or i32 %83, %82
%85 = tail call ptr @malloc(i32 noundef 32, i32 noundef %81, i32 noundef %84) #3
%86 = getelementptr inbounds i8, ptr %85, i64 16
store i32 32, ptr %86, align 8, !tbaa !33
%87 = load i64, ptr @AF_INET, align 8, !tbaa !16
store i64 %87, ptr %85, align 8, !tbaa !18
%88 = getelementptr inbounds i8, ptr %1, i64 8
%89 = load i64, ptr %88, align 8, !tbaa !22
%90 = getelementptr inbounds i8, ptr %85, i64 8
store i64 %89, ptr %90, align 8, !tbaa !22
%91 = getelementptr inbounds i8, ptr %1, i64 24
%92 = load i64, ptr %91, align 8, !tbaa !21
%93 = getelementptr inbounds i8, ptr %85, i64 24
store i64 %92, ptr %93, align 8, !tbaa !21
br label %165
94: ; preds = %23
%95 = load i64, ptr @AF_INET6, align 8, !tbaa !16
%96 = icmp eq i64 %95, %3
br i1 %96, label %97, label %163
97: ; preds = %94
%98 = tail call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%99 = getelementptr inbounds i8, ptr %0, i64 16
%100 = load i64, ptr %99, align 8, !tbaa !17
%101 = tail call ptr @TAILQ_FIRST(ptr noundef nonnull %0) #3
%102 = icmp eq ptr %101, null
br i1 %102, label %148, label %103
103: ; preds = %97
%104 = inttoptr i64 %100 to ptr
%105 = getelementptr inbounds i8, ptr %2, i64 20
%106 = getelementptr inbounds i8, ptr %2, i64 8
br label %107
107: ; preds = %143, %103
%108 = phi ptr [ %104, %103 ], [ %144, %143 ]
%109 = phi ptr [ %101, %103 ], [ %137, %143 ]
%110 = icmp eq ptr %108, null
br i1 %110, label %135, label %111
111: ; preds = %107
%112 = load i64, ptr %108, align 8, !tbaa !34
%113 = load i64, ptr @AF_INET6, align 8, !tbaa !16
%114 = icmp eq i64 %112, %113
br i1 %114, label %115, label %135
115: ; preds = %111
%116 = getelementptr inbounds i8, ptr %108, i64 20
%117 = tail call i64 @IN6_ARE_ADDR_EQUAL(ptr noundef nonnull %105, ptr noundef nonnull %116) #3
%118 = icmp eq i64 %117, 0
br i1 %118, label %135, label %119
119: ; preds = %115
%120 = load i64, ptr %106, align 8, !tbaa !36
%121 = getelementptr inbounds i8, ptr %108, i64 8
%122 = load i64, ptr %121, align 8, !tbaa !36
%123 = icmp eq i64 %120, %122
br i1 %123, label %124, label %135
124: ; preds = %119
%125 = load i32, ptr %109, align 8, !tbaa !23
%126 = load i32, ptr @NFSCLDS_DS, align 4, !tbaa !15
%127 = and i32 %126, %125
%128 = icmp eq i32 %127, 0
br i1 %128, label %135, label %129
129: ; preds = %124
%130 = getelementptr inbounds i8, ptr %109, i64 8
%131 = load i64, ptr %130, align 8, !tbaa !26
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %129
store ptr %109, ptr %5, align 8, !tbaa !27
%134 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
br label %286
135: ; preds = %129, %124, %119, %115, %111, %107
%136 = load i32, ptr @nfsclds_list, align 4, !tbaa !15
%137 = tail call ptr @TAILQ_NEXT(ptr noundef nonnull %109, i32 noundef %136) #3
%138 = icmp eq ptr %137, null
br i1 %138, label %148, label %139
139: ; preds = %135
%140 = getelementptr inbounds i8, ptr %137, i64 24
%141 = load ptr, ptr %140, align 8, !tbaa !28
%142 = icmp eq ptr %141, null
br i1 %142, label %143, label %145
143: ; preds = %139, %145
%144 = phi ptr [ %147, %145 ], [ null, %139 ]
br label %107, !llvm.loop !37
145: ; preds = %139
%146 = getelementptr inbounds i8, ptr %141, i64 8
%147 = load ptr, ptr %146, align 8, !tbaa !31
br label %143
148: ; preds = %135, %97
store ptr null, ptr %9, align 8, !tbaa !27
%149 = tail call i32 @NFSUNLOCKMNT(ptr noundef %0) #3
%150 = load i32, ptr @M_SONAME, align 4, !tbaa !15
%151 = load i32, ptr @M_WAITOK, align 4, !tbaa !15
%152 = load i32, ptr @M_ZERO, align 4, !tbaa !15
%153 = or i32 %152, %151
%154 = tail call ptr @malloc(i32 noundef 24, i32 noundef %150, i32 noundef %153) #3
%155 = getelementptr inbounds i8, ptr %154, i64 16
store i32 24, ptr %155, align 8, !tbaa !38
%156 = load i64, ptr @AF_INET6, align 8, !tbaa !16
store i64 %156, ptr %154, align 8, !tbaa !34
%157 = getelementptr inbounds i8, ptr %2, i64 8
%158 = load i64, ptr %157, align 8, !tbaa !36
%159 = getelementptr inbounds i8, ptr %154, i64 8
store i64 %158, ptr %159, align 8, !tbaa !36
%160 = getelementptr inbounds i8, ptr %2, i64 20
%161 = getelementptr inbounds i8, ptr %154, i64 20
%162 = tail call i32 @NFSBCOPY(ptr noundef nonnull %160, ptr noundef nonnull %161, i32 noundef 4) #3
br label %165
163: ; preds = %94
%164 = load i32, ptr @EPERM, align 4, !tbaa !15
br label %286
165: ; preds = %148, %79
%166 = phi ptr [ %154, %148 ], [ %85, %79 ]
%167 = load i32, ptr @M_NFSSOCKREQ, align 4, !tbaa !15
%168 = load i32, ptr @M_WAITOK, align 4, !tbaa !15
%169 = load i32, ptr @M_ZERO, align 4, !tbaa !15
%170 = or i32 %169, %168
%171 = tail call ptr @malloc(i32 noundef 32, i32 noundef %167, i32 noundef %170) #3
%172 = getelementptr inbounds i8, ptr %171, i64 8
store ptr %166, ptr %172, align 8, !tbaa !39
%173 = load i32, ptr @SOCK_STREAM, align 4, !tbaa !15
%174 = getelementptr inbounds i8, ptr %171, i64 28
store i32 %173, ptr %174, align 4, !tbaa !41
%175 = getelementptr inbounds i8, ptr %171, i64 16
%176 = load i32, ptr @MTX_DEF, align 4, !tbaa !15
%177 = tail call i32 @mtx_init(ptr noundef nonnull %175, ptr noundef nonnull @.str.2, ptr noundef null, i32 noundef %176) #3
%178 = load i32, ptr @NFS_PROG, align 4, !tbaa !15
%179 = getelementptr inbounds i8, ptr %171, i64 24
store i32 %178, ptr %179, align 8, !tbaa !42
store i32 %4, ptr %171, align 8, !tbaa !43
%180 = load ptr, ptr %11, align 8, !tbaa !6
%181 = tail call i32 @crhold(ptr noundef %180) #3
%182 = getelementptr inbounds i8, ptr %171, i64 20
store i32 %181, ptr %182, align 4, !tbaa !44
%183 = tail call i32 @newnfs_connect(ptr noundef %0, ptr noundef nonnull %171, ptr noundef null, ptr noundef %6, i32 noundef 0) #3
%184 = tail call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.3, i32 noundef %183) #3
store ptr null, ptr %8, align 8, !tbaa !27
%185 = icmp eq i32 %183, 0
br i1 %185, label %186, label %251
186: ; preds = %165
%187 = load i32, ptr @NFS_VER4, align 4, !tbaa !15
%188 = icmp eq i32 %187, %4
br i1 %188, label %189, label %199
189: ; preds = %186
%190 = load i32, ptr @NFSV4EXCH_USEPNFSDS, align 4, !tbaa !15
%191 = load i32, ptr %182, align 4, !tbaa !44
%192 = call i32 @nfsrpc_exchangeid(ptr noundef nonnull %0, ptr noundef nonnull %18, ptr noundef nonnull %171, i32 noundef %190, ptr noundef nonnull %8, i32 noundef %191, ptr noundef %6) #3
%193 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.4, i32 noundef %192) #3
%194 = icmp eq i32 %192, 0
br i1 %194, label %195, label %197
195: ; preds = %189
%196 = load ptr, ptr %8, align 8, !tbaa !27
br label %216
197: ; preds = %189
%198 = call i32 @newnfs_disconnect(ptr noundef nonnull %171) #3
br label %251
199: ; preds = %186
%200 = load i32, ptr @M_NFSCLDS, align 4, !tbaa !15
%201 = load i32, ptr @M_WAITOK, align 4, !tbaa !15
%202 = load i32, ptr @M_ZERO, align 4, !tbaa !15
%203 = or i32 %202, %201
%204 = tail call ptr @malloc(i32 noundef 40, i32 noundef %200, i32 noundef %203) #3
store ptr %204, ptr %8, align 8, !tbaa !27
%205 = load i32, ptr @NFSCLDS_DS, align 4, !tbaa !15
%206 = load i32, ptr %204, align 8, !tbaa !23
%207 = or i32 %206, %205
store i32 %207, ptr %204, align 8, !tbaa !23
%208 = load i32, ptr @INT32_MAX, align 4, !tbaa !15
%209 = getelementptr inbounds i8, ptr %204, i64 36
store i32 %208, ptr %209, align 4, !tbaa !45
%210 = getelementptr inbounds i8, ptr %204, i64 32
%211 = load i32, ptr @MTX_DEF, align 4, !tbaa !15
%212 = tail call i32 @mtx_init(ptr noundef nonnull %210, ptr noundef nonnull @.str.5, ptr noundef null, i32 noundef %211) #3
%213 = getelementptr inbounds i8, ptr %204, i64 20
%214 = load i32, ptr @MTX_DEF, align 4, !tbaa !15
%215 = tail call i32 @mtx_init(ptr noundef nonnull %213, ptr noundef nonnull @.str.6, ptr noundef null, i32 noundef %214) #3
br label %216
216: ; preds = %195, %199
%217 = phi ptr [ %196, %195 ], [ %204, %199 ]
%218 = getelementptr inbounds i8, ptr %217, i64 24
store ptr %171, ptr %218, align 8, !tbaa !28
%219 = load i32, ptr @NFS_VER4, align 4, !tbaa !15
%220 = icmp eq i32 %219, %4
br i1 %220, label %221, label %270
221: ; preds = %216
%222 = call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%223 = load ptr, ptr %8, align 8, !tbaa !27
%224 = call i32 @nfscl_getsameserver(ptr noundef nonnull %0, ptr noundef %223, ptr noundef nonnull %9, ptr noundef nonnull %10) #3
%225 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.7, i32 noundef %224) #3
%226 = load i32, ptr @NFSDSP_USETHISSESSION, align 4, !tbaa !15
%227 = icmp eq i32 %224, %226
%228 = load i64, ptr @nfscl_dssameconn, align 8
%229 = icmp ne i64 %228, 0
%230 = select i1 %227, i1 %229, i1 false
br i1 %230, label %231, label %244
231: ; preds = %221
%232 = load ptr, ptr %9, align 8, !tbaa !27
%233 = call i32 @NFSLOCKDS(ptr noundef %232) #3
%234 = load i32, ptr @NFSCLDS_SAMECONN, align 4, !tbaa !15
%235 = load ptr, ptr %9, align 8, !tbaa !27
%236 = load i32, ptr %235, align 8, !tbaa !23
%237 = or i32 %236, %234
store i32 %237, ptr %235, align 8, !tbaa !23
%238 = call i32 @NFSUNLOCKDS(ptr noundef nonnull %235) #3
%239 = call i32 @NFSUNLOCKMNT(ptr noundef nonnull %0) #3
%240 = call i32 @newnfs_disconnect(ptr noundef nonnull %171) #3
%241 = load ptr, ptr %8, align 8, !tbaa !27
%242 = call i32 @nfscl_freenfsclds(ptr noundef %241) #3
%243 = load ptr, ptr %9, align 8, !tbaa !27
store ptr %243, ptr %5, align 8, !tbaa !27
br label %286
244: ; preds = %221
%245 = load i32, ptr @NFSDSP_NOTFOUND, align 4, !tbaa !15
%246 = icmp eq i32 %224, %245
br i1 %246, label %247, label %261
247: ; preds = %244
%248 = load ptr, ptr %8, align 8, !tbaa !27
%249 = getelementptr inbounds i8, ptr %248, i64 16
%250 = load i32, ptr %249, align 8, !tbaa !46
store i32 %250, ptr %10, align 4, !tbaa !15
br label %261
251: ; preds = %197, %165
%252 = phi i32 [ %192, %197 ], [ %183, %165 ]
%253 = load i32, ptr %182, align 4, !tbaa !44
%254 = call i32 @NFSFREECRED(i32 noundef %253) #3
%255 = call i32 @NFSFREEMUTEX(ptr noundef nonnull %175) #3
%256 = load ptr, ptr %172, align 8, !tbaa !39
%257 = load i32, ptr @M_SONAME, align 4, !tbaa !15
%258 = call i32 @free(ptr noundef %256, i32 noundef %257) #3
%259 = load i32, ptr @M_NFSSOCKREQ, align 4, !tbaa !15
%260 = call i32 @free(ptr noundef nonnull %171, i32 noundef %259) #3
br label %278
261: ; preds = %244, %247
%262 = call i32 @NFSUNLOCKMNT(ptr noundef nonnull %0) #3
%263 = load ptr, ptr %8, align 8, !tbaa !27
%264 = getelementptr inbounds i8, ptr %263, i64 8
%265 = load i32, ptr %10, align 4, !tbaa !15
%266 = load i32, ptr %182, align 4, !tbaa !44
%267 = call i32 @nfsrpc_createsession(ptr noundef nonnull %0, ptr noundef nonnull %264, ptr noundef nonnull %171, i32 noundef %265, i32 noundef 0, i32 noundef %266, ptr noundef %6) #3
%268 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.8, i32 noundef %267) #3
%269 = icmp eq i32 %267, 0
br i1 %269, label %270, label %278
270: ; preds = %216, %261
%271 = call i32 (i32, ptr, ...) @NFSCL_DEBUG(i32 noundef 3, ptr noundef nonnull @.str.9) #3
%272 = call i32 @NFSLOCKMNT(ptr noundef nonnull %0) #3
%273 = load ptr, ptr %8, align 8, !tbaa !27
%274 = load i32, ptr @nfsclds_list, align 4, !tbaa !15
%275 = call i32 @TAILQ_INSERT_TAIL(ptr noundef nonnull %0, ptr noundef %273, i32 noundef %274) #3
%276 = call i32 @NFSUNLOCKMNT(ptr noundef nonnull %0) #3
%277 = load ptr, ptr %8, align 8, !tbaa !27
store ptr %277, ptr %5, align 8, !tbaa !27
br label %286
278: ; preds = %251, %261
%279 = phi i32 [ %252, %251 ], [ %267, %261 ]
%280 = load ptr, ptr %8, align 8, !tbaa !27
%281 = icmp eq ptr %280, null
br i1 %281, label %286, label %282
282: ; preds = %278
%283 = call i32 @newnfs_disconnect(ptr noundef nonnull %171) #3
%284 = load ptr, ptr %8, align 8, !tbaa !27
%285 = call i32 @nfscl_freenfsclds(ptr noundef %284) #3
br label %286
286: ; preds = %270, %282, %278, %231, %163, %133, %63, %21
%287 = phi i32 [ %22, %21 ], [ 0, %63 ], [ 0, %231 ], [ 0, %133 ], [ %164, %163 ], [ %279, %278 ], [ %279, %282 ], [ 0, %270 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
ret i32 %287
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @KASSERT(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSLOCKCLSTATE(...) local_unnamed_addr #2
declare i32 @NFSUNLOCKCLSTATE(...) local_unnamed_addr #2
declare i32 @NFSLOCKMNT(ptr noundef) local_unnamed_addr #2
declare ptr @TAILQ_FIRST(ptr noundef) local_unnamed_addr #2
declare i32 @NFSUNLOCKMNT(ptr noundef) local_unnamed_addr #2
declare i32 @NFSCL_DEBUG(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare ptr @TAILQ_NEXT(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @IN6_ARE_ADDR_EQUAL(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSBCOPY(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mtx_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @crhold(ptr noundef) local_unnamed_addr #2
declare i32 @newnfs_connect(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nfsrpc_exchangeid(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @newnfs_disconnect(ptr noundef) local_unnamed_addr #2
declare i32 @nfscl_getsameserver(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSLOCKDS(ptr noundef) local_unnamed_addr #2
declare i32 @NFSUNLOCKDS(ptr noundef) local_unnamed_addr #2
declare i32 @nfscl_freenfsclds(ptr noundef) local_unnamed_addr #2
declare i32 @nfsrpc_createsession(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @NFSFREECRED(i32 noundef) local_unnamed_addr #2
declare i32 @NFSFREEMUTEX(ptr noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @TAILQ_INSERT_TAIL(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, !12, i64 8}
!7 = !{!"nfsmount", !8, i64 0, !11, i64 8, !12, i64 24}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_5__", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!7, !12, i64 24}
!15 = !{!8, !8, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!7, !13, i64 16}
!18 = !{!19, !13, i64 0}
!19 = !{!"sockaddr_in", !13, i64 0, !13, i64 8, !8, i64 16, !20, i64 24}
!20 = !{!"TYPE_4__", !13, i64 0}
!21 = !{!19, !13, i64 24}
!22 = !{!19, !13, i64 8}
!23 = !{!24, !8, i64 0}
!24 = !{!"nfsclds", !8, i64 0, !25, i64 8, !12, i64 24, !8, i64 32, !8, i64 36}
!25 = !{!"TYPE_6__", !13, i64 0, !8, i64 8, !8, i64 12}
!26 = !{!24, !13, i64 8}
!27 = !{!12, !12, i64 0}
!28 = !{!24, !12, i64 24}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!32, !12, i64 8}
!32 = !{!"sockaddr", !8, i64 0, !12, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!33 = !{!19, !8, i64 16}
!34 = !{!35, !13, i64 0}
!35 = !{!"sockaddr_in6", !13, i64 0, !13, i64 8, !8, i64 16, !8, i64 20}
!36 = !{!35, !13, i64 8}
!37 = distinct !{!37, !30}
!38 = !{!35, !8, i64 16}
!39 = !{!40, !12, i64 8}
!40 = !{!"nfssockreq", !8, i64 0, !12, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!41 = !{!40, !8, i64 28}
!42 = !{!40, !8, i64 24}
!43 = !{!40, !8, i64 0}
!44 = !{!40, !8, i64 20}
!45 = !{!24, !8, i64 36}
!46 = !{!24, !8, i64 16}
| freebsd_sys_fs_nfsclient_extr_nfs_clrpcops.c_nfsrpc_fillsa |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/powerpc/kernel/extr_rtas_flash.c_manage_flash.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/powerpc/kernel/extr_rtas_flash.c_manage_flash.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.rtas_manage_flash_t = type { i32, i32 }
@.str = private unnamed_addr constant [23 x i8] c"ibm,manage-flash-image\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @manage_flash], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @manage_flash(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds %struct.rtas_manage_flash_t, ptr %0, i64 0, i32 1
br label %3
3: ; preds = %3, %1
%4 = tail call i32 @rtas_token(ptr noundef nonnull @.str) #2
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = tail call i32 @rtas_call(i32 noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef null, i32 noundef %5) #2
%7 = tail call i64 @rtas_busy_delay(i32 noundef %6) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %3, !llvm.loop !10
9: ; preds = %3
store i32 %6, ptr %0, align 4, !tbaa !12
ret void
}
declare i32 @rtas_call(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rtas_token(ptr noundef) local_unnamed_addr #1
declare i64 @rtas_busy_delay(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"rtas_manage_flash_t", !7, i64 0, !7, i64 4}
!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 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/powerpc/kernel/extr_rtas_flash.c_manage_flash.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/powerpc/kernel/extr_rtas_flash.c_manage_flash.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 [23 x i8] c"ibm,manage-flash-image\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @manage_flash], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @manage_flash(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
br label %3
3: ; preds = %3, %1
%4 = tail call i32 @rtas_token(ptr noundef nonnull @.str) #2
%5 = load i32, ptr %2, align 4, !tbaa !6
%6 = tail call i32 @rtas_call(i32 noundef %4, i32 noundef 1, i32 noundef 1, ptr noundef null, i32 noundef %5) #2
%7 = tail call i64 @rtas_busy_delay(i32 noundef %6) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %3, !llvm.loop !11
9: ; preds = %3
store i32 %6, ptr %0, align 4, !tbaa !13
ret void
}
declare i32 @rtas_call(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rtas_token(ptr noundef) local_unnamed_addr #1
declare i64 @rtas_busy_delay(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"rtas_manage_flash_t", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !8, i64 0}
| fastsocket_kernel_arch_powerpc_kernel_extr_rtas_flash.c_manage_flash |
; ModuleID = 'AnghaBench/freebsd/contrib/openbsm/test/bsm/extr_generate.c_generate_arg32_record.c'
source_filename = "AnghaBench/freebsd/contrib/openbsm/test/bsm/extr_generate.c_generate_arg32_record.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"
@arg32_token_n = dso_local local_unnamed_addr global i32 0, align 4
@arg32_token_text = dso_local local_unnamed_addr global i32 0, align 4
@arg32_token_v = dso_local local_unnamed_addr global i32 0, align 4
@EX_UNAVAILABLE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"au_to_arg32\00", align 1
@AUE_NULL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @generate_arg32_record], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @generate_arg32_record(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @arg32_token_n, align 4, !tbaa !5
%4 = load i32, ptr @arg32_token_text, align 4, !tbaa !5
%5 = load i32, ptr @arg32_token_v, align 4, !tbaa !5
%6 = tail call ptr @au_to_arg32(i32 noundef %3, i32 noundef %4, i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @EX_UNAVAILABLE, align 4, !tbaa !5
%10 = tail call i32 @err(i32 noundef %9, ptr noundef nonnull @.str) #2
br label %11
11: ; preds = %8, %2
%12 = load i32, ptr @AUE_NULL, align 4, !tbaa !5
%13 = tail call i32 @write_record(ptr noundef %0, ptr noundef %1, ptr noundef %6, i32 noundef %12) #2
ret void
}
declare ptr @au_to_arg32(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @write_record(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!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/openbsm/test/bsm/extr_generate.c_generate_arg32_record.c'
source_filename = "AnghaBench/freebsd/contrib/openbsm/test/bsm/extr_generate.c_generate_arg32_record.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@arg32_token_n = common local_unnamed_addr global i32 0, align 4
@arg32_token_text = common local_unnamed_addr global i32 0, align 4
@arg32_token_v = common local_unnamed_addr global i32 0, align 4
@EX_UNAVAILABLE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"au_to_arg32\00", align 1
@AUE_NULL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @generate_arg32_record], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @generate_arg32_record(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @arg32_token_n, align 4, !tbaa !6
%4 = load i32, ptr @arg32_token_text, align 4, !tbaa !6
%5 = load i32, ptr @arg32_token_v, align 4, !tbaa !6
%6 = tail call ptr @au_to_arg32(i32 noundef %3, i32 noundef %4, i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @EX_UNAVAILABLE, align 4, !tbaa !6
%10 = tail call i32 @err(i32 noundef %9, ptr noundef nonnull @.str) #2
br label %11
11: ; preds = %8, %2
%12 = load i32, ptr @AUE_NULL, align 4, !tbaa !6
%13 = tail call i32 @write_record(ptr noundef %0, ptr noundef %1, ptr noundef %6, i32 noundef %12) #2
ret void
}
declare ptr @au_to_arg32(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @write_record(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_openbsm_test_bsm_extr_generate.c_generate_arg32_record |
; ModuleID = 'AnghaBench/linux/drivers/macintosh/extr_windfarm_core.c_wf_put_sensor.c'
source_filename = "AnghaBench/linux/drivers/macintosh/extr_windfarm_core.c_wf_put_sensor.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.wf_sensor = type { i32, ptr }
@wf_sensor_release = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @wf_put_sensor(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.wf_sensor, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load i32, ptr @wf_sensor_release, align 4, !tbaa !13
%6 = tail call i32 @kref_put(ptr noundef %0, i32 noundef %5) #2
%7 = tail call i32 @module_put(ptr noundef %4) #2
ret void
}
declare i32 @kref_put(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @module_put(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 = !{!"wf_sensor", !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_2__", !10, i64 0}
!13 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/macintosh/extr_windfarm_core.c_wf_put_sensor.c'
source_filename = "AnghaBench/linux/drivers/macintosh/extr_windfarm_core.c_wf_put_sensor.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@wf_sensor_release = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @wf_put_sensor(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = load i32, ptr @wf_sensor_release, align 4, !tbaa !14
%6 = tail call i32 @kref_put(ptr noundef %0, i32 noundef %5) #2
%7 = tail call i32 @module_put(ptr noundef %4) #2
ret void
}
declare i32 @kref_put(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @module_put(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 = !{!"wf_sensor", !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_2__", !11, i64 0}
!14 = !{!8, !8, i64 0}
| linux_drivers_macintosh_extr_windfarm_core.c_wf_put_sensor |
; ModuleID = 'AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_bracket_addr_ok.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_bracket_addr_ok.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.in6_addr = type { i32 }
@SUBDELIMS = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET6 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bracket_addr_ok], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @bracket_addr_ok(ptr noundef %0, ptr noundef %1) #0 {
%3 = ptrtoint ptr %1 to i64
%4 = ptrtoint ptr %0 to i64
%5 = alloca [64 x i8], align 16
%6 = alloca %struct.in6_addr, align 4
%7 = getelementptr inbounds i8, ptr %0, i64 3
%8 = icmp ugt ptr %7, %1
br i1 %8, label %83, label %9
9: ; preds = %2
%10 = load i8, ptr %0, align 1, !tbaa !5
%11 = icmp eq i8 %10, 91
br i1 %11, label %12, label %83
12: ; preds = %9
%13 = getelementptr inbounds i8, ptr %1, i64 -1
%14 = load i8, ptr %13, align 1, !tbaa !5
%15 = icmp eq i8 %14, 93
br i1 %15, label %16, label %83
16: ; preds = %12
%17 = getelementptr inbounds i8, ptr %0, i64 1
%18 = load i8, ptr %17, align 1, !tbaa !5
%19 = icmp eq i8 %18, 118
br i1 %19, label %20, label %68
20: ; preds = %16
%21 = getelementptr inbounds i8, ptr %0, i64 2
%22 = load i8, ptr %21, align 1, !tbaa !5
%23 = tail call i64 @EVUTIL_ISXDIGIT_(i8 noundef signext %22) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %83, label %25
25: ; preds = %20
%26 = icmp ult ptr %21, %13
br i1 %26, label %27, label %39
27: ; preds = %25
%28 = getelementptr i8, ptr inttoptr (i64 -1 to ptr), i64 %3
br label %29
29: ; preds = %27, %36
%30 = phi ptr [ %37, %36 ], [ %21, %27 ]
%31 = load i8, ptr %30, align 1, !tbaa !5
%32 = icmp eq i8 %31, 46
br i1 %32, label %43, label %33
33: ; preds = %29
%34 = tail call i64 @EVUTIL_ISXDIGIT_(i8 noundef signext %31) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %83, label %36
36: ; preds = %33
%37 = getelementptr inbounds i8, ptr %30, i64 1
%38 = icmp eq ptr %37, %28
br i1 %38, label %39, label %29, !llvm.loop !8
39: ; preds = %36, %25
%40 = phi ptr [ %21, %25 ], [ %28, %36 ]
%41 = load i8, ptr %40, align 1, !tbaa !5
%42 = icmp eq i8 %41, 46
br i1 %42, label %43, label %83
43: ; preds = %29, %39
%44 = phi ptr [ %40, %39 ], [ %30, %29 ]
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = icmp ult ptr %45, %13
br i1 %46, label %47, label %83
47: ; preds = %43
%48 = ptrtoint ptr %44 to i64
%49 = xor i64 %48, -1
%50 = add i64 %49, %3
%51 = getelementptr i8, ptr %44, i64 %50
br label %52
52: ; preds = %47, %65
%53 = phi ptr [ %66, %65 ], [ %45, %47 ]
%54 = load i8, ptr %53, align 1, !tbaa !5
%55 = tail call i64 @CHAR_IS_UNRESERVED(i8 noundef signext %54) #3
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %52
%58 = load i32, ptr @SUBDELIMS, align 4, !tbaa !10
%59 = load i8, ptr %53, align 1, !tbaa !5
%60 = tail call i64 @strchr(i32 noundef %58, i8 noundef signext %59) #3
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = load i8, ptr %53, align 1, !tbaa !5
%64 = icmp eq i8 %63, 58
br i1 %64, label %65, label %83
65: ; preds = %62, %57, %52
%66 = getelementptr inbounds i8, ptr %53, i64 1
%67 = icmp eq ptr %66, %51
br i1 %67, label %83, label %52, !llvm.loop !12
68: ; preds = %16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #3
%69 = sub i64 %3, %4
%70 = trunc i64 %69 to i32
%71 = add i32 %70, -2
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%72 = icmp sgt i32 %71, 63
br i1 %72, label %81, label %73
73: ; preds = %68
%74 = call i32 @memcpy(ptr noundef nonnull %5, ptr noundef nonnull %17, i32 noundef %71) #3
%75 = sext i32 %71 to i64
%76 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 %75
store i8 0, ptr %76, align 1, !tbaa !5
%77 = load i32, ptr @AF_INET6, align 4, !tbaa !10
%78 = call i32 @evutil_inet_pton(i32 noundef %77, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
%79 = icmp eq i32 %78, 1
%80 = zext i1 %79 to i32
br label %81
81: ; preds = %68, %73
%82 = phi i32 [ %80, %73 ], [ 0, %68 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #3
br label %83
83: ; preds = %33, %62, %65, %43, %39, %20, %2, %9, %12, %81
%84 = phi i32 [ %82, %81 ], [ 0, %12 ], [ 0, %9 ], [ 0, %2 ], [ 0, %20 ], [ 0, %39 ], [ 2, %43 ], [ 0, %62 ], [ 2, %65 ], [ 0, %33 ]
ret i32 %84
}
declare i64 @EVUTIL_ISXDIGIT_(i8 noundef signext) local_unnamed_addr #1
declare i64 @CHAR_IS_UNRESERVED(i8 noundef signext) local_unnamed_addr #1
declare i64 @strchr(i32 noundef, i8 noundef signext) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @evutil_inet_pton(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !9}
| ; ModuleID = 'AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_bracket_addr_ok.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_bracket_addr_ok.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.in6_addr = type { i32 }
@SUBDELIMS = common local_unnamed_addr global i32 0, align 4
@AF_INET6 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bracket_addr_ok], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 3) i32 @bracket_addr_ok(ptr noundef %0, ptr noundef %1) #0 {
%3 = ptrtoint ptr %1 to i64
%4 = ptrtoint ptr %0 to i64
%5 = alloca [64 x i8], align 1
%6 = alloca %struct.in6_addr, align 4
%7 = getelementptr inbounds i8, ptr %0, i64 3
%8 = icmp ugt ptr %7, %1
br i1 %8, label %83, label %9
9: ; preds = %2
%10 = load i8, ptr %0, align 1, !tbaa !6
%11 = icmp eq i8 %10, 91
br i1 %11, label %12, label %83
12: ; preds = %9
%13 = getelementptr inbounds i8, ptr %1, i64 -1
%14 = load i8, ptr %13, align 1, !tbaa !6
%15 = icmp eq i8 %14, 93
br i1 %15, label %16, label %83
16: ; preds = %12
%17 = getelementptr inbounds i8, ptr %0, i64 1
%18 = load i8, ptr %17, align 1, !tbaa !6
%19 = icmp eq i8 %18, 118
br i1 %19, label %20, label %68
20: ; preds = %16
%21 = getelementptr inbounds i8, ptr %0, i64 2
%22 = load i8, ptr %21, align 1, !tbaa !6
%23 = tail call i64 @EVUTIL_ISXDIGIT_(i8 noundef signext %22) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %83, label %25
25: ; preds = %20
%26 = icmp ult ptr %21, %13
br i1 %26, label %27, label %39
27: ; preds = %25
%28 = getelementptr i8, ptr inttoptr (i64 -1 to ptr), i64 %3
br label %29
29: ; preds = %27, %36
%30 = phi ptr [ %37, %36 ], [ %21, %27 ]
%31 = load i8, ptr %30, align 1, !tbaa !6
%32 = icmp eq i8 %31, 46
br i1 %32, label %43, label %33
33: ; preds = %29
%34 = tail call i64 @EVUTIL_ISXDIGIT_(i8 noundef signext %31) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %83, label %36
36: ; preds = %33
%37 = getelementptr inbounds i8, ptr %30, i64 1
%38 = icmp eq ptr %37, %28
br i1 %38, label %39, label %29, !llvm.loop !9
39: ; preds = %36, %25
%40 = phi ptr [ %21, %25 ], [ %28, %36 ]
%41 = load i8, ptr %40, align 1, !tbaa !6
%42 = icmp eq i8 %41, 46
br i1 %42, label %43, label %83
43: ; preds = %29, %39
%44 = phi ptr [ %40, %39 ], [ %30, %29 ]
%45 = getelementptr inbounds i8, ptr %44, i64 1
%46 = icmp ult ptr %45, %13
br i1 %46, label %47, label %83
47: ; preds = %43
%48 = ptrtoint ptr %44 to i64
%49 = xor i64 %48, -1
%50 = add i64 %49, %3
%51 = getelementptr i8, ptr %44, i64 %50
br label %52
52: ; preds = %47, %65
%53 = phi ptr [ %66, %65 ], [ %45, %47 ]
%54 = load i8, ptr %53, align 1, !tbaa !6
%55 = tail call i64 @CHAR_IS_UNRESERVED(i8 noundef signext %54) #3
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %52
%58 = load i32, ptr @SUBDELIMS, align 4, !tbaa !11
%59 = load i8, ptr %53, align 1, !tbaa !6
%60 = tail call i64 @strchr(i32 noundef %58, i8 noundef signext %59) #3
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = load i8, ptr %53, align 1, !tbaa !6
%64 = icmp eq i8 %63, 58
br i1 %64, label %65, label %83
65: ; preds = %62, %57, %52
%66 = getelementptr inbounds i8, ptr %53, i64 1
%67 = icmp eq ptr %66, %51
br i1 %67, label %83, label %52, !llvm.loop !13
68: ; preds = %16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #3
%69 = sub i64 %3, %4
%70 = trunc i64 %69 to i32
%71 = add i32 %70, -2
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%72 = icmp sgt i32 %71, 63
br i1 %72, label %81, label %73
73: ; preds = %68
%74 = call i32 @memcpy(ptr noundef nonnull %5, ptr noundef nonnull %17, i32 noundef %71) #3
%75 = sext i32 %71 to i64
%76 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 %75
store i8 0, ptr %76, align 1, !tbaa !6
%77 = load i32, ptr @AF_INET6, align 4, !tbaa !11
%78 = call i32 @evutil_inet_pton(i32 noundef %77, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
%79 = icmp eq i32 %78, 1
%80 = zext i1 %79 to i32
br label %81
81: ; preds = %68, %73
%82 = phi i32 [ %80, %73 ], [ 0, %68 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #3
br label %83
83: ; preds = %33, %62, %65, %43, %39, %20, %2, %9, %12, %81
%84 = phi i32 [ %82, %81 ], [ 0, %12 ], [ 0, %9 ], [ 0, %2 ], [ 0, %20 ], [ 0, %39 ], [ 2, %43 ], [ 0, %62 ], [ 2, %65 ], [ 0, %33 ]
ret i32 %84
}
declare i64 @EVUTIL_ISXDIGIT_(i8 noundef signext) local_unnamed_addr #1
declare i64 @CHAR_IS_UNRESERVED(i8 noundef signext) local_unnamed_addr #1
declare i64 @strchr(i32 noundef, i8 noundef signext) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @evutil_inet_pton(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
| freebsd_contrib_ntp_sntp_libevent_extr_http.c_bracket_addr_ok |
; ModuleID = 'AnghaBench/radare2/libr/bin/format/mach0/extr_mach0.c_ptr_size.c'
source_filename = "AnghaBench/radare2/libr/bin/format/mach0/extr_mach0.c_ptr_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @ptr_size], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i64 @ptr_size(ptr nocapture readnone %0) #0 {
ret i64 8
}
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/radare2/libr/bin/format/mach0/extr_mach0.c_ptr_size.c'
source_filename = "AnghaBench/radare2/libr/bin/format/mach0/extr_mach0.c_ptr_size.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 @ptr_size], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i64 @ptr_size(ptr nocapture readnone %0) #0 {
ret i64 8
}
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)"}
| radare2_libr_bin_format_mach0_extr_mach0.c_ptr_size |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/fujitsu/extr_fmvj18x_cs.c_fmvj18x_detach.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/fujitsu/extr_fmvj18x_cs.c_fmvj18x_detach.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.pcmcia_device = type { i32, ptr }
@.str = private unnamed_addr constant [16 x i8] c"fmvj18x_detach\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @fmvj18x_detach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @fmvj18x_detach(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.pcmcia_device, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = tail call i32 @dev_dbg(ptr noundef %0, ptr noundef nonnull @.str) #2
%5 = tail call i32 @unregister_netdev(ptr noundef %3) #2
%6 = tail call i32 @fmvj18x_release(ptr noundef %0) #2
%7 = tail call i32 @free_netdev(ptr noundef %3) #2
ret void
}
declare i32 @dev_dbg(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @unregister_netdev(ptr noundef) local_unnamed_addr #1
declare i32 @fmvj18x_release(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, !10, i64 8}
!6 = !{!"pcmcia_device", !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/linux/drivers/net/ethernet/fujitsu/extr_fmvj18x_cs.c_fmvj18x_detach.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/fujitsu/extr_fmvj18x_cs.c_fmvj18x_detach.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"fmvj18x_detach\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @fmvj18x_detach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @fmvj18x_detach(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = tail call i32 @dev_dbg(ptr noundef %0, ptr noundef nonnull @.str) #2
%5 = tail call i32 @unregister_netdev(ptr noundef %3) #2
%6 = tail call i32 @fmvj18x_release(ptr noundef %0) #2
%7 = tail call i32 @free_netdev(ptr noundef %3) #2
ret void
}
declare i32 @dev_dbg(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @unregister_netdev(ptr noundef) local_unnamed_addr #1
declare i32 @fmvj18x_release(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, !11, i64 8}
!7 = !{!"pcmcia_device", !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}
| linux_drivers_net_ethernet_fujitsu_extr_fmvj18x_cs.c_fmvj18x_detach |
; ModuleID = 'AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-ia64.c_output_prologue.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-ia64.c_output_prologue.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"
@prologue = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @output_prologue], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @output_prologue() #0 {
%1 = load i32, ptr @prologue, align 4, !tbaa !5
%2 = tail call ptr @alloc_record(i32 noundef %1) #2
%3 = tail call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4) #2
ret ptr %2
}
declare ptr @alloc_record(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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-ia64.c_output_prologue.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/gas/config/extr_tc-ia64.c_output_prologue.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@prologue = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @output_prologue], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @output_prologue() #0 {
%1 = load i32, ptr @prologue, align 4, !tbaa !6
%2 = tail call ptr @alloc_record(i32 noundef %1) #2
%3 = tail call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 4) #2
ret ptr %2
}
declare ptr @alloc_record(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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_binutils_gas_config_extr_tc-ia64.c_output_prologue |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_els.c_ocs_send_prli_acc.c'
source_filename = "AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_els.c_ocs_send_prli_acc.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_16__ = type { ptr, i32, %struct.TYPE_13__, %struct.TYPE_17__, ptr, ptr, i32, ptr }
%struct.TYPE_13__ = type { ptr }
%struct.TYPE_17__ = type { i32, ptr, ptr, i64, i32, ptr, i32, %struct.TYPE_12__ }
%struct.TYPE_12__ = type { ptr }
%struct.TYPE_14__ = type { i64, i64 }
@.str = private unnamed_addr constant [9 x i8] c"prli_acc\00", align 1
@FC_ELS_CMD_ACC = dso_local local_unnamed_addr global i32 0, align 4
@FC_PRLI_ESTABLISH_IMAGE_PAIR = dso_local local_unnamed_addr global i32 0, align 4
@FC_PRLI_REQUEST_EXECUTED = dso_local local_unnamed_addr global i32 0, align 4
@FC_PRLI_READ_XRDY_DISABLED = dso_local local_unnamed_addr global i32 0, align 4
@FC_PRLI_INITIATOR_FUNCTION = dso_local local_unnamed_addr global i32 0, align 4
@FC_PRLI_TARGET_FUNCTION = dso_local local_unnamed_addr global i32 0, align 4
@OCS_HW_ELS_RSP = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef ptr @ocs_send_prli_acc(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 7
%7 = load ptr, ptr %6, align 8, !tbaa !5
%8 = tail call i32 (...) @node_els_trace() #2
%9 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 6
store i32 %3, ptr %9, align 8, !tbaa !15
%10 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 5
store ptr %4, ptr %10, align 8, !tbaa !16
store ptr @.str, ptr %0, align 8, !tbaa !17
%11 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 4
store ptr %1, ptr %11, align 8, !tbaa !18
%12 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 3
%13 = tail call i32 @ocs_memset(ptr noundef nonnull %12, i32 noundef 0, i32 noundef 64) #2
%14 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 3, i32 7
store ptr %1, ptr %14, align 8, !tbaa !19
%15 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 2
%16 = load ptr, ptr %15, align 8, !tbaa !20
%17 = tail call i32 @ocs_memset(ptr noundef %16, i32 noundef 0, i32 noundef 64) #2
%18 = load i32, ptr @FC_ELS_CMD_ACC, align 4, !tbaa !21
%19 = getelementptr inbounds %struct.TYPE_17__, ptr %16, i64 0, i32 6
store i32 %18, ptr %19, align 8, !tbaa !22
store i32 16, ptr %16, align 8, !tbaa !23
%20 = tail call ptr @ocs_htobe16(i32 noundef 64) #2
%21 = getelementptr inbounds %struct.TYPE_17__, ptr %16, i64 0, i32 5
store ptr %20, ptr %21, align 8, !tbaa !24
%22 = getelementptr inbounds %struct.TYPE_17__, ptr %16, i64 0, i32 4
store i32 %2, ptr %22, align 8, !tbaa !25
%23 = getelementptr inbounds %struct.TYPE_17__, ptr %16, i64 0, i32 3
store i64 0, ptr %23, align 8, !tbaa !26
%24 = load i32, ptr @FC_PRLI_ESTABLISH_IMAGE_PAIR, align 4, !tbaa !21
%25 = load i32, ptr @FC_PRLI_REQUEST_EXECUTED, align 4, !tbaa !21
%26 = or i32 %25, %24
%27 = tail call ptr @ocs_htobe16(i32 noundef %26) #2
%28 = getelementptr inbounds %struct.TYPE_17__, ptr %16, i64 0, i32 2
store ptr %27, ptr %28, align 8, !tbaa !27
%29 = load i32, ptr @FC_PRLI_READ_XRDY_DISABLED, align 4, !tbaa !21
%30 = load ptr, ptr %7, align 8, !tbaa !28
%31 = getelementptr inbounds %struct.TYPE_14__, ptr %30, i64 0, i32 1
%32 = load i64, ptr %31, align 8, !tbaa !30
%33 = icmp eq i64 %32, 0
%34 = load i32, ptr @FC_PRLI_INITIATOR_FUNCTION, align 4
%35 = select i1 %33, i32 0, i32 %34
%36 = or i32 %35, %29
%37 = load i64, ptr %30, align 8, !tbaa !32
%38 = icmp eq i64 %37, 0
%39 = load i32, ptr @FC_PRLI_TARGET_FUNCTION, align 4
%40 = select i1 %38, i32 0, i32 %39
%41 = or i32 %36, %40
%42 = tail call ptr @ocs_htobe16(i32 noundef %41) #2
%43 = getelementptr inbounds %struct.TYPE_17__, ptr %16, i64 0, i32 1
store ptr %42, ptr %43, align 8, !tbaa !33
%44 = load i32, ptr @OCS_HW_ELS_RSP, align 4, !tbaa !21
%45 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 1
store i32 %44, ptr %45, align 8, !tbaa !34
%46 = tail call i32 @ocs_els_send_rsp(ptr noundef nonnull %0, i32 noundef 64) #2
%47 = icmp eq i32 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %5
%49 = tail call i32 @ocs_els_io_free(ptr noundef nonnull %0) #2
br label %50
50: ; preds = %48, %5
%51 = phi ptr [ null, %48 ], [ %0, %5 ]
ret ptr %51
}
declare i32 @node_els_trace(...) local_unnamed_addr #1
declare i32 @ocs_memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ocs_htobe16(i32 noundef) local_unnamed_addr #1
declare i32 @ocs_els_send_rsp(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ocs_els_io_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 112}
!6 = !{!"TYPE_16__", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24, !7, i64 88, !7, i64 96, !10, i64 104, !7, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"TYPE_13__", !7, i64 0}
!12 = !{!"TYPE_17__", !10, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !14, i64 56}
!13 = !{!"long", !8, i64 0}
!14 = !{!"TYPE_12__", !7, i64 0}
!15 = !{!6, !10, i64 104}
!16 = !{!6, !7, i64 96}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 88}
!19 = !{!6, !7, i64 80}
!20 = !{!6, !7, i64 16}
!21 = !{!10, !10, i64 0}
!22 = !{!12, !10, i64 48}
!23 = !{!12, !10, i64 0}
!24 = !{!12, !7, i64 40}
!25 = !{!12, !10, i64 32}
!26 = !{!12, !13, i64 24}
!27 = !{!12, !7, i64 16}
!28 = !{!29, !7, i64 0}
!29 = !{!"TYPE_15__", !7, i64 0, !7, i64 8}
!30 = !{!31, !13, i64 8}
!31 = !{!"TYPE_14__", !13, i64 0, !13, i64 8}
!32 = !{!31, !13, i64 0}
!33 = !{!12, !7, i64 8}
!34 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_els.c_ocs_send_prli_acc.c'
source_filename = "AnghaBench/freebsd/sys/dev/ocs_fc/extr_ocs_els.c_ocs_send_prli_acc.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 [9 x i8] c"prli_acc\00", align 1
@FC_ELS_CMD_ACC = common local_unnamed_addr global i32 0, align 4
@FC_PRLI_ESTABLISH_IMAGE_PAIR = common local_unnamed_addr global i32 0, align 4
@FC_PRLI_REQUEST_EXECUTED = common local_unnamed_addr global i32 0, align 4
@FC_PRLI_READ_XRDY_DISABLED = common local_unnamed_addr global i32 0, align 4
@FC_PRLI_INITIATOR_FUNCTION = common local_unnamed_addr global i32 0, align 4
@FC_PRLI_TARGET_FUNCTION = common local_unnamed_addr global i32 0, align 4
@OCS_HW_ELS_RSP = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define noundef ptr @ocs_send_prli_acc(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = getelementptr inbounds i8, ptr %0, i64 112
%7 = load ptr, ptr %6, align 8, !tbaa !6
%8 = tail call i32 @node_els_trace() #2
%9 = getelementptr inbounds i8, ptr %0, i64 104
store i32 %3, ptr %9, align 8, !tbaa !16
%10 = getelementptr inbounds i8, ptr %0, i64 96
store ptr %4, ptr %10, align 8, !tbaa !17
store ptr @.str, ptr %0, align 8, !tbaa !18
%11 = getelementptr inbounds i8, ptr %0, i64 88
store ptr %1, ptr %11, align 8, !tbaa !19
%12 = getelementptr inbounds i8, ptr %0, i64 24
%13 = tail call i32 @ocs_memset(ptr noundef nonnull %12, i32 noundef 0, i32 noundef 64) #2
%14 = getelementptr inbounds i8, ptr %0, i64 80
store ptr %1, ptr %14, align 8, !tbaa !20
%15 = getelementptr inbounds i8, ptr %0, i64 16
%16 = load ptr, ptr %15, align 8, !tbaa !21
%17 = tail call i32 @ocs_memset(ptr noundef %16, i32 noundef 0, i32 noundef 64) #2
%18 = load i32, ptr @FC_ELS_CMD_ACC, align 4, !tbaa !22
%19 = getelementptr inbounds i8, ptr %16, i64 48
store i32 %18, ptr %19, align 8, !tbaa !23
store i32 16, ptr %16, align 8, !tbaa !24
%20 = tail call ptr @ocs_htobe16(i32 noundef 64) #2
%21 = getelementptr inbounds i8, ptr %16, i64 40
store ptr %20, ptr %21, align 8, !tbaa !25
%22 = getelementptr inbounds i8, ptr %16, i64 32
store i32 %2, ptr %22, align 8, !tbaa !26
%23 = getelementptr inbounds i8, ptr %16, i64 24
store i64 0, ptr %23, align 8, !tbaa !27
%24 = load i32, ptr @FC_PRLI_ESTABLISH_IMAGE_PAIR, align 4, !tbaa !22
%25 = load i32, ptr @FC_PRLI_REQUEST_EXECUTED, align 4, !tbaa !22
%26 = or i32 %25, %24
%27 = tail call ptr @ocs_htobe16(i32 noundef %26) #2
%28 = getelementptr inbounds i8, ptr %16, i64 16
store ptr %27, ptr %28, align 8, !tbaa !28
%29 = load i32, ptr @FC_PRLI_READ_XRDY_DISABLED, align 4, !tbaa !22
%30 = load ptr, ptr %7, align 8, !tbaa !29
%31 = getelementptr inbounds i8, ptr %30, i64 8
%32 = load i64, ptr %31, align 8, !tbaa !31
%33 = icmp eq i64 %32, 0
%34 = load i32, ptr @FC_PRLI_INITIATOR_FUNCTION, align 4
%35 = select i1 %33, i32 0, i32 %34
%36 = or i32 %35, %29
%37 = load i64, ptr %30, align 8, !tbaa !33
%38 = icmp eq i64 %37, 0
%39 = load i32, ptr @FC_PRLI_TARGET_FUNCTION, align 4
%40 = select i1 %38, i32 0, i32 %39
%41 = or i32 %36, %40
%42 = tail call ptr @ocs_htobe16(i32 noundef %41) #2
%43 = getelementptr inbounds i8, ptr %16, i64 8
store ptr %42, ptr %43, align 8, !tbaa !34
%44 = load i32, ptr @OCS_HW_ELS_RSP, align 4, !tbaa !22
%45 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %44, ptr %45, align 8, !tbaa !35
%46 = tail call i32 @ocs_els_send_rsp(ptr noundef nonnull %0, i32 noundef 64) #2
%47 = icmp eq i32 %46, 0
br i1 %47, label %50, label %48
48: ; preds = %5
%49 = tail call i32 @ocs_els_io_free(ptr noundef nonnull %0) #2
br label %50
50: ; preds = %48, %5
%51 = phi ptr [ null, %48 ], [ %0, %5 ]
ret ptr %51
}
declare i32 @node_els_trace(...) local_unnamed_addr #1
declare i32 @ocs_memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ocs_htobe16(i32 noundef) local_unnamed_addr #1
declare i32 @ocs_els_send_rsp(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ocs_els_io_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 112}
!7 = !{!"TYPE_16__", !8, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !8, i64 88, !8, i64 96, !11, i64 104, !8, i64 112}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"TYPE_13__", !8, i64 0}
!13 = !{!"TYPE_17__", !11, i64 0, !8, i64 8, !8, i64 16, !14, i64 24, !11, i64 32, !8, i64 40, !11, i64 48, !15, i64 56}
!14 = !{!"long", !9, i64 0}
!15 = !{!"TYPE_12__", !8, i64 0}
!16 = !{!7, !11, i64 104}
!17 = !{!7, !8, i64 96}
!18 = !{!7, !8, i64 0}
!19 = !{!7, !8, i64 88}
!20 = !{!7, !8, i64 80}
!21 = !{!7, !8, i64 16}
!22 = !{!11, !11, i64 0}
!23 = !{!13, !11, i64 48}
!24 = !{!13, !11, i64 0}
!25 = !{!13, !8, i64 40}
!26 = !{!13, !11, i64 32}
!27 = !{!13, !14, i64 24}
!28 = !{!13, !8, i64 16}
!29 = !{!30, !8, i64 0}
!30 = !{!"TYPE_15__", !8, i64 0, !8, i64 8}
!31 = !{!32, !14, i64 8}
!32 = !{!"TYPE_14__", !14, i64 0, !14, i64 8}
!33 = !{!32, !14, i64 0}
!34 = !{!13, !8, i64 8}
!35 = !{!7, !11, i64 8}
| freebsd_sys_dev_ocs_fc_extr_ocs_els.c_ocs_send_prli_acc |
; ModuleID = 'AnghaBench/linux/net/core/extr_lwt_bpf.c_bpf_build_state.c'
source_filename = "AnghaBench/linux/net/core/extr_lwt_bpf.c_bpf_build_state.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.lwtunnel_state = type { i64, i32, i32 }
%struct.bpf_lwt = type { i32, i32, i32, i32 }
@LWT_BPF_MAX = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET = dso_local local_unnamed_addr global i32 0, align 4
@AF_INET6 = dso_local local_unnamed_addr global i32 0, align 4
@EAFNOSUPPORT = dso_local local_unnamed_addr global i32 0, align 4
@bpf_nl_policy = dso_local local_unnamed_addr global i32 0, align 4
@LWT_BPF_IN = dso_local local_unnamed_addr global i64 0, align 8
@LWT_BPF_OUT = dso_local local_unnamed_addr global i64 0, align 8
@LWT_BPF_XMIT = dso_local local_unnamed_addr global i64 0, align 8
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@LWTUNNEL_ENCAP_BPF = dso_local local_unnamed_addr global i32 0, align 4
@LWTUNNEL_STATE_INPUT_REDIRECT = dso_local local_unnamed_addr global i32 0, align 4
@BPF_PROG_TYPE_LWT_IN = dso_local local_unnamed_addr global i32 0, align 4
@LWTUNNEL_STATE_OUTPUT_REDIRECT = dso_local local_unnamed_addr global i32 0, align 4
@BPF_PROG_TYPE_LWT_OUT = dso_local local_unnamed_addr global i32 0, align 4
@LWTUNNEL_STATE_XMIT_REDIRECT = dso_local local_unnamed_addr global i32 0, align 4
@BPF_PROG_TYPE_LWT_XMIT = dso_local local_unnamed_addr global i32 0, align 4
@LWT_BPF_XMIT_HEADROOM = dso_local local_unnamed_addr global i64 0, align 8
@LWT_BPF_MAX_HEADROOM = dso_local local_unnamed_addr global i64 0, align 8
@ERANGE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bpf_build_state], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @bpf_build_state(ptr noundef %0, i32 noundef %1, ptr nocapture readnone %2, ptr nocapture noundef writeonly %3, ptr noundef %4) #0 {
%6 = load i32, ptr @LWT_BPF_MAX, align 4, !tbaa !5
%7 = add nsw i32 %6, 1
%8 = zext i32 %7 to i64
%9 = alloca ptr, i64 %8, align 16
%10 = load i32, ptr @AF_INET, align 4, !tbaa !5
%11 = icmp eq i32 %10, %1
%12 = load i32, ptr @AF_INET6, align 4
%13 = icmp eq i32 %12, %1
%14 = select i1 %11, i1 true, i1 %13
br i1 %14, label %18, label %15
15: ; preds = %5
%16 = load i32, ptr @EAFNOSUPPORT, align 4, !tbaa !5
%17 = sub nsw i32 0, %16
br label %109
18: ; preds = %5
%19 = load i32, ptr @bpf_nl_policy, align 4, !tbaa !5
%20 = call i32 @nla_parse_nested_deprecated(ptr noundef nonnull %9, i32 noundef %6, ptr noundef %0, i32 noundef %19, ptr noundef %4) #2
%21 = icmp slt i32 %20, 0
br i1 %21, label %109, label %22
22: ; preds = %18
%23 = load i64, ptr @LWT_BPF_IN, align 8, !tbaa !9
%24 = getelementptr inbounds ptr, ptr %9, i64 %23
%25 = load ptr, ptr %24, align 8, !tbaa !11
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %40
27: ; preds = %22
%28 = load i64, ptr @LWT_BPF_OUT, align 8, !tbaa !9
%29 = getelementptr inbounds ptr, ptr %9, i64 %28
%30 = load ptr, ptr %29, align 8, !tbaa !11
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %40
32: ; preds = %27
%33 = load i64, ptr @LWT_BPF_XMIT, align 8, !tbaa !9
%34 = getelementptr inbounds ptr, ptr %9, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !11
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load i32, ptr @EINVAL, align 4, !tbaa !5
%39 = sub nsw i32 0, %38
br label %109
40: ; preds = %32, %27, %22
%41 = call ptr @lwtunnel_state_alloc(i32 noundef 16) #2
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%45 = sub nsw i32 0, %44
br label %109
46: ; preds = %40
%47 = load i32, ptr @LWTUNNEL_ENCAP_BPF, align 4, !tbaa !5
%48 = getelementptr inbounds %struct.lwtunnel_state, ptr %41, i64 0, i32 2
store i32 %47, ptr %48, align 4, !tbaa !13
%49 = call ptr @bpf_lwt_lwtunnel(ptr noundef nonnull %41) #2
%50 = load i64, ptr @LWT_BPF_IN, align 8, !tbaa !9
%51 = getelementptr inbounds ptr, ptr %9, i64 %50
%52 = load ptr, ptr %51, align 8, !tbaa !11
%53 = icmp eq ptr %52, null
br i1 %53, label %63, label %54
54: ; preds = %46
%55 = load i32, ptr @LWTUNNEL_STATE_INPUT_REDIRECT, align 4, !tbaa !5
%56 = getelementptr inbounds %struct.lwtunnel_state, ptr %41, i64 0, i32 1
%57 = load i32, ptr %56, align 8, !tbaa !15
%58 = or i32 %57, %55
store i32 %58, ptr %56, align 8, !tbaa !15
%59 = getelementptr inbounds %struct.bpf_lwt, ptr %49, i64 0, i32 3
%60 = load i32, ptr @BPF_PROG_TYPE_LWT_IN, align 4, !tbaa !5
%61 = call i32 @bpf_parse_prog(ptr noundef nonnull %52, ptr noundef nonnull %59, i32 noundef %60) #2
%62 = icmp slt i32 %61, 0
br i1 %62, label %105, label %63
63: ; preds = %54, %46
%64 = load i64, ptr @LWT_BPF_OUT, align 8, !tbaa !9
%65 = getelementptr inbounds ptr, ptr %9, i64 %64
%66 = load ptr, ptr %65, align 8, !tbaa !11
%67 = icmp eq ptr %66, null
br i1 %67, label %77, label %68
68: ; preds = %63
%69 = load i32, ptr @LWTUNNEL_STATE_OUTPUT_REDIRECT, align 4, !tbaa !5
%70 = getelementptr inbounds %struct.lwtunnel_state, ptr %41, i64 0, i32 1
%71 = load i32, ptr %70, align 8, !tbaa !15
%72 = or i32 %71, %69
store i32 %72, ptr %70, align 8, !tbaa !15
%73 = getelementptr inbounds %struct.bpf_lwt, ptr %49, i64 0, i32 2
%74 = load i32, ptr @BPF_PROG_TYPE_LWT_OUT, align 4, !tbaa !5
%75 = call i32 @bpf_parse_prog(ptr noundef nonnull %66, ptr noundef nonnull %73, i32 noundef %74) #2
%76 = icmp slt i32 %75, 0
br i1 %76, label %105, label %77
77: ; preds = %68, %63
%78 = load i64, ptr @LWT_BPF_XMIT, align 8, !tbaa !9
%79 = getelementptr inbounds ptr, ptr %9, i64 %78
%80 = load ptr, ptr %79, align 8, !tbaa !11
%81 = icmp eq ptr %80, null
br i1 %81, label %91, label %82
82: ; preds = %77
%83 = load i32, ptr @LWTUNNEL_STATE_XMIT_REDIRECT, align 4, !tbaa !5
%84 = getelementptr inbounds %struct.lwtunnel_state, ptr %41, i64 0, i32 1
%85 = load i32, ptr %84, align 8, !tbaa !15
%86 = or i32 %85, %83
store i32 %86, ptr %84, align 8, !tbaa !15
%87 = getelementptr inbounds %struct.bpf_lwt, ptr %49, i64 0, i32 1
%88 = load i32, ptr @BPF_PROG_TYPE_LWT_XMIT, align 4, !tbaa !5
%89 = call i32 @bpf_parse_prog(ptr noundef nonnull %80, ptr noundef nonnull %87, i32 noundef %88) #2
%90 = icmp slt i32 %89, 0
br i1 %90, label %105, label %91
91: ; preds = %82, %77
%92 = load i64, ptr @LWT_BPF_XMIT_HEADROOM, align 8, !tbaa !9
%93 = getelementptr inbounds ptr, ptr %9, i64 %92
%94 = load ptr, ptr %93, align 8, !tbaa !11
%95 = icmp eq ptr %94, null
br i1 %95, label %104, label %96
96: ; preds = %91
%97 = call i64 @nla_get_u32(ptr noundef nonnull %94) #2
%98 = load i64, ptr @LWT_BPF_MAX_HEADROOM, align 8, !tbaa !9
%99 = icmp sgt i64 %97, %98
br i1 %99, label %101, label %100
100: ; preds = %96
store i64 %97, ptr %41, align 8, !tbaa !16
br label %104
101: ; preds = %96
%102 = load i32, ptr @ERANGE, align 4, !tbaa !5
%103 = sub nsw i32 0, %102
br label %105
104: ; preds = %100, %91
store i32 %1, ptr %49, align 4, !tbaa !17
store ptr %41, ptr %3, align 8, !tbaa !11
br label %109
105: ; preds = %101, %82, %68, %54
%106 = phi i32 [ %61, %54 ], [ %75, %68 ], [ %89, %82 ], [ %103, %101 ]
%107 = call i32 @bpf_destroy_state(ptr noundef nonnull %41) #2
%108 = call i32 @kfree(ptr noundef nonnull %41) #2
br label %109
109: ; preds = %18, %105, %104, %43, %37, %15
%110 = phi i32 [ %17, %15 ], [ %106, %105 ], [ 0, %104 ], [ %45, %43 ], [ %39, %37 ], [ %20, %18 ]
ret i32 %110
}
declare i32 @nla_parse_nested_deprecated(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @lwtunnel_state_alloc(i32 noundef) local_unnamed_addr #1
declare ptr @bpf_lwt_lwtunnel(ptr noundef) local_unnamed_addr #1
declare i32 @bpf_parse_prog(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @nla_get_u32(ptr noundef) local_unnamed_addr #1
declare i32 @bpf_destroy_state(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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 12}
!14 = !{!"lwtunnel_state", !10, i64 0, !6, i64 8, !6, i64 12}
!15 = !{!14, !6, i64 8}
!16 = !{!14, !10, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"bpf_lwt", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
| ; ModuleID = 'AnghaBench/linux/net/core/extr_lwt_bpf.c_bpf_build_state.c'
source_filename = "AnghaBench/linux/net/core/extr_lwt_bpf.c_bpf_build_state.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LWT_BPF_MAX = common local_unnamed_addr global i32 0, align 4
@AF_INET = common local_unnamed_addr global i32 0, align 4
@AF_INET6 = common local_unnamed_addr global i32 0, align 4
@EAFNOSUPPORT = common local_unnamed_addr global i32 0, align 4
@bpf_nl_policy = common local_unnamed_addr global i32 0, align 4
@LWT_BPF_IN = common local_unnamed_addr global i64 0, align 8
@LWT_BPF_OUT = common local_unnamed_addr global i64 0, align 8
@LWT_BPF_XMIT = common local_unnamed_addr global i64 0, align 8
@EINVAL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@LWTUNNEL_ENCAP_BPF = common local_unnamed_addr global i32 0, align 4
@LWTUNNEL_STATE_INPUT_REDIRECT = common local_unnamed_addr global i32 0, align 4
@BPF_PROG_TYPE_LWT_IN = common local_unnamed_addr global i32 0, align 4
@LWTUNNEL_STATE_OUTPUT_REDIRECT = common local_unnamed_addr global i32 0, align 4
@BPF_PROG_TYPE_LWT_OUT = common local_unnamed_addr global i32 0, align 4
@LWTUNNEL_STATE_XMIT_REDIRECT = common local_unnamed_addr global i32 0, align 4
@BPF_PROG_TYPE_LWT_XMIT = common local_unnamed_addr global i32 0, align 4
@LWT_BPF_XMIT_HEADROOM = common local_unnamed_addr global i64 0, align 8
@LWT_BPF_MAX_HEADROOM = common local_unnamed_addr global i64 0, align 8
@ERANGE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bpf_build_state], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @bpf_build_state(ptr noundef %0, i32 noundef %1, ptr nocapture readnone %2, ptr nocapture noundef writeonly %3, ptr noundef %4) #0 {
%6 = load i32, ptr @LWT_BPF_MAX, align 4, !tbaa !6
%7 = add nsw i32 %6, 1
%8 = zext i32 %7 to i64
%9 = alloca ptr, i64 %8, align 8
%10 = load i32, ptr @AF_INET, align 4, !tbaa !6
%11 = icmp eq i32 %10, %1
%12 = load i32, ptr @AF_INET6, align 4
%13 = icmp eq i32 %12, %1
%14 = select i1 %11, i1 true, i1 %13
br i1 %14, label %18, label %15
15: ; preds = %5
%16 = load i32, ptr @EAFNOSUPPORT, align 4, !tbaa !6
%17 = sub nsw i32 0, %16
br label %109
18: ; preds = %5
%19 = load i32, ptr @bpf_nl_policy, align 4, !tbaa !6
%20 = call i32 @nla_parse_nested_deprecated(ptr noundef nonnull %9, i32 noundef %6, ptr noundef %0, i32 noundef %19, ptr noundef %4) #2
%21 = icmp slt i32 %20, 0
br i1 %21, label %109, label %22
22: ; preds = %18
%23 = load i64, ptr @LWT_BPF_IN, align 8, !tbaa !10
%24 = getelementptr inbounds ptr, ptr %9, i64 %23
%25 = load ptr, ptr %24, align 8, !tbaa !12
%26 = icmp eq ptr %25, null
br i1 %26, label %27, label %40
27: ; preds = %22
%28 = load i64, ptr @LWT_BPF_OUT, align 8, !tbaa !10
%29 = getelementptr inbounds ptr, ptr %9, i64 %28
%30 = load ptr, ptr %29, align 8, !tbaa !12
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %40
32: ; preds = %27
%33 = load i64, ptr @LWT_BPF_XMIT, align 8, !tbaa !10
%34 = getelementptr inbounds ptr, ptr %9, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !12
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load i32, ptr @EINVAL, align 4, !tbaa !6
%39 = sub nsw i32 0, %38
br label %109
40: ; preds = %32, %27, %22
%41 = call ptr @lwtunnel_state_alloc(i32 noundef 16) #2
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%45 = sub nsw i32 0, %44
br label %109
46: ; preds = %40
%47 = load i32, ptr @LWTUNNEL_ENCAP_BPF, align 4, !tbaa !6
%48 = getelementptr inbounds i8, ptr %41, i64 12
store i32 %47, ptr %48, align 4, !tbaa !14
%49 = call ptr @bpf_lwt_lwtunnel(ptr noundef nonnull %41) #2
%50 = load i64, ptr @LWT_BPF_IN, align 8, !tbaa !10
%51 = getelementptr inbounds ptr, ptr %9, i64 %50
%52 = load ptr, ptr %51, align 8, !tbaa !12
%53 = icmp eq ptr %52, null
br i1 %53, label %63, label %54
54: ; preds = %46
%55 = load i32, ptr @LWTUNNEL_STATE_INPUT_REDIRECT, align 4, !tbaa !6
%56 = getelementptr inbounds i8, ptr %41, i64 8
%57 = load i32, ptr %56, align 8, !tbaa !16
%58 = or i32 %57, %55
store i32 %58, ptr %56, align 8, !tbaa !16
%59 = getelementptr inbounds i8, ptr %49, i64 12
%60 = load i32, ptr @BPF_PROG_TYPE_LWT_IN, align 4, !tbaa !6
%61 = call i32 @bpf_parse_prog(ptr noundef nonnull %52, ptr noundef nonnull %59, i32 noundef %60) #2
%62 = icmp slt i32 %61, 0
br i1 %62, label %105, label %63
63: ; preds = %54, %46
%64 = load i64, ptr @LWT_BPF_OUT, align 8, !tbaa !10
%65 = getelementptr inbounds ptr, ptr %9, i64 %64
%66 = load ptr, ptr %65, align 8, !tbaa !12
%67 = icmp eq ptr %66, null
br i1 %67, label %77, label %68
68: ; preds = %63
%69 = load i32, ptr @LWTUNNEL_STATE_OUTPUT_REDIRECT, align 4, !tbaa !6
%70 = getelementptr inbounds i8, ptr %41, i64 8
%71 = load i32, ptr %70, align 8, !tbaa !16
%72 = or i32 %71, %69
store i32 %72, ptr %70, align 8, !tbaa !16
%73 = getelementptr inbounds i8, ptr %49, i64 8
%74 = load i32, ptr @BPF_PROG_TYPE_LWT_OUT, align 4, !tbaa !6
%75 = call i32 @bpf_parse_prog(ptr noundef nonnull %66, ptr noundef nonnull %73, i32 noundef %74) #2
%76 = icmp slt i32 %75, 0
br i1 %76, label %105, label %77
77: ; preds = %68, %63
%78 = load i64, ptr @LWT_BPF_XMIT, align 8, !tbaa !10
%79 = getelementptr inbounds ptr, ptr %9, i64 %78
%80 = load ptr, ptr %79, align 8, !tbaa !12
%81 = icmp eq ptr %80, null
br i1 %81, label %91, label %82
82: ; preds = %77
%83 = load i32, ptr @LWTUNNEL_STATE_XMIT_REDIRECT, align 4, !tbaa !6
%84 = getelementptr inbounds i8, ptr %41, i64 8
%85 = load i32, ptr %84, align 8, !tbaa !16
%86 = or i32 %85, %83
store i32 %86, ptr %84, align 8, !tbaa !16
%87 = getelementptr inbounds i8, ptr %49, i64 4
%88 = load i32, ptr @BPF_PROG_TYPE_LWT_XMIT, align 4, !tbaa !6
%89 = call i32 @bpf_parse_prog(ptr noundef nonnull %80, ptr noundef nonnull %87, i32 noundef %88) #2
%90 = icmp slt i32 %89, 0
br i1 %90, label %105, label %91
91: ; preds = %82, %77
%92 = load i64, ptr @LWT_BPF_XMIT_HEADROOM, align 8, !tbaa !10
%93 = getelementptr inbounds ptr, ptr %9, i64 %92
%94 = load ptr, ptr %93, align 8, !tbaa !12
%95 = icmp eq ptr %94, null
br i1 %95, label %104, label %96
96: ; preds = %91
%97 = call i64 @nla_get_u32(ptr noundef nonnull %94) #2
%98 = load i64, ptr @LWT_BPF_MAX_HEADROOM, align 8, !tbaa !10
%99 = icmp sgt i64 %97, %98
br i1 %99, label %101, label %100
100: ; preds = %96
store i64 %97, ptr %41, align 8, !tbaa !17
br label %104
101: ; preds = %96
%102 = load i32, ptr @ERANGE, align 4, !tbaa !6
%103 = sub nsw i32 0, %102
br label %105
104: ; preds = %100, %91
store i32 %1, ptr %49, align 4, !tbaa !18
store ptr %41, ptr %3, align 8, !tbaa !12
br label %109
105: ; preds = %101, %82, %68, %54
%106 = phi i32 [ %61, %54 ], [ %75, %68 ], [ %89, %82 ], [ %103, %101 ]
%107 = call i32 @bpf_destroy_state(ptr noundef nonnull %41) #2
%108 = call i32 @kfree(ptr noundef nonnull %41) #2
br label %109
109: ; preds = %18, %105, %104, %43, %37, %15
%110 = phi i32 [ %17, %15 ], [ %106, %105 ], [ 0, %104 ], [ %45, %43 ], [ %39, %37 ], [ %20, %18 ]
ret i32 %110
}
declare i32 @nla_parse_nested_deprecated(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @lwtunnel_state_alloc(i32 noundef) local_unnamed_addr #1
declare ptr @bpf_lwt_lwtunnel(ptr noundef) local_unnamed_addr #1
declare i32 @bpf_parse_prog(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @nla_get_u32(ptr noundef) local_unnamed_addr #1
declare i32 @bpf_destroy_state(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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 12}
!15 = !{!"lwtunnel_state", !11, i64 0, !7, i64 8, !7, i64 12}
!16 = !{!15, !7, i64 8}
!17 = !{!15, !11, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"bpf_lwt", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
| linux_net_core_extr_lwt_bpf.c_bpf_build_state |
; ModuleID = 'AnghaBench/linux/sound/pci/ca0106/extr_ca0106_mixer.c_decode_spdif_bits.c'
source_filename = "AnghaBench/linux/sound/pci/ca0106/extr_ca0106_mixer.c_decode_spdif_bits.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 @decode_spdif_bits], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @decode_spdif_bits(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = trunc i32 %1 to i8
store i8 %3, ptr %0, align 1, !tbaa !5
%4 = lshr i32 %1, 8
%5 = trunc i32 %4 to i8
%6 = getelementptr inbounds i8, ptr %0, i64 1
store i8 %5, ptr %6, align 1, !tbaa !5
%7 = lshr i32 %1, 16
%8 = trunc i32 %7 to i8
%9 = getelementptr inbounds i8, ptr %0, i64 2
store i8 %8, ptr %9, align 1, !tbaa !5
%10 = lshr i32 %1, 24
%11 = trunc i32 %10 to i8
%12 = getelementptr inbounds i8, ptr %0, i64 3
store i8 %11, ptr %12, align 1, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/sound/pci/ca0106/extr_ca0106_mixer.c_decode_spdif_bits.c'
source_filename = "AnghaBench/linux/sound/pci/ca0106/extr_ca0106_mixer.c_decode_spdif_bits.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 @decode_spdif_bits], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @decode_spdif_bits(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = trunc i32 %1 to i8
store i8 %3, ptr %0, align 1, !tbaa !6
%4 = lshr i32 %1, 8
%5 = trunc i32 %4 to i8
%6 = getelementptr inbounds i8, ptr %0, i64 1
store i8 %5, ptr %6, align 1, !tbaa !6
%7 = lshr i32 %1, 16
%8 = trunc i32 %7 to i8
%9 = getelementptr inbounds i8, ptr %0, i64 2
store i8 %8, ptr %9, align 1, !tbaa !6
%10 = lshr i32 %1, 24
%11 = trunc nuw i32 %10 to i8
%12 = getelementptr inbounds i8, ptr %0, i64 3
store i8 %11, ptr %12, align 1, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| linux_sound_pci_ca0106_extr_ca0106_mixer.c_decode_spdif_bits |
; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/function/extr_f_mass_storage.c_fsg_lun_opts_cdrom_store.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/function/extr_f_mass_storage.c_fsg_lun_opts_cdrom_store.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.fsg_lun_opts = type { i32, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @fsg_lun_opts_cdrom_store], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @fsg_lun_opts_cdrom_store(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = tail call ptr @to_fsg_lun_opts(ptr noundef %0) #2
%5 = getelementptr inbounds %struct.fsg_lun_opts, ptr %4, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = tail call ptr @to_fsg_opts(i32 noundef %6) #2
%8 = load i32, ptr %4, align 4, !tbaa !12
%9 = load ptr, ptr %7, align 8, !tbaa !13
%10 = tail call i32 @fsg_store_cdrom(i32 noundef %8, ptr noundef %9, ptr noundef %1, i64 noundef %2) #2
ret i32 %10
}
declare ptr @to_fsg_lun_opts(ptr noundef) local_unnamed_addr #1
declare ptr @to_fsg_opts(i32 noundef) local_unnamed_addr #1
declare i32 @fsg_store_cdrom(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"fsg_lun_opts", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_5__", !11, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"fsg_opts", !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/function/extr_f_mass_storage.c_fsg_lun_opts_cdrom_store.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/function/extr_f_mass_storage.c_fsg_lun_opts_cdrom_store.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 @fsg_lun_opts_cdrom_store], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @fsg_lun_opts_cdrom_store(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = tail call ptr @to_fsg_lun_opts(ptr noundef %0) #2
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = tail call ptr @to_fsg_opts(i32 noundef %6) #2
%8 = load i32, ptr %4, align 4, !tbaa !13
%9 = load ptr, ptr %7, align 8, !tbaa !14
%10 = tail call i32 @fsg_store_cdrom(i32 noundef %8, ptr noundef %9, ptr noundef %1, i64 noundef %2) #2
ret i32 %10
}
declare ptr @to_fsg_lun_opts(ptr noundef) local_unnamed_addr #1
declare ptr @to_fsg_opts(i32 noundef) local_unnamed_addr #1
declare i32 @fsg_store_cdrom(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"fsg_lun_opts", !8, i64 0, !11, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"TYPE_4__", !8, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"fsg_opts", !16, i64 0}
!16 = !{!"any pointer", !9, i64 0}
| linux_drivers_usb_gadget_function_extr_f_mass_storage.c_fsg_lun_opts_cdrom_store |
; ModuleID = 'AnghaBench/postgres/contrib/ltree/extr_ltree_op.c_ltree_concat.c'
source_filename = "AnghaBench/postgres/contrib/ltree/extr_ltree_op.c_ltree_concat.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"
@LTREE_HDRSIZE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ltree_concat], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @ltree_concat(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @VARSIZE(ptr noundef %0) #2
%4 = tail call i32 @VARSIZE(ptr noundef %1) #2
%5 = add nsw i32 %4, %3
%6 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !5
%7 = sub i32 %5, %6
%8 = tail call i64 @palloc0(i32 noundef %7) #2
%9 = inttoptr i64 %8 to ptr
%10 = tail call i32 @VARSIZE(ptr noundef %0) #2
%11 = tail call i32 @VARSIZE(ptr noundef %1) #2
%12 = add nsw i32 %11, %10
%13 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !5
%14 = sub i32 %12, %13
%15 = tail call i32 @SET_VARSIZE(ptr noundef %9, i32 noundef %14) #2
%16 = load i64, ptr %0, align 8, !tbaa !9
%17 = load i64, ptr %1, align 8, !tbaa !9
%18 = add nsw i64 %17, %16
store i64 %18, ptr %9, align 8, !tbaa !9
%19 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %9) #2
%20 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %0) #2
%21 = tail call i32 @VARSIZE(ptr noundef nonnull %0) #2
%22 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !5
%23 = sub nsw i32 %21, %22
%24 = tail call i32 @memcpy(ptr noundef %19, ptr noundef %20, i32 noundef %23) #2
%25 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %9) #2
%26 = tail call i32 @VARSIZE(ptr noundef nonnull %0) #2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !5
%30 = sext i32 %29 to i64
%31 = sub nsw i64 0, %30
%32 = getelementptr inbounds i8, ptr %28, i64 %31
%33 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %1) #2
%34 = tail call i32 @VARSIZE(ptr noundef nonnull %1) #2
%35 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !5
%36 = sub nsw i32 %34, %35
%37 = tail call i32 @memcpy(ptr noundef %32, ptr noundef %33, i32 noundef %36) #2
ret ptr %9
}
declare i64 @palloc0(i32 noundef) local_unnamed_addr #1
declare i32 @VARSIZE(ptr noundef) local_unnamed_addr #1
declare i32 @SET_VARSIZE(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @LTREE_FIRST(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 0}
!10 = !{!"TYPE_8__", !11, i64 0}
!11 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/postgres/contrib/ltree/extr_ltree_op.c_ltree_concat.c'
source_filename = "AnghaBench/postgres/contrib/ltree/extr_ltree_op.c_ltree_concat.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LTREE_HDRSIZE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ltree_concat], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @ltree_concat(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @VARSIZE(ptr noundef %0) #2
%4 = tail call i32 @VARSIZE(ptr noundef %1) #2
%5 = add nsw i32 %4, %3
%6 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !6
%7 = sub i32 %5, %6
%8 = tail call i64 @palloc0(i32 noundef %7) #2
%9 = inttoptr i64 %8 to ptr
%10 = tail call i32 @VARSIZE(ptr noundef %0) #2
%11 = tail call i32 @VARSIZE(ptr noundef %1) #2
%12 = add nsw i32 %11, %10
%13 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !6
%14 = sub i32 %12, %13
%15 = tail call i32 @SET_VARSIZE(ptr noundef %9, i32 noundef %14) #2
%16 = load i64, ptr %0, align 8, !tbaa !10
%17 = load i64, ptr %1, align 8, !tbaa !10
%18 = add nsw i64 %17, %16
store i64 %18, ptr %9, align 8, !tbaa !10
%19 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %9) #2
%20 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %0) #2
%21 = tail call i32 @VARSIZE(ptr noundef nonnull %0) #2
%22 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !6
%23 = sub nsw i32 %21, %22
%24 = tail call i32 @memcpy(ptr noundef %19, ptr noundef %20, i32 noundef %23) #2
%25 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %9) #2
%26 = tail call i32 @VARSIZE(ptr noundef nonnull %0) #2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !6
%30 = sext i32 %29 to i64
%31 = sub nsw i64 0, %30
%32 = getelementptr inbounds i8, ptr %28, i64 %31
%33 = tail call ptr @LTREE_FIRST(ptr noundef nonnull %1) #2
%34 = tail call i32 @VARSIZE(ptr noundef nonnull %1) #2
%35 = load i32, ptr @LTREE_HDRSIZE, align 4, !tbaa !6
%36 = sub nsw i32 %34, %35
%37 = tail call i32 @memcpy(ptr noundef %32, ptr noundef %33, i32 noundef %36) #2
ret ptr %9
}
declare i64 @palloc0(i32 noundef) local_unnamed_addr #1
declare i32 @VARSIZE(ptr noundef) local_unnamed_addr #1
declare i32 @SET_VARSIZE(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @LTREE_FIRST(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 0}
!11 = !{!"TYPE_8__", !12, i64 0}
!12 = !{!"long", !8, i64 0}
| postgres_contrib_ltree_extr_ltree_op.c_ltree_concat |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/zstd/lib/compress/extr_fse_compress.c_FSE_NCountWriteBound.c'
source_filename = "AnghaBench/freebsd/sys/contrib/zstd/lib/compress/extr_fse_compress.c_FSE_NCountWriteBound.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"
@FSE_NCOUNTBOUND = 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 @FSE_NCountWriteBound(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = add i32 %0, 1
%4 = mul i32 %3, %1
%5 = lshr i32 %4, 3
%6 = add nuw nsw i32 %5, 3
%7 = zext nneg i32 %6 to i64
%8 = icmp eq i32 %0, 0
%9 = load i64, ptr @FSE_NCOUNTBOUND, align 8
%10 = select i1 %8, i64 %9, i64 %7
ret i64 %10
}
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)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/zstd/lib/compress/extr_fse_compress.c_FSE_NCountWriteBound.c'
source_filename = "AnghaBench/freebsd/sys/contrib/zstd/lib/compress/extr_fse_compress.c_FSE_NCountWriteBound.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FSE_NCOUNTBOUND = 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 @FSE_NCountWriteBound(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = add i32 %0, 1
%4 = mul i32 %3, %1
%5 = lshr i32 %4, 3
%6 = add nuw nsw i32 %5, 3
%7 = zext nneg i32 %6 to i64
%8 = icmp eq i32 %0, 0
%9 = load i64, ptr @FSE_NCOUNTBOUND, align 8
%10 = select i1 %8, i64 %9, i64 %7
ret i64 %10
}
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)"}
| freebsd_sys_contrib_zstd_lib_compress_extr_fse_compress.c_FSE_NCountWriteBound |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/sfc/falcon/extr_falcon_boards.c_ef4_init_lm87.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/sfc/falcon/extr_falcon_boards.c_ef4_init_lm87.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 @ef4_init_lm87], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @ef4_init_lm87(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/sfc/falcon/extr_falcon_boards.c_ef4_init_lm87.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/sfc/falcon/extr_falcon_boards.c_ef4_init_lm87.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 @ef4_init_lm87], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @ef4_init_lm87(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_net_ethernet_sfc_falcon_extr_falcon_boards.c_ef4_init_lm87 |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/zstd/lib/legacy/extr_zstd_v06.c_HUFv06_decompress1X2.c'
source_filename = "AnghaBench/freebsd/sys/contrib/zstd/lib/legacy/extr_zstd_v06.c_HUFv06_decompress1X2.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"
@DTable = dso_local local_unnamed_addr global i32 0, align 4
@HUFv06_MAX_TABLELOG = dso_local local_unnamed_addr global i32 0, align 4
@srcSize_wrong = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i64 @HUFv06_decompress1X2(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = load i32, ptr @DTable, align 4, !tbaa !5
%6 = load i32, ptr @HUFv06_MAX_TABLELOG, align 4, !tbaa !5
%7 = tail call i32 @HUFv06_CREATE_STATIC_DTABLEX2(i32 noundef %5, i32 noundef %6) #2
%8 = load i32, ptr @DTable, align 4, !tbaa !5
%9 = tail call i64 @HUFv06_readDTableX2(i32 noundef %8, ptr noundef %2, i64 noundef %3) #2
%10 = tail call i64 @HUFv06_isError(i64 noundef %9) #2
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %4
%13 = icmp ult i64 %9, %3
br i1 %13, label %17, label %14
14: ; preds = %12
%15 = load i32, ptr @srcSize_wrong, align 4, !tbaa !5
%16 = tail call i64 @ERROR(i32 noundef %15) #2
br label %22
17: ; preds = %12
%18 = getelementptr inbounds i32, ptr %2, i64 %9
%19 = sub i64 %3, %9
%20 = load i32, ptr @DTable, align 4, !tbaa !5
%21 = tail call i64 @HUFv06_decompress1X2_usingDTable(ptr noundef %0, i64 noundef %1, ptr noundef %18, i64 noundef %19, i32 noundef %20) #2
br label %22
22: ; preds = %4, %17, %14
%23 = phi i64 [ %16, %14 ], [ %21, %17 ], [ %9, %4 ]
ret i64 %23
}
declare i32 @HUFv06_CREATE_STATIC_DTABLEX2(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @HUFv06_readDTableX2(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @HUFv06_isError(i64 noundef) local_unnamed_addr #1
declare i64 @ERROR(i32 noundef) local_unnamed_addr #1
declare i64 @HUFv06_decompress1X2_usingDTable(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/zstd/lib/legacy/extr_zstd_v06.c_HUFv06_decompress1X2.c'
source_filename = "AnghaBench/freebsd/sys/contrib/zstd/lib/legacy/extr_zstd_v06.c_HUFv06_decompress1X2.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DTable = common local_unnamed_addr global i32 0, align 4
@HUFv06_MAX_TABLELOG = common local_unnamed_addr global i32 0, align 4
@srcSize_wrong = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @HUFv06_decompress1X2(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #0 {
%5 = load i32, ptr @DTable, align 4, !tbaa !6
%6 = load i32, ptr @HUFv06_MAX_TABLELOG, align 4, !tbaa !6
%7 = tail call i32 @HUFv06_CREATE_STATIC_DTABLEX2(i32 noundef %5, i32 noundef %6) #2
%8 = load i32, ptr @DTable, align 4, !tbaa !6
%9 = tail call i64 @HUFv06_readDTableX2(i32 noundef %8, ptr noundef %2, i64 noundef %3) #2
%10 = tail call i64 @HUFv06_isError(i64 noundef %9) #2
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %4
%13 = icmp ult i64 %9, %3
br i1 %13, label %17, label %14
14: ; preds = %12
%15 = load i32, ptr @srcSize_wrong, align 4, !tbaa !6
%16 = tail call i64 @ERROR(i32 noundef %15) #2
br label %22
17: ; preds = %12
%18 = getelementptr inbounds i32, ptr %2, i64 %9
%19 = sub i64 %3, %9
%20 = load i32, ptr @DTable, align 4, !tbaa !6
%21 = tail call i64 @HUFv06_decompress1X2_usingDTable(ptr noundef %0, i64 noundef %1, ptr noundef %18, i64 noundef %19, i32 noundef %20) #2
br label %22
22: ; preds = %4, %17, %14
%23 = phi i64 [ %16, %14 ], [ %21, %17 ], [ %9, %4 ]
ret i64 %23
}
declare i32 @HUFv06_CREATE_STATIC_DTABLEX2(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @HUFv06_readDTableX2(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @HUFv06_isError(i64 noundef) local_unnamed_addr #1
declare i64 @ERROR(i32 noundef) local_unnamed_addr #1
declare i64 @HUFv06_decompress1X2_usingDTable(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_contrib_zstd_lib_legacy_extr_zstd_v06.c_HUFv06_decompress1X2 |
; ModuleID = 'AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_evhttp_write_cb.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_evhttp_write_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"
%struct.evhttp_connection = type { i32, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @evhttp_write_cb], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @evhttp_write_cb(ptr nocapture readnone %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds %struct.evhttp_connection, ptr %1, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, ptr %1, align 8, !tbaa !11
%8 = tail call i32 %4(ptr noundef nonnull %1, i32 noundef %7) #1
br label %9
9: ; preds = %6, %2
ret void
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"evhttp_connection", !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, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_evhttp_write_cb.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/sntp/libevent/extr_http.c_evhttp_write_cb.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 @evhttp_write_cb], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @evhttp_write_cb(ptr nocapture readnone %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, ptr %1, align 8, !tbaa !12
%8 = tail call i32 %4(ptr noundef nonnull %1, i32 noundef %7) #1
br label %9
9: ; preds = %6, %2
ret void
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"evhttp_connection", !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, !8, i64 0}
| freebsd_contrib_ntp_sntp_libevent_extr_http.c_evhttp_write_cb |
; ModuleID = 'AnghaBench/linux/drivers/media/usb/gspca/extr_spca506.c_sd_config.c'
source_filename = "AnghaBench/linux/drivers/media/usb/gspca/extr_spca506.c_sd_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.cam = type { i32, i32 }
@vga_mode = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sd_config], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sd_config(ptr nocapture noundef writeonly %0, ptr nocapture readnone %1) #0 {
%3 = load i32, ptr @vga_mode, align 4, !tbaa !5
%4 = getelementptr inbounds %struct.cam, ptr %0, i64 0, i32 1
store i32 %3, ptr %4, align 4, !tbaa !9
%5 = tail call i32 @ARRAY_SIZE(i32 noundef %3) #2
store i32 %5, ptr %0, align 4, !tbaa !11
ret i32 0
}
declare i32 @ARRAY_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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"cam", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/usb/gspca/extr_spca506.c_sd_config.c'
source_filename = "AnghaBench/linux/drivers/media/usb/gspca/extr_spca506.c_sd_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@vga_mode = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sd_config], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @sd_config(ptr nocapture noundef writeonly %0, ptr nocapture readnone %1) #0 {
%3 = load i32, ptr @vga_mode, align 4, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %3, ptr %4, align 4, !tbaa !10
%5 = tail call i32 @ARRAY_SIZE(i32 noundef %3) #2
store i32 %5, ptr %0, align 4, !tbaa !12
ret i32 0
}
declare i32 @ARRAY_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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 4}
!11 = !{!"cam", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
| linux_drivers_media_usb_gspca_extr_spca506.c_sd_config |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/isa/gus/extr_gus_io.c_snd_gf1_i_write8.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/isa/gus/extr_gus_io.c_snd_gf1_i_write8.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 @snd_gf1_i_write8(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) local_unnamed_addr #0 {
%4 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #2
%5 = tail call i32 @__snd_gf1_write8(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #2
%6 = tail call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @__snd_gf1_write8(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/isa/gus/extr_gus_io.c_snd_gf1_i_write8.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/isa/gus/extr_gus_io.c_snd_gf1_i_write8.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 @snd_gf1_i_write8(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) local_unnamed_addr #0 {
%4 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #2
%5 = tail call i32 @__snd_gf1_write8(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #2
%6 = tail call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @__snd_gf1_write8(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_sound_isa_gus_extr_gus_io.c_snd_gf1_i_write8 |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/ice1712/extr_delta.c_snd_ice1712_delta_cs8403_spdif_write.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/ice1712/extr_delta.c_snd_ice1712_delta_cs8403_spdif_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK = dso_local local_unnamed_addr global i8 0, align 1
@ICE1712_DELTA_SPDIF_OUT_STAT_DATA = dso_local local_unnamed_addr global i8 0, align 1
@ICE1712_IREG_GPIO_DATA = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_ice1712_delta_cs8403_spdif_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @snd_ice1712_delta_cs8403_spdif_write(ptr noundef %0, i8 noundef zeroext %1) #0 {
%3 = load i8, ptr @ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK, align 1, !tbaa !5
%4 = load i8, ptr @ICE1712_DELTA_SPDIF_OUT_STAT_DATA, align 1, !tbaa !5
%5 = tail call i32 @mutex_lock(ptr noundef %0) #2
%6 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !8
%7 = tail call zeroext i8 @snd_ice1712_read(ptr noundef %0, i32 noundef %6) #2
%8 = or i8 %4, %3
%9 = xor i8 %8, -1
%10 = zext i8 %1 to i32
br label %11
11: ; preds = %2, %11
%12 = phi i32 [ 7, %2 ], [ %27, %11 ]
%13 = phi i8 [ %7, %2 ], [ %23, %11 ]
%14 = and i8 %13, %9
%15 = shl nuw i32 1, %12
%16 = and i32 %15, %10
%17 = icmp eq i32 %16, 0
%18 = select i1 %17, i8 0, i8 %4
%19 = or i8 %18, %14
%20 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !8
%21 = tail call i32 @snd_ice1712_write(ptr noundef %0, i32 noundef %20, i8 noundef zeroext %19) #2
%22 = tail call i32 @udelay(i32 noundef 100) #2
%23 = or i8 %19, %3
%24 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !8
%25 = tail call i32 @snd_ice1712_write(ptr noundef %0, i32 noundef %24, i8 noundef zeroext %23) #2
%26 = tail call i32 @udelay(i32 noundef 100) #2
%27 = add nsw i32 %12, -1
%28 = icmp eq i32 %12, 0
br i1 %28, label %29, label %11, !llvm.loop !10
29: ; preds = %11
%30 = xor i8 %3, -1
%31 = and i8 %19, %30
%32 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !8
%33 = tail call i32 @snd_ice1712_write(ptr noundef %0, i32 noundef %32, i8 noundef zeroext %31) #2
%34 = tail call i32 @mutex_unlock(ptr noundef %0) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare zeroext i8 @snd_ice1712_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ice1712_write(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @udelay(i32 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/ice1712/extr_delta.c_snd_ice1712_delta_cs8403_spdif_write.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/ice1712/extr_delta.c_snd_ice1712_delta_cs8403_spdif_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK = common local_unnamed_addr global i8 0, align 1
@ICE1712_DELTA_SPDIF_OUT_STAT_DATA = common local_unnamed_addr global i8 0, align 1
@ICE1712_IREG_GPIO_DATA = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @snd_ice1712_delta_cs8403_spdif_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @snd_ice1712_delta_cs8403_spdif_write(ptr noundef %0, i8 noundef zeroext %1) #0 {
%3 = load i8, ptr @ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK, align 1, !tbaa !6
%4 = load i8, ptr @ICE1712_DELTA_SPDIF_OUT_STAT_DATA, align 1, !tbaa !6
%5 = tail call i32 @mutex_lock(ptr noundef %0) #2
%6 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !9
%7 = tail call zeroext i8 @snd_ice1712_read(ptr noundef %0, i32 noundef %6) #2
%8 = or i8 %4, %3
%9 = xor i8 %8, -1
%10 = zext i8 %1 to i32
br label %11
11: ; preds = %2, %11
%12 = phi i32 [ 7, %2 ], [ %27, %11 ]
%13 = phi i8 [ %7, %2 ], [ %23, %11 ]
%14 = and i8 %13, %9
%15 = shl nuw i32 1, %12
%16 = and i32 %15, %10
%17 = icmp eq i32 %16, 0
%18 = select i1 %17, i8 0, i8 %4
%19 = or i8 %18, %14
%20 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !9
%21 = tail call i32 @snd_ice1712_write(ptr noundef %0, i32 noundef %20, i8 noundef zeroext %19) #2
%22 = tail call i32 @udelay(i32 noundef 100) #2
%23 = or i8 %19, %3
%24 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !9
%25 = tail call i32 @snd_ice1712_write(ptr noundef %0, i32 noundef %24, i8 noundef zeroext %23) #2
%26 = tail call i32 @udelay(i32 noundef 100) #2
%27 = add nsw i32 %12, -1
%28 = icmp eq i32 %12, 0
br i1 %28, label %29, label %11, !llvm.loop !11
29: ; preds = %11
%30 = xor i8 %3, -1
%31 = and i8 %19, %30
%32 = load i32, ptr @ICE1712_IREG_GPIO_DATA, align 4, !tbaa !9
%33 = tail call i32 @snd_ice1712_write(ptr noundef %0, i32 noundef %32, i8 noundef zeroext %31) #2
%34 = tail call i32 @mutex_unlock(ptr noundef %0) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare zeroext i8 @snd_ice1712_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_ice1712_write(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @udelay(i32 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 = !{!"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"}
| fastsocket_kernel_sound_pci_ice1712_extr_delta.c_snd_ice1712_delta_cs8403_spdif_write |
; ModuleID = 'AnghaBench/reactos/sdk/lib/inflib/extr_infcore.c_trailing_spaces_state.c'
source_filename = "AnghaBench/reactos/sdk/lib/inflib/extr_infcore.c_trailing_spaces_state.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"
@EOL_BACKSLASH = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @trailing_spaces_state], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @trailing_spaces_state(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @is_eol(ptr noundef %0, ptr noundef %1) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %19
5: ; preds = %2, %15
%6 = phi ptr [ %16, %15 ], [ %1, %2 ]
%7 = load i8, ptr %6, align 1, !tbaa !5
%8 = icmp eq i8 %7, 92
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr @EOL_BACKSLASH, align 4, !tbaa !8
%11 = tail call i32 @set_state(ptr noundef %0, i32 noundef %10) #2
br label %22
12: ; preds = %5
%13 = tail call i32 @isspaceW(i8 noundef signext %7) #2
%14 = icmp eq i32 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = getelementptr inbounds i8, ptr %6, i64 1
%17 = tail call i32 @is_eol(ptr noundef %0, ptr noundef nonnull %16) #2
%18 = icmp eq i32 %17, 0
br i1 %18, label %5, label %19, !llvm.loop !10
19: ; preds = %15, %12, %2
%20 = phi ptr [ %1, %2 ], [ %6, %12 ], [ %16, %15 ]
%21 = tail call i32 @pop_state(ptr noundef %0) #2
br label %22
22: ; preds = %19, %9
%23 = phi ptr [ %20, %19 ], [ %6, %9 ]
ret ptr %23
}
declare i32 @is_eol(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @set_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @isspaceW(i8 noundef signext) local_unnamed_addr #1
declare i32 @pop_state(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/reactos/sdk/lib/inflib/extr_infcore.c_trailing_spaces_state.c'
source_filename = "AnghaBench/reactos/sdk/lib/inflib/extr_infcore.c_trailing_spaces_state.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EOL_BACKSLASH = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @trailing_spaces_state], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @trailing_spaces_state(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @is_eol(ptr noundef %0, ptr noundef %1) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %19
5: ; preds = %2, %15
%6 = phi ptr [ %16, %15 ], [ %1, %2 ]
%7 = load i8, ptr %6, align 1, !tbaa !6
%8 = icmp eq i8 %7, 92
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr @EOL_BACKSLASH, align 4, !tbaa !9
%11 = tail call i32 @set_state(ptr noundef %0, i32 noundef %10) #2
br label %22
12: ; preds = %5
%13 = tail call i32 @isspaceW(i8 noundef signext %7) #2
%14 = icmp eq i32 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = getelementptr inbounds i8, ptr %6, i64 1
%17 = tail call i32 @is_eol(ptr noundef %0, ptr noundef nonnull %16) #2
%18 = icmp eq i32 %17, 0
br i1 %18, label %5, label %19, !llvm.loop !11
19: ; preds = %15, %12, %2
%20 = phi ptr [ %1, %2 ], [ %6, %12 ], [ %16, %15 ]
%21 = tail call i32 @pop_state(ptr noundef %0) #2
br label %22
22: ; preds = %19, %9
%23 = phi ptr [ %20, %19 ], [ %6, %9 ]
ret ptr %23
}
declare i32 @is_eol(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @set_state(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @isspaceW(i8 noundef signext) local_unnamed_addr #1
declare i32 @pop_state(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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"}
| reactos_sdk_lib_inflib_extr_infcore.c_trailing_spaces_state |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_read_clock_registers.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_read_clock_registers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
@CG_SPLL_FUNC_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@CG_SPLL_FUNC_CNTL_2 = dso_local local_unnamed_addr global i32 0, align 4
@CG_SPLL_FUNC_CNTL_3 = dso_local local_unnamed_addr global i32 0, align 4
@CG_SPLL_SPREAD_SPECTRUM = dso_local local_unnamed_addr global i32 0, align 4
@CG_SPLL_SPREAD_SPECTRUM_2 = dso_local local_unnamed_addr global i32 0, align 4
@MPLL_AD_FUNC_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@MPLL_AD_FUNC_CNTL_2 = dso_local local_unnamed_addr global i32 0, align 4
@MPLL_DQ_FUNC_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@MPLL_DQ_FUNC_CNTL_2 = dso_local local_unnamed_addr global i32 0, align 4
@MCLK_PWRMGT_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@DLL_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @rv770_read_clock_registers], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @rv770_read_clock_registers(ptr noundef %0) #0 {
%2 = tail call ptr @rv770_get_pi(ptr noundef %0) #2
%3 = load i32, ptr @CG_SPLL_FUNC_CNTL, align 4, !tbaa !5
%4 = tail call ptr @RREG32(i32 noundef %3) #2
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 10
store ptr %4, ptr %5, align 8, !tbaa !9
%6 = load i32, ptr @CG_SPLL_FUNC_CNTL_2, align 4, !tbaa !5
%7 = tail call ptr @RREG32(i32 noundef %6) #2
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 9
store ptr %7, ptr %8, align 8, !tbaa !14
%9 = load i32, ptr @CG_SPLL_FUNC_CNTL_3, align 4, !tbaa !5
%10 = tail call ptr @RREG32(i32 noundef %9) #2
%11 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 8
store ptr %10, ptr %11, align 8, !tbaa !15
%12 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM, align 4, !tbaa !5
%13 = tail call ptr @RREG32(i32 noundef %12) #2
%14 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 7
store ptr %13, ptr %14, align 8, !tbaa !16
%15 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM_2, align 4, !tbaa !5
%16 = tail call ptr @RREG32(i32 noundef %15) #2
%17 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 6
store ptr %16, ptr %17, align 8, !tbaa !17
%18 = load i32, ptr @MPLL_AD_FUNC_CNTL, align 4, !tbaa !5
%19 = tail call ptr @RREG32(i32 noundef %18) #2
%20 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 5
store ptr %19, ptr %20, align 8, !tbaa !18
%21 = load i32, ptr @MPLL_AD_FUNC_CNTL_2, align 4, !tbaa !5
%22 = tail call ptr @RREG32(i32 noundef %21) #2
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 4
store ptr %22, ptr %23, align 8, !tbaa !19
%24 = load i32, ptr @MPLL_DQ_FUNC_CNTL, align 4, !tbaa !5
%25 = tail call ptr @RREG32(i32 noundef %24) #2
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 3
store ptr %25, ptr %26, align 8, !tbaa !20
%27 = load i32, ptr @MPLL_DQ_FUNC_CNTL_2, align 4, !tbaa !5
%28 = tail call ptr @RREG32(i32 noundef %27) #2
%29 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 2
store ptr %28, ptr %29, align 8, !tbaa !21
%30 = load i32, ptr @MCLK_PWRMGT_CNTL, align 4, !tbaa !5
%31 = tail call ptr @RREG32(i32 noundef %30) #2
%32 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 1
store ptr %31, ptr %32, align 8, !tbaa !22
%33 = load i32, ptr @DLL_CNTL, align 4, !tbaa !5
%34 = tail call ptr @RREG32(i32 noundef %33) #2
store ptr %34, ptr %2, align 8, !tbaa !23
ret void
}
declare ptr @rv770_get_pi(ptr noundef) local_unnamed_addr #1
declare ptr @RREG32(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, !13, i64 80}
!10 = !{!"rv7xx_power_info", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !13, i64 72}
!15 = !{!10, !13, i64 64}
!16 = !{!10, !13, i64 56}
!17 = !{!10, !13, i64 48}
!18 = !{!10, !13, i64 40}
!19 = !{!10, !13, i64 32}
!20 = !{!10, !13, i64 24}
!21 = !{!10, !13, i64 16}
!22 = !{!10, !13, i64 8}
!23 = !{!10, !13, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_read_clock_registers.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_read_clock_registers.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CG_SPLL_FUNC_CNTL = common local_unnamed_addr global i32 0, align 4
@CG_SPLL_FUNC_CNTL_2 = common local_unnamed_addr global i32 0, align 4
@CG_SPLL_FUNC_CNTL_3 = common local_unnamed_addr global i32 0, align 4
@CG_SPLL_SPREAD_SPECTRUM = common local_unnamed_addr global i32 0, align 4
@CG_SPLL_SPREAD_SPECTRUM_2 = common local_unnamed_addr global i32 0, align 4
@MPLL_AD_FUNC_CNTL = common local_unnamed_addr global i32 0, align 4
@MPLL_AD_FUNC_CNTL_2 = common local_unnamed_addr global i32 0, align 4
@MPLL_DQ_FUNC_CNTL = common local_unnamed_addr global i32 0, align 4
@MPLL_DQ_FUNC_CNTL_2 = common local_unnamed_addr global i32 0, align 4
@MCLK_PWRMGT_CNTL = common local_unnamed_addr global i32 0, align 4
@DLL_CNTL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @rv770_read_clock_registers], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @rv770_read_clock_registers(ptr noundef %0) #0 {
%2 = tail call ptr @rv770_get_pi(ptr noundef %0) #2
%3 = load i32, ptr @CG_SPLL_FUNC_CNTL, align 4, !tbaa !6
%4 = tail call ptr @RREG32(i32 noundef %3) #2
%5 = getelementptr inbounds i8, ptr %2, i64 80
store ptr %4, ptr %5, align 8, !tbaa !10
%6 = load i32, ptr @CG_SPLL_FUNC_CNTL_2, align 4, !tbaa !6
%7 = tail call ptr @RREG32(i32 noundef %6) #2
%8 = getelementptr inbounds i8, ptr %2, i64 72
store ptr %7, ptr %8, align 8, !tbaa !15
%9 = load i32, ptr @CG_SPLL_FUNC_CNTL_3, align 4, !tbaa !6
%10 = tail call ptr @RREG32(i32 noundef %9) #2
%11 = getelementptr inbounds i8, ptr %2, i64 64
store ptr %10, ptr %11, align 8, !tbaa !16
%12 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM, align 4, !tbaa !6
%13 = tail call ptr @RREG32(i32 noundef %12) #2
%14 = getelementptr inbounds i8, ptr %2, i64 56
store ptr %13, ptr %14, align 8, !tbaa !17
%15 = load i32, ptr @CG_SPLL_SPREAD_SPECTRUM_2, align 4, !tbaa !6
%16 = tail call ptr @RREG32(i32 noundef %15) #2
%17 = getelementptr inbounds i8, ptr %2, i64 48
store ptr %16, ptr %17, align 8, !tbaa !18
%18 = load i32, ptr @MPLL_AD_FUNC_CNTL, align 4, !tbaa !6
%19 = tail call ptr @RREG32(i32 noundef %18) #2
%20 = getelementptr inbounds i8, ptr %2, i64 40
store ptr %19, ptr %20, align 8, !tbaa !19
%21 = load i32, ptr @MPLL_AD_FUNC_CNTL_2, align 4, !tbaa !6
%22 = tail call ptr @RREG32(i32 noundef %21) #2
%23 = getelementptr inbounds i8, ptr %2, i64 32
store ptr %22, ptr %23, align 8, !tbaa !20
%24 = load i32, ptr @MPLL_DQ_FUNC_CNTL, align 4, !tbaa !6
%25 = tail call ptr @RREG32(i32 noundef %24) #2
%26 = getelementptr inbounds i8, ptr %2, i64 24
store ptr %25, ptr %26, align 8, !tbaa !21
%27 = load i32, ptr @MPLL_DQ_FUNC_CNTL_2, align 4, !tbaa !6
%28 = tail call ptr @RREG32(i32 noundef %27) #2
%29 = getelementptr inbounds i8, ptr %2, i64 16
store ptr %28, ptr %29, align 8, !tbaa !22
%30 = load i32, ptr @MCLK_PWRMGT_CNTL, align 4, !tbaa !6
%31 = tail call ptr @RREG32(i32 noundef %30) #2
%32 = getelementptr inbounds i8, ptr %2, i64 8
store ptr %31, ptr %32, align 8, !tbaa !23
%33 = load i32, ptr @DLL_CNTL, align 4, !tbaa !6
%34 = tail call ptr @RREG32(i32 noundef %33) #2
store ptr %34, ptr %2, align 8, !tbaa !24
ret void
}
declare ptr @rv770_get_pi(ptr noundef) local_unnamed_addr #1
declare ptr @RREG32(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, !14, i64 80}
!11 = !{!"rv7xx_power_info", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !14, i64 72}
!16 = !{!11, !14, i64 64}
!17 = !{!11, !14, i64 56}
!18 = !{!11, !14, i64 48}
!19 = !{!11, !14, i64 40}
!20 = !{!11, !14, i64 32}
!21 = !{!11, !14, i64 24}
!22 = !{!11, !14, i64 16}
!23 = !{!11, !14, i64 8}
!24 = !{!11, !14, i64 0}
| linux_drivers_gpu_drm_radeon_extr_rv770_dpm.c_rv770_read_clock_registers |
; ModuleID = 'AnghaBench/freebsd/contrib/unbound/daemon/extr_cachedump.c_load_ref.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/daemon/extr_cachedump.c_load_ref.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.query_info = type { i32, i32, i32, i32 }
%struct.TYPE_3__ = type { ptr, i32 }
@.str = private unnamed_addr constant [7 x i8] c"BADREF\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %u\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"error cannot parse flags: %s\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @load_ref], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @load_ref(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5) #0 {
%7 = alloca %struct.query_info, align 4
%8 = alloca i32, align 4
%9 = tail call i64 @sldns_buffer_begin(ptr noundef %1) #3
%10 = inttoptr i64 %9 to ptr
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
%11 = tail call i32 @ssl_read_buf(ptr noundef %0, ptr noundef %1) #3
%12 = icmp eq i32 %11, 0
br i1 %12, label %49, label %13
13: ; preds = %6
%14 = tail call i64 @strncmp(ptr noundef %10, ptr noundef nonnull @.str, i32 noundef 6) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 0, ptr %5, align 4, !tbaa !5
br label %49
17: ; preds = %13
%18 = call ptr @load_qinfo(ptr noundef %10, ptr noundef nonnull %7, ptr noundef %3) #3
%19 = icmp eq ptr %18, null
br i1 %19, label %49, label %20
20: ; preds = %17
%21 = call i32 @sscanf(ptr noundef nonnull %18, ptr noundef nonnull @.str.1, ptr noundef nonnull %8) #3
%22 = icmp eq i32 %21, 1
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = call i32 @log_warn(ptr noundef nonnull @.str.2, ptr noundef nonnull %18) #3
br label %49
25: ; preds = %20
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %2, i64 0, i32 1
%27 = load i32, ptr %26, align 8, !tbaa !9
%28 = getelementptr inbounds %struct.query_info, ptr %7, i64 0, i32 3
%29 = load i32, ptr %28, align 4, !tbaa !13
%30 = getelementptr inbounds %struct.query_info, ptr %7, i64 0, i32 2
%31 = load i32, ptr %30, align 4, !tbaa !15
%32 = getelementptr inbounds %struct.query_info, ptr %7, i64 0, i32 1
%33 = load i32, ptr %32, align 4, !tbaa !16
%34 = load i32, ptr %7, align 4, !tbaa !17
%35 = load i32, ptr %8, align 4, !tbaa !5
%36 = load ptr, ptr %2, align 8, !tbaa !18
%37 = load i32, ptr %36, align 4, !tbaa !5
%38 = call ptr @rrset_cache_lookup(i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %37, i32 noundef 0) #3
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %41
40: ; preds = %25
store i32 0, ptr %5, align 4, !tbaa !5
br label %49
41: ; preds = %25
%42 = load ptr, ptr %2, align 8, !tbaa !18
%43 = load i32, ptr %42, align 4, !tbaa !5
%44 = call ptr @packed_rrset_copy_region(ptr noundef nonnull %38, ptr noundef %3, i32 noundef %43) #3
store ptr %44, ptr %4, align 8, !tbaa !19
%45 = call i32 @lock_rw_unlock(ptr noundef nonnull %38) #3
%46 = load ptr, ptr %4, align 8, !tbaa !19
%47 = icmp ne ptr %46, null
%48 = zext i1 %47 to i32
br label %49
49: ; preds = %17, %6, %41, %40, %23, %16
%50 = phi i32 [ 1, %16 ], [ 0, %23 ], [ %48, %41 ], [ 1, %40 ], [ 0, %6 ], [ 0, %17 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #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 i64 @sldns_buffer_begin(ptr noundef) local_unnamed_addr #2
declare i32 @ssl_read_buf(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @load_qinfo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_warn(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @rrset_cache_lookup(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @packed_rrset_copy_region(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @lock_rw_unlock(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"worker", !11, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0, !6, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 12}
!14 = !{!"query_info", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!15 = !{!14, !6, i64 8}
!16 = !{!14, !6, i64 4}
!17 = !{!14, !6, i64 0}
!18 = !{!10, !12, i64 0}
!19 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/unbound/daemon/extr_cachedump.c_load_ref.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/daemon/extr_cachedump.c_load_ref.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.query_info = type { i32, i32, i32, i32 }
@.str = private unnamed_addr constant [7 x i8] c"BADREF\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %u\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"error cannot parse flags: %s\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @load_ref], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @load_ref(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5) #0 {
%7 = alloca %struct.query_info, align 4
%8 = alloca i32, align 4
%9 = tail call i64 @sldns_buffer_begin(ptr noundef %1) #3
%10 = inttoptr i64 %9 to ptr
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
%11 = tail call i32 @ssl_read_buf(ptr noundef %0, ptr noundef %1) #3
%12 = icmp eq i32 %11, 0
br i1 %12, label %49, label %13
13: ; preds = %6
%14 = tail call i64 @strncmp(ptr noundef %10, ptr noundef nonnull @.str, i32 noundef 6) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 0, ptr %5, align 4, !tbaa !6
br label %49
17: ; preds = %13
%18 = call ptr @load_qinfo(ptr noundef %10, ptr noundef nonnull %7, ptr noundef %3) #3
%19 = icmp eq ptr %18, null
br i1 %19, label %49, label %20
20: ; preds = %17
%21 = call i32 @sscanf(ptr noundef nonnull %18, ptr noundef nonnull @.str.1, ptr noundef nonnull %8) #3
%22 = icmp eq i32 %21, 1
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = call i32 @log_warn(ptr noundef nonnull @.str.2, ptr noundef nonnull %18) #3
br label %49
25: ; preds = %20
%26 = getelementptr inbounds i8, ptr %2, i64 8
%27 = load i32, ptr %26, align 8, !tbaa !10
%28 = getelementptr inbounds i8, ptr %7, i64 12
%29 = load i32, ptr %28, align 4, !tbaa !14
%30 = getelementptr inbounds i8, ptr %7, i64 8
%31 = load i32, ptr %30, align 4, !tbaa !16
%32 = getelementptr inbounds i8, ptr %7, i64 4
%33 = load i32, ptr %32, align 4, !tbaa !17
%34 = load i32, ptr %7, align 4, !tbaa !18
%35 = load i32, ptr %8, align 4, !tbaa !6
%36 = load ptr, ptr %2, align 8, !tbaa !19
%37 = load i32, ptr %36, align 4, !tbaa !6
%38 = call ptr @rrset_cache_lookup(i32 noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %37, i32 noundef 0) #3
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %41
40: ; preds = %25
store i32 0, ptr %5, align 4, !tbaa !6
br label %49
41: ; preds = %25
%42 = load ptr, ptr %2, align 8, !tbaa !19
%43 = load i32, ptr %42, align 4, !tbaa !6
%44 = call ptr @packed_rrset_copy_region(ptr noundef nonnull %38, ptr noundef %3, i32 noundef %43) #3
store ptr %44, ptr %4, align 8, !tbaa !20
%45 = call i32 @lock_rw_unlock(ptr noundef nonnull %38) #3
%46 = load ptr, ptr %4, align 8, !tbaa !20
%47 = icmp ne ptr %46, null
%48 = zext i1 %47 to i32
br label %49
49: ; preds = %17, %6, %41, %40, %23, %16
%50 = phi i32 [ 1, %16 ], [ 0, %23 ], [ %48, %41 ], [ 1, %40 ], [ 0, %6 ], [ 0, %17 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #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 i64 @sldns_buffer_begin(ptr noundef) local_unnamed_addr #2
declare i32 @ssl_read_buf(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @load_qinfo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_warn(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @rrset_cache_lookup(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @packed_rrset_copy_region(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @lock_rw_unlock(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"worker", !12, i64 0}
!12 = !{!"TYPE_3__", !13, i64 0, !7, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 12}
!15 = !{!"query_info", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!16 = !{!15, !7, i64 8}
!17 = !{!15, !7, i64 4}
!18 = !{!15, !7, i64 0}
!19 = !{!11, !13, i64 0}
!20 = !{!13, !13, i64 0}
| freebsd_contrib_unbound_daemon_extr_cachedump.c_load_ref |
; ModuleID = 'AnghaBench/libgit2/tests/worktree/extr_refs.c_test_worktree_refs__list.c'
source_filename = "AnghaBench/libgit2/tests/worktree/extr_refs.c_test_worktree_refs__list.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32, ptr }
@fixture = dso_local local_unnamed_addr global %struct.TYPE_6__ zeroinitializer, align 4
@GIT_ERROR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @test_worktree_refs__list() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_5__, align 8
%2 = alloca %struct.TYPE_5__, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
%3 = load i32, ptr getelementptr inbounds (%struct.TYPE_6__, ptr @fixture, i64 0, i32 1), align 4, !tbaa !5
%4 = call i32 @git_reference_list(ptr noundef nonnull %1, i32 noundef %3) #3
%5 = call i32 @cl_git_pass(i32 noundef %4) #3
%6 = load i32, ptr @fixture, align 4, !tbaa !10
%7 = call i32 @git_reference_list(ptr noundef nonnull %2, i32 noundef %6) #3
%8 = call i32 @cl_git_pass(i32 noundef %7) #3
%9 = load i32, ptr %1, align 8, !tbaa !11
%10 = load i32, ptr %2, align 8, !tbaa !11
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = icmp eq i32 %9, 0
br i1 %13, label %45, label %14
14: ; preds = %12
%15 = getelementptr inbounds %struct.TYPE_5__, ptr %1, i64 0, i32 1
%16 = getelementptr inbounds %struct.TYPE_5__, ptr %2, i64 0, i32 1
br label %19
17: ; preds = %0
%18 = load i32, ptr @GIT_ERROR, align 4, !tbaa !14
br label %45
19: ; preds = %14, %40
%20 = phi i64 [ 0, %14 ], [ %41, %40 ]
%21 = load i32, ptr %2, align 8, !tbaa !11
%22 = icmp eq i32 %21, 0
br i1 %22, label %38, label %28
23: ; preds = %28
%24 = add nuw nsw i64 %29, 1
%25 = load i32, ptr %2, align 8, !tbaa !11
%26 = zext i32 %25 to i64
%27 = icmp ult i64 %24, %26
br i1 %27, label %28, label %38, !llvm.loop !15
28: ; preds = %19, %23
%29 = phi i64 [ %24, %23 ], [ 0, %19 ]
%30 = load ptr, ptr %15, align 8, !tbaa !17
%31 = getelementptr inbounds i32, ptr %30, i64 %20
%32 = load i32, ptr %31, align 4, !tbaa !14
%33 = load ptr, ptr %16, align 8, !tbaa !17
%34 = getelementptr inbounds i32, ptr %33, i64 %29
%35 = load i32, ptr %34, align 4, !tbaa !14
%36 = call i32 @strcmp(i32 noundef %32, i32 noundef %35) #3
%37 = icmp eq i32 %36, 0
br i1 %37, label %40, label %23
38: ; preds = %19, %23
%39 = load i32, ptr @GIT_ERROR, align 4, !tbaa !14
br label %45
40: ; preds = %28
%41 = add nuw nsw i64 %20, 1
%42 = load i32, ptr %1, align 8, !tbaa !11
%43 = zext i32 %42 to i64
%44 = icmp ult i64 %41, %43
br i1 %44, label %19, label %45, !llvm.loop !18
45: ; preds = %40, %12, %38, %17
%46 = phi i32 [ %18, %17 ], [ %39, %38 ], [ 0, %12 ], [ 0, %40 ]
%47 = call i32 @git_strarray_free(ptr noundef nonnull %1) #3
%48 = call i32 @git_strarray_free(ptr noundef nonnull %2) #3
%49 = call i32 @cl_git_pass(i32 noundef %46) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #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 @cl_git_pass(i32 noundef) local_unnamed_addr #2
declare i32 @git_reference_list(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strcmp(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 i32 @git_strarray_free(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 = { 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}
!11 = !{!12, !7, i64 0}
!12 = !{!"TYPE_5__", !7, i64 0, !13, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !13, i64 8}
!18 = distinct !{!18, !16}
| ; ModuleID = 'AnghaBench/libgit2/tests/worktree/extr_refs.c_test_worktree_refs__list.c'
source_filename = "AnghaBench/libgit2/tests/worktree/extr_refs.c_test_worktree_refs__list.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 }
%struct.TYPE_5__ = type { i32, ptr }
@fixture = common local_unnamed_addr global %struct.TYPE_6__ zeroinitializer, align 4
@GIT_ERROR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_worktree_refs__list() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_5__, align 8
%2 = alloca %struct.TYPE_5__, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
%3 = load i32, ptr getelementptr inbounds (i8, ptr @fixture, i64 4), align 4, !tbaa !6
%4 = call i32 @git_reference_list(ptr noundef nonnull %1, i32 noundef %3) #3
%5 = call i32 @cl_git_pass(i32 noundef %4) #3
%6 = load i32, ptr @fixture, align 4, !tbaa !11
%7 = call i32 @git_reference_list(ptr noundef nonnull %2, i32 noundef %6) #3
%8 = call i32 @cl_git_pass(i32 noundef %7) #3
%9 = load i32, ptr %1, align 8, !tbaa !12
%10 = load i32, ptr %2, align 8, !tbaa !12
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = icmp eq i32 %9, 0
br i1 %13, label %45, label %14
14: ; preds = %12
%15 = getelementptr inbounds i8, ptr %1, i64 8
%16 = getelementptr inbounds i8, ptr %2, i64 8
br label %19
17: ; preds = %0
%18 = load i32, ptr @GIT_ERROR, align 4, !tbaa !15
br label %45
19: ; preds = %14, %40
%20 = phi i64 [ 0, %14 ], [ %41, %40 ]
%21 = load i32, ptr %2, align 8, !tbaa !12
%22 = icmp eq i32 %21, 0
br i1 %22, label %38, label %28
23: ; preds = %28
%24 = add nuw nsw i64 %29, 1
%25 = load i32, ptr %2, align 8, !tbaa !12
%26 = zext i32 %25 to i64
%27 = icmp ult i64 %24, %26
br i1 %27, label %28, label %38, !llvm.loop !16
28: ; preds = %19, %23
%29 = phi i64 [ %24, %23 ], [ 0, %19 ]
%30 = load ptr, ptr %15, align 8, !tbaa !18
%31 = getelementptr inbounds i32, ptr %30, i64 %20
%32 = load i32, ptr %31, align 4, !tbaa !15
%33 = load ptr, ptr %16, align 8, !tbaa !18
%34 = getelementptr inbounds i32, ptr %33, i64 %29
%35 = load i32, ptr %34, align 4, !tbaa !15
%36 = call i32 @strcmp(i32 noundef %32, i32 noundef %35) #3
%37 = icmp eq i32 %36, 0
br i1 %37, label %40, label %23
38: ; preds = %19, %23
%39 = load i32, ptr @GIT_ERROR, align 4, !tbaa !15
br label %45
40: ; preds = %28
%41 = add nuw nsw i64 %20, 1
%42 = load i32, ptr %1, align 8, !tbaa !12
%43 = zext i32 %42 to i64
%44 = icmp ult i64 %41, %43
br i1 %44, label %19, label %45, !llvm.loop !19
45: ; preds = %40, %12, %38, %17
%46 = phi i32 [ %18, %17 ], [ %39, %38 ], [ 0, %12 ], [ 0, %40 ]
%47 = call i32 @git_strarray_free(ptr noundef nonnull %1) #3
%48 = call i32 @git_strarray_free(ptr noundef nonnull %2) #3
%49 = call i32 @cl_git_pass(i32 noundef %46) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #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 @cl_git_pass(i32 noundef) local_unnamed_addr #2
declare i32 @git_reference_list(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strcmp(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 i32 @git_strarray_free(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 = { 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}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_5__", !8, i64 0, !14, i64 8}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!13, !14, i64 8}
!19 = distinct !{!19, !17}
| libgit2_tests_worktree_extr_refs.c_test_worktree_refs__list |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_create_capture_mixers.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_create_capture_mixers.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.hda_gen_spec = type { i32, i32, ptr, i32, i64, %struct.hda_input_mux }
%struct.hda_input_mux = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"Input Source\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Capture Source\00", align 1
@cap_src_temp = dso_local global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@NID_PATH_VOL_CTL = dso_local local_unnamed_addr global i64 0, align 8
@HDA_INPUT = dso_local local_unnamed_addr global i32 0, align 4
@NID_PATH_MUTE_CTL = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @create_capture_mixers], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @create_capture_mixers(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.hda_gen_spec, ptr %2, i64 0, i32 5
%4 = getelementptr inbounds %struct.hda_gen_spec, ptr %2, i64 0, i32 4
%5 = load i64, ptr %4, align 8, !tbaa !10
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i32, ptr %2, align 8, !tbaa !15
br label %9
9: ; preds = %1, %7
%10 = phi i32 [ %8, %7 ], [ 1, %1 ]
%11 = getelementptr inbounds %struct.hda_gen_spec, ptr %2, i64 0, i32 3
%12 = load i32, ptr %11, align 8, !tbaa !16
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %26
14: ; preds = %9
%15 = load i32, ptr %3, align 4, !tbaa !17
%16 = icmp sgt i32 %15, 1
br i1 %16, label %17, label %26
17: ; preds = %14
%18 = icmp sgt i32 %10, 1
%19 = select i1 %18, ptr @.str, ptr @.str.1
%20 = tail call ptr @snd_hda_gen_add_kctl(ptr noundef nonnull %2, ptr noundef nonnull %19, ptr noundef nonnull @cap_src_temp) #2
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, ptr @ENOMEM, align 4, !tbaa !18
%24 = sub nsw i32 0, %23
br label %116
25: ; preds = %17
store i32 %10, ptr %20, align 4, !tbaa !19
br label %26
26: ; preds = %25, %14, %9
%27 = icmp sgt i32 %10, 0
br i1 %27, label %28, label %116
28: ; preds = %26
%29 = getelementptr inbounds %struct.hda_gen_spec, ptr %2, i64 0, i32 1
%30 = getelementptr inbounds %struct.hda_gen_spec, ptr %2, i64 0, i32 2
br label %34
31: ; preds = %113
%32 = add nuw nsw i32 %35, 1
%33 = icmp eq i32 %32, %10
br i1 %33, label %116, label %34, !llvm.loop !21
34: ; preds = %28, %31
%35 = phi i32 [ 0, %28 ], [ %32, %31 ]
%36 = load i32, ptr %3, align 4, !tbaa !17
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %102
38: ; preds = %34
%39 = load i32, ptr %29, align 4, !tbaa !23
br label %40
40: ; preds = %38, %90
%41 = phi i64 [ %96, %90 ], [ 0, %38 ]
%42 = phi i32 [ %95, %90 ], [ 0, %38 ]
%43 = phi i32 [ %94, %90 ], [ 0, %38 ]
%44 = phi i32 [ %93, %90 ], [ 0, %38 ]
%45 = phi i32 [ %92, %90 ], [ %39, %38 ]
%46 = phi i32 [ %91, %90 ], [ 0, %38 ]
%47 = trunc i64 %41 to i32
%48 = tail call ptr @get_input_path(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %47) #2
%49 = icmp eq ptr %48, null
br i1 %49, label %90, label %50
50: ; preds = %40
%51 = tail call i32 @parse_capvol_in_path(ptr noundef nonnull %0, ptr noundef nonnull %48) #2
%52 = icmp eq i32 %43, 0
%53 = load ptr, ptr %48, align 8, !tbaa !24
%54 = load i64, ptr @NID_PATH_VOL_CTL, align 8, !tbaa !26
%55 = getelementptr inbounds i32, ptr %53, i64 %54
%56 = load i32, ptr %55, align 4, !tbaa !18
br i1 %52, label %64, label %57
57: ; preds = %50
%58 = icmp eq i32 %43, %56
br i1 %58, label %64, label %59
59: ; preds = %57
%60 = load i32, ptr @HDA_INPUT, align 4, !tbaa !18
%61 = tail call i32 @same_amp_caps(ptr noundef nonnull %0, i32 noundef %43, i32 noundef %56, i32 noundef %60) #2
%62 = icmp eq i32 %61, 0
%63 = select i1 %62, i32 1, i32 %45
br label %64
64: ; preds = %50, %59, %57
%65 = phi i32 [ %46, %57 ], [ 1, %59 ], [ %46, %50 ]
%66 = phi i32 [ %45, %57 ], [ %63, %59 ], [ %45, %50 ]
%67 = phi i32 [ %43, %57 ], [ %43, %59 ], [ %56, %50 ]
%68 = icmp eq i32 %42, 0
%69 = load ptr, ptr %48, align 8, !tbaa !24
%70 = load i64, ptr @NID_PATH_MUTE_CTL, align 8, !tbaa !26
%71 = getelementptr inbounds i32, ptr %69, i64 %70
%72 = load i32, ptr %71, align 4, !tbaa !18
br i1 %68, label %80, label %73
73: ; preds = %64
%74 = icmp eq i32 %42, %72
br i1 %74, label %80, label %75
75: ; preds = %73
%76 = load i32, ptr @HDA_INPUT, align 4, !tbaa !18
%77 = tail call i32 @same_amp_caps(ptr noundef nonnull %0, i32 noundef %42, i32 noundef %72, i32 noundef %76) #2
%78 = icmp eq i32 %77, 0
%79 = select i1 %78, i32 1, i32 %66
br label %80
80: ; preds = %64, %75, %73
%81 = phi i32 [ %65, %73 ], [ 1, %75 ], [ %65, %64 ]
%82 = phi i32 [ %66, %73 ], [ %79, %75 ], [ %66, %64 ]
%83 = phi i32 [ %42, %73 ], [ %42, %75 ], [ %72, %64 ]
%84 = load ptr, ptr %30, align 8, !tbaa !27
%85 = getelementptr inbounds i32, ptr %84, i64 %41
%86 = load i32, ptr %85, align 4, !tbaa !18
%87 = tail call i64 @is_inv_dmic_pin(ptr noundef nonnull %0, i32 noundef %86) #2
%88 = icmp eq i64 %87, 0
%89 = select i1 %88, i32 %44, i32 1
br label %90
90: ; preds = %40, %80
%91 = phi i32 [ %81, %80 ], [ %46, %40 ]
%92 = phi i32 [ %82, %80 ], [ %45, %40 ]
%93 = phi i32 [ %89, %80 ], [ %44, %40 ]
%94 = phi i32 [ %67, %80 ], [ %43, %40 ]
%95 = phi i32 [ %83, %80 ], [ %42, %40 ]
%96 = add nuw nsw i64 %41, 1
%97 = load i32, ptr %3, align 4, !tbaa !17
%98 = sext i32 %97 to i64
%99 = icmp slt i64 %96, %98
br i1 %99, label %40, label %100, !llvm.loop !28
100: ; preds = %90
%101 = icmp eq i32 %91, 0
br i1 %101, label %102, label %107
102: ; preds = %34, %100
%103 = phi i32 [ %95, %100 ], [ 0, %34 ]
%104 = phi i32 [ %94, %100 ], [ 0, %34 ]
%105 = phi i32 [ %93, %100 ], [ 0, %34 ]
%106 = tail call i32 @create_single_cap_vol_ctl(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %104, i32 noundef %103, i32 noundef %105) #2
br label %113
107: ; preds = %100
%108 = icmp eq i32 %92, 0
br i1 %108, label %109, label %111
109: ; preds = %107
%110 = tail call i32 @create_bind_cap_vol_ctl(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %94, i32 noundef %95) #2
br label %113
111: ; preds = %107
%112 = tail call i32 @create_multi_cap_vol_ctl(ptr noundef nonnull %0) #2
br label %113
113: ; preds = %109, %111, %102
%114 = phi i32 [ %112, %111 ], [ %110, %109 ], [ %106, %102 ]
%115 = icmp sgt i32 %114, -1
br i1 %115, label %31, label %116
116: ; preds = %113, %31, %26, %22
%117 = phi i32 [ %24, %22 ], [ 0, %26 ], [ %114, %113 ], [ 0, %31 ]
ret i32 %117
}
declare ptr @snd_hda_gen_add_kctl(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @get_input_path(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @parse_capvol_in_path(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @same_amp_caps(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @is_inv_dmic_pin(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @create_single_cap_vol_ctl(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @create_bind_cap_vol_ctl(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @create_multi_cap_vol_ctl(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 = !{!"hda_codec", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 24}
!11 = !{!"hda_gen_spec", !12, i64 0, !12, i64 4, !7, i64 8, !12, i64 16, !13, i64 24, !14, i64 32}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"hda_input_mux", !12, i64 0}
!15 = !{!11, !12, i64 0}
!16 = !{!11, !12, i64 16}
!17 = !{!14, !12, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"snd_kcontrol_new", !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!11, !12, i64 4}
!24 = !{!25, !7, i64 0}
!25 = !{!"nid_path", !7, i64 0}
!26 = !{!13, !13, i64 0}
!27 = !{!11, !7, i64 8}
!28 = distinct !{!28, !22}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_create_capture_mixers.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_create_capture_mixers.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 [13 x i8] c"Input Source\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Capture Source\00", align 1
@cap_src_temp = common global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@NID_PATH_VOL_CTL = common local_unnamed_addr global i64 0, align 8
@HDA_INPUT = common local_unnamed_addr global i32 0, align 4
@NID_PATH_MUTE_CTL = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @create_capture_mixers], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @create_capture_mixers(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %2, i64 32
%4 = getelementptr inbounds i8, ptr %2, i64 24
%5 = load i64, ptr %4, align 8, !tbaa !11
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i32, ptr %2, align 8, !tbaa !16
br label %9
9: ; preds = %1, %7
%10 = phi i32 [ %8, %7 ], [ 1, %1 ]
%11 = getelementptr inbounds i8, ptr %2, i64 16
%12 = load i32, ptr %11, align 8, !tbaa !17
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %26
14: ; preds = %9
%15 = load i32, ptr %3, align 4, !tbaa !18
%16 = icmp sgt i32 %15, 1
br i1 %16, label %17, label %26
17: ; preds = %14
%18 = icmp sgt i32 %10, 1
%19 = select i1 %18, ptr @.str, ptr @.str.1
%20 = tail call ptr @snd_hda_gen_add_kctl(ptr noundef nonnull %2, ptr noundef nonnull %19, ptr noundef nonnull @cap_src_temp) #2
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, ptr @ENOMEM, align 4, !tbaa !19
%24 = sub nsw i32 0, %23
br label %116
25: ; preds = %17
store i32 %10, ptr %20, align 4, !tbaa !20
br label %26
26: ; preds = %25, %14, %9
%27 = icmp sgt i32 %10, 0
br i1 %27, label %28, label %116
28: ; preds = %26
%29 = getelementptr inbounds i8, ptr %2, i64 4
%30 = getelementptr inbounds i8, ptr %2, i64 8
br label %34
31: ; preds = %113
%32 = add nuw nsw i32 %35, 1
%33 = icmp eq i32 %32, %10
br i1 %33, label %116, label %34, !llvm.loop !22
34: ; preds = %28, %31
%35 = phi i32 [ 0, %28 ], [ %32, %31 ]
%36 = load i32, ptr %3, align 4, !tbaa !18
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %102
38: ; preds = %34
%39 = load i32, ptr %29, align 4, !tbaa !24
br label %40
40: ; preds = %38, %90
%41 = phi i64 [ %96, %90 ], [ 0, %38 ]
%42 = phi i32 [ %95, %90 ], [ 0, %38 ]
%43 = phi i32 [ %94, %90 ], [ 0, %38 ]
%44 = phi i32 [ %93, %90 ], [ 0, %38 ]
%45 = phi i32 [ %92, %90 ], [ %39, %38 ]
%46 = phi i32 [ %91, %90 ], [ 0, %38 ]
%47 = trunc nuw nsw i64 %41 to i32
%48 = tail call ptr @get_input_path(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %47) #2
%49 = icmp eq ptr %48, null
br i1 %49, label %90, label %50
50: ; preds = %40
%51 = tail call i32 @parse_capvol_in_path(ptr noundef nonnull %0, ptr noundef nonnull %48) #2
%52 = icmp eq i32 %43, 0
%53 = load ptr, ptr %48, align 8, !tbaa !25
%54 = load i64, ptr @NID_PATH_VOL_CTL, align 8, !tbaa !27
%55 = getelementptr inbounds i32, ptr %53, i64 %54
%56 = load i32, ptr %55, align 4, !tbaa !19
br i1 %52, label %64, label %57
57: ; preds = %50
%58 = icmp eq i32 %43, %56
br i1 %58, label %64, label %59
59: ; preds = %57
%60 = load i32, ptr @HDA_INPUT, align 4, !tbaa !19
%61 = tail call i32 @same_amp_caps(ptr noundef nonnull %0, i32 noundef %43, i32 noundef %56, i32 noundef %60) #2
%62 = icmp eq i32 %61, 0
%63 = select i1 %62, i32 1, i32 %45
br label %64
64: ; preds = %50, %59, %57
%65 = phi i32 [ %46, %57 ], [ 1, %59 ], [ %46, %50 ]
%66 = phi i32 [ %45, %57 ], [ %63, %59 ], [ %45, %50 ]
%67 = phi i32 [ %43, %57 ], [ %43, %59 ], [ %56, %50 ]
%68 = icmp eq i32 %42, 0
%69 = load ptr, ptr %48, align 8, !tbaa !25
%70 = load i64, ptr @NID_PATH_MUTE_CTL, align 8, !tbaa !27
%71 = getelementptr inbounds i32, ptr %69, i64 %70
%72 = load i32, ptr %71, align 4, !tbaa !19
br i1 %68, label %80, label %73
73: ; preds = %64
%74 = icmp eq i32 %42, %72
br i1 %74, label %80, label %75
75: ; preds = %73
%76 = load i32, ptr @HDA_INPUT, align 4, !tbaa !19
%77 = tail call i32 @same_amp_caps(ptr noundef nonnull %0, i32 noundef %42, i32 noundef %72, i32 noundef %76) #2
%78 = icmp eq i32 %77, 0
%79 = select i1 %78, i32 1, i32 %66
br label %80
80: ; preds = %64, %75, %73
%81 = phi i32 [ %65, %73 ], [ 1, %75 ], [ %65, %64 ]
%82 = phi i32 [ %66, %73 ], [ %79, %75 ], [ %66, %64 ]
%83 = phi i32 [ %42, %73 ], [ %42, %75 ], [ %72, %64 ]
%84 = load ptr, ptr %30, align 8, !tbaa !28
%85 = getelementptr inbounds i32, ptr %84, i64 %41
%86 = load i32, ptr %85, align 4, !tbaa !19
%87 = tail call i64 @is_inv_dmic_pin(ptr noundef nonnull %0, i32 noundef %86) #2
%88 = icmp eq i64 %87, 0
%89 = select i1 %88, i32 %44, i32 1
br label %90
90: ; preds = %40, %80
%91 = phi i32 [ %81, %80 ], [ %46, %40 ]
%92 = phi i32 [ %82, %80 ], [ %45, %40 ]
%93 = phi i32 [ %89, %80 ], [ %44, %40 ]
%94 = phi i32 [ %67, %80 ], [ %43, %40 ]
%95 = phi i32 [ %83, %80 ], [ %42, %40 ]
%96 = add nuw nsw i64 %41, 1
%97 = load i32, ptr %3, align 4, !tbaa !18
%98 = sext i32 %97 to i64
%99 = icmp slt i64 %96, %98
br i1 %99, label %40, label %100, !llvm.loop !29
100: ; preds = %90
%101 = icmp eq i32 %91, 0
br i1 %101, label %102, label %107
102: ; preds = %34, %100
%103 = phi i32 [ %95, %100 ], [ 0, %34 ]
%104 = phi i32 [ %94, %100 ], [ 0, %34 ]
%105 = phi i32 [ %93, %100 ], [ 0, %34 ]
%106 = tail call i32 @create_single_cap_vol_ctl(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %104, i32 noundef %103, i32 noundef %105) #2
br label %113
107: ; preds = %100
%108 = icmp eq i32 %92, 0
br i1 %108, label %109, label %111
109: ; preds = %107
%110 = tail call i32 @create_bind_cap_vol_ctl(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %94, i32 noundef %95) #2
br label %113
111: ; preds = %107
%112 = tail call i32 @create_multi_cap_vol_ctl(ptr noundef nonnull %0) #2
br label %113
113: ; preds = %109, %111, %102
%114 = phi i32 [ %112, %111 ], [ %110, %109 ], [ %106, %102 ]
%115 = icmp sgt i32 %114, -1
br i1 %115, label %31, label %116
116: ; preds = %113, %31, %26, %22
%117 = phi i32 [ %24, %22 ], [ 0, %26 ], [ %114, %113 ], [ 0, %31 ]
ret i32 %117
}
declare ptr @snd_hda_gen_add_kctl(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @get_input_path(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @parse_capvol_in_path(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @same_amp_caps(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @is_inv_dmic_pin(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @create_single_cap_vol_ctl(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @create_bind_cap_vol_ctl(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @create_multi_cap_vol_ctl(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 = !{!"hda_codec", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 24}
!12 = !{!"hda_gen_spec", !13, i64 0, !13, i64 4, !8, i64 8, !13, i64 16, !14, i64 24, !15, i64 32}
!13 = !{!"int", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!"hda_input_mux", !13, i64 0}
!16 = !{!12, !13, i64 0}
!17 = !{!12, !13, i64 16}
!18 = !{!15, !13, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !13, i64 0}
!21 = !{!"snd_kcontrol_new", !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !13, i64 4}
!25 = !{!26, !8, i64 0}
!26 = !{!"nid_path", !8, i64 0}
!27 = !{!14, !14, i64 0}
!28 = !{!12, !8, i64 8}
!29 = distinct !{!29, !23}
| fastsocket_kernel_sound_pci_hda_extr_hda_generic.c_create_capture_mixers |
; ModuleID = 'AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_ls.c_list_dir.c'
source_filename = "AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_ls.c_list_dir.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"
@LOG_ERR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%s: %m\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%s: out of memory\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@LS_DIR_FLAG = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @list_dir], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @list_dir(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @opendir(ptr noundef %1)
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call ptr @readdir(ptr noundef nonnull %4) #3
%8 = icmp eq ptr %7, null
br i1 %8, label %45, label %12
9: ; preds = %3
%10 = load i32, ptr @LOG_ERR, align 4, !tbaa !5
%11 = tail call i32 @syslog(i32 noundef %10, ptr noundef nonnull @.str, ptr noundef %1) #3
br label %52
12: ; preds = %6, %40
%13 = phi ptr [ %43, %40 ], [ %7, %6 ]
%14 = phi ptr [ %42, %40 ], [ null, %6 ]
%15 = phi i32 [ %41, %40 ], [ 0, %6 ]
%16 = load i32, ptr %13, align 4, !tbaa !9
%17 = tail call i64 @hide_file(i32 noundef %16, i32 noundef %2) #3
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %40, !llvm.loop !11
19: ; preds = %12
%20 = add nsw i32 %15, 1
%21 = shl i32 %20, 3
%22 = tail call ptr @realloc(ptr noundef %14, i32 noundef %21) #3
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %19
%25 = load i32, ptr @LOG_ERR, align 4, !tbaa !5
%26 = tail call i32 @syslog(i32 noundef %25, ptr noundef nonnull @.str.1, ptr noundef %1) #3
%27 = tail call i32 @free_files(ptr noundef %14, i32 noundef %15) #3
%28 = tail call i32 @closedir(ptr noundef nonnull %4)
br label %52
29: ; preds = %19
%30 = sext i32 %15 to i64
%31 = getelementptr inbounds ptr, ptr %22, i64 %30
%32 = load i32, ptr %13, align 4, !tbaa !9
%33 = tail call i32 @asprintf(ptr noundef nonnull %31, ptr noundef nonnull @.str.2, ptr noundef %1, i32 noundef %32) #3
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %40
35: ; preds = %29
%36 = load i32, ptr @LOG_ERR, align 4, !tbaa !5
%37 = tail call i32 @syslog(i32 noundef %36, ptr noundef nonnull @.str.1, ptr noundef %1) #3
%38 = tail call i32 @free_files(ptr noundef nonnull %22, i32 noundef %15) #3
%39 = tail call i32 @closedir(ptr noundef nonnull %4)
br label %52
40: ; preds = %29, %12
%41 = phi i32 [ %15, %12 ], [ %20, %29 ]
%42 = phi ptr [ %14, %12 ], [ %22, %29 ]
%43 = tail call ptr @readdir(ptr noundef nonnull %4) #3
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %12
45: ; preds = %40, %6
%46 = phi i32 [ 0, %6 ], [ %41, %40 ]
%47 = phi ptr [ null, %6 ], [ %42, %40 ]
%48 = tail call i32 @closedir(ptr noundef nonnull %4)
%49 = load i32, ptr @LS_DIR_FLAG, align 4, !tbaa !5
%50 = or i32 %49, %2
%51 = tail call i32 @list_files(ptr noundef %0, ptr noundef %47, i32 noundef %46, i32 noundef %50) #3
br label %52
52: ; preds = %35, %24, %45, %9
%53 = phi i32 [ -1, %9 ], [ %51, %45 ], [ -1, %24 ], [ -1, %35 ]
ret i32 %53
}
; Function Attrs: nofree nounwind
declare noalias noundef ptr @opendir(ptr nocapture noundef readonly) local_unnamed_addr #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @readdir(ptr noundef) local_unnamed_addr #2
declare i64 @hide_file(i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @realloc(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free_files(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @closedir(ptr nocapture noundef) local_unnamed_addr #1
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @list_files(ptr noundef, ptr noundef, i32 noundef, i32 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 = { 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 #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 = !{!"dirent", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_ls.c_list_dir.c'
source_filename = "AnghaBench/freebsd/crypto/heimdal/appl/ftp/ftpd/extr_ls.c_list_dir.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LOG_ERR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%s: %m\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"%s: out of memory\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@LS_DIR_FLAG = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @list_dir], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @list_dir(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @opendir(ptr noundef %1)
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call ptr @readdir(ptr noundef nonnull %4) #3
%8 = icmp eq ptr %7, null
br i1 %8, label %45, label %12
9: ; preds = %3
%10 = load i32, ptr @LOG_ERR, align 4, !tbaa !6
%11 = tail call i32 @syslog(i32 noundef %10, ptr noundef nonnull @.str, ptr noundef %1) #3
br label %52
12: ; preds = %6, %40
%13 = phi ptr [ %43, %40 ], [ %7, %6 ]
%14 = phi ptr [ %42, %40 ], [ null, %6 ]
%15 = phi i32 [ %41, %40 ], [ 0, %6 ]
%16 = load i32, ptr %13, align 4, !tbaa !10
%17 = tail call i64 @hide_file(i32 noundef %16, i32 noundef %2) #3
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %40, !llvm.loop !12
19: ; preds = %12
%20 = add nsw i32 %15, 1
%21 = shl i32 %20, 3
%22 = tail call ptr @realloc(ptr noundef %14, i32 noundef %21) #3
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %19
%25 = load i32, ptr @LOG_ERR, align 4, !tbaa !6
%26 = tail call i32 @syslog(i32 noundef %25, ptr noundef nonnull @.str.1, ptr noundef %1) #3
%27 = tail call i32 @free_files(ptr noundef %14, i32 noundef %15) #3
%28 = tail call i32 @closedir(ptr noundef nonnull %4)
br label %52
29: ; preds = %19
%30 = sext i32 %15 to i64
%31 = getelementptr inbounds ptr, ptr %22, i64 %30
%32 = load i32, ptr %13, align 4, !tbaa !10
%33 = tail call i32 @asprintf(ptr noundef nonnull %31, ptr noundef nonnull @.str.2, ptr noundef %1, i32 noundef %32) #3
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %40
35: ; preds = %29
%36 = load i32, ptr @LOG_ERR, align 4, !tbaa !6
%37 = tail call i32 @syslog(i32 noundef %36, ptr noundef nonnull @.str.1, ptr noundef %1) #3
%38 = tail call i32 @free_files(ptr noundef nonnull %22, i32 noundef %15) #3
%39 = tail call i32 @closedir(ptr noundef nonnull %4)
br label %52
40: ; preds = %29, %12
%41 = phi i32 [ %15, %12 ], [ %20, %29 ]
%42 = phi ptr [ %14, %12 ], [ %22, %29 ]
%43 = tail call ptr @readdir(ptr noundef nonnull %4) #3
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %12
45: ; preds = %40, %6
%46 = phi i32 [ 0, %6 ], [ %41, %40 ]
%47 = phi ptr [ null, %6 ], [ %42, %40 ]
%48 = tail call i32 @closedir(ptr noundef nonnull %4)
%49 = load i32, ptr @LS_DIR_FLAG, align 4, !tbaa !6
%50 = or i32 %49, %2
%51 = tail call i32 @list_files(ptr noundef %0, ptr noundef %47, i32 noundef %46, i32 noundef %50) #3
br label %52
52: ; preds = %35, %24, %45, %9
%53 = phi i32 [ -1, %9 ], [ %51, %45 ], [ -1, %24 ], [ -1, %35 ]
ret i32 %53
}
; Function Attrs: nofree nounwind
declare noalias noundef ptr @opendir(ptr nocapture noundef readonly) local_unnamed_addr #1
declare i32 @syslog(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @readdir(ptr noundef) local_unnamed_addr #2
declare i64 @hide_file(i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @realloc(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free_files(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @closedir(ptr nocapture noundef) local_unnamed_addr #1
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @list_files(ptr noundef, ptr noundef, i32 noundef, i32 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 = { 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 #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 = !{!"dirent", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| freebsd_crypto_heimdal_appl_ftp_ftpd_extr_ls.c_list_dir |
; ModuleID = 'AnghaBench/systemd/src/fstab-generator/extr_fstab-generator.c_determine_root.c'
source_filename = "AnghaBench/systemd/src/fstab-generator/extr_fstab-generator.c_determine_root.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"
@arg_root_what = dso_local local_unnamed_addr global i64 0, align 8
@arg_root_hash = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"/dev/mapper/root\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Using verity root device %s.\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @determine_root], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @determine_root() #0 {
%1 = load i64, ptr @arg_root_what, align 8, !tbaa !5
%2 = icmp ne i64 %1, 0
%3 = load i32, ptr @arg_root_hash, align 4
%4 = icmp eq i32 %3, 0
%5 = select i1 %2, i1 true, i1 %4
br i1 %5, label %13, label %6
6: ; preds = %0
%7 = tail call i64 @strdup(ptr noundef nonnull @.str) #2
store i64 %7, ptr @arg_root_what, align 8, !tbaa !5
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 (...) @log_oom() #2
br label %13
11: ; preds = %6
%12 = tail call i32 @log_info(ptr noundef nonnull @.str.1, i64 noundef %7) #2
br label %13
13: ; preds = %0, %11, %9
%14 = phi i32 [ 1, %11 ], [ %10, %9 ], [ 0, %0 ]
ret i32 %14
}
declare i64 @strdup(ptr noundef) local_unnamed_addr #1
declare i32 @log_oom(...) local_unnamed_addr #1
declare i32 @log_info(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"}
| ; ModuleID = 'AnghaBench/systemd/src/fstab-generator/extr_fstab-generator.c_determine_root.c'
source_filename = "AnghaBench/systemd/src/fstab-generator/extr_fstab-generator.c_determine_root.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@arg_root_what = common local_unnamed_addr global i64 0, align 8
@arg_root_hash = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"/dev/mapper/root\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Using verity root device %s.\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @determine_root], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @determine_root() #0 {
%1 = load i64, ptr @arg_root_what, align 8, !tbaa !6
%2 = icmp ne i64 %1, 0
%3 = load i32, ptr @arg_root_hash, align 4
%4 = icmp eq i32 %3, 0
%5 = select i1 %2, i1 true, i1 %4
br i1 %5, label %13, label %6
6: ; preds = %0
%7 = tail call i64 @strdup(ptr noundef nonnull @.str) #2
store i64 %7, ptr @arg_root_what, align 8, !tbaa !6
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @log_oom() #2
br label %13
11: ; preds = %6
%12 = tail call i32 @log_info(ptr noundef nonnull @.str.1, i64 noundef %7) #2
br label %13
13: ; preds = %0, %11, %9
%14 = phi i32 [ 1, %11 ], [ %10, %9 ], [ 0, %0 ]
ret i32 %14
}
declare i64 @strdup(ptr noundef) local_unnamed_addr #1
declare i32 @log_oom(...) local_unnamed_addr #1
declare i32 @log_info(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"}
| systemd_src_fstab-generator_extr_fstab-generator.c_determine_root |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_atombios.c_amdgpu_atombios_get_max_vddc.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_atombios.c_amdgpu_atombios_get_max_vddc.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.set_voltage = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32, i32, i32 }
%struct.TYPE_4__ = type { i32, i32, i32 }
@COMMAND = dso_local local_unnamed_addr global i32 0, align 4
@SetVoltage = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@SET_VOLTAGE_GET_MAX_VOLTAGE = dso_local local_unnamed_addr global i32 0, align 4
@ATOM_GET_VOLTAGE_LEVEL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Unknown table version %d, %d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @amdgpu_atombios_get_max_vddc(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
%5 = alloca %union.set_voltage, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #3
%8 = load i32, ptr @COMMAND, align 4, !tbaa !5
%9 = load i32, ptr @SetVoltage, align 4, !tbaa !5
%10 = tail call i32 @GetIndexIntoMasterTable(i32 noundef %8, i32 noundef %9) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
%11 = load i32, ptr %0, align 4, !tbaa !9
%12 = call i32 @amdgpu_atom_parse_cmd_header(i32 noundef %11, i32 noundef %10, ptr noundef nonnull %6, ptr noundef nonnull %7) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %4
%15 = load i32, ptr @EINVAL, align 4, !tbaa !5
%16 = sub nsw i32 0, %15
br label %45
17: ; preds = %4
%18 = load i32, ptr %7, align 4, !tbaa !5
switch i32 %18, label %37 [
i32 1, label %19
i32 2, label %22
i32 3, label %29
]
19: ; preds = %17
%20 = load i32, ptr @EINVAL, align 4, !tbaa !5
%21 = sub nsw i32 0, %20
br label %45
22: ; preds = %17
%23 = load i32, ptr @SET_VOLTAGE_GET_MAX_VOLTAGE, align 4, !tbaa !5
%24 = getelementptr inbounds %struct.TYPE_4__, ptr %5, i64 0, i32 2
store i32 %23, ptr %24, align 4, !tbaa !12
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %5, i64 0, i32 1
store i32 0, ptr %25, align 4, !tbaa !12
store i32 0, ptr %5, align 4, !tbaa !12
%26 = load i32, ptr %0, align 4, !tbaa !9
%27 = call i32 @amdgpu_atom_execute_table(i32 noundef %26, i32 noundef %10, ptr noundef nonnull %5) #3
%28 = load i32, ptr %5, align 4, !tbaa !12
br label %42
29: ; preds = %17
store i32 %1, ptr %5, align 4, !tbaa !12
%30 = load i32, ptr @ATOM_GET_VOLTAGE_LEVEL, align 4, !tbaa !5
%31 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 0, i32 2
store i32 %30, ptr %31, align 4, !tbaa !12
%32 = call i32 @cpu_to_le16(i32 noundef %2) #3
%33 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 0, i32 1
store i32 %32, ptr %33, align 4, !tbaa !12
%34 = load i32, ptr %0, align 4, !tbaa !9
%35 = call i32 @amdgpu_atom_execute_table(i32 noundef %34, i32 noundef %10, ptr noundef nonnull %5) #3
%36 = load i32, ptr %33, align 4, !tbaa !12
br label %42
37: ; preds = %17
%38 = load i32, ptr %6, align 4, !tbaa !5
%39 = call i32 @DRM_ERROR(ptr noundef nonnull @.str, i32 noundef %38, i32 noundef %18) #3
%40 = load i32, ptr @EINVAL, align 4, !tbaa !5
%41 = sub nsw i32 0, %40
br label %45
42: ; preds = %29, %22
%43 = phi i32 [ %36, %29 ], [ %28, %22 ]
%44 = call i32 @le16_to_cpu(i32 noundef %43) #3
store i32 %44, ptr %3, align 4, !tbaa !5
br label %45
45: ; preds = %42, %37, %19, %14
%46 = phi i32 [ %41, %37 ], [ 0, %42 ], [ %21, %19 ], [ %16, %14 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #3
ret i32 %46
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetIndexIntoMasterTable(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @amdgpu_atom_parse_cmd_header(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @amdgpu_atom_execute_table(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @le16_to_cpu(i32 noundef) local_unnamed_addr #2
declare i32 @cpu_to_le16(i32 noundef) local_unnamed_addr #2
declare i32 @DRM_ERROR(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"amdgpu_device", !11, i64 0}
!11 = !{!"TYPE_5__", !6, i64 0}
!12 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_atombios.c_amdgpu_atombios_get_max_vddc.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_atombios.c_amdgpu_atombios_get_max_vddc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%union.set_voltage = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32, i32, i32 }
@COMMAND = common local_unnamed_addr global i32 0, align 4
@SetVoltage = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@SET_VOLTAGE_GET_MAX_VOLTAGE = common local_unnamed_addr global i32 0, align 4
@ATOM_GET_VOLTAGE_LEVEL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Unknown table version %d, %d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @amdgpu_atombios_get_max_vddc(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
%5 = alloca %union.set_voltage, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #3
%8 = load i32, ptr @COMMAND, align 4, !tbaa !6
%9 = load i32, ptr @SetVoltage, align 4, !tbaa !6
%10 = tail call i32 @GetIndexIntoMasterTable(i32 noundef %8, i32 noundef %9) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
%11 = load i32, ptr %0, align 4, !tbaa !10
%12 = call i32 @amdgpu_atom_parse_cmd_header(i32 noundef %11, i32 noundef %10, ptr noundef nonnull %6, ptr noundef nonnull %7) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %4
%15 = load i32, ptr @EINVAL, align 4, !tbaa !6
%16 = sub nsw i32 0, %15
br label %44
17: ; preds = %4
%18 = load i32, ptr %7, align 4, !tbaa !6
switch i32 %18, label %36 [
i32 1, label %19
i32 2, label %22
i32 3, label %28
]
19: ; preds = %17
%20 = load i32, ptr @EINVAL, align 4, !tbaa !6
%21 = sub nsw i32 0, %20
br label %44
22: ; preds = %17
%23 = load i32, ptr @SET_VOLTAGE_GET_MAX_VOLTAGE, align 4, !tbaa !6
%24 = getelementptr inbounds i8, ptr %5, i64 8
store i32 %23, ptr %24, align 8, !tbaa !13
store <2 x i32> zeroinitializer, ptr %5, align 8, !tbaa !13
%25 = load i32, ptr %0, align 4, !tbaa !10
%26 = call i32 @amdgpu_atom_execute_table(i32 noundef %25, i32 noundef %10, ptr noundef nonnull %5) #3
%27 = load i32, ptr %5, align 8, !tbaa !13
br label %41
28: ; preds = %17
store i32 %1, ptr %5, align 8, !tbaa !13
%29 = load i32, ptr @ATOM_GET_VOLTAGE_LEVEL, align 4, !tbaa !6
%30 = getelementptr inbounds i8, ptr %5, i64 8
store i32 %29, ptr %30, align 8, !tbaa !13
%31 = call i32 @cpu_to_le16(i32 noundef %2) #3
%32 = getelementptr inbounds i8, ptr %5, i64 4
store i32 %31, ptr %32, align 4, !tbaa !13
%33 = load i32, ptr %0, align 4, !tbaa !10
%34 = call i32 @amdgpu_atom_execute_table(i32 noundef %33, i32 noundef %10, ptr noundef nonnull %5) #3
%35 = load i32, ptr %32, align 4, !tbaa !13
br label %41
36: ; preds = %17
%37 = load i32, ptr %6, align 4, !tbaa !6
%38 = call i32 @DRM_ERROR(ptr noundef nonnull @.str, i32 noundef %37, i32 noundef %18) #3
%39 = load i32, ptr @EINVAL, align 4, !tbaa !6
%40 = sub nsw i32 0, %39
br label %44
41: ; preds = %28, %22
%42 = phi i32 [ %35, %28 ], [ %27, %22 ]
%43 = call i32 @le16_to_cpu(i32 noundef %42) #3
store i32 %43, ptr %3, align 4, !tbaa !6
br label %44
44: ; preds = %41, %36, %19, %14
%45 = phi i32 [ %40, %36 ], [ 0, %41 ], [ %21, %19 ], [ %16, %14 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #3
ret i32 %45
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetIndexIntoMasterTable(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @amdgpu_atom_parse_cmd_header(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @amdgpu_atom_execute_table(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @le16_to_cpu(i32 noundef) local_unnamed_addr #2
declare i32 @cpu_to_le16(i32 noundef) local_unnamed_addr #2
declare i32 @DRM_ERROR(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, !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 = !{!"amdgpu_device", !12, i64 0}
!12 = !{!"TYPE_5__", !7, i64 0}
!13 = !{!8, !8, i64 0}
| linux_drivers_gpu_drm_amd_amdgpu_extr_amdgpu_atombios.c_amdgpu_atombios_get_max_vddc |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/vmwgfx/extr_vmwgfx_resource.c_vmw_resource_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/vmwgfx/extr_vmwgfx_resource.c_vmw_resource_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.vmw_resource = type { ptr, i32, i32, i32, i32, i64, ptr, i32, i32, i32, ptr, ptr, ptr, i32 }
; Function Attrs: nounwind uwtable
define dso_local i32 @vmw_resource_init(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 13
%7 = tail call i32 @kref_init(ptr noundef nonnull %6) #3
%8 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 12
store ptr null, ptr %8, align 8, !tbaa !5
store ptr %3, ptr %1, align 8, !tbaa !12
%9 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 11
store ptr %0, ptr %9, align 8, !tbaa !13
%10 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 10
store ptr %4, ptr %10, align 8, !tbaa !14
%11 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 9
%12 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %11) #3
%13 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 8
%14 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %13) #3
%15 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 7
%16 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %15) #3
%17 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 1
%18 = getelementptr inbounds %struct.vmw_resource, ptr %1, i64 0, i32 5
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
store <4 x i32> <i32 -1, i32 0, i32 0, i32 3>, ptr %17, align 8, !tbaa !15
%19 = icmp eq i32 %2, 0
br i1 %19, label %20, label %22
20: ; preds = %5
%21 = tail call i32 @vmw_resource_alloc_id(ptr noundef nonnull %1) #3
br label %22
22: ; preds = %5, %20
%23 = phi i32 [ %21, %20 ], [ 0, %5 ]
ret i32 %23
}
declare i32 @kref_init(ptr noundef) local_unnamed_addr #1
declare i32 @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #1
declare i32 @vmw_resource_alloc_id(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 72}
!6 = !{!"vmw_resource", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !7, i64 64}
!14 = !{!6, !7, i64 56}
!15 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/vmwgfx/extr_vmwgfx_resource.c_vmw_resource_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/vmwgfx/extr_vmwgfx_resource.c_vmw_resource_init.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 @vmw_resource_init(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = getelementptr inbounds i8, ptr %1, i64 80
%7 = tail call i32 @kref_init(ptr noundef nonnull %6) #3
%8 = getelementptr inbounds i8, ptr %1, i64 72
store ptr null, ptr %8, align 8, !tbaa !6
store ptr %3, ptr %1, align 8, !tbaa !13
%9 = getelementptr inbounds i8, ptr %1, i64 64
store ptr %0, ptr %9, align 8, !tbaa !14
%10 = getelementptr inbounds i8, ptr %1, i64 56
store ptr %4, ptr %10, align 8, !tbaa !15
%11 = getelementptr inbounds i8, ptr %1, i64 48
%12 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %11) #3
%13 = getelementptr inbounds i8, ptr %1, i64 44
%14 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %13) #3
%15 = getelementptr inbounds i8, ptr %1, i64 40
%16 = tail call i32 @INIT_LIST_HEAD(ptr noundef nonnull %15) #3
%17 = getelementptr inbounds i8, ptr %1, i64 8
%18 = getelementptr inbounds i8, ptr %1, i64 24
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %18, i8 0, i64 16, i1 false)
store <4 x i32> <i32 -1, i32 0, i32 0, i32 3>, ptr %17, align 8, !tbaa !16
%19 = icmp eq i32 %2, 0
br i1 %19, label %20, label %22
20: ; preds = %5
%21 = tail call i32 @vmw_resource_alloc_id(ptr noundef nonnull %1) #3
br label %22
22: ; preds = %5, %20
%23 = phi i32 [ %21, %20 ], [ 0, %5 ]
ret i32 %23
}
declare i32 @kref_init(ptr noundef) local_unnamed_addr #1
declare i32 @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #1
declare i32 @vmw_resource_alloc_id(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 72}
!7 = !{!"vmw_resource", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !8, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !11, i64 80}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!7, !8, i64 64}
!15 = !{!7, !8, i64 56}
!16 = !{!11, !11, i64 0}
| linux_drivers_gpu_drm_vmwgfx_extr_vmwgfx_resource.c_vmw_resource_init |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/dvb/frontends/extr_or51132.c_or51132_read_signal_strength.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/dvb/frontends/extr_or51132.c_or51132_read_signal_strength.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.dvb_frontend = type { %struct.TYPE_2__, i64 }
%struct.TYPE_2__ = type { ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @or51132_read_signal_strength], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @or51132_read_signal_strength(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = alloca i32, align 4
%4 = getelementptr inbounds %struct.dvb_frontend, ptr %0, i64 0, i32 1
%5 = load i64, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #2
%6 = load ptr, ptr %0, align 8, !tbaa !12
%7 = call i32 %6(ptr noundef nonnull %0, ptr noundef nonnull %3) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = inttoptr i64 %5 to ptr
%11 = load i32, ptr %10, align 4, !tbaa !13
%12 = icmp sgt i32 %11, 587202559
%13 = sdiv i32 %11, 8960
%14 = select i1 %12, i32 65535, i32 %13
store i32 %14, ptr %1, align 4, !tbaa !16
br label %15
15: ; preds = %2, %9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #2
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
; 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 = { 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 = !{!"dvb_frontend", !7, i64 0, !11, i64 8}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!6, !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"or51132_state", !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!15, !15, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/dvb/frontends/extr_or51132.c_or51132_read_signal_strength.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/dvb/frontends/extr_or51132.c_or51132_read_signal_strength.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 @or51132_read_signal_strength], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @or51132_read_signal_strength(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = alloca i32, align 4
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #2
%6 = load ptr, ptr %0, align 8, !tbaa !13
%7 = call i32 %6(ptr noundef nonnull %0, ptr noundef nonnull %3) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = inttoptr i64 %5 to ptr
%11 = load i32, ptr %10, align 4, !tbaa !14
%12 = icmp sgt i32 %11, 587202559
%13 = sdiv i32 %11, 8960
%14 = select i1 %12, i32 65535, i32 %13
store i32 %14, ptr %1, align 4, !tbaa !17
br label %15
15: ; preds = %2, %9
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #2
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
; 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 = { 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 = !{!"dvb_frontend", !8, i64 0, !12, i64 8}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!7, !9, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"or51132_state", !16, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!16, !16, i64 0}
| fastsocket_kernel_drivers_media_dvb_frontends_extr_or51132.c_or51132_read_signal_strength |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_client/extr_diff.c_diff_dir_added.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_client/extr_diff.c_diff_dir_added.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, i64 }
@SVN_NO_ERROR = dso_local local_unnamed_addr global ptr null, align 8
@DIFF_REVNUM_NONEXISTENT = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @diff_dir_added], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @diff_dir_added(ptr noundef %0, ptr noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr nocapture readnone %5, ptr nocapture noundef readonly %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = load ptr, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
%11 = getelementptr inbounds %struct.TYPE_7__, ptr %10, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !10
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !14
br label %39
16: ; preds = %8
%17 = icmp eq ptr %1, null
br i1 %17, label %23, label %18
18: ; preds = %16
%19 = load i32, ptr %10, align 8, !tbaa !15
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = icmp eq ptr %3, null
br i1 %22, label %23, label %26
23: ; preds = %16, %18, %21
%24 = phi ptr [ %1, %21 ], [ null, %18 ], [ null, %16 ]
%25 = tail call ptr @apr_hash_make(ptr noundef %7) #3
br label %26
26: ; preds = %23, %21
%27 = phi ptr [ %1, %21 ], [ %24, %23 ]
%28 = phi ptr [ %3, %21 ], [ %25, %23 ]
%29 = call i32 @svn_prop_diffs(ptr noundef nonnull %9, ptr noundef %4, ptr noundef %28, ptr noundef %7) #3
%30 = call i32 @SVN_ERR(i32 noundef %29) #3
%31 = icmp eq ptr %27, null
%32 = select i1 %31, ptr @DIFF_REVNUM_NONEXISTENT, ptr %27
%33 = load i32, ptr %32, align 4, !tbaa !16
%34 = load i32, ptr %2, align 4, !tbaa !17
%35 = load ptr, ptr %9, align 8, !tbaa !14
%36 = load i32, ptr @TRUE, align 4, !tbaa !16
%37 = call i32 @diff_props_changed(ptr noundef %0, i32 noundef %33, i32 noundef %34, ptr noundef %35, ptr noundef %28, ptr noundef %4, i32 noundef %36, ptr noundef nonnull %10, ptr noundef %7) #3
%38 = call ptr @svn_error_trace(i32 noundef %37) #3
br label %39
39: ; preds = %26, %14
%40 = phi ptr [ %15, %14 ], [ %38, %26 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
ret ptr %40
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @apr_hash_make(ptr noundef) local_unnamed_addr #2
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @svn_prop_diffs(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_error_trace(i32 noundef) local_unnamed_addr #2
declare i32 @diff_props_changed(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, 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 = { 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 = !{!"svn_diff_tree_processor_t", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 8}
!11 = !{!"TYPE_7__", !12, i64 0, !13, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!11, !12, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"TYPE_6__", !12, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_client/extr_diff.c_diff_dir_added.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_client/extr_diff.c_diff_dir_added.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SVN_NO_ERROR = common local_unnamed_addr global ptr null, align 8
@DIFF_REVNUM_NONEXISTENT = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @diff_dir_added], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @diff_dir_added(ptr noundef %0, ptr noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr nocapture readnone %5, ptr nocapture noundef readonly %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = load ptr, ptr %6, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
%11 = getelementptr inbounds i8, ptr %10, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !11
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !15
br label %39
16: ; preds = %8
%17 = icmp eq ptr %1, null
br i1 %17, label %23, label %18
18: ; preds = %16
%19 = load i32, ptr %10, align 8, !tbaa !16
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = icmp eq ptr %3, null
br i1 %22, label %23, label %26
23: ; preds = %16, %18, %21
%24 = phi ptr [ %1, %21 ], [ null, %18 ], [ null, %16 ]
%25 = tail call ptr @apr_hash_make(ptr noundef %7) #3
br label %26
26: ; preds = %23, %21
%27 = phi ptr [ %1, %21 ], [ %24, %23 ]
%28 = phi ptr [ %3, %21 ], [ %25, %23 ]
%29 = call i32 @svn_prop_diffs(ptr noundef nonnull %9, ptr noundef %4, ptr noundef %28, ptr noundef %7) #3
%30 = call i32 @SVN_ERR(i32 noundef %29) #3
%31 = icmp eq ptr %27, null
%32 = select i1 %31, ptr @DIFF_REVNUM_NONEXISTENT, ptr %27
%33 = load i32, ptr %32, align 4, !tbaa !17
%34 = load i32, ptr %2, align 4, !tbaa !18
%35 = load ptr, ptr %9, align 8, !tbaa !15
%36 = load i32, ptr @TRUE, align 4, !tbaa !17
%37 = call i32 @diff_props_changed(ptr noundef %0, i32 noundef %33, i32 noundef %34, ptr noundef %35, ptr noundef %28, ptr noundef %4, i32 noundef %36, ptr noundef nonnull %10, ptr noundef %7) #3
%38 = call ptr @svn_error_trace(i32 noundef %37) #3
br label %39
39: ; preds = %26, %14
%40 = phi ptr [ %15, %14 ], [ %38, %26 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
ret ptr %40
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @apr_hash_make(ptr noundef) local_unnamed_addr #2
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @svn_prop_diffs(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_error_trace(i32 noundef) local_unnamed_addr #2
declare i32 @diff_props_changed(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, 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 = { 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 = !{!"svn_diff_tree_processor_t", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 8}
!12 = !{!"TYPE_7__", !13, i64 0, !14, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!12, !13, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !13, i64 0}
!19 = !{!"TYPE_6__", !13, i64 0}
| freebsd_contrib_subversion_subversion_libsvn_client_extr_diff.c_diff_dir_added |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_sli.c_lpfc_sli4_alloc_resource_identifiers.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_sli.c_lpfc_sli4_alloc_resource_identifiers.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.lpfc_hba = type { ptr, ptr, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, %struct.TYPE_3__, i64, i32 }
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i64 }
@lpfc_idx_rsrc_rdy = dso_local local_unnamed_addr global i32 0, align 4
@LPFC_IDX_RSRC_RDY = dso_local local_unnamed_addr global i64 0, align 8
@LPFC_RSC_TYPE_FCOE_VFI = dso_local local_unnamed_addr global i32 0, align 4
@LPFC_RSC_TYPE_FCOE_VPI = dso_local local_unnamed_addr global i32 0, align 4
@LPFC_RSC_TYPE_FCOE_XRI = dso_local local_unnamed_addr global i32 0, align 4
@LPFC_RSC_TYPE_FCOE_RPI = dso_local local_unnamed_addr global i32 0, align 4
@KERN_INFO = dso_local local_unnamed_addr global i32 0, align 4
@LOG_MBOX = dso_local local_unnamed_addr global i32 0, align 4
@LOG_INIT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"2931 Detected extent resource change. Reallocating all extents.\0A\00", align 1
@KERN_ERR = dso_local local_unnamed_addr global i32 0, align 4
@LOG_SLI = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"3279 Invalid provisioning of rpi:%d\0A\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [37 x i8] c"3280 Invalid provisioning of vpi:%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"3281 Invalid provisioning of xri:%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"3282 Invalid provisioning of vfi:%d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @lpfc_sli4_alloc_resource_identifiers(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 10
%3 = load i32, ptr %2, align 8, !tbaa !5
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2
%7 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8
%8 = load i32, ptr %7, align 8, !tbaa !14
store i32 %8, ptr %6, align 8, !tbaa !15
br label %9
9: ; preds = %5, %1
%10 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 9
%11 = load i64, ptr %10, align 8, !tbaa !16
%12 = icmp eq i64 %11, 0
%13 = load i32, ptr @lpfc_idx_rsrc_rdy, align 4, !tbaa !17
%14 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 7
%15 = tail call i64 @bf_get(i32 noundef %13, ptr noundef nonnull %14) #2
%16 = load i64, ptr @LPFC_IDX_RSRC_RDY, align 8, !tbaa !18
%17 = icmp eq i64 %15, %16
br i1 %12, label %77, label %18
18: ; preds = %9
br i1 %17, label %19, label %53
19: ; preds = %18
%20 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VFI, align 4, !tbaa !17
%21 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %20) #2
%22 = icmp ne i32 %21, 0
%23 = zext i1 %22 to i32
%24 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VPI, align 4, !tbaa !17
%25 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %24) #2
%26 = icmp eq i32 %25, 0
%27 = select i1 %22, i32 2, i32 1
%28 = select i1 %26, i32 %23, i32 %27
%29 = load i32, ptr @LPFC_RSC_TYPE_FCOE_XRI, align 4, !tbaa !17
%30 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %29) #2
%31 = icmp ne i32 %30, 0
%32 = zext i1 %31 to i32
%33 = add nuw nsw i32 %28, %32
%34 = load i32, ptr @LPFC_RSC_TYPE_FCOE_RPI, align 4, !tbaa !17
%35 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %34) #2
%36 = icmp ne i32 %35, 0
%37 = sext i1 %36 to i32
%38 = icmp eq i32 %33, %37
br i1 %38, label %382, label %39
39: ; preds = %19
%40 = load i32, ptr @KERN_INFO, align 4, !tbaa !17
%41 = load i32, ptr @LOG_MBOX, align 4, !tbaa !17
%42 = load i32, ptr @LOG_INIT, align 4, !tbaa !17
%43 = or i32 %42, %41
%44 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %40, i32 noundef %43, ptr noundef nonnull @.str) #2
%45 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VFI, align 4, !tbaa !17
%46 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %45) #2
%47 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VPI, align 4, !tbaa !17
%48 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %47) #2
%49 = load i32, ptr @LPFC_RSC_TYPE_FCOE_XRI, align 4, !tbaa !17
%50 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %49) #2
%51 = load i32, ptr @LPFC_RSC_TYPE_FCOE_RPI, align 4, !tbaa !17
%52 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %51) #2
br label %53
53: ; preds = %39, %18
%54 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VFI, align 4, !tbaa !17
%55 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %54) #2
%56 = tail call i64 @unlikely(i32 noundef %55) #2
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %382
58: ; preds = %53
%59 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VPI, align 4, !tbaa !17
%60 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %59) #2
%61 = tail call i64 @unlikely(i32 noundef %60) #2
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %382
63: ; preds = %58
%64 = load i32, ptr @LPFC_RSC_TYPE_FCOE_RPI, align 4, !tbaa !17
%65 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %64) #2
%66 = tail call i64 @unlikely(i32 noundef %65) #2
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %382
68: ; preds = %63
%69 = load i32, ptr @LPFC_RSC_TYPE_FCOE_XRI, align 4, !tbaa !17
%70 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %69) #2
%71 = tail call i64 @unlikely(i32 noundef %70) #2
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %382
73: ; preds = %68
%74 = load i32, ptr @lpfc_idx_rsrc_rdy, align 4, !tbaa !17
%75 = load i64, ptr @LPFC_IDX_RSRC_RDY, align 8, !tbaa !18
%76 = tail call i32 @bf_set(i32 noundef %74, ptr noundef nonnull %14, i64 noundef %75) #2
br label %382
77: ; preds = %9
br i1 %17, label %78, label %81
78: ; preds = %77
%79 = tail call i32 @lpfc_sli4_dealloc_resource_identifiers(ptr noundef nonnull %0) #2
%80 = tail call i32 @lpfc_sli4_remove_rpis(ptr noundef nonnull %0) #2
br label %81
81: ; preds = %78, %77
%82 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8
%83 = load i32, ptr %82, align 8, !tbaa !14
%84 = icmp slt i32 %83, 1
br i1 %84, label %85, label %91
85: ; preds = %81
%86 = load i32, ptr @KERN_ERR, align 4, !tbaa !17
%87 = load i32, ptr @LOG_SLI, align 4, !tbaa !17
%88 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %86, i32 noundef %87, ptr noundef nonnull @.str.1, i32 noundef %83) #2
%89 = load i32, ptr @EINVAL, align 4, !tbaa !17
%90 = sub nsw i32 0, %89
br label %382
91: ; preds = %81
%92 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 1
%93 = load i32, ptr %92, align 4, !tbaa !19
%94 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !17
%95 = add nsw i32 %83, -1
%96 = add i32 %95, %94
%97 = sdiv i32 %96, %94
%98 = shl i32 %97, 3
%99 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%100 = tail call ptr @kzalloc(i32 noundef %98, i32 noundef %99) #2
%101 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 1
store ptr %100, ptr %101, align 8, !tbaa !20
%102 = icmp eq ptr %100, null
%103 = zext i1 %102 to i32
%104 = tail call i64 @unlikely(i32 noundef %103) #2
%105 = icmp eq i64 %104, 0
br i1 %105, label %109, label %106
106: ; preds = %91
%107 = load i32, ptr @ENOMEM, align 4, !tbaa !17
%108 = sub nsw i32 0, %107
br label %382
109: ; preds = %91
%110 = shl i32 %83, 2
%111 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%112 = tail call ptr @kzalloc(i32 noundef %110, i32 noundef %111) #2
%113 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 2
store ptr %112, ptr %113, align 8, !tbaa !21
%114 = icmp eq ptr %112, null
%115 = zext i1 %114 to i32
%116 = tail call i64 @unlikely(i32 noundef %115) #2
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %141
118: ; preds = %109
%119 = load ptr, ptr %113, align 8, !tbaa !21
%120 = zext nneg i32 %83 to i64
%121 = icmp ult i32 %83, 8
br i1 %121, label %139, label %122
122: ; preds = %118
%123 = and i64 %120, 2147483640
%124 = insertelement <4 x i32> poison, i32 %93, i64 0
%125 = shufflevector <4 x i32> %124, <4 x i32> poison, <4 x i32> zeroinitializer
br label %126
126: ; preds = %126, %122
%127 = phi i64 [ 0, %122 ], [ %134, %126 ]
%128 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %122 ], [ %135, %126 ]
%129 = add <4 x i32> %128, <i32 4, i32 4, i32 4, i32 4>
%130 = getelementptr inbounds i32, ptr %119, i64 %127
%131 = add <4 x i32> %125, %128
%132 = add <4 x i32> %125, %129
%133 = getelementptr inbounds i32, ptr %130, i64 4
store <4 x i32> %131, ptr %130, align 4, !tbaa !17
store <4 x i32> %132, ptr %133, align 4, !tbaa !17
%134 = add nuw i64 %127, 8
%135 = add <4 x i32> %128, <i32 8, i32 8, i32 8, i32 8>
%136 = icmp eq i64 %134, %123
br i1 %136, label %137, label %126, !llvm.loop !22
137: ; preds = %126
%138 = icmp eq i64 %123, %120
br i1 %138, label %150, label %139
139: ; preds = %118, %137
%140 = phi i64 [ 0, %118 ], [ %123, %137 ]
br label %143
141: ; preds = %109
%142 = load i32, ptr @ENOMEM, align 4, !tbaa !17
br label %377
143: ; preds = %139, %143
%144 = phi i64 [ %148, %143 ], [ %140, %139 ]
%145 = getelementptr inbounds i32, ptr %119, i64 %144
%146 = trunc i64 %144 to i32
%147 = add i32 %93, %146
store i32 %147, ptr %145, align 4, !tbaa !17
%148 = add nuw nsw i64 %144, 1
%149 = icmp eq i64 %148, %120
br i1 %149, label %150, label %143, !llvm.loop !26
150: ; preds = %143, %137
%151 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 2
%152 = load i32, ptr %151, align 8, !tbaa !27
%153 = icmp slt i32 %152, 1
br i1 %153, label %154, label %159
154: ; preds = %150
%155 = load i32, ptr @KERN_ERR, align 4, !tbaa !17
%156 = load i32, ptr @LOG_SLI, align 4, !tbaa !17
%157 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %155, i32 noundef %156, ptr noundef nonnull @.str.2, i32 noundef %152) #2
%158 = load i32, ptr @EINVAL, align 4, !tbaa !17
br label %373
159: ; preds = %150
%160 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 3
%161 = load i32, ptr %160, align 4, !tbaa !28
%162 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !17
%163 = add nsw i32 %152, -1
%164 = add i32 %163, %162
%165 = sdiv i32 %164, %162
%166 = shl i32 %165, 3
%167 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%168 = tail call ptr @kzalloc(i32 noundef %166, i32 noundef %167) #2
store ptr %168, ptr %0, align 8, !tbaa !29
%169 = icmp eq ptr %168, null
%170 = zext i1 %169 to i32
%171 = tail call i64 @unlikely(i32 noundef %170) #2
%172 = icmp eq i64 %171, 0
br i1 %172, label %175, label %173
173: ; preds = %159
%174 = load i32, ptr @ENOMEM, align 4, !tbaa !17
br label %373
175: ; preds = %159
%176 = shl i32 %152, 2
%177 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%178 = tail call ptr @kzalloc(i32 noundef %176, i32 noundef %177) #2
%179 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 1
store ptr %178, ptr %179, align 8, !tbaa !30
%180 = icmp eq ptr %178, null
%181 = zext i1 %180 to i32
%182 = tail call i64 @unlikely(i32 noundef %181) #2
%183 = icmp eq i64 %182, 0
br i1 %183, label %184, label %207
184: ; preds = %175
%185 = load ptr, ptr %179, align 8, !tbaa !30
%186 = zext nneg i32 %152 to i64
%187 = icmp ult i32 %152, 8
br i1 %187, label %205, label %188
188: ; preds = %184
%189 = and i64 %186, 2147483640
%190 = insertelement <4 x i32> poison, i32 %161, i64 0
%191 = shufflevector <4 x i32> %190, <4 x i32> poison, <4 x i32> zeroinitializer
br label %192
192: ; preds = %192, %188
%193 = phi i64 [ 0, %188 ], [ %200, %192 ]
%194 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %188 ], [ %201, %192 ]
%195 = add <4 x i32> %194, <i32 4, i32 4, i32 4, i32 4>
%196 = getelementptr inbounds i32, ptr %185, i64 %193
%197 = add <4 x i32> %191, %194
%198 = add <4 x i32> %191, %195
%199 = getelementptr inbounds i32, ptr %196, i64 4
store <4 x i32> %197, ptr %196, align 4, !tbaa !17
store <4 x i32> %198, ptr %199, align 4, !tbaa !17
%200 = add nuw i64 %193, 8
%201 = add <4 x i32> %194, <i32 8, i32 8, i32 8, i32 8>
%202 = icmp eq i64 %200, %189
br i1 %202, label %203, label %192, !llvm.loop !31
203: ; preds = %192
%204 = icmp eq i64 %189, %186
br i1 %204, label %216, label %205
205: ; preds = %184, %203
%206 = phi i64 [ 0, %184 ], [ %189, %203 ]
br label %209
207: ; preds = %175
%208 = load i32, ptr @ENOMEM, align 4, !tbaa !17
br label %369
209: ; preds = %205, %209
%210 = phi i64 [ %214, %209 ], [ %206, %205 ]
%211 = getelementptr inbounds i32, ptr %185, i64 %210
%212 = trunc i64 %210 to i32
%213 = add i32 %161, %212
store i32 %213, ptr %211, align 4, !tbaa !17
%214 = add nuw nsw i64 %210, 1
%215 = icmp eq i64 %214, %186
br i1 %215, label %216, label %209, !llvm.loop !32
216: ; preds = %209, %203
%217 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 4
%218 = load i32, ptr %217, align 8, !tbaa !33
%219 = icmp slt i32 %218, 1
br i1 %219, label %220, label %225
220: ; preds = %216
%221 = load i32, ptr @KERN_ERR, align 4, !tbaa !17
%222 = load i32, ptr @LOG_SLI, align 4, !tbaa !17
%223 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %221, i32 noundef %222, ptr noundef nonnull @.str.3, i32 noundef %218) #2
%224 = load i32, ptr @EINVAL, align 4, !tbaa !17
br label %365
225: ; preds = %216
%226 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 5
%227 = load i32, ptr %226, align 4, !tbaa !34
%228 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !17
%229 = add nsw i32 %218, -1
%230 = add i32 %229, %228
%231 = sdiv i32 %230, %228
%232 = shl i32 %231, 3
%233 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%234 = tail call ptr @kzalloc(i32 noundef %232, i32 noundef %233) #2
%235 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 3
store ptr %234, ptr %235, align 8, !tbaa !35
%236 = icmp eq ptr %234, null
%237 = zext i1 %236 to i32
%238 = tail call i64 @unlikely(i32 noundef %237) #2
%239 = icmp eq i64 %238, 0
br i1 %239, label %242, label %240
240: ; preds = %225
%241 = load i32, ptr @ENOMEM, align 4, !tbaa !17
br label %365
242: ; preds = %225
%243 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 8
store i64 0, ptr %243, align 8, !tbaa !36
%244 = shl i32 %218, 2
%245 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%246 = tail call ptr @kzalloc(i32 noundef %244, i32 noundef %245) #2
%247 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 4
store ptr %246, ptr %247, align 8, !tbaa !37
%248 = icmp eq ptr %246, null
%249 = zext i1 %248 to i32
%250 = tail call i64 @unlikely(i32 noundef %249) #2
%251 = icmp eq i64 %250, 0
br i1 %251, label %252, label %275
252: ; preds = %242
%253 = load ptr, ptr %247, align 8, !tbaa !37
%254 = zext nneg i32 %218 to i64
%255 = icmp ult i32 %218, 8
br i1 %255, label %273, label %256
256: ; preds = %252
%257 = and i64 %254, 2147483640
%258 = insertelement <4 x i32> poison, i32 %227, i64 0
%259 = shufflevector <4 x i32> %258, <4 x i32> poison, <4 x i32> zeroinitializer
br label %260
260: ; preds = %260, %256
%261 = phi i64 [ 0, %256 ], [ %268, %260 ]
%262 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %256 ], [ %269, %260 ]
%263 = add <4 x i32> %262, <i32 4, i32 4, i32 4, i32 4>
%264 = getelementptr inbounds i32, ptr %253, i64 %261
%265 = add <4 x i32> %259, %262
%266 = add <4 x i32> %259, %263
%267 = getelementptr inbounds i32, ptr %264, i64 4
store <4 x i32> %265, ptr %264, align 4, !tbaa !17
store <4 x i32> %266, ptr %267, align 4, !tbaa !17
%268 = add nuw i64 %261, 8
%269 = add <4 x i32> %262, <i32 8, i32 8, i32 8, i32 8>
%270 = icmp eq i64 %268, %257
br i1 %270, label %271, label %260, !llvm.loop !38
271: ; preds = %260
%272 = icmp eq i64 %257, %254
br i1 %272, label %284, label %273
273: ; preds = %252, %271
%274 = phi i64 [ 0, %252 ], [ %257, %271 ]
br label %277
275: ; preds = %242
%276 = load i32, ptr @ENOMEM, align 4, !tbaa !17
br label %361
277: ; preds = %273, %277
%278 = phi i64 [ %282, %277 ], [ %274, %273 ]
%279 = getelementptr inbounds i32, ptr %253, i64 %278
%280 = trunc i64 %278 to i32
%281 = add i32 %227, %280
store i32 %281, ptr %279, align 4, !tbaa !17
%282 = add nuw nsw i64 %278, 1
%283 = icmp eq i64 %282, %254
br i1 %283, label %284, label %277, !llvm.loop !39
284: ; preds = %277, %271
%285 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 6
%286 = load i32, ptr %285, align 8, !tbaa !40
%287 = icmp slt i32 %286, 1
br i1 %287, label %288, label %293
288: ; preds = %284
%289 = load i32, ptr @KERN_ERR, align 4, !tbaa !17
%290 = load i32, ptr @LOG_SLI, align 4, !tbaa !17
%291 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %289, i32 noundef %290, ptr noundef nonnull @.str.4, i32 noundef %286) #2
%292 = load i32, ptr @EINVAL, align 4, !tbaa !17
br label %357
293: ; preds = %284
%294 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 8, i32 7
%295 = load i32, ptr %294, align 4, !tbaa !41
%296 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !17
%297 = add nsw i32 %286, -1
%298 = add i32 %297, %296
%299 = sdiv i32 %298, %296
%300 = shl i32 %299, 3
%301 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%302 = tail call ptr @kzalloc(i32 noundef %300, i32 noundef %301) #2
%303 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 5
store ptr %302, ptr %303, align 8, !tbaa !42
%304 = icmp eq ptr %302, null
%305 = zext i1 %304 to i32
%306 = tail call i64 @unlikely(i32 noundef %305) #2
%307 = icmp eq i64 %306, 0
br i1 %307, label %310, label %308
308: ; preds = %293
%309 = load i32, ptr @ENOMEM, align 4, !tbaa !17
br label %357
310: ; preds = %293
%311 = shl i32 %286, 2
%312 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%313 = tail call ptr @kzalloc(i32 noundef %311, i32 noundef %312) #2
%314 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2, i32 6
store ptr %313, ptr %314, align 8, !tbaa !43
%315 = icmp eq ptr %313, null
%316 = zext i1 %315 to i32
%317 = tail call i64 @unlikely(i32 noundef %316) #2
%318 = icmp eq i64 %317, 0
br i1 %318, label %319, label %342
319: ; preds = %310
%320 = load ptr, ptr %314, align 8, !tbaa !43
%321 = zext nneg i32 %286 to i64
%322 = icmp ult i32 %286, 8
br i1 %322, label %340, label %323
323: ; preds = %319
%324 = and i64 %321, 2147483640
%325 = insertelement <4 x i32> poison, i32 %295, i64 0
%326 = shufflevector <4 x i32> %325, <4 x i32> poison, <4 x i32> zeroinitializer
br label %327
327: ; preds = %327, %323
%328 = phi i64 [ 0, %323 ], [ %335, %327 ]
%329 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %323 ], [ %336, %327 ]
%330 = add <4 x i32> %329, <i32 4, i32 4, i32 4, i32 4>
%331 = getelementptr inbounds i32, ptr %320, i64 %328
%332 = add <4 x i32> %326, %329
%333 = add <4 x i32> %326, %330
%334 = getelementptr inbounds i32, ptr %331, i64 4
store <4 x i32> %332, ptr %331, align 4, !tbaa !17
store <4 x i32> %333, ptr %334, align 4, !tbaa !17
%335 = add nuw i64 %328, 8
%336 = add <4 x i32> %329, <i32 8, i32 8, i32 8, i32 8>
%337 = icmp eq i64 %335, %324
br i1 %337, label %338, label %327, !llvm.loop !44
338: ; preds = %327
%339 = icmp eq i64 %324, %321
br i1 %339, label %353, label %340
340: ; preds = %319, %338
%341 = phi i64 [ 0, %319 ], [ %324, %338 ]
br label %346
342: ; preds = %310
%343 = load i32, ptr @ENOMEM, align 4, !tbaa !17
%344 = load ptr, ptr %303, align 8, !tbaa !42
%345 = tail call i32 @kfree(ptr noundef %344) #2
br label %357
346: ; preds = %340, %346
%347 = phi i64 [ %351, %346 ], [ %341, %340 ]
%348 = getelementptr inbounds i32, ptr %320, i64 %347
%349 = trunc i64 %347 to i32
%350 = add i32 %295, %349
store i32 %350, ptr %348, align 4, !tbaa !17
%351 = add nuw nsw i64 %347, 1
%352 = icmp eq i64 %351, %321
br i1 %352, label %353, label %346, !llvm.loop !45
353: ; preds = %346, %338
%354 = load i32, ptr @lpfc_idx_rsrc_rdy, align 4, !tbaa !17
%355 = load i64, ptr @LPFC_IDX_RSRC_RDY, align 8, !tbaa !18
%356 = tail call i32 @bf_set(i32 noundef %354, ptr noundef nonnull %14, i64 noundef %355) #2
br label %382
357: ; preds = %342, %308, %288
%358 = phi i32 [ %292, %288 ], [ %309, %308 ], [ %343, %342 ]
%359 = load ptr, ptr %247, align 8, !tbaa !37
%360 = tail call i32 @kfree(ptr noundef %359) #2
br label %361
361: ; preds = %357, %275
%362 = phi i32 [ %276, %275 ], [ %358, %357 ]
%363 = load ptr, ptr %235, align 8, !tbaa !35
%364 = tail call i32 @kfree(ptr noundef %363) #2
br label %365
365: ; preds = %361, %240, %220
%366 = phi i32 [ %224, %220 ], [ %241, %240 ], [ %362, %361 ]
%367 = load ptr, ptr %179, align 8, !tbaa !30
%368 = tail call i32 @kfree(ptr noundef %367) #2
br label %369
369: ; preds = %365, %207
%370 = phi i32 [ %208, %207 ], [ %366, %365 ]
%371 = load ptr, ptr %0, align 8, !tbaa !29
%372 = tail call i32 @kfree(ptr noundef %371) #2
br label %373
373: ; preds = %369, %173, %154
%374 = phi i32 [ %158, %154 ], [ %174, %173 ], [ %370, %369 ]
%375 = load ptr, ptr %113, align 8, !tbaa !21
%376 = tail call i32 @kfree(ptr noundef %375) #2
br label %377
377: ; preds = %373, %141
%378 = phi i32 [ %142, %141 ], [ %374, %373 ]
%379 = sub nsw i32 0, %378
%380 = load ptr, ptr %101, align 8, !tbaa !20
%381 = tail call i32 @kfree(ptr noundef %380) #2
br label %382
382: ; preds = %85, %106, %377, %53, %58, %63, %68, %19, %353, %73
%383 = phi i32 [ %70, %73 ], [ 0, %353 ], [ 0, %19 ], [ %55, %53 ], [ %60, %58 ], [ %65, %63 ], [ %70, %68 ], [ %90, %85 ], [ %108, %106 ], [ %379, %377 ]
ret i32 %383
}
declare i64 @bf_get(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_printf_log(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @lpfc_sli4_dealloc_extent(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_alloc_extent(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @bf_set(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_dealloc_resource_identifiers(ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_remove_rpis(ptr noundef) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 128}
!6 = !{!"lpfc_hba", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_4__", !11, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !11, i64 56, !12, i64 64, !13, i64 104, !11, i64 112}
!11 = !{!"int", !8, i64 0}
!12 = !{!"TYPE_3__", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !13, i64 32}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !11, i64 80}
!15 = !{!6, !11, i64 16}
!16 = !{!6, !13, i64 120}
!17 = !{!11, !11, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!6, !11, i64 84}
!20 = !{!6, !7, i64 24}
!21 = !{!6, !7, i64 32}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !23, !25, !24}
!27 = !{!6, !11, i64 88}
!28 = !{!6, !11, i64 92}
!29 = !{!6, !7, i64 0}
!30 = !{!6, !7, i64 8}
!31 = distinct !{!31, !23, !24, !25}
!32 = distinct !{!32, !23, !25, !24}
!33 = !{!6, !11, i64 96}
!34 = !{!6, !11, i64 100}
!35 = !{!6, !7, i64 40}
!36 = !{!6, !13, i64 112}
!37 = !{!6, !7, i64 48}
!38 = distinct !{!38, !23, !24, !25}
!39 = distinct !{!39, !23, !25, !24}
!40 = !{!6, !11, i64 104}
!41 = !{!6, !11, i64 108}
!42 = !{!6, !7, i64 56}
!43 = !{!6, !7, i64 64}
!44 = distinct !{!44, !23, !24, !25}
!45 = distinct !{!45, !23, !25, !24}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_sli.c_lpfc_sli4_alloc_resource_identifiers.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_sli.c_lpfc_sli4_alloc_resource_identifiers.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@lpfc_idx_rsrc_rdy = common local_unnamed_addr global i32 0, align 4
@LPFC_IDX_RSRC_RDY = common local_unnamed_addr global i64 0, align 8
@LPFC_RSC_TYPE_FCOE_VFI = common local_unnamed_addr global i32 0, align 4
@LPFC_RSC_TYPE_FCOE_VPI = common local_unnamed_addr global i32 0, align 4
@LPFC_RSC_TYPE_FCOE_XRI = common local_unnamed_addr global i32 0, align 4
@LPFC_RSC_TYPE_FCOE_RPI = common local_unnamed_addr global i32 0, align 4
@KERN_INFO = common local_unnamed_addr global i32 0, align 4
@LOG_MBOX = common local_unnamed_addr global i32 0, align 4
@LOG_INIT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"2931 Detected extent resource change. Reallocating all extents.\0A\00", align 1
@KERN_ERR = common local_unnamed_addr global i32 0, align 4
@LOG_SLI = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"3279 Invalid provisioning of rpi:%d\0A\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [37 x i8] c"3280 Invalid provisioning of vpi:%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"3281 Invalid provisioning of xri:%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"3282 Invalid provisioning of vfi:%d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @lpfc_sli4_alloc_resource_identifiers(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 128
%3 = load i32, ptr %2, align 8, !tbaa !6
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = getelementptr inbounds i8, ptr %0, i64 80
%8 = load i32, ptr %7, align 8, !tbaa !15
store i32 %8, ptr %6, align 8, !tbaa !16
br label %9
9: ; preds = %5, %1
%10 = getelementptr inbounds i8, ptr %0, i64 120
%11 = load i64, ptr %10, align 8, !tbaa !17
%12 = icmp eq i64 %11, 0
%13 = load i32, ptr @lpfc_idx_rsrc_rdy, align 4, !tbaa !18
%14 = getelementptr inbounds i8, ptr %0, i64 72
%15 = tail call i64 @bf_get(i32 noundef %13, ptr noundef nonnull %14) #2
%16 = load i64, ptr @LPFC_IDX_RSRC_RDY, align 8, !tbaa !19
%17 = icmp eq i64 %15, %16
br i1 %12, label %78, label %18
18: ; preds = %9
br i1 %17, label %19, label %54
19: ; preds = %18
%20 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VFI, align 4, !tbaa !18
%21 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %20) #2
%22 = icmp ne i32 %21, 0
%23 = zext i1 %22 to i32
%24 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VPI, align 4, !tbaa !18
%25 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %24) #2
%26 = icmp eq i32 %25, 0
%27 = select i1 %22, i32 2, i32 1
%28 = select i1 %26, i32 %23, i32 %27
%29 = load i32, ptr @LPFC_RSC_TYPE_FCOE_XRI, align 4, !tbaa !18
%30 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %29) #2
%31 = icmp ne i32 %30, 0
%32 = zext i1 %31 to i32
%33 = add nuw nsw i32 %28, %32
%34 = load i32, ptr @LPFC_RSC_TYPE_FCOE_RPI, align 4, !tbaa !18
%35 = tail call i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef nonnull %0, i32 noundef %34) #2
%36 = icmp ne i32 %35, 0
%37 = zext i1 %36 to i32
%38 = or i32 %33, %37
%39 = icmp eq i32 %38, 0
br i1 %39, label %407, label %40
40: ; preds = %19
%41 = load i32, ptr @KERN_INFO, align 4, !tbaa !18
%42 = load i32, ptr @LOG_MBOX, align 4, !tbaa !18
%43 = load i32, ptr @LOG_INIT, align 4, !tbaa !18
%44 = or i32 %43, %42
%45 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %41, i32 noundef %44, ptr noundef nonnull @.str) #2
%46 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VFI, align 4, !tbaa !18
%47 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %46) #2
%48 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VPI, align 4, !tbaa !18
%49 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %48) #2
%50 = load i32, ptr @LPFC_RSC_TYPE_FCOE_XRI, align 4, !tbaa !18
%51 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %50) #2
%52 = load i32, ptr @LPFC_RSC_TYPE_FCOE_RPI, align 4, !tbaa !18
%53 = tail call i32 @lpfc_sli4_dealloc_extent(ptr noundef nonnull %0, i32 noundef %52) #2
br label %54
54: ; preds = %40, %18
%55 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VFI, align 4, !tbaa !18
%56 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %55) #2
%57 = tail call i64 @unlikely(i32 noundef %56) #2
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %407
59: ; preds = %54
%60 = load i32, ptr @LPFC_RSC_TYPE_FCOE_VPI, align 4, !tbaa !18
%61 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %60) #2
%62 = tail call i64 @unlikely(i32 noundef %61) #2
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %407
64: ; preds = %59
%65 = load i32, ptr @LPFC_RSC_TYPE_FCOE_RPI, align 4, !tbaa !18
%66 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %65) #2
%67 = tail call i64 @unlikely(i32 noundef %66) #2
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %407
69: ; preds = %64
%70 = load i32, ptr @LPFC_RSC_TYPE_FCOE_XRI, align 4, !tbaa !18
%71 = tail call i32 @lpfc_sli4_alloc_extent(ptr noundef nonnull %0, i32 noundef %70) #2
%72 = tail call i64 @unlikely(i32 noundef %71) #2
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %407
74: ; preds = %69
%75 = load i32, ptr @lpfc_idx_rsrc_rdy, align 4, !tbaa !18
%76 = load i64, ptr @LPFC_IDX_RSRC_RDY, align 8, !tbaa !19
%77 = tail call i32 @bf_set(i32 noundef %75, ptr noundef nonnull %14, i64 noundef %76) #2
br label %407
78: ; preds = %9
br i1 %17, label %79, label %82
79: ; preds = %78
%80 = tail call i32 @lpfc_sli4_dealloc_resource_identifiers(ptr noundef nonnull %0) #2
%81 = tail call i32 @lpfc_sli4_remove_rpis(ptr noundef nonnull %0) #2
br label %82
82: ; preds = %79, %78
%83 = getelementptr inbounds i8, ptr %0, i64 80
%84 = load i32, ptr %83, align 8, !tbaa !15
%85 = icmp slt i32 %84, 1
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = load i32, ptr @KERN_ERR, align 4, !tbaa !18
%88 = load i32, ptr @LOG_SLI, align 4, !tbaa !18
%89 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %87, i32 noundef %88, ptr noundef nonnull @.str.1, i32 noundef %84) #2
%90 = load i32, ptr @EINVAL, align 4, !tbaa !18
%91 = sub nsw i32 0, %90
br label %407
92: ; preds = %82
%93 = getelementptr inbounds i8, ptr %0, i64 84
%94 = load i32, ptr %93, align 4, !tbaa !20
%95 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !18
%96 = add nsw i32 %84, -1
%97 = add i32 %96, %95
%98 = sdiv i32 %97, %95
%99 = shl i32 %98, 3
%100 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%101 = tail call ptr @kzalloc(i32 noundef %99, i32 noundef %100) #2
%102 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %101, ptr %102, align 8, !tbaa !21
%103 = icmp eq ptr %101, null
%104 = zext i1 %103 to i32
%105 = tail call i64 @unlikely(i32 noundef %104) #2
%106 = icmp eq i64 %105, 0
br i1 %106, label %110, label %107
107: ; preds = %92
%108 = load i32, ptr @ENOMEM, align 4, !tbaa !18
%109 = sub nsw i32 0, %108
br label %407
110: ; preds = %92
%111 = shl i32 %84, 2
%112 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%113 = tail call ptr @kzalloc(i32 noundef %111, i32 noundef %112) #2
%114 = getelementptr inbounds i8, ptr %0, i64 32
store ptr %113, ptr %114, align 8, !tbaa !22
%115 = icmp eq ptr %113, null
%116 = zext i1 %115 to i32
%117 = tail call i64 @unlikely(i32 noundef %116) #2
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %148
119: ; preds = %110
%120 = load ptr, ptr %114, align 8, !tbaa !22
%121 = zext nneg i32 %84 to i64
%122 = icmp ult i32 %84, 16
br i1 %122, label %123, label %125
123: ; preds = %146, %119
%124 = phi i64 [ 0, %119 ], [ %126, %146 ]
br label %150
125: ; preds = %119
%126 = and i64 %121, 2147483632
%127 = insertelement <4 x i32> poison, i32 %94, i64 0
%128 = shufflevector <4 x i32> %127, <4 x i32> poison, <4 x i32> zeroinitializer
br label %129
129: ; preds = %129, %125
%130 = phi i64 [ 0, %125 ], [ %143, %129 ]
%131 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %125 ], [ %144, %129 ]
%132 = add <4 x i32> %131, <i32 4, i32 4, i32 4, i32 4>
%133 = add <4 x i32> %131, <i32 8, i32 8, i32 8, i32 8>
%134 = add <4 x i32> %131, <i32 12, i32 12, i32 12, i32 12>
%135 = getelementptr inbounds i32, ptr %120, i64 %130
%136 = add <4 x i32> %128, %131
%137 = add <4 x i32> %128, %132
%138 = add <4 x i32> %128, %133
%139 = add <4 x i32> %128, %134
%140 = getelementptr inbounds i8, ptr %135, i64 16
%141 = getelementptr inbounds i8, ptr %135, i64 32
%142 = getelementptr inbounds i8, ptr %135, i64 48
store <4 x i32> %136, ptr %135, align 4, !tbaa !18
store <4 x i32> %137, ptr %140, align 4, !tbaa !18
store <4 x i32> %138, ptr %141, align 4, !tbaa !18
store <4 x i32> %139, ptr %142, align 4, !tbaa !18
%143 = add nuw i64 %130, 16
%144 = add <4 x i32> %131, <i32 16, i32 16, i32 16, i32 16>
%145 = icmp eq i64 %143, %126
br i1 %145, label %146, label %129, !llvm.loop !23
146: ; preds = %129
%147 = icmp eq i64 %126, %121
br i1 %147, label %157, label %123
148: ; preds = %110
%149 = load i32, ptr @ENOMEM, align 4, !tbaa !18
br label %402
150: ; preds = %123, %150
%151 = phi i64 [ %155, %150 ], [ %124, %123 ]
%152 = getelementptr inbounds i32, ptr %120, i64 %151
%153 = trunc i64 %151 to i32
%154 = add i32 %94, %153
store i32 %154, ptr %152, align 4, !tbaa !18
%155 = add nuw nsw i64 %151, 1
%156 = icmp eq i64 %155, %121
br i1 %156, label %157, label %150, !llvm.loop !27
157: ; preds = %150, %146
%158 = getelementptr inbounds i8, ptr %0, i64 88
%159 = load i32, ptr %158, align 8, !tbaa !28
%160 = icmp slt i32 %159, 1
br i1 %160, label %161, label %166
161: ; preds = %157
%162 = load i32, ptr @KERN_ERR, align 4, !tbaa !18
%163 = load i32, ptr @LOG_SLI, align 4, !tbaa !18
%164 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %162, i32 noundef %163, ptr noundef nonnull @.str.2, i32 noundef %159) #2
%165 = load i32, ptr @EINVAL, align 4, !tbaa !18
br label %398
166: ; preds = %157
%167 = getelementptr inbounds i8, ptr %0, i64 92
%168 = load i32, ptr %167, align 4, !tbaa !29
%169 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !18
%170 = add nsw i32 %159, -1
%171 = add i32 %170, %169
%172 = sdiv i32 %171, %169
%173 = shl i32 %172, 3
%174 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%175 = tail call ptr @kzalloc(i32 noundef %173, i32 noundef %174) #2
store ptr %175, ptr %0, align 8, !tbaa !30
%176 = icmp eq ptr %175, null
%177 = zext i1 %176 to i32
%178 = tail call i64 @unlikely(i32 noundef %177) #2
%179 = icmp eq i64 %178, 0
br i1 %179, label %182, label %180
180: ; preds = %166
%181 = load i32, ptr @ENOMEM, align 4, !tbaa !18
br label %398
182: ; preds = %166
%183 = shl i32 %159, 2
%184 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%185 = tail call ptr @kzalloc(i32 noundef %183, i32 noundef %184) #2
%186 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %185, ptr %186, align 8, !tbaa !31
%187 = icmp eq ptr %185, null
%188 = zext i1 %187 to i32
%189 = tail call i64 @unlikely(i32 noundef %188) #2
%190 = icmp eq i64 %189, 0
br i1 %190, label %191, label %220
191: ; preds = %182
%192 = load ptr, ptr %186, align 8, !tbaa !31
%193 = zext nneg i32 %159 to i64
%194 = icmp ult i32 %159, 16
br i1 %194, label %195, label %197
195: ; preds = %218, %191
%196 = phi i64 [ 0, %191 ], [ %198, %218 ]
br label %222
197: ; preds = %191
%198 = and i64 %193, 2147483632
%199 = insertelement <4 x i32> poison, i32 %168, i64 0
%200 = shufflevector <4 x i32> %199, <4 x i32> poison, <4 x i32> zeroinitializer
br label %201
201: ; preds = %201, %197
%202 = phi i64 [ 0, %197 ], [ %215, %201 ]
%203 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %197 ], [ %216, %201 ]
%204 = add <4 x i32> %203, <i32 4, i32 4, i32 4, i32 4>
%205 = add <4 x i32> %203, <i32 8, i32 8, i32 8, i32 8>
%206 = add <4 x i32> %203, <i32 12, i32 12, i32 12, i32 12>
%207 = getelementptr inbounds i32, ptr %192, i64 %202
%208 = add <4 x i32> %200, %203
%209 = add <4 x i32> %200, %204
%210 = add <4 x i32> %200, %205
%211 = add <4 x i32> %200, %206
%212 = getelementptr inbounds i8, ptr %207, i64 16
%213 = getelementptr inbounds i8, ptr %207, i64 32
%214 = getelementptr inbounds i8, ptr %207, i64 48
store <4 x i32> %208, ptr %207, align 4, !tbaa !18
store <4 x i32> %209, ptr %212, align 4, !tbaa !18
store <4 x i32> %210, ptr %213, align 4, !tbaa !18
store <4 x i32> %211, ptr %214, align 4, !tbaa !18
%215 = add nuw i64 %202, 16
%216 = add <4 x i32> %203, <i32 16, i32 16, i32 16, i32 16>
%217 = icmp eq i64 %215, %198
br i1 %217, label %218, label %201, !llvm.loop !32
218: ; preds = %201
%219 = icmp eq i64 %198, %193
br i1 %219, label %229, label %195
220: ; preds = %182
%221 = load i32, ptr @ENOMEM, align 4, !tbaa !18
br label %394
222: ; preds = %195, %222
%223 = phi i64 [ %227, %222 ], [ %196, %195 ]
%224 = getelementptr inbounds i32, ptr %192, i64 %223
%225 = trunc i64 %223 to i32
%226 = add i32 %168, %225
store i32 %226, ptr %224, align 4, !tbaa !18
%227 = add nuw nsw i64 %223, 1
%228 = icmp eq i64 %227, %193
br i1 %228, label %229, label %222, !llvm.loop !33
229: ; preds = %222, %218
%230 = getelementptr inbounds i8, ptr %0, i64 96
%231 = load i32, ptr %230, align 8, !tbaa !34
%232 = icmp slt i32 %231, 1
br i1 %232, label %233, label %238
233: ; preds = %229
%234 = load i32, ptr @KERN_ERR, align 4, !tbaa !18
%235 = load i32, ptr @LOG_SLI, align 4, !tbaa !18
%236 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %234, i32 noundef %235, ptr noundef nonnull @.str.3, i32 noundef %231) #2
%237 = load i32, ptr @EINVAL, align 4, !tbaa !18
br label %390
238: ; preds = %229
%239 = getelementptr inbounds i8, ptr %0, i64 100
%240 = load i32, ptr %239, align 4, !tbaa !35
%241 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !18
%242 = add nsw i32 %231, -1
%243 = add i32 %242, %241
%244 = sdiv i32 %243, %241
%245 = shl i32 %244, 3
%246 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%247 = tail call ptr @kzalloc(i32 noundef %245, i32 noundef %246) #2
%248 = getelementptr inbounds i8, ptr %0, i64 40
store ptr %247, ptr %248, align 8, !tbaa !36
%249 = icmp eq ptr %247, null
%250 = zext i1 %249 to i32
%251 = tail call i64 @unlikely(i32 noundef %250) #2
%252 = icmp eq i64 %251, 0
br i1 %252, label %255, label %253
253: ; preds = %238
%254 = load i32, ptr @ENOMEM, align 4, !tbaa !18
br label %390
255: ; preds = %238
%256 = getelementptr inbounds i8, ptr %0, i64 112
store i64 0, ptr %256, align 8, !tbaa !37
%257 = shl i32 %231, 2
%258 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%259 = tail call ptr @kzalloc(i32 noundef %257, i32 noundef %258) #2
%260 = getelementptr inbounds i8, ptr %0, i64 48
store ptr %259, ptr %260, align 8, !tbaa !38
%261 = icmp eq ptr %259, null
%262 = zext i1 %261 to i32
%263 = tail call i64 @unlikely(i32 noundef %262) #2
%264 = icmp eq i64 %263, 0
br i1 %264, label %265, label %294
265: ; preds = %255
%266 = load ptr, ptr %260, align 8, !tbaa !38
%267 = zext nneg i32 %231 to i64
%268 = icmp ult i32 %231, 16
br i1 %268, label %269, label %271
269: ; preds = %292, %265
%270 = phi i64 [ 0, %265 ], [ %272, %292 ]
br label %296
271: ; preds = %265
%272 = and i64 %267, 2147483632
%273 = insertelement <4 x i32> poison, i32 %240, i64 0
%274 = shufflevector <4 x i32> %273, <4 x i32> poison, <4 x i32> zeroinitializer
br label %275
275: ; preds = %275, %271
%276 = phi i64 [ 0, %271 ], [ %289, %275 ]
%277 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %271 ], [ %290, %275 ]
%278 = add <4 x i32> %277, <i32 4, i32 4, i32 4, i32 4>
%279 = add <4 x i32> %277, <i32 8, i32 8, i32 8, i32 8>
%280 = add <4 x i32> %277, <i32 12, i32 12, i32 12, i32 12>
%281 = getelementptr inbounds i32, ptr %266, i64 %276
%282 = add <4 x i32> %274, %277
%283 = add <4 x i32> %274, %278
%284 = add <4 x i32> %274, %279
%285 = add <4 x i32> %274, %280
%286 = getelementptr inbounds i8, ptr %281, i64 16
%287 = getelementptr inbounds i8, ptr %281, i64 32
%288 = getelementptr inbounds i8, ptr %281, i64 48
store <4 x i32> %282, ptr %281, align 4, !tbaa !18
store <4 x i32> %283, ptr %286, align 4, !tbaa !18
store <4 x i32> %284, ptr %287, align 4, !tbaa !18
store <4 x i32> %285, ptr %288, align 4, !tbaa !18
%289 = add nuw i64 %276, 16
%290 = add <4 x i32> %277, <i32 16, i32 16, i32 16, i32 16>
%291 = icmp eq i64 %289, %272
br i1 %291, label %292, label %275, !llvm.loop !39
292: ; preds = %275
%293 = icmp eq i64 %272, %267
br i1 %293, label %303, label %269
294: ; preds = %255
%295 = load i32, ptr @ENOMEM, align 4, !tbaa !18
br label %386
296: ; preds = %269, %296
%297 = phi i64 [ %301, %296 ], [ %270, %269 ]
%298 = getelementptr inbounds i32, ptr %266, i64 %297
%299 = trunc i64 %297 to i32
%300 = add i32 %240, %299
store i32 %300, ptr %298, align 4, !tbaa !18
%301 = add nuw nsw i64 %297, 1
%302 = icmp eq i64 %301, %267
br i1 %302, label %303, label %296, !llvm.loop !40
303: ; preds = %296, %292
%304 = getelementptr inbounds i8, ptr %0, i64 104
%305 = load i32, ptr %304, align 8, !tbaa !41
%306 = icmp slt i32 %305, 1
br i1 %306, label %307, label %312
307: ; preds = %303
%308 = load i32, ptr @KERN_ERR, align 4, !tbaa !18
%309 = load i32, ptr @LOG_SLI, align 4, !tbaa !18
%310 = tail call i32 (ptr, i32, i32, ptr, ...) @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %308, i32 noundef %309, ptr noundef nonnull @.str.4, i32 noundef %305) #2
%311 = load i32, ptr @EINVAL, align 4, !tbaa !18
br label %382
312: ; preds = %303
%313 = getelementptr inbounds i8, ptr %0, i64 108
%314 = load i32, ptr %313, align 4, !tbaa !42
%315 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !18
%316 = add nsw i32 %305, -1
%317 = add i32 %316, %315
%318 = sdiv i32 %317, %315
%319 = shl i32 %318, 3
%320 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%321 = tail call ptr @kzalloc(i32 noundef %319, i32 noundef %320) #2
%322 = getelementptr inbounds i8, ptr %0, i64 56
store ptr %321, ptr %322, align 8, !tbaa !43
%323 = icmp eq ptr %321, null
%324 = zext i1 %323 to i32
%325 = tail call i64 @unlikely(i32 noundef %324) #2
%326 = icmp eq i64 %325, 0
br i1 %326, label %329, label %327
327: ; preds = %312
%328 = load i32, ptr @ENOMEM, align 4, !tbaa !18
br label %382
329: ; preds = %312
%330 = shl i32 %305, 2
%331 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !18
%332 = tail call ptr @kzalloc(i32 noundef %330, i32 noundef %331) #2
%333 = getelementptr inbounds i8, ptr %0, i64 64
store ptr %332, ptr %333, align 8, !tbaa !44
%334 = icmp eq ptr %332, null
%335 = zext i1 %334 to i32
%336 = tail call i64 @unlikely(i32 noundef %335) #2
%337 = icmp eq i64 %336, 0
br i1 %337, label %338, label %367
338: ; preds = %329
%339 = load ptr, ptr %333, align 8, !tbaa !44
%340 = zext nneg i32 %305 to i64
%341 = icmp ult i32 %305, 16
br i1 %341, label %342, label %344
342: ; preds = %365, %338
%343 = phi i64 [ 0, %338 ], [ %345, %365 ]
br label %371
344: ; preds = %338
%345 = and i64 %340, 2147483632
%346 = insertelement <4 x i32> poison, i32 %314, i64 0
%347 = shufflevector <4 x i32> %346, <4 x i32> poison, <4 x i32> zeroinitializer
br label %348
348: ; preds = %348, %344
%349 = phi i64 [ 0, %344 ], [ %362, %348 ]
%350 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %344 ], [ %363, %348 ]
%351 = add <4 x i32> %350, <i32 4, i32 4, i32 4, i32 4>
%352 = add <4 x i32> %350, <i32 8, i32 8, i32 8, i32 8>
%353 = add <4 x i32> %350, <i32 12, i32 12, i32 12, i32 12>
%354 = getelementptr inbounds i32, ptr %339, i64 %349
%355 = add <4 x i32> %347, %350
%356 = add <4 x i32> %347, %351
%357 = add <4 x i32> %347, %352
%358 = add <4 x i32> %347, %353
%359 = getelementptr inbounds i8, ptr %354, i64 16
%360 = getelementptr inbounds i8, ptr %354, i64 32
%361 = getelementptr inbounds i8, ptr %354, i64 48
store <4 x i32> %355, ptr %354, align 4, !tbaa !18
store <4 x i32> %356, ptr %359, align 4, !tbaa !18
store <4 x i32> %357, ptr %360, align 4, !tbaa !18
store <4 x i32> %358, ptr %361, align 4, !tbaa !18
%362 = add nuw i64 %349, 16
%363 = add <4 x i32> %350, <i32 16, i32 16, i32 16, i32 16>
%364 = icmp eq i64 %362, %345
br i1 %364, label %365, label %348, !llvm.loop !45
365: ; preds = %348
%366 = icmp eq i64 %345, %340
br i1 %366, label %378, label %342
367: ; preds = %329
%368 = load i32, ptr @ENOMEM, align 4, !tbaa !18
%369 = load ptr, ptr %322, align 8, !tbaa !43
%370 = tail call i32 @kfree(ptr noundef %369) #2
br label %382
371: ; preds = %342, %371
%372 = phi i64 [ %376, %371 ], [ %343, %342 ]
%373 = getelementptr inbounds i32, ptr %339, i64 %372
%374 = trunc i64 %372 to i32
%375 = add i32 %314, %374
store i32 %375, ptr %373, align 4, !tbaa !18
%376 = add nuw nsw i64 %372, 1
%377 = icmp eq i64 %376, %340
br i1 %377, label %378, label %371, !llvm.loop !46
378: ; preds = %371, %365
%379 = load i32, ptr @lpfc_idx_rsrc_rdy, align 4, !tbaa !18
%380 = load i64, ptr @LPFC_IDX_RSRC_RDY, align 8, !tbaa !19
%381 = tail call i32 @bf_set(i32 noundef %379, ptr noundef nonnull %14, i64 noundef %380) #2
br label %407
382: ; preds = %367, %327, %307
%383 = phi i32 [ %311, %307 ], [ %328, %327 ], [ %368, %367 ]
%384 = load ptr, ptr %260, align 8, !tbaa !38
%385 = tail call i32 @kfree(ptr noundef %384) #2
br label %386
386: ; preds = %382, %294
%387 = phi i32 [ %295, %294 ], [ %383, %382 ]
%388 = load ptr, ptr %248, align 8, !tbaa !36
%389 = tail call i32 @kfree(ptr noundef %388) #2
br label %390
390: ; preds = %386, %253, %233
%391 = phi i32 [ %237, %233 ], [ %254, %253 ], [ %387, %386 ]
%392 = load ptr, ptr %186, align 8, !tbaa !31
%393 = tail call i32 @kfree(ptr noundef %392) #2
br label %394
394: ; preds = %390, %220
%395 = phi i32 [ %221, %220 ], [ %391, %390 ]
%396 = load ptr, ptr %0, align 8, !tbaa !30
%397 = tail call i32 @kfree(ptr noundef %396) #2
br label %398
398: ; preds = %394, %180, %161
%399 = phi i32 [ %165, %161 ], [ %181, %180 ], [ %395, %394 ]
%400 = load ptr, ptr %114, align 8, !tbaa !22
%401 = tail call i32 @kfree(ptr noundef %400) #2
br label %402
402: ; preds = %398, %148
%403 = phi i32 [ %149, %148 ], [ %399, %398 ]
%404 = sub nsw i32 0, %403
%405 = load ptr, ptr %102, align 8, !tbaa !21
%406 = tail call i32 @kfree(ptr noundef %405) #2
br label %407
407: ; preds = %86, %107, %402, %54, %59, %64, %69, %19, %378, %74
%408 = phi i32 [ %71, %74 ], [ 0, %378 ], [ 0, %19 ], [ %56, %54 ], [ %61, %59 ], [ %66, %64 ], [ %71, %69 ], [ %91, %86 ], [ %109, %107 ], [ %404, %402 ]
ret i32 %408
}
declare i64 @bf_get(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_chk_avail_extnt_rsrc(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_printf_log(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @lpfc_sli4_dealloc_extent(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_alloc_extent(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @bf_set(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_dealloc_resource_identifiers(ptr noundef) local_unnamed_addr #1
declare i32 @lpfc_sli4_remove_rpis(ptr noundef) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { 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 128}
!7 = !{!"lpfc_hba", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_4__", !12, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !12, i64 56, !13, i64 64, !14, i64 104, !12, i64 112}
!12 = !{!"int", !9, i64 0}
!13 = !{!"TYPE_3__", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !14, i64 32}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !12, i64 80}
!16 = !{!7, !12, i64 16}
!17 = !{!7, !14, i64 120}
!18 = !{!12, !12, i64 0}
!19 = !{!14, !14, i64 0}
!20 = !{!7, !12, i64 84}
!21 = !{!7, !8, i64 24}
!22 = !{!7, !8, i64 32}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !26, !25}
!28 = !{!7, !12, i64 88}
!29 = !{!7, !12, i64 92}
!30 = !{!7, !8, i64 0}
!31 = !{!7, !8, i64 8}
!32 = distinct !{!32, !24, !25, !26}
!33 = distinct !{!33, !24, !26, !25}
!34 = !{!7, !12, i64 96}
!35 = !{!7, !12, i64 100}
!36 = !{!7, !8, i64 40}
!37 = !{!7, !14, i64 112}
!38 = !{!7, !8, i64 48}
!39 = distinct !{!39, !24, !25, !26}
!40 = distinct !{!40, !24, !26, !25}
!41 = !{!7, !12, i64 104}
!42 = !{!7, !12, i64 108}
!43 = !{!7, !8, i64 56}
!44 = !{!7, !8, i64 64}
!45 = distinct !{!45, !24, !25, !26}
!46 = distinct !{!46, !24, !26, !25}
| fastsocket_kernel_drivers_scsi_lpfc_extr_lpfc_sli.c_lpfc_sli4_alloc_resource_identifiers |
; ModuleID = 'AnghaBench/mongoose/src/common/platforms/cc3200/extr_cc3200_libc.c__getpid.c'
source_filename = "AnghaBench/mongoose/src/common/platforms/cc3200/extr_cc3200_libc.c__getpid.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 [28 x i8] c"_getpid is not implemented\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @_getpid() local_unnamed_addr #0 {
%1 = load i32, ptr @stderr, align 4, !tbaa !5
%2 = tail call i32 @fprint_str(i32 noundef %1, ptr noundef nonnull @.str) #2
ret i32 42
}
declare i32 @fprint_str(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/mongoose/src/common/platforms/cc3200/extr_cc3200_libc.c__getpid.c'
source_filename = "AnghaBench/mongoose/src/common/platforms/cc3200/extr_cc3200_libc.c__getpid.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 [28 x i8] c"_getpid is not implemented\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @_getpid() local_unnamed_addr #0 {
%1 = load i32, ptr @stderr, align 4, !tbaa !6
%2 = tail call i32 @fprint_str(i32 noundef %1, ptr noundef nonnull @.str) #2
ret i32 42
}
declare i32 @fprint_str(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"}
| mongoose_src_common_platforms_cc3200_extr_cc3200_libc.c__getpid |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_legacy_crtc.c_radeon_pll2_wait_for_read_update_complete.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_legacy_crtc.c_radeon_pll2_wait_for_read_update_complete.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"
@RADEON_P2PLL_REF_DIV = dso_local local_unnamed_addr global i32 0, align 4
@RADEON_P2PLL_ATOMIC_UPDATE_R = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @radeon_pll2_wait_for_read_update_complete], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @radeon_pll2_wait_for_read_update_complete(ptr nocapture readnone %0) #0 {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 0, %1 ], [ %9, %2 ]
%4 = load i32, ptr @RADEON_P2PLL_REF_DIV, align 4, !tbaa !5
%5 = tail call i32 @RREG32_PLL(i32 noundef %4) #2
%6 = load i32, ptr @RADEON_P2PLL_ATOMIC_UPDATE_R, align 4, !tbaa !5
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
%9 = add nuw nsw i32 %3, 1
%10 = icmp eq i32 %9, 10000
%11 = select i1 %8, i1 true, i1 %10
br i1 %11, label %12, label %2, !llvm.loop !9
12: ; preds = %2
ret void
}
declare i32 @RREG32_PLL(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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_legacy_crtc.c_radeon_pll2_wait_for_read_update_complete.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_radeon_legacy_crtc.c_radeon_pll2_wait_for_read_update_complete.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RADEON_P2PLL_REF_DIV = common local_unnamed_addr global i32 0, align 4
@RADEON_P2PLL_ATOMIC_UPDATE_R = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @radeon_pll2_wait_for_read_update_complete], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @radeon_pll2_wait_for_read_update_complete(ptr nocapture readnone %0) #0 {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 0, %1 ], [ %9, %2 ]
%4 = load i32, ptr @RADEON_P2PLL_REF_DIV, align 4, !tbaa !6
%5 = tail call i32 @RREG32_PLL(i32 noundef %4) #2
%6 = load i32, ptr @RADEON_P2PLL_ATOMIC_UPDATE_R, align 4, !tbaa !6
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
%9 = add nuw nsw i32 %3, 1
%10 = icmp eq i32 %9, 10000
%11 = select i1 %8, i1 true, i1 %10
br i1 %11, label %12, label %2, !llvm.loop !10
12: ; preds = %2
ret void
}
declare i32 @RREG32_PLL(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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| linux_drivers_gpu_drm_radeon_extr_radeon_legacy_crtc.c_radeon_pll2_wait_for_read_update_complete |
; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/trace/extr_trace_selftest_dynamic.c_DYN_FTRACE_TEST_NAME.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/trace/extr_trace_selftest_dynamic.c_DYN_FTRACE_TEST_NAME.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local noundef i32 @DYN_FTRACE_TEST_NAME() local_unnamed_addr #0 {
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/trace/extr_trace_selftest_dynamic.c_DYN_FTRACE_TEST_NAME.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/trace/extr_trace_selftest_dynamic.c_DYN_FTRACE_TEST_NAME.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define noundef i32 @DYN_FTRACE_TEST_NAME() local_unnamed_addr #0 {
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_kernel_trace_extr_trace_selftest_dynamic.c_DYN_FTRACE_TEST_NAME |
; ModuleID = 'AnghaBench/linux/drivers/usb/storage/extr_sddr09.c_sddr09_send_scsi_command.c'
source_filename = "AnghaBench/linux/drivers/usb/storage/extr_sddr09.c_sddr09_send_scsi_command.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@USB_DIR_OUT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sddr09_send_scsi_command], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sddr09_send_scsi_command(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr @USB_DIR_OUT, align 4, !tbaa !5
%5 = tail call i32 @sddr09_send_command(ptr noundef %0, i32 noundef 0, i32 noundef %4, ptr noundef %1, i32 noundef %2) #2
ret i32 %5
}
declare i32 @sddr09_send_command(ptr noundef, i32 noundef, 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/storage/extr_sddr09.c_sddr09_send_scsi_command.c'
source_filename = "AnghaBench/linux/drivers/usb/storage/extr_sddr09.c_sddr09_send_scsi_command.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@USB_DIR_OUT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sddr09_send_scsi_command], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @sddr09_send_scsi_command(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = load i32, ptr @USB_DIR_OUT, align 4, !tbaa !6
%5 = tail call i32 @sddr09_send_command(ptr noundef %0, i32 noundef 0, i32 noundef %4, ptr noundef %1, i32 noundef %2) #2
ret i32 %5
}
declare i32 @sddr09_send_command(ptr noundef, i32 noundef, 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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_usb_storage_extr_sddr09.c_sddr09_send_scsi_command |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.