IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/linux/drivers/tty/extr_synclink_gt.c_reset_tbufs.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_synclink_gt.c_reset_tbufs.c"
target datalayout = "e-m:e-p270:32:32-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.slgt_info = type { i32, ptr, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @reset_tbufs], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable
define internal void @reset_tbufs(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds %struct.slgt_info, ptr %0, i64 0, i32 2
store i64 0, ptr %2, align 8, !tbaa !5
%3 = load i32, ptr %0, align 8, !tbaa !12
%4 = icmp eq i32 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.slgt_info, ptr %0, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = zext i32 %3 to i64
%9 = shl nuw nsw i64 %8, 4
tail call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 %9, i1 false), !tbaa !14
br label %10
10: ; preds = %5, %1
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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 = !{!"slgt_info", !7, i64 0, !10, i64 8, !11, 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 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/tty/extr_synclink_gt.c_reset_tbufs.c'
source_filename = "AnghaBench/linux/drivers/tty/extr_synclink_gt.c_reset_tbufs.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 @reset_tbufs], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @reset_tbufs(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
store i64 0, ptr %2, align 8, !tbaa !6
%3 = load i32, ptr %0, align 8, !tbaa !13
%4 = icmp eq i32 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = zext i32 %3 to i64
%9 = shl nuw nsw i64 %8, 4
tail call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 %9, i1 false), !tbaa !15
br label %10
10: ; preds = %5, %1
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"slgt_info", !8, i64 0, !11, i64 8, !12, 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 = !{!"long", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!12, !12, i64 0}
| linux_drivers_tty_extr_synclink_gt.c_reset_tbufs |
; ModuleID = 'AnghaBench/freebsd/contrib/ldns/compat/extr_snprintf.c_print_num_g.c'
source_filename = "AnghaBench/freebsd/contrib/ldns/compat/extr_snprintf.c_print_num_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PRINT_FLOAT_BUFSZ = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @print_num_g], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @print_num_g(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) #0 {
%12 = load i32, ptr @PRINT_FLOAT_BUFSZ, align 4, !tbaa !5
%13 = zext i32 %12 to i64
%14 = alloca i8, i64 %13, align 16
%15 = icmp eq i32 %6, 0
%16 = tail call i32 @llvm.umax.i32(i32 %5, i32 1)
%17 = fcmp olt double %3, 0.000000e+00
%18 = zext i1 %17 to i32
%19 = select i1 %15, i32 6, i32 %16
%20 = fneg double %3
%21 = select i1 %17, double %20, double %3
%22 = call i32 @print_float_g(ptr noundef nonnull %14, i32 noundef %12, double noundef %21, i32 noundef %19) #3
%23 = call i32 @print_num(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %4, i32 noundef 1, i32 noundef 0, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef 0, i32 noundef %18, ptr noundef nonnull %14, i32 noundef %22) #3
ret void
}
declare i32 @print_float_g(ptr noundef, i32 noundef, double noundef, i32 noundef) local_unnamed_addr #1
declare i32 @print_num(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/ldns/compat/extr_snprintf.c_print_num_g.c'
source_filename = "AnghaBench/freebsd/contrib/ldns/compat/extr_snprintf.c_print_num_g.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PRINT_FLOAT_BUFSZ = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @print_num_g], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @print_num_g(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) #0 {
%12 = load i32, ptr @PRINT_FLOAT_BUFSZ, align 4, !tbaa !6
%13 = zext i32 %12 to i64
%14 = alloca i8, i64 %13, align 1
%15 = icmp eq i32 %6, 0
%16 = tail call i32 @llvm.umax.i32(i32 %5, i32 1)
%17 = fcmp olt double %3, 0.000000e+00
%18 = zext i1 %17 to i32
%19 = select i1 %15, i32 6, i32 %16
%20 = fneg double %3
%21 = select i1 %17, double %20, double %3
%22 = call i32 @print_float_g(ptr noundef nonnull %14, i32 noundef %12, double noundef %21, i32 noundef %19) #3
%23 = call i32 @print_num(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %4, i32 noundef 1, i32 noundef 0, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef 0, i32 noundef %18, ptr noundef nonnull %14, i32 noundef %22) #3
ret void
}
declare i32 @print_float_g(ptr noundef, i32 noundef, double noundef, i32 noundef) local_unnamed_addr #1
declare i32 @print_num(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_ldns_compat_extr_snprintf.c_print_num_g |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx4/extr_resource_tracker.c_mlx4_INIT2RTR_QP_wrapper.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx4/extr_resource_tracker.c_mlx4_INIT2RTR_QP_wrapper.c"
target datalayout = "e-m:e-p270:32:32-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.mlx4_qp_context = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.res_qp = type { ptr, ptr, ptr, ptr, ptr, ptr, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
@QP_TRANS_INIT2RTR = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@RES_QP = dso_local local_unnamed_addr global i32 0, align 4
@RES_QP_HW = dso_local local_unnamed_addr global i64 0, align 8
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @mlx4_INIT2RTR_QP_wrapper(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = alloca ptr, align 8
%8 = load ptr, ptr %3, align 8, !tbaa !5
%9 = getelementptr inbounds %struct.mlx4_qp_context, ptr %8, i64 8
%10 = load i32, ptr %2, align 4, !tbaa !10
%11 = and i32 %10, 8388607
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%12 = getelementptr inbounds %struct.mlx4_qp_context, ptr %8, i64 8, i32 0, i32 5
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = getelementptr inbounds %struct.mlx4_qp_context, ptr %8, i64 8, i32 0, i32 3
%15 = load <2 x ptr>, ptr %14, align 8, !tbaa !16
%16 = getelementptr inbounds %struct.mlx4_qp_context, ptr %8, i64 8, i32 0, i32 1
%17 = load <2 x ptr>, ptr %16, align 8, !tbaa !16
%18 = tail call i32 @adjust_qp_sched_queue(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %3) #3
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %66
20: ; preds = %6
%21 = load i32, ptr @QP_TRANS_INIT2RTR, align 4, !tbaa !17
%22 = tail call i32 @verify_qp_parameters(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %21, i32 noundef %1) #3
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %66
24: ; preds = %20
%25 = tail call i64 @roce_verify_mac(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %3) #3
%26 = icmp eq i64 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr @EINVAL, align 4, !tbaa !17
%29 = sub nsw i32 0, %28
br label %66
30: ; preds = %24
%31 = tail call i32 @update_pkey_index(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %3) #3
%32 = sext i32 %1 to i64
%33 = inttoptr i64 %32 to ptr
%34 = tail call i32 @update_gid(ptr noundef %0, ptr noundef nonnull %3, ptr noundef %33) #3
%35 = tail call i32 @adjust_proxy_tun_qkey(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %9) #3
%36 = load ptr, ptr %9, align 8, !tbaa !18
%37 = load i32, ptr @RES_QP, align 4, !tbaa !17
%38 = call i32 @get_res(ptr noundef %0, i32 noundef %1, i32 noundef %11, i32 noundef %37, ptr noundef nonnull %7) #3
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %66
40: ; preds = %30
%41 = load ptr, ptr %7, align 8, !tbaa !16
%42 = getelementptr inbounds %struct.res_qp, ptr %41, i64 0, i32 6
%43 = load i64, ptr %42, align 8, !tbaa !19
%44 = load i64, ptr @RES_QP_HW, align 8, !tbaa !23
%45 = icmp eq i64 %43, %44
br i1 %45, label %49, label %46
46: ; preds = %40
%47 = load i32, ptr @EBUSY, align 4, !tbaa !17
%48 = sub nsw i32 0, %47
br label %54
49: ; preds = %40
%50 = call i32 @update_vport_qp_param(ptr noundef %0, ptr noundef nonnull %3, i32 noundef %1, i32 noundef %11) #3
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %49
%53 = call i32 @mlx4_DMA_wrapper(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %5) #3
br label %54
54: ; preds = %52, %46
%55 = phi i32 [ %48, %46 ], [ %53, %52 ]
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %54
%58 = load ptr, ptr %7, align 8, !tbaa !16
%59 = getelementptr inbounds %struct.res_qp, ptr %58, i64 0, i32 5
store ptr %36, ptr %59, align 8, !tbaa !24
%60 = getelementptr inbounds %struct.res_qp, ptr %58, i64 0, i32 4
store ptr %13, ptr %60, align 8, !tbaa !25
%61 = getelementptr inbounds %struct.res_qp, ptr %58, i64 0, i32 2
store <2 x ptr> %15, ptr %61, align 8, !tbaa !16
store <2 x ptr> %17, ptr %58, align 8, !tbaa !16
br label %62
62: ; preds = %49, %57, %54
%63 = phi i32 [ 0, %57 ], [ %55, %54 ], [ %50, %49 ]
%64 = load i32, ptr @RES_QP, align 4, !tbaa !17
%65 = call i32 @put_res(ptr noundef %0, i32 noundef %1, i32 noundef %11, i32 noundef %64) #3
br label %66
66: ; preds = %30, %20, %6, %62, %27
%67 = phi i32 [ %29, %27 ], [ %63, %62 ], [ %18, %6 ], [ %22, %20 ], [ %38, %30 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i32 %67
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @adjust_qp_sched_queue(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @verify_qp_parameters(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @roce_verify_mac(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_pkey_index(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_gid(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @adjust_proxy_tun_qkey(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @get_res(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_vport_qp_param(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mlx4_DMA_wrapper(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @put_res(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mlx4_cmd_mailbox", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"mlx4_vhcr", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 40}
!14 = !{!"mlx4_qp_context", !15, i64 0}
!15 = !{!"TYPE_3__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!14, !7, i64 0}
!19 = !{!20, !22, i64 48}
!20 = !{!"res_qp", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !21, i64 48}
!21 = !{!"TYPE_4__", !22, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{!22, !22, i64 0}
!24 = !{!20, !7, i64 40}
!25 = !{!20, !7, i64 32}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx4/extr_resource_tracker.c_mlx4_INIT2RTR_QP_wrapper.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx4/extr_resource_tracker.c_mlx4_INIT2RTR_QP_wrapper.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@QP_TRANS_INIT2RTR = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@RES_QP = common local_unnamed_addr global i32 0, align 4
@RES_QP_HW = common local_unnamed_addr global i64 0, align 8
@EBUSY = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @mlx4_INIT2RTR_QP_wrapper(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = alloca ptr, align 8
%8 = load ptr, ptr %3, align 8, !tbaa !6
%9 = getelementptr inbounds i8, ptr %8, i64 384
%10 = load i32, ptr %2, align 4, !tbaa !11
%11 = and i32 %10, 8388607
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
%12 = getelementptr inbounds i8, ptr %8, i64 424
%13 = load ptr, ptr %12, align 8, !tbaa !14
%14 = getelementptr inbounds i8, ptr %8, i64 408
%15 = load <2 x ptr>, ptr %14, align 8, !tbaa !17
%16 = getelementptr inbounds i8, ptr %8, i64 392
%17 = load <2 x ptr>, ptr %16, align 8, !tbaa !17
%18 = tail call i32 @adjust_qp_sched_queue(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %3) #3
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %66
20: ; preds = %6
%21 = load i32, ptr @QP_TRANS_INIT2RTR, align 4, !tbaa !18
%22 = tail call i32 @verify_qp_parameters(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %21, i32 noundef %1) #3
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %66
24: ; preds = %20
%25 = tail call i64 @roce_verify_mac(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %3) #3
%26 = icmp eq i64 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr @EINVAL, align 4, !tbaa !18
%29 = sub nsw i32 0, %28
br label %66
30: ; preds = %24
%31 = tail call i32 @update_pkey_index(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %3) #3
%32 = sext i32 %1 to i64
%33 = inttoptr i64 %32 to ptr
%34 = tail call i32 @update_gid(ptr noundef %0, ptr noundef nonnull %3, ptr noundef %33) #3
%35 = tail call i32 @adjust_proxy_tun_qkey(ptr noundef %0, ptr noundef nonnull %2, ptr noundef nonnull %9) #3
%36 = load ptr, ptr %9, align 8, !tbaa !19
%37 = load i32, ptr @RES_QP, align 4, !tbaa !18
%38 = call i32 @get_res(ptr noundef %0, i32 noundef %1, i32 noundef %11, i32 noundef %37, ptr noundef nonnull %7) #3
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %66
40: ; preds = %30
%41 = load ptr, ptr %7, align 8, !tbaa !17
%42 = getelementptr inbounds i8, ptr %41, i64 48
%43 = load i64, ptr %42, align 8, !tbaa !20
%44 = load i64, ptr @RES_QP_HW, align 8, !tbaa !24
%45 = icmp eq i64 %43, %44
br i1 %45, label %49, label %46
46: ; preds = %40
%47 = load i32, ptr @EBUSY, align 4, !tbaa !18
%48 = sub nsw i32 0, %47
br label %54
49: ; preds = %40
%50 = call i32 @update_vport_qp_param(ptr noundef %0, ptr noundef nonnull %3, i32 noundef %1, i32 noundef %11) #3
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %49
%53 = call i32 @mlx4_DMA_wrapper(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %5) #3
br label %54
54: ; preds = %52, %46
%55 = phi i32 [ %48, %46 ], [ %53, %52 ]
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %54
%58 = load ptr, ptr %7, align 8, !tbaa !17
%59 = getelementptr inbounds i8, ptr %58, i64 40
store ptr %36, ptr %59, align 8, !tbaa !25
%60 = getelementptr inbounds i8, ptr %58, i64 32
store ptr %13, ptr %60, align 8, !tbaa !26
%61 = getelementptr inbounds i8, ptr %58, i64 16
store <2 x ptr> %15, ptr %61, align 8, !tbaa !17
store <2 x ptr> %17, ptr %58, align 8, !tbaa !17
br label %62
62: ; preds = %49, %57, %54
%63 = phi i32 [ 0, %57 ], [ %55, %54 ], [ %50, %49 ]
%64 = load i32, ptr @RES_QP, align 4, !tbaa !18
%65 = call i32 @put_res(ptr noundef %0, i32 noundef %1, i32 noundef %11, i32 noundef %64) #3
br label %66
66: ; preds = %30, %20, %6, %62, %27
%67 = phi i32 [ %29, %27 ], [ %63, %62 ], [ %18, %6 ], [ %22, %20 ], [ %38, %30 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i32 %67
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @adjust_qp_sched_queue(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @verify_qp_parameters(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @roce_verify_mac(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_pkey_index(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_gid(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @adjust_proxy_tun_qkey(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @get_res(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_vport_qp_param(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mlx4_DMA_wrapper(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @put_res(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+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 = !{!"mlx4_cmd_mailbox", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"mlx4_vhcr", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !8, i64 40}
!15 = !{!"mlx4_qp_context", !16, i64 0}
!16 = !{!"TYPE_3__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40}
!17 = !{!8, !8, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!15, !8, i64 0}
!20 = !{!21, !23, i64 48}
!21 = !{!"res_qp", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !22, i64 48}
!22 = !{!"TYPE_4__", !23, i64 0}
!23 = !{!"long", !9, i64 0}
!24 = !{!23, !23, i64 0}
!25 = !{!21, !8, i64 40}
!26 = !{!21, !8, i64 32}
| linux_drivers_net_ethernet_mellanox_mlx4_extr_resource_tracker.c_mlx4_INIT2RTR_QP_wrapper |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/extr_musashim68kcpu.h_m68ki_stack_frame_1000.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/extr_musashim68kcpu.h_m68ki_stack_frame_1000.c"
target datalayout = "e-m:e-p270:32:32-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 @m68ki_stack_frame_1000(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 (...) @m68ki_fake_push_32() #2
%5 = tail call i32 (...) @m68ki_fake_push_32() #2
%6 = tail call i32 (...) @m68ki_fake_push_32() #2
%7 = tail call i32 (...) @m68ki_fake_push_32() #2
%8 = tail call i32 (...) @m68ki_fake_push_32() #2
%9 = tail call i32 (...) @m68ki_fake_push_32() #2
%10 = tail call i32 (...) @m68ki_fake_push_32() #2
%11 = tail call i32 (...) @m68ki_fake_push_32() #2
%12 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%13 = tail call i32 (...) @m68ki_fake_push_16() #2
%14 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%15 = tail call i32 (...) @m68ki_fake_push_16() #2
%16 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%17 = tail call i32 (...) @m68ki_fake_push_16() #2
%18 = tail call i32 @m68ki_push_32(i32 noundef 0) #2
%19 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%20 = shl i32 %2, 2
%21 = or i32 %20, 32768
%22 = tail call i32 @m68ki_push_16(i32 noundef %21) #2
%23 = tail call i32 @m68ki_push_32(i32 noundef %0) #2
%24 = tail call i32 @m68ki_push_16(i32 noundef %1) #2
ret void
}
declare i32 @m68ki_fake_push_32(...) local_unnamed_addr #1
declare i32 @m68ki_push_16(i32 noundef) local_unnamed_addr #1
declare i32 @m68ki_fake_push_16(...) local_unnamed_addr #1
declare i32 @m68ki_push_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/extr_musashim68kcpu.h_m68ki_stack_frame_1000.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/extr_musashim68kcpu.h_m68ki_stack_frame_1000.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 @m68ki_stack_frame_1000(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @m68ki_fake_push_32() #2
%5 = tail call i32 @m68ki_fake_push_32() #2
%6 = tail call i32 @m68ki_fake_push_32() #2
%7 = tail call i32 @m68ki_fake_push_32() #2
%8 = tail call i32 @m68ki_fake_push_32() #2
%9 = tail call i32 @m68ki_fake_push_32() #2
%10 = tail call i32 @m68ki_fake_push_32() #2
%11 = tail call i32 @m68ki_fake_push_32() #2
%12 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%13 = tail call i32 @m68ki_fake_push_16() #2
%14 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%15 = tail call i32 @m68ki_fake_push_16() #2
%16 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%17 = tail call i32 @m68ki_fake_push_16() #2
%18 = tail call i32 @m68ki_push_32(i32 noundef 0) #2
%19 = tail call i32 @m68ki_push_16(i32 noundef 0) #2
%20 = shl i32 %2, 2
%21 = or i32 %20, 32768
%22 = tail call i32 @m68ki_push_16(i32 noundef %21) #2
%23 = tail call i32 @m68ki_push_32(i32 noundef %0) #2
%24 = tail call i32 @m68ki_push_16(i32 noundef %1) #2
ret void
}
declare i32 @m68ki_fake_push_32(...) local_unnamed_addr #1
declare i32 @m68ki_push_16(i32 noundef) local_unnamed_addr #1
declare i32 @m68ki_fake_push_16(...) local_unnamed_addr #1
declare i32 @m68ki_push_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| Provenance_Cores_Yabause_yabause_src_extr_musashim68kcpu.h_m68ki_stack_frame_1000 |
; ModuleID = 'AnghaBench/freebsd/contrib/libevent/extr_event.c_event_base_got_break.c'
source_filename = "AnghaBench/freebsd/contrib/libevent/extr_event.c_event_base_got_break.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@th_base_lock = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @event_base_got_break(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @th_base_lock, align 4, !tbaa !5
%3 = tail call i32 @EVBASE_ACQUIRE_LOCK(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr %0, align 4, !tbaa !9
%5 = load i32, ptr @th_base_lock, align 4, !tbaa !5
%6 = tail call i32 @EVBASE_RELEASE_LOCK(ptr noundef nonnull %0, i32 noundef %5) #2
ret i32 %4
}
declare i32 @EVBASE_ACQUIRE_LOCK(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @EVBASE_RELEASE_LOCK(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 = !{!"event_base", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libevent/extr_event.c_event_base_got_break.c'
source_filename = "AnghaBench/freebsd/contrib/libevent/extr_event.c_event_base_got_break.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@th_base_lock = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @event_base_got_break(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @th_base_lock, align 4, !tbaa !6
%3 = tail call i32 @EVBASE_ACQUIRE_LOCK(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = load i32, ptr @th_base_lock, align 4, !tbaa !6
%6 = tail call i32 @EVBASE_RELEASE_LOCK(ptr noundef nonnull %0, i32 noundef %5) #2
ret i32 %4
}
declare i32 @EVBASE_ACQUIRE_LOCK(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @EVBASE_RELEASE_LOCK(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 = !{!"event_base", !7, i64 0}
| freebsd_contrib_libevent_extr_event.c_event_base_got_break |
; ModuleID = 'AnghaBench/timescaledb/src/loader/extr_bgw_launcher.c_scheduler_state_trans_allocated_to_disabled.c'
source_filename = "AnghaBench/timescaledb/src/loader/extr_bgw_launcher.c_scheduler_state_trans_allocated_to_disabled.c"
target datalayout = "e-m:e-p270:32:32-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, ptr }
@ALLOCATED = dso_local local_unnamed_addr global i64 0, align 8
@DISABLED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @scheduler_state_trans_allocated_to_disabled], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @scheduler_state_trans_allocated_to_disabled(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = load i64, ptr @ALLOCATED, align 8, !tbaa !11
%4 = icmp eq i64 %2, %3
%5 = zext i1 %4 to i32
%6 = tail call i32 @Assert(i32 noundef %5) #2
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = icmp eq ptr %8, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @Assert(i32 noundef %10) #2
%12 = tail call i32 (...) @ts_bgw_total_workers_decrement() #2
%13 = load i32, ptr @DISABLED, align 4, !tbaa !13
%14 = tail call i32 @scheduler_modify_state(ptr noundef nonnull %0, i32 noundef %13) #2
ret void
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare i32 @ts_bgw_total_workers_decrement(...) local_unnamed_addr #1
declare i32 @scheduler_modify_state(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !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 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/timescaledb/src/loader/extr_bgw_launcher.c_scheduler_state_trans_allocated_to_disabled.c'
source_filename = "AnghaBench/timescaledb/src/loader/extr_bgw_launcher.c_scheduler_state_trans_allocated_to_disabled.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ALLOCATED = common local_unnamed_addr global i64 0, align 8
@DISABLED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @scheduler_state_trans_allocated_to_disabled], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @scheduler_state_trans_allocated_to_disabled(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = load i64, ptr @ALLOCATED, align 8, !tbaa !12
%4 = icmp eq i64 %2, %3
%5 = zext i1 %4 to i32
%6 = tail call i32 @Assert(i32 noundef %5) #2
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !13
%9 = icmp eq ptr %8, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @Assert(i32 noundef %10) #2
%12 = tail call i32 @ts_bgw_total_workers_decrement() #2
%13 = load i32, ptr @DISABLED, align 4, !tbaa !14
%14 = tail call i32 @scheduler_modify_state(ptr noundef nonnull %0, i32 noundef %13) #2
ret void
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare i32 @ts_bgw_total_workers_decrement(...) local_unnamed_addr #1
declare i32 @scheduler_modify_state(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !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 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !9, i64 0}
| timescaledb_src_loader_extr_bgw_launcher.c_scheduler_state_trans_allocated_to_disabled |
; ModuleID = 'AnghaBench/freebsd/sys/dev/vr/extr_if_vr.c_vr_tx_stop.c'
source_filename = "AnghaBench/freebsd/sys/dev/vr/extr_if_vr.c_vr_tx_stop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@VR_CR0 = dso_local local_unnamed_addr global i32 0, align 4
@VR_CR0_TX_ON = dso_local local_unnamed_addr global i32 0, align 4
@VR_TIMEOUT = dso_local local_unnamed_addr global i32 0, align 4
@ETIMEDOUT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vr_tx_stop], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @vr_tx_stop(ptr noundef %0) #0 {
%2 = load i32, ptr @VR_CR0, align 4, !tbaa !5
%3 = tail call i32 @CSR_READ_1(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr @VR_CR0_TX_ON, align 4, !tbaa !5
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %32, label %7
7: ; preds = %1
%8 = xor i32 %4, -1
%9 = and i32 %3, %8
%10 = load i32, ptr @VR_CR0, align 4, !tbaa !5
%11 = tail call i32 @CSR_WRITE_1(ptr noundef %0, i32 noundef %10, i32 noundef %9) #2
%12 = load i32, ptr @VR_TIMEOUT, align 4, !tbaa !5
%13 = freeze i32 %12
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %7, %23
%16 = phi i32 [ %24, %23 ], [ %13, %7 ]
%17 = tail call i32 @DELAY(i32 noundef 5) #2
%18 = load i32, ptr @VR_CR0, align 4, !tbaa !5
%19 = tail call i32 @CSR_READ_1(ptr noundef %0, i32 noundef %18) #2
%20 = load i32, ptr @VR_CR0_TX_ON, align 4, !tbaa !5
%21 = and i32 %20, %19
%22 = icmp eq i32 %21, 0
br i1 %22, label %32, label %23
23: ; preds = %15
%24 = add nsw i32 %16, -1
%25 = icmp sgt i32 %16, 1
br i1 %25, label %15, label %26, !llvm.loop !9
26: ; preds = %23
%27 = load i32, ptr @ETIMEDOUT, align 4
br label %32
28: ; preds = %7
%29 = icmp eq i32 %13, 0
%30 = load i32, ptr @ETIMEDOUT, align 4
%31 = select i1 %29, i32 %30, i32 0
br label %32
32: ; preds = %15, %28, %26, %1
%33 = phi i32 [ 0, %1 ], [ %27, %26 ], [ %31, %28 ], [ 0, %15 ]
ret i32 %33
}
declare i32 @CSR_READ_1(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CSR_WRITE_1(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @DELAY(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/vr/extr_if_vr.c_vr_tx_stop.c'
source_filename = "AnghaBench/freebsd/sys/dev/vr/extr_if_vr.c_vr_tx_stop.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VR_CR0 = common local_unnamed_addr global i32 0, align 4
@VR_CR0_TX_ON = common local_unnamed_addr global i32 0, align 4
@VR_TIMEOUT = common local_unnamed_addr global i32 0, align 4
@ETIMEDOUT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vr_tx_stop], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @vr_tx_stop(ptr noundef %0) #0 {
%2 = load i32, ptr @VR_CR0, align 4, !tbaa !6
%3 = tail call i32 @CSR_READ_1(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr @VR_CR0_TX_ON, align 4, !tbaa !6
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %30, label %7
7: ; preds = %1
%8 = xor i32 %4, -1
%9 = and i32 %3, %8
%10 = load i32, ptr @VR_CR0, align 4, !tbaa !6
%11 = tail call i32 @CSR_WRITE_1(ptr noundef %0, i32 noundef %10, i32 noundef %9) #2
%12 = load i32, ptr @VR_TIMEOUT, align 4, !tbaa !6
%13 = freeze i32 %12
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %7, %23
%16 = phi i32 [ %24, %23 ], [ %13, %7 ]
%17 = tail call i32 @DELAY(i32 noundef 5) #2
%18 = load i32, ptr @VR_CR0, align 4, !tbaa !6
%19 = tail call i32 @CSR_READ_1(ptr noundef %0, i32 noundef %18) #2
%20 = load i32, ptr @VR_CR0_TX_ON, align 4, !tbaa !6
%21 = and i32 %20, %19
%22 = icmp eq i32 %21, 0
br i1 %22, label %30, label %23
23: ; preds = %15
%24 = add nsw i32 %16, -1
%25 = icmp sgt i32 %16, 1
br i1 %25, label %15, label %28, !llvm.loop !10
26: ; preds = %7
%27 = icmp eq i32 %13, 0
br i1 %27, label %28, label %30
28: ; preds = %23, %26
%29 = load i32, ptr @ETIMEDOUT, align 4
br label %30
30: ; preds = %15, %28, %26, %1
%31 = phi i32 [ 0, %1 ], [ %29, %28 ], [ 0, %26 ], [ 0, %15 ]
ret i32 %31
}
declare i32 @CSR_READ_1(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CSR_WRITE_1(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @DELAY(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_dev_vr_extr_if_vr.c_vr_tx_stop |
; ModuleID = 'AnghaBench/freebsd/crypto/heimdal/lib/krb5/extr_krbhst.c__krb5_free_krbhst_info.c'
source_filename = "AnghaBench/freebsd/crypto/heimdal/lib/krb5/extr_krbhst.c__krb5_free_krbhst_info.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @_krb5_free_krbhst_info(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @freeaddrinfo(ptr noundef nonnull %2) #2
br label %6
6: ; preds = %4, %1
%7 = tail call i32 @free(ptr noundef nonnull %0) #2
ret void
}
declare i32 @freeaddrinfo(ptr noundef) local_unnamed_addr #1
declare i32 @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 0}
!6 = !{!"TYPE_4__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/crypto/heimdal/lib/krb5/extr_krbhst.c__krb5_free_krbhst_info.c'
source_filename = "AnghaBench/freebsd/crypto/heimdal/lib/krb5/extr_krbhst.c__krb5_free_krbhst_info.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 @_krb5_free_krbhst_info(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @freeaddrinfo(ptr noundef nonnull %2) #2
br label %6
6: ; preds = %4, %1
%7 = tail call i32 @free(ptr noundef nonnull %0) #2
ret void
}
declare i32 @freeaddrinfo(ptr noundef) local_unnamed_addr #1
declare i32 @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 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_crypto_heimdal_lib_krb5_extr_krbhst.c__krb5_free_krbhst_info |
; ModuleID = 'AnghaBench/ccv/lib/nnc/extr_ccv_nnc_symbolic_graph_case_of.c_ccv_nnc_symbolic_graph_case_of_new.c'
source_filename = "AnghaBench/ccv/lib/nnc/extr_ccv_nnc_symbolic_graph_case_of.c_ccv_nnc_symbolic_graph_case_of_new.c"
target datalayout = "e-m:e-p270:32:32-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 { i32, i32 }
%struct.TYPE_19__ = type { %struct.TYPE_15__, i32 }
%struct.TYPE_15__ = type { %struct.TYPE_14__ }
%struct.TYPE_14__ = type { i32, i32 }
@CCV_NNC_GRAPH_FORWARD = dso_local local_unnamed_addr constant i64 0, align 8
@CCV_NNC_GRAPH_BACKWARD = dso_local local_unnamed_addr constant i64 0, align 8
@CCV_NNC_GRAPH_EXEC_CASE_OF = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ccv_nnc_symbolic_graph_case_of_new(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
%8 = icmp eq i64 %1, 0
%9 = zext i1 %8 to i32
%10 = tail call i32 @assert(i32 noundef %9) #4
%11 = icmp sgt i32 %5, 0
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 noundef %12) #4
%14 = shl nsw i32 %5, 1
%15 = add nsw i32 %14, %3
%16 = zext i32 %15 to i64
%17 = alloca i32, i64 %16, align 16
%18 = add i32 %5, %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
br i1 %11, label %21, label %64
21: ; preds = %7
%22 = zext nneg i32 %5 to i64
%23 = icmp ult i32 %5, 8
%24 = and i64 %19, 4611686018427387896
%25 = icmp eq i64 %24, 0
%26 = or i1 %23, %25
br i1 %26, label %48, label %27
27: ; preds = %21
%28 = and i64 %22, 2147483640
br label %29
29: ; preds = %29, %27
%30 = phi i64 [ 0, %27 ], [ %44, %29 ]
%31 = or disjoint i64 %30, 4
%32 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %30
%33 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %31
%34 = load <8 x i32>, ptr %32, align 4, !tbaa !5
%35 = load <8 x i32>, ptr %33, align 4, !tbaa !5
%36 = shufflevector <8 x i32> %34, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%37 = shufflevector <8 x i32> %35, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%38 = shufflevector <8 x i32> %34, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%39 = shufflevector <8 x i32> %35, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%40 = getelementptr inbounds i32, ptr %17, i64 %30
%41 = getelementptr inbounds i32, ptr %40, i64 4
store <4 x i32> %38, ptr %40, align 16, !tbaa !5
store <4 x i32> %39, ptr %41, align 16, !tbaa !5
%42 = getelementptr inbounds i32, ptr %20, i64 %30
%43 = getelementptr inbounds i32, ptr %42, i64 4
store <4 x i32> %36, ptr %42, align 4, !tbaa !5
store <4 x i32> %37, ptr %43, align 4, !tbaa !5
%44 = add nuw i64 %30, 8
%45 = icmp eq i64 %44, %28
br i1 %45, label %46, label %29, !llvm.loop !9
46: ; preds = %29
%47 = icmp eq i64 %28, %22
br i1 %47, label %64, label %48
48: ; preds = %21, %46
%49 = phi i64 [ 0, %21 ], [ %28, %46 ]
%50 = and i64 %22, 1
%51 = icmp eq i64 %50, 0
br i1 %51, label %60, label %52
52: ; preds = %48
%53 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %49
%54 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %49, i32 1
%55 = load i32, ptr %54, align 4, !tbaa !13
%56 = getelementptr inbounds i32, ptr %17, i64 %49
store i32 %55, ptr %56, align 16, !tbaa !5
%57 = load i32, ptr %53, align 4, !tbaa !15
%58 = getelementptr inbounds i32, ptr %20, i64 %49
store i32 %57, ptr %58, align 4, !tbaa !5
%59 = or disjoint i64 %49, 1
br label %60
60: ; preds = %52, %48
%61 = phi i64 [ %49, %48 ], [ %59, %52 ]
%62 = add nsw i64 %22, -1
%63 = icmp eq i64 %49, %62
br i1 %63, label %64, label %77
64: ; preds = %60, %77, %46, %7
%65 = icmp sgt i32 %3, 0
br i1 %65, label %66, label %94
66: ; preds = %64
%67 = sext i32 %5 to i64
%68 = shl nsw i64 %67, 2
%69 = getelementptr i8, ptr %17, i64 %68
%70 = add i32 %5, 1
%71 = tail call i32 @llvm.smax.i32(i32 %18, i32 %70)
%72 = xor i32 %5, -1
%73 = add i32 %71, %72
%74 = zext i32 %73 to i64
%75 = shl nuw nsw i64 %74, 2
%76 = add nuw nsw i64 %75, 4
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %69, ptr noundef nonnull align 4 dereferenceable(1) %2, i64 %76, i1 false), !tbaa !5
br label %94
77: ; preds = %60, %77
%78 = phi i64 [ %92, %77 ], [ %61, %60 ]
%79 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %78
%80 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %78, i32 1
%81 = load i32, ptr %80, align 4, !tbaa !13
%82 = getelementptr inbounds i32, ptr %17, i64 %78
store i32 %81, ptr %82, align 4, !tbaa !5
%83 = load i32, ptr %79, align 4, !tbaa !15
%84 = getelementptr inbounds i32, ptr %20, i64 %78
store i32 %83, ptr %84, align 4, !tbaa !5
%85 = add nuw nsw i64 %78, 1
%86 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %85
%87 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %85, i32 1
%88 = load i32, ptr %87, align 4, !tbaa !13
%89 = getelementptr inbounds i32, ptr %17, i64 %85
store i32 %88, ptr %89, align 4, !tbaa !5
%90 = load i32, ptr %86, align 4, !tbaa !15
%91 = getelementptr inbounds i32, ptr %20, i64 %85
store i32 %90, ptr %91, align 4, !tbaa !5
%92 = add nuw nsw i64 %78, 2
%93 = icmp eq i64 %92, %22
br i1 %93, label %64, label %77, !llvm.loop !16
94: ; preds = %66, %64
%95 = tail call i32 (...) @CMD_GENERIC() #4
%96 = tail call i32 @ccv_nnc_cmd(i64 noundef %1, i32 noundef 0, i32 noundef %95, i32 noundef 0) #4
%97 = call i32 @ccv_nnc_graph_exec_symbol_new(ptr noundef %0, i32 noundef %96, ptr noundef nonnull %17, i32 noundef %18, ptr noundef nonnull %20, i32 noundef %5, ptr noundef %6) #4
%98 = call i32 @ccv_nnc_tensor_symbol_set_bypasses(ptr noundef %0, ptr noundef %4, i32 noundef %5) #4
%99 = load i32, ptr %0, align 4, !tbaa !17
%100 = call i64 @ccv_array_get(i32 noundef %99, i32 noundef %97) #4
%101 = inttoptr i64 %100 to ptr
%102 = load i32, ptr @CCV_NNC_GRAPH_EXEC_CASE_OF, align 4, !tbaa !5
%103 = getelementptr inbounds %struct.TYPE_19__, ptr %101, i64 0, i32 1
%104 = load i32, ptr %103, align 4, !tbaa !19
%105 = or i32 %104, %102
store i32 %105, ptr %103, align 4, !tbaa !19
store i32 %5, ptr %101, align 4, !tbaa !23
%106 = getelementptr inbounds %struct.TYPE_14__, ptr %101, i64 0, i32 1
store i32 %3, ptr %106, align 4, !tbaa !24
ret i32 %97
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @ccv_nnc_graph_exec_symbol_new(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ccv_nnc_cmd(i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CMD_GENERIC(...) local_unnamed_addr #1
declare i32 @ccv_nnc_tensor_symbol_set_bypasses(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ccv_array_get(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !6, i64 4}
!14 = !{!"TYPE_16__", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 0}
!16 = distinct !{!16, !10, !11}
!17 = !{!18, !6, i64 0}
!18 = !{!"TYPE_17__", !6, i64 0}
!19 = !{!20, !6, i64 8}
!20 = !{!"TYPE_19__", !21, i64 0, !6, i64 8}
!21 = !{!"TYPE_15__", !22, i64 0}
!22 = !{!"TYPE_14__", !6, i64 0, !6, i64 4}
!23 = !{!20, !6, i64 0}
!24 = !{!20, !6, i64 4}
| ; ModuleID = 'AnghaBench/ccv/lib/nnc/extr_ccv_nnc_symbolic_graph_case_of.c_ccv_nnc_symbolic_graph_case_of_new.c'
source_filename = "AnghaBench/ccv/lib/nnc/extr_ccv_nnc_symbolic_graph_case_of.c_ccv_nnc_symbolic_graph_case_of_new.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_16__ = type { i32, i32 }
@CCV_NNC_GRAPH_FORWARD = common local_unnamed_addr global i64 0, align 8
@CCV_NNC_GRAPH_BACKWARD = common local_unnamed_addr global i64 0, align 8
@CCV_NNC_GRAPH_EXEC_CASE_OF = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ccv_nnc_symbolic_graph_case_of_new(ptr noundef %0, i64 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
%8 = load i64, ptr @CCV_NNC_GRAPH_FORWARD, align 8, !tbaa !6
%9 = icmp eq i64 %8, %1
%10 = load i64, ptr @CCV_NNC_GRAPH_BACKWARD, align 8
%11 = icmp eq i64 %10, %1
%12 = select i1 %9, i1 true, i1 %11
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 noundef %13) #4
%15 = icmp sgt i32 %5, 0
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 noundef %16) #4
%18 = shl nsw i32 %5, 1
%19 = add nsw i32 %18, %3
%20 = zext i32 %19 to i64
%21 = alloca i32, i64 %20, align 4
%22 = add i32 %5, %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
br i1 %15, label %25, label %54
25: ; preds = %7
%26 = zext nneg i32 %5 to i64
%27 = icmp ult i32 %5, 8
%28 = and i64 %23, 4611686018427387896
%29 = icmp eq i64 %28, 0
%30 = or i1 %27, %29
br i1 %30, label %31, label %33
31: ; preds = %52, %25
%32 = phi i64 [ 0, %25 ], [ %34, %52 ]
br label %67
33: ; preds = %25
%34 = and i64 %26, 2147483640
br label %35
35: ; preds = %35, %33
%36 = phi i64 [ 0, %33 ], [ %50, %35 ]
%37 = or disjoint i64 %36, 4
%38 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %36
%39 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %37
%40 = load <8 x i32>, ptr %38, align 4, !tbaa !10
%41 = load <8 x i32>, ptr %39, align 4, !tbaa !10
%42 = shufflevector <8 x i32> %40, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%43 = shufflevector <8 x i32> %41, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%44 = shufflevector <8 x i32> %40, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%45 = shufflevector <8 x i32> %41, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%46 = getelementptr inbounds i32, ptr %21, i64 %36
%47 = getelementptr inbounds i8, ptr %46, i64 16
store <4 x i32> %44, ptr %46, align 4, !tbaa !10
store <4 x i32> %45, ptr %47, align 4, !tbaa !10
%48 = getelementptr inbounds i32, ptr %24, i64 %36
%49 = getelementptr inbounds i8, ptr %48, i64 16
store <4 x i32> %42, ptr %48, align 4, !tbaa !10
store <4 x i32> %43, ptr %49, align 4, !tbaa !10
%50 = add nuw i64 %36, 8
%51 = icmp eq i64 %50, %34
br i1 %51, label %52, label %35, !llvm.loop !12
52: ; preds = %35
%53 = icmp eq i64 %34, %26
br i1 %53, label %54, label %31
54: ; preds = %67, %52, %7
%55 = icmp sgt i32 %3, 0
br i1 %55, label %56, label %77
56: ; preds = %54
%57 = sext i32 %5 to i64
%58 = shl nsw i64 %57, 2
%59 = getelementptr i8, ptr %21, i64 %58
%60 = add i32 %5, 1
%61 = tail call i32 @llvm.smax.i32(i32 %22, i32 %60)
%62 = xor i32 %5, -1
%63 = add i32 %61, %62
%64 = zext i32 %63 to i64
%65 = shl nuw nsw i64 %64, 2
%66 = add nuw nsw i64 %65, 4
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %59, ptr noundef nonnull align 4 dereferenceable(1) %2, i64 %66, i1 false), !tbaa !10
br label %77
67: ; preds = %31, %67
%68 = phi i64 [ %75, %67 ], [ %32, %31 ]
%69 = getelementptr inbounds %struct.TYPE_16__, ptr %4, i64 %68
%70 = getelementptr inbounds i8, ptr %69, i64 4
%71 = load i32, ptr %70, align 4, !tbaa !16
%72 = getelementptr inbounds i32, ptr %21, i64 %68
store i32 %71, ptr %72, align 4, !tbaa !10
%73 = load i32, ptr %69, align 4, !tbaa !18
%74 = getelementptr inbounds i32, ptr %24, i64 %68
store i32 %73, ptr %74, align 4, !tbaa !10
%75 = add nuw nsw i64 %68, 1
%76 = icmp eq i64 %75, %26
br i1 %76, label %54, label %67, !llvm.loop !19
77: ; preds = %56, %54
%78 = tail call i32 @CMD_GENERIC() #4
%79 = tail call i32 @ccv_nnc_cmd(i64 noundef %1, i32 noundef 0, i32 noundef %78, i32 noundef 0) #4
%80 = call i32 @ccv_nnc_graph_exec_symbol_new(ptr noundef %0, i32 noundef %79, ptr noundef nonnull %21, i32 noundef %22, ptr noundef nonnull %24, i32 noundef %5, ptr noundef %6) #4
%81 = call i32 @ccv_nnc_tensor_symbol_set_bypasses(ptr noundef %0, ptr noundef %4, i32 noundef %5) #4
%82 = load i32, ptr %0, align 4, !tbaa !20
%83 = call i64 @ccv_array_get(i32 noundef %82, i32 noundef %80) #4
%84 = inttoptr i64 %83 to ptr
%85 = load i32, ptr @CCV_NNC_GRAPH_EXEC_CASE_OF, align 4, !tbaa !10
%86 = getelementptr inbounds i8, ptr %84, i64 8
%87 = load i32, ptr %86, align 4, !tbaa !22
%88 = or i32 %87, %85
store i32 %88, ptr %86, align 4, !tbaa !22
store i32 %5, ptr %84, align 4, !tbaa !26
%89 = getelementptr inbounds i8, ptr %84, i64 4
store i32 %3, ptr %89, align 4, !tbaa !27
ret i32 %80
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @ccv_nnc_graph_exec_symbol_new(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ccv_nnc_cmd(i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CMD_GENERIC(...) local_unnamed_addr #1
declare i32 @ccv_nnc_tensor_symbol_set_bypasses(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ccv_array_get(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13, !14, !15}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = !{!17, !11, i64 4}
!17 = !{!"TYPE_16__", !11, i64 0, !11, i64 4}
!18 = !{!17, !11, i64 0}
!19 = distinct !{!19, !13, !14}
!20 = !{!21, !11, i64 0}
!21 = !{!"TYPE_17__", !11, i64 0}
!22 = !{!23, !11, i64 8}
!23 = !{!"TYPE_19__", !24, i64 0, !11, i64 8}
!24 = !{!"TYPE_15__", !25, i64 0}
!25 = !{!"TYPE_14__", !11, i64 0, !11, i64 4}
!26 = !{!23, !11, i64 0}
!27 = !{!23, !11, i64 4}
| ccv_lib_nnc_extr_ccv_nnc_symbolic_graph_case_of.c_ccv_nnc_symbolic_graph_case_of_new |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/fm10k/extr_fm10k_pf.c_fm10k_is_ari_hierarchy_pf.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/fm10k/extr_fm10k_pf.c_fm10k_is_ari_hierarchy_pf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FM10K_PCIE_SRIOV_CTRL = dso_local local_unnamed_addr global i32 0, align 4
@FM10K_PCIE_SRIOV_CTRL_VFARI = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @fm10k_is_ari_hierarchy_pf], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @fm10k_is_ari_hierarchy_pf(ptr noundef %0) #0 {
%2 = load i32, ptr @FM10K_PCIE_SRIOV_CTRL, align 4, !tbaa !5
%3 = tail call i32 @fm10k_read_pci_cfg_word(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr @FM10K_PCIE_SRIOV_CTRL_VFARI, align 4, !tbaa !5
%5 = and i32 %4, %3
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @fm10k_read_pci_cfg_word(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/net/ethernet/intel/fm10k/extr_fm10k_pf.c_fm10k_is_ari_hierarchy_pf.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/fm10k/extr_fm10k_pf.c_fm10k_is_ari_hierarchy_pf.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FM10K_PCIE_SRIOV_CTRL = common local_unnamed_addr global i32 0, align 4
@FM10K_PCIE_SRIOV_CTRL_VFARI = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @fm10k_is_ari_hierarchy_pf], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @fm10k_is_ari_hierarchy_pf(ptr noundef %0) #0 {
%2 = load i32, ptr @FM10K_PCIE_SRIOV_CTRL, align 4, !tbaa !6
%3 = tail call i32 @fm10k_read_pci_cfg_word(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr @FM10K_PCIE_SRIOV_CTRL_VFARI, align 4, !tbaa !6
%5 = and i32 %4, %3
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @fm10k_read_pci_cfg_word(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_net_ethernet_intel_fm10k_extr_fm10k_pf.c_fm10k_is_ari_hierarchy_pf |
; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_format_zip.c_init_traditional_PKWARE_decryption.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_format_zip.c_init_traditional_PKWARE_decryption.c"
target datalayout = "e-m:e-p270:32:32-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.archive_read = type { i32, ptr }
%struct.zip = type { i32, i64, i64, i32, ptr, i32 }
%struct.TYPE_4__ = type { i32, i64 }
@ARCHIVE_OK = dso_local local_unnamed_addr global i32 0, align 4
@ZIP_LENGTH_AT_END = dso_local local_unnamed_addr global i32 0, align 4
@ARCHIVE_ERRNO_FILE_FORMAT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [55 x i8] c"Truncated Zip encrypted body: only %jd bytes available\00", align 1
@ARCHIVE_FATAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"Truncated ZIP file data\00", align 1
@ARCHIVE_ERRNO_MISC = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"Incorrect passphrase\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"Passphrase required for this entry\00", align 1
@ARCHIVE_FAILED = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [31 x i8] c"Too many incorrect passphrases\00", align 1
@ENC_HEADER_SIZE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @init_traditional_PKWARE_decryption], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @init_traditional_PKWARE_decryption(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = getelementptr inbounds %struct.archive_read, 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 = inttoptr i64 %5 to ptr
%7 = load i32, ptr %6, align 8, !tbaa !14
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = load i32, ptr @ARCHIVE_OK, align 4, !tbaa !16
br label %79
11: ; preds = %1
%12 = getelementptr inbounds %struct.zip, ptr %6, i64 0, i32 4
%13 = load ptr, ptr %12, align 8, !tbaa !17
%14 = load i32, ptr %13, align 8, !tbaa !18
%15 = load i32, ptr @ZIP_LENGTH_AT_END, align 4, !tbaa !16
%16 = and i32 %15, %14
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %27
18: ; preds = %11
%19 = getelementptr inbounds %struct.zip, ptr %6, i64 0, i32 1
%20 = load i64, ptr %19, align 8, !tbaa !20
%21 = icmp slt i64 %20, 12
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i32, ptr @ARCHIVE_ERRNO_FILE_FORMAT, align 4, !tbaa !16
%24 = trunc i64 %20 to i32
%25 = tail call i32 (ptr, i32, ptr, ...) @archive_set_error(ptr noundef nonnull %0, i32 noundef %23, ptr noundef nonnull @.str, i32 noundef %24) #3
%26 = load i32, ptr @ARCHIVE_FATAL, align 4, !tbaa !16
br label %79
27: ; preds = %18, %11
%28 = tail call ptr @__archive_read_ahead(ptr noundef nonnull %0, i64 noundef 12, ptr noundef null) #3
%29 = icmp eq ptr %28, null
br i1 %29, label %35, label %30
30: ; preds = %27
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%31 = tail call ptr @__archive_read_next_passphrase(ptr noundef nonnull %0) #3
%32 = icmp eq ptr %31, null
br i1 %32, label %53, label %33
33: ; preds = %30
%34 = getelementptr inbounds %struct.zip, ptr %6, i64 0, i32 5
br label %39
35: ; preds = %27
%36 = load i32, ptr @ARCHIVE_ERRNO_FILE_FORMAT, align 4, !tbaa !16
%37 = tail call i32 (ptr, i32, ptr, ...) @archive_set_error(ptr noundef nonnull %0, i32 noundef %36, ptr noundef nonnull @.str.1) #3
%38 = load i32, ptr @ARCHIVE_FATAL, align 4, !tbaa !16
br label %79
39: ; preds = %33, %58
%40 = phi ptr [ %31, %33 ], [ %60, %58 ]
%41 = phi i32 [ 0, %33 ], [ %59, %58 ]
%42 = call i32 @strlen(ptr noundef nonnull %40) #3
%43 = call i32 @trad_enc_init(ptr noundef nonnull %34, ptr noundef nonnull %40, i32 noundef %42, ptr noundef nonnull %28, i64 noundef 12, ptr noundef nonnull %2) #3
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %39
%46 = load i64, ptr %2, align 8, !tbaa !21
%47 = load ptr, ptr %12, align 8, !tbaa !17
%48 = getelementptr inbounds %struct.TYPE_4__, ptr %47, i64 0, i32 1
%49 = load i64, ptr %48, align 8, !tbaa !22
%50 = icmp eq i64 %46, %49
br i1 %50, label %62, label %51
51: ; preds = %45, %39
%52 = icmp eq i32 %41, 10001
br i1 %52, label %53, label %58
53: ; preds = %51, %58, %30
%54 = phi ptr [ @.str.3, %30 ], [ @.str.2, %58 ], [ @.str.4, %51 ]
%55 = load i32, ptr @ARCHIVE_ERRNO_MISC, align 4, !tbaa !16
%56 = call i32 (ptr, i32, ptr, ...) @archive_set_error(ptr noundef %0, i32 noundef %55, ptr noundef nonnull %54) #3
%57 = load i32, ptr @ARCHIVE_FAILED, align 4, !tbaa !16
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
br label %79
58: ; preds = %51
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
%59 = add nuw nsw i32 %41, 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%60 = call ptr @__archive_read_next_passphrase(ptr noundef %0) #3
%61 = icmp eq ptr %60, null
br i1 %61, label %53, label %39
62: ; preds = %45
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
%63 = call i32 @__archive_read_consume(ptr noundef %0, i64 noundef 12) #3
store i32 1, ptr %6, align 8, !tbaa !14
%64 = load ptr, ptr %12, align 8, !tbaa !17
%65 = load i32, ptr %64, align 8, !tbaa !18
%66 = load i32, ptr @ZIP_LENGTH_AT_END, align 4, !tbaa !16
%67 = and i32 %66, %65
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %62
%70 = getelementptr inbounds %struct.zip, ptr %6, i64 0, i32 1
%71 = load i64, ptr %70, align 8, !tbaa !20
%72 = add nsw i64 %71, -12
store i64 %72, ptr %70, align 8, !tbaa !20
br label %73
73: ; preds = %69, %62
%74 = getelementptr inbounds %struct.zip, ptr %6, i64 0, i32 3
%75 = load i32, ptr %74, align 8, !tbaa !23
%76 = add nsw i32 %75, 12
store i32 %76, ptr %74, align 8, !tbaa !23
%77 = getelementptr inbounds %struct.zip, ptr %6, i64 0, i32 2
store i64 0, ptr %77, align 8, !tbaa !24
%78 = call i32 @zip_alloc_decryption_buffer(ptr noundef %0) #3
br label %79
79: ; preds = %53, %73, %35, %22, %9
%80 = phi i32 [ %10, %9 ], [ %26, %22 ], [ %38, %35 ], [ %78, %73 ], [ %57, %53 ]
ret i32 %80
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @archive_set_error(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare ptr @__archive_read_ahead(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @__archive_read_next_passphrase(ptr noundef) local_unnamed_addr #2
declare i32 @trad_enc_init(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strlen(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 @__archive_read_consume(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @zip_alloc_decryption_buffer(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, !10, i64 8}
!6 = !{!"archive_read", !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 = !{!"TYPE_3__", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"zip", !7, i64 0, !13, i64 8, !13, i64 16, !7, i64 24, !10, i64 32, !7, i64 40}
!16 = !{!7, !7, i64 0}
!17 = !{!15, !10, i64 32}
!18 = !{!19, !7, i64 0}
!19 = !{!"TYPE_4__", !7, i64 0, !13, i64 8}
!20 = !{!15, !13, i64 8}
!21 = !{!13, !13, i64 0}
!22 = !{!19, !13, i64 8}
!23 = !{!15, !7, i64 24}
!24 = !{!15, !13, i64 16}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_format_zip.c_init_traditional_PKWARE_decryption.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/libarchive/extr_archive_read_support_format_zip.c_init_traditional_PKWARE_decryption.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ARCHIVE_OK = common local_unnamed_addr global i32 0, align 4
@ZIP_LENGTH_AT_END = common local_unnamed_addr global i32 0, align 4
@ARCHIVE_ERRNO_FILE_FORMAT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [55 x i8] c"Truncated Zip encrypted body: only %jd bytes available\00", align 1
@ARCHIVE_FATAL = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"Truncated ZIP file data\00", align 1
@ARCHIVE_ERRNO_MISC = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"Incorrect passphrase\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"Passphrase required for this entry\00", align 1
@ARCHIVE_FAILED = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [31 x i8] c"Too many incorrect passphrases\00", align 1
@ENC_HEADER_SIZE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @init_traditional_PKWARE_decryption], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @init_traditional_PKWARE_decryption(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%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 = inttoptr i64 %5 to ptr
%7 = load i32, ptr %6, align 8, !tbaa !15
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = load i32, ptr @ARCHIVE_OK, align 4, !tbaa !17
br label %79
11: ; preds = %1
%12 = getelementptr inbounds i8, ptr %6, i64 32
%13 = load ptr, ptr %12, align 8, !tbaa !18
%14 = load i32, ptr %13, align 8, !tbaa !19
%15 = load i32, ptr @ZIP_LENGTH_AT_END, align 4, !tbaa !17
%16 = and i32 %15, %14
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %27
18: ; preds = %11
%19 = getelementptr inbounds i8, ptr %6, i64 8
%20 = load i64, ptr %19, align 8, !tbaa !21
%21 = icmp slt i64 %20, 12
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i32, ptr @ARCHIVE_ERRNO_FILE_FORMAT, align 4, !tbaa !17
%24 = trunc i64 %20 to i32
%25 = tail call i32 (ptr, i32, ptr, ...) @archive_set_error(ptr noundef nonnull %0, i32 noundef %23, ptr noundef nonnull @.str, i32 noundef %24) #3
%26 = load i32, ptr @ARCHIVE_FATAL, align 4, !tbaa !17
br label %79
27: ; preds = %18, %11
%28 = tail call ptr @__archive_read_ahead(ptr noundef nonnull %0, i64 noundef 12, ptr noundef null) #3
%29 = icmp eq ptr %28, null
br i1 %29, label %35, label %30
30: ; preds = %27
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%31 = tail call ptr @__archive_read_next_passphrase(ptr noundef nonnull %0) #3
%32 = icmp eq ptr %31, null
br i1 %32, label %53, label %33
33: ; preds = %30
%34 = getelementptr inbounds i8, ptr %6, i64 40
br label %39
35: ; preds = %27
%36 = load i32, ptr @ARCHIVE_ERRNO_FILE_FORMAT, align 4, !tbaa !17
%37 = tail call i32 (ptr, i32, ptr, ...) @archive_set_error(ptr noundef nonnull %0, i32 noundef %36, ptr noundef nonnull @.str.1) #3
%38 = load i32, ptr @ARCHIVE_FATAL, align 4, !tbaa !17
br label %79
39: ; preds = %33, %58
%40 = phi ptr [ %31, %33 ], [ %60, %58 ]
%41 = phi i32 [ 0, %33 ], [ %59, %58 ]
%42 = call i32 @strlen(ptr noundef nonnull %40) #3
%43 = call i32 @trad_enc_init(ptr noundef nonnull %34, ptr noundef nonnull %40, i32 noundef %42, ptr noundef nonnull %28, i64 noundef 12, ptr noundef nonnull %2) #3
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %39
%46 = load i64, ptr %2, align 8, !tbaa !22
%47 = load ptr, ptr %12, align 8, !tbaa !18
%48 = getelementptr inbounds i8, ptr %47, i64 8
%49 = load i64, ptr %48, align 8, !tbaa !23
%50 = icmp eq i64 %46, %49
br i1 %50, label %62, label %51
51: ; preds = %45, %39
%52 = icmp eq i32 %41, 10001
br i1 %52, label %53, label %58
53: ; preds = %51, %58, %30
%54 = phi ptr [ @.str.3, %30 ], [ @.str.2, %58 ], [ @.str.4, %51 ]
%55 = load i32, ptr @ARCHIVE_ERRNO_MISC, align 4, !tbaa !17
%56 = call i32 (ptr, i32, ptr, ...) @archive_set_error(ptr noundef %0, i32 noundef %55, ptr noundef nonnull %54) #3
%57 = load i32, ptr @ARCHIVE_FAILED, align 4, !tbaa !17
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
br label %79
58: ; preds = %51
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
%59 = add nuw nsw i32 %41, 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%60 = call ptr @__archive_read_next_passphrase(ptr noundef %0) #3
%61 = icmp eq ptr %60, null
br i1 %61, label %53, label %39
62: ; preds = %45
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
%63 = call i32 @__archive_read_consume(ptr noundef %0, i64 noundef 12) #3
store i32 1, ptr %6, align 8, !tbaa !15
%64 = load ptr, ptr %12, align 8, !tbaa !18
%65 = load i32, ptr %64, align 8, !tbaa !19
%66 = load i32, ptr @ZIP_LENGTH_AT_END, align 4, !tbaa !17
%67 = and i32 %66, %65
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %73
69: ; preds = %62
%70 = getelementptr inbounds i8, ptr %6, i64 8
%71 = load i64, ptr %70, align 8, !tbaa !21
%72 = add nsw i64 %71, -12
store i64 %72, ptr %70, align 8, !tbaa !21
br label %73
73: ; preds = %69, %62
%74 = getelementptr inbounds i8, ptr %6, i64 24
%75 = load i32, ptr %74, align 8, !tbaa !24
%76 = add nsw i32 %75, 12
store i32 %76, ptr %74, align 8, !tbaa !24
%77 = getelementptr inbounds i8, ptr %6, i64 16
store i64 0, ptr %77, align 8, !tbaa !25
%78 = call i32 @zip_alloc_decryption_buffer(ptr noundef %0) #3
br label %79
79: ; preds = %53, %73, %35, %22, %9
%80 = phi i32 [ %10, %9 ], [ %26, %22 ], [ %38, %35 ], [ %78, %73 ], [ %57, %53 ]
ret i32 %80
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @archive_set_error(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare ptr @__archive_read_ahead(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @__archive_read_next_passphrase(ptr noundef) local_unnamed_addr #2
declare i32 @trad_enc_init(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strlen(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 @__archive_read_consume(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @zip_alloc_decryption_buffer(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, !11, i64 8}
!7 = !{!"archive_read", !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 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"zip", !8, i64 0, !14, i64 8, !14, i64 16, !8, i64 24, !11, i64 32, !8, i64 40}
!17 = !{!8, !8, i64 0}
!18 = !{!16, !11, i64 32}
!19 = !{!20, !8, i64 0}
!20 = !{!"TYPE_4__", !8, i64 0, !14, i64 8}
!21 = !{!16, !14, i64 8}
!22 = !{!14, !14, i64 0}
!23 = !{!20, !14, i64 8}
!24 = !{!16, !8, i64 24}
!25 = !{!16, !14, i64 16}
| freebsd_contrib_libarchive_libarchive_extr_archive_read_support_format_zip.c_init_traditional_PKWARE_decryption |
; ModuleID = 'AnghaBench/obs-studio/libobs/extr_obs-data.c_item_double.c'
source_filename = "AnghaBench/obs-studio/libobs/extr_obs-data.c_item_double.c"
target datalayout = "e-m:e-p270:32:32-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.obs_data_number = type { i64, double, i64 }
@OBS_DATA_NUM_INT = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @item_double], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal double @item_double(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %19, label %4
4: ; preds = %2
%5 = tail call ptr %1(ptr noundef nonnull %0) #1
%6 = icmp eq ptr %5, null
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = tail call ptr %1(ptr noundef nonnull %0) #1
%9 = load i64, ptr %8, align 8, !tbaa !5
%10 = load i64, ptr @OBS_DATA_NUM_INT, align 8, !tbaa !11
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = getelementptr inbounds %struct.obs_data_number, ptr %8, i64 0, i32 2
%14 = load i64, ptr %13, align 8, !tbaa !12
%15 = sitofp i64 %14 to double
br label %19
16: ; preds = %7
%17 = getelementptr inbounds %struct.obs_data_number, ptr %8, i64 0, i32 1
%18 = load double, ptr %17, align 8, !tbaa !13
br label %19
19: ; preds = %2, %4, %12, %16
%20 = phi double [ %15, %12 ], [ %18, %16 ], [ 0.000000e+00, %4 ], [ 0.000000e+00, %2 ]
ret double %20
}
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 = !{!"obs_data_number", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/obs-studio/libobs/extr_obs-data.c_item_double.c'
source_filename = "AnghaBench/obs-studio/libobs/extr_obs-data.c_item_double.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OBS_DATA_NUM_INT = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @item_double], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal double @item_double(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %19, label %4
4: ; preds = %2
%5 = tail call ptr %1(ptr noundef nonnull %0) #1
%6 = icmp eq ptr %5, null
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = tail call ptr %1(ptr noundef nonnull %0) #1
%9 = load i64, ptr %8, align 8, !tbaa !6
%10 = load i64, ptr @OBS_DATA_NUM_INT, align 8, !tbaa !12
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = getelementptr inbounds i8, ptr %8, i64 16
%14 = load i64, ptr %13, align 8, !tbaa !13
%15 = sitofp i64 %14 to double
br label %19
16: ; preds = %7
%17 = getelementptr inbounds i8, ptr %8, i64 8
%18 = load double, ptr %17, align 8, !tbaa !14
br label %19
19: ; preds = %2, %4, %12, %16
%20 = phi double [ %15, %12 ], [ %18, %16 ], [ 0.000000e+00, %4 ], [ 0.000000e+00, %2 ]
ret double %20
}
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 = !{!"obs_data_number", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 16}
!14 = !{!7, !11, i64 8}
| obs-studio_libobs_extr_obs-data.c_item_double |
; ModuleID = 'AnghaBench/linux/drivers/iio/adc/extr_axp20x_adc.c_axp20x_adc_rate.c'
source_filename = "AnghaBench/linux/drivers/iio/adc/extr_axp20x_adc.c_axp20x_adc_rate.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@AXP20X_ADC_RATE = dso_local local_unnamed_addr global i32 0, align 4
@AXP20X_ADC_RATE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @axp20x_adc_rate], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @axp20x_adc_rate(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = load i32, ptr @AXP20X_ADC_RATE, align 4, !tbaa !10
%5 = load i32, ptr @AXP20X_ADC_RATE_MASK, align 4, !tbaa !10
%6 = tail call i32 @AXP20X_ADC_RATE_HZ(i32 noundef %1) #2
%7 = tail call i32 @regmap_update_bits(i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2
ret i32 %7
}
declare i32 @regmap_update_bits(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @AXP20X_ADC_RATE_HZ(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 = !{!"axp20x_adc_iio", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/iio/adc/extr_axp20x_adc.c_axp20x_adc_rate.c'
source_filename = "AnghaBench/linux/drivers/iio/adc/extr_axp20x_adc.c_axp20x_adc_rate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AXP20X_ADC_RATE = common local_unnamed_addr global i32 0, align 4
@AXP20X_ADC_RATE_MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @axp20x_adc_rate], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @axp20x_adc_rate(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = load i32, ptr @AXP20X_ADC_RATE, align 4, !tbaa !11
%5 = load i32, ptr @AXP20X_ADC_RATE_MASK, align 4, !tbaa !11
%6 = tail call i32 @AXP20X_ADC_RATE_HZ(i32 noundef %1) #2
%7 = tail call i32 @regmap_update_bits(i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2
ret i32 %7
}
declare i32 @regmap_update_bits(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @AXP20X_ADC_RATE_HZ(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 = !{!"axp20x_adc_iio", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_drivers_iio_adc_extr_axp20x_adc.c_axp20x_adc_rate |
; ModuleID = 'AnghaBench/RetroArch/wii/libogc/libogc/extr_dvd.c_DVD_MountAsync.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/libogc/extr_dvd.c_DVD_MountAsync.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@__dvd_mountusrcb = dso_local local_unnamed_addr global i32 0, align 4
@DVD_RESETHARD = dso_local local_unnamed_addr global i32 0, align 4
@callback = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @DVD_MountAsync(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
store i32 %1, ptr @__dvd_mountusrcb, align 4, !tbaa !5
%3 = load i32, ptr @DVD_RESETHARD, align 4, !tbaa !5
%4 = tail call i32 @DVD_Reset(i32 noundef %3) #2
%5 = tail call i32 @udelay(i32 noundef 1150000) #2
%6 = load i32, ptr @callback, align 4, !tbaa !5
%7 = tail call i32 @DVD_SpinUpDriveAsync(ptr noundef %0, i32 noundef %6) #2
ret i32 %7
}
declare i32 @DVD_Reset(i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
declare i32 @DVD_SpinUpDriveAsync(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/RetroArch/wii/libogc/libogc/extr_dvd.c_DVD_MountAsync.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/libogc/extr_dvd.c_DVD_MountAsync.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@__dvd_mountusrcb = common local_unnamed_addr global i32 0, align 4
@DVD_RESETHARD = common local_unnamed_addr global i32 0, align 4
@callback = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @DVD_MountAsync(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
store i32 %1, ptr @__dvd_mountusrcb, align 4, !tbaa !6
%3 = load i32, ptr @DVD_RESETHARD, align 4, !tbaa !6
%4 = tail call i32 @DVD_Reset(i32 noundef %3) #2
%5 = tail call i32 @udelay(i32 noundef 1150000) #2
%6 = load i32, ptr @callback, align 4, !tbaa !6
%7 = tail call i32 @DVD_SpinUpDriveAsync(ptr noundef %0, i32 noundef %6) #2
ret i32 %7
}
declare i32 @DVD_Reset(i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
declare i32 @DVD_SpinUpDriveAsync(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"}
| RetroArch_wii_libogc_libogc_extr_dvd.c_DVD_MountAsync |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ida/extr_ida_pci.c_ida_v3_submit.c'
source_filename = "AnghaBench/freebsd/sys/dev/ida/extr_ida_pci.c_ida_v3_submit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@R_CMD_FIFO = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ida_v3_submit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ida_v3_submit(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr @R_CMD_FIFO, align 4, !tbaa !5
%4 = load i32, ptr %1, align 4, !tbaa !9
%5 = tail call i32 @ida_outl(ptr noundef %0, i32 noundef %3, i32 noundef %4) #2
ret void
}
declare i32 @ida_outl(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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"ida_qcb", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ida/extr_ida_pci.c_ida_v3_submit.c'
source_filename = "AnghaBench/freebsd/sys/dev/ida/extr_ida_pci.c_ida_v3_submit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@R_CMD_FIFO = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ida_v3_submit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ida_v3_submit(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr @R_CMD_FIFO, align 4, !tbaa !6
%4 = load i32, ptr %1, align 4, !tbaa !10
%5 = tail call i32 @ida_outl(ptr noundef %0, i32 noundef %3, i32 noundef %4) #2
ret void
}
declare i32 @ida_outl(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"}
!10 = !{!11, !7, i64 0}
!11 = !{!"ida_qcb", !7, i64 0}
| freebsd_sys_dev_ida_extr_ida_pci.c_ida_v3_submit |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/bfake/extr_matrix.c_matrix_get_row.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/bfake/extr_matrix.c_matrix_get_row.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@matrix = dso_local local_unnamed_addr global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/qmk_firmware/keyboards/bfake/extr_matrix.c_matrix_get_row.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/bfake/extr_matrix.c_matrix_get_row.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@matrix = common local_unnamed_addr global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| qmk_firmware_keyboards_bfake_extr_matrix.c_matrix_get_row |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_dma.c_b43legacy_dma_rx.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_dma.c_b43legacy_dma_rx.c"
target datalayout = "e-m:e-p270:32:32-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.b43legacy_dmaring = type { i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @b43legacy_dma_rx(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call i32 @B43legacy_WARN_ON(i32 noundef %3) #3
%5 = tail call i32 @op32_get_current_rxslot(ptr noundef nonnull %0) #3
%6 = icmp sgt i32 %5, -1
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = getelementptr inbounds %struct.b43legacy_dmaring, ptr %0, i64 0, i32 1
%9 = load i32, ptr %8, align 4, !tbaa !10
%10 = icmp sge i32 %5, %9
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %7, %1
%13 = phi i32 [ 1, %1 ], [ %11, %7 ]
%14 = tail call i32 @B43legacy_WARN_ON(i32 noundef %13) #3
%15 = getelementptr inbounds %struct.b43legacy_dmaring, ptr %0, i64 0, i32 2
%16 = load i32, ptr %15, align 4, !tbaa !11
store i32 %16, ptr %2, align 4, !tbaa !12
%17 = icmp eq i32 %16, %5
br i1 %17, label %26, label %18
18: ; preds = %12, %18
%19 = phi i32 [ %21, %18 ], [ 0, %12 ]
%20 = call i32 @dma_rx(ptr noundef nonnull %0, ptr noundef nonnull %2) #3
%21 = add nuw nsw i32 %19, 1
%22 = call i32 @update_max_used_slots(ptr noundef nonnull %0, i32 noundef %21) #3
%23 = load i32, ptr %2, align 4, !tbaa !12
%24 = call i32 @next_slot(ptr noundef nonnull %0, i32 noundef %23) #3
store i32 %24, ptr %2, align 4, !tbaa !12
%25 = icmp eq i32 %24, %5
br i1 %25, label %26, label %18, !llvm.loop !13
26: ; preds = %18, %12
%27 = call i32 @op32_set_current_rxslot(ptr noundef nonnull %0, i32 noundef %5) #3
%28 = load i32, ptr %2, align 4, !tbaa !12
store i32 %28, ptr %15, align 4, !tbaa !11
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @B43legacy_WARN_ON(i32 noundef) local_unnamed_addr #2
declare i32 @op32_get_current_rxslot(ptr noundef) local_unnamed_addr #2
declare i32 @dma_rx(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_max_used_slots(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @next_slot(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @op32_set_current_rxslot(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, !7, i64 0}
!6 = !{!"b43legacy_dmaring", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_dma.c_b43legacy_dma_rx.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_dma.c_b43legacy_dma_rx.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 @b43legacy_dma_rx(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call i32 @B43legacy_WARN_ON(i32 noundef %3) #3
%5 = tail call i32 @op32_get_current_rxslot(ptr noundef nonnull %0) #3
%6 = icmp sgt i32 %5, -1
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %0, i64 4
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = icmp sge i32 %5, %9
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %7, %1
%13 = phi i32 [ 1, %1 ], [ %11, %7 ]
%14 = tail call i32 @B43legacy_WARN_ON(i32 noundef %13) #3
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load i32, ptr %15, align 4, !tbaa !12
store i32 %16, ptr %2, align 4, !tbaa !13
%17 = icmp eq i32 %16, %5
br i1 %17, label %26, label %18
18: ; preds = %12, %18
%19 = phi i32 [ %21, %18 ], [ 0, %12 ]
%20 = call i32 @dma_rx(ptr noundef nonnull %0, ptr noundef nonnull %2) #3
%21 = add nuw nsw i32 %19, 1
%22 = call i32 @update_max_used_slots(ptr noundef nonnull %0, i32 noundef %21) #3
%23 = load i32, ptr %2, align 4, !tbaa !13
%24 = call i32 @next_slot(ptr noundef nonnull %0, i32 noundef %23) #3
store i32 %24, ptr %2, align 4, !tbaa !13
%25 = icmp eq i32 %24, %5
br i1 %25, label %26, label %18, !llvm.loop !14
26: ; preds = %18, %12
%27 = call i32 @op32_set_current_rxslot(ptr noundef nonnull %0, i32 noundef %5) #3
%28 = load i32, ptr %2, align 4, !tbaa !13
store i32 %28, ptr %15, align 4, !tbaa !12
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @B43legacy_WARN_ON(i32 noundef) local_unnamed_addr #2
declare i32 @op32_get_current_rxslot(ptr noundef) local_unnamed_addr #2
declare i32 @dma_rx(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @update_max_used_slots(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @next_slot(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @op32_set_current_rxslot(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, !8, i64 0}
!7 = !{!"b43legacy_dmaring", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 8}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_drivers_net_wireless_b43legacy_extr_dma.c_b43legacy_dma_rx |
; ModuleID = 'AnghaBench/libui/examples/timer/extr_main.c_sayTime.c'
source_filename = "AnghaBench/libui/examples/timer/extr_main.c_sayTime.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@e = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @sayTime(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i32 @time(ptr noundef null) #3
store i32 %3, ptr %2, align 4, !tbaa !5
%4 = call ptr @ctime(ptr noundef nonnull %2) #3
%5 = load i32, ptr @e, align 4, !tbaa !5
%6 = call i32 @uiMultilineEntryAppend(i32 noundef %5, ptr noundef %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 1
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @time(ptr noundef) local_unnamed_addr #2
declare ptr @ctime(ptr noundef) local_unnamed_addr #2
declare i32 @uiMultilineEntryAppend(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libui/examples/timer/extr_main.c_sayTime.c'
source_filename = "AnghaBench/libui/examples/timer/extr_main.c_sayTime.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@e = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @sayTime(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i32 @time(ptr noundef null) #3
store i32 %3, ptr %2, align 4, !tbaa !6
%4 = call ptr @ctime(ptr noundef nonnull %2) #3
%5 = load i32, ptr @e, align 4, !tbaa !6
%6 = call i32 @uiMultilineEntryAppend(i32 noundef %5, ptr noundef %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 1
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @time(ptr noundef) local_unnamed_addr #2
declare ptr @ctime(ptr noundef) local_unnamed_addr #2
declare i32 @uiMultilineEntryAppend(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| libui_examples_timer_extr_main.c_sayTime |
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/kern/extr_kpc_common.c_kpc_multiple_clients.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/kern/extr_kpc_common.c_kpc_multiple_clients.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@kpc_pm_handler = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @kpc_multiple_clients() local_unnamed_addr #0 {
%1 = load ptr, ptr @kpc_pm_handler, align 8, !tbaa !5
%2 = icmp ne ptr %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/darwin-xnu/osfmk/kern/extr_kpc_common.c_kpc_multiple_clients.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/kern/extr_kpc_common.c_kpc_multiple_clients.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@kpc_pm_handler = common local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define range(i32 0, 2) i32 @kpc_multiple_clients() local_unnamed_addr #0 {
%1 = load ptr, ptr @kpc_pm_handler, align 8, !tbaa !6
%2 = icmp ne ptr %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| darwin-xnu_osfmk_kern_extr_kpc_common.c_kpc_multiple_clients |
; ModuleID = 'AnghaBench/linux/drivers/rtc/extr_rtc-mrst.c_mrst_set_time.c'
source_filename = "AnghaBench/linux/drivers/rtc/extr_rtc-mrst.c_mrst_set_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.rtc_time = type { i32, i32, i8, i8, i8, i8 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@rtc_lock = dso_local global i32 0, align 4
@RTC_YEAR = dso_local local_unnamed_addr global i32 0, align 4
@RTC_MONTH = dso_local local_unnamed_addr global i32 0, align 4
@RTC_DAY_OF_MONTH = dso_local local_unnamed_addr global i32 0, align 4
@RTC_HOURS = dso_local local_unnamed_addr global i32 0, align 4
@RTC_MINUTES = dso_local local_unnamed_addr global i32 0, align 4
@RTC_SECONDS = dso_local local_unnamed_addr global i32 0, align 4
@IPCMSG_VRTC = dso_local local_unnamed_addr global i32 0, align 4
@IPC_CMD_VRTC_SETTIME = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mrst_set_time], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mrst_set_time(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = add i32 %3, -173
%5 = icmp ult i32 %4, -101
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @EINVAL, align 4, !tbaa !10
%8 = sub nsw i32 0, %7
br label %41
9: ; preds = %2
%10 = getelementptr inbounds %struct.rtc_time, ptr %1, i64 0, i32 5
%11 = load i8, ptr %10, align 1, !tbaa !11
%12 = getelementptr inbounds %struct.rtc_time, ptr %1, i64 0, i32 4
%13 = load i8, ptr %12, align 2, !tbaa !12
%14 = getelementptr inbounds %struct.rtc_time, ptr %1, i64 0, i32 3
%15 = load i8, ptr %14, align 1, !tbaa !13
%16 = getelementptr inbounds %struct.rtc_time, ptr %1, i64 0, i32 2
%17 = load i8, ptr %16, align 4, !tbaa !14
%18 = getelementptr inbounds %struct.rtc_time, ptr %1, i64 0, i32 1
%19 = load i32, ptr %18, align 4, !tbaa !15
%20 = trunc i32 %19 to i8
%21 = add i8 %20, 1
%22 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @rtc_lock, i64 noundef undef) #2
%23 = trunc i32 %3 to i8
%24 = add i8 %23, -72
%25 = load i32, ptr @RTC_YEAR, align 4, !tbaa !10
%26 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %24, i32 noundef %25) #2
%27 = load i32, ptr @RTC_MONTH, align 4, !tbaa !10
%28 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %21, i32 noundef %27) #2
%29 = load i32, ptr @RTC_DAY_OF_MONTH, align 4, !tbaa !10
%30 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %17, i32 noundef %29) #2
%31 = load i32, ptr @RTC_HOURS, align 4, !tbaa !10
%32 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %15, i32 noundef %31) #2
%33 = load i32, ptr @RTC_MINUTES, align 4, !tbaa !10
%34 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %13, i32 noundef %33) #2
%35 = load i32, ptr @RTC_SECONDS, align 4, !tbaa !10
%36 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %11, i32 noundef %35) #2
%37 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @rtc_lock, i64 noundef undef) #2
%38 = load i32, ptr @IPCMSG_VRTC, align 4, !tbaa !10
%39 = load i32, ptr @IPC_CMD_VRTC_SETTIME, align 4, !tbaa !10
%40 = tail call i32 @intel_scu_ipc_simple_command(i32 noundef %38, i32 noundef %39) #2
br label %41
41: ; preds = %9, %6
%42 = phi i32 [ %8, %6 ], [ %40, %9 ]
ret i32 %42
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @vrtc_cmos_write(i8 noundef zeroext, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @intel_scu_ipc_simple_command(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 = !{!"rtc_time", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !8, i64 11}
!12 = !{!6, !8, i64 10}
!13 = !{!6, !8, i64 9}
!14 = !{!6, !8, i64 8}
!15 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/rtc/extr_rtc-mrst.c_mrst_set_time.c'
source_filename = "AnghaBench/linux/drivers/rtc/extr_rtc-mrst.c_mrst_set_time.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
@rtc_lock = common global i32 0, align 4
@RTC_YEAR = common local_unnamed_addr global i32 0, align 4
@RTC_MONTH = common local_unnamed_addr global i32 0, align 4
@RTC_DAY_OF_MONTH = common local_unnamed_addr global i32 0, align 4
@RTC_HOURS = common local_unnamed_addr global i32 0, align 4
@RTC_MINUTES = common local_unnamed_addr global i32 0, align 4
@RTC_SECONDS = common local_unnamed_addr global i32 0, align 4
@IPCMSG_VRTC = common local_unnamed_addr global i32 0, align 4
@IPC_CMD_VRTC_SETTIME = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mrst_set_time], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mrst_set_time(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
%4 = add i32 %3, -173
%5 = icmp ult i32 %4, -101
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @EINVAL, align 4, !tbaa !11
%8 = sub nsw i32 0, %7
br label %41
9: ; preds = %2
%10 = getelementptr inbounds i8, ptr %1, i64 11
%11 = load i8, ptr %10, align 1, !tbaa !12
%12 = getelementptr inbounds i8, ptr %1, i64 10
%13 = load i8, ptr %12, align 2, !tbaa !13
%14 = getelementptr inbounds i8, ptr %1, i64 9
%15 = load i8, ptr %14, align 1, !tbaa !14
%16 = getelementptr inbounds i8, ptr %1, i64 8
%17 = load i8, ptr %16, align 4, !tbaa !15
%18 = getelementptr inbounds i8, ptr %1, i64 4
%19 = load i32, ptr %18, align 4, !tbaa !16
%20 = trunc i32 %19 to i8
%21 = add i8 %20, 1
%22 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @rtc_lock, i64 noundef undef) #2
%23 = trunc nuw i32 %3 to i8
%24 = add i8 %23, -72
%25 = load i32, ptr @RTC_YEAR, align 4, !tbaa !11
%26 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %24, i32 noundef %25) #2
%27 = load i32, ptr @RTC_MONTH, align 4, !tbaa !11
%28 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %21, i32 noundef %27) #2
%29 = load i32, ptr @RTC_DAY_OF_MONTH, align 4, !tbaa !11
%30 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %17, i32 noundef %29) #2
%31 = load i32, ptr @RTC_HOURS, align 4, !tbaa !11
%32 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %15, i32 noundef %31) #2
%33 = load i32, ptr @RTC_MINUTES, align 4, !tbaa !11
%34 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %13, i32 noundef %33) #2
%35 = load i32, ptr @RTC_SECONDS, align 4, !tbaa !11
%36 = tail call i32 @vrtc_cmos_write(i8 noundef zeroext %11, i32 noundef %35) #2
%37 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @rtc_lock, i64 noundef undef) #2
%38 = load i32, ptr @IPCMSG_VRTC, align 4, !tbaa !11
%39 = load i32, ptr @IPC_CMD_VRTC_SETTIME, align 4, !tbaa !11
%40 = tail call i32 @intel_scu_ipc_simple_command(i32 noundef %38, i32 noundef %39) #2
br label %41
41: ; preds = %9, %6
%42 = phi i32 [ %8, %6 ], [ %40, %9 ]
ret i32 %42
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @vrtc_cmos_write(i8 noundef zeroext, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @intel_scu_ipc_simple_command(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 = !{!"rtc_time", !8, i64 0, !8, i64 4, !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !9, i64 11}
!13 = !{!7, !9, i64 10}
!14 = !{!7, !9, i64 9}
!15 = !{!7, !9, i64 8}
!16 = !{!7, !8, i64 4}
| linux_drivers_rtc_extr_rtc-mrst.c_mrst_set_time |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_wext.c_lbs_set_nick.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_wext.c_lbs_set_nick.c"
target datalayout = "e-m:e-p270:32:32-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.lbs_private = type { i32, i32 }
@LBS_DEB_WEXT = dso_local local_unnamed_addr global i32 0, align 4
@E2BIG = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lbs_set_nick], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @lbs_set_nick(ptr nocapture noundef readonly %0, ptr nocapture readnone %1, ptr nocapture noundef readonly %2, ptr noundef %3) #0 {
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = load i32, ptr @LBS_DEB_WEXT, align 4, !tbaa !10
%7 = tail call i32 @lbs_deb_enter(i32 noundef %6) #2
%8 = load i32, ptr %2, align 4, !tbaa !12
%9 = icmp sgt i32 %8, 16
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = load i32, ptr @E2BIG, align 4, !tbaa !10
%12 = sub nsw i32 0, %11
br label %24
13: ; preds = %4
%14 = tail call i32 @mutex_lock(ptr noundef %5) #2
%15 = getelementptr inbounds %struct.lbs_private, ptr %5, i64 0, i32 1
%16 = load i32, ptr %15, align 4, !tbaa !14
%17 = tail call i32 @memset(i32 noundef %16, i32 noundef 0, i32 noundef 4) #2
%18 = load i32, ptr %15, align 4, !tbaa !14
%19 = load i32, ptr %2, align 4, !tbaa !12
%20 = tail call i32 @memcpy(i32 noundef %18, ptr noundef %3, i32 noundef %19) #2
%21 = tail call i32 @mutex_unlock(ptr noundef %5) #2
%22 = load i32, ptr @LBS_DEB_WEXT, align 4, !tbaa !10
%23 = tail call i32 @lbs_deb_leave(i32 noundef %22) #2
br label %24
24: ; preds = %13, %10
%25 = phi i32 [ %12, %10 ], [ 0, %13 ]
ret i32 %25
}
declare i32 @lbs_deb_enter(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
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 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @lbs_deb_leave(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 = !{!"net_device", !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 = !{!"iw_point", !11, i64 0}
!14 = !{!15, !11, i64 4}
!15 = !{!"lbs_private", !11, i64 0, !11, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_wext.c_lbs_set_nick.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_wext.c_lbs_set_nick.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LBS_DEB_WEXT = common local_unnamed_addr global i32 0, align 4
@E2BIG = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lbs_set_nick], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @lbs_set_nick(ptr nocapture noundef readonly %0, ptr nocapture readnone %1, ptr nocapture noundef readonly %2, ptr noundef %3) #0 {
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = load i32, ptr @LBS_DEB_WEXT, align 4, !tbaa !11
%7 = tail call i32 @lbs_deb_enter(i32 noundef %6) #2
%8 = load i32, ptr %2, align 4, !tbaa !13
%9 = icmp sgt i32 %8, 16
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = load i32, ptr @E2BIG, align 4, !tbaa !11
%12 = sub nsw i32 0, %11
br label %24
13: ; preds = %4
%14 = tail call i32 @mutex_lock(ptr noundef %5) #2
%15 = getelementptr inbounds i8, ptr %5, i64 4
%16 = load i32, ptr %15, align 4, !tbaa !15
%17 = tail call i32 @memset(i32 noundef %16, i32 noundef 0, i32 noundef 4) #2
%18 = load i32, ptr %15, align 4, !tbaa !15
%19 = load i32, ptr %2, align 4, !tbaa !13
%20 = tail call i32 @memcpy(i32 noundef %18, ptr noundef %3, i32 noundef %19) #2
%21 = tail call i32 @mutex_unlock(ptr noundef %5) #2
%22 = load i32, ptr @LBS_DEB_WEXT, align 4, !tbaa !11
%23 = tail call i32 @lbs_deb_leave(i32 noundef %22) #2
br label %24
24: ; preds = %13, %10
%25 = phi i32 [ %12, %10 ], [ 0, %13 ]
ret i32 %25
}
declare i32 @lbs_deb_enter(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
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 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @lbs_deb_leave(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 = !{!"net_device", !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 = !{!"iw_point", !12, i64 0}
!15 = !{!16, !12, i64 4}
!16 = !{!"lbs_private", !12, i64 0, !12, i64 4}
| fastsocket_kernel_drivers_net_wireless_libertas_extr_wext.c_lbs_set_nick |
; ModuleID = 'AnghaBench/xLua/build/lua-5.1.5/src/extr_ltable.c_luaH_get.c'
source_filename = "AnghaBench/xLua/build/lua-5.1.5/src/extr_ltable.c_luaH_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@luaO_nilobject = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @luaH_get(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @ttype(ptr noundef %1) #2
switch i32 %3, label %18 [
i32 130, label %4
i32 128, label %6
i32 129, label %9
]
4: ; preds = %2
%5 = load ptr, ptr @luaO_nilobject, align 8, !tbaa !5
br label %32
6: ; preds = %2
%7 = tail call i32 @rawtsvalue(ptr noundef %1) #2
%8 = tail call ptr @luaH_getstr(ptr noundef %0, i32 noundef %7) #2
br label %32
9: ; preds = %2
%10 = tail call i32 @nvalue(ptr noundef %1) #2
%11 = tail call i32 @lua_number2int(i32 noundef undef, i32 noundef %10) #2
%12 = tail call i32 @cast_num(i32 noundef undef) #2
%13 = tail call i32 @nvalue(ptr noundef %1) #2
%14 = tail call i32 @luai_numeq(i32 noundef %12, i32 noundef %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %9
%17 = tail call ptr @luaH_getnum(ptr noundef %0, i32 noundef undef) #2
br label %32
18: ; preds = %9, %2
%19 = tail call ptr @mainposition(ptr noundef %0, ptr noundef %1) #2
br label %20
20: ; preds = %27, %18
%21 = phi ptr [ %19, %18 ], [ %28, %27 ]
%22 = tail call i32 @key2tval(ptr noundef %21) #2
%23 = tail call i32 @luaO_rawequalObj(i32 noundef %22, ptr noundef %1) #2
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = tail call ptr @gval(ptr noundef %21) #2
br label %32
27: ; preds = %20
%28 = tail call ptr @gnext(ptr noundef %21) #2
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %20, !llvm.loop !9
30: ; preds = %27
%31 = load ptr, ptr @luaO_nilobject, align 8, !tbaa !5
br label %32
32: ; preds = %16, %25, %30, %6, %4
%33 = phi ptr [ %17, %16 ], [ %8, %6 ], [ %5, %4 ], [ %26, %25 ], [ %31, %30 ]
ret ptr %33
}
declare i32 @ttype(ptr noundef) local_unnamed_addr #1
declare ptr @luaH_getstr(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rawtsvalue(ptr noundef) local_unnamed_addr #1
declare i32 @nvalue(ptr noundef) local_unnamed_addr #1
declare i32 @lua_number2int(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @luai_numeq(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cast_num(i32 noundef) local_unnamed_addr #1
declare ptr @luaH_getnum(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @mainposition(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @luaO_rawequalObj(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @key2tval(ptr noundef) local_unnamed_addr #1
declare ptr @gval(ptr noundef) local_unnamed_addr #1
declare ptr @gnext(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/xLua/build/lua-5.1.5/src/extr_ltable.c_luaH_get.c'
source_filename = "AnghaBench/xLua/build/lua-5.1.5/src/extr_ltable.c_luaH_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@luaO_nilobject = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @luaH_get(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @ttype(ptr noundef %1) #2
switch i32 %3, label %18 [
i32 130, label %4
i32 128, label %6
i32 129, label %9
]
4: ; preds = %2
%5 = load ptr, ptr @luaO_nilobject, align 8, !tbaa !6
br label %32
6: ; preds = %2
%7 = tail call i32 @rawtsvalue(ptr noundef %1) #2
%8 = tail call ptr @luaH_getstr(ptr noundef %0, i32 noundef %7) #2
br label %32
9: ; preds = %2
%10 = tail call i32 @nvalue(ptr noundef %1) #2
%11 = tail call i32 @lua_number2int(i32 noundef undef, i32 noundef %10) #2
%12 = tail call i32 @cast_num(i32 noundef undef) #2
%13 = tail call i32 @nvalue(ptr noundef %1) #2
%14 = tail call i32 @luai_numeq(i32 noundef %12, i32 noundef %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %9
%17 = tail call ptr @luaH_getnum(ptr noundef %0, i32 noundef undef) #2
br label %32
18: ; preds = %9, %2
%19 = tail call ptr @mainposition(ptr noundef %0, ptr noundef %1) #2
br label %20
20: ; preds = %27, %18
%21 = phi ptr [ %19, %18 ], [ %28, %27 ]
%22 = tail call i32 @key2tval(ptr noundef %21) #2
%23 = tail call i32 @luaO_rawequalObj(i32 noundef %22, ptr noundef %1) #2
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = tail call ptr @gval(ptr noundef %21) #2
br label %32
27: ; preds = %20
%28 = tail call ptr @gnext(ptr noundef %21) #2
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %20, !llvm.loop !10
30: ; preds = %27
%31 = load ptr, ptr @luaO_nilobject, align 8, !tbaa !6
br label %32
32: ; preds = %16, %25, %30, %6, %4
%33 = phi ptr [ %17, %16 ], [ %8, %6 ], [ %5, %4 ], [ %26, %25 ], [ %31, %30 ]
ret ptr %33
}
declare i32 @ttype(ptr noundef) local_unnamed_addr #1
declare ptr @luaH_getstr(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rawtsvalue(ptr noundef) local_unnamed_addr #1
declare i32 @nvalue(ptr noundef) local_unnamed_addr #1
declare i32 @lua_number2int(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @luai_numeq(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cast_num(i32 noundef) local_unnamed_addr #1
declare ptr @luaH_getnum(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @mainposition(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @luaO_rawequalObj(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @key2tval(ptr noundef) local_unnamed_addr #1
declare ptr @gval(ptr noundef) local_unnamed_addr #1
declare ptr @gnext(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| xLua_build_lua-5.1.5_src_extr_ltable.c_luaH_get |
; ModuleID = 'AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_set_video_refresh.c'
source_filename = "AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_set_video_refresh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@video_cb = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @retro_set_video_refresh(i32 noundef %0) local_unnamed_addr #0 {
store i32 %0, ptr @video_cb, align 4, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_set_video_refresh.c'
source_filename = "AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_set_video_refresh.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@video_cb = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync)
define void @retro_set_video_refresh(i32 noundef %0) local_unnamed_addr #0 {
store i32 %0, ptr @video_cb, align 4, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_PicoDrive_platform_extr_libretro.c_retro_set_video_refresh |
; ModuleID = 'AnghaBench/linux/drivers/staging/qlge/extr_qlge_ethtool.c_ql_set_pauseparam.c'
source_filename = "AnghaBench/linux/drivers/staging/qlge/extr_qlge_ethtool.c_ql_set_pauseparam.c"
target datalayout = "e-m:e-p270:32:32-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_pauseparam = type { i64, i64 }
@CFG_PAUSE_STD = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ql_set_pauseparam], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ql_set_pauseparam(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @netdev_priv(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.ethtool_pauseparam, ptr %1, i64 0, i32 1
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = icmp eq i64 %5, 0
%7 = load i64, ptr %1, align 8, !tbaa !10
%8 = icmp eq i64 %7, 0
br i1 %6, label %14, label %9
9: ; preds = %2
br i1 %8, label %20, label %10
10: ; preds = %9
%11 = load i32, ptr @CFG_PAUSE_STD, align 4, !tbaa !11
%12 = load i32, ptr %3, align 4, !tbaa !13
%13 = or i32 %12, %11
br label %23
14: ; preds = %2
br i1 %8, label %15, label %20
15: ; preds = %14
%16 = load i32, ptr @CFG_PAUSE_STD, align 4, !tbaa !11
%17 = xor i32 %16, -1
%18 = load i32, ptr %3, align 4, !tbaa !13
%19 = and i32 %18, %17
br label %23
20: ; preds = %9, %14
%21 = load i32, ptr @EINVAL, align 4, !tbaa !11
%22 = sub nsw i32 0, %21
br label %26
23: ; preds = %15, %10
%24 = phi i32 [ %19, %15 ], [ %13, %10 ]
store i32 %24, ptr %3, align 4, !tbaa !13
%25 = tail call i32 @ql_mb_set_port_cfg(ptr noundef nonnull %3) #2
br label %26
26: ; preds = %23, %20
%27 = phi i32 [ %25, %23 ], [ %22, %20 ]
ret i32 %27
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @ql_mb_set_port_cfg(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"ethtool_pauseparam", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"ql_adapter", !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/qlge/extr_qlge_ethtool.c_ql_set_pauseparam.c'
source_filename = "AnghaBench/linux/drivers/staging/qlge/extr_qlge_ethtool.c_ql_set_pauseparam.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CFG_PAUSE_STD = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ql_set_pauseparam], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ql_set_pauseparam(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @netdev_priv(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %1, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = icmp eq i64 %5, 0
%7 = load i64, ptr %1, align 8, !tbaa !11
%8 = icmp eq i64 %7, 0
br i1 %6, label %14, label %9
9: ; preds = %2
br i1 %8, label %20, label %10
10: ; preds = %9
%11 = load i32, ptr @CFG_PAUSE_STD, align 4, !tbaa !12
%12 = load i32, ptr %3, align 4, !tbaa !14
%13 = or i32 %12, %11
br label %23
14: ; preds = %2
br i1 %8, label %15, label %20
15: ; preds = %14
%16 = load i32, ptr @CFG_PAUSE_STD, align 4, !tbaa !12
%17 = xor i32 %16, -1
%18 = load i32, ptr %3, align 4, !tbaa !14
%19 = and i32 %18, %17
br label %23
20: ; preds = %9, %14
%21 = load i32, ptr @EINVAL, align 4, !tbaa !12
%22 = sub nsw i32 0, %21
br label %26
23: ; preds = %15, %10
%24 = phi i32 [ %19, %15 ], [ %13, %10 ]
store i32 %24, ptr %3, align 4, !tbaa !14
%25 = tail call i32 @ql_mb_set_port_cfg(ptr noundef nonnull %3) #2
br label %26
26: ; preds = %23, %20
%27 = phi i32 [ %25, %23 ], [ %22, %20 ]
ret i32 %27
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @ql_mb_set_port_cfg(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"ethtool_pauseparam", !8, i64 0, !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"ql_adapter", !13, i64 0}
| linux_drivers_staging_qlge_extr_qlge_ethtool.c_ql_set_pauseparam |
; ModuleID = 'AnghaBench/freebsd/sys/dev/isci/scil/extr_scic_sds_port_configuration_agent.c_scic_sds_port_configuration_agent_construct.c'
source_filename = "AnghaBench/freebsd/sys/dev/isci/scil/extr_scic_sds_port_configuration_agent.c_scic_sds_port_configuration_agent_construct.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i32, i32, ptr, ptr, i32, ptr, ptr }
%struct.TYPE_4__ = type { i64, i64 }
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@SCI_MAX_PORTS = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @scic_sds_port_configuration_agent_construct(ptr nocapture noundef %0) local_unnamed_addr #0 {
store i32 0, ptr %0, align 8, !tbaa !5
%2 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
store i32 0, ptr %2, align 4, !tbaa !11
%3 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 5
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
%4 = load i32, ptr @FALSE, align 4, !tbaa !12
%5 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 4
store i32 %4, ptr %5, align 8, !tbaa !13
%6 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 3
store ptr null, ptr %6, align 8, !tbaa !14
%7 = load i64, ptr @SCI_MAX_PORTS, align 8, !tbaa !15
%8 = icmp eq i64 %7, 0
br i1 %8, label %49, label %9
9: ; preds = %1
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%11 = load ptr, ptr %10, align 8, !tbaa !17
%12 = load i64, ptr @SCI_MAX_PORTS, align 8, !tbaa !15
%13 = tail call i64 @llvm.umax.i64(i64 %12, i64 1)
%14 = and i64 %13, 7
%15 = icmp ult i64 %12, 8
br i1 %15, label %39, label %16
16: ; preds = %9
%17 = and i64 %13, -8
br label %18
18: ; preds = %18, %16
%19 = phi i64 [ 0, %16 ], [ %36, %18 ]
%20 = phi i64 [ 0, %16 ], [ %37, %18 ]
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %19
%22 = or disjoint i64 %19, 1
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, i8 0, i64 16, i1 false)
%23 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %22
%24 = or disjoint i64 %19, 2
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, i8 0, i64 16, i1 false)
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %24
%26 = or disjoint i64 %19, 3
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %25, i8 0, i64 16, i1 false)
%27 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %26
%28 = or disjoint i64 %19, 4
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %27, i8 0, i64 16, i1 false)
%29 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %28
%30 = or disjoint i64 %19, 5
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %29, i8 0, i64 16, i1 false)
%31 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %30
%32 = or disjoint i64 %19, 6
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %31, i8 0, i64 16, i1 false)
%33 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %32
%34 = or disjoint i64 %19, 7
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %33, i8 0, i64 16, i1 false)
%35 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %34
%36 = add nuw i64 %19, 8
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, i8 0, i64 16, i1 false)
%37 = add i64 %20, 8
%38 = icmp eq i64 %37, %17
br i1 %38, label %39, label %18, !llvm.loop !18
39: ; preds = %18, %9
%40 = phi i64 [ 0, %9 ], [ %36, %18 ]
%41 = icmp eq i64 %14, 0
br i1 %41, label %49, label %42
42: ; preds = %39, %42
%43 = phi i64 [ %46, %42 ], [ %40, %39 ]
%44 = phi i64 [ %47, %42 ], [ 0, %39 ]
%45 = getelementptr inbounds %struct.TYPE_4__, ptr %11, i64 %43
%46 = add nuw i64 %43, 1
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %45, i8 0, i64 16, i1 false)
%47 = add i64 %44, 1
%48 = icmp eq i64 %47, %14
br i1 %48, label %49, label %42, !llvm.loop !20
49: ; preds = %39, %42, %1
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #2
attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_5__", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 40}
!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 4}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !10, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!6, !10, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/isci/scil/extr_scic_sds_port_configuration_agent.c_scic_sds_port_configuration_agent_construct.c'
source_filename = "AnghaBench/freebsd/sys/dev/isci/scil/extr_scic_sds_port_configuration_agent.c_scic_sds_port_configuration_agent_construct.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i64, i64 }
@FALSE = common local_unnamed_addr global i32 0, align 4
@SCI_MAX_PORTS = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define void @scic_sds_port_configuration_agent_construct(ptr nocapture noundef %0) local_unnamed_addr #0 {
store <2 x i32> zeroinitializer, ptr %0, align 8, !tbaa !6
%2 = getelementptr inbounds i8, ptr %0, i64 32
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
%3 = load i32, ptr @FALSE, align 4, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 24
store i32 %3, ptr %4, align 8, !tbaa !10
%5 = getelementptr inbounds i8, ptr %0, i64 16
store ptr null, ptr %5, align 8, !tbaa !13
%6 = load i64, ptr @SCI_MAX_PORTS, align 8, !tbaa !14
%7 = icmp eq i64 %6, 0
br i1 %7, label %17, label %8
8: ; preds = %1
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !16
br label %11
11: ; preds = %8, %11
%12 = phi i64 [ 0, %8 ], [ %14, %11 ]
%13 = getelementptr inbounds %struct.TYPE_4__, ptr %10, i64 %12
%14 = add nuw i64 %12, 1
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
%15 = load i64, ptr @SCI_MAX_PORTS, align 8, !tbaa !14
%16 = icmp ult i64 %14, %15
br i1 %16, label %11, label %17, !llvm.loop !17
17: ; preds = %11, %1
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 24}
!11 = !{!"TYPE_5__", !7, i64 0, !7, i64 4, !12, i64 8, !12, i64 16, !7, i64 24, !12, i64 32, !12, i64 40}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!11, !12, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_dev_isci_scil_extr_scic_sds_port_configuration_agent.c_scic_sds_port_configuration_agent_construct |
; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_subr_rman.c_rman_get_device.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_subr_rman.c_rman_get_device.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @rman_get_device(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !10
ret i32 %3
}
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 = !{!"resource", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_subr_rman.c_rman_get_device.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_subr_rman.c_rman_get_device.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 i32 @rman_get_device(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !11
ret i32 %3
}
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 = !{!"resource", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"int", !9, i64 0}
| freebsd_sys_kern_extr_subr_rman.c_rman_get_device |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/rtadvd/extr_control_server.c_is_do_reload.c'
source_filename = "AnghaBench/freebsd/usr.sbin/rtadvd/extr_control_server.c_is_do_reload.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@do_reload = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @is_do_reload() local_unnamed_addr #0 {
%1 = load i32, ptr @do_reload, align 4, !tbaa !5
ret i32 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/rtadvd/extr_control_server.c_is_do_reload.c'
source_filename = "AnghaBench/freebsd/usr.sbin/rtadvd/extr_control_server.c_is_do_reload.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@do_reload = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i32 @is_do_reload() local_unnamed_addr #0 {
%1 = load i32, ptr @do_reload, align 4, !tbaa !6
ret i32 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_usr.sbin_rtadvd_extr_control_server.c_is_do_reload |
; ModuleID = 'AnghaBench/linux/drivers/md/extr_dm-clone-target.c_wakeup_hydration_waiters.c'
source_filename = "AnghaBench/linux/drivers/md/extr_dm-clone-target.c_wakeup_hydration_waiters.c"
target datalayout = "e-m:e-p270:32:32-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 @wakeup_hydration_waiters], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @wakeup_hydration_waiters(ptr noundef %0) #0 {
%2 = tail call i32 @wake_up_all(ptr noundef %0) #2
ret void
}
declare i32 @wake_up_all(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/md/extr_dm-clone-target.c_wakeup_hydration_waiters.c'
source_filename = "AnghaBench/linux/drivers/md/extr_dm-clone-target.c_wakeup_hydration_waiters.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 @wakeup_hydration_waiters], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @wakeup_hydration_waiters(ptr noundef %0) #0 {
%2 = tail call i32 @wake_up_all(ptr noundef %0) #2
ret void
}
declare i32 @wake_up_all(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_md_extr_dm-clone-target.c_wakeup_hydration_waiters |
; ModuleID = 'AnghaBench/esp-idf/components/bt/host/bluedroid/stack/sdp/extr_sdp_api.c_SDP_FindServiceInDb.c'
source_filename = "AnghaBench/esp-idf/components/bt/host/bluedroid/stack/sdp/extr_sdp_api.c_SDP_FindServiceInDb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_11__ = type { ptr, ptr }
%struct.TYPE_12__ = type { i64, ptr, %struct.TYPE_10__, i32 }
%struct.TYPE_10__ = type { %struct.TYPE_9__ }
%struct.TYPE_9__ = type { i64, ptr }
@ATTR_ID_SERVICE_CLASS_ID_LIST = dso_local local_unnamed_addr global i64 0, align 8
@DATA_ELE_SEQ_DESC_TYPE = dso_local local_unnamed_addr global i64 0, align 8
@UUID_DESC_TYPE = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [64 x i8] c"SDP_FindServiceInDb - p_sattr value = 0x%x serviceuuid = 0x%x\0D\0A\00", align 1
@UUID_SERVCLASS_HDP_PROFILE = dso_local local_unnamed_addr global i64 0, align 8
@UUID_SERVCLASS_HDP_SOURCE = dso_local local_unnamed_addr global i64 0, align 8
@UUID_SERVCLASS_HDP_SINK = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [46 x i8] c"SDP_FindServiceInDb found HDP source or sink\0A\00", align 1
@ATTR_ID_SERVICE_ID = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @SDP_FindServiceInDb(ptr noundef readonly %0, i64 noundef %1, ptr noundef readonly %2) local_unnamed_addr #0 {
%4 = icmp eq ptr %0, null
br i1 %4, label %133, label %5
5: ; preds = %3
%6 = icmp eq ptr %2, null
%7 = select i1 %6, ptr %0, ptr %2
%8 = load ptr, ptr %7, align 8, !tbaa !5
%9 = icmp eq ptr %8, null
br i1 %9, label %133, label %10
10: ; preds = %5
%11 = icmp eq i64 %1, 0
br label %12
12: ; preds = %10, %130
%13 = phi ptr [ %8, %10 ], [ %131, %130 ]
%14 = getelementptr inbounds %struct.TYPE_11__, ptr %13, i64 0, i32 1
%15 = load ptr, ptr %14, align 8, !tbaa !5
%16 = icmp eq ptr %15, null
br i1 %16, label %130, label %17
17: ; preds = %12, %126
%18 = phi ptr [ %128, %126 ], [ %15, %12 ]
%19 = load i64, ptr %18, align 8, !tbaa !9
%20 = load i64, ptr @ATTR_ID_SERVICE_CLASS_ID_LIST, align 8, !tbaa !15
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %107
22: ; preds = %17
%23 = getelementptr inbounds %struct.TYPE_12__, ptr %18, i64 0, i32 3
%24 = load i32, ptr %23, align 8, !tbaa !16
%25 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %24) #2
%26 = load i64, ptr @DATA_ELE_SEQ_DESC_TYPE, align 8, !tbaa !15
%27 = icmp eq i64 %25, %26
br i1 %27, label %30, label %28
28: ; preds = %22
%29 = load i64, ptr %18, align 8, !tbaa !9
br label %107
30: ; preds = %22
%31 = getelementptr inbounds %struct.TYPE_12__, ptr %18, i64 0, i32 2, i32 0, i32 1
%32 = load ptr, ptr %31, align 8, !tbaa !5
%33 = icmp eq ptr %32, null
br i1 %33, label %130, label %34
34: ; preds = %30, %103
%35 = phi ptr [ %105, %103 ], [ %32, %30 ]
%36 = getelementptr inbounds %struct.TYPE_12__, ptr %35, i64 0, i32 3
%37 = load i32, ptr %36, align 8, !tbaa !16
%38 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %37) #2
%39 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !15
%40 = icmp eq i64 %38, %39
br i1 %40, label %41, label %60
41: ; preds = %34
%42 = load i32, ptr %36, align 8, !tbaa !16
%43 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %42) #2
%44 = icmp eq i32 %43, 2
br i1 %44, label %45, label %60
45: ; preds = %41
%46 = getelementptr inbounds %struct.TYPE_12__, ptr %35, i64 0, i32 2
%47 = load i64, ptr %46, align 8, !tbaa !17
%48 = tail call i32 (ptr, ...) @SDP_TRACE_DEBUG(ptr noundef nonnull @.str, i64 noundef %47, i64 noundef %1) #2
%49 = load i64, ptr @UUID_SERVCLASS_HDP_PROFILE, align 8, !tbaa !15
%50 = icmp eq i64 %49, %1
br i1 %50, label %51, label %60
51: ; preds = %45
%52 = load i64, ptr %46, align 8, !tbaa !17
%53 = load i64, ptr @UUID_SERVCLASS_HDP_SOURCE, align 8, !tbaa !15
%54 = icmp eq i64 %52, %53
%55 = load i64, ptr @UUID_SERVCLASS_HDP_SINK, align 8
%56 = icmp eq i64 %52, %55
%57 = select i1 %54, i1 true, i1 %56
br i1 %57, label %58, label %60
58: ; preds = %51
%59 = tail call i32 (ptr, ...) @SDP_TRACE_DEBUG(ptr noundef nonnull @.str.1) #2
br label %133
60: ; preds = %51, %45, %41, %34
%61 = load i32, ptr %36, align 8, !tbaa !16
%62 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %61) #2
%63 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !15
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %74
65: ; preds = %60
br i1 %11, label %133, label %66
66: ; preds = %65
%67 = load i32, ptr %36, align 8, !tbaa !16
%68 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %67) #2
%69 = icmp eq i32 %68, 2
br i1 %69, label %70, label %74
70: ; preds = %66
%71 = getelementptr inbounds %struct.TYPE_12__, ptr %35, i64 0, i32 2
%72 = load i64, ptr %71, align 8, !tbaa !17
%73 = icmp eq i64 %72, %1
br i1 %73, label %133, label %74
74: ; preds = %70, %66, %60
%75 = load i32, ptr %36, align 8, !tbaa !16
%76 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %75) #2
%77 = load i64, ptr @DATA_ELE_SEQ_DESC_TYPE, align 8, !tbaa !15
%78 = icmp eq i64 %76, %77
br i1 %78, label %79, label %103
79: ; preds = %74
%80 = getelementptr inbounds %struct.TYPE_12__, ptr %35, i64 0, i32 2, i32 0, i32 1
%81 = load ptr, ptr %80, align 8, !tbaa !5
%82 = icmp eq ptr %81, null
br i1 %82, label %103, label %83
83: ; preds = %79, %99
%84 = phi ptr [ %101, %99 ], [ %81, %79 ]
%85 = getelementptr inbounds %struct.TYPE_12__, ptr %84, i64 0, i32 3
%86 = load i32, ptr %85, align 8, !tbaa !16
%87 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %86) #2
%88 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !15
%89 = icmp eq i64 %87, %88
br i1 %89, label %90, label %99
90: ; preds = %83
%91 = load i32, ptr %85, align 8, !tbaa !16
%92 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %91) #2
%93 = icmp eq i32 %92, 2
br i1 %93, label %94, label %99
94: ; preds = %90
%95 = getelementptr inbounds %struct.TYPE_12__, ptr %84, i64 0, i32 2
%96 = load i64, ptr %95, align 8, !tbaa !17
%97 = icmp eq i64 %96, %1
%98 = or i1 %11, %97
br i1 %98, label %133, label %99
99: ; preds = %83, %90, %94
%100 = getelementptr inbounds %struct.TYPE_12__, ptr %84, i64 0, i32 1
%101 = load ptr, ptr %100, align 8, !tbaa !5
%102 = icmp eq ptr %101, null
br i1 %102, label %103, label %83, !llvm.loop !18
103: ; preds = %99, %79, %74
%104 = getelementptr inbounds %struct.TYPE_12__, ptr %35, i64 0, i32 1
%105 = load ptr, ptr %104, align 8, !tbaa !5
%106 = icmp eq ptr %105, null
br i1 %106, label %130, label %34, !llvm.loop !20
107: ; preds = %28, %17
%108 = phi i64 [ %29, %28 ], [ %19, %17 ]
%109 = load i64, ptr @ATTR_ID_SERVICE_ID, align 8, !tbaa !15
%110 = icmp eq i64 %108, %109
br i1 %110, label %111, label %126
111: ; preds = %107
%112 = getelementptr inbounds %struct.TYPE_12__, ptr %18, i64 0, i32 3
%113 = load i32, ptr %112, align 8, !tbaa !16
%114 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %113) #2
%115 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !15
%116 = icmp eq i64 %114, %115
br i1 %116, label %117, label %126
117: ; preds = %111
%118 = load i32, ptr %112, align 8, !tbaa !16
%119 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %118) #2
%120 = icmp eq i32 %119, 2
br i1 %120, label %121, label %126
121: ; preds = %117
%122 = getelementptr inbounds %struct.TYPE_12__, ptr %18, i64 0, i32 2
%123 = load i64, ptr %122, align 8, !tbaa !17
%124 = icmp eq i64 %123, %1
%125 = or i1 %11, %124
br i1 %125, label %133, label %126
126: ; preds = %107, %121, %117, %111
%127 = getelementptr inbounds %struct.TYPE_12__, ptr %18, i64 0, i32 1
%128 = load ptr, ptr %127, align 8, !tbaa !5
%129 = icmp eq ptr %128, null
br i1 %129, label %130, label %17, !llvm.loop !21
130: ; preds = %126, %103, %12, %30
%131 = load ptr, ptr %13, align 8, !tbaa !5
%132 = icmp eq ptr %131, null
br i1 %132, label %133, label %12, !llvm.loop !22
133: ; preds = %130, %121, %65, %70, %94, %5, %3, %58
%134 = phi ptr [ %13, %58 ], [ null, %3 ], [ null, %5 ], [ %13, %94 ], [ %13, %70 ], [ %13, %65 ], [ %13, %121 ], [ null, %130 ]
ret ptr %134
}
declare i64 @SDP_DISC_ATTR_TYPE(i32 noundef) local_unnamed_addr #1
declare i32 @SDP_DISC_ATTR_LEN(i32 noundef) local_unnamed_addr #1
declare i32 @SDP_TRACE_DEBUG(ptr noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_12__", !11, i64 0, !6, i64 8, !12, i64 16, !14, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!"TYPE_10__", !13, i64 0}
!13 = !{!"TYPE_9__", !11, i64 0, !6, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !14, i64 32}
!17 = !{!10, !11, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
| ; ModuleID = 'AnghaBench/esp-idf/components/bt/host/bluedroid/stack/sdp/extr_sdp_api.c_SDP_FindServiceInDb.c'
source_filename = "AnghaBench/esp-idf/components/bt/host/bluedroid/stack/sdp/extr_sdp_api.c_SDP_FindServiceInDb.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ATTR_ID_SERVICE_CLASS_ID_LIST = common local_unnamed_addr global i64 0, align 8
@DATA_ELE_SEQ_DESC_TYPE = common local_unnamed_addr global i64 0, align 8
@UUID_DESC_TYPE = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [64 x i8] c"SDP_FindServiceInDb - p_sattr value = 0x%x serviceuuid = 0x%x\0D\0A\00", align 1
@UUID_SERVCLASS_HDP_PROFILE = common local_unnamed_addr global i64 0, align 8
@UUID_SERVCLASS_HDP_SOURCE = common local_unnamed_addr global i64 0, align 8
@UUID_SERVCLASS_HDP_SINK = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [46 x i8] c"SDP_FindServiceInDb found HDP source or sink\0A\00", align 1
@ATTR_ID_SERVICE_ID = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @SDP_FindServiceInDb(ptr noundef readonly %0, i64 noundef %1, ptr noundef readonly %2) local_unnamed_addr #0 {
%4 = icmp eq ptr %0, null
br i1 %4, label %133, label %5
5: ; preds = %3
%6 = icmp eq ptr %2, null
%7 = select i1 %6, ptr %0, ptr %2
%8 = load ptr, ptr %7, align 8, !tbaa !6
%9 = icmp eq ptr %8, null
br i1 %9, label %133, label %10
10: ; preds = %5
%11 = icmp eq i64 %1, 0
br label %12
12: ; preds = %10, %130
%13 = phi ptr [ %8, %10 ], [ %131, %130 ]
%14 = getelementptr inbounds i8, ptr %13, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !6
%16 = icmp eq ptr %15, null
br i1 %16, label %130, label %17
17: ; preds = %12, %126
%18 = phi ptr [ %128, %126 ], [ %15, %12 ]
%19 = load i64, ptr %18, align 8, !tbaa !10
%20 = load i64, ptr @ATTR_ID_SERVICE_CLASS_ID_LIST, align 8, !tbaa !16
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %107
22: ; preds = %17
%23 = getelementptr inbounds i8, ptr %18, i64 32
%24 = load i32, ptr %23, align 8, !tbaa !17
%25 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %24) #2
%26 = load i64, ptr @DATA_ELE_SEQ_DESC_TYPE, align 8, !tbaa !16
%27 = icmp eq i64 %25, %26
br i1 %27, label %30, label %28
28: ; preds = %22
%29 = load i64, ptr %18, align 8, !tbaa !10
br label %107
30: ; preds = %22
%31 = getelementptr inbounds i8, ptr %18, i64 24
%32 = load ptr, ptr %31, align 8, !tbaa !6
%33 = icmp eq ptr %32, null
br i1 %33, label %130, label %34
34: ; preds = %30, %103
%35 = phi ptr [ %105, %103 ], [ %32, %30 ]
%36 = getelementptr inbounds i8, ptr %35, i64 32
%37 = load i32, ptr %36, align 8, !tbaa !17
%38 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %37) #2
%39 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !16
%40 = icmp eq i64 %38, %39
br i1 %40, label %41, label %60
41: ; preds = %34
%42 = load i32, ptr %36, align 8, !tbaa !17
%43 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %42) #2
%44 = icmp eq i32 %43, 2
br i1 %44, label %45, label %60
45: ; preds = %41
%46 = getelementptr inbounds i8, ptr %35, i64 16
%47 = load i64, ptr %46, align 8, !tbaa !18
%48 = tail call i32 (ptr, ...) @SDP_TRACE_DEBUG(ptr noundef nonnull @.str, i64 noundef %47, i64 noundef %1) #2
%49 = load i64, ptr @UUID_SERVCLASS_HDP_PROFILE, align 8, !tbaa !16
%50 = icmp eq i64 %49, %1
br i1 %50, label %51, label %60
51: ; preds = %45
%52 = load i64, ptr %46, align 8, !tbaa !18
%53 = load i64, ptr @UUID_SERVCLASS_HDP_SOURCE, align 8, !tbaa !16
%54 = icmp eq i64 %52, %53
%55 = load i64, ptr @UUID_SERVCLASS_HDP_SINK, align 8
%56 = icmp eq i64 %52, %55
%57 = select i1 %54, i1 true, i1 %56
br i1 %57, label %58, label %60
58: ; preds = %51
%59 = tail call i32 (ptr, ...) @SDP_TRACE_DEBUG(ptr noundef nonnull @.str.1) #2
br label %133
60: ; preds = %51, %45, %41, %34
%61 = load i32, ptr %36, align 8, !tbaa !17
%62 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %61) #2
%63 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !16
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %74
65: ; preds = %60
br i1 %11, label %133, label %66
66: ; preds = %65
%67 = load i32, ptr %36, align 8, !tbaa !17
%68 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %67) #2
%69 = icmp eq i32 %68, 2
br i1 %69, label %70, label %74
70: ; preds = %66
%71 = getelementptr inbounds i8, ptr %35, i64 16
%72 = load i64, ptr %71, align 8, !tbaa !18
%73 = icmp eq i64 %72, %1
br i1 %73, label %133, label %74
74: ; preds = %70, %66, %60
%75 = load i32, ptr %36, align 8, !tbaa !17
%76 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %75) #2
%77 = load i64, ptr @DATA_ELE_SEQ_DESC_TYPE, align 8, !tbaa !16
%78 = icmp eq i64 %76, %77
br i1 %78, label %79, label %103
79: ; preds = %74
%80 = getelementptr inbounds i8, ptr %35, i64 24
%81 = load ptr, ptr %80, align 8, !tbaa !6
%82 = icmp eq ptr %81, null
br i1 %82, label %103, label %83
83: ; preds = %79, %99
%84 = phi ptr [ %101, %99 ], [ %81, %79 ]
%85 = getelementptr inbounds i8, ptr %84, i64 32
%86 = load i32, ptr %85, align 8, !tbaa !17
%87 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %86) #2
%88 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !16
%89 = icmp eq i64 %87, %88
br i1 %89, label %90, label %99
90: ; preds = %83
%91 = load i32, ptr %85, align 8, !tbaa !17
%92 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %91) #2
%93 = icmp eq i32 %92, 2
br i1 %93, label %94, label %99
94: ; preds = %90
%95 = getelementptr inbounds i8, ptr %84, i64 16
%96 = load i64, ptr %95, align 8, !tbaa !18
%97 = icmp eq i64 %96, %1
%98 = or i1 %11, %97
br i1 %98, label %133, label %99
99: ; preds = %83, %90, %94
%100 = getelementptr inbounds i8, ptr %84, i64 8
%101 = load ptr, ptr %100, align 8, !tbaa !6
%102 = icmp eq ptr %101, null
br i1 %102, label %103, label %83, !llvm.loop !19
103: ; preds = %99, %79, %74
%104 = getelementptr inbounds i8, ptr %35, i64 8
%105 = load ptr, ptr %104, align 8, !tbaa !6
%106 = icmp eq ptr %105, null
br i1 %106, label %130, label %34, !llvm.loop !21
107: ; preds = %28, %17
%108 = phi i64 [ %29, %28 ], [ %19, %17 ]
%109 = load i64, ptr @ATTR_ID_SERVICE_ID, align 8, !tbaa !16
%110 = icmp eq i64 %108, %109
br i1 %110, label %111, label %126
111: ; preds = %107
%112 = getelementptr inbounds i8, ptr %18, i64 32
%113 = load i32, ptr %112, align 8, !tbaa !17
%114 = tail call i64 @SDP_DISC_ATTR_TYPE(i32 noundef %113) #2
%115 = load i64, ptr @UUID_DESC_TYPE, align 8, !tbaa !16
%116 = icmp eq i64 %114, %115
br i1 %116, label %117, label %126
117: ; preds = %111
%118 = load i32, ptr %112, align 8, !tbaa !17
%119 = tail call i32 @SDP_DISC_ATTR_LEN(i32 noundef %118) #2
%120 = icmp eq i32 %119, 2
br i1 %120, label %121, label %126
121: ; preds = %117
%122 = getelementptr inbounds i8, ptr %18, i64 16
%123 = load i64, ptr %122, align 8, !tbaa !18
%124 = icmp eq i64 %123, %1
%125 = or i1 %11, %124
br i1 %125, label %133, label %126
126: ; preds = %107, %121, %117, %111
%127 = getelementptr inbounds i8, ptr %18, i64 8
%128 = load ptr, ptr %127, align 8, !tbaa !6
%129 = icmp eq ptr %128, null
br i1 %129, label %130, label %17, !llvm.loop !22
130: ; preds = %126, %103, %12, %30
%131 = load ptr, ptr %13, align 8, !tbaa !6
%132 = icmp eq ptr %131, null
br i1 %132, label %133, label %12, !llvm.loop !23
133: ; preds = %130, %121, %65, %70, %94, %5, %3, %58
%134 = phi ptr [ %13, %58 ], [ null, %3 ], [ null, %5 ], [ %13, %94 ], [ %13, %70 ], [ %13, %65 ], [ %13, %121 ], [ null, %130 ]
ret ptr %134
}
declare i64 @SDP_DISC_ATTR_TYPE(i32 noundef) local_unnamed_addr #1
declare i32 @SDP_DISC_ATTR_LEN(i32 noundef) local_unnamed_addr #1
declare i32 @SDP_TRACE_DEBUG(ptr noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_12__", !12, i64 0, !7, i64 8, !13, i64 16, !15, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_10__", !14, i64 0}
!14 = !{!"TYPE_9__", !12, i64 0, !7, i64 8}
!15 = !{!"int", !8, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !15, i64 32}
!18 = !{!11, !12, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
| esp-idf_components_bt_host_bluedroid_stack_sdp_extr_sdp_api.c_SDP_FindServiceInDb |
; ModuleID = 'AnghaBench/freebsd/sys/i386/i386/extr_vm_machdep.c_cpu_copy_thread.c'
source_filename = "AnghaBench/freebsd/sys/i386/i386/extr_vm_machdep.c_cpu_copy_thread.c"
target datalayout = "e-m:e-p270:32:32-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.thread = type { %struct.TYPE_2__, ptr, ptr }
%struct.TYPE_2__ = type { i32, i32 }
%struct.pcb = type { i32, i32, i32, i32, ptr, i32, i64, i64, i64, i32, ptr }
@PCB_NPXINITDONE = dso_local local_unnamed_addr global i32 0, align 4
@PCB_NPXUSERINITDONE = dso_local local_unnamed_addr global i32 0, align 4
@PCB_KERNNPX = dso_local local_unnamed_addr global i32 0, align 4
@cpu_max_ext_state_size = dso_local local_unnamed_addr global i32 0, align 4
@PSL_T = dso_local local_unnamed_addr global i32 0, align 4
@fork_return = dso_local local_unnamed_addr global i64 0, align 8
@fork_trampoline = dso_local local_unnamed_addr global i64 0, align 8
@setidt_disp = dso_local local_unnamed_addr global i64 0, align 8
@PSL_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@PSL_I = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @cpu_copy_thread(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.thread, ptr %0, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.thread, ptr %1, i64 0, i32 2
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = tail call i32 @bcopy(ptr noundef %6, ptr noundef %4, i32 noundef 72) #2
%8 = load i32, ptr @PCB_NPXINITDONE, align 4, !tbaa !12
%9 = load i32, ptr @PCB_NPXUSERINITDONE, align 4, !tbaa !12
%10 = or i32 %9, %8
%11 = load i32, ptr @PCB_KERNNPX, align 4, !tbaa !12
%12 = or i32 %10, %11
%13 = xor i32 %12, -1
%14 = load i32, ptr %4, align 8, !tbaa !13
%15 = and i32 %14, %13
store i32 %15, ptr %4, align 8, !tbaa !13
%16 = tail call ptr @get_pcb_user_save_pcb(ptr noundef nonnull %4) #2
%17 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 10
store ptr %16, ptr %17, align 8, !tbaa !16
%18 = tail call ptr @get_pcb_user_save_td(ptr noundef %1) #2
%19 = load ptr, ptr %17, align 8, !tbaa !16
%20 = load i32, ptr @cpu_max_ext_state_size, align 4, !tbaa !12
%21 = tail call i32 @bcopy(ptr noundef %18, ptr noundef %19, i32 noundef %20) #2
%22 = getelementptr inbounds %struct.thread, ptr %1, i64 0, i32 1
%23 = load ptr, ptr %22, align 8, !tbaa !17
%24 = getelementptr inbounds %struct.thread, ptr %0, i64 0, i32 1
%25 = load ptr, ptr %24, align 8, !tbaa !17
%26 = tail call i32 @bcopy(ptr noundef %23, ptr noundef %25, i32 noundef 4) #2
%27 = load i32, ptr @PSL_T, align 4, !tbaa !12
%28 = xor i32 %27, -1
%29 = load ptr, ptr %24, align 8, !tbaa !17
%30 = getelementptr inbounds %struct.pcb, ptr %29, i64 0, i32 9
%31 = load i32, ptr %30, align 8, !tbaa !18
%32 = and i32 %31, %28
store i32 %32, ptr %30, align 8, !tbaa !18
%33 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 8
store i64 0, ptr %33, align 8, !tbaa !19
%34 = load i64, ptr @fork_return, align 8, !tbaa !20
%35 = trunc i64 %34 to i32
%36 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 1
store i32 %35, ptr %36, align 4, !tbaa !21
%37 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 7
store i64 0, ptr %37, align 8, !tbaa !22
%38 = ptrtoint ptr %29 to i64
%39 = trunc i64 %38 to i32
%40 = add i32 %39, -8
%41 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 2
store i32 %40, ptr %41, align 8, !tbaa !23
%42 = ptrtoint ptr %0 to i64
%43 = trunc i64 %42 to i32
%44 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 3
store i32 %43, ptr %44, align 4, !tbaa !24
%45 = load i64, ptr @fork_trampoline, align 8, !tbaa !20
%46 = shl i64 %45, 32
%47 = ashr exact i64 %46, 32
%48 = load i64, ptr @setidt_disp, align 8, !tbaa !20
%49 = add nsw i64 %47, %48
%50 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 6
store i64 %49, ptr %50, align 8, !tbaa !25
%51 = tail call i32 (...) @rgs() #2
%52 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 5
store i32 %51, ptr %52, align 8, !tbaa !26
%53 = getelementptr inbounds %struct.pcb, ptr %4, i64 0, i32 4
store ptr null, ptr %53, align 8, !tbaa !27
store i32 1, ptr %0, align 8, !tbaa !28
%54 = load i32, ptr @PSL_KERNEL, align 4, !tbaa !12
%55 = load i32, ptr @PSL_I, align 4, !tbaa !12
%56 = or i32 %55, %54
%57 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
store i32 %56, ptr %57, align 4, !tbaa !29
ret void
}
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @get_pcb_user_save_pcb(ptr noundef) local_unnamed_addr #1
declare ptr @get_pcb_user_save_td(ptr noundef) local_unnamed_addr #1
declare i32 @rgs(...) 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 = !{!"thread", !7, i64 0, !11, i64 8, !11, i64 16}
!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 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"pcb", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !11, i64 16, !8, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !8, i64 56, !11, i64 64}
!15 = !{!"long", !9, i64 0}
!16 = !{!14, !11, i64 64}
!17 = !{!6, !11, i64 8}
!18 = !{!14, !8, i64 56}
!19 = !{!14, !15, i64 48}
!20 = !{!15, !15, i64 0}
!21 = !{!14, !8, i64 4}
!22 = !{!14, !15, i64 40}
!23 = !{!14, !8, i64 8}
!24 = !{!14, !8, i64 12}
!25 = !{!14, !15, i64 32}
!26 = !{!14, !8, i64 24}
!27 = !{!14, !11, i64 16}
!28 = !{!6, !8, i64 0}
!29 = !{!6, !8, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/sys/i386/i386/extr_vm_machdep.c_cpu_copy_thread.c'
source_filename = "AnghaBench/freebsd/sys/i386/i386/extr_vm_machdep.c_cpu_copy_thread.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCB_NPXINITDONE = common local_unnamed_addr global i32 0, align 4
@PCB_NPXUSERINITDONE = common local_unnamed_addr global i32 0, align 4
@PCB_KERNNPX = common local_unnamed_addr global i32 0, align 4
@cpu_max_ext_state_size = common local_unnamed_addr global i32 0, align 4
@PSL_T = common local_unnamed_addr global i32 0, align 4
@fork_return = common local_unnamed_addr global i64 0, align 8
@fork_trampoline = common local_unnamed_addr global i64 0, align 8
@setidt_disp = common local_unnamed_addr global i64 0, align 8
@PSL_KERNEL = common local_unnamed_addr global i32 0, align 4
@PSL_I = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @cpu_copy_thread(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 16
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %1, i64 16
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = tail call i32 @bcopy(ptr noundef %6, ptr noundef %4, i32 noundef 72) #2
%8 = load i32, ptr @PCB_NPXINITDONE, align 4, !tbaa !13
%9 = load i32, ptr @PCB_NPXUSERINITDONE, align 4, !tbaa !13
%10 = or i32 %9, %8
%11 = load i32, ptr @PCB_KERNNPX, align 4, !tbaa !13
%12 = or i32 %10, %11
%13 = xor i32 %12, -1
%14 = load i32, ptr %4, align 8, !tbaa !14
%15 = and i32 %14, %13
store i32 %15, ptr %4, align 8, !tbaa !14
%16 = tail call ptr @get_pcb_user_save_pcb(ptr noundef nonnull %4) #2
%17 = getelementptr inbounds i8, ptr %4, i64 64
store ptr %16, ptr %17, align 8, !tbaa !17
%18 = tail call ptr @get_pcb_user_save_td(ptr noundef %1) #2
%19 = load ptr, ptr %17, align 8, !tbaa !17
%20 = load i32, ptr @cpu_max_ext_state_size, align 4, !tbaa !13
%21 = tail call i32 @bcopy(ptr noundef %18, ptr noundef %19, i32 noundef %20) #2
%22 = getelementptr inbounds i8, ptr %1, i64 8
%23 = load ptr, ptr %22, align 8, !tbaa !18
%24 = getelementptr inbounds i8, ptr %0, i64 8
%25 = load ptr, ptr %24, align 8, !tbaa !18
%26 = tail call i32 @bcopy(ptr noundef %23, ptr noundef %25, i32 noundef 4) #2
%27 = load i32, ptr @PSL_T, align 4, !tbaa !13
%28 = xor i32 %27, -1
%29 = load ptr, ptr %24, align 8, !tbaa !18
%30 = getelementptr inbounds i8, ptr %29, i64 56
%31 = load i32, ptr %30, align 8, !tbaa !19
%32 = and i32 %31, %28
store i32 %32, ptr %30, align 8, !tbaa !19
%33 = load i64, ptr @fork_return, align 8, !tbaa !20
%34 = trunc i64 %33 to i32
%35 = getelementptr inbounds i8, ptr %4, i64 4
store i32 %34, ptr %35, align 4, !tbaa !21
%36 = getelementptr inbounds i8, ptr %4, i64 40
store <2 x i64> zeroinitializer, ptr %36, align 8, !tbaa !20
%37 = ptrtoint ptr %29 to i64
%38 = trunc i64 %37 to i32
%39 = add i32 %38, -8
%40 = getelementptr inbounds i8, ptr %4, i64 8
store i32 %39, ptr %40, align 8, !tbaa !22
%41 = ptrtoint ptr %0 to i64
%42 = trunc i64 %41 to i32
%43 = getelementptr inbounds i8, ptr %4, i64 12
store i32 %42, ptr %43, align 4, !tbaa !23
%44 = load i64, ptr @fork_trampoline, align 8, !tbaa !20
%45 = shl i64 %44, 32
%46 = ashr exact i64 %45, 32
%47 = load i64, ptr @setidt_disp, align 8, !tbaa !20
%48 = add nsw i64 %46, %47
%49 = getelementptr inbounds i8, ptr %4, i64 32
store i64 %48, ptr %49, align 8, !tbaa !24
%50 = tail call i32 @rgs() #2
%51 = getelementptr inbounds i8, ptr %4, i64 24
store i32 %50, ptr %51, align 8, !tbaa !25
%52 = getelementptr inbounds i8, ptr %4, i64 16
store ptr null, ptr %52, align 8, !tbaa !26
store i32 1, ptr %0, align 8, !tbaa !27
%53 = load i32, ptr @PSL_KERNEL, align 4, !tbaa !13
%54 = load i32, ptr @PSL_I, align 4, !tbaa !13
%55 = or i32 %54, %53
%56 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %55, ptr %56, align 4, !tbaa !28
ret void
}
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @get_pcb_user_save_pcb(ptr noundef) local_unnamed_addr #1
declare ptr @get_pcb_user_save_td(ptr noundef) local_unnamed_addr #1
declare i32 @rgs(...) 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 = !{!"thread", !8, i64 0, !12, i64 8, !12, i64 16}
!8 = !{!"TYPE_2__", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!9, !9, i64 0}
!14 = !{!15, !9, i64 0}
!15 = !{!"pcb", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !12, i64 16, !9, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !9, i64 56, !12, i64 64}
!16 = !{!"long", !10, i64 0}
!17 = !{!15, !12, i64 64}
!18 = !{!7, !12, i64 8}
!19 = !{!15, !9, i64 56}
!20 = !{!16, !16, i64 0}
!21 = !{!15, !9, i64 4}
!22 = !{!15, !9, i64 8}
!23 = !{!15, !9, i64 12}
!24 = !{!15, !16, i64 32}
!25 = !{!15, !9, i64 24}
!26 = !{!15, !12, i64 16}
!27 = !{!7, !9, i64 0}
!28 = !{!7, !9, i64 4}
| freebsd_sys_i386_i386_extr_vm_machdep.c_cpu_copy_thread |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib_fs.c_ipoib_path_seq_stop.c'
source_filename = "AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib_fs.c_ipoib_path_seq_stop.c"
target datalayout = "e-m:e-p270:32:32-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 @ipoib_path_seq_stop], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @ipoib_path_seq_stop(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib_fs.c_ipoib_path_seq_stop.c'
source_filename = "AnghaBench/linux/drivers/infiniband/ulp/ipoib/extr_ipoib_fs.c_ipoib_path_seq_stop.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 @ipoib_path_seq_stop], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @ipoib_path_seq_stop(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_infiniband_ulp_ipoib_extr_ipoib_fs.c_ipoib_path_seq_stop |
; ModuleID = 'AnghaBench/freebsd/sys/mips/atheros/extr_ar71xx_bus_space_reversed.c_reversed_bs_r_1.c'
source_filename = "AnghaBench/freebsd/sys/mips/atheros/extr_ar71xx_bus_space_reversed.c_reversed_bs_r_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @reversed_bs_r_1], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @reversed_bs_r_1(ptr nocapture readnone %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = and i32 %2, -4
%5 = add nsw i32 %4, %1
%6 = and i32 %2, 3
%7 = xor i32 %6, 3
%8 = add nsw i32 %5, %7
%9 = tail call i32 @readb(i32 noundef %8) #2
ret i32 %9
}
declare i32 @readb(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/mips/atheros/extr_ar71xx_bus_space_reversed.c_reversed_bs_r_1.c'
source_filename = "AnghaBench/freebsd/sys/mips/atheros/extr_ar71xx_bus_space_reversed.c_reversed_bs_r_1.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @reversed_bs_r_1], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @reversed_bs_r_1(ptr nocapture readnone %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = and i32 %2, -4
%5 = add nsw i32 %4, %1
%6 = and i32 %2, 3
%7 = xor i32 %6, 3
%8 = add nsw i32 %5, %7
%9 = tail call i32 @readb(i32 noundef %8) #2
ret i32 %9
}
declare i32 @readb(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_sys_mips_atheros_extr_ar71xx_bus_space_reversed.c_reversed_bs_r_1 |
; ModuleID = 'AnghaBench/linux/drivers/scsi/ufs/extr_ufshcd.c_ufshcd_runtime_suspend.c'
source_filename = "AnghaBench/linux/drivers/scsi/ufs/extr_ufshcd.c_ufshcd_runtime_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"
%struct.ufs_hba = type { i32, i32, i32, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@UFS_RUNTIME_PM = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ufshcd_runtime_suspend(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 (...) @ktime_get() #2
%3 = icmp eq ptr %0, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = load i32, ptr @EINVAL, align 4, !tbaa !5
%6 = sub nsw i32 0, %5
br label %26
7: ; preds = %1
%8 = getelementptr inbounds %struct.ufs_hba, ptr %0, i64 0, i32 3
%9 = load i32, ptr %8, align 4, !tbaa !9
%10 = icmp eq i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = load i32, ptr @UFS_RUNTIME_PM, align 4, !tbaa !5
%13 = tail call i32 @ufshcd_suspend(ptr noundef nonnull %0, i32 noundef %12) #2
br label %14
14: ; preds = %7, %11
%15 = phi i32 [ %13, %11 ], [ 0, %7 ]
%16 = getelementptr inbounds %struct.ufs_hba, ptr %0, i64 0, i32 2
%17 = load i32, ptr %16, align 4, !tbaa !11
%18 = tail call i32 @dev_name(i32 noundef %17) #2
%19 = tail call i32 (...) @ktime_get() #2
%20 = tail call i32 @ktime_sub(i32 noundef %19, i32 noundef %2) #2
%21 = tail call i32 @ktime_to_us(i32 noundef %20) #2
%22 = getelementptr inbounds %struct.ufs_hba, ptr %0, i64 0, i32 1
%23 = load i32, ptr %22, align 4, !tbaa !12
%24 = load i32, ptr %0, align 4, !tbaa !13
%25 = tail call i32 @trace_ufshcd_runtime_suspend(i32 noundef %18, i32 noundef %15, i32 noundef %21, i32 noundef %23, i32 noundef %24) #2
br label %26
26: ; preds = %14, %4
%27 = phi i32 [ %15, %14 ], [ %6, %4 ]
ret i32 %27
}
declare i32 @ktime_get(...) local_unnamed_addr #1
declare i32 @ufshcd_suspend(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @trace_ufshcd_runtime_suspend(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_name(i32 noundef) local_unnamed_addr #1
declare i32 @ktime_to_us(i32 noundef) local_unnamed_addr #1
declare i32 @ktime_sub(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"}
!9 = !{!10, !6, i64 12}
!10 = !{!"ufs_hba", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 8}
!12 = !{!10, !6, i64 4}
!13 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/ufs/extr_ufshcd.c_ufshcd_runtime_suspend.c'
source_filename = "AnghaBench/linux/drivers/scsi/ufs/extr_ufshcd.c_ufshcd_runtime_suspend.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
@UFS_RUNTIME_PM = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ufshcd_runtime_suspend(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @ktime_get() #2
%3 = icmp eq ptr %0, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = load i32, ptr @EINVAL, align 4, !tbaa !6
%6 = sub nsw i32 0, %5
br label %26
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %0, i64 12
%9 = load i32, ptr %8, align 4, !tbaa !10
%10 = icmp eq i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = load i32, ptr @UFS_RUNTIME_PM, align 4, !tbaa !6
%13 = tail call i32 @ufshcd_suspend(ptr noundef nonnull %0, i32 noundef %12) #2
br label %14
14: ; preds = %7, %11
%15 = phi i32 [ %13, %11 ], [ 0, %7 ]
%16 = getelementptr inbounds i8, ptr %0, i64 8
%17 = load i32, ptr %16, align 4, !tbaa !12
%18 = tail call i32 @dev_name(i32 noundef %17) #2
%19 = tail call i32 @ktime_get() #2
%20 = tail call i32 @ktime_sub(i32 noundef %19, i32 noundef %2) #2
%21 = tail call i32 @ktime_to_us(i32 noundef %20) #2
%22 = getelementptr inbounds i8, ptr %0, i64 4
%23 = load i32, ptr %22, align 4, !tbaa !13
%24 = load i32, ptr %0, align 4, !tbaa !14
%25 = tail call i32 @trace_ufshcd_runtime_suspend(i32 noundef %18, i32 noundef %15, i32 noundef %21, i32 noundef %23, i32 noundef %24) #2
br label %26
26: ; preds = %14, %4
%27 = phi i32 [ %15, %14 ], [ %6, %4 ]
ret i32 %27
}
declare i32 @ktime_get(...) local_unnamed_addr #1
declare i32 @ufshcd_suspend(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @trace_ufshcd_runtime_suspend(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_name(i32 noundef) local_unnamed_addr #1
declare i32 @ktime_to_us(i32 noundef) local_unnamed_addr #1
declare i32 @ktime_sub(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"}
!10 = !{!11, !7, i64 12}
!11 = !{!"ufs_hba", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!12 = !{!11, !7, i64 8}
!13 = !{!11, !7, i64 4}
!14 = !{!11, !7, i64 0}
| linux_drivers_scsi_ufs_extr_ufshcd.c_ufshcd_runtime_suspend |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_dp.c_intel_dp_link_params_valid.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_dp.c_intel_dp_link_params_valid.c"
target datalayout = "e-m:e-p270:32:32-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 @intel_dp_link_params_valid], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @intel_dp_link_params_valid(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = icmp eq i32 %1, 0
br i1 %4, label %14, label %5
5: ; preds = %3
%6 = load i32, ptr %0, align 4, !tbaa !5
%7 = icmp slt i32 %6, %1
%8 = icmp eq i64 %2, 0
%9 = or i1 %8, %7
br i1 %9, label %14, label %10
10: ; preds = %5
%11 = tail call i64 @intel_dp_max_lane_count(ptr noundef nonnull %0) #2
%12 = icmp sge i64 %11, %2
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %10, %3, %5
%15 = phi i32 [ 0, %5 ], [ 0, %3 ], [ %13, %10 ]
ret i32 %15
}
declare i64 @intel_dp_max_lane_count(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 = !{!"intel_dp", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_dp.c_intel_dp_link_params_valid.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_dp.c_intel_dp_link_params_valid.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 @intel_dp_link_params_valid], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @intel_dp_link_params_valid(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = icmp eq i32 %1, 0
br i1 %4, label %14, label %5
5: ; preds = %3
%6 = load i32, ptr %0, align 4, !tbaa !6
%7 = icmp slt i32 %6, %1
%8 = icmp eq i64 %2, 0
%9 = or i1 %8, %7
br i1 %9, label %14, label %10
10: ; preds = %5
%11 = tail call i64 @intel_dp_max_lane_count(ptr noundef nonnull %0) #2
%12 = icmp sge i64 %11, %2
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %10, %3, %5
%15 = phi i32 [ 0, %5 ], [ 0, %3 ], [ %13, %10 ]
ret i32 %15
}
declare i64 @intel_dp_max_lane_count(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 = !{!"intel_dp", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_i915_display_extr_intel_dp.c_intel_dp_link_params_valid |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/core/extr_cgroup.c_ib_device_register_rdmacg.c'
source_filename = "AnghaBench/linux/drivers/infiniband/core/extr_cgroup.c_ib_device_register_rdmacg.c"
target datalayout = "e-m:e-p270:32:32-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.ib_device = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
; Function Attrs: nounwind uwtable
define dso_local void @ib_device_register_rdmacg(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.ib_device, ptr %0, i64 0, i32 1
%3 = load i32, ptr %2, align 4, !tbaa !5
store i32 %3, ptr %0, align 4, !tbaa !11
%4 = tail call i32 @rdmacg_register_device(ptr noundef nonnull %0) #2
ret void
}
declare i32 @rdmacg_register_device(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 4}
!6 = !{!"ib_device", !7, i64 0, !8, i64 4}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!6, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/core/extr_cgroup.c_ib_device_register_rdmacg.c'
source_filename = "AnghaBench/linux/drivers/infiniband/core/extr_cgroup.c_ib_device_register_rdmacg.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 @ib_device_register_rdmacg(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = load i32, ptr %2, align 4, !tbaa !6
store i32 %3, ptr %0, align 4, !tbaa !12
%4 = tail call i32 @rdmacg_register_device(ptr noundef nonnull %0) #2
ret void
}
declare i32 @rdmacg_register_device(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 4}
!7 = !{!"ib_device", !8, i64 0, !9, i64 4}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!7, !9, i64 0}
| linux_drivers_infiniband_core_extr_cgroup.c_ib_device_register_rdmacg |
; ModuleID = 'AnghaBench/freebsd/sys/mips/cavium/extr_octeon_rtc.c_octeon_rtc_settime.c'
source_filename = "AnghaBench/freebsd/sys/mips/cavium/extr_octeon_rtc.c_octeon_rtc_settime.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CVMX_RTC_WRITE = dso_local local_unnamed_addr global i32 0, align 4
@ENOTSUP = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @octeon_rtc_settime], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @octeon_rtc_settime(i32 %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call i32 (...) @cvmx_rtc_supported() #2
%4 = load i32, ptr @CVMX_RTC_WRITE, align 4, !tbaa !5
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, ptr @ENOTSUP, align 4, !tbaa !5
br label %15
9: ; preds = %2
%10 = load i32, ptr %1, align 4, !tbaa !9
%11 = tail call i64 @cvmx_rtc_write(i32 noundef %10) #2
%12 = icmp eq i64 %11, 0
%13 = load i32, ptr @EINVAL, align 4
%14 = select i1 %12, i32 0, i32 %13
br label %15
15: ; preds = %9, %7
%16 = phi i32 [ %8, %7 ], [ %14, %9 ]
ret i32 %16
}
declare i32 @cvmx_rtc_supported(...) local_unnamed_addr #1
declare i64 @cvmx_rtc_write(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 = !{!"timespec", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/mips/cavium/extr_octeon_rtc.c_octeon_rtc_settime.c'
source_filename = "AnghaBench/freebsd/sys/mips/cavium/extr_octeon_rtc.c_octeon_rtc_settime.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CVMX_RTC_WRITE = common local_unnamed_addr global i32 0, align 4
@ENOTSUP = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @octeon_rtc_settime], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @octeon_rtc_settime(i32 %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call i32 @cvmx_rtc_supported() #2
%4 = load i32, ptr @CVMX_RTC_WRITE, align 4, !tbaa !6
%5 = and i32 %4, %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, ptr @ENOTSUP, align 4, !tbaa !6
br label %15
9: ; preds = %2
%10 = load i32, ptr %1, align 4, !tbaa !10
%11 = tail call i64 @cvmx_rtc_write(i32 noundef %10) #2
%12 = icmp eq i64 %11, 0
%13 = load i32, ptr @EINVAL, align 4
%14 = select i1 %12, i32 0, i32 %13
br label %15
15: ; preds = %9, %7
%16 = phi i32 [ %8, %7 ], [ %14, %9 ]
ret i32 %16
}
declare i32 @cvmx_rtc_supported(...) local_unnamed_addr #1
declare i64 @cvmx_rtc_write(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 = !{!"timespec", !7, i64 0}
| freebsd_sys_mips_cavium_extr_octeon_rtc.c_octeon_rtc_settime |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/utils/extr_pcsc_funcs.c_scard_get_record_len.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/utils/extr_pcsc_funcs.c_scard_get_record_len.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SIM_CMD_READ_RECORD = dso_local local_unnamed_addr global i8 0, align 1
@SCARD_USIM = dso_local local_unnamed_addr global i64 0, align 8
@USIM_CLA = dso_local local_unnamed_addr global i8 0, align 1
@SCARD_S_SUCCESS = dso_local local_unnamed_addr global i64 0, align 8
@MSG_DEBUG = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"SCARD: failed to determine file length for record %d\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"SCARD: file length determination response\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"SCARD: unexpected response to file length determination\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @scard_get_record_len], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @scard_get_record_len(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = alloca [255 x i8], align 16
%5 = alloca [5 x i8], align 1
%6 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 255, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %5) #3
%7 = load i8, ptr @SIM_CMD_READ_RECORD, align 1, !tbaa !5
store i8 %7, ptr %5, align 1, !tbaa !5
%8 = getelementptr inbounds i8, ptr %5, i64 1
store i32 -16777216, ptr %8, align 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%9 = load i64, ptr %0, align 8, !tbaa !8
%10 = load i64, ptr @SCARD_USIM, align 8, !tbaa !11
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load i8, ptr @USIM_CLA, align 1, !tbaa !5
store i8 %13, ptr %5, align 1, !tbaa !5
br label %14
14: ; preds = %12, %3
%15 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 2
store i8 %1, ptr %15, align 1, !tbaa !5
%16 = getelementptr inbounds [5 x i8], ptr %5, i64 0, i64 3
store i8 %2, ptr %16, align 1, !tbaa !5
store i64 255, ptr %6, align 8, !tbaa !11
%17 = call i64 @scard_transmit(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef 5, ptr noundef nonnull %4, ptr noundef nonnull %6) #3
%18 = load i64, ptr @SCARD_S_SUCCESS, align 8, !tbaa !11
%19 = icmp eq i64 %17, %18
%20 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !12
br i1 %19, label %24, label %21
21: ; preds = %14
%22 = zext i8 %1 to i32
%23 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %20, ptr noundef nonnull @.str, i32 noundef %22) #3
br label %38
24: ; preds = %14
%25 = load i64, ptr %6, align 8, !tbaa !11
%26 = call i32 @wpa_hexdump(i32 noundef %20, ptr noundef nonnull @.str.1, ptr noundef nonnull %4, i64 noundef %25) #3
%27 = load i64, ptr %6, align 8, !tbaa !11
%28 = icmp ult i64 %27, 2
br i1 %28, label %31, label %29
29: ; preds = %24
%30 = load i8, ptr %4, align 16
switch i8 %30, label %31 [
i8 108, label %34
i8 103, label %34
]
31: ; preds = %29, %24
%32 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !12
%33 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %32, ptr noundef nonnull @.str.2) #3
br label %38
34: ; preds = %29, %29
%35 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 1
%36 = load i8, ptr %35, align 1, !tbaa !5
%37 = zext i8 %36 to i32
br label %38
38: ; preds = %34, %31, %21
%39 = phi i32 [ -1, %21 ], [ -1, %31 ], [ %37, %34 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 255, ptr nonnull %4) #3
ret i32 %39
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @scard_transmit(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @wpa_printf(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @wpa_hexdump(i32 noundef, 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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"scard_data", !10, i64 0}
!10 = !{!"long", !6, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/utils/extr_pcsc_funcs.c_scard_get_record_len.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/utils/extr_pcsc_funcs.c_scard_get_record_len.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SIM_CMD_READ_RECORD = common local_unnamed_addr global i8 0, align 1
@SCARD_USIM = common local_unnamed_addr global i64 0, align 8
@USIM_CLA = common local_unnamed_addr global i8 0, align 1
@SCARD_S_SUCCESS = common local_unnamed_addr global i64 0, align 8
@MSG_DEBUG = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"SCARD: failed to determine file length for record %d\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"SCARD: file length determination response\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"SCARD: unexpected response to file length determination\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @scard_get_record_len], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 256) i32 @scard_get_record_len(ptr noundef %0, i8 noundef zeroext %1, i8 noundef zeroext %2) #0 {
%4 = alloca [255 x i8], align 1
%5 = alloca [5 x i8], align 1
%6 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 255, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %5) #3
%7 = load i8, ptr @SIM_CMD_READ_RECORD, align 1, !tbaa !6
store i8 %7, ptr %5, align 1, !tbaa !6
%8 = getelementptr inbounds i8, ptr %5, i64 1
store i32 -16777216, ptr %8, align 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%9 = load i64, ptr %0, align 8, !tbaa !9
%10 = load i64, ptr @SCARD_USIM, align 8, !tbaa !12
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load i8, ptr @USIM_CLA, align 1, !tbaa !6
store i8 %13, ptr %5, align 1, !tbaa !6
br label %14
14: ; preds = %12, %3
%15 = getelementptr inbounds i8, ptr %5, i64 2
store i8 %1, ptr %15, align 1, !tbaa !6
%16 = getelementptr inbounds i8, ptr %5, i64 3
store i8 %2, ptr %16, align 1, !tbaa !6
store i64 255, ptr %6, align 8, !tbaa !12
%17 = call i64 @scard_transmit(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef 5, ptr noundef nonnull %4, ptr noundef nonnull %6) #3
%18 = load i64, ptr @SCARD_S_SUCCESS, align 8, !tbaa !12
%19 = icmp eq i64 %17, %18
%20 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !13
br i1 %19, label %24, label %21
21: ; preds = %14
%22 = zext i8 %1 to i32
%23 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %20, ptr noundef nonnull @.str, i32 noundef %22) #3
br label %38
24: ; preds = %14
%25 = load i64, ptr %6, align 8, !tbaa !12
%26 = call i32 @wpa_hexdump(i32 noundef %20, ptr noundef nonnull @.str.1, ptr noundef nonnull %4, i64 noundef %25) #3
%27 = load i64, ptr %6, align 8, !tbaa !12
%28 = icmp ult i64 %27, 2
br i1 %28, label %31, label %29
29: ; preds = %24
%30 = load i8, ptr %4, align 1
switch i8 %30, label %31 [
i8 108, label %34
i8 103, label %34
]
31: ; preds = %29, %24
%32 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !13
%33 = call i32 (i32, ptr, ...) @wpa_printf(i32 noundef %32, ptr noundef nonnull @.str.2) #3
br label %38
34: ; preds = %29, %29
%35 = getelementptr inbounds i8, ptr %4, i64 1
%36 = load i8, ptr %35, align 1, !tbaa !6
%37 = zext i8 %36 to i32
br label %38
38: ; preds = %34, %31, %21
%39 = phi i32 [ -1, %21 ], [ -1, %31 ], [ %37, %34 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 255, ptr nonnull %4) #3
ret i32 %39
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @scard_transmit(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @wpa_printf(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @wpa_hexdump(i32 noundef, 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 ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"scard_data", !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
| freebsd_contrib_wpa_src_utils_extr_pcsc_funcs.c_scard_get_record_len |
; ModuleID = 'AnghaBench/linux/drivers/misc/extr_lattice-ecp3-config.c_lattice_ecp3_remove.c'
source_filename = "AnghaBench/linux/drivers/misc/extr_lattice-ecp3-config.c_lattice_ecp3_remove.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @lattice_ecp3_remove], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @lattice_ecp3_remove(ptr noundef %0) #0 {
%2 = tail call ptr @spi_get_drvdata(ptr noundef %0) #2
%3 = tail call i32 @wait_for_completion(ptr noundef %2) #2
ret i32 0
}
declare ptr @spi_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @wait_for_completion(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/misc/extr_lattice-ecp3-config.c_lattice_ecp3_remove.c'
source_filename = "AnghaBench/linux/drivers/misc/extr_lattice-ecp3-config.c_lattice_ecp3_remove.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @lattice_ecp3_remove], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @lattice_ecp3_remove(ptr noundef %0) #0 {
%2 = tail call ptr @spi_get_drvdata(ptr noundef %0) #2
%3 = tail call i32 @wait_for_completion(ptr noundef %2) #2
ret i32 0
}
declare ptr @spi_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @wait_for_completion(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_misc_extr_lattice-ecp3-config.c_lattice_ecp3_remove |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_function.c_reset_block_changes.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_function.c_reset_block_changes.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@tree = dso_local local_unnamed_addr global i32 0, align 4
@gc = dso_local local_unnamed_addr global i32 0, align 4
@cfun = dso_local local_unnamed_addr global ptr null, align 8
@NULL_TREE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @reset_block_changes() local_unnamed_addr #0 {
%1 = load i32, ptr @tree, align 4, !tbaa !5
%2 = load i32, ptr @gc, align 4, !tbaa !5
%3 = tail call i32 @VEC_alloc(i32 noundef %1, i32 noundef %2, i32 noundef 100) #2
%4 = load ptr, ptr @cfun, align 8, !tbaa !9
store i32 %3, ptr %4, align 4, !tbaa !11
%5 = load i32, ptr @tree, align 4, !tbaa !5
%6 = load i32, ptr @NULL_TREE, align 4, !tbaa !5
%7 = tail call i32 @VEC_quick_push(i32 noundef %5, i32 noundef %3, i32 noundef %6) #2
ret void
}
declare i32 @VEC_alloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @VEC_quick_push(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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_function.c_reset_block_changes.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_function.c_reset_block_changes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@tree = common local_unnamed_addr global i32 0, align 4
@gc = common local_unnamed_addr global i32 0, align 4
@cfun = common local_unnamed_addr global ptr null, align 8
@NULL_TREE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @reset_block_changes() local_unnamed_addr #0 {
%1 = load i32, ptr @tree, align 4, !tbaa !6
%2 = load i32, ptr @gc, align 4, !tbaa !6
%3 = tail call i32 @VEC_alloc(i32 noundef %1, i32 noundef %2, i32 noundef 100) #2
%4 = load ptr, ptr @cfun, align 8, !tbaa !10
store i32 %3, ptr %4, align 4, !tbaa !12
%5 = load i32, ptr @tree, align 4, !tbaa !6
%6 = load i32, ptr @NULL_TREE, align 4, !tbaa !6
%7 = tail call i32 @VEC_quick_push(i32 noundef %5, i32 noundef %3, i32 noundef %6) #2
ret void
}
declare i32 @VEC_alloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @VEC_quick_push(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"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0}
| freebsd_contrib_gcc_extr_function.c_reset_block_changes |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_spectrum1_acl_tcam.c_mlxsw_sp1_acl_tcam_entry_action_replace.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_spectrum1_acl_tcam.c_mlxsw_sp1_acl_tcam_entry_action_replace.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mlxsw_sp1_acl_tcam_entry_action_replace], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @mlxsw_sp1_acl_tcam_entry_action_replace(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2, ptr nocapture readnone %3) #0 {
%5 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !5
%6 = sub nsw i32 0, %5
ret i32 %6
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_spectrum1_acl_tcam.c_mlxsw_sp1_acl_tcam_entry_action_replace.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlxsw/extr_spectrum1_acl_tcam.c_mlxsw_sp1_acl_tcam_entry_action_replace.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mlxsw_sp1_acl_tcam_entry_action_replace], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @mlxsw_sp1_acl_tcam_entry_action_replace(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2, ptr nocapture readnone %3) #0 {
%5 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !6
%6 = sub nsw i32 0, %5
ret i32 %6
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_mellanox_mlxsw_extr_spectrum1_acl_tcam.c_mlxsw_sp1_acl_tcam_entry_action_replace |
; ModuleID = 'AnghaBench/FFmpeg/libavfilter/extr_vf_threshold.c_threshold16.c'
source_filename = "AnghaBench/FFmpeg/libavfilter/extr_vf_threshold.c_threshold16.c"
target datalayout = "e-m:e-p270:32:32-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 @threshold16], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define internal void @threshold16(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11) #0 {
%13 = icmp sgt i32 %11, 0
br i1 %13, label %14, label %84
14: ; preds = %12
%15 = icmp sgt i32 %10, 0
%16 = sdiv i32 %5, 2
%17 = sext i32 %16 to i64
%18 = sdiv i32 %6, 2
%19 = sext i32 %18 to i64
%20 = sdiv i32 %7, 2
%21 = sext i32 %20 to i64
%22 = sdiv i32 %8, 2
%23 = sext i32 %22 to i64
%24 = sdiv i32 %9, 2
%25 = sext i32 %24 to i64
%26 = zext i32 %10 to i64
%27 = and i64 %26, 1
%28 = icmp eq i32 %10, 1
%29 = and i64 %26, 2147483646
%30 = icmp eq i64 %27, 0
br label %31
31: ; preds = %14, %76
%32 = phi i32 [ 0, %14 ], [ %82, %76 ]
%33 = phi ptr [ %4, %14 ], [ %81, %76 ]
%34 = phi ptr [ %3, %14 ], [ %80, %76 ]
%35 = phi ptr [ %2, %14 ], [ %79, %76 ]
%36 = phi ptr [ %1, %14 ], [ %78, %76 ]
%37 = phi ptr [ %0, %14 ], [ %77, %76 ]
br i1 %15, label %38, label %76
38: ; preds = %31
br i1 %28, label %64, label %39
39: ; preds = %38, %39
%40 = phi i64 [ %61, %39 ], [ 0, %38 ]
%41 = phi i64 [ %62, %39 ], [ 0, %38 ]
%42 = getelementptr inbounds i64, ptr %37, i64 %40
%43 = load i64, ptr %42, align 8, !tbaa !5
%44 = getelementptr inbounds i64, ptr %36, i64 %40
%45 = load i64, ptr %44, align 8, !tbaa !5
%46 = icmp slt i64 %43, %45
%47 = select i1 %46, ptr %35, ptr %34
%48 = getelementptr inbounds i64, ptr %47, i64 %40
%49 = load i64, ptr %48, align 8, !tbaa !5
%50 = getelementptr inbounds i64, ptr %33, i64 %40
store i64 %49, ptr %50, align 8, !tbaa !5
%51 = or disjoint i64 %40, 1
%52 = getelementptr inbounds i64, ptr %37, i64 %51
%53 = load i64, ptr %52, align 8, !tbaa !5
%54 = getelementptr inbounds i64, ptr %36, i64 %51
%55 = load i64, ptr %54, align 8, !tbaa !5
%56 = icmp slt i64 %53, %55
%57 = select i1 %56, ptr %35, ptr %34
%58 = getelementptr inbounds i64, ptr %57, i64 %51
%59 = load i64, ptr %58, align 8, !tbaa !5
%60 = getelementptr inbounds i64, ptr %33, i64 %51
store i64 %59, ptr %60, align 8, !tbaa !5
%61 = add nuw nsw i64 %40, 2
%62 = add i64 %41, 2
%63 = icmp eq i64 %62, %29
br i1 %63, label %64, label %39, !llvm.loop !9
64: ; preds = %39, %38
%65 = phi i64 [ 0, %38 ], [ %61, %39 ]
br i1 %30, label %76, label %66
66: ; preds = %64
%67 = getelementptr inbounds i64, ptr %37, i64 %65
%68 = load i64, ptr %67, align 8, !tbaa !5
%69 = getelementptr inbounds i64, ptr %36, i64 %65
%70 = load i64, ptr %69, align 8, !tbaa !5
%71 = icmp slt i64 %68, %70
%72 = select i1 %71, ptr %35, ptr %34
%73 = getelementptr inbounds i64, ptr %72, i64 %65
%74 = load i64, ptr %73, align 8, !tbaa !5
%75 = getelementptr inbounds i64, ptr %33, i64 %65
store i64 %74, ptr %75, align 8, !tbaa !5
br label %76
76: ; preds = %66, %64, %31
%77 = getelementptr inbounds i64, ptr %37, i64 %17
%78 = getelementptr inbounds i64, ptr %36, i64 %19
%79 = getelementptr inbounds i64, ptr %35, i64 %21
%80 = getelementptr inbounds i64, ptr %34, i64 %23
%81 = getelementptr inbounds i64, ptr %33, i64 %25
%82 = add nuw nsw i32 %32, 1
%83 = icmp eq i32 %82, %11
br i1 %83, label %84, label %31, !llvm.loop !11
84: ; preds = %76, %12
ret void
}
attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| ; ModuleID = 'AnghaBench/FFmpeg/libavfilter/extr_vf_threshold.c_threshold16.c'
source_filename = "AnghaBench/FFmpeg/libavfilter/extr_vf_threshold.c_threshold16.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 @threshold16], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @threshold16(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11) #0 {
%13 = icmp sgt i32 %11, 0
br i1 %13, label %14, label %55
14: ; preds = %12
%15 = icmp sgt i32 %10, 0
%16 = sdiv i32 %5, 2
%17 = sext i32 %16 to i64
%18 = sdiv i32 %6, 2
%19 = sext i32 %18 to i64
%20 = sdiv i32 %7, 2
%21 = sext i32 %20 to i64
%22 = sdiv i32 %8, 2
%23 = sext i32 %22 to i64
%24 = sdiv i32 %9, 2
%25 = sext i32 %24 to i64
%26 = zext nneg i32 %10 to i64
br label %27
27: ; preds = %14, %47
%28 = phi i32 [ 0, %14 ], [ %53, %47 ]
%29 = phi ptr [ %4, %14 ], [ %52, %47 ]
%30 = phi ptr [ %3, %14 ], [ %51, %47 ]
%31 = phi ptr [ %2, %14 ], [ %50, %47 ]
%32 = phi ptr [ %1, %14 ], [ %49, %47 ]
%33 = phi ptr [ %0, %14 ], [ %48, %47 ]
br i1 %15, label %34, label %47
34: ; preds = %27, %34
%35 = phi i64 [ %45, %34 ], [ 0, %27 ]
%36 = getelementptr inbounds i64, ptr %33, i64 %35
%37 = load i64, ptr %36, align 8, !tbaa !6
%38 = getelementptr inbounds i64, ptr %32, i64 %35
%39 = load i64, ptr %38, align 8, !tbaa !6
%40 = icmp slt i64 %37, %39
%41 = select i1 %40, ptr %31, ptr %30
%42 = getelementptr inbounds i64, ptr %41, i64 %35
%43 = load i64, ptr %42, align 8, !tbaa !6
%44 = getelementptr inbounds i64, ptr %29, i64 %35
store i64 %43, ptr %44, align 8, !tbaa !6
%45 = add nuw nsw i64 %35, 1
%46 = icmp eq i64 %45, %26
br i1 %46, label %47, label %34, !llvm.loop !10
47: ; preds = %34, %27
%48 = getelementptr inbounds i64, ptr %33, i64 %17
%49 = getelementptr inbounds i64, ptr %32, i64 %19
%50 = getelementptr inbounds i64, ptr %31, i64 %21
%51 = getelementptr inbounds i64, ptr %30, i64 %23
%52 = getelementptr inbounds i64, ptr %29, i64 %25
%53 = add nuw nsw i32 %28, 1
%54 = icmp eq i32 %53, %11
br i1 %54, label %55, label %27, !llvm.loop !12
55: ; preds = %47, %12
ret void
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| FFmpeg_libavfilter_extr_vf_threshold.c_threshold16 |
; ModuleID = 'AnghaBench/fastsocket/kernel/security/selinux/extr_hooks.c_selinux_file_lock.c'
source_filename = "AnghaBench/fastsocket/kernel/security/selinux/extr_hooks.c_selinux_file_lock.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FILE__LOCK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @selinux_file_lock], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @selinux_file_lock(ptr noundef %0, i32 %1) #0 {
%3 = tail call ptr (...) @current_cred() #2
%4 = load i32, ptr @FILE__LOCK, align 4, !tbaa !5
%5 = tail call i32 @file_has_perm(ptr noundef %3, ptr noundef %0, i32 noundef %4) #2
ret i32 %5
}
declare ptr @current_cred(...) local_unnamed_addr #1
declare i32 @file_has_perm(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/fastsocket/kernel/security/selinux/extr_hooks.c_selinux_file_lock.c'
source_filename = "AnghaBench/fastsocket/kernel/security/selinux/extr_hooks.c_selinux_file_lock.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FILE__LOCK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @selinux_file_lock], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @selinux_file_lock(ptr noundef %0, i32 %1) #0 {
%3 = tail call ptr @current_cred() #2
%4 = load i32, ptr @FILE__LOCK, align 4, !tbaa !6
%5 = tail call i32 @file_has_perm(ptr noundef %3, ptr noundef %0, i32 noundef %4) #2
ret i32 %5
}
declare ptr @current_cred(...) local_unnamed_addr #1
declare i32 @file_has_perm(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"}
| fastsocket_kernel_security_selinux_extr_hooks.c_selinux_file_lock |
; ModuleID = 'AnghaBench/linux/drivers/ata/extr_pata_macio.c_pata_macio_pci_attach.c'
source_filename = "AnghaBench/linux/drivers/ata/extr_pata_macio.c_pata_macio_pci_attach.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.pci_dev = type { i32, i32 }
%struct.pata_macio_priv = type { ptr, ptr, i32 }
@.str = private unnamed_addr constant [43 x i8] c"Cannot find OF device node for controller\0A\00", align 1
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"Cannot enable controller PCI device\0A\00", align 1
@ENXIO = 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 [11 x i8] c"pata-macio\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Cannot obtain PCI resources\0A\00", align 1
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pata_macio_pci_attach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pata_macio_pci_attach(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call ptr @pci_device_to_OF_node(ptr noundef %0) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = getelementptr inbounds %struct.pci_dev, ptr %0, i64 0, i32 1
%7 = tail call i32 @dev_err(ptr noundef nonnull %6, ptr noundef nonnull @.str) #2
%8 = load i32, ptr @ENODEV, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %45
10: ; preds = %2
%11 = tail call i64 @pcim_enable_device(ptr noundef %0) #2
%12 = icmp eq i64 %11, 0
%13 = getelementptr inbounds %struct.pci_dev, ptr %0, i64 0, i32 1
br i1 %12, label %18, label %14
14: ; preds = %10
%15 = tail call i32 @dev_err(ptr noundef nonnull %13, ptr noundef nonnull @.str.1) #2
%16 = load i32, ptr @ENXIO, align 4, !tbaa !5
%17 = sub nsw i32 0, %16
br label %45
18: ; preds = %10
%19 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%20 = tail call ptr @devm_kzalloc(ptr noundef nonnull %13, i32 noundef 24, i32 noundef %19) #2
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%24 = sub nsw i32 0, %23
br label %45
25: ; preds = %18
%26 = tail call i32 @of_node_get(ptr noundef nonnull %3) #2
%27 = getelementptr inbounds %struct.pata_macio_priv, ptr %20, i64 0, i32 2
store i32 %26, ptr %27, align 8, !tbaa !9
%28 = getelementptr inbounds %struct.pata_macio_priv, ptr %20, i64 0, i32 1
store ptr %0, ptr %28, align 8, !tbaa !12
store ptr %13, ptr %20, align 8, !tbaa !13
%29 = tail call i64 @pci_request_regions(ptr noundef %0, ptr noundef nonnull @.str.2) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %25
%32 = tail call i32 @dev_err(ptr noundef nonnull %13, ptr noundef nonnull @.str.3) #2
%33 = load i32, ptr @EBUSY, align 4, !tbaa !5
%34 = sub nsw i32 0, %33
br label %45
35: ; preds = %25
%36 = tail call i64 @pci_resource_start(ptr noundef %0, i32 noundef 0) #2
%37 = add nsw i64 %36, 8192
%38 = add nsw i64 %36, 4096
%39 = load i32, ptr %0, align 4, !tbaa !14
%40 = tail call i64 @pata_macio_common_init(ptr noundef nonnull %20, i64 noundef %37, i64 noundef %38, i64 noundef %36, i32 noundef %39) #2
%41 = icmp eq i64 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %35
%43 = load i32, ptr @ENXIO, align 4, !tbaa !5
%44 = sub nsw i32 0, %43
br label %45
45: ; preds = %35, %42, %31, %22, %14, %5
%46 = phi i32 [ %9, %5 ], [ %17, %14 ], [ %34, %31 ], [ %44, %42 ], [ %24, %22 ], [ 0, %35 ]
ret i32 %46
}
declare ptr @pci_device_to_OF_node(ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @pcim_enable_device(ptr noundef) local_unnamed_addr #1
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @of_node_get(ptr noundef) local_unnamed_addr #1
declare i64 @pci_request_regions(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @pci_resource_start(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @pata_macio_common_init(ptr noundef, i64 noundef, i64 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"}
!9 = !{!10, !6, i64 16}
!10 = !{!"pata_macio_priv", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"pci_dev", !6, i64 0, !6, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/ata/extr_pata_macio.c_pata_macio_pci_attach.c'
source_filename = "AnghaBench/linux/drivers/ata/extr_pata_macio.c_pata_macio_pci_attach.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 [43 x i8] c"Cannot find OF device node for controller\0A\00", align 1
@ENODEV = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"Cannot enable controller PCI device\0A\00", align 1
@ENXIO = 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 [11 x i8] c"pata-macio\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Cannot obtain PCI resources\0A\00", align 1
@EBUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pata_macio_pci_attach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @pata_macio_pci_attach(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call ptr @pci_device_to_OF_node(ptr noundef %0) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %0, i64 4
%7 = tail call i32 @dev_err(ptr noundef nonnull %6, ptr noundef nonnull @.str) #2
%8 = load i32, ptr @ENODEV, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %45
10: ; preds = %2
%11 = tail call i64 @pcim_enable_device(ptr noundef %0) #2
%12 = icmp eq i64 %11, 0
%13 = getelementptr inbounds i8, ptr %0, i64 4
br i1 %12, label %18, label %14
14: ; preds = %10
%15 = tail call i32 @dev_err(ptr noundef nonnull %13, ptr noundef nonnull @.str.1) #2
%16 = load i32, ptr @ENXIO, align 4, !tbaa !6
%17 = sub nsw i32 0, %16
br label %45
18: ; preds = %10
%19 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%20 = tail call ptr @devm_kzalloc(ptr noundef nonnull %13, i32 noundef 24, i32 noundef %19) #2
%21 = icmp eq ptr %20, null
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%24 = sub nsw i32 0, %23
br label %45
25: ; preds = %18
%26 = tail call i32 @of_node_get(ptr noundef nonnull %3) #2
%27 = getelementptr inbounds i8, ptr %20, i64 16
store i32 %26, ptr %27, align 8, !tbaa !10
%28 = getelementptr inbounds i8, ptr %20, i64 8
store ptr %0, ptr %28, align 8, !tbaa !13
store ptr %13, ptr %20, align 8, !tbaa !14
%29 = tail call i64 @pci_request_regions(ptr noundef %0, ptr noundef nonnull @.str.2) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %25
%32 = tail call i32 @dev_err(ptr noundef nonnull %13, ptr noundef nonnull @.str.3) #2
%33 = load i32, ptr @EBUSY, align 4, !tbaa !6
%34 = sub nsw i32 0, %33
br label %45
35: ; preds = %25
%36 = tail call i64 @pci_resource_start(ptr noundef %0, i32 noundef 0) #2
%37 = add nsw i64 %36, 8192
%38 = add nsw i64 %36, 4096
%39 = load i32, ptr %0, align 4, !tbaa !15
%40 = tail call i64 @pata_macio_common_init(ptr noundef nonnull %20, i64 noundef %37, i64 noundef %38, i64 noundef %36, i32 noundef %39) #2
%41 = icmp eq i64 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %35
%43 = load i32, ptr @ENXIO, align 4, !tbaa !6
%44 = sub nsw i32 0, %43
br label %45
45: ; preds = %35, %42, %31, %22, %14, %5
%46 = phi i32 [ %9, %5 ], [ %17, %14 ], [ %34, %31 ], [ %44, %42 ], [ %24, %22 ], [ 0, %35 ]
ret i32 %46
}
declare ptr @pci_device_to_OF_node(ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @pcim_enable_device(ptr noundef) local_unnamed_addr #1
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @of_node_get(ptr noundef) local_unnamed_addr #1
declare i64 @pci_request_regions(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @pci_resource_start(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @pata_macio_common_init(ptr noundef, i64 noundef, i64 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"}
!10 = !{!11, !7, i64 16}
!11 = !{!"pata_macio_priv", !12, i64 0, !12, i64 8, !7, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!11, !12, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"pci_dev", !7, i64 0, !7, i64 4}
| linux_drivers_ata_extr_pata_macio.c_pata_macio_pci_attach |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/dsa/extr_mv88e6xxx.c_mv88e6xxx_get_strings.c'
source_filename = "AnghaBench/fastsocket/kernel/net/dsa/extr_mv88e6xxx.c_mv88e6xxx_get_strings.c"
target datalayout = "e-m:e-p270:32:32-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.mv88e6xxx_hw_stat = type { i32 }
@ETH_GSTRING_LEN = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @mv88e6xxx_get_strings(ptr nocapture noundef readnone %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = icmp sgt i32 %1, 0
br i1 %6, label %7, label %21
7: ; preds = %5
%8 = zext nneg i32 %1 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %19, %9 ]
%11 = load i32, ptr @ETH_GSTRING_LEN, align 4, !tbaa !5
%12 = trunc i64 %10 to i32
%13 = mul nsw i32 %11, %12
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %4, i64 %14
%16 = getelementptr inbounds %struct.mv88e6xxx_hw_stat, ptr %2, i64 %10
%17 = load i32, ptr %16, align 4, !tbaa !9
%18 = tail call i32 @memcpy(ptr noundef %15, i32 noundef %17, i32 noundef %11) #2
%19 = add nuw nsw i64 %10, 1
%20 = icmp eq i64 %19, %8
br i1 %20, label %21, label %9, !llvm.loop !11
21: ; preds = %9, %5
ret void
}
declare i32 @memcpy(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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"mv88e6xxx_hw_stat", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/dsa/extr_mv88e6xxx.c_mv88e6xxx_get_strings.c'
source_filename = "AnghaBench/fastsocket/kernel/net/dsa/extr_mv88e6xxx.c_mv88e6xxx_get_strings.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.mv88e6xxx_hw_stat = type { i32 }
@ETH_GSTRING_LEN = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @mv88e6xxx_get_strings(ptr nocapture noundef readnone %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
%6 = icmp sgt i32 %1, 0
br i1 %6, label %7, label %21
7: ; preds = %5
%8 = zext nneg i32 %1 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %19, %9 ]
%11 = load i32, ptr @ETH_GSTRING_LEN, align 4, !tbaa !6
%12 = trunc nuw nsw i64 %10 to i32
%13 = mul nsw i32 %11, %12
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %4, i64 %14
%16 = getelementptr inbounds %struct.mv88e6xxx_hw_stat, ptr %2, i64 %10
%17 = load i32, ptr %16, align 4, !tbaa !10
%18 = tail call i32 @memcpy(ptr noundef %15, i32 noundef %17, i32 noundef %11) #2
%19 = add nuw nsw i64 %10, 1
%20 = icmp eq i64 %19, %8
br i1 %20, label %21, label %9, !llvm.loop !12
21: ; preds = %9, %5
ret void
}
declare i32 @memcpy(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"}
!10 = !{!11, !7, i64 0}
!11 = !{!"mv88e6xxx_hw_stat", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_net_dsa_extr_mv88e6xxx.c_mv88e6xxx_get_strings |
; ModuleID = 'AnghaBench/linux/net/nfc/extr_llcp_commands.c_llcp_add_tlv.c'
source_filename = "AnghaBench/linux/net/nfc/extr_llcp_commands.c_llcp_add_tlv.c"
target datalayout = "e-m:e-p270:32:32-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 @llcp_add_tlv], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @llcp_add_tlv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = icmp eq ptr %1, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @skb_put_data(ptr noundef %0, ptr noundef nonnull %1, i32 noundef %2) #2
br label %7
7: ; preds = %3, %5
%8 = phi ptr [ %0, %5 ], [ null, %3 ]
ret ptr %8
}
declare i32 @skb_put_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/net/nfc/extr_llcp_commands.c_llcp_add_tlv.c'
source_filename = "AnghaBench/linux/net/nfc/extr_llcp_commands.c_llcp_add_tlv.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 @llcp_add_tlv], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @llcp_add_tlv(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = icmp eq ptr %1, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @skb_put_data(ptr noundef %0, ptr noundef nonnull %1, i32 noundef %2) #2
br label %7
7: ; preds = %3, %5
%8 = phi ptr [ %0, %5 ], [ null, %3 ]
ret ptr %8
}
declare i32 @skb_put_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_net_nfc_extr_llcp_commands.c_llcp_add_tlv |
; ModuleID = 'AnghaBench/git/extr_fast-import.c_make_fast_import_path.c'
source_filename = "AnghaBench/git/extr_fast-import.c_make_fast_import_path.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@relative_marks_paths = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"info/fast-import/%s\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @make_fast_import_path], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @make_fast_import_path(ptr noundef %0) #0 {
%2 = load i32, ptr @relative_marks_paths, align 4, !tbaa !5
%3 = icmp eq i32 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i64 @is_absolute_path(ptr noundef %0) #2
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4, %1
%8 = tail call ptr @xstrdup(ptr noundef %0) #2
br label %11
9: ; preds = %4
%10 = tail call ptr @git_pathdup(ptr noundef nonnull @.str, ptr noundef %0) #2
br label %11
11: ; preds = %9, %7
%12 = phi ptr [ %8, %7 ], [ %10, %9 ]
ret ptr %12
}
declare i64 @is_absolute_path(ptr noundef) local_unnamed_addr #1
declare ptr @xstrdup(ptr noundef) local_unnamed_addr #1
declare ptr @git_pathdup(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/git/extr_fast-import.c_make_fast_import_path.c'
source_filename = "AnghaBench/git/extr_fast-import.c_make_fast_import_path.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@relative_marks_paths = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"info/fast-import/%s\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @make_fast_import_path], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @make_fast_import_path(ptr noundef %0) #0 {
%2 = load i32, ptr @relative_marks_paths, align 4, !tbaa !6
%3 = icmp eq i32 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i64 @is_absolute_path(ptr noundef %0) #2
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4, %1
%8 = tail call ptr @xstrdup(ptr noundef %0) #2
br label %11
9: ; preds = %4
%10 = tail call ptr @git_pathdup(ptr noundef nonnull @.str, ptr noundef %0) #2
br label %11
11: ; preds = %9, %7
%12 = phi ptr [ %8, %7 ], [ %10, %9 ]
ret ptr %12
}
declare i64 @is_absolute_path(ptr noundef) local_unnamed_addr #1
declare ptr @xstrdup(ptr noundef) local_unnamed_addr #1
declare ptr @git_pathdup(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"}
| git_extr_fast-import.c_make_fast_import_path |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_uipc_socket.c_filt_sockev.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_uipc_socket.c_filt_sockev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SO_FILT_HINT_EV = dso_local local_unnamed_addr global i64 0, align 8
@SO_FILT_HINT_LOCKED = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @filt_sockev], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @filt_sockev(ptr noundef %0, i64 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = load i64, ptr %4, align 8, !tbaa !12
%6 = inttoptr i64 %5 to ptr
%7 = load i64, ptr @SO_FILT_HINT_EV, align 8, !tbaa !15
%8 = and i64 %7, %1
%9 = load i64, ptr @SO_FILT_HINT_LOCKED, align 8, !tbaa !15
%10 = and i64 %9, %1
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = tail call i32 @filt_sockev_common(ptr noundef nonnull %0, ptr noundef %6, i64 noundef %8) #2
br label %18
14: ; preds = %2
%15 = tail call i32 @socket_lock(ptr noundef %6, i32 noundef 1) #2
%16 = tail call i32 @filt_sockev_common(ptr noundef nonnull %0, ptr noundef %6, i64 noundef %8) #2
%17 = tail call i32 @socket_unlock(ptr noundef %6, i32 noundef 1) #2
br label %18
18: ; preds = %12, %14
%19 = phi i32 [ %16, %14 ], [ %13, %12 ]
ret i32 %19
}
declare i32 @socket_lock(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @filt_sockev_common(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @socket_unlock(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"knote", !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_4__", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/kern/extr_uipc_socket.c_filt_sockev.c'
source_filename = "AnghaBench/darwin-xnu/bsd/kern/extr_uipc_socket.c_filt_sockev.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SO_FILT_HINT_EV = common local_unnamed_addr global i64 0, align 8
@SO_FILT_HINT_LOCKED = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @filt_sockev], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @filt_sockev(ptr noundef %0, i64 noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load i64, ptr %4, align 8, !tbaa !13
%6 = inttoptr i64 %5 to ptr
%7 = load i64, ptr @SO_FILT_HINT_EV, align 8, !tbaa !16
%8 = and i64 %7, %1
%9 = load i64, ptr @SO_FILT_HINT_LOCKED, align 8, !tbaa !16
%10 = and i64 %9, %1
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = tail call i32 @filt_sockev_common(ptr noundef nonnull %0, ptr noundef %6, i64 noundef %8) #2
br label %18
14: ; preds = %2
%15 = tail call i32 @socket_lock(ptr noundef %6, i32 noundef 1) #2
%16 = tail call i32 @filt_sockev_common(ptr noundef nonnull %0, ptr noundef %6, i64 noundef %8) #2
%17 = tail call i32 @socket_unlock(ptr noundef %6, i32 noundef 1) #2
br label %18
18: ; preds = %12, %14
%19 = phi i32 [ %16, %14 ], [ %13, %12 ]
ret i32 %19
}
declare i32 @socket_lock(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @filt_sockev_common(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @socket_unlock(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"knote", !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_4__", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!15, !15, i64 0}
| darwin-xnu_bsd_kern_extr_uipc_socket.c_filt_sockev |
; ModuleID = 'AnghaBench/htop/extr_Action.c_actionResize.c'
source_filename = "AnghaBench/htop/extr_Action.c_actionResize.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@COLS = dso_local local_unnamed_addr global i32 0, align 4
@LINES = dso_local local_unnamed_addr global i64 0, align 8
@HTOP_REDRAW_BAR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @actionResize], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @actionResize(ptr nocapture noundef readonly %0) #0 {
%2 = tail call i32 (...) @clear() #2
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = load i32, ptr @COLS, align 4, !tbaa !10
%5 = load i64, ptr @LINES, align 8, !tbaa !12
%6 = load i64, ptr %3, align 8, !tbaa !14
%7 = xor i64 %6, -1
%8 = add i64 %5, %7
%9 = tail call i32 @Panel_resize(ptr noundef nonnull %3, i32 noundef %4, i64 noundef %8) #2
%10 = load i32, ptr @HTOP_REDRAW_BAR, align 4, !tbaa !10
ret i32 %10
}
declare i32 @clear(...) local_unnamed_addr #1
declare i32 @Panel_resize(ptr noundef, i32 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 = !{!"TYPE_4__", !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}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_5__", !13, i64 0}
| ; ModuleID = 'AnghaBench/htop/extr_Action.c_actionResize.c'
source_filename = "AnghaBench/htop/extr_Action.c_actionResize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@COLS = common local_unnamed_addr global i32 0, align 4
@LINES = common local_unnamed_addr global i64 0, align 8
@HTOP_REDRAW_BAR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @actionResize], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @actionResize(ptr nocapture noundef readonly %0) #0 {
%2 = tail call i32 @clear() #2
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = load i32, ptr @COLS, align 4, !tbaa !11
%5 = load i64, ptr @LINES, align 8, !tbaa !13
%6 = load i64, ptr %3, align 8, !tbaa !15
%7 = xor i64 %6, -1
%8 = add i64 %5, %7
%9 = tail call i32 @Panel_resize(ptr noundef nonnull %3, i32 noundef %4, i64 noundef %8) #2
%10 = load i32, ptr @HTOP_REDRAW_BAR, align 4, !tbaa !11
ret i32 %10
}
declare i32 @clear(...) local_unnamed_addr #1
declare i32 @Panel_resize(ptr noundef, i32 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 = !{!"TYPE_4__", !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}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_5__", !14, i64 0}
| htop_extr_Action.c_actionResize |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_init_msi.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_init_msi.c"
target datalayout = "e-m:e-p270:32:32-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.hclge_dev = type { i32, i32, ptr, ptr, i64, i64, i64, ptr }
%struct.pci_dev = type { i32, i64 }
@HNAE3_MIN_VECTOR_NUM = dso_local local_unnamed_addr global i32 0, align 4
@PCI_IRQ_MSI = dso_local local_unnamed_addr global i32 0, align 4
@PCI_IRQ_MSIX = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"failed(%d) to allocate MSI/MSI-X vectors\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"requested %d MSI/MSI-X, but allocated %d MSI/MSI-X\0A\00", align 1
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@HCLGE_INVALID_VPORT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hclge_init_msi], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hclge_init_msi(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 7
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr @HNAE3_MIN_VECTOR_NUM, align 4, !tbaa !12
%5 = load i32, ptr %0, align 8, !tbaa !13
%6 = load i32, ptr @PCI_IRQ_MSI, align 4, !tbaa !12
%7 = load i32, ptr @PCI_IRQ_MSIX, align 4, !tbaa !12
%8 = or i32 %7, %6
%9 = tail call i32 @pci_alloc_irq_vectors(ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %8) #2
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = tail call i32 @dev_err(ptr noundef %3, ptr noundef nonnull @.str, i32 noundef %9) #2
br label %58
13: ; preds = %1
%14 = load i32, ptr %0, align 8, !tbaa !13
%15 = icmp slt i32 %9, %14
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load ptr, ptr %2, align 8, !tbaa !5
%18 = tail call i32 @dev_warn(ptr noundef %17, ptr noundef nonnull @.str.1, i32 noundef %14, i32 noundef %9) #2
br label %19
19: ; preds = %16, %13
store i32 %9, ptr %0, align 8, !tbaa !13
%20 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 1
store i32 %9, ptr %20, align 4, !tbaa !14
%21 = getelementptr inbounds %struct.pci_dev, ptr %3, i64 0, i32 1
%22 = load i64, ptr %21, align 8, !tbaa !15
%23 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 5
store i64 %22, ptr %23, align 8, !tbaa !17
%24 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 4
%25 = load i64, ptr %24, align 8, !tbaa !18
%26 = add nsw i64 %25, %22
%27 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 6
store i64 %26, ptr %27, align 8, !tbaa !19
%28 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !12
%29 = tail call ptr @devm_kcalloc(ptr noundef %3, i32 noundef %9, i32 noundef 4, i32 noundef %28) #2
%30 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 3
store ptr %29, ptr %30, align 8, !tbaa !20
%31 = icmp eq ptr %29, null
br i1 %31, label %37, label %32
32: ; preds = %19
%33 = load i32, ptr %0, align 8, !tbaa !13
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %48
35: ; preds = %32
%36 = load i32, ptr @HCLGE_INVALID_VPORT, align 4, !tbaa !12
br label %41
37: ; preds = %19
%38 = tail call i32 @pci_free_irq_vectors(ptr noundef nonnull %3) #2
%39 = load i32, ptr @ENOMEM, align 4, !tbaa !12
%40 = sub nsw i32 0, %39
br label %58
41: ; preds = %35, %41
%42 = phi i64 [ 0, %35 ], [ %44, %41 ]
%43 = getelementptr inbounds i32, ptr %29, i64 %42
store i32 %36, ptr %43, align 4, !tbaa !12
%44 = add nuw nsw i64 %42, 1
%45 = load i32, ptr %0, align 8, !tbaa !13
%46 = sext i32 %45 to i64
%47 = icmp slt i64 %44, %46
br i1 %47, label %41, label %48, !llvm.loop !21
48: ; preds = %41, %32
%49 = phi i32 [ %33, %32 ], [ %45, %41 ]
%50 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !12
%51 = tail call ptr @devm_kcalloc(ptr noundef %3, i32 noundef %49, i32 noundef 4, i32 noundef %50) #2
%52 = getelementptr inbounds %struct.hclge_dev, ptr %0, i64 0, i32 2
store ptr %51, ptr %52, align 8, !tbaa !23
%53 = icmp eq ptr %51, null
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = tail call i32 @pci_free_irq_vectors(ptr noundef %3) #2
%56 = load i32, ptr @ENOMEM, align 4, !tbaa !12
%57 = sub nsw i32 0, %56
br label %58
58: ; preds = %48, %54, %37, %11
%59 = phi i32 [ %9, %11 ], [ %57, %54 ], [ %40, %37 ], [ 0, %48 ]
ret i32 %59
}
declare i32 @pci_alloc_irq_vectors(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_warn(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @devm_kcalloc(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_free_irq_vectors(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 48}
!6 = !{!"hclge_dev", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !10, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !7, i64 4}
!15 = !{!16, !11, i64 8}
!16 = !{!"pci_dev", !7, i64 0, !11, i64 8}
!17 = !{!6, !11, i64 32}
!18 = !{!6, !11, i64 24}
!19 = !{!6, !11, i64 40}
!20 = !{!6, !10, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_init_msi.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_init_msi.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HNAE3_MIN_VECTOR_NUM = common local_unnamed_addr global i32 0, align 4
@PCI_IRQ_MSI = common local_unnamed_addr global i32 0, align 4
@PCI_IRQ_MSIX = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"failed(%d) to allocate MSI/MSI-X vectors\0A\00", align 1
@.str.1 = private unnamed_addr constant [52 x i8] c"requested %d MSI/MSI-X, but allocated %d MSI/MSI-X\0A\00", align 1
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@HCLGE_INVALID_VPORT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hclge_init_msi], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @hclge_init_msi(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 48
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr @HNAE3_MIN_VECTOR_NUM, align 4, !tbaa !13
%5 = load i32, ptr %0, align 8, !tbaa !14
%6 = load i32, ptr @PCI_IRQ_MSI, align 4, !tbaa !13
%7 = load i32, ptr @PCI_IRQ_MSIX, align 4, !tbaa !13
%8 = or i32 %7, %6
%9 = tail call i32 @pci_alloc_irq_vectors(ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %8) #2
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = tail call i32 @dev_err(ptr noundef %3, ptr noundef nonnull @.str, i32 noundef %9) #2
br label %58
13: ; preds = %1
%14 = load i32, ptr %0, align 8, !tbaa !14
%15 = icmp slt i32 %9, %14
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load ptr, ptr %2, align 8, !tbaa !6
%18 = tail call i32 @dev_warn(ptr noundef %17, ptr noundef nonnull @.str.1, i32 noundef %14, i32 noundef %9) #2
br label %19
19: ; preds = %16, %13
store i32 %9, ptr %0, align 8, !tbaa !14
%20 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %9, ptr %20, align 4, !tbaa !15
%21 = getelementptr inbounds i8, ptr %3, i64 8
%22 = load i64, ptr %21, align 8, !tbaa !16
%23 = getelementptr inbounds i8, ptr %0, i64 32
store i64 %22, ptr %23, align 8, !tbaa !18
%24 = getelementptr inbounds i8, ptr %0, i64 24
%25 = load i64, ptr %24, align 8, !tbaa !19
%26 = add nsw i64 %25, %22
%27 = getelementptr inbounds i8, ptr %0, i64 40
store i64 %26, ptr %27, align 8, !tbaa !20
%28 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !13
%29 = tail call ptr @devm_kcalloc(ptr noundef %3, i32 noundef %9, i32 noundef 4, i32 noundef %28) #2
%30 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %29, ptr %30, align 8, !tbaa !21
%31 = icmp eq ptr %29, null
br i1 %31, label %37, label %32
32: ; preds = %19
%33 = load i32, ptr %0, align 8, !tbaa !14
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %48
35: ; preds = %32
%36 = load i32, ptr @HCLGE_INVALID_VPORT, align 4, !tbaa !13
br label %41
37: ; preds = %19
%38 = tail call i32 @pci_free_irq_vectors(ptr noundef nonnull %3) #2
%39 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%40 = sub nsw i32 0, %39
br label %58
41: ; preds = %35, %41
%42 = phi i64 [ 0, %35 ], [ %44, %41 ]
%43 = getelementptr inbounds i32, ptr %29, i64 %42
store i32 %36, ptr %43, align 4, !tbaa !13
%44 = add nuw nsw i64 %42, 1
%45 = load i32, ptr %0, align 8, !tbaa !14
%46 = sext i32 %45 to i64
%47 = icmp slt i64 %44, %46
br i1 %47, label %41, label %48, !llvm.loop !22
48: ; preds = %41, %32
%49 = phi i32 [ %33, %32 ], [ %45, %41 ]
%50 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !13
%51 = tail call ptr @devm_kcalloc(ptr noundef %3, i32 noundef %49, i32 noundef 4, i32 noundef %50) #2
%52 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %51, ptr %52, align 8, !tbaa !24
%53 = icmp eq ptr %51, null
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = tail call i32 @pci_free_irq_vectors(ptr noundef %3) #2
%56 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%57 = sub nsw i32 0, %56
br label %58
58: ; preds = %48, %54, %37, %11
%59 = phi i32 [ %9, %11 ], [ %57, %54 ], [ %40, %37 ], [ 0, %48 ]
ret i32 %59
}
declare i32 @pci_alloc_irq_vectors(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_warn(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @devm_kcalloc(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pci_free_irq_vectors(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 48}
!7 = !{!"hclge_dev", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !11, i64 48}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !8, i64 0}
!15 = !{!7, !8, i64 4}
!16 = !{!17, !12, i64 8}
!17 = !{!"pci_dev", !8, i64 0, !12, i64 8}
!18 = !{!7, !12, i64 32}
!19 = !{!7, !12, i64 24}
!20 = !{!7, !12, i64 40}
!21 = !{!7, !11, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!7, !11, i64 8}
| linux_drivers_net_ethernet_hisilicon_hns3_hns3pf_extr_hclge_main.c_hclge_init_msi |
; ModuleID = 'AnghaBench/TDengine/src/client/src/extr_tscFunctionImpl.c_function_setup.c'
source_filename = "AnghaBench/TDengine/src/client/src/extr_tscFunctionImpl.c_function_setup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_8__ = type { i64, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @function_setup], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @function_setup(ptr noundef %0) #0 {
%2 = tail call ptr @GET_RES_INFO(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = getelementptr inbounds %struct.TYPE_8__, ptr %0, i64 0, i32 1
%7 = load i32, ptr %6, align 8, !tbaa !10
%8 = load i64, ptr %0, align 8, !tbaa !13
%9 = tail call i32 @memset(i32 noundef %7, i32 noundef 0, i64 noundef %8) #2
%10 = tail call i32 @initResultInfo(ptr noundef nonnull %2) #2
br label %11
11: ; preds = %1, %5
%12 = phi i32 [ 1, %5 ], [ 0, %1 ]
ret i32 %12
}
declare ptr @GET_RES_INFO(ptr noundef) local_unnamed_addr #1
declare i32 @memset(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @initResultInfo(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_7__", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"TYPE_8__", !7, i64 0, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 0}
| ; ModuleID = 'AnghaBench/TDengine/src/client/src/extr_tscFunctionImpl.c_function_setup.c'
source_filename = "AnghaBench/TDengine/src/client/src/extr_tscFunctionImpl.c_function_setup.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 @function_setup], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @function_setup(ptr noundef %0) #0 {
%2 = tail call ptr @GET_RES_INFO(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i32, ptr %6, align 8, !tbaa !11
%8 = load i64, ptr %0, align 8, !tbaa !14
%9 = tail call i32 @memset(i32 noundef %7, i32 noundef 0, i64 noundef %8) #2
%10 = tail call i32 @initResultInfo(ptr noundef nonnull %2) #2
br label %11
11: ; preds = %1, %5
%12 = phi i32 [ 1, %5 ], [ 0, %1 ]
ret i32 %12
}
declare ptr @GET_RES_INFO(ptr noundef) local_unnamed_addr #1
declare i32 @memset(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @initResultInfo(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_7__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 8}
!12 = !{!"TYPE_8__", !8, i64 0, !13, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !8, i64 0}
| TDengine_src_client_src_extr_tscFunctionImpl.c_function_setup |
; ModuleID = 'AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_main.c'
source_filename = "AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.necp_packet_header = type { i32, i64, i64 }
@.str.1 = private unnamed_addr constant [26 x i8] c"got a control socket! %d\0A\00", align 1
@str = private unnamed_addr constant [32 x i8] c"failed to get control socket :(\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = tail call i32 (...) @ctl_open() #6
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %26
7: ; preds = %0
%8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %3)
%9 = tail call ptr @malloc(i32 noundef 4096) #6
%10 = tail call i32 @memset(ptr noundef %9, i8 noundef signext 0, i32 noundef 4096) #6
%11 = tail call ptr @malloc(i32 noundef 4096) #6
%12 = tail call i32 @memset(ptr noundef %11, i8 noundef signext 65, i32 noundef 4096) #6
store i32 1, ptr %9, align 8, !tbaa !5
%13 = getelementptr inbounds %struct.necp_packet_header, ptr %9, i64 0, i32 1
%14 = getelementptr inbounds %struct.necp_packet_header, ptr %9, i64 1
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
store i32 1094795585, ptr %1, align 4, !tbaa !11
%15 = call ptr @add_real_tlv(ptr noundef nonnull %14, i32 noundef 2, i32 noundef 4, ptr noundef nonnull %1) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
store i32 1, ptr %2, align 4, !tbaa !11
%16 = call ptr @add_real_tlv(ptr noundef %15, i32 noundef 4, i32 noundef 1, ptr noundef nonnull %2) #6
%17 = call ptr @add_real_tlv(ptr noundef %16, i32 noundef 3, i32 noundef 1, ptr noundef %11) #6
%18 = call ptr @add_real_tlv(ptr noundef %17, i32 noundef 3, i32 noundef 1024, ptr noundef %11) #6
%19 = call ptr @add_fake_tlv(ptr noundef %18, i32 noundef 3, i32 noundef -1051, ptr noundef %11, i32 noundef 16) #6
%20 = ptrtoint ptr %19 to i64
%21 = ptrtoint ptr %9 to i64
%22 = sub i64 %20, %21
%23 = ashr exact i64 %22, 2
%24 = call i32 @send(i32 noundef %3, ptr noundef nonnull %9, i64 noundef %23, i32 noundef 0) #6
%25 = call i32 @close(i32 noundef %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
br label %26
26: ; preds = %7, %5
%27 = phi i32 [ 1, %5 ], [ 0, %7 ]
ret i32 %27
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ctl_open(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare ptr @malloc(i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) local_unnamed_addr #2
declare ptr @add_real_tlv(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @add_fake_tlv(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree 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 = { nofree nounwind }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"necp_packet_header", !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 = !{!"long", !8, i64 0}
!11 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_main.c'
source_filename = "AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str.1 = private unnamed_addr constant [26 x i8] c"got a control socket! %d\0A\00", align 1
@str = private unnamed_addr constant [32 x i8] c"failed to get control socket :(\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @main() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = tail call i32 @ctl_open() #6
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %26
7: ; preds = %0
%8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %3)
%9 = tail call ptr @malloc(i32 noundef 4096) #6
%10 = tail call i32 @memset(ptr noundef %9, i8 noundef signext 0, i32 noundef 4096) #6
%11 = tail call ptr @malloc(i32 noundef 4096) #6
%12 = tail call i32 @memset(ptr noundef %11, i8 noundef signext 65, i32 noundef 4096) #6
store i32 1, ptr %9, align 8, !tbaa !6
%13 = getelementptr inbounds i8, ptr %9, i64 8
%14 = getelementptr inbounds i8, ptr %9, i64 24
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
store i32 1094795585, ptr %1, align 4, !tbaa !12
%15 = call ptr @add_real_tlv(ptr noundef nonnull %14, i32 noundef 2, i32 noundef 4, ptr noundef nonnull %1) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
store i32 1, ptr %2, align 4, !tbaa !12
%16 = call ptr @add_real_tlv(ptr noundef %15, i32 noundef 4, i32 noundef 1, ptr noundef nonnull %2) #6
%17 = call ptr @add_real_tlv(ptr noundef %16, i32 noundef 3, i32 noundef 1, ptr noundef %11) #6
%18 = call ptr @add_real_tlv(ptr noundef %17, i32 noundef 3, i32 noundef 1024, ptr noundef %11) #6
%19 = call ptr @add_fake_tlv(ptr noundef %18, i32 noundef 3, i32 noundef -1051, ptr noundef %11, i32 noundef 16) #6
%20 = ptrtoint ptr %19 to i64
%21 = ptrtoint ptr %9 to i64
%22 = sub i64 %20, %21
%23 = ashr exact i64 %22, 2
%24 = call i32 @send(i32 noundef %3, ptr noundef nonnull %9, i64 noundef %23, i32 noundef 0) #6
%25 = call i32 @close(i32 noundef %3) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
br label %26
26: ; preds = %7, %5
%27 = phi i32 [ 1, %5 ], [ 0, %7 ]
ret i32 %27
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ctl_open(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare ptr @malloc(i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) local_unnamed_addr #2
declare ptr @add_real_tlv(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @add_fake_tlv(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @send(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree 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 = { nofree nounwind }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"necp_packet_header", !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 = !{!"long", !9, i64 0}
!12 = !{!8, !8, i64 0}
| exploitdb_exploits_multiple_dos_extr_39378.c_main |
; ModuleID = 'AnghaBench/linux/drivers/scsi/hisi_sas/extr_hisi_sas_main.c_hisi_sas_phy_enable.c'
source_filename = "AnghaBench/linux/drivers/scsi/hisi_sas/extr_hisi_sas_main.c_hisi_sas_phy_enable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hisi_hba = type { ptr, ptr }
%struct.hisi_sas_phy = type { i32, i32, %struct.asd_sas_phy }
%struct.asd_sas_phy = type { ptr }
%struct.TYPE_2__ = type { ptr, ptr }
@SAS_LINK_RATE_UNKNOWN = dso_local local_unnamed_addr global i32 0, align 4
@SAS_PHY_DISABLED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @hisi_sas_phy_enable(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds %struct.hisi_hba, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = sext i32 %1 to i64
%7 = getelementptr inbounds %struct.hisi_sas_phy, ptr %5, i64 %6
%8 = getelementptr inbounds %struct.hisi_sas_phy, ptr %5, i64 %6, i32 2
%9 = load ptr, ptr %8, align 8, !tbaa !10
%10 = getelementptr inbounds %struct.hisi_sas_phy, ptr %5, i64 %6, i32 1
%11 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %10, i64 noundef undef) #2
%12 = icmp eq i32 %2, 0
br i1 %12, label %21, label %13
13: ; preds = %3
%14 = load i32, ptr %7, align 8, !tbaa !12
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = load i32, ptr @SAS_LINK_RATE_UNKNOWN, align 4, !tbaa !15
store i32 %17, ptr %9, align 4, !tbaa !16
br label %18
18: ; preds = %16, %13
%19 = load ptr, ptr %0, align 8, !tbaa !18
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %19, i64 0, i32 1
br label %24
21: ; preds = %3
%22 = load i32, ptr @SAS_PHY_DISABLED, align 4, !tbaa !15
store i32 %22, ptr %9, align 4, !tbaa !16
%23 = load ptr, ptr %0, align 8, !tbaa !18
br label %24
24: ; preds = %21, %18
%25 = phi ptr [ %23, %21 ], [ %20, %18 ]
%26 = load ptr, ptr %25, align 8, !tbaa !19
%27 = tail call i32 %26(ptr noundef nonnull %0, i32 noundef %1) #2
store i32 %2, ptr %7, align 8, !tbaa !12
%28 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"hisi_hba", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"asd_sas_phy", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"hisi_sas_phy", !14, i64 0, !14, i64 4, !11, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"sas_phy", !14, i64 0}
!18 = !{!6, !7, i64 0}
!19 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/hisi_sas/extr_hisi_sas_main.c_hisi_sas_phy_enable.c'
source_filename = "AnghaBench/linux/drivers/scsi/hisi_sas/extr_hisi_sas_main.c_hisi_sas_phy_enable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.hisi_sas_phy = type { i32, i32, %struct.asd_sas_phy }
%struct.asd_sas_phy = type { ptr }
@SAS_LINK_RATE_UNKNOWN = common local_unnamed_addr global i32 0, align 4
@SAS_PHY_DISABLED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @hisi_sas_phy_enable(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = sext i32 %1 to i64
%7 = getelementptr inbounds %struct.hisi_sas_phy, ptr %5, i64 %6
%8 = getelementptr inbounds i8, ptr %7, i64 8
%9 = load ptr, ptr %8, align 8, !tbaa !11
%10 = getelementptr inbounds i8, ptr %7, i64 4
%11 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %10, i64 noundef undef) #2
%12 = icmp eq i32 %2, 0
br i1 %12, label %21, label %13
13: ; preds = %3
%14 = load i32, ptr %7, align 8, !tbaa !13
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = load i32, ptr @SAS_LINK_RATE_UNKNOWN, align 4, !tbaa !16
store i32 %17, ptr %9, align 4, !tbaa !17
br label %18
18: ; preds = %16, %13
%19 = load ptr, ptr %0, align 8, !tbaa !19
%20 = getelementptr inbounds i8, ptr %19, i64 8
br label %24
21: ; preds = %3
%22 = load i32, ptr @SAS_PHY_DISABLED, align 4, !tbaa !16
store i32 %22, ptr %9, align 4, !tbaa !17
%23 = load ptr, ptr %0, align 8, !tbaa !19
br label %24
24: ; preds = %21, %18
%25 = phi ptr [ %23, %21 ], [ %20, %18 ]
%26 = load ptr, ptr %25, align 8, !tbaa !20
%27 = tail call i32 %26(ptr noundef nonnull %0, i32 noundef %1) #2
store i32 %2, ptr %7, align 8, !tbaa !13
%28 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %10, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"hisi_hba", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"asd_sas_phy", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"hisi_sas_phy", !15, i64 0, !15, i64 4, !12, i64 8}
!15 = !{!"int", !9, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!18, !15, i64 0}
!18 = !{!"sas_phy", !15, i64 0}
!19 = !{!7, !8, i64 0}
!20 = !{!8, !8, i64 0}
| linux_drivers_scsi_hisi_sas_extr_hisi_sas_main.c_hisi_sas_phy_enable |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/mpt3sas/extr_mpt3sas_config.c_mpt3sas_config_get_raid_volume_pg1.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/mpt3sas/extr_mpt3sas_config.c_mpt3sas_config_get_raid_volume_pg1.c"
target datalayout = "e-m:e-p270:32:32-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, i32, %struct.TYPE_5__, i32 }
%struct.TYPE_5__ = type { i32, i32, i32 }
@MPI2_FUNCTION_CONFIG = dso_local local_unnamed_addr global i32 0, align 4
@MPI2_CONFIG_ACTION_PAGE_HEADER = dso_local local_unnamed_addr global i32 0, align 4
@MPI2_CONFIG_PAGETYPE_RAID_VOLUME = dso_local local_unnamed_addr global i32 0, align 4
@MPI2_RAIDVOLPAGE1_PAGEVERSION = dso_local local_unnamed_addr global i32 0, align 4
@MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT = dso_local local_unnamed_addr global i32 0, align 4
@MPI2_CONFIG_ACTION_PAGE_READ_CURRENT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @mpt3sas_config_get_raid_volume_pg1(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = alloca %struct.TYPE_6__, align 4
call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %6) #3
%7 = call i32 @memset(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 28) #3
%8 = load i32, ptr @MPI2_FUNCTION_CONFIG, align 4, !tbaa !5
%9 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 4
store i32 %8, ptr %9, align 4, !tbaa !9
%10 = load i32, ptr @MPI2_CONFIG_ACTION_PAGE_HEADER, align 4, !tbaa !5
store i32 %10, ptr %6, align 4, !tbaa !12
%11 = load i32, ptr @MPI2_CONFIG_PAGETYPE_RAID_VOLUME, align 4, !tbaa !5
%12 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 3
%13 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 3, i32 2
store i32 %11, ptr %13, align 4, !tbaa !13
store i32 1, ptr %12, align 4, !tbaa !14
%14 = load i32, ptr @MPI2_RAIDVOLPAGE1_PAGEVERSION, align 4, !tbaa !5
%15 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 3, i32 1
store i32 %14, ptr %15, align 4, !tbaa !15
%16 = load ptr, ptr %0, align 8, !tbaa !16
%17 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 2
%18 = call i32 %16(ptr noundef nonnull %0, ptr noundef nonnull %17) #3
%19 = load i32, ptr @MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT, align 4, !tbaa !5
%20 = call i32 @_config_request(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %1, i32 noundef %19, ptr noundef null, i32 noundef 0) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %5
%23 = or i32 %4, %3
%24 = call i32 @cpu_to_le32(i32 noundef %23) #3
%25 = getelementptr inbounds %struct.TYPE_6__, ptr %6, i64 0, i32 1
store i32 %24, ptr %25, align 4, !tbaa !19
%26 = load i32, ptr @MPI2_CONFIG_ACTION_PAGE_READ_CURRENT, align 4, !tbaa !5
store i32 %26, ptr %6, align 4, !tbaa !12
%27 = load i32, ptr @MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT, align 4, !tbaa !5
%28 = call i32 @_config_request(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %1, i32 noundef %27, ptr noundef %2, i32 noundef 4) #3
br label %29
29: ; preds = %5, %22
%30 = phi i32 [ %20, %5 ], [ %28, %22 ]
call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %6) #3
ret i32 %30
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @_config_request(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cpu_to_le32(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"TYPE_6__", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 12, !6, i64 24}
!11 = !{!"TYPE_5__", !6, i64 0, !6, i64 4, !6, i64 8}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !6, i64 20}
!14 = !{!10, !6, i64 12}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !18, i64 0}
!17 = !{!"MPT3SAS_ADAPTER", !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/mpt3sas/extr_mpt3sas_config.c_mpt3sas_config_get_raid_volume_pg1.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/mpt3sas/extr_mpt3sas_config.c_mpt3sas_config_get_raid_volume_pg1.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, i32, %struct.TYPE_5__, i32 }
%struct.TYPE_5__ = type { i32, i32, i32 }
@MPI2_FUNCTION_CONFIG = common local_unnamed_addr global i32 0, align 4
@MPI2_CONFIG_ACTION_PAGE_HEADER = common local_unnamed_addr global i32 0, align 4
@MPI2_CONFIG_PAGETYPE_RAID_VOLUME = common local_unnamed_addr global i32 0, align 4
@MPI2_RAIDVOLPAGE1_PAGEVERSION = common local_unnamed_addr global i32 0, align 4
@MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT = common local_unnamed_addr global i32 0, align 4
@MPI2_CONFIG_ACTION_PAGE_READ_CURRENT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @mpt3sas_config_get_raid_volume_pg1(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = alloca %struct.TYPE_6__, align 4
call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %6) #3
%7 = call i32 @memset(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 28) #3
%8 = load i32, ptr @MPI2_FUNCTION_CONFIG, align 4, !tbaa !6
%9 = getelementptr inbounds i8, ptr %6, i64 24
store i32 %8, ptr %9, align 4, !tbaa !10
%10 = load i32, ptr @MPI2_CONFIG_ACTION_PAGE_HEADER, align 4, !tbaa !6
store i32 %10, ptr %6, align 4, !tbaa !13
%11 = load i32, ptr @MPI2_CONFIG_PAGETYPE_RAID_VOLUME, align 4, !tbaa !6
%12 = getelementptr inbounds i8, ptr %6, i64 12
%13 = getelementptr inbounds i8, ptr %6, i64 20
store i32 %11, ptr %13, align 4, !tbaa !14
store i32 1, ptr %12, align 4, !tbaa !15
%14 = load i32, ptr @MPI2_RAIDVOLPAGE1_PAGEVERSION, align 4, !tbaa !6
%15 = getelementptr inbounds i8, ptr %6, i64 16
store i32 %14, ptr %15, align 4, !tbaa !16
%16 = load ptr, ptr %0, align 8, !tbaa !17
%17 = getelementptr inbounds i8, ptr %6, i64 8
%18 = call i32 %16(ptr noundef nonnull %0, ptr noundef nonnull %17) #3
%19 = load i32, ptr @MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT, align 4, !tbaa !6
%20 = call i32 @_config_request(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %1, i32 noundef %19, ptr noundef null, i32 noundef 0) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %5
%23 = or i32 %4, %3
%24 = call i32 @cpu_to_le32(i32 noundef %23) #3
%25 = getelementptr inbounds i8, ptr %6, i64 4
store i32 %24, ptr %25, align 4, !tbaa !20
%26 = load i32, ptr @MPI2_CONFIG_ACTION_PAGE_READ_CURRENT, align 4, !tbaa !6
store i32 %26, ptr %6, align 4, !tbaa !13
%27 = load i32, ptr @MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT, align 4, !tbaa !6
%28 = call i32 @_config_request(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %1, i32 noundef %27, ptr noundef %2, i32 noundef 4) #3
br label %29
29: ; preds = %5, %22
%30 = phi i32 [ %20, %5 ], [ %28, %22 ]
call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %6) #3
ret i32 %30
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @_config_request(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cpu_to_le32(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 24}
!11 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !7, i64 8, !12, i64 12, !7, i64 24}
!12 = !{!"TYPE_5__", !7, i64 0, !7, i64 4, !7, i64 8}
!13 = !{!11, !7, i64 0}
!14 = !{!11, !7, i64 20}
!15 = !{!11, !7, i64 12}
!16 = !{!11, !7, i64 16}
!17 = !{!18, !19, i64 0}
!18 = !{!"MPT3SAS_ADAPTER", !19, i64 0}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!11, !7, i64 4}
| fastsocket_kernel_drivers_scsi_mpt3sas_extr_mpt3sas_config.c_mpt3sas_config_get_raid_volume_pg1 |
; ModuleID = 'AnghaBench/linux/drivers/edac/extr_amd64_edac.c_get_error_address.c'
source_filename = "AnghaBench/linux/drivers/edac/extr_amd64_edac.c_get_error_address.c"
target datalayout = "e-m:e-p270:32:32-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.mce = type { i32, i32 }
@DRAM_LOCAL_NODE_LIM = dso_local local_unnamed_addr global i32 0, align 4
@DRAM_LOCAL_NODE_BASE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_error_address], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @get_error_address(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = getelementptr inbounds %struct.mce, ptr %1, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = tail call i32 @amd_get_nb_id(i32 noundef %4) #2
%6 = tail call ptr @edac_mc_find(i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %21, label %8
8: ; preds = %2
%9 = load ptr, ptr %6, align 8, !tbaa !10
%10 = load i32, ptr %9, align 4, !tbaa !13
%11 = icmp eq i32 %10, 15
%12 = select i1 %11, i32 39, i32 47
%13 = select i1 %11, i32 3, i32 1
%14 = load i32, ptr %1, align 4, !tbaa !15
%15 = tail call i32 @GENMASK_ULL(i32 noundef %12, i32 noundef %13) #2
%16 = and i32 %15, %14
%17 = load i32, ptr %9, align 4, !tbaa !13
%18 = icmp eq i32 %17, 21
br i1 %18, label %19, label %21
19: ; preds = %8
%20 = tail call i32 @GENMASK_ULL(i32 noundef 47, i32 noundef 24) #2
br label %21
21: ; preds = %8, %2, %19
%22 = phi i32 [ %16, %19 ], [ 0, %2 ], [ %16, %8 ]
ret i32 %22
}
declare i32 @amd_get_nb_id(i32 noundef) local_unnamed_addr #1
declare ptr @edac_mc_find(i32 noundef) local_unnamed_addr #1
declare i32 @GENMASK_ULL(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 4}
!6 = !{!"mce", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"mem_ctl_info", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"amd64_pvt", !7, i64 0, !7, i64 4}
!15 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/edac/extr_amd64_edac.c_get_error_address.c'
source_filename = "AnghaBench/linux/drivers/edac/extr_amd64_edac.c_get_error_address.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DRAM_LOCAL_NODE_LIM = common local_unnamed_addr global i32 0, align 4
@DRAM_LOCAL_NODE_BASE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @get_error_address], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @get_error_address(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = tail call i32 @amd_get_nb_id(i32 noundef %4) #2
%6 = tail call ptr @edac_mc_find(i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %21, label %8
8: ; preds = %2
%9 = load ptr, ptr %6, align 8, !tbaa !11
%10 = load i32, ptr %9, align 4, !tbaa !14
%11 = icmp eq i32 %10, 15
%12 = select i1 %11, i32 39, i32 47
%13 = select i1 %11, i32 3, i32 1
%14 = load i32, ptr %1, align 4, !tbaa !16
%15 = tail call i32 @GENMASK_ULL(i32 noundef %12, i32 noundef %13) #2
%16 = and i32 %15, %14
%17 = load i32, ptr %9, align 4, !tbaa !14
%18 = icmp eq i32 %17, 21
br i1 %18, label %19, label %21
19: ; preds = %8
%20 = tail call i32 @GENMASK_ULL(i32 noundef 47, i32 noundef 24) #2
br label %21
21: ; preds = %8, %2, %19
%22 = phi i32 [ %16, %19 ], [ 0, %2 ], [ %16, %8 ]
ret i32 %22
}
declare i32 @amd_get_nb_id(i32 noundef) local_unnamed_addr #1
declare ptr @edac_mc_find(i32 noundef) local_unnamed_addr #1
declare i32 @GENMASK_ULL(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 4}
!7 = !{!"mce", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"mem_ctl_info", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"amd64_pvt", !8, i64 0, !8, i64 4}
!16 = !{!7, !8, i64 0}
| linux_drivers_edac_extr_amd64_edac.c_get_error_address |
; ModuleID = 'AnghaBench/linux/drivers/tty/hvc/extr_hvc_iucv.c_alloc_tty_buffer.c'
source_filename = "AnghaBench/linux/drivers/tty/hvc/extr_hvc_iucv.c_alloc_tty_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.iucv_tty_buffer = type { ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.TYPE_4__ = type { i64, i32, i32 }
@hvc_iucv_mempool = dso_local local_unnamed_addr global i32 0, align 4
@GFP_DMA = dso_local local_unnamed_addr global i32 0, align 4
@MSG_VERSION = dso_local local_unnamed_addr global i32 0, align 4
@MSG_TYPE_DATA = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @alloc_tty_buffer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @alloc_tty_buffer(i64 noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @hvc_iucv_mempool, align 4, !tbaa !5
%4 = tail call ptr @mempool_alloc(i32 noundef %3, i32 noundef %1) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %24, label %6
6: ; preds = %2
%7 = tail call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 16) #2
%8 = icmp eq i64 %0, 0
br i1 %8, label %24, label %9
9: ; preds = %6
%10 = tail call i32 @MSG_SIZE(i64 noundef %0) #2
%11 = getelementptr inbounds %struct.iucv_tty_buffer, ptr %4, i64 0, i32 1
store i32 %10, ptr %11, align 8, !tbaa !9
%12 = load i32, ptr @GFP_DMA, align 4, !tbaa !5
%13 = or i32 %12, %1
%14 = tail call ptr @kmalloc(i32 noundef %10, i32 noundef %13) #2
store ptr %14, ptr %4, align 8, !tbaa !13
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %9
%17 = load i32, ptr @hvc_iucv_mempool, align 4, !tbaa !5
%18 = tail call i32 @mempool_free(ptr noundef nonnull %4, i32 noundef %17) #2
br label %24
19: ; preds = %9
%20 = load i32, ptr @MSG_VERSION, align 4, !tbaa !5
%21 = getelementptr inbounds %struct.TYPE_4__, ptr %14, i64 0, i32 2
store i32 %20, ptr %21, align 4, !tbaa !14
%22 = load i32, ptr @MSG_TYPE_DATA, align 4, !tbaa !5
%23 = getelementptr inbounds %struct.TYPE_4__, ptr %14, i64 0, i32 1
store i32 %22, ptr %23, align 8, !tbaa !17
store i64 %0, ptr %14, align 8, !tbaa !18
br label %24
24: ; preds = %6, %19, %2, %16
%25 = phi ptr [ null, %16 ], [ null, %2 ], [ %4, %19 ], [ %4, %6 ]
ret ptr %25
}
declare ptr @mempool_alloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MSG_SIZE(i64 noundef) local_unnamed_addr #1
declare ptr @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mempool_free(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"iucv_tty_buffer", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !6, i64 12}
!15 = !{!"TYPE_4__", !16, i64 0, !6, i64 8, !6, i64 12}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !6, i64 8}
!18 = !{!15, !16, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/tty/hvc/extr_hvc_iucv.c_alloc_tty_buffer.c'
source_filename = "AnghaBench/linux/drivers/tty/hvc/extr_hvc_iucv.c_alloc_tty_buffer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@hvc_iucv_mempool = common local_unnamed_addr global i32 0, align 4
@GFP_DMA = common local_unnamed_addr global i32 0, align 4
@MSG_VERSION = common local_unnamed_addr global i32 0, align 4
@MSG_TYPE_DATA = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @alloc_tty_buffer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @alloc_tty_buffer(i64 noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @hvc_iucv_mempool, align 4, !tbaa !6
%4 = tail call ptr @mempool_alloc(i32 noundef %3, i32 noundef %1) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %24, label %6
6: ; preds = %2
%7 = tail call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 16) #2
%8 = icmp eq i64 %0, 0
br i1 %8, label %24, label %9
9: ; preds = %6
%10 = tail call i32 @MSG_SIZE(i64 noundef %0) #2
%11 = getelementptr inbounds i8, ptr %4, i64 8
store i32 %10, ptr %11, align 8, !tbaa !10
%12 = load i32, ptr @GFP_DMA, align 4, !tbaa !6
%13 = or i32 %12, %1
%14 = tail call ptr @kmalloc(i32 noundef %10, i32 noundef %13) #2
store ptr %14, ptr %4, align 8, !tbaa !14
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %9
%17 = load i32, ptr @hvc_iucv_mempool, align 4, !tbaa !6
%18 = tail call i32 @mempool_free(ptr noundef nonnull %4, i32 noundef %17) #2
br label %24
19: ; preds = %9
%20 = load i32, ptr @MSG_VERSION, align 4, !tbaa !6
%21 = getelementptr inbounds i8, ptr %14, i64 12
store i32 %20, ptr %21, align 4, !tbaa !15
%22 = load i32, ptr @MSG_TYPE_DATA, align 4, !tbaa !6
%23 = getelementptr inbounds i8, ptr %14, i64 8
store i32 %22, ptr %23, align 8, !tbaa !18
store i64 %0, ptr %14, align 8, !tbaa !19
br label %24
24: ; preds = %6, %19, %2, %16
%25 = phi ptr [ null, %16 ], [ null, %2 ], [ %4, %19 ], [ %4, %6 ]
ret ptr %25
}
declare ptr @mempool_alloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @MSG_SIZE(i64 noundef) local_unnamed_addr #1
declare ptr @kmalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mempool_free(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"iucv_tty_buffer", !12, i64 0, !13, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!16, !7, i64 12}
!16 = !{!"TYPE_4__", !17, i64 0, !7, i64 8, !7, i64 12}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !7, i64 8}
!19 = !{!16, !17, i64 0}
| linux_drivers_tty_hvc_extr_hvc_iucv.c_alloc_tty_buffer |
; ModuleID = 'AnghaBench/libgit2/tests/object/raw/extr_chars.c_test_object_raw_chars__build_valid_oid_from_raw_bytes.c'
source_filename = "AnghaBench/libgit2/tests/object/raw/extr_chars.c_test_object_raw_chars__build_valid_oid_from_raw_bytes.c"
target datalayout = "e-m:e-p270:32:32-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 }
@__const.test_object_raw_chars__build_valid_oid_from_raw_bytes.exp = private unnamed_addr constant [20 x i8] c"\16\A6wp\B7\D8\D7#\17\C4\B7u!<#\A8\BDt\F5\E0", align 16
; Function Attrs: nounwind uwtable
define dso_local void @test_object_raw_chars__build_valid_oid_from_raw_bytes() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_3__, align 4
%2 = alloca [20 x i8], align 16
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #4
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %2, ptr noundef nonnull align 16 dereferenceable(20) @__const.test_object_raw_chars__build_valid_oid_from_raw_bytes.exp, i64 20, i1 false)
%3 = call i32 @git_oid_fromraw(ptr noundef nonnull %1, ptr noundef nonnull %2) #4
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = call i32 @memcmp(i32 noundef %4, ptr noundef nonnull %2, i32 noundef 4) #4
%6 = call i32 @cl_git_pass(i32 noundef %5) #4
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @git_oid_fromraw(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @cl_git_pass(i32 noundef) local_unnamed_addr #3
declare i32 @memcmp(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libgit2/tests/object/raw/extr_chars.c_test_object_raw_chars__build_valid_oid_from_raw_bytes.c'
source_filename = "AnghaBench/libgit2/tests/object/raw/extr_chars.c_test_object_raw_chars__build_valid_oid_from_raw_bytes.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 }
@__const.test_object_raw_chars__build_valid_oid_from_raw_bytes.exp = private unnamed_addr constant [20 x i8] c"\16\A6wp\B7\D8\D7#\17\C4\B7u!<#\A8\BDt\F5\E0", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_object_raw_chars__build_valid_oid_from_raw_bytes() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_3__, align 4
%2 = alloca [20 x i8], align 1
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #4
call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(20) %2, ptr noundef nonnull align 1 dereferenceable(20) @__const.test_object_raw_chars__build_valid_oid_from_raw_bytes.exp, i64 20, i1 false)
%3 = call i32 @git_oid_fromraw(ptr noundef nonnull %1, ptr noundef nonnull %2) #4
%4 = load i32, ptr %1, align 4, !tbaa !6
%5 = call i32 @memcmp(i32 noundef %4, ptr noundef nonnull %2, i32 noundef 4) #4
%6 = call i32 @cl_git_pass(i32 noundef %5) #4
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @git_oid_fromraw(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @cl_git_pass(i32 noundef) local_unnamed_addr #3
declare i32 @memcmp(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| libgit2_tests_object_raw_extr_chars.c_test_object_raw_chars__build_valid_oid_from_raw_bytes |
; ModuleID = 'AnghaBench/linux/net/iucv/extr_af_iucv.c_iucv_sock_listen.c'
source_filename = "AnghaBench/linux/net/iucv/extr_af_iucv.c_iucv_sock_listen.c"
target datalayout = "e-m:e-p270:32:32-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.socket = type { i64, ptr }
%struct.sock = type { i64, i32, i64 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@IUCV_BOUND = dso_local local_unnamed_addr global i64 0, align 8
@SOCK_STREAM = dso_local local_unnamed_addr global i64 0, align 8
@SOCK_SEQPACKET = dso_local local_unnamed_addr global i64 0, align 8
@IUCV_LISTEN = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @iucv_sock_listen], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @iucv_sock_listen(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.socket, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @lock_sock(ptr noundef %4) #2
%6 = load i32, ptr @EINVAL, align 4, !tbaa !11
%7 = sub nsw i32 0, %6
%8 = load i64, ptr %4, align 8, !tbaa !13
%9 = load i64, ptr @IUCV_BOUND, align 8, !tbaa !15
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %2
%12 = load i64, ptr %0, align 8, !tbaa !16
%13 = load i64, ptr @SOCK_STREAM, align 8, !tbaa !15
%14 = icmp eq i64 %12, %13
%15 = load i64, ptr @SOCK_SEQPACKET, align 8
%16 = icmp eq i64 %12, %15
%17 = select i1 %14, i1 true, i1 %16
br i1 %17, label %18, label %22
18: ; preds = %11
%19 = getelementptr inbounds %struct.sock, ptr %4, i64 0, i32 1
store i32 %1, ptr %19, align 8, !tbaa !17
%20 = getelementptr inbounds %struct.sock, ptr %4, i64 0, i32 2
store i64 0, ptr %20, align 8, !tbaa !18
%21 = load i64, ptr @IUCV_LISTEN, align 8, !tbaa !15
store i64 %21, ptr %4, align 8, !tbaa !13
br label %22
22: ; preds = %11, %2, %18
%23 = phi i32 [ %7, %2 ], [ 0, %18 ], [ %7, %11 ]
%24 = tail call i32 @release_sock(ptr noundef nonnull %4) #2
ret i32 %23
}
declare i32 @lock_sock(ptr noundef) local_unnamed_addr #1
declare i32 @release_sock(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 = !{!"socket", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"sock", !7, i64 0, !12, i64 8, !7, i64 16}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 0}
!17 = !{!14, !12, i64 8}
!18 = !{!14, !7, i64 16}
| ; ModuleID = 'AnghaBench/linux/net/iucv/extr_af_iucv.c_iucv_sock_listen.c'
source_filename = "AnghaBench/linux/net/iucv/extr_af_iucv.c_iucv_sock_listen.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
@IUCV_BOUND = common local_unnamed_addr global i64 0, align 8
@SOCK_STREAM = common local_unnamed_addr global i64 0, align 8
@SOCK_SEQPACKET = common local_unnamed_addr global i64 0, align 8
@IUCV_LISTEN = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @iucv_sock_listen], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @iucv_sock_listen(ptr nocapture noundef readonly %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 @lock_sock(ptr noundef %4) #2
%6 = load i32, ptr @EINVAL, align 4, !tbaa !12
%7 = sub nsw i32 0, %6
%8 = load i64, ptr %4, align 8, !tbaa !14
%9 = load i64, ptr @IUCV_BOUND, align 8, !tbaa !16
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %2
%12 = load i64, ptr %0, align 8, !tbaa !17
%13 = load i64, ptr @SOCK_STREAM, align 8, !tbaa !16
%14 = icmp eq i64 %12, %13
%15 = load i64, ptr @SOCK_SEQPACKET, align 8
%16 = icmp eq i64 %12, %15
%17 = select i1 %14, i1 true, i1 %16
br i1 %17, label %18, label %22
18: ; preds = %11
%19 = getelementptr inbounds i8, ptr %4, i64 8
store i32 %1, ptr %19, align 8, !tbaa !18
%20 = getelementptr inbounds i8, ptr %4, i64 16
store i64 0, ptr %20, align 8, !tbaa !19
%21 = load i64, ptr @IUCV_LISTEN, align 8, !tbaa !16
store i64 %21, ptr %4, align 8, !tbaa !14
br label %22
22: ; preds = %11, %2, %18
%23 = phi i32 [ %7, %2 ], [ 0, %18 ], [ %7, %11 ]
%24 = tail call i32 @release_sock(ptr noundef nonnull %4) #2
ret i32 %23
}
declare i32 @lock_sock(ptr noundef) local_unnamed_addr #1
declare i32 @release_sock(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 = !{!"socket", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"sock", !8, i64 0, !13, i64 8, !8, i64 16}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !8, i64 0}
!18 = !{!15, !13, i64 8}
!19 = !{!15, !8, i64 16}
| linux_net_iucv_extr_af_iucv.c_iucv_sock_listen |
; ModuleID = 'AnghaBench/libgit2/src/extr_refdb_fs.c_maybe_append_head.c'
source_filename = "AnghaBench/libgit2/src/extr_refdb_fs.c_maybe_append_head.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_14__ = type { i64, i32 }
@GIT_REFERENCE_SYMBOLIC = dso_local local_unnamed_addr global i64 0, align 8
@GIT_HEAD_FILE = dso_local local_unnamed_addr global ptr null, align 8
@GIT_REFERENCE_DIRECT = dso_local local_unnamed_addr global i64 0, align 8
@GIT_ENOTFOUND = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @maybe_append_head], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @maybe_append_head(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
store ptr null, ptr %6, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
store ptr null, ptr %7, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
store ptr null, ptr %8, align 8, !tbaa !5
%9 = load i64, ptr %1, align 8, !tbaa !9
%10 = load i64, ptr @GIT_REFERENCE_SYMBOLIC, align 8, !tbaa !13
%11 = icmp eq i64 %9, %10
br i1 %11, label %81, label %12
12: ; preds = %4
%13 = load i32, ptr %0, align 4, !tbaa !14
%14 = getelementptr inbounds %struct.TYPE_14__, ptr %1, i64 0, i32 1
%15 = load i32, ptr %14, align 8, !tbaa !16
%16 = call i64 @git_reference_name_to_id(ptr noundef nonnull %5, i32 noundef %13, i32 noundef %15) #3
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 4) #3
br label %20
20: ; preds = %18, %12
%21 = load i32, ptr %0, align 4, !tbaa !14
%22 = load ptr, ptr @GIT_HEAD_FILE, align 8, !tbaa !5
%23 = call i32 @git_reference_lookup(ptr noundef nonnull %7, i32 noundef %21, ptr noundef %22) #3
%24 = icmp slt i32 %23, 0
br i1 %24, label %81, label %25
25: ; preds = %20
%26 = load ptr, ptr %7, align 8, !tbaa !5
%27 = call i64 @git_reference_type(ptr noundef %26) #3
%28 = load i64, ptr @GIT_REFERENCE_DIRECT, align 8, !tbaa !13
%29 = icmp eq i64 %27, %28
br i1 %29, label %75, label %30
30: ; preds = %25
%31 = load i32, ptr %0, align 4, !tbaa !14
%32 = load ptr, ptr @GIT_HEAD_FILE, align 8, !tbaa !5
%33 = call i32 @git_reference_lookup(ptr noundef nonnull %6, i32 noundef %31, ptr noundef %32) #3
%34 = icmp slt i32 %33, 0
br i1 %34, label %75, label %35
35: ; preds = %30
%36 = load ptr, ptr %6, align 8, !tbaa !5
%37 = call i64 @git_reference_type(ptr noundef %36) #3
%38 = load i64, ptr @GIT_REFERENCE_SYMBOLIC, align 8, !tbaa !13
%39 = icmp eq i64 %37, %38
br i1 %39, label %40, label %53
40: ; preds = %35, %46
%41 = load i32, ptr %0, align 4, !tbaa !14
%42 = load ptr, ptr %6, align 8, !tbaa !5
%43 = call ptr @git_reference_symbolic_target(ptr noundef %42) #3
%44 = call i32 @git_reference_lookup(ptr noundef nonnull %8, i32 noundef %41, ptr noundef %43) #3
%45 = icmp slt i32 %44, 0
br i1 %45, label %53, label %46
46: ; preds = %40
%47 = load ptr, ptr %6, align 8, !tbaa !5
%48 = call i32 @git_reference_free(ptr noundef %47) #3
%49 = load ptr, ptr %8, align 8, !tbaa !5
store ptr %49, ptr %6, align 8, !tbaa !5
%50 = call i64 @git_reference_type(ptr noundef %49) #3
%51 = load i64, ptr @GIT_REFERENCE_SYMBOLIC, align 8, !tbaa !13
%52 = icmp eq i64 %50, %51
br i1 %52, label %40, label %53, !llvm.loop !17
53: ; preds = %46, %40, %35
%54 = phi i32 [ %33, %35 ], [ %44, %40 ], [ %44, %46 ]
%55 = load i32, ptr @GIT_ENOTFOUND, align 4, !tbaa !19
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = load ptr, ptr %6, align 8, !tbaa !5
%59 = call ptr @git_reference_symbolic_target(ptr noundef %58) #3
br label %65
60: ; preds = %53
%61 = icmp slt i32 %54, 0
br i1 %61, label %75, label %62
62: ; preds = %60
%63 = load ptr, ptr %6, align 8, !tbaa !5
%64 = call ptr @git_reference_name(ptr noundef %63) #3
br label %65
65: ; preds = %62, %57
%66 = phi i32 [ 0, %57 ], [ %54, %62 ]
%67 = phi ptr [ %59, %57 ], [ %64, %62 ]
%68 = load i32, ptr %14, align 8, !tbaa !16
%69 = call i64 @strcmp(ptr noundef %67, i32 noundef %68) #3
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %75
71: ; preds = %65
%72 = load ptr, ptr %7, align 8, !tbaa !5
%73 = call i32 @git_reference_target(ptr noundef nonnull %1) #3
%74 = call i32 @reflog_append(ptr noundef nonnull %0, ptr noundef %72, ptr noundef nonnull %5, i32 noundef %73, ptr noundef %2, ptr noundef %3) #3
br label %75
75: ; preds = %65, %60, %30, %25, %71
%76 = phi i32 [ %23, %25 ], [ %33, %30 ], [ %66, %65 ], [ %74, %71 ], [ %54, %60 ]
%77 = load ptr, ptr %6, align 8, !tbaa !5
%78 = call i32 @git_reference_free(ptr noundef %77) #3
%79 = load ptr, ptr %7, align 8, !tbaa !5
%80 = call i32 @git_reference_free(ptr noundef %79) #3
br label %81
81: ; preds = %20, %4, %75
%82 = phi i32 [ %76, %75 ], [ 0, %4 ], [ %23, %20 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %82
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @git_reference_name_to_id(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @git_reference_lookup(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @git_reference_type(ptr noundef) local_unnamed_addr #2
declare ptr @git_reference_symbolic_target(ptr noundef) local_unnamed_addr #2
declare i32 @git_reference_free(ptr noundef) local_unnamed_addr #2
declare ptr @git_reference_name(ptr noundef) local_unnamed_addr #2
declare i64 @strcmp(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @reflog_append(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_reference_target(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_14__", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"TYPE_13__", !12, i64 0}
!16 = !{!10, !12, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/libgit2/src/extr_refdb_fs.c_maybe_append_head.c'
source_filename = "AnghaBench/libgit2/src/extr_refdb_fs.c_maybe_append_head.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GIT_REFERENCE_SYMBOLIC = common local_unnamed_addr global i64 0, align 8
@GIT_HEAD_FILE = common local_unnamed_addr global ptr null, align 8
@GIT_REFERENCE_DIRECT = common local_unnamed_addr global i64 0, align 8
@GIT_ENOTFOUND = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @maybe_append_head], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @maybe_append_head(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
store ptr null, ptr %6, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
store ptr null, ptr %7, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
store ptr null, ptr %8, align 8, !tbaa !6
%9 = load i64, ptr %1, align 8, !tbaa !10
%10 = load i64, ptr @GIT_REFERENCE_SYMBOLIC, align 8, !tbaa !14
%11 = icmp eq i64 %9, %10
br i1 %11, label %81, label %12
12: ; preds = %4
%13 = load i32, ptr %0, align 4, !tbaa !15
%14 = getelementptr inbounds i8, ptr %1, i64 8
%15 = load i32, ptr %14, align 8, !tbaa !17
%16 = call i64 @git_reference_name_to_id(ptr noundef nonnull %5, i32 noundef %13, i32 noundef %15) #3
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 4) #3
br label %20
20: ; preds = %18, %12
%21 = load i32, ptr %0, align 4, !tbaa !15
%22 = load ptr, ptr @GIT_HEAD_FILE, align 8, !tbaa !6
%23 = call i32 @git_reference_lookup(ptr noundef nonnull %7, i32 noundef %21, ptr noundef %22) #3
%24 = icmp slt i32 %23, 0
br i1 %24, label %81, label %25
25: ; preds = %20
%26 = load ptr, ptr %7, align 8, !tbaa !6
%27 = call i64 @git_reference_type(ptr noundef %26) #3
%28 = load i64, ptr @GIT_REFERENCE_DIRECT, align 8, !tbaa !14
%29 = icmp eq i64 %27, %28
br i1 %29, label %75, label %30
30: ; preds = %25
%31 = load i32, ptr %0, align 4, !tbaa !15
%32 = load ptr, ptr @GIT_HEAD_FILE, align 8, !tbaa !6
%33 = call i32 @git_reference_lookup(ptr noundef nonnull %6, i32 noundef %31, ptr noundef %32) #3
%34 = icmp slt i32 %33, 0
br i1 %34, label %75, label %35
35: ; preds = %30
%36 = load ptr, ptr %6, align 8, !tbaa !6
%37 = call i64 @git_reference_type(ptr noundef %36) #3
%38 = load i64, ptr @GIT_REFERENCE_SYMBOLIC, align 8, !tbaa !14
%39 = icmp eq i64 %37, %38
br i1 %39, label %40, label %53
40: ; preds = %35, %46
%41 = load i32, ptr %0, align 4, !tbaa !15
%42 = load ptr, ptr %6, align 8, !tbaa !6
%43 = call ptr @git_reference_symbolic_target(ptr noundef %42) #3
%44 = call i32 @git_reference_lookup(ptr noundef nonnull %8, i32 noundef %41, ptr noundef %43) #3
%45 = icmp slt i32 %44, 0
br i1 %45, label %53, label %46
46: ; preds = %40
%47 = load ptr, ptr %6, align 8, !tbaa !6
%48 = call i32 @git_reference_free(ptr noundef %47) #3
%49 = load ptr, ptr %8, align 8, !tbaa !6
store ptr %49, ptr %6, align 8, !tbaa !6
%50 = call i64 @git_reference_type(ptr noundef %49) #3
%51 = load i64, ptr @GIT_REFERENCE_SYMBOLIC, align 8, !tbaa !14
%52 = icmp eq i64 %50, %51
br i1 %52, label %40, label %53, !llvm.loop !18
53: ; preds = %46, %40, %35
%54 = phi i32 [ %33, %35 ], [ %44, %40 ], [ %44, %46 ]
%55 = load i32, ptr @GIT_ENOTFOUND, align 4, !tbaa !20
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = load ptr, ptr %6, align 8, !tbaa !6
%59 = call ptr @git_reference_symbolic_target(ptr noundef %58) #3
br label %65
60: ; preds = %53
%61 = icmp slt i32 %54, 0
br i1 %61, label %75, label %62
62: ; preds = %60
%63 = load ptr, ptr %6, align 8, !tbaa !6
%64 = call ptr @git_reference_name(ptr noundef %63) #3
br label %65
65: ; preds = %62, %57
%66 = phi i32 [ 0, %57 ], [ %54, %62 ]
%67 = phi ptr [ %59, %57 ], [ %64, %62 ]
%68 = load i32, ptr %14, align 8, !tbaa !17
%69 = call i64 @strcmp(ptr noundef %67, i32 noundef %68) #3
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %75
71: ; preds = %65
%72 = load ptr, ptr %7, align 8, !tbaa !6
%73 = call i32 @git_reference_target(ptr noundef nonnull %1) #3
%74 = call i32 @reflog_append(ptr noundef nonnull %0, ptr noundef %72, ptr noundef nonnull %5, i32 noundef %73, ptr noundef %2, ptr noundef %3) #3
br label %75
75: ; preds = %65, %60, %30, %25, %71
%76 = phi i32 [ %23, %25 ], [ %33, %30 ], [ %66, %65 ], [ %74, %71 ], [ %54, %60 ]
%77 = load ptr, ptr %6, align 8, !tbaa !6
%78 = call i32 @git_reference_free(ptr noundef %77) #3
%79 = load ptr, ptr %7, align 8, !tbaa !6
%80 = call i32 @git_reference_free(ptr noundef %79) #3
br label %81
81: ; preds = %20, %4, %75
%82 = phi i32 [ %76, %75 ], [ 0, %4 ], [ %23, %20 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %82
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @git_reference_name_to_id(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @git_reference_lookup(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @git_reference_type(ptr noundef) local_unnamed_addr #2
declare ptr @git_reference_symbolic_target(ptr noundef) local_unnamed_addr #2
declare i32 @git_reference_free(ptr noundef) local_unnamed_addr #2
declare ptr @git_reference_name(ptr noundef) local_unnamed_addr #2
declare i64 @strcmp(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @reflog_append(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @git_reference_target(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_14__", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"TYPE_13__", !13, i64 0}
!17 = !{!11, !13, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!13, !13, i64 0}
| libgit2_src_extr_refdb_fs.c_maybe_append_head |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/usbip/extr_stub_rx.c_get_ep_from_epnum.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/usbip/extr_stub_rx.c_get_ep_from_epnum.c"
target datalayout = "e-m:e-p270:32:32-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.usb_device = type { ptr, %struct.usb_host_endpoint }
%struct.usb_host_endpoint = type { %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32 }
%struct.usb_host_config = type { ptr, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32 }
%struct.usb_host_interface = type { ptr, %struct.TYPE_7__ }
%struct.TYPE_7__ = type { i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_ep_from_epnum], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define internal ptr @get_ep_from_epnum(ptr noundef readonly %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = getelementptr inbounds %struct.usb_device, ptr %0, i64 0, i32 1
br label %52
6: ; preds = %2
%7 = load ptr, ptr %0, align 8, !tbaa !5
%8 = icmp eq ptr %7, null
br i1 %8, label %52, label %9
9: ; preds = %6
%10 = getelementptr inbounds %struct.usb_host_config, ptr %7, i64 0, i32 1
%11 = load i32, ptr %10, align 8, !tbaa !13
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %52
13: ; preds = %9
%14 = load ptr, ptr %7, align 8, !tbaa !16
%15 = zext nneg i32 %11 to i64
br label %16
16: ; preds = %13, %44
%17 = phi i64 [ 0, %13 ], [ %47, %44 ]
%18 = phi i32 [ 0, %13 ], [ %46, %44 ]
%19 = phi ptr [ null, %13 ], [ %45, %44 ]
%20 = getelementptr inbounds ptr, ptr %14, i64 %17
%21 = load ptr, ptr %20, align 8, !tbaa !17
%22 = load ptr, ptr %21, align 8, !tbaa !18
%23 = getelementptr inbounds %struct.usb_host_interface, ptr %22, i64 0, i32 1
%24 = load i32, ptr %23, align 8, !tbaa !20
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %44
26: ; preds = %16
%27 = load ptr, ptr %22, align 8, !tbaa !23
%28 = add nsw i32 %24, -1
%29 = zext nneg i32 %28 to i64
%30 = shl nuw nsw i64 %29, 2
%31 = getelementptr i8, ptr %27, i64 %30
%32 = zext nneg i32 %24 to i64
br label %36
33: ; preds = %36
%34 = add nuw nsw i64 %37, 1
%35 = icmp eq i64 %34, %32
br i1 %35, label %44, label %36, !llvm.loop !24
36: ; preds = %26, %33
%37 = phi i64 [ 0, %26 ], [ %34, %33 ]
%38 = getelementptr inbounds %struct.usb_host_endpoint, ptr %27, i64 %37
%39 = load i32, ptr %38, align 4, !tbaa !26
%40 = and i32 %39, 127
%41 = icmp eq i32 %40, %1
br i1 %41, label %42, label %33
42: ; preds = %36
%43 = getelementptr inbounds %struct.usb_host_endpoint, ptr %27, i64 %37
br label %44
44: ; preds = %33, %42, %16
%45 = phi ptr [ %19, %16 ], [ %43, %42 ], [ %31, %33 ]
%46 = phi i32 [ %18, %16 ], [ 1, %42 ], [ %18, %33 ]
%47 = add nuw nsw i64 %17, 1
%48 = icmp eq i64 %47, %15
br i1 %48, label %49, label %16, !llvm.loop !27
49: ; preds = %44
%50 = icmp eq i32 %46, 0
%51 = select i1 %50, ptr null, ptr %45
br label %52
52: ; preds = %9, %49, %6, %4
%53 = phi ptr [ %5, %4 ], [ null, %6 ], [ null, %9 ], [ %51, %49 ]
ret ptr %53
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"usb_device", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"usb_host_endpoint", !11, i64 0}
!11 = !{!"TYPE_8__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"usb_host_config", !7, i64 0, !15, i64 8}
!15 = !{!"TYPE_5__", !12, i64 0}
!16 = !{!14, !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"TYPE_6__", !7, i64 0}
!20 = !{!21, !12, i64 8}
!21 = !{!"usb_host_interface", !7, i64 0, !22, i64 8}
!22 = !{!"TYPE_7__", !12, i64 0}
!23 = !{!21, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!10, !12, i64 0}
!27 = distinct !{!27, !25}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/usbip/extr_stub_rx.c_get_ep_from_epnum.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/usbip/extr_stub_rx.c_get_ep_from_epnum.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.usb_host_endpoint = type { %struct.TYPE_8__ }
%struct.TYPE_8__ = type { i32 }
@llvm.used = appending global [1 x ptr] [ptr @get_ep_from_epnum], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define internal ptr @get_ep_from_epnum(ptr noundef readonly %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = getelementptr inbounds i8, ptr %0, i64 8
br label %52
6: ; preds = %2
%7 = load ptr, ptr %0, align 8, !tbaa !6
%8 = icmp eq ptr %7, null
br i1 %8, label %52, label %9
9: ; preds = %6
%10 = getelementptr inbounds i8, ptr %7, i64 8
%11 = load i32, ptr %10, align 8, !tbaa !14
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %52
13: ; preds = %9
%14 = load ptr, ptr %7, align 8, !tbaa !17
%15 = zext nneg i32 %11 to i64
br label %16
16: ; preds = %13, %44
%17 = phi i64 [ 0, %13 ], [ %47, %44 ]
%18 = phi i32 [ 0, %13 ], [ %46, %44 ]
%19 = phi ptr [ null, %13 ], [ %45, %44 ]
%20 = getelementptr inbounds ptr, ptr %14, i64 %17
%21 = load ptr, ptr %20, align 8, !tbaa !18
%22 = load ptr, ptr %21, align 8, !tbaa !19
%23 = getelementptr inbounds i8, ptr %22, i64 8
%24 = load i32, ptr %23, align 8, !tbaa !21
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %44
26: ; preds = %16
%27 = load ptr, ptr %22, align 8, !tbaa !24
%28 = add nsw i32 %24, -1
%29 = zext nneg i32 %28 to i64
%30 = shl nuw nsw i64 %29, 2
%31 = getelementptr i8, ptr %27, i64 %30
%32 = zext nneg i32 %24 to i64
br label %36
33: ; preds = %36
%34 = add nuw nsw i64 %37, 1
%35 = icmp eq i64 %34, %32
br i1 %35, label %44, label %36, !llvm.loop !25
36: ; preds = %26, %33
%37 = phi i64 [ 0, %26 ], [ %34, %33 ]
%38 = getelementptr inbounds %struct.usb_host_endpoint, ptr %27, i64 %37
%39 = load i32, ptr %38, align 4, !tbaa !27
%40 = and i32 %39, 127
%41 = icmp eq i32 %40, %1
br i1 %41, label %42, label %33
42: ; preds = %36
%43 = getelementptr inbounds %struct.usb_host_endpoint, ptr %27, i64 %37
br label %44
44: ; preds = %42, %33, %16
%45 = phi ptr [ %19, %16 ], [ %43, %42 ], [ %31, %33 ]
%46 = phi i32 [ %18, %16 ], [ 1, %42 ], [ %18, %33 ]
%47 = add nuw nsw i64 %17, 1
%48 = icmp eq i64 %47, %15
br i1 %48, label %49, label %16, !llvm.loop !28
49: ; preds = %44
%50 = icmp eq i32 %46, 0
%51 = select i1 %50, ptr null, ptr %45
br label %52
52: ; preds = %9, %49, %6, %4
%53 = phi ptr [ %5, %4 ], [ null, %6 ], [ null, %9 ], [ %51, %49 ]
ret ptr %53
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"usb_device", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"usb_host_endpoint", !12, i64 0}
!12 = !{!"TYPE_8__", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"usb_host_config", !8, i64 0, !16, i64 8}
!16 = !{!"TYPE_5__", !13, i64 0}
!17 = !{!15, !8, i64 0}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !8, i64 0}
!20 = !{!"TYPE_6__", !8, i64 0}
!21 = !{!22, !13, i64 8}
!22 = !{!"usb_host_interface", !8, i64 0, !23, i64 8}
!23 = !{!"TYPE_7__", !13, i64 0}
!24 = !{!22, !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!11, !13, i64 0}
!28 = distinct !{!28, !26}
| fastsocket_kernel_drivers_staging_usbip_extr_stub_rx.c_get_ep_from_epnum |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_sb_audio.c_sbpro_audio_set_speed.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_sb_audio.c_sbpro_audio_set_speed.c"
target datalayout = "e-m:e-p270:32:32-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 }
@audio_devs = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @sbpro_audio_set_speed], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sbpro_audio_set_speed(i32 noundef %0, i32 noundef %1) #0 {
%3 = load ptr, ptr @audio_devs, align 8, !tbaa !5
%4 = sext i32 %0 to i64
%5 = getelementptr inbounds ptr, ptr %3, i64 %4
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = load ptr, ptr %6, align 8, !tbaa !9
%8 = icmp sgt i32 %1, 0
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = tail call i32 @llvm.smax.i32(i32 %1, i32 4000)
%11 = tail call i32 @llvm.umin.i32(i32 %10, i32 44100)
%12 = load i32, ptr %7, align 4, !tbaa !11
%13 = icmp sgt i32 %12, 1
%14 = icmp ugt i32 %1, 22050
%15 = and i1 %14, %13
%16 = select i1 %15, i32 22050, i32 %11
%17 = tail call i32 @sb201_audio_set_speed(i32 noundef %0, i32 noundef %16) #3
br label %18
18: ; preds = %9, %2
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 0, i32 1
%20 = load i32, ptr %19, align 4, !tbaa !14
ret i32 %20
}
declare i32 @sb201_audio_set_speed(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_4__", !6, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_3__", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_sb_audio.c_sbpro_audio_set_speed.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_sb_audio.c_sbpro_audio_set_speed.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@audio_devs = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @sbpro_audio_set_speed], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @sbpro_audio_set_speed(i32 noundef %0, i32 noundef %1) #0 {
%3 = load ptr, ptr @audio_devs, align 8, !tbaa !6
%4 = sext i32 %0 to i64
%5 = getelementptr inbounds ptr, ptr %3, i64 %4
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = load ptr, ptr %6, align 8, !tbaa !10
%8 = icmp sgt i32 %1, 0
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = tail call i32 @llvm.umax.i32(i32 %1, i32 4000)
%11 = tail call i32 @llvm.umin.i32(i32 %10, i32 44100)
%12 = load i32, ptr %7, align 4, !tbaa !12
%13 = icmp sgt i32 %12, 1
%14 = icmp ugt i32 %1, 22050
%15 = and i1 %14, %13
%16 = select i1 %15, i32 22050, i32 %11
%17 = tail call i32 @sb201_audio_set_speed(i32 noundef %0, i32 noundef %16) #3
br label %18
18: ; preds = %9, %2
%19 = getelementptr inbounds i8, ptr %7, i64 4
%20 = load i32, ptr %19, align 4, !tbaa !15
ret i32 %20
}
declare i32 @sb201_audio_set_speed(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0, !14, i64 4}
!14 = !{!"int", !8, i64 0}
!15 = !{!13, !14, i64 4}
| fastsocket_kernel_sound_oss_extr_sb_audio.c_sbpro_audio_set_speed |
; ModuleID = 'AnghaBench/linux/fs/cifs/extr_smb1ops.c_cifs_get_srv_inum.c'
source_filename = "AnghaBench/linux/fs/cifs/extr_smb1ops.c_cifs_get_srv_inum.c"
target datalayout = "e-m:e-p270:32:32-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 @cifs_get_srv_inum], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @cifs_get_srv_inum(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture readnone %5) #0 {
%7 = load i32, ptr %2, align 4, !tbaa !5
%8 = tail call i32 @cifs_remap(ptr noundef nonnull %2) #2
%9 = tail call i32 @CIFSGetSrvInodeNumber(i32 noundef %0, ptr noundef %1, ptr noundef %3, ptr noundef %4, i32 noundef %7, i32 noundef %8) #2
ret i32 %9
}
declare i32 @CIFSGetSrvInodeNumber(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cifs_remap(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 = !{!"cifs_sb_info", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/fs/cifs/extr_smb1ops.c_cifs_get_srv_inum.c'
source_filename = "AnghaBench/linux/fs/cifs/extr_smb1ops.c_cifs_get_srv_inum.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 @cifs_get_srv_inum], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @cifs_get_srv_inum(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture readnone %5) #0 {
%7 = load i32, ptr %2, align 4, !tbaa !6
%8 = tail call i32 @cifs_remap(ptr noundef nonnull %2) #2
%9 = tail call i32 @CIFSGetSrvInodeNumber(i32 noundef %0, ptr noundef %1, ptr noundef %3, ptr noundef %4, i32 noundef %7, i32 noundef %8) #2
ret i32 %9
}
declare i32 @CIFSGetSrvInodeNumber(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cifs_remap(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 = !{!"cifs_sb_info", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_fs_cifs_extr_smb1ops.c_cifs_get_srv_inum |
; ModuleID = 'AnghaBench/linux/net/ipv6/extr_esp6.c_esp6_input.c'
source_filename = "AnghaBench/linux/net/ipv6/extr_esp6.c_esp6_input.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.xfrm_state = type { %struct.TYPE_4__, ptr }
%struct.TYPE_4__ = type { i32 }
%struct.sk_buff = type { i32, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@XFRM_STATE_ESN = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@CHECKSUM_NONE = dso_local local_unnamed_addr global i32 0, align 4
@esp_input_done_esn = dso_local local_unnamed_addr global i32 0, align 4
@esp_input_done = dso_local local_unnamed_addr global i32 0, align 4
@EINPROGRESS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @esp6_input], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @esp6_input(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = getelementptr inbounds %struct.xfrm_state, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%6 = tail call i32 @crypto_aead_ivsize(ptr noundef %5) #3
%7 = load i32, ptr %1, align 4, !tbaa !12
%8 = add i32 %7, -4
%9 = add i32 %6, 4
%10 = tail call i32 @pskb_may_pull(ptr noundef nonnull %1, i32 noundef %9) #3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr @EINVAL, align 4, !tbaa !14
%14 = sub nsw i32 0, %13
br label %93
15: ; preds = %2
%16 = sub i32 %8, %6
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr @EINVAL, align 4, !tbaa !14
%20 = sub nsw i32 0, %19
br label %93
21: ; preds = %15
%22 = load i32, ptr %0, align 8, !tbaa !15
%23 = load i32, ptr @XFRM_STATE_ESN, align 4, !tbaa !14
%24 = and i32 %23, %22
%25 = icmp eq i32 %24, 0
%26 = select i1 %25, i32 0, i32 4
%27 = select i1 %25, i32 4, i32 8
%28 = tail call i32 @skb_cloned(ptr noundef nonnull %1) #3
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %40
30: ; preds = %21
%31 = tail call i32 @skb_is_nonlinear(ptr noundef nonnull %1) #3
%32 = icmp eq i32 %31, 0
br i1 %32, label %46, label %33
33: ; preds = %30
%34 = tail call i32 @skb_has_frag_list(ptr noundef nonnull %1) #3
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = tail call ptr @skb_shinfo(ptr noundef nonnull %1) #3
%38 = load i32, ptr %37, align 4, !tbaa !16
%39 = add nsw i32 %38, 1
br label %46
40: ; preds = %33, %21
%41 = call i32 @skb_cow_data(ptr noundef nonnull %1, i32 noundef 0, ptr noundef nonnull %3) #3
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, ptr @EINVAL, align 4, !tbaa !14
%45 = sub nsw i32 0, %44
br label %93
46: ; preds = %30, %40, %36
%47 = phi i32 [ %41, %40 ], [ %39, %36 ], [ 1, %30 ]
%48 = load i32, ptr @ENOMEM, align 4, !tbaa !14
%49 = sub nsw i32 0, %48
%50 = call ptr @esp_alloc_tmp(ptr noundef %5, i32 noundef %47, i32 noundef %26) #3
%51 = icmp eq ptr %50, null
br i1 %51, label %93, label %52
52: ; preds = %46
%53 = call ptr @ESP_SKB_CB(ptr noundef nonnull %1) #3
store ptr %50, ptr %53, align 8, !tbaa !18
%54 = call ptr @esp_tmp_seqhi(ptr noundef nonnull %50) #3
%55 = call ptr @esp_tmp_iv(ptr noundef %5, ptr noundef nonnull %50, i32 noundef %26) #3
%56 = call ptr @esp_tmp_req(ptr noundef %5, ptr noundef %55) #3
%57 = call ptr @esp_req_sg(ptr noundef %5, ptr noundef %56) #3
%58 = call i32 @esp_input_set_header(ptr noundef nonnull %1, ptr noundef %54) #3
%59 = call i32 @sg_init_table(ptr noundef %57, i32 noundef %47) #3
%60 = load i32, ptr %1, align 4, !tbaa !12
%61 = call i32 @skb_to_sgvec(ptr noundef nonnull %1, ptr noundef %57, i32 noundef 0, i32 noundef %60) #3
%62 = lshr i32 %61, 31
%63 = call i64 @unlikely(i32 noundef %62) #3
%64 = icmp eq i64 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %52
%66 = call i32 @kfree(ptr noundef nonnull %50) #3
br label %93
67: ; preds = %52
%68 = load i32, ptr @CHECKSUM_NONE, align 4, !tbaa !14
%69 = getelementptr inbounds %struct.sk_buff, ptr %1, i64 0, i32 1
store i32 %68, ptr %69, align 4, !tbaa !20
%70 = load i32, ptr %0, align 8, !tbaa !15
%71 = load i32, ptr @XFRM_STATE_ESN, align 4, !tbaa !14
%72 = and i32 %71, %70
%73 = icmp eq i32 %72, 0
%74 = load i32, ptr @esp_input_done, align 4
%75 = load i32, ptr @esp_input_done_esn, align 4
%76 = select i1 %73, i32 %74, i32 %75
%77 = call i32 @aead_request_set_callback(ptr noundef %56, i32 noundef 0, i32 noundef %76, ptr noundef nonnull %1) #3
%78 = call i32 @aead_request_set_crypt(ptr noundef %56, ptr noundef %57, ptr noundef %57, i32 noundef %8, ptr noundef %55) #3
%79 = call i32 @aead_request_set_ad(ptr noundef %56, i32 noundef %27) #3
%80 = call i32 @crypto_aead_decrypt(ptr noundef %56) #3
%81 = load i32, ptr @EINPROGRESS, align 4, !tbaa !14
%82 = sub nsw i32 0, %81
%83 = icmp eq i32 %80, %82
br i1 %83, label %93, label %84
84: ; preds = %67
%85 = load i32, ptr %0, align 8, !tbaa !15
%86 = load i32, ptr @XFRM_STATE_ESN, align 4, !tbaa !14
%87 = and i32 %86, %85
%88 = icmp eq i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %84
%90 = call i32 @esp_input_restore_header(ptr noundef nonnull %1) #3
br label %91
91: ; preds = %89, %84
%92 = call i32 @esp6_input_done2(ptr noundef nonnull %1, i32 noundef %80) #3
br label %93
93: ; preds = %67, %46, %91, %65, %43, %18, %12
%94 = phi i32 [ %20, %18 ], [ %45, %43 ], [ %61, %65 ], [ %80, %67 ], [ %92, %91 ], [ %49, %46 ], [ %14, %12 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %94
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @crypto_aead_ivsize(ptr noundef) local_unnamed_addr #2
declare i32 @pskb_may_pull(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @skb_cloned(ptr noundef) local_unnamed_addr #2
declare i32 @skb_is_nonlinear(ptr noundef) local_unnamed_addr #2
declare i32 @skb_has_frag_list(ptr noundef) local_unnamed_addr #2
declare ptr @skb_shinfo(ptr noundef) local_unnamed_addr #2
declare i32 @skb_cow_data(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @esp_alloc_tmp(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ESP_SKB_CB(ptr noundef) local_unnamed_addr #2
declare ptr @esp_tmp_seqhi(ptr noundef) local_unnamed_addr #2
declare ptr @esp_tmp_iv(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @esp_tmp_req(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @esp_req_sg(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @esp_input_set_header(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sg_init_table(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @skb_to_sgvec(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
declare i32 @aead_request_set_callback(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @aead_request_set_crypt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @aead_request_set_ad(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @crypto_aead_decrypt(ptr noundef) local_unnamed_addr #2
declare i32 @esp_input_restore_header(ptr noundef) local_unnamed_addr #2
declare i32 @esp6_input_done2(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 = !{!"xfrm_state", !7, i64 0, !11, i64 8}
!7 = !{!"TYPE_4__", !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 = !{!"sk_buff", !8, i64 0, !8, i64 4}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !8, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"TYPE_5__", !8, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"TYPE_6__", !11, i64 0}
!20 = !{!13, !8, i64 4}
| ; ModuleID = 'AnghaBench/linux/net/ipv6/extr_esp6.c_esp6_input.c'
source_filename = "AnghaBench/linux/net/ipv6/extr_esp6.c_esp6_input.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
@XFRM_STATE_ESN = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@CHECKSUM_NONE = common local_unnamed_addr global i32 0, align 4
@esp_input_done_esn = common local_unnamed_addr global i32 0, align 4
@esp_input_done = common local_unnamed_addr global i32 0, align 4
@EINPROGRESS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @esp6_input], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @esp6_input(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%6 = tail call i32 @crypto_aead_ivsize(ptr noundef %5) #3
%7 = load i32, ptr %1, align 4, !tbaa !13
%8 = add i32 %7, -4
%9 = add i32 %6, 4
%10 = tail call i32 @pskb_may_pull(ptr noundef nonnull %1, i32 noundef %9) #3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr @EINVAL, align 4, !tbaa !15
%14 = sub nsw i32 0, %13
br label %93
15: ; preds = %2
%16 = sub i32 %8, %6
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr @EINVAL, align 4, !tbaa !15
%20 = sub nsw i32 0, %19
br label %93
21: ; preds = %15
%22 = load i32, ptr %0, align 8, !tbaa !16
%23 = load i32, ptr @XFRM_STATE_ESN, align 4, !tbaa !15
%24 = and i32 %23, %22
%25 = icmp eq i32 %24, 0
%26 = select i1 %25, i32 0, i32 4
%27 = select i1 %25, i32 4, i32 8
%28 = tail call i32 @skb_cloned(ptr noundef nonnull %1) #3
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %40
30: ; preds = %21
%31 = tail call i32 @skb_is_nonlinear(ptr noundef nonnull %1) #3
%32 = icmp eq i32 %31, 0
br i1 %32, label %46, label %33
33: ; preds = %30
%34 = tail call i32 @skb_has_frag_list(ptr noundef nonnull %1) #3
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = tail call ptr @skb_shinfo(ptr noundef nonnull %1) #3
%38 = load i32, ptr %37, align 4, !tbaa !17
%39 = add nsw i32 %38, 1
br label %46
40: ; preds = %33, %21
%41 = call i32 @skb_cow_data(ptr noundef nonnull %1, i32 noundef 0, ptr noundef nonnull %3) #3
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, ptr @EINVAL, align 4, !tbaa !15
%45 = sub nsw i32 0, %44
br label %93
46: ; preds = %30, %40, %36
%47 = phi i32 [ %41, %40 ], [ %39, %36 ], [ 1, %30 ]
%48 = load i32, ptr @ENOMEM, align 4, !tbaa !15
%49 = sub nsw i32 0, %48
%50 = call ptr @esp_alloc_tmp(ptr noundef %5, i32 noundef %47, i32 noundef %26) #3
%51 = icmp eq ptr %50, null
br i1 %51, label %93, label %52
52: ; preds = %46
%53 = call ptr @ESP_SKB_CB(ptr noundef nonnull %1) #3
store ptr %50, ptr %53, align 8, !tbaa !19
%54 = call ptr @esp_tmp_seqhi(ptr noundef nonnull %50) #3
%55 = call ptr @esp_tmp_iv(ptr noundef %5, ptr noundef nonnull %50, i32 noundef %26) #3
%56 = call ptr @esp_tmp_req(ptr noundef %5, ptr noundef %55) #3
%57 = call ptr @esp_req_sg(ptr noundef %5, ptr noundef %56) #3
%58 = call i32 @esp_input_set_header(ptr noundef nonnull %1, ptr noundef %54) #3
%59 = call i32 @sg_init_table(ptr noundef %57, i32 noundef %47) #3
%60 = load i32, ptr %1, align 4, !tbaa !13
%61 = call i32 @skb_to_sgvec(ptr noundef nonnull %1, ptr noundef %57, i32 noundef 0, i32 noundef %60) #3
%62 = lshr i32 %61, 31
%63 = call i64 @unlikely(i32 noundef %62) #3
%64 = icmp eq i64 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %52
%66 = call i32 @kfree(ptr noundef nonnull %50) #3
br label %93
67: ; preds = %52
%68 = load i32, ptr @CHECKSUM_NONE, align 4, !tbaa !15
%69 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %68, ptr %69, align 4, !tbaa !21
%70 = load i32, ptr %0, align 8, !tbaa !16
%71 = load i32, ptr @XFRM_STATE_ESN, align 4, !tbaa !15
%72 = and i32 %71, %70
%73 = icmp eq i32 %72, 0
%74 = load i32, ptr @esp_input_done, align 4
%75 = load i32, ptr @esp_input_done_esn, align 4
%76 = select i1 %73, i32 %74, i32 %75
%77 = call i32 @aead_request_set_callback(ptr noundef %56, i32 noundef 0, i32 noundef %76, ptr noundef nonnull %1) #3
%78 = call i32 @aead_request_set_crypt(ptr noundef %56, ptr noundef %57, ptr noundef %57, i32 noundef %8, ptr noundef %55) #3
%79 = call i32 @aead_request_set_ad(ptr noundef %56, i32 noundef %27) #3
%80 = call i32 @crypto_aead_decrypt(ptr noundef %56) #3
%81 = load i32, ptr @EINPROGRESS, align 4, !tbaa !15
%82 = sub nsw i32 0, %81
%83 = icmp eq i32 %80, %82
br i1 %83, label %93, label %84
84: ; preds = %67
%85 = load i32, ptr %0, align 8, !tbaa !16
%86 = load i32, ptr @XFRM_STATE_ESN, align 4, !tbaa !15
%87 = and i32 %86, %85
%88 = icmp eq i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %84
%90 = call i32 @esp_input_restore_header(ptr noundef nonnull %1) #3
br label %91
91: ; preds = %89, %84
%92 = call i32 @esp6_input_done2(ptr noundef nonnull %1, i32 noundef %80) #3
br label %93
93: ; preds = %67, %46, %91, %65, %43, %18, %12
%94 = phi i32 [ %20, %18 ], [ %45, %43 ], [ %61, %65 ], [ %80, %67 ], [ %92, %91 ], [ %49, %46 ], [ %14, %12 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %94
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @crypto_aead_ivsize(ptr noundef) local_unnamed_addr #2
declare i32 @pskb_may_pull(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @skb_cloned(ptr noundef) local_unnamed_addr #2
declare i32 @skb_is_nonlinear(ptr noundef) local_unnamed_addr #2
declare i32 @skb_has_frag_list(ptr noundef) local_unnamed_addr #2
declare ptr @skb_shinfo(ptr noundef) local_unnamed_addr #2
declare i32 @skb_cow_data(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @esp_alloc_tmp(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ESP_SKB_CB(ptr noundef) local_unnamed_addr #2
declare ptr @esp_tmp_seqhi(ptr noundef) local_unnamed_addr #2
declare ptr @esp_tmp_iv(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @esp_tmp_req(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @esp_req_sg(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @esp_input_set_header(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sg_init_table(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @skb_to_sgvec(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
declare i32 @aead_request_set_callback(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @aead_request_set_crypt(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @aead_request_set_ad(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @crypto_aead_decrypt(ptr noundef) local_unnamed_addr #2
declare i32 @esp_input_restore_header(ptr noundef) local_unnamed_addr #2
declare i32 @esp6_input_done2(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 = !{!"xfrm_state", !8, i64 0, !12, i64 8}
!8 = !{!"TYPE_4__", !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 = !{!"sk_buff", !9, i64 0, !9, i64 4}
!15 = !{!9, !9, i64 0}
!16 = !{!7, !9, i64 0}
!17 = !{!18, !9, i64 0}
!18 = !{!"TYPE_5__", !9, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"TYPE_6__", !12, i64 0}
!21 = !{!14, !9, i64 4}
| linux_net_ipv6_extr_esp6.c_esp6_input |
; ModuleID = 'AnghaBench/libsodium/src/libsodium/crypto_stream/chacha20/extr_stream_chacha20.c__crypto_stream_chacha20_pick_best_implementation.c'
source_filename = "AnghaBench/libsodium/src/libsodium/crypto_stream/chacha20/extr_stream_chacha20.c__crypto_stream_chacha20_pick_best_implementation.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@crypto_stream_chacha20_ref_implementation = dso_local global i32 0, align 4
@implementation = dso_local local_unnamed_addr global ptr null, align 8
@crypto_stream_chacha20_dolbeau_avx2_implementation = dso_local local_unnamed_addr global i32 0, align 4
@crypto_stream_chacha20_dolbeau_ssse3_implementation = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local noundef i32 @_crypto_stream_chacha20_pick_best_implementation() local_unnamed_addr #0 {
store ptr @crypto_stream_chacha20_ref_implementation, ptr @implementation, align 8, !tbaa !5
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libsodium/src/libsodium/crypto_stream/chacha20/extr_stream_chacha20.c__crypto_stream_chacha20_pick_best_implementation.c'
source_filename = "AnghaBench/libsodium/src/libsodium/crypto_stream/chacha20/extr_stream_chacha20.c__crypto_stream_chacha20_pick_best_implementation.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@crypto_stream_chacha20_ref_implementation = common global i32 0, align 4
@implementation = common local_unnamed_addr global ptr null, align 8
@crypto_stream_chacha20_dolbeau_avx2_implementation = common local_unnamed_addr global i32 0, align 4
@crypto_stream_chacha20_dolbeau_ssse3_implementation = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync)
define noundef i32 @_crypto_stream_chacha20_pick_best_implementation() local_unnamed_addr #0 {
store ptr @crypto_stream_chacha20_ref_implementation, ptr @implementation, align 8, !tbaa !6
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| libsodium_src_libsodium_crypto_stream_chacha20_extr_stream_chacha20.c__crypto_stream_chacha20_pick_best_implementation |
; ModuleID = 'AnghaBench/freebsd/sys/dev/aacraid/extr_aacraid.c_aac_convert_sgraw2.c'
source_filename = "AnghaBench/freebsd/sys/dev/aacraid/extr_aacraid.c_aac_convert_sgraw2.c"
target datalayout = "e-m:e-p270:32:32-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.aac_raw_io2 = type { i32, i32, i32, ptr }
%struct.aac_sge_ieee1212 = type { i32, i64, i64, i32 }
@M_AACRAIDBUF = dso_local local_unnamed_addr global i32 0, align 4
@M_NOWAIT = dso_local local_unnamed_addr global i32 0, align 4
@M_ZERO = dso_local local_unnamed_addr global i32 0, align 4
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@RIO2_SGL_CONFORMANT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @aac_convert_sgraw2], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @aac_convert_sgraw2(ptr nocapture readnone %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = shl i32 %4, 5
%7 = load i32, ptr @M_AACRAIDBUF, align 4, !tbaa !5
%8 = load i32, ptr @M_NOWAIT, align 4, !tbaa !5
%9 = load i32, ptr @M_ZERO, align 4, !tbaa !5
%10 = or i32 %9, %8
%11 = tail call ptr @malloc(i32 noundef %6, i32 noundef %7, i32 noundef %10) #3
%12 = icmp eq ptr %11, null
br i1 %12, label %116, label %13
13: ; preds = %5
%14 = add i32 %3, -1
%15 = icmp sgt i32 %3, 2
%16 = getelementptr inbounds %struct.aac_raw_io2, ptr %1, i64 0, i32 3
%17 = load ptr, ptr %16, align 8, !tbaa !9
br i1 %15, label %18, label %72
18: ; preds = %13
%19 = zext nneg i32 %14 to i64
%20 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
br label %21
21: ; preds = %18, %65
%22 = phi i32 [ %20, %18 ], [ %66, %65 ]
%23 = phi i64 [ 1, %18 ], [ %68, %65 ]
%24 = phi i32 [ 1, %18 ], [ %67, %65 ]
%25 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %23
%26 = load i32, ptr %25, align 8, !tbaa !12
%27 = mul nsw i32 %22, %2
%28 = sdiv i32 %26, %27
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %65
30: ; preds = %21
%31 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %23, i32 1
%32 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %23, i32 3
%33 = sext i32 %24 to i64
%34 = load i64, ptr %31, align 8, !tbaa !15
br label %35
35: ; preds = %30, %52
%36 = phi i64 [ %34, %30 ], [ %48, %52 ]
%37 = phi i64 [ %33, %30 ], [ %56, %52 ]
%38 = phi i32 [ %22, %30 ], [ %59, %52 ]
%39 = phi i32 [ 0, %30 ], [ %57, %52 ]
%40 = mul i32 %38, %2
%41 = mul i32 %40, %39
%42 = sext i32 %41 to i64
%43 = add nsw i64 %36, %42
%44 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %37
%45 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %37, i32 1
store i64 %43, ptr %45, align 8, !tbaa !15
%46 = load i32, ptr %32, align 8, !tbaa !16
%47 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %37, i32 3
store i32 %46, ptr %47, align 8, !tbaa !16
%48 = load i64, ptr %31, align 8, !tbaa !15
%49 = icmp slt i64 %43, %48
br i1 %49, label %50, label %52
50: ; preds = %35
%51 = add nsw i32 %46, 1
store i32 %51, ptr %47, align 8, !tbaa !16
br label %52
52: ; preds = %50, %35
%53 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
%54 = mul nsw i32 %53, %2
store i32 %54, ptr %44, align 8, !tbaa !12
%55 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %37, i32 2
store i64 0, ptr %55, align 8, !tbaa !17
%56 = add nsw i64 %37, 1
%57 = add nuw nsw i32 %39, 1
%58 = load i32, ptr %25, align 8, !tbaa !12
%59 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
%60 = mul nsw i32 %59, %2
%61 = sdiv i32 %58, %60
%62 = icmp slt i32 %57, %61
br i1 %62, label %35, label %63, !llvm.loop !18
63: ; preds = %52
%64 = trunc i64 %56 to i32
br label %65
65: ; preds = %63, %21
%66 = phi i32 [ %22, %21 ], [ %59, %63 ]
%67 = phi i32 [ %24, %21 ], [ %64, %63 ]
%68 = add nuw nsw i64 %23, 1
%69 = icmp eq i64 %68, %19
br i1 %69, label %70, label %21, !llvm.loop !20
70: ; preds = %65
%71 = sext i32 %67 to i64
br label %72
72: ; preds = %13, %70
%73 = phi i64 [ %71, %70 ], [ 1, %13 ]
%74 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %73
%75 = getelementptr inbounds %struct.aac_raw_io2, ptr %1, i64 0, i32 3
%76 = sext i32 %14 to i64
%77 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %76
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef nonnull align 8 dereferenceable(32) %77, i64 32, i1 false), !tbaa.struct !21
%78 = icmp sgt i32 %4, 1
br i1 %78, label %79, label %106
79: ; preds = %72
%80 = zext nneg i32 %4 to i64
%81 = add nsw i64 %80, -1
%82 = and i64 %81, 1
%83 = icmp eq i32 %4, 2
br i1 %83, label %99, label %84
84: ; preds = %79
%85 = and i64 %81, -2
br label %86
86: ; preds = %86, %84
%87 = phi i64 [ 1, %84 ], [ %96, %86 ]
%88 = phi i64 [ 0, %84 ], [ %97, %86 ]
%89 = load ptr, ptr %75, align 8, !tbaa !9
%90 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %89, i64 %87
%91 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %87
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef nonnull align 8 dereferenceable(32) %91, i64 32, i1 false), !tbaa.struct !21
%92 = add nuw nsw i64 %87, 1
%93 = load ptr, ptr %75, align 8, !tbaa !9
%94 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %93, i64 %92
%95 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %92
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %94, ptr noundef nonnull align 8 dereferenceable(32) %95, i64 32, i1 false), !tbaa.struct !21
%96 = add nuw nsw i64 %87, 2
%97 = add i64 %88, 2
%98 = icmp eq i64 %97, %85
br i1 %98, label %99, label %86, !llvm.loop !23
99: ; preds = %86, %79
%100 = phi i64 [ 1, %79 ], [ %96, %86 ]
%101 = icmp eq i64 %82, 0
br i1 %101, label %106, label %102
102: ; preds = %99
%103 = load ptr, ptr %75, align 8, !tbaa !9
%104 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %103, i64 %100
%105 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %100
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %104, ptr noundef nonnull align 8 dereferenceable(32) %105, i64 32, i1 false), !tbaa.struct !21
br label %106
106: ; preds = %102, %99, %72
%107 = load i32, ptr @M_AACRAIDBUF, align 4, !tbaa !5
%108 = tail call i32 @free(ptr noundef nonnull %11, i32 noundef %107) #3
store i32 %4, ptr %1, align 8, !tbaa !24
%109 = load i32, ptr @RIO2_SGL_CONFORMANT, align 4, !tbaa !5
%110 = getelementptr inbounds %struct.aac_raw_io2, ptr %1, i64 0, i32 2
%111 = load i32, ptr %110, align 8, !tbaa !25
%112 = or i32 %111, %109
store i32 %112, ptr %110, align 8, !tbaa !25
%113 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !5
%114 = mul nsw i32 %113, %2
%115 = getelementptr inbounds %struct.aac_raw_io2, ptr %1, i64 0, i32 1
store i32 %114, ptr %115, align 4, !tbaa !26
br label %116
116: ; preds = %5, %106
%117 = phi i32 [ %4, %106 ], [ %3, %5 ]
ret i32 %117
}
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @free(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"aac_raw_io2", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"aac_sge_ieee1212", !6, i64 0, !14, i64 8, !14, i64 16, !6, i64 24}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!13, !6, i64 24}
!17 = !{!13, !14, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{i64 0, i64 4, !5, i64 8, i64 8, !22, i64 16, i64 8, !22, i64 24, i64 4, !5}
!22 = !{!14, !14, i64 0}
!23 = distinct !{!23, !19}
!24 = !{!10, !6, i64 0}
!25 = !{!10, !6, i64 8}
!26 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/aacraid/extr_aacraid.c_aac_convert_sgraw2.c'
source_filename = "AnghaBench/freebsd/sys/dev/aacraid/extr_aacraid.c_aac_convert_sgraw2.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.aac_sge_ieee1212 = type { i32, i64, i64, i32 }
@M_AACRAIDBUF = common local_unnamed_addr global i32 0, align 4
@M_NOWAIT = common local_unnamed_addr global i32 0, align 4
@M_ZERO = common local_unnamed_addr global i32 0, align 4
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
@RIO2_SGL_CONFORMANT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @aac_convert_sgraw2], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @aac_convert_sgraw2(ptr nocapture readnone %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = shl i32 %4, 5
%7 = load i32, ptr @M_AACRAIDBUF, align 4, !tbaa !6
%8 = load i32, ptr @M_NOWAIT, align 4, !tbaa !6
%9 = load i32, ptr @M_ZERO, align 4, !tbaa !6
%10 = or i32 %9, %8
%11 = tail call ptr @malloc(i32 noundef %6, i32 noundef %7, i32 noundef %10) #3
%12 = icmp eq ptr %11, null
br i1 %12, label %98, label %13
13: ; preds = %5
%14 = add i32 %3, -1
%15 = icmp sgt i32 %3, 2
%16 = getelementptr inbounds i8, ptr %1, i64 16
%17 = load ptr, ptr %16, align 8, !tbaa !10
br i1 %15, label %18, label %73
18: ; preds = %13
%19 = zext nneg i32 %14 to i64
%20 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
br label %21
21: ; preds = %18, %66
%22 = phi i32 [ %20, %18 ], [ %67, %66 ]
%23 = phi i64 [ 1, %18 ], [ %69, %66 ]
%24 = phi i32 [ 1, %18 ], [ %68, %66 ]
%25 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %23
%26 = load i32, ptr %25, align 8, !tbaa !13
%27 = mul nsw i32 %22, %2
%28 = sdiv i32 %26, %27
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %66
30: ; preds = %21
%31 = getelementptr inbounds i8, ptr %25, i64 8
%32 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %23, i32 3
%33 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %23, i32 1
%34 = sext i32 %24 to i64
%35 = load i64, ptr %31, align 8, !tbaa !16
br label %36
36: ; preds = %30, %53
%37 = phi i64 [ %35, %30 ], [ %49, %53 ]
%38 = phi i64 [ %34, %30 ], [ %57, %53 ]
%39 = phi i32 [ %22, %30 ], [ %60, %53 ]
%40 = phi i32 [ 0, %30 ], [ %58, %53 ]
%41 = mul i32 %39, %2
%42 = mul i32 %41, %40
%43 = sext i32 %42 to i64
%44 = add nsw i64 %37, %43
%45 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %38
%46 = getelementptr inbounds i8, ptr %45, i64 8
store i64 %44, ptr %46, align 8, !tbaa !16
%47 = load i32, ptr %32, align 8, !tbaa !17
%48 = getelementptr inbounds i8, ptr %45, i64 24
store i32 %47, ptr %48, align 8, !tbaa !17
%49 = load i64, ptr %33, align 8, !tbaa !16
%50 = icmp slt i64 %44, %49
br i1 %50, label %51, label %53
51: ; preds = %36
%52 = add nsw i32 %47, 1
store i32 %52, ptr %48, align 8, !tbaa !17
br label %53
53: ; preds = %51, %36
%54 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
%55 = mul nsw i32 %54, %2
store i32 %55, ptr %45, align 8, !tbaa !13
%56 = getelementptr inbounds i8, ptr %45, i64 16
store i64 0, ptr %56, align 8, !tbaa !18
%57 = add nsw i64 %38, 1
%58 = add nuw nsw i32 %40, 1
%59 = load i32, ptr %25, align 8, !tbaa !13
%60 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
%61 = mul nsw i32 %60, %2
%62 = sdiv i32 %59, %61
%63 = icmp slt i32 %58, %62
br i1 %63, label %36, label %64, !llvm.loop !19
64: ; preds = %53
%65 = trunc nsw i64 %57 to i32
br label %66
66: ; preds = %64, %21
%67 = phi i32 [ %22, %21 ], [ %60, %64 ]
%68 = phi i32 [ %24, %21 ], [ %65, %64 ]
%69 = add nuw nsw i64 %23, 1
%70 = icmp eq i64 %69, %19
br i1 %70, label %71, label %21, !llvm.loop !21
71: ; preds = %66
%72 = sext i32 %68 to i64
br label %73
73: ; preds = %13, %71
%74 = phi i64 [ %72, %71 ], [ 1, %13 ]
%75 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %74
%76 = sext i32 %14 to i64
%77 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %17, i64 %76
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef nonnull align 8 dereferenceable(32) %77, i64 32, i1 false), !tbaa.struct !22
%78 = icmp sgt i32 %4, 1
br i1 %78, label %79, label %88
79: ; preds = %73
%80 = zext nneg i32 %4 to i64
br label %81
81: ; preds = %79, %81
%82 = phi i64 [ 1, %79 ], [ %86, %81 ]
%83 = load ptr, ptr %16, align 8, !tbaa !10
%84 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %83, i64 %82
%85 = getelementptr inbounds %struct.aac_sge_ieee1212, ptr %11, i64 %82
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %84, ptr noundef nonnull align 8 dereferenceable(32) %85, i64 32, i1 false), !tbaa.struct !22
%86 = add nuw nsw i64 %82, 1
%87 = icmp eq i64 %86, %80
br i1 %87, label %88, label %81, !llvm.loop !24
88: ; preds = %81, %73
%89 = load i32, ptr @M_AACRAIDBUF, align 4, !tbaa !6
%90 = tail call i32 @free(ptr noundef nonnull %11, i32 noundef %89) #3
store i32 %4, ptr %1, align 8, !tbaa !25
%91 = load i32, ptr @RIO2_SGL_CONFORMANT, align 4, !tbaa !6
%92 = getelementptr inbounds i8, ptr %1, i64 8
%93 = load i32, ptr %92, align 8, !tbaa !26
%94 = or i32 %93, %91
store i32 %94, ptr %92, align 8, !tbaa !26
%95 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !6
%96 = mul nsw i32 %95, %2
%97 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %96, ptr %97, align 4, !tbaa !27
br label %98
98: ; preds = %5, %88
%99 = phi i32 [ %4, %88 ], [ %3, %5 ]
ret i32 %99
}
declare ptr @malloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @free(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"aac_raw_io2", !7, i64 0, !7, i64 4, !7, i64 8, !12, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"aac_sge_ieee1212", !7, i64 0, !15, i64 8, !15, i64 16, !7, i64 24}
!15 = !{!"long", !8, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!14, !7, i64 24}
!18 = !{!14, !15, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{i64 0, i64 4, !6, i64 8, i64 8, !23, i64 16, i64 8, !23, i64 24, i64 4, !6}
!23 = !{!15, !15, i64 0}
!24 = distinct !{!24, !20}
!25 = !{!11, !7, i64 0}
!26 = !{!11, !7, i64 8}
!27 = !{!11, !7, i64 4}
| freebsd_sys_dev_aacraid_extr_aacraid.c_aac_convert_sgraw2 |
; ModuleID = 'AnghaBench/linux/drivers/block/extr_rbd.c_dup_token.c'
source_filename = "AnghaBench/linux/drivers/block/extr_rbd.c_dup_token.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dup_token], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal ptr @dup_token(ptr noundef %0, ptr noundef writeonly %1) #0 {
%3 = tail call i64 @next_token(ptr noundef %0) #2
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = add i64 %3, 1
%6 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !9
%7 = tail call ptr @kmemdup(ptr noundef %4, i64 noundef %5, i32 noundef %6) #2
%8 = icmp eq ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %2
%10 = getelementptr inbounds i8, ptr %7, i64 %3
store i8 0, ptr %10, align 1, !tbaa !11
%11 = load ptr, ptr %0, align 8, !tbaa !5
%12 = getelementptr inbounds i8, ptr %11, i64 %3
store ptr %12, ptr %0, align 8, !tbaa !5
%13 = icmp eq ptr %1, null
br i1 %13, label %15, label %14
14: ; preds = %9
store i64 %3, ptr %1, align 8, !tbaa !12
br label %15
15: ; preds = %9, %14, %2
ret ptr %7
}
declare i64 @next_token(ptr noundef) local_unnamed_addr #1
declare ptr @kmemdup(ptr noundef, i64 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 = !{!"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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/block/extr_rbd.c_dup_token.c'
source_filename = "AnghaBench/linux/drivers/block/extr_rbd.c_dup_token.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dup_token], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal ptr @dup_token(ptr noundef %0, ptr noundef writeonly %1) #0 {
%3 = tail call i64 @next_token(ptr noundef %0) #2
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = add i64 %3, 1
%6 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !10
%7 = tail call ptr @kmemdup(ptr noundef %4, i64 noundef %5, i32 noundef %6) #2
%8 = icmp eq ptr %7, null
br i1 %8, label %15, label %9
9: ; preds = %2
%10 = getelementptr inbounds i8, ptr %7, i64 %3
store i8 0, ptr %10, align 1, !tbaa !12
%11 = load ptr, ptr %0, align 8, !tbaa !6
%12 = getelementptr inbounds i8, ptr %11, i64 %3
store ptr %12, ptr %0, align 8, !tbaa !6
%13 = icmp eq ptr %1, null
br i1 %13, label %15, label %14
14: ; preds = %9
store i64 %3, ptr %1, align 8, !tbaa !13
br label %15
15: ; preds = %9, %14, %2
ret ptr %7
}
declare i64 @next_token(ptr noundef) local_unnamed_addr #1
declare ptr @kmemdup(ptr noundef, i64 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 = !{!"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 = !{!8, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
| linux_drivers_block_extr_rbd.c_dup_token |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/extr_ctxgm107.c_gm107_grctx_generate_attrib.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/extr_ctxgm107.c_gm107_grctx_generate_attrib.c"
target datalayout = "e-m:e-p270:32:32-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.gf100_gr = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.gf100_grctx_func = type { i32, i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @gm107_grctx_generate_attrib(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.gf100_gr, ptr %2, i64 0, i32 5
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = load ptr, ptr %4, align 8, !tbaa !13
%6 = load i32, ptr %5, align 4, !tbaa !15
%7 = getelementptr inbounds %struct.gf100_grctx_func, ptr %5, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !17
%9 = getelementptr inbounds %struct.gf100_grctx_func, ptr %5, i64 0, i32 2
%10 = load i32, ptr %9, align 4, !tbaa !18
%11 = getelementptr inbounds %struct.gf100_grctx_func, ptr %5, i64 0, i32 3
%12 = load i32, ptr %11, align 4, !tbaa !19
%13 = add nsw i32 %12, %10
%14 = shl nsw i32 %13, 5
%15 = load i32, ptr %2, align 8, !tbaa !20
%16 = mul nsw i32 %14, %15
%17 = tail call i32 @mmio_vram(ptr noundef nonnull %0, i32 noundef %16, i32 noundef 4096, i32 noundef 0) #2
%18 = load i32, ptr %9, align 4, !tbaa !18
%19 = load i32, ptr %2, align 8, !tbaa !20
%20 = tail call i32 @mmio_refn(ptr noundef nonnull %0, i32 noundef 4294672, i32 noundef -2147483648, i32 noundef 12, i32 noundef %17) #2
%21 = tail call i32 @mmio_refn(ptr noundef nonnull %0, i32 noundef 4298824, i32 noundef 268435456, i32 noundef 12, i32 noundef %17) #2
%22 = tail call i32 @mmio_refn(ptr noundef nonnull %0, i32 noundef 4299820, i32 noundef 268435456, i32 noundef 12, i32 noundef %17) #2
%23 = shl i32 %8, 16
%24 = or i32 %23, %6
%25 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef 4216880, i32 noundef %24) #2
%26 = sdiv i32 %6, 4
%27 = shl i32 %26, 16
%28 = or disjoint i32 %27, 65535
%29 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef 4220100, i32 noundef %28) #2
%30 = getelementptr inbounds %struct.gf100_gr, ptr %2, i64 0, i32 1
%31 = load i32, ptr %30, align 4, !tbaa !21
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %123
33: ; preds = %1
%34 = mul nsw i32 %19, %18
%35 = getelementptr inbounds %struct.gf100_gr, ptr %2, i64 0, i32 2
%36 = getelementptr inbounds %struct.gf100_gr, ptr %2, i64 0, i32 3
%37 = getelementptr inbounds %struct.gf100_gr, ptr %2, i64 0, i32 4
%38 = load ptr, ptr %35, align 8, !tbaa !22
br label %39
39: ; preds = %33, %114
%40 = phi i32 [ %31, %33 ], [ %115, %114 ]
%41 = phi ptr [ %38, %33 ], [ %116, %114 ]
%42 = phi i64 [ 0, %33 ], [ %120, %114 ]
%43 = phi i32 [ 0, %33 ], [ %119, %114 ]
%44 = phi i32 [ %34, %33 ], [ %118, %114 ]
%45 = phi i32 [ 0, %33 ], [ %117, %114 ]
%46 = getelementptr inbounds i32, ptr %41, i64 %42
%47 = load i32, ptr %46, align 4, !tbaa !23
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %114
49: ; preds = %39
%50 = trunc i64 %42 to i32
br label %51
51: ; preds = %49, %102
%52 = phi i64 [ 0, %49 ], [ %105, %102 ]
%53 = phi i32 [ %43, %49 ], [ %104, %102 ]
%54 = phi i32 [ %44, %49 ], [ %103, %102 ]
%55 = phi i32 [ %45, %49 ], [ %106, %102 ]
%56 = load ptr, ptr %36, align 8, !tbaa !24
%57 = getelementptr inbounds ptr, ptr %56, i64 %42
%58 = load ptr, ptr %57, align 8, !tbaa !25
%59 = getelementptr inbounds i32, ptr %58, i64 %52
%60 = load i32, ptr %59, align 4, !tbaa !23
%61 = trunc i64 %52 to i32
%62 = tail call i32 @PPC_UNIT(i32 noundef %50, i32 noundef %61, i32 noundef 0) #2
%63 = load ptr, ptr %37, align 8, !tbaa !26
%64 = getelementptr inbounds i32, ptr %63, i64 %42
%65 = load i32, ptr %64, align 4, !tbaa !23
%66 = shl nuw i32 1, %61
%67 = and i32 %65, %66
%68 = icmp eq i32 %67, 0
br i1 %68, label %102, label %69
69: ; preds = %51
%70 = shl nsw i32 %55, 2
%71 = add nsw i32 %70, 4296352
%72 = mul nsw i32 %60, %8
%73 = mul nsw i32 %60, %6
%74 = add nsw i32 %62, 192
%75 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %74, i32 noundef %72) #2
%76 = add nsw i32 %62, 244
%77 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %76, i32 noundef %53) #2
%78 = load i32, ptr %9, align 4, !tbaa !18
%79 = load ptr, ptr %36, align 8, !tbaa !24
%80 = getelementptr inbounds ptr, ptr %79, i64 %42
%81 = load ptr, ptr %80, align 8, !tbaa !25
%82 = getelementptr inbounds i32, ptr %81, i64 %52
%83 = load i32, ptr %82, align 4, !tbaa !23
%84 = mul nsw i32 %83, %78
%85 = add nsw i32 %84, %53
%86 = add nsw i32 %62, 228
%87 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %86, i32 noundef %73) #2
%88 = add nsw i32 %62, 248
%89 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %88, i32 noundef %54) #2
%90 = load i32, ptr %11, align 4, !tbaa !19
%91 = load ptr, ptr %36, align 8, !tbaa !24
%92 = getelementptr inbounds ptr, ptr %91, i64 %42
%93 = load ptr, ptr %92, align 8, !tbaa !25
%94 = getelementptr inbounds i32, ptr %93, i64 %52
%95 = load i32, ptr %94, align 4, !tbaa !23
%96 = mul nsw i32 %95, %90
%97 = add nsw i32 %96, %54
%98 = sdiv i32 %72, 3
%99 = shl i32 %98, 16
%100 = or i32 %99, %72
%101 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %71, i32 noundef %100) #2
br label %102
102: ; preds = %51, %69
%103 = phi i32 [ %97, %69 ], [ %54, %51 ]
%104 = phi i32 [ %85, %69 ], [ %53, %51 ]
%105 = add nuw nsw i64 %52, 1
%106 = add nsw i32 %55, 1
%107 = load ptr, ptr %35, align 8, !tbaa !22
%108 = getelementptr inbounds i32, ptr %107, i64 %42
%109 = load i32, ptr %108, align 4, !tbaa !23
%110 = sext i32 %109 to i64
%111 = icmp slt i64 %105, %110
br i1 %111, label %51, label %112, !llvm.loop !27
112: ; preds = %102
%113 = load i32, ptr %30, align 4, !tbaa !21
br label %114
114: ; preds = %112, %39
%115 = phi i32 [ %40, %39 ], [ %113, %112 ]
%116 = phi ptr [ %41, %39 ], [ %107, %112 ]
%117 = phi i32 [ %45, %39 ], [ %106, %112 ]
%118 = phi i32 [ %44, %39 ], [ %103, %112 ]
%119 = phi i32 [ %43, %39 ], [ %104, %112 ]
%120 = add nuw nsw i64 %42, 1
%121 = sext i32 %115 to i64
%122 = icmp slt i64 %120, %121
br i1 %122, label %39, label %123, !llvm.loop !29
123: ; preds = %114, %1
ret void
}
declare i32 @mmio_vram(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmio_refn(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmio_wr32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PPC_UNIT(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"gf100_grctx", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 32}
!11 = !{!"gf100_gr", !12, i64 0, !12, i64 4, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_2__", !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"gf100_grctx_func", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!17 = !{!16, !12, i64 4}
!18 = !{!16, !12, i64 8}
!19 = !{!16, !12, i64 12}
!20 = !{!11, !12, i64 0}
!21 = !{!11, !12, i64 4}
!22 = !{!11, !7, i64 8}
!23 = !{!12, !12, i64 0}
!24 = !{!11, !7, i64 16}
!25 = !{!7, !7, i64 0}
!26 = !{!11, !7, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/extr_ctxgm107.c_gm107_grctx_generate_attrib.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/extr_ctxgm107.c_gm107_grctx_generate_attrib.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 @gm107_grctx_generate_attrib(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %2, i64 32
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load ptr, ptr %4, align 8, !tbaa !14
%6 = load i32, ptr %5, align 4, !tbaa !16
%7 = getelementptr inbounds i8, ptr %5, i64 4
%8 = load i32, ptr %7, align 4, !tbaa !18
%9 = getelementptr inbounds i8, ptr %5, i64 8
%10 = load i32, ptr %9, align 4, !tbaa !19
%11 = getelementptr inbounds i8, ptr %5, i64 12
%12 = load i32, ptr %11, align 4, !tbaa !20
%13 = add nsw i32 %12, %10
%14 = shl nsw i32 %13, 5
%15 = load i32, ptr %2, align 8, !tbaa !21
%16 = mul nsw i32 %14, %15
%17 = tail call i32 @mmio_vram(ptr noundef nonnull %0, i32 noundef %16, i32 noundef 4096, i32 noundef 0) #2
%18 = load i32, ptr %9, align 4, !tbaa !19
%19 = load i32, ptr %2, align 8, !tbaa !21
%20 = tail call i32 @mmio_refn(ptr noundef nonnull %0, i32 noundef 4294672, i32 noundef -2147483648, i32 noundef 12, i32 noundef %17) #2
%21 = tail call i32 @mmio_refn(ptr noundef nonnull %0, i32 noundef 4298824, i32 noundef 268435456, i32 noundef 12, i32 noundef %17) #2
%22 = tail call i32 @mmio_refn(ptr noundef nonnull %0, i32 noundef 4299820, i32 noundef 268435456, i32 noundef 12, i32 noundef %17) #2
%23 = shl i32 %8, 16
%24 = or i32 %23, %6
%25 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef 4216880, i32 noundef %24) #2
%26 = sdiv i32 %6, 4
%27 = shl i32 %26, 16
%28 = or disjoint i32 %27, 65535
%29 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef 4220100, i32 noundef %28) #2
%30 = getelementptr inbounds i8, ptr %2, i64 4
%31 = load i32, ptr %30, align 4, !tbaa !22
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %123
33: ; preds = %1
%34 = mul nsw i32 %19, %18
%35 = getelementptr inbounds i8, ptr %2, i64 8
%36 = getelementptr inbounds i8, ptr %2, i64 16
%37 = getelementptr inbounds i8, ptr %2, i64 24
%38 = load ptr, ptr %35, align 8, !tbaa !23
br label %39
39: ; preds = %33, %114
%40 = phi i32 [ %31, %33 ], [ %115, %114 ]
%41 = phi ptr [ %38, %33 ], [ %116, %114 ]
%42 = phi i64 [ 0, %33 ], [ %120, %114 ]
%43 = phi i32 [ 0, %33 ], [ %119, %114 ]
%44 = phi i32 [ %34, %33 ], [ %118, %114 ]
%45 = phi i32 [ 0, %33 ], [ %117, %114 ]
%46 = getelementptr inbounds i32, ptr %41, i64 %42
%47 = load i32, ptr %46, align 4, !tbaa !24
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %114
49: ; preds = %39
%50 = trunc nuw nsw i64 %42 to i32
br label %51
51: ; preds = %49, %102
%52 = phi i64 [ 0, %49 ], [ %105, %102 ]
%53 = phi i32 [ %43, %49 ], [ %104, %102 ]
%54 = phi i32 [ %44, %49 ], [ %103, %102 ]
%55 = phi i32 [ %45, %49 ], [ %106, %102 ]
%56 = load ptr, ptr %36, align 8, !tbaa !25
%57 = getelementptr inbounds ptr, ptr %56, i64 %42
%58 = load ptr, ptr %57, align 8, !tbaa !26
%59 = getelementptr inbounds i32, ptr %58, i64 %52
%60 = load i32, ptr %59, align 4, !tbaa !24
%61 = trunc nuw nsw i64 %52 to i32
%62 = tail call i32 @PPC_UNIT(i32 noundef %50, i32 noundef %61, i32 noundef 0) #2
%63 = load ptr, ptr %37, align 8, !tbaa !27
%64 = getelementptr inbounds i32, ptr %63, i64 %42
%65 = load i32, ptr %64, align 4, !tbaa !24
%66 = shl nuw i32 1, %61
%67 = and i32 %65, %66
%68 = icmp eq i32 %67, 0
br i1 %68, label %102, label %69
69: ; preds = %51
%70 = shl nsw i32 %55, 2
%71 = add nsw i32 %70, 4296352
%72 = mul nsw i32 %60, %8
%73 = mul nsw i32 %60, %6
%74 = add nsw i32 %62, 192
%75 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %74, i32 noundef %72) #2
%76 = add nsw i32 %62, 244
%77 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %76, i32 noundef %53) #2
%78 = load i32, ptr %9, align 4, !tbaa !19
%79 = load ptr, ptr %36, align 8, !tbaa !25
%80 = getelementptr inbounds ptr, ptr %79, i64 %42
%81 = load ptr, ptr %80, align 8, !tbaa !26
%82 = getelementptr inbounds i32, ptr %81, i64 %52
%83 = load i32, ptr %82, align 4, !tbaa !24
%84 = mul nsw i32 %83, %78
%85 = add nsw i32 %84, %53
%86 = add nsw i32 %62, 228
%87 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %86, i32 noundef %73) #2
%88 = add nsw i32 %62, 248
%89 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %88, i32 noundef %54) #2
%90 = load i32, ptr %11, align 4, !tbaa !20
%91 = load ptr, ptr %36, align 8, !tbaa !25
%92 = getelementptr inbounds ptr, ptr %91, i64 %42
%93 = load ptr, ptr %92, align 8, !tbaa !26
%94 = getelementptr inbounds i32, ptr %93, i64 %52
%95 = load i32, ptr %94, align 4, !tbaa !24
%96 = mul nsw i32 %95, %90
%97 = add nsw i32 %96, %54
%98 = sdiv i32 %72, 3
%99 = shl i32 %98, 16
%100 = or i32 %99, %72
%101 = tail call i32 @mmio_wr32(ptr noundef nonnull %0, i32 noundef %71, i32 noundef %100) #2
br label %102
102: ; preds = %51, %69
%103 = phi i32 [ %97, %69 ], [ %54, %51 ]
%104 = phi i32 [ %85, %69 ], [ %53, %51 ]
%105 = add nuw nsw i64 %52, 1
%106 = add nsw i32 %55, 1
%107 = load ptr, ptr %35, align 8, !tbaa !23
%108 = getelementptr inbounds i32, ptr %107, i64 %42
%109 = load i32, ptr %108, align 4, !tbaa !24
%110 = sext i32 %109 to i64
%111 = icmp slt i64 %105, %110
br i1 %111, label %51, label %112, !llvm.loop !28
112: ; preds = %102
%113 = load i32, ptr %30, align 4, !tbaa !22
br label %114
114: ; preds = %112, %39
%115 = phi i32 [ %40, %39 ], [ %113, %112 ]
%116 = phi ptr [ %41, %39 ], [ %107, %112 ]
%117 = phi i32 [ %45, %39 ], [ %106, %112 ]
%118 = phi i32 [ %44, %39 ], [ %103, %112 ]
%119 = phi i32 [ %43, %39 ], [ %104, %112 ]
%120 = add nuw nsw i64 %42, 1
%121 = sext i32 %115 to i64
%122 = icmp slt i64 %120, %121
br i1 %122, label %39, label %123, !llvm.loop !30
123: ; preds = %114, %1
ret void
}
declare i32 @mmio_vram(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmio_refn(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmio_wr32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PPC_UNIT(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"gf100_grctx", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 32}
!12 = !{!"gf100_gr", !13, i64 0, !13, i64 4, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_2__", !8, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"gf100_grctx_func", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!18 = !{!17, !13, i64 4}
!19 = !{!17, !13, i64 8}
!20 = !{!17, !13, i64 12}
!21 = !{!12, !13, i64 0}
!22 = !{!12, !13, i64 4}
!23 = !{!12, !8, i64 8}
!24 = !{!13, !13, i64 0}
!25 = !{!12, !8, i64 16}
!26 = !{!8, !8, i64 0}
!27 = !{!12, !8, i64 24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
| linux_drivers_gpu_drm_nouveau_nvkm_engine_gr_extr_ctxgm107.c_gm107_grctx_generate_attrib |
; ModuleID = 'AnghaBench/disque/deps/hiredis/extr_dict.c_dictDelete.c'
source_filename = "AnghaBench/disque/deps/hiredis/extr_dict.c_dictDelete.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_12__ = type { i64, i32, i32, ptr }
%struct.TYPE_11__ = type { ptr, i32 }
@DICT_ERR = dso_local local_unnamed_addr global i32 0, align 4
@DICT_OK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dictDelete], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @dictDelete(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = icmp eq i64 %3, 0
br i1 %4, label %38, label %5
5: ; preds = %2
%6 = tail call i32 @dictHashKey(ptr noundef nonnull %0, ptr noundef %1) #2
%7 = getelementptr inbounds %struct.TYPE_12__, ptr %0, i64 0, i32 1
%8 = load i32, ptr %7, align 8, !tbaa !12
%9 = and i32 %8, %6
%10 = getelementptr inbounds %struct.TYPE_12__, ptr %0, i64 0, i32 3
%11 = load ptr, ptr %10, align 8, !tbaa !13
%12 = zext i32 %9 to i64
%13 = getelementptr inbounds ptr, ptr %11, i64 %12
br label %14
14: ; preds = %19, %5
%15 = phi ptr [ %13, %5 ], [ %17, %19 ]
%16 = phi ptr [ null, %5 ], [ %17, %19 ]
%17 = load ptr, ptr %15, align 8, !tbaa !14
%18 = icmp eq ptr %17, null
br i1 %18, label %38, label %19
19: ; preds = %14
%20 = getelementptr inbounds %struct.TYPE_11__, ptr %17, i64 0, i32 1
%21 = load i32, ptr %20, align 8, !tbaa !15
%22 = tail call i64 @dictCompareHashKeys(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %21) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %14, label %24, !llvm.loop !17
24: ; preds = %19
%25 = icmp eq ptr %16, null
%26 = load ptr, ptr %17, align 8, !tbaa !19
br i1 %25, label %27, label %30
27: ; preds = %24
%28 = load ptr, ptr %10, align 8, !tbaa !13
%29 = getelementptr inbounds ptr, ptr %28, i64 %12
br label %30
30: ; preds = %24, %27
%31 = phi ptr [ %29, %27 ], [ %16, %24 ]
store ptr %26, ptr %31, align 8, !tbaa !14
%32 = tail call i32 @dictFreeEntryKey(ptr noundef nonnull %0, ptr noundef nonnull %17) #2
%33 = tail call i32 @dictFreeEntryVal(ptr noundef nonnull %0, ptr noundef nonnull %17) #2
%34 = tail call i32 @free(ptr noundef nonnull %17) #2
%35 = getelementptr inbounds %struct.TYPE_12__, ptr %0, i64 0, i32 2
%36 = load i32, ptr %35, align 4, !tbaa !20
%37 = add nsw i32 %36, -1
store i32 %37, ptr %35, align 4, !tbaa !20
br label %38
38: ; preds = %14, %2, %30
%39 = phi ptr [ @DICT_OK, %30 ], [ @DICT_ERR, %2 ], [ @DICT_ERR, %14 ]
%40 = load i32, ptr %39, align 4, !tbaa !21
ret i32 %40
}
declare i32 @dictHashKey(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @dictCompareHashKeys(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dictFreeEntryKey(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dictFreeEntryVal(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @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 0}
!6 = !{!"TYPE_12__", !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 = !{!6, !10, i64 8}
!13 = !{!6, !11, i64 16}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"TYPE_11__", !11, i64 0, !10, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!16, !11, i64 0}
!20 = !{!6, !10, i64 12}
!21 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/disque/deps/hiredis/extr_dict.c_dictDelete.c'
source_filename = "AnghaBench/disque/deps/hiredis/extr_dict.c_dictDelete.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DICT_ERR = common local_unnamed_addr global i32 0, align 4
@DICT_OK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dictDelete], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @dictDelete(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
br i1 %4, label %38, label %5
5: ; preds = %2
%6 = tail call i32 @dictHashKey(ptr noundef nonnull %0, ptr noundef %1) #2
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load i32, ptr %7, align 8, !tbaa !13
%9 = and i32 %8, %6
%10 = getelementptr inbounds i8, ptr %0, i64 16
%11 = load ptr, ptr %10, align 8, !tbaa !14
%12 = zext i32 %9 to i64
%13 = getelementptr inbounds ptr, ptr %11, i64 %12
br label %14
14: ; preds = %19, %5
%15 = phi ptr [ %13, %5 ], [ %17, %19 ]
%16 = phi ptr [ null, %5 ], [ %17, %19 ]
%17 = load ptr, ptr %15, align 8, !tbaa !15
%18 = icmp eq ptr %17, null
br i1 %18, label %38, label %19
19: ; preds = %14
%20 = getelementptr inbounds i8, ptr %17, i64 8
%21 = load i32, ptr %20, align 8, !tbaa !16
%22 = tail call i64 @dictCompareHashKeys(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %21) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %14, label %24, !llvm.loop !18
24: ; preds = %19
%25 = icmp eq ptr %16, null
%26 = load ptr, ptr %17, align 8, !tbaa !20
br i1 %25, label %27, label %30
27: ; preds = %24
%28 = load ptr, ptr %10, align 8, !tbaa !14
%29 = getelementptr inbounds ptr, ptr %28, i64 %12
br label %30
30: ; preds = %24, %27
%31 = phi ptr [ %29, %27 ], [ %16, %24 ]
store ptr %26, ptr %31, align 8, !tbaa !15
%32 = tail call i32 @dictFreeEntryKey(ptr noundef nonnull %0, ptr noundef nonnull %17) #2
%33 = tail call i32 @dictFreeEntryVal(ptr noundef nonnull %0, ptr noundef nonnull %17) #2
%34 = tail call i32 @free(ptr noundef nonnull %17) #2
%35 = getelementptr inbounds i8, ptr %0, i64 12
%36 = load i32, ptr %35, align 4, !tbaa !21
%37 = add nsw i32 %36, -1
store i32 %37, ptr %35, align 4, !tbaa !21
br label %38
38: ; preds = %14, %2, %30
%39 = phi ptr [ @DICT_OK, %30 ], [ @DICT_ERR, %2 ], [ @DICT_ERR, %14 ]
%40 = load i32, ptr %39, align 4, !tbaa !22
ret i32 %40
}
declare i32 @dictHashKey(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @dictCompareHashKeys(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dictFreeEntryKey(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dictFreeEntryVal(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @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 0}
!7 = !{!"TYPE_12__", !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 = !{!7, !11, i64 8}
!14 = !{!7, !12, i64 16}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !11, i64 8}
!17 = !{!"TYPE_11__", !12, i64 0, !11, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!17, !12, i64 0}
!21 = !{!7, !11, i64 12}
!22 = !{!11, !11, i64 0}
| disque_deps_hiredis_extr_dict.c_dictDelete |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_athub_v2_0.c_athub_v2_0_update_medium_grain_light_sleep.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_athub_v2_0.c_athub_v2_0_update_medium_grain_light_sleep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ATHUB = dso_local local_unnamed_addr global i32 0, align 4
@mmATHUB_MISC_CNTL = dso_local local_unnamed_addr global i32 0, align 4
@AMD_CG_SUPPORT_MC_LS = dso_local local_unnamed_addr global i32 0, align 4
@AMD_CG_SUPPORT_HDP_LS = dso_local local_unnamed_addr global i32 0, align 4
@ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @athub_v2_0_update_medium_grain_light_sleep], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @athub_v2_0_update_medium_grain_light_sleep(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr @ATHUB, align 4, !tbaa !5
%4 = load i32, ptr @mmATHUB_MISC_CNTL, align 4, !tbaa !5
%5 = tail call i32 @RREG32_SOC15(i32 noundef %3, i32 noundef 0, i32 noundef %4) #2
%6 = icmp eq i32 %1, 0
br i1 %6, label %19, label %7
7: ; preds = %2
%8 = load i32, ptr %0, align 4, !tbaa !9
%9 = load i32, ptr @AMD_CG_SUPPORT_MC_LS, align 4, !tbaa !5
%10 = and i32 %9, %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %19, label %12
12: ; preds = %7
%13 = load i32, ptr @AMD_CG_SUPPORT_HDP_LS, align 4, !tbaa !5
%14 = and i32 %13, %8
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i32, ptr @ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK, align 4, !tbaa !5
%18 = or i32 %17, %5
br label %23
19: ; preds = %12, %7, %2
%20 = load i32, ptr @ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK, align 4, !tbaa !5
%21 = xor i32 %20, -1
%22 = and i32 %5, %21
br label %23
23: ; preds = %19, %16
%24 = phi i32 [ %18, %16 ], [ %22, %19 ]
%25 = icmp eq i32 %5, %24
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = load i32, ptr @ATHUB, align 4, !tbaa !5
%28 = load i32, ptr @mmATHUB_MISC_CNTL, align 4, !tbaa !5
%29 = tail call i32 @WREG32_SOC15(i32 noundef %27, i32 noundef 0, i32 noundef %28, i32 noundef %24) #2
br label %30
30: ; preds = %26, %23
ret void
}
declare i32 @RREG32_SOC15(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @WREG32_SOC15(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_athub_v2_0.c_athub_v2_0_update_medium_grain_light_sleep.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_athub_v2_0.c_athub_v2_0_update_medium_grain_light_sleep.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ATHUB = common local_unnamed_addr global i32 0, align 4
@mmATHUB_MISC_CNTL = common local_unnamed_addr global i32 0, align 4
@AMD_CG_SUPPORT_MC_LS = common local_unnamed_addr global i32 0, align 4
@AMD_CG_SUPPORT_HDP_LS = common local_unnamed_addr global i32 0, align 4
@ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @athub_v2_0_update_medium_grain_light_sleep], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @athub_v2_0_update_medium_grain_light_sleep(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr @ATHUB, align 4, !tbaa !6
%4 = load i32, ptr @mmATHUB_MISC_CNTL, align 4, !tbaa !6
%5 = tail call i32 @RREG32_SOC15(i32 noundef %3, i32 noundef 0, i32 noundef %4) #2
%6 = icmp eq i32 %1, 0
br i1 %6, label %19, label %7
7: ; preds = %2
%8 = load i32, ptr %0, align 4, !tbaa !10
%9 = load i32, ptr @AMD_CG_SUPPORT_MC_LS, align 4, !tbaa !6
%10 = and i32 %9, %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %19, label %12
12: ; preds = %7
%13 = load i32, ptr @AMD_CG_SUPPORT_HDP_LS, align 4, !tbaa !6
%14 = and i32 %13, %8
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i32, ptr @ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK, align 4, !tbaa !6
%18 = or i32 %17, %5
br label %23
19: ; preds = %12, %7, %2
%20 = load i32, ptr @ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK, align 4, !tbaa !6
%21 = xor i32 %20, -1
%22 = and i32 %5, %21
br label %23
23: ; preds = %19, %16
%24 = phi i32 [ %18, %16 ], [ %22, %19 ]
%25 = icmp eq i32 %5, %24
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = load i32, ptr @ATHUB, align 4, !tbaa !6
%28 = load i32, ptr @mmATHUB_MISC_CNTL, align 4, !tbaa !6
%29 = tail call i32 @WREG32_SOC15(i32 noundef %27, i32 noundef 0, i32 noundef %28, i32 noundef %24) #2
br label %30
30: ; preds = %26, %23
ret void
}
declare i32 @RREG32_SOC15(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @WREG32_SOC15(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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", !7, i64 0}
| linux_drivers_gpu_drm_amd_amdgpu_extr_athub_v2_0.c_athub_v2_0_update_medium_grain_light_sleep |
; ModuleID = 'AnghaBench/libgit2/tests/worktree/extr_reflog.c_test_worktree_reflog__cleanup.c'
source_filename = "AnghaBench/libgit2/tests/worktree/extr_reflog.c_test_worktree_reflog__cleanup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@fixture = dso_local global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @test_worktree_reflog__cleanup() local_unnamed_addr #0 {
%1 = tail call i32 @cleanup_fixture_worktree(ptr noundef nonnull @fixture) #2
ret void
}
declare i32 @cleanup_fixture_worktree(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/libgit2/tests/worktree/extr_reflog.c_test_worktree_reflog__cleanup.c'
source_filename = "AnghaBench/libgit2/tests/worktree/extr_reflog.c_test_worktree_reflog__cleanup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@fixture = common global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_worktree_reflog__cleanup() local_unnamed_addr #0 {
%1 = tail call i32 @cleanup_fixture_worktree(ptr noundef nonnull @fixture) #2
ret void
}
declare i32 @cleanup_fixture_worktree(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)"}
| libgit2_tests_worktree_extr_reflog.c_test_worktree_reflog__cleanup |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/s5p-mfc/extr_s5p_mfc.c_s5p_mfc_mmap.c'
source_filename = "AnghaBench/linux/drivers/media/platform/s5p-mfc/extr_s5p_mfc.c_s5p_mfc_mmap.c"
target datalayout = "e-m:e-p270:32:32-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.s5p_mfc_ctx = type { i32, i32 }
@PAGE_SHIFT = dso_local local_unnamed_addr global i64 0, align 8
@DST_QUEUE_OFF_BASE = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [16 x i8] c"mmaping source\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"mmaping destination\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @s5p_mfc_mmap], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @s5p_mfc_mmap(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call ptr @fh_to_ctx(i32 noundef %3) #2
%5 = load i64, ptr %1, align 8, !tbaa !10
%6 = load i64, ptr @PAGE_SHIFT, align 8, !tbaa !13
%7 = shl i64 %5, %6
%8 = load i64, ptr @DST_QUEUE_OFF_BASE, align 8, !tbaa !13
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i32 @mfc_debug(i32 noundef 2, ptr noundef nonnull @.str) #2
%12 = getelementptr inbounds %struct.s5p_mfc_ctx, ptr %4, i64 0, i32 1
%13 = tail call i32 @vb2_mmap(ptr noundef nonnull %12, ptr noundef nonnull %1) #2
br label %22
14: ; preds = %2
%15 = tail call i32 @mfc_debug(i32 noundef 2, ptr noundef nonnull @.str.1) #2
%16 = load i64, ptr @DST_QUEUE_OFF_BASE, align 8, !tbaa !13
%17 = load i64, ptr @PAGE_SHIFT, align 8, !tbaa !13
%18 = lshr i64 %16, %17
%19 = load i64, ptr %1, align 8, !tbaa !10
%20 = sub i64 %19, %18
store i64 %20, ptr %1, align 8, !tbaa !10
%21 = tail call i32 @vb2_mmap(ptr noundef %4, ptr noundef nonnull %1) #2
br label %22
22: ; preds = %14, %10
%23 = phi i32 [ %13, %10 ], [ %21, %14 ]
ret i32 %23
}
declare ptr @fh_to_ctx(i32 noundef) local_unnamed_addr #1
declare i32 @mfc_debug(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @vb2_mmap(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"file", !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 = !{!"vm_area_struct", !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/s5p-mfc/extr_s5p_mfc.c_s5p_mfc_mmap.c'
source_filename = "AnghaBench/linux/drivers/media/platform/s5p-mfc/extr_s5p_mfc.c_s5p_mfc_mmap.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_SHIFT = common local_unnamed_addr global i64 0, align 8
@DST_QUEUE_OFF_BASE = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [16 x i8] c"mmaping source\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"mmaping destination\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @s5p_mfc_mmap], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @s5p_mfc_mmap(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call ptr @fh_to_ctx(i32 noundef %3) #2
%5 = load i64, ptr %1, align 8, !tbaa !11
%6 = load i64, ptr @PAGE_SHIFT, align 8, !tbaa !14
%7 = shl i64 %5, %6
%8 = load i64, ptr @DST_QUEUE_OFF_BASE, align 8, !tbaa !14
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i32 @mfc_debug(i32 noundef 2, ptr noundef nonnull @.str) #2
%12 = getelementptr inbounds i8, ptr %4, i64 4
%13 = tail call i32 @vb2_mmap(ptr noundef nonnull %12, ptr noundef nonnull %1) #2
br label %22
14: ; preds = %2
%15 = tail call i32 @mfc_debug(i32 noundef 2, ptr noundef nonnull @.str.1) #2
%16 = load i64, ptr @DST_QUEUE_OFF_BASE, align 8, !tbaa !14
%17 = load i64, ptr @PAGE_SHIFT, align 8, !tbaa !14
%18 = lshr i64 %16, %17
%19 = load i64, ptr %1, align 8, !tbaa !11
%20 = sub i64 %19, %18
store i64 %20, ptr %1, align 8, !tbaa !11
%21 = tail call i32 @vb2_mmap(ptr noundef %4, ptr noundef nonnull %1) #2
br label %22
22: ; preds = %14, %10
%23 = phi i32 [ %13, %10 ], [ %21, %14 ]
ret i32 %23
}
declare ptr @fh_to_ctx(i32 noundef) local_unnamed_addr #1
declare i32 @mfc_debug(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @vb2_mmap(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"file", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"vm_area_struct", !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!13, !13, i64 0}
| linux_drivers_media_platform_s5p-mfc_extr_s5p_mfc.c_s5p_mfc_mmap |
; ModuleID = 'AnghaBench/kphp-kdb/mutual-friends/extr_mf-prepare-file.c_main.c'
source_filename = "AnghaBench/kphp-kdb/mutual-friends/extr_mf-prepare-file.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i32, i32 }
@progname = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [12 x i8] c"hi:o:U:E:u:\00", align 1
@optarg = dso_local local_unnamed_addr global ptr null, align 8
@in_name = dso_local local_unnamed_addr global ptr null, align 8
@out_name = dso_local local_unnamed_addr global ptr null, align 8
@userN = dso_local local_unnamed_addr global i32 0, align 4
@engineN = dso_local local_unnamed_addr global i32 0, align 4
@username = dso_local local_unnamed_addr global ptr null, align 8
@optind = dso_local local_unnamed_addr global i32 0, align 4
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"fatal: cannot change user to %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"(none)\00", align 1
@v = dso_local local_unnamed_addr global ptr null, align 8
@fd = dso_local local_unnamed_addr global ptr null, align 8
@fcurr = dso_local local_unnamed_addr global ptr null, align 8
@A = dso_local local_unnamed_addr global i32 0, align 4
@B = dso_local local_unnamed_addr global i32 0, align 4
@l_len = dso_local local_unnamed_addr global ptr null, align 8
@SEEK_SET = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i64, align 8
%4 = tail call i32 (...) @set_debug_handlers() #5
%5 = load ptr, ptr %1, align 8, !tbaa !5
store ptr %5, ptr @progname, align 8, !tbaa !5
%6 = icmp eq i32 %0, 1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (...) @usage() #5
br label %154
9: ; preds = %2, %11
%10 = tail call i32 @getopt(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str) #5
switch i32 %10, label %11 [
i32 -1, label %26
i32 104, label %12
i32 105, label %14
i32 111, label %16
i32 85, label %18
i32 69, label %21
i32 117, label %24
]
11: ; preds = %9, %24, %21, %18, %16, %14
br label %9, !llvm.loop !9
12: ; preds = %9
%13 = tail call i32 (...) @usage() #5
br label %154
14: ; preds = %9
%15 = load ptr, ptr @optarg, align 8, !tbaa !5
store ptr %15, ptr @in_name, align 8, !tbaa !5
br label %11
16: ; preds = %9
%17 = load ptr, ptr @optarg, align 8, !tbaa !5
store ptr %17, ptr @out_name, align 8, !tbaa !5
br label %11
18: ; preds = %9
%19 = load ptr, ptr @optarg, align 8, !tbaa !5
%20 = tail call i32 @atoi(ptr nocapture noundef %19)
store i32 %20, ptr @userN, align 4, !tbaa !11
br label %11
21: ; preds = %9
%22 = load ptr, ptr @optarg, align 8, !tbaa !5
%23 = tail call i32 @atoi(ptr nocapture noundef %22)
store i32 %23, ptr @engineN, align 4, !tbaa !11
br label %11
24: ; preds = %9
%25 = load ptr, ptr @optarg, align 8, !tbaa !5
store ptr %25, ptr @username, align 8, !tbaa !5
br label %11
26: ; preds = %9
%27 = load i32, ptr @optind, align 4, !tbaa !11
%28 = icmp eq i32 %27, %0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 (...) @usage() #5
br label %154
31: ; preds = %26
%32 = load ptr, ptr @username, align 8, !tbaa !5
%33 = tail call i64 @change_user(ptr noundef %32) #5
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load i32, ptr @stderr, align 4, !tbaa !11
%37 = load ptr, ptr @username, align 8
%38 = icmp eq ptr %37, null
%39 = select i1 %38, ptr @.str.2, ptr %37
%40 = tail call i32 @fprintf(i32 noundef %36, ptr noundef nonnull @.str.1, ptr noundef nonnull %39) #5
%41 = tail call i32 @exit(i32 noundef 1) #6
unreachable
42: ; preds = %31
%43 = load i32, ptr @userN, align 4, !tbaa !11
%44 = icmp sgt i32 %43, -1
%45 = zext i1 %44 to i32
%46 = tail call i32 @assert(i32 noundef %45) #5
%47 = load i32, ptr @engineN, align 4, !tbaa !11
%48 = icmp sgt i32 %47, -1
%49 = zext i1 %48 to i32
%50 = tail call i32 @assert(i32 noundef %49) #5
%51 = load i32, ptr @engineN, align 4, !tbaa !11
%52 = add nsw i32 %51, 1
%53 = tail call i32 @init_files(i32 noundef %52) #5
%54 = load i32, ptr @userN, align 4, !tbaa !11
%55 = load i32, ptr @engineN, align 4, !tbaa !11
%56 = sdiv i32 %54, %55
%57 = shl i32 %56, 2
%58 = add i32 %57, 8
%59 = tail call ptr @qmalloc(i32 noundef %58) #5
store ptr %59, ptr @v, align 8, !tbaa !5
%60 = icmp ne ptr %59, null
%61 = zext i1 %60 to i32
%62 = tail call i32 @assert(i32 noundef %61) #5
%63 = icmp slt i32 %56, 0
br i1 %63, label %74, label %64
64: ; preds = %42
%65 = add nuw i32 %56, 1
%66 = zext i32 %65 to i64
br label %67
67: ; preds = %64, %67
%68 = phi i64 [ 0, %64 ], [ %72, %67 ]
%69 = load ptr, ptr @v, align 8, !tbaa !5
%70 = getelementptr inbounds %struct.TYPE_5__, ptr %69, i64 %68
%71 = tail call i32 @vct_init(ptr noundef %70) #5
%72 = add nuw nsw i64 %68, 1
%73 = icmp eq i64 %72, %66
br i1 %73, label %74, label %67, !llvm.loop !13
74: ; preds = %67, %42
%75 = load ptr, ptr @in_name, align 8, !tbaa !5
%76 = icmp eq ptr %75, null
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = tail call i32 @open_file(i32 noundef 0, ptr noundef nonnull %75, i32 noundef 0) #5
br label %81
79: ; preds = %74
%80 = load ptr, ptr @fd, align 8, !tbaa !5
store i64 0, ptr %80, align 8, !tbaa !14
br label %81
81: ; preds = %79, %77
%82 = load ptr, ptr @fcurr, align 8, !tbaa !5
store i64 0, ptr %82, align 8, !tbaa !14
%83 = load ptr, ptr @out_name, align 8, !tbaa !5
%84 = tail call i32 @open_file(i32 noundef 1, ptr noundef %83, i32 noundef 2) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
store i64 -1, ptr %3, align 8, !tbaa !16
%85 = load ptr, ptr @fd, align 8, !tbaa !5
%86 = getelementptr inbounds i64, ptr %85, i64 1
%87 = load i64, ptr %86, align 8, !tbaa !14
%88 = call i32 @write(i64 noundef %87, ptr noundef nonnull %3, i32 noundef 8) #5
%89 = call i64 (...) @my_read() #5
%90 = icmp eq i64 %89, 0
br i1 %90, label %102, label %91
91: ; preds = %81, %91
%92 = load i32, ptr @A, align 4, !tbaa !11
%93 = load i32, ptr @engineN, align 4, !tbaa !11
%94 = sdiv i32 %92, %93
%95 = load ptr, ptr @v, align 8, !tbaa !5
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds %struct.TYPE_5__, ptr %95, i64 %96
%98 = load i32, ptr @B, align 4, !tbaa !11
%99 = call i32 @vct_add(ptr noundef %97, i32 noundef %98) #5
%100 = call i64 (...) @my_read() #5
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %91, !llvm.loop !18
102: ; preds = %91, %81
%103 = add i32 %57, 16
%104 = sext i32 %103 to i64
store i64 %104, ptr %3, align 8, !tbaa !16
%105 = call ptr @qmalloc0(i32 noundef %103) #5
store ptr %105, ptr @l_len, align 8, !tbaa !5
%106 = add i32 %56, 1
%107 = sext i32 %106 to i64
store i64 %107, ptr %105, align 8, !tbaa !16
%108 = load ptr, ptr @fd, align 8, !tbaa !5
%109 = getelementptr inbounds i64, ptr %108, i64 1
%110 = load i64, ptr %109, align 8, !tbaa !14
%111 = load i32, ptr @SEEK_SET, align 4, !tbaa !11
%112 = call i32 @lseek(i64 noundef %110, i32 noundef %103, i32 noundef %111) #5
%113 = icmp eq i32 %112, %103
%114 = zext i1 %113 to i32
%115 = call i32 @assert(i32 noundef %114) #5
br i1 %63, label %135, label %116
116: ; preds = %102
%117 = zext i32 %106 to i64
br label %118
118: ; preds = %116, %118
%119 = phi i64 [ 0, %116 ], [ %126, %118 ]
%120 = load ptr, ptr @v, align 8, !tbaa !5
%121 = getelementptr inbounds %struct.TYPE_5__, ptr %120, i64 %119
%122 = load i32, ptr %121, align 4, !tbaa !19
%123 = sext i32 %122 to i64
%124 = shl nsw i64 %123, 2
%125 = load ptr, ptr @l_len, align 8, !tbaa !5
%126 = add nuw nsw i64 %119, 1
%127 = getelementptr inbounds i64, ptr %125, i64 %126
store i64 %124, ptr %127, align 8, !tbaa !16
%128 = load i64, ptr %3, align 8, !tbaa !16
%129 = add i64 %128, %124
store i64 %129, ptr %3, align 8, !tbaa !16
%130 = getelementptr inbounds %struct.TYPE_5__, ptr %120, i64 %119, i32 1
%131 = load i32, ptr %130, align 4, !tbaa !21
%132 = shl i32 %122, 2
%133 = call i32 @my_write(i32 noundef %131, i32 noundef %132) #5
%134 = icmp eq i64 %126, %117
br i1 %134, label %135, label %118, !llvm.loop !22
135: ; preds = %118, %102
%136 = call i32 (...) @flush_w_buff() #5
%137 = load ptr, ptr @fd, align 8, !tbaa !5
%138 = getelementptr inbounds i64, ptr %137, i64 1
%139 = load i64, ptr %138, align 8, !tbaa !14
%140 = load i32, ptr @SEEK_SET, align 4, !tbaa !11
%141 = call i32 @lseek(i64 noundef %139, i32 noundef 0, i32 noundef %140) #5
%142 = icmp eq i32 %141, 0
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 noundef %143) #5
%145 = load ptr, ptr @fd, align 8, !tbaa !5
%146 = getelementptr inbounds i64, ptr %145, i64 1
%147 = load i64, ptr %146, align 8, !tbaa !14
%148 = call i32 @write(i64 noundef %147, ptr noundef nonnull %3, i32 noundef 8) #5
%149 = load ptr, ptr @fd, align 8, !tbaa !5
%150 = getelementptr inbounds i64, ptr %149, i64 1
%151 = load i64, ptr %150, align 8, !tbaa !14
%152 = load ptr, ptr @l_len, align 8, !tbaa !5
%153 = call i32 @write(i64 noundef %151, ptr noundef %152, i32 noundef %58) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br label %154
154: ; preds = %135, %29, %12, %7
%155 = phi i32 [ 2, %7 ], [ 2, %12 ], [ 2, %29 ], [ 0, %135 ]
ret i32 %155
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @set_debug_handlers(...) local_unnamed_addr #2
declare i32 @usage(...) local_unnamed_addr #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @atoi(ptr nocapture noundef) local_unnamed_addr #3
declare i64 @change_user(ptr noundef) local_unnamed_addr #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i32 @init_files(i32 noundef) local_unnamed_addr #2
declare ptr @qmalloc(i32 noundef) local_unnamed_addr #2
declare i32 @vct_init(ptr noundef) local_unnamed_addr #2
declare i32 @open_file(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @write(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @my_read(...) local_unnamed_addr #2
declare i32 @vct_add(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 ptr @qmalloc0(i32 noundef) local_unnamed_addr #2
declare i32 @lseek(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @my_write(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @flush_w_buff(...) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !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}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = !{!20, !12, i64 0}
!20 = !{!"TYPE_5__", !12, i64 0, !12, i64 4}
!21 = !{!20, !12, i64 4}
!22 = distinct !{!22, !10}
| ; ModuleID = 'AnghaBench/kphp-kdb/mutual-friends/extr_mf-prepare-file.c_main.c'
source_filename = "AnghaBench/kphp-kdb/mutual-friends/extr_mf-prepare-file.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { i32, i32 }
@progname = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [12 x i8] c"hi:o:U:E:u:\00", align 1
@optarg = common local_unnamed_addr global ptr null, align 8
@in_name = common local_unnamed_addr global ptr null, align 8
@out_name = common local_unnamed_addr global ptr null, align 8
@userN = common local_unnamed_addr global i32 0, align 4
@engineN = common local_unnamed_addr global i32 0, align 4
@username = common local_unnamed_addr global ptr null, align 8
@optind = common local_unnamed_addr global i32 0, align 4
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"fatal: cannot change user to %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"(none)\00", align 1
@v = common local_unnamed_addr global ptr null, align 8
@fd = common local_unnamed_addr global ptr null, align 8
@fcurr = common local_unnamed_addr global ptr null, align 8
@A = common local_unnamed_addr global i32 0, align 4
@B = common local_unnamed_addr global i32 0, align 4
@l_len = common local_unnamed_addr global ptr null, align 8
@SEEK_SET = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 3) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca i64, align 8
%4 = tail call i32 @set_debug_handlers() #5
%5 = load ptr, ptr %1, align 8, !tbaa !6
store ptr %5, ptr @progname, align 8, !tbaa !6
%6 = icmp eq i32 %0, 1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @usage() #5
br label %154
9: ; preds = %2, %11
%10 = tail call i32 @getopt(i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @.str) #5
switch i32 %10, label %11 [
i32 -1, label %26
i32 104, label %12
i32 105, label %14
i32 111, label %16
i32 85, label %18
i32 69, label %21
i32 117, label %24
]
11: ; preds = %9, %24, %21, %18, %16, %14
br label %9, !llvm.loop !10
12: ; preds = %9
%13 = tail call i32 @usage() #5
br label %154
14: ; preds = %9
%15 = load ptr, ptr @optarg, align 8, !tbaa !6
store ptr %15, ptr @in_name, align 8, !tbaa !6
br label %11
16: ; preds = %9
%17 = load ptr, ptr @optarg, align 8, !tbaa !6
store ptr %17, ptr @out_name, align 8, !tbaa !6
br label %11
18: ; preds = %9
%19 = load ptr, ptr @optarg, align 8, !tbaa !6
%20 = tail call i32 @atoi(ptr nocapture noundef %19)
store i32 %20, ptr @userN, align 4, !tbaa !12
br label %11
21: ; preds = %9
%22 = load ptr, ptr @optarg, align 8, !tbaa !6
%23 = tail call i32 @atoi(ptr nocapture noundef %22)
store i32 %23, ptr @engineN, align 4, !tbaa !12
br label %11
24: ; preds = %9
%25 = load ptr, ptr @optarg, align 8, !tbaa !6
store ptr %25, ptr @username, align 8, !tbaa !6
br label %11
26: ; preds = %9
%27 = load i32, ptr @optind, align 4, !tbaa !12
%28 = icmp eq i32 %27, %0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 @usage() #5
br label %154
31: ; preds = %26
%32 = load ptr, ptr @username, align 8, !tbaa !6
%33 = tail call i64 @change_user(ptr noundef %32) #5
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %42
35: ; preds = %31
%36 = load i32, ptr @stderr, align 4, !tbaa !12
%37 = load ptr, ptr @username, align 8
%38 = icmp eq ptr %37, null
%39 = select i1 %38, ptr @.str.2, ptr %37
%40 = tail call i32 @fprintf(i32 noundef %36, ptr noundef nonnull @.str.1, ptr noundef nonnull %39) #5
%41 = tail call i32 @exit(i32 noundef 1) #6
unreachable
42: ; preds = %31
%43 = load i32, ptr @userN, align 4, !tbaa !12
%44 = icmp sgt i32 %43, -1
%45 = zext i1 %44 to i32
%46 = tail call i32 @assert(i32 noundef %45) #5
%47 = load i32, ptr @engineN, align 4, !tbaa !12
%48 = icmp sgt i32 %47, -1
%49 = zext i1 %48 to i32
%50 = tail call i32 @assert(i32 noundef %49) #5
%51 = load i32, ptr @engineN, align 4, !tbaa !12
%52 = add nsw i32 %51, 1
%53 = tail call i32 @init_files(i32 noundef %52) #5
%54 = load i32, ptr @userN, align 4, !tbaa !12
%55 = load i32, ptr @engineN, align 4, !tbaa !12
%56 = sdiv i32 %54, %55
%57 = shl i32 %56, 2
%58 = add i32 %57, 8
%59 = tail call ptr @qmalloc(i32 noundef %58) #5
store ptr %59, ptr @v, align 8, !tbaa !6
%60 = icmp ne ptr %59, null
%61 = zext i1 %60 to i32
%62 = tail call i32 @assert(i32 noundef %61) #5
%63 = icmp slt i32 %56, 0
br i1 %63, label %74, label %64
64: ; preds = %42
%65 = add nuw i32 %56, 1
%66 = zext i32 %65 to i64
br label %67
67: ; preds = %64, %67
%68 = phi i64 [ 0, %64 ], [ %72, %67 ]
%69 = load ptr, ptr @v, align 8, !tbaa !6
%70 = getelementptr inbounds %struct.TYPE_5__, ptr %69, i64 %68
%71 = tail call i32 @vct_init(ptr noundef %70) #5
%72 = add nuw nsw i64 %68, 1
%73 = icmp eq i64 %72, %66
br i1 %73, label %74, label %67, !llvm.loop !14
74: ; preds = %67, %42
%75 = load ptr, ptr @in_name, align 8, !tbaa !6
%76 = icmp eq ptr %75, null
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = tail call i32 @open_file(i32 noundef 0, ptr noundef nonnull %75, i32 noundef 0) #5
br label %81
79: ; preds = %74
%80 = load ptr, ptr @fd, align 8, !tbaa !6
store i64 0, ptr %80, align 8, !tbaa !15
br label %81
81: ; preds = %79, %77
%82 = load ptr, ptr @fcurr, align 8, !tbaa !6
store i64 0, ptr %82, align 8, !tbaa !15
%83 = load ptr, ptr @out_name, align 8, !tbaa !6
%84 = tail call i32 @open_file(i32 noundef 1, ptr noundef %83, i32 noundef 2) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
store i64 -1, ptr %3, align 8, !tbaa !17
%85 = load ptr, ptr @fd, align 8, !tbaa !6
%86 = getelementptr inbounds i8, ptr %85, i64 8
%87 = load i64, ptr %86, align 8, !tbaa !15
%88 = call i32 @write(i64 noundef %87, ptr noundef nonnull %3, i32 noundef 8) #5
%89 = call i64 @my_read() #5
%90 = icmp eq i64 %89, 0
br i1 %90, label %102, label %91
91: ; preds = %81, %91
%92 = load i32, ptr @A, align 4, !tbaa !12
%93 = load i32, ptr @engineN, align 4, !tbaa !12
%94 = sdiv i32 %92, %93
%95 = load ptr, ptr @v, align 8, !tbaa !6
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds %struct.TYPE_5__, ptr %95, i64 %96
%98 = load i32, ptr @B, align 4, !tbaa !12
%99 = call i32 @vct_add(ptr noundef %97, i32 noundef %98) #5
%100 = call i64 @my_read() #5
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %91, !llvm.loop !19
102: ; preds = %91, %81
%103 = add i32 %57, 16
%104 = sext i32 %103 to i64
store i64 %104, ptr %3, align 8, !tbaa !17
%105 = call ptr @qmalloc0(i32 noundef %103) #5
store ptr %105, ptr @l_len, align 8, !tbaa !6
%106 = add i32 %56, 1
%107 = sext i32 %106 to i64
store i64 %107, ptr %105, align 8, !tbaa !17
%108 = load ptr, ptr @fd, align 8, !tbaa !6
%109 = getelementptr inbounds i8, ptr %108, i64 8
%110 = load i64, ptr %109, align 8, !tbaa !15
%111 = load i32, ptr @SEEK_SET, align 4, !tbaa !12
%112 = call i32 @lseek(i64 noundef %110, i32 noundef %103, i32 noundef %111) #5
%113 = icmp eq i32 %112, %103
%114 = zext i1 %113 to i32
%115 = call i32 @assert(i32 noundef %114) #5
br i1 %63, label %135, label %116
116: ; preds = %102
%117 = zext i32 %106 to i64
br label %118
118: ; preds = %116, %118
%119 = phi i64 [ 0, %116 ], [ %126, %118 ]
%120 = load ptr, ptr @v, align 8, !tbaa !6
%121 = getelementptr inbounds %struct.TYPE_5__, ptr %120, i64 %119
%122 = load i32, ptr %121, align 4, !tbaa !20
%123 = sext i32 %122 to i64
%124 = shl nsw i64 %123, 2
%125 = load ptr, ptr @l_len, align 8, !tbaa !6
%126 = add nuw nsw i64 %119, 1
%127 = getelementptr inbounds i64, ptr %125, i64 %126
store i64 %124, ptr %127, align 8, !tbaa !17
%128 = load i64, ptr %3, align 8, !tbaa !17
%129 = add i64 %128, %124
store i64 %129, ptr %3, align 8, !tbaa !17
%130 = getelementptr inbounds i8, ptr %121, i64 4
%131 = load i32, ptr %130, align 4, !tbaa !22
%132 = shl i32 %122, 2
%133 = call i32 @my_write(i32 noundef %131, i32 noundef %132) #5
%134 = icmp eq i64 %126, %117
br i1 %134, label %135, label %118, !llvm.loop !23
135: ; preds = %118, %102
%136 = call i32 @flush_w_buff() #5
%137 = load ptr, ptr @fd, align 8, !tbaa !6
%138 = getelementptr inbounds i8, ptr %137, i64 8
%139 = load i64, ptr %138, align 8, !tbaa !15
%140 = load i32, ptr @SEEK_SET, align 4, !tbaa !12
%141 = call i32 @lseek(i64 noundef %139, i32 noundef 0, i32 noundef %140) #5
%142 = icmp eq i32 %141, 0
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 noundef %143) #5
%145 = load ptr, ptr @fd, align 8, !tbaa !6
%146 = getelementptr inbounds i8, ptr %145, i64 8
%147 = load i64, ptr %146, align 8, !tbaa !15
%148 = call i32 @write(i64 noundef %147, ptr noundef nonnull %3, i32 noundef 8) #5
%149 = load ptr, ptr @fd, align 8, !tbaa !6
%150 = getelementptr inbounds i8, ptr %149, i64 8
%151 = load i64, ptr %150, align 8, !tbaa !15
%152 = load ptr, ptr @l_len, align 8, !tbaa !6
%153 = call i32 @write(i64 noundef %151, ptr noundef %152, i32 noundef %58) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
br label %154
154: ; preds = %135, %29, %12, %7
%155 = phi i32 [ 2, %7 ], [ 2, %12 ], [ 2, %29 ], [ 0, %135 ]
ret i32 %155
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @set_debug_handlers(...) local_unnamed_addr #2
declare i32 @usage(...) local_unnamed_addr #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @atoi(ptr nocapture noundef) local_unnamed_addr #3
declare i64 @change_user(ptr noundef) local_unnamed_addr #2
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i32 @init_files(i32 noundef) local_unnamed_addr #2
declare ptr @qmalloc(i32 noundef) local_unnamed_addr #2
declare i32 @vct_init(ptr noundef) local_unnamed_addr #2
declare i32 @open_file(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @write(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @my_read(...) local_unnamed_addr #2
declare i32 @vct_add(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 ptr @qmalloc0(i32 noundef) local_unnamed_addr #2
declare i32 @lseek(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @my_write(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @flush_w_buff(...) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = distinct !{!14, !11}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !8, i64 0}
!19 = distinct !{!19, !11}
!20 = !{!21, !13, i64 0}
!21 = !{!"TYPE_5__", !13, i64 0, !13, i64 4}
!22 = !{!21, !13, i64 4}
!23 = distinct !{!23, !11}
| kphp-kdb_mutual-friends_extr_mf-prepare-file.c_main |
; ModuleID = 'AnghaBench/linux/drivers/hwmon/extr_pc87427.c_fan_input_show.c'
source_filename = "AnghaBench/linux/drivers/hwmon/extr_pc87427.c_fan_input_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"
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @fan_input_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @fan_input_show(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call ptr @pc87427_update_device(ptr noundef %0) #2
%5 = tail call ptr @to_sensor_dev_attr(ptr noundef %1) #2
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = load ptr, ptr %4, align 8, !tbaa !10
%8 = sext i32 %6 to i64
%9 = getelementptr inbounds i32, ptr %7, i64 %8
%10 = load i32, ptr %9, align 4, !tbaa !13
%11 = tail call i32 @fan_from_reg(i32 noundef %10) #2
%12 = tail call i32 @sprintf(ptr noundef %2, ptr noundef nonnull @.str, i32 noundef %11) #2
ret i32 %12
}
declare ptr @pc87427_update_device(ptr noundef) local_unnamed_addr #1
declare ptr @to_sensor_dev_attr(ptr noundef) local_unnamed_addr #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fan_from_reg(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_2__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"pc87427_data", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/hwmon/extr_pc87427.c_fan_input_show.c'
source_filename = "AnghaBench/linux/drivers/hwmon/extr_pc87427.c_fan_input_show.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @fan_input_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @fan_input_show(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call ptr @pc87427_update_device(ptr noundef %0) #2
%5 = tail call ptr @to_sensor_dev_attr(ptr noundef %1) #2
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = load ptr, ptr %4, align 8, !tbaa !11
%8 = sext i32 %6 to i64
%9 = getelementptr inbounds i32, ptr %7, i64 %8
%10 = load i32, ptr %9, align 4, !tbaa !14
%11 = tail call i32 @fan_from_reg(i32 noundef %10) #2
%12 = tail call i32 @sprintf(ptr noundef %2, ptr noundef nonnull @.str, i32 noundef %11) #2
ret i32 %12
}
declare ptr @pc87427_update_device(ptr noundef) local_unnamed_addr #1
declare ptr @to_sensor_dev_attr(ptr noundef) local_unnamed_addr #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fan_from_reg(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"pc87427_data", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!8, !8, i64 0}
| linux_drivers_hwmon_extr_pc87427.c_fan_input_show |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/vxge/extr_vxge-main.c_vxge_rem_isr.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/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 }
@INTA = dso_local local_unnamed_addr global i64 0, align 8
@MSI_X = 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 ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i64 @pci_get_drvdata(ptr noundef %2) #2
%4 = getelementptr inbounds %struct.vxgedev, ptr %0, i64 0, i32 1
%5 = load i64, ptr %4, align 8, !tbaa !12
%6 = load i64, ptr @INTA, align 8, !tbaa !13
%7 = icmp eq i64 %5, %6
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = load ptr, ptr %0, align 8, !tbaa !5
%10 = load i32, ptr %9, align 4, !tbaa !14
%11 = tail call i32 @synchronize_irq(i32 noundef %10) #2
%12 = load ptr, ptr %0, align 8, !tbaa !5
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = tail call i32 @free_irq(i32 noundef %13, ptr noundef nonnull %0) #2
br label %15
15: ; preds = %8, %1
ret void
}
declare i64 @pci_get_drvdata(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, !7, i64 0}
!6 = !{!"vxgedev", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_3__", !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"TYPE_4__", !16, i64 0}
!16 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/vxge/extr_vxge-main.c_vxge_rem_isr.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/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"
@INTA = common local_unnamed_addr global i64 0, align 8
@MSI_X = 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 ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i64 @pci_get_drvdata(ptr noundef %2) #2
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !13
%6 = load i64, ptr @INTA, align 8, !tbaa !14
%7 = icmp eq i64 %5, %6
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = load ptr, ptr %0, align 8, !tbaa !6
%10 = load i32, ptr %9, align 4, !tbaa !15
%11 = tail call i32 @synchronize_irq(i32 noundef %10) #2
%12 = load ptr, ptr %0, align 8, !tbaa !6
%13 = load i32, ptr %12, align 4, !tbaa !15
%14 = tail call i32 @free_irq(i32 noundef %13, ptr noundef nonnull %0) #2
br label %15
15: ; preds = %8, %1
ret void
}
declare i64 @pci_get_drvdata(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, !8, i64 0}
!7 = !{!"vxgedev", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_3__", !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !12, i64 8}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"TYPE_4__", !17, i64 0}
!17 = !{!"int", !9, i64 0}
| fastsocket_kernel_drivers_net_vxge_extr_vxge-main.c_vxge_rem_isr |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/extr_fs-writeback.c_requeue_io.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/extr_fs-writeback.c_requeue_io.c"
target datalayout = "e-m:e-p270:32:32-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 @requeue_io], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @requeue_io(ptr noundef %0) #0 {
%2 = tail call ptr @inode_to_bdi(ptr noundef %0) #2
%3 = tail call i32 @list_move(ptr noundef %0, ptr noundef %2) #2
ret void
}
declare ptr @inode_to_bdi(ptr noundef) local_unnamed_addr #1
declare i32 @list_move(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/extr_fs-writeback.c_requeue_io.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/extr_fs-writeback.c_requeue_io.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 @requeue_io], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @requeue_io(ptr noundef %0) #0 {
%2 = tail call ptr @inode_to_bdi(ptr noundef %0) #2
%3 = tail call i32 @list_move(ptr noundef %0, ptr noundef %2) #2
ret void
}
declare ptr @inode_to_bdi(ptr noundef) local_unnamed_addr #1
declare i32 @list_move(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)"}
| fastsocket_kernel_fs_extr_fs-writeback.c_requeue_io |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/sa/extr_usrdb.c_usracct_print.c'
source_filename = "AnghaBench/freebsd/usr.sbin/sa/extr_usrdb.c_usracct_print.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i32 }
%struct.userinfo = type { i32, i32, i32, i32, double, i32 }
@usracct_db = dso_local local_unnamed_addr global i32 0, align 4
@R_FIRST = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"retrieving user accounting stats\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"%-*s %9ju \00", align 1
@MAXLOGNAME = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [10 x i8] c"%12.2f%s \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"cpu\00", align 1
@dflag = dso_local local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [9 x i8] c"%12.0f%s\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"avio\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"tio\00", align 1
@kflag = dso_local local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [2 x i8] c"k\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"k*sec\00", align 1
@R_NEXT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @usracct_print() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_4__, align 4
%2 = alloca %struct.TYPE_4__, align 4
%3 = alloca %struct.userinfo, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
%4 = load i32, ptr @usracct_db, align 4, !tbaa !5
%5 = load i32, ptr @R_FIRST, align 4, !tbaa !5
%6 = call i32 @DB_SEQ(i32 noundef %4, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %5) #5
%7 = icmp slt i32 %6, 0
br i1 %7, label %60, label %8
8: ; preds = %0
%9 = icmp eq i32 %6, 0
br i1 %9, label %10, label %62
10: ; preds = %8
%11 = getelementptr inbounds %struct.userinfo, ptr %3, i64 0, i32 5
%12 = getelementptr inbounds %struct.userinfo, ptr %3, i64 0, i32 1
%13 = getelementptr inbounds %struct.userinfo, ptr %3, i64 0, i32 2
%14 = getelementptr inbounds %struct.userinfo, ptr %3, i64 0, i32 3
%15 = getelementptr inbounds %struct.userinfo, ptr %3, i64 0, i32 4
br label %16
16: ; preds = %10, %58
%17 = load i32, ptr %2, align 4, !tbaa !9
%18 = call i32 @memcpy(ptr noundef nonnull %3, i32 noundef %17, i32 noundef 32) #5
%19 = load ptr, ptr @MAXLOGNAME, align 8, !tbaa !11
%20 = getelementptr inbounds i8, ptr %19, i64 -1
%21 = load i32, ptr %11, align 8, !tbaa !13
%22 = call i32 @user_from_uid(i32 noundef %21, i32 noundef 0) #5
%23 = load i32, ptr %3, align 8, !tbaa !16
%24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %20, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %12, align 4, !tbaa !17
%26 = load i32, ptr %13, align 8, !tbaa !18
%27 = add nsw i32 %26, %25
%28 = sdiv i32 %27, 1000000
%29 = sitofp i32 %28 to double
%30 = icmp slt i32 %27, 1000000
%31 = select i1 %30, double 0x3EB0C6F7A0B5ED8D, double %29
%32 = fdiv double %31, 6.000000e+01
%33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %32, ptr noundef nonnull @.str.3)
%34 = load i64, ptr @dflag, align 8, !tbaa !19
%35 = icmp eq i64 %34, 0
%36 = load i32, ptr %14, align 4, !tbaa !21
br i1 %35, label %41, label %37
37: ; preds = %16
%38 = load i32, ptr %3, align 8, !tbaa !16
%39 = sdiv i32 %36, %38
%40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %39, ptr noundef nonnull @.str.5)
br label %43
41: ; preds = %16
%42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %36, ptr noundef nonnull @.str.6)
br label %43
43: ; preds = %41, %37
%44 = load i64, ptr @kflag, align 8, !tbaa !19
%45 = icmp eq i64 %44, 0
%46 = load double, ptr %15, align 8, !tbaa !22
br i1 %45, label %50, label %47
47: ; preds = %43
%48 = fdiv double %46, %31
%49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %48, ptr noundef nonnull @.str.7)
br label %52
50: ; preds = %43
%51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %46, ptr noundef nonnull @.str.8)
br label %52
52: ; preds = %50, %47
%53 = call i32 @putchar(i32 10)
%54 = load i32, ptr @usracct_db, align 4, !tbaa !5
%55 = load i32, ptr @R_NEXT, align 4, !tbaa !5
%56 = call i32 @DB_SEQ(i32 noundef %54, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %55) #5
%57 = icmp slt i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %52
%59 = icmp eq i32 %56, 0
br i1 %59, label %16, label %62, !llvm.loop !23
60: ; preds = %52, %0
%61 = call i32 @warn(ptr noundef nonnull @.str) #5
br label %62
62: ; preds = %58, %60, %8
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
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 @DB_SEQ(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @warn(ptr noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare i32 @user_from_uid(i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #4
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 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_4__", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 24}
!14 = !{!"userinfo", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !15, i64 16, !6, i64 24}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !6, i64 0}
!17 = !{!14, !6, i64 4}
!18 = !{!14, !6, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!14, !6, i64 12}
!22 = !{!14, !15, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/sa/extr_usrdb.c_usracct_print.c'
source_filename = "AnghaBench/freebsd/usr.sbin/sa/extr_usrdb.c_usracct_print.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i32 }
%struct.userinfo = type { i32, i32, i32, i32, double, i32 }
@usracct_db = common local_unnamed_addr global i32 0, align 4
@R_FIRST = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"retrieving user accounting stats\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"%-*s %9ju \00", align 1
@MAXLOGNAME = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [10 x i8] c"%12.2f%s \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"cpu\00", align 1
@dflag = common local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [9 x i8] c"%12.0f%s\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"avio\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"tio\00", align 1
@kflag = common local_unnamed_addr global i64 0, align 8
@.str.7 = private unnamed_addr constant [2 x i8] c"k\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"k*sec\00", align 1
@R_NEXT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @usracct_print() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_4__, align 4
%2 = alloca %struct.TYPE_4__, align 4
%3 = alloca %struct.userinfo, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
%4 = load i32, ptr @usracct_db, align 4, !tbaa !6
%5 = load i32, ptr @R_FIRST, align 4, !tbaa !6
%6 = call i32 @DB_SEQ(i32 noundef %4, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %5) #5
%7 = icmp slt i32 %6, 0
br i1 %7, label %60, label %8
8: ; preds = %0
%9 = icmp eq i32 %6, 0
br i1 %9, label %10, label %62
10: ; preds = %8
%11 = getelementptr inbounds i8, ptr %3, i64 24
%12 = getelementptr inbounds i8, ptr %3, i64 4
%13 = getelementptr inbounds i8, ptr %3, i64 8
%14 = getelementptr inbounds i8, ptr %3, i64 12
%15 = getelementptr inbounds i8, ptr %3, i64 16
br label %16
16: ; preds = %10, %58
%17 = load i32, ptr %2, align 4, !tbaa !10
%18 = call i32 @memcpy(ptr noundef nonnull %3, i32 noundef %17, i32 noundef 32) #5
%19 = load ptr, ptr @MAXLOGNAME, align 8, !tbaa !12
%20 = getelementptr inbounds i8, ptr %19, i64 -1
%21 = load i32, ptr %11, align 8, !tbaa !14
%22 = call i32 @user_from_uid(i32 noundef %21, i32 noundef 0) #5
%23 = load i32, ptr %3, align 8, !tbaa !17
%24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %20, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %12, align 4, !tbaa !18
%26 = load i32, ptr %13, align 8, !tbaa !19
%27 = add nsw i32 %26, %25
%28 = sdiv i32 %27, 1000000
%29 = sitofp i32 %28 to double
%30 = icmp slt i32 %27, 1000000
%31 = select i1 %30, double 0x3EB0C6F7A0B5ED8D, double %29
%32 = fdiv double %31, 6.000000e+01
%33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %32, ptr noundef nonnull @.str.3)
%34 = load i64, ptr @dflag, align 8, !tbaa !20
%35 = icmp eq i64 %34, 0
%36 = load i32, ptr %14, align 4, !tbaa !22
br i1 %35, label %41, label %37
37: ; preds = %16
%38 = load i32, ptr %3, align 8, !tbaa !17
%39 = sdiv i32 %36, %38
%40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %39, ptr noundef nonnull @.str.5)
br label %43
41: ; preds = %16
%42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %36, ptr noundef nonnull @.str.6)
br label %43
43: ; preds = %41, %37
%44 = load i64, ptr @kflag, align 8, !tbaa !20
%45 = icmp eq i64 %44, 0
%46 = load double, ptr %15, align 8, !tbaa !23
br i1 %45, label %50, label %47
47: ; preds = %43
%48 = fdiv double %46, %31
%49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %48, ptr noundef nonnull @.str.7)
br label %52
50: ; preds = %43
%51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %46, ptr noundef nonnull @.str.8)
br label %52
52: ; preds = %50, %47
%53 = call i32 @putchar(i32 10)
%54 = load i32, ptr @usracct_db, align 4, !tbaa !6
%55 = load i32, ptr @R_NEXT, align 4, !tbaa !6
%56 = call i32 @DB_SEQ(i32 noundef %54, ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %55) #5
%57 = icmp slt i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %52
%59 = icmp eq i32 %56, 0
br i1 %59, label %16, label %62, !llvm.loop !24
60: ; preds = %52, %0
%61 = call i32 @warn(ptr noundef nonnull @.str) #5
br label %62
62: ; preds = %58, %60, %8
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
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 @DB_SEQ(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @warn(ptr noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare i32 @user_from_uid(i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #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 = { 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 = { 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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 24}
!15 = !{!"userinfo", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !16, i64 16, !7, i64 24}
!16 = !{!"double", !8, i64 0}
!17 = !{!15, !7, i64 0}
!18 = !{!15, !7, i64 4}
!19 = !{!15, !7, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !8, i64 0}
!22 = !{!15, !7, i64 12}
!23 = !{!15, !16, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
| freebsd_usr.sbin_sa_extr_usrdb.c_usracct_print |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_hpsa.c_hpsa_slave_configure.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_hpsa.c_hpsa_slave_configure.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.scsi_device = type { i32, ptr, i32, i32, ptr }
%struct.hpsa_scsi_dev_t = type { i32, i64, i64, i32 }
@EXTERNAL_QD = dso_local local_unnamed_addr global i32 0, align 4
@HPSA_EH_PTRAID_TIMEOUT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hpsa_slave_configure], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @hpsa_slave_configure(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.scsi_device, ptr %0, i64 0, i32 4
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %28, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.hpsa_scsi_dev_t, ptr %3, i64 0, i32 3
%7 = load i32, ptr %6, align 8, !tbaa !11
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
store i32 %9, ptr %0, align 8, !tbaa !14
%10 = getelementptr inbounds %struct.hpsa_scsi_dev_t, ptr %3, i64 0, i32 2
store i64 0, ptr %10, align 8, !tbaa !15
%11 = getelementptr inbounds %struct.hpsa_scsi_dev_t, ptr %3, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !16
%13 = icmp eq i64 %12, 0
br i1 %13, label %21, label %14
14: ; preds = %5
%15 = load i32, ptr @EXTERNAL_QD, align 4, !tbaa !17
%16 = load i32, ptr @HPSA_EH_PTRAID_TIMEOUT, align 4, !tbaa !17
%17 = getelementptr inbounds %struct.scsi_device, ptr %0, i64 0, i32 3
store i32 %16, ptr %17, align 4, !tbaa !18
%18 = getelementptr inbounds %struct.scsi_device, ptr %0, i64 0, i32 2
%19 = load i32, ptr %18, align 8, !tbaa !19
%20 = tail call i32 @blk_queue_rq_timeout(i32 noundef %19, i32 noundef %16) #2
br label %32
21: ; preds = %5
%22 = load i32, ptr %3, align 8, !tbaa !20
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = getelementptr inbounds %struct.scsi_device, ptr %0, i64 0, i32 1
%26 = load ptr, ptr %25, align 8, !tbaa !21
%27 = load i32, ptr %26, align 4, !tbaa !22
br label %32
28: ; preds = %1
store i32 1, ptr %0, align 8, !tbaa !14
%29 = getelementptr inbounds %struct.scsi_device, ptr %0, i64 0, i32 1
%30 = load ptr, ptr %29, align 8, !tbaa !21
%31 = load i32, ptr %30, align 4, !tbaa !22
br label %32
32: ; preds = %24, %21, %14, %28
%33 = phi i32 [ %15, %14 ], [ %31, %28 ], [ %27, %24 ], [ %22, %21 ]
%34 = tail call i32 @scsi_change_queue_depth(ptr noundef nonnull %0, i32 noundef %33) #2
ret i32 0
}
declare i32 @blk_queue_rq_timeout(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @scsi_change_queue_depth(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, !10, i64 24}
!6 = !{!"scsi_device", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24}
!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 24}
!12 = !{!"hpsa_scsi_dev_t", !7, i64 0, !13, i64 8, !13, i64 16, !7, i64 24}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!12, !13, i64 16}
!16 = !{!12, !13, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 20}
!19 = !{!6, !7, i64 16}
!20 = !{!12, !7, i64 0}
!21 = !{!6, !10, i64 8}
!22 = !{!23, !7, i64 0}
!23 = !{!"TYPE_2__", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_hpsa.c_hpsa_slave_configure.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_hpsa.c_hpsa_slave_configure.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EXTERNAL_QD = common local_unnamed_addr global i32 0, align 4
@HPSA_EH_PTRAID_TIMEOUT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hpsa_slave_configure], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @hpsa_slave_configure(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 24
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %28, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %3, i64 24
%7 = load i32, ptr %6, align 8, !tbaa !12
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
store i32 %9, ptr %0, align 8, !tbaa !15
%10 = getelementptr inbounds i8, ptr %3, i64 16
store i64 0, ptr %10, align 8, !tbaa !16
%11 = getelementptr inbounds i8, ptr %3, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !17
%13 = icmp eq i64 %12, 0
br i1 %13, label %21, label %14
14: ; preds = %5
%15 = load i32, ptr @EXTERNAL_QD, align 4, !tbaa !18
%16 = load i32, ptr @HPSA_EH_PTRAID_TIMEOUT, align 4, !tbaa !18
%17 = getelementptr inbounds i8, ptr %0, i64 20
store i32 %16, ptr %17, align 4, !tbaa !19
%18 = getelementptr inbounds i8, ptr %0, i64 16
%19 = load i32, ptr %18, align 8, !tbaa !20
%20 = tail call i32 @blk_queue_rq_timeout(i32 noundef %19, i32 noundef %16) #2
br label %32
21: ; preds = %5
%22 = load i32, ptr %3, align 8, !tbaa !21
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = getelementptr inbounds i8, ptr %0, i64 8
%26 = load ptr, ptr %25, align 8, !tbaa !22
%27 = load i32, ptr %26, align 4, !tbaa !23
br label %32
28: ; preds = %1
store i32 1, ptr %0, align 8, !tbaa !15
%29 = getelementptr inbounds i8, ptr %0, i64 8
%30 = load ptr, ptr %29, align 8, !tbaa !22
%31 = load i32, ptr %30, align 4, !tbaa !23
br label %32
32: ; preds = %24, %21, %14, %28
%33 = phi i32 [ %15, %14 ], [ %31, %28 ], [ %27, %24 ], [ %22, %21 ]
%34 = tail call i32 @scsi_change_queue_depth(ptr noundef nonnull %0, i32 noundef %33) #2
ret i32 0
}
declare i32 @blk_queue_rq_timeout(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @scsi_change_queue_depth(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, !11, i64 24}
!7 = !{!"scsi_device", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 20, !11, i64 24}
!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 24}
!13 = !{!"hpsa_scsi_dev_t", !8, i64 0, !14, i64 8, !14, i64 16, !8, i64 24}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!13, !14, i64 16}
!17 = !{!13, !14, i64 8}
!18 = !{!8, !8, i64 0}
!19 = !{!7, !8, i64 20}
!20 = !{!7, !8, i64 16}
!21 = !{!13, !8, i64 0}
!22 = !{!7, !11, i64 8}
!23 = !{!24, !8, i64 0}
!24 = !{!"TYPE_2__", !8, i64 0}
| linux_drivers_scsi_extr_hpsa.c_hpsa_slave_configure |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_videobuf-dma-sg.c_videobuf_to_dma.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_videobuf-dma-sg.c_videobuf_to_dma.c"
target datalayout = "e-m:e-p270:32:32-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.videobuf_dma_sg_memory = type { %struct.videobuf_dmabuf, i32 }
%struct.videobuf_dmabuf = type { i32 }
@MAGIC_SG_MEM = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @videobuf_to_dma(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
%4 = zext i1 %3 to i32
%5 = tail call i32 @BUG_ON(i32 noundef %4) #2
%6 = getelementptr inbounds %struct.videobuf_dma_sg_memory, ptr %2, i64 0, i32 1
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = load i32, ptr @MAGIC_SG_MEM, align 4, !tbaa !14
%9 = tail call i32 @MAGIC_CHECK(i32 noundef %7, i32 noundef %8) #2
ret ptr %2
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @MAGIC_CHECK(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 = !{!"videobuf_buffer", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 4}
!11 = !{!"videobuf_dma_sg_memory", !12, i64 0, !13, i64 4}
!12 = !{!"videobuf_dmabuf", !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!13, !13, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_videobuf-dma-sg.c_videobuf_to_dma.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_videobuf-dma-sg.c_videobuf_to_dma.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAGIC_SG_MEM = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @videobuf_to_dma(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
%4 = zext i1 %3 to i32
%5 = tail call i32 @BUG_ON(i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %2, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !11
%8 = load i32, ptr @MAGIC_SG_MEM, align 4, !tbaa !15
%9 = tail call i32 @MAGIC_CHECK(i32 noundef %7, i32 noundef %8) #2
ret ptr %2
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @MAGIC_CHECK(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 = !{!"videobuf_buffer", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 4}
!12 = !{!"videobuf_dma_sg_memory", !13, i64 0, !14, i64 4}
!13 = !{!"videobuf_dmabuf", !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!14, !14, i64 0}
| fastsocket_kernel_drivers_media_video_extr_videobuf-dma-sg.c_videobuf_to_dma |
; ModuleID = 'AnghaBench/freebsd/sys/dev/qlnx/qlnxr/extr_qlnxr_verbs.c_qlnxr_idr_add.c'
source_filename = "AnghaBench/freebsd/sys/dev/qlnx/qlnxr/extr_qlnxr_verbs.c_qlnxr_idr_add.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.qlnxr_dev = type { i32, i32, ptr }
@.str = private unnamed_addr constant [7 x i8] c"enter\0A\00", align 1
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"idr_pre_get failed\0A\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@EAGAIN = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"exit [%d]\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @qlnxr_idr_add], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @qlnxr_idr_add(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = getelementptr inbounds %struct.qlnxr_dev, ptr %0, i64 0, i32 2
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = tail call i32 (ptr, ptr, ...) @QL_DPRINT12(ptr noundef %6, ptr noundef nonnull @.str) #3
%8 = tail call i32 @QLNX_IS_IWARP(ptr noundef %0) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %29, label %10
10: ; preds = %3
%11 = getelementptr inbounds %struct.qlnxr_dev, ptr %0, i64 0, i32 1
br label %12
12: ; preds = %10, %20
%13 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !11
%14 = call i32 @idr_pre_get(ptr noundef nonnull %11, i32 noundef %13) #3
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = call i32 @QL_DPRINT11(ptr noundef %6, ptr noundef nonnull @.str.1) #3
%18 = load i32, ptr @ENOMEM, align 4, !tbaa !11
%19 = sub nsw i32 0, %18
br label %29
20: ; preds = %12
%21 = call i32 @mtx_lock(ptr noundef %0) #3
%22 = call i32 @idr_get_new_above(ptr noundef nonnull %11, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %4) #3
%23 = call i32 @mtx_unlock(ptr noundef %0) #3
%24 = load i32, ptr @EAGAIN, align 4, !tbaa !11
%25 = sub nsw i32 0, %24
%26 = icmp eq i32 %22, %25
br i1 %26, label %12, label %27, !llvm.loop !12
27: ; preds = %20
%28 = call i32 (ptr, ptr, ...) @QL_DPRINT12(ptr noundef %6, ptr noundef nonnull @.str.2, i32 noundef %22) #3
br label %29
29: ; preds = %3, %27, %16
%30 = phi i32 [ %22, %27 ], [ %19, %16 ], [ 0, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %30
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @QL_DPRINT12(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @QLNX_IS_IWARP(ptr noundef) local_unnamed_addr #2
declare i32 @idr_pre_get(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @QL_DPRINT11(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mtx_lock(ptr noundef) local_unnamed_addr #2
declare i32 @idr_get_new_above(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mtx_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 8}
!6 = !{!"qlnxr_dev", !7, i64 0, !7, i64 4, !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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/qlnx/qlnxr/extr_qlnxr_verbs.c_qlnxr_idr_add.c'
source_filename = "AnghaBench/freebsd/sys/dev/qlnx/qlnxr/extr_qlnxr_verbs.c_qlnxr_idr_add.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [7 x i8] c"enter\0A\00", align 1
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"idr_pre_get failed\0A\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@EAGAIN = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [11 x i8] c"exit [%d]\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @qlnxr_idr_add], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @qlnxr_idr_add(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = tail call i32 (ptr, ptr, ...) @QL_DPRINT12(ptr noundef %6, ptr noundef nonnull @.str) #3
%8 = tail call i32 @QLNX_IS_IWARP(ptr noundef %0) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %29, label %10
10: ; preds = %3
%11 = getelementptr inbounds i8, ptr %0, i64 4
br label %12
12: ; preds = %10, %20
%13 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !12
%14 = call i32 @idr_pre_get(ptr noundef nonnull %11, i32 noundef %13) #3
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = call i32 @QL_DPRINT11(ptr noundef %6, ptr noundef nonnull @.str.1) #3
%18 = load i32, ptr @ENOMEM, align 4, !tbaa !12
%19 = sub nsw i32 0, %18
br label %29
20: ; preds = %12
%21 = call i32 @mtx_lock(ptr noundef %0) #3
%22 = call i32 @idr_get_new_above(ptr noundef nonnull %11, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %4) #3
%23 = call i32 @mtx_unlock(ptr noundef %0) #3
%24 = load i32, ptr @EAGAIN, align 4, !tbaa !12
%25 = sub nsw i32 0, %24
%26 = icmp eq i32 %22, %25
br i1 %26, label %12, label %27, !llvm.loop !13
27: ; preds = %20
%28 = call i32 (ptr, ptr, ...) @QL_DPRINT12(ptr noundef %6, ptr noundef nonnull @.str.2, i32 noundef %22) #3
br label %29
29: ; preds = %3, %27, %16
%30 = phi i32 [ %22, %27 ], [ %19, %16 ], [ 0, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %30
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @QL_DPRINT12(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @QLNX_IS_IWARP(ptr noundef) local_unnamed_addr #2
declare i32 @idr_pre_get(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @QL_DPRINT11(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mtx_lock(ptr noundef) local_unnamed_addr #2
declare i32 @idr_get_new_above(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mtx_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 8}
!7 = !{!"qlnxr_dev", !8, i64 0, !8, i64 4, !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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_dev_qlnx_qlnxr_extr_qlnxr_verbs.c_qlnxr_idr_add |
; ModuleID = 'AnghaBench/linux/tools/bpf/bpftool/extr_json_writer.c_jsonw_destroy.c'
source_filename = "AnghaBench/linux/tools/bpf/bpftool/extr_json_writer.c_jsonw_destroy.c"
target datalayout = "e-m:e-p270:32:32-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 }
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @jsonw_destroy(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i64, ptr %2, align 8, !tbaa !9
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 noundef %5) #2
%7 = getelementptr inbounds %struct.TYPE_4__, ptr %2, i64 0, i32 1
%8 = load i32, ptr %7, align 8, !tbaa !13
%9 = tail call i32 @fputs(ptr noundef nonnull @.str, i32 noundef %8) #2
%10 = load i32, ptr %7, align 8, !tbaa !13
%11 = tail call i32 @fflush(i32 noundef %10) #2
%12 = tail call i32 @free(ptr noundef nonnull %2) #2
store ptr null, ptr %0, align 8, !tbaa !5
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @fputs(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fflush(i32 noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_4__", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 8}
| ; ModuleID = 'AnghaBench/linux/tools/bpf/bpftool/extr_json_writer.c_jsonw_destroy.c'
source_filename = "AnghaBench/linux/tools/bpf/bpftool/extr_json_writer.c_jsonw_destroy.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @jsonw_destroy(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i64, ptr %2, align 8, !tbaa !10
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 noundef %5) #2
%7 = getelementptr inbounds i8, ptr %2, i64 8
%8 = load i32, ptr %7, align 8, !tbaa !14
%9 = tail call i32 @fputs(ptr noundef nonnull @.str, i32 noundef %8) #2
%10 = load i32, ptr %7, align 8, !tbaa !14
%11 = tail call i32 @fflush(i32 noundef %10) #2
%12 = tail call i32 @free(ptr noundef nonnull %2) #2
store ptr null, ptr %0, align 8, !tbaa !6
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @fputs(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fflush(i32 noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !13, i64 8}
| linux_tools_bpf_bpftool_extr_json_writer.c_jsonw_destroy |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/extr_sa2400.c_sa2400_rf_calc_rssi.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/extr_sa2400.c_sa2400_rf_calc_rssi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@sa2400_rf_rssi_map = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @sa2400_rf_calc_rssi], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @sa2400_rf_calc_rssi(i32 %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 128
br i1 %3, label %13, label %4
4: ; preds = %2
%5 = icmp sgt i32 %1, 78
br i1 %5, label %13, label %6
6: ; preds = %4
%7 = load ptr, ptr @sa2400_rf_rssi_map, align 8, !tbaa !5
%8 = sext i32 %1 to i64
%9 = getelementptr inbounds i32, ptr %7, i64 %8
%10 = load i32, ptr %9, align 4, !tbaa !9
%11 = mul nsw i32 %10, 65
%12 = sdiv i32 %11, 100
br label %13
13: ; preds = %4, %2, %6
%14 = phi i32 [ %12, %6 ], [ 1, %2 ], [ 32, %4 ]
ret i32 %14
}
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, !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}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/extr_sa2400.c_sa2400_rf_calc_rssi.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/extr_sa2400.c_sa2400_rf_calc_rssi.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@sa2400_rf_rssi_map = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @sa2400_rf_calc_rssi], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 -21474836, 21474837) i32 @sa2400_rf_calc_rssi(i32 %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 128
br i1 %3, label %13, label %4
4: ; preds = %2
%5 = icmp sgt i32 %1, 78
br i1 %5, label %13, label %6
6: ; preds = %4
%7 = load ptr, ptr @sa2400_rf_rssi_map, align 8, !tbaa !6
%8 = sext i32 %1 to i64
%9 = getelementptr inbounds i32, ptr %7, i64 %8
%10 = load i32, ptr %9, align 4, !tbaa !10
%11 = mul nsw i32 %10, 65
%12 = sdiv i32 %11, 100
br label %13
13: ; preds = %4, %2, %6
%14 = phi i32 [ %12, %6 ], [ 1, %2 ], [ 32, %4 ]
ret i32 %14
}
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, !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}
| linux_drivers_net_wireless_realtek_rtl818x_rtl8180_extr_sa2400.c_sa2400_rf_calc_rssi |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/arm/display/komeda/extr_komeda_crtc.c_komeda_crtc_atomic_disable.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/arm/display/komeda/extr_komeda_crtc.c_komeda_crtc_atomic_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.completion = type { i32 }
%struct.TYPE_8__ = type { i32, ptr }
%struct.komeda_crtc = type { ptr, ptr, ptr }
%struct.drm_crtc = type { ptr, ptr }
%struct.TYPE_7__ = type { i64, ptr }
%struct.komeda_crtc_state = type { i32, i32 }
@.str = private unnamed_addr constant [53 x i8] c"CRTC%d_DISABLE: active_pipes: 0x%x, affected: 0x%x.\0A\00", align 1
@HZ = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [29 x i8] c"disable pipeline%d timeout.\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @komeda_crtc_atomic_disable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @komeda_crtc_atomic_disable(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca %struct.completion, align 4
%4 = tail call ptr @to_kcrtc(ptr noundef %0) #3
%5 = tail call ptr @to_kcrtc_st(ptr noundef %1) #3
%6 = load ptr, ptr %0, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.TYPE_8__, ptr %6, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !10
%9 = getelementptr inbounds %struct.komeda_crtc, ptr %4, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !13
%11 = getelementptr inbounds %struct.komeda_crtc, ptr %4, i64 0, i32 2
%12 = load ptr, ptr %11, align 8, !tbaa !15
%13 = getelementptr inbounds %struct.drm_crtc, ptr %0, i64 0, i32 1
%14 = load ptr, ptr %13, align 8, !tbaa !16
%15 = getelementptr inbounds %struct.TYPE_7__, ptr %14, i64 0, i32 1
%16 = load ptr, ptr %15, align 8, !tbaa !17
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%17 = tail call i32 @drm_crtc_index(ptr noundef nonnull %0) #3
%18 = load i32, ptr %5, align 4, !tbaa !20
%19 = getelementptr inbounds %struct.komeda_crtc_state, ptr %5, i64 0, i32 1
%20 = load i32, ptr %19, align 4, !tbaa !22
%21 = tail call i32 @DRM_DEBUG_ATOMIC(ptr noundef nonnull @.str, i32 noundef %17, i32 noundef %18, i32 noundef %20) #3
%22 = icmp eq ptr %12, null
br i1 %22, label %31, label %23
23: ; preds = %2
%24 = load i32, ptr %12, align 4, !tbaa !23
%25 = load i32, ptr %5, align 4, !tbaa !20
%26 = tail call i64 @has_bit(i32 noundef %24, i32 noundef %25) #3
%27 = icmp eq i64 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %23
%29 = load i32, ptr %1, align 4, !tbaa !25
%30 = tail call i32 @komeda_pipeline_disable(ptr noundef nonnull %12, i32 noundef %29) #3
br label %31
31: ; preds = %28, %23, %2
%32 = load i32, ptr %10, align 4, !tbaa !23
%33 = load i32, ptr %5, align 4, !tbaa !20
%34 = tail call i64 @has_bit(i32 noundef %32, i32 noundef %33) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %31
%37 = load i32, ptr %1, align 4, !tbaa !25
%38 = tail call i32 @komeda_pipeline_disable(ptr noundef nonnull %10, i32 noundef %37) #3
br label %39
39: ; preds = %36, %31
%40 = load ptr, ptr %13, align 8, !tbaa !16
%41 = load i64, ptr %40, align 8, !tbaa !27
%42 = icmp eq i64 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %39
%44 = load i32, ptr %1, align 4, !tbaa !25
%45 = tail call ptr @komeda_pipeline_get_old_state(ptr noundef nonnull %10, i32 noundef %44) #3
store i64 0, ptr %45, align 8, !tbaa !28
%46 = call i32 @init_completion(ptr noundef nonnull %3) #3
store ptr %3, ptr %4, align 8, !tbaa !30
br label %47
47: ; preds = %43, %39
%48 = phi ptr [ %3, %43 ], [ %16, %39 ]
%49 = load ptr, ptr %8, align 8, !tbaa !31
%50 = load ptr, ptr %49, align 8, !tbaa !33
%51 = load i32, ptr %10, align 4, !tbaa !23
%52 = call i32 %50(ptr noundef nonnull %8, i32 noundef %51, i32 noundef 0) #3
%53 = load i32, ptr @HZ, align 4, !tbaa !35
%54 = call i32 @wait_for_completion_timeout(ptr noundef %48, i32 noundef %53) #3
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %68
56: ; preds = %47
%57 = load ptr, ptr %9, align 8, !tbaa !13
%58 = load i32, ptr %57, align 4, !tbaa !23
%59 = call i32 @DRM_ERROR(ptr noundef nonnull @.str.1, i32 noundef %58) #3
%60 = load ptr, ptr %13, align 8, !tbaa !16
%61 = load i64, ptr %60, align 8, !tbaa !27
%62 = icmp eq i64 %61, 0
br i1 %62, label %68, label %63
63: ; preds = %56
%64 = load ptr, ptr %0, align 8, !tbaa !5
%65 = call i32 @spin_lock_irqsave(ptr noundef %64, i64 noundef undef) #3
store ptr null, ptr %4, align 8, !tbaa !30
%66 = load ptr, ptr %0, align 8, !tbaa !5
%67 = call i32 @spin_unlock_irqrestore(ptr noundef %66, i64 noundef undef) #3
br label %68
68: ; preds = %56, %63, %47
%69 = call i32 @drm_crtc_vblank_off(ptr noundef nonnull %0) #3
%70 = call i32 @komeda_crtc_unprepare(ptr noundef nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @to_kcrtc(ptr noundef) local_unnamed_addr #2
declare ptr @to_kcrtc_st(ptr noundef) local_unnamed_addr #2
declare i32 @DRM_DEBUG_ATOMIC(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @drm_crtc_index(ptr noundef) local_unnamed_addr #2
declare i64 @has_bit(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @komeda_pipeline_disable(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @komeda_pipeline_get_old_state(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @init_completion(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 @wait_for_completion_timeout(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @DRM_ERROR(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @drm_crtc_vblank_off(ptr noundef) local_unnamed_addr #2
declare i32 @komeda_crtc_unprepare(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 0}
!6 = !{!"drm_crtc", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"TYPE_8__", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 8}
!14 = !{!"komeda_crtc", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!14, !7, i64 16}
!16 = !{!6, !7, i64 8}
!17 = !{!18, !7, i64 8}
!18 = !{!"TYPE_7__", !19, i64 0, !7, i64 8}
!19 = !{!"long", !8, i64 0}
!20 = !{!21, !12, i64 0}
!21 = !{!"komeda_crtc_state", !12, i64 0, !12, i64 4}
!22 = !{!21, !12, i64 4}
!23 = !{!24, !12, i64 0}
!24 = !{!"komeda_pipeline", !12, i64 0}
!25 = !{!26, !12, i64 0}
!26 = !{!"drm_crtc_state", !12, i64 0}
!27 = !{!18, !19, i64 0}
!28 = !{!29, !19, i64 0}
!29 = !{!"komeda_pipeline_state", !19, i64 0}
!30 = !{!14, !7, i64 0}
!31 = !{!32, !7, i64 0}
!32 = !{!"komeda_dev", !7, i64 0}
!33 = !{!34, !7, i64 0}
!34 = !{!"TYPE_6__", !7, i64 0}
!35 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/arm/display/komeda/extr_komeda_crtc.c_komeda_crtc_atomic_disable.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/arm/display/komeda/extr_komeda_crtc.c_komeda_crtc_atomic_disable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.completion = type { i32 }
@.str = private unnamed_addr constant [53 x i8] c"CRTC%d_DISABLE: active_pipes: 0x%x, affected: 0x%x.\0A\00", align 1
@HZ = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [29 x i8] c"disable pipeline%d timeout.\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @komeda_crtc_atomic_disable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @komeda_crtc_atomic_disable(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca %struct.completion, align 4
%4 = tail call ptr @to_kcrtc(ptr noundef %0) #3
%5 = tail call ptr @to_kcrtc_st(ptr noundef %1) #3
%6 = load ptr, ptr %0, align 8, !tbaa !6
%7 = getelementptr inbounds i8, ptr %6, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = getelementptr inbounds i8, ptr %4, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !14
%11 = getelementptr inbounds i8, ptr %4, i64 16
%12 = load ptr, ptr %11, align 8, !tbaa !16
%13 = getelementptr inbounds i8, ptr %0, i64 8
%14 = load ptr, ptr %13, align 8, !tbaa !17
%15 = getelementptr inbounds i8, ptr %14, i64 8
%16 = load ptr, ptr %15, align 8, !tbaa !18
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%17 = tail call i32 @drm_crtc_index(ptr noundef nonnull %0) #3
%18 = load i32, ptr %5, align 4, !tbaa !21
%19 = getelementptr inbounds i8, ptr %5, i64 4
%20 = load i32, ptr %19, align 4, !tbaa !23
%21 = tail call i32 @DRM_DEBUG_ATOMIC(ptr noundef nonnull @.str, i32 noundef %17, i32 noundef %18, i32 noundef %20) #3
%22 = icmp eq ptr %12, null
br i1 %22, label %31, label %23
23: ; preds = %2
%24 = load i32, ptr %12, align 4, !tbaa !24
%25 = load i32, ptr %5, align 4, !tbaa !21
%26 = tail call i64 @has_bit(i32 noundef %24, i32 noundef %25) #3
%27 = icmp eq i64 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %23
%29 = load i32, ptr %1, align 4, !tbaa !26
%30 = tail call i32 @komeda_pipeline_disable(ptr noundef nonnull %12, i32 noundef %29) #3
br label %31
31: ; preds = %28, %23, %2
%32 = load i32, ptr %10, align 4, !tbaa !24
%33 = load i32, ptr %5, align 4, !tbaa !21
%34 = tail call i64 @has_bit(i32 noundef %32, i32 noundef %33) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %31
%37 = load i32, ptr %1, align 4, !tbaa !26
%38 = tail call i32 @komeda_pipeline_disable(ptr noundef nonnull %10, i32 noundef %37) #3
br label %39
39: ; preds = %36, %31
%40 = load ptr, ptr %13, align 8, !tbaa !17
%41 = load i64, ptr %40, align 8, !tbaa !28
%42 = icmp eq i64 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %39
%44 = load i32, ptr %1, align 4, !tbaa !26
%45 = tail call ptr @komeda_pipeline_get_old_state(ptr noundef nonnull %10, i32 noundef %44) #3
store i64 0, ptr %45, align 8, !tbaa !29
%46 = call i32 @init_completion(ptr noundef nonnull %3) #3
store ptr %3, ptr %4, align 8, !tbaa !31
br label %47
47: ; preds = %43, %39
%48 = phi ptr [ %3, %43 ], [ %16, %39 ]
%49 = load ptr, ptr %8, align 8, !tbaa !32
%50 = load ptr, ptr %49, align 8, !tbaa !34
%51 = load i32, ptr %10, align 4, !tbaa !24
%52 = call i32 %50(ptr noundef nonnull %8, i32 noundef %51, i32 noundef 0) #3
%53 = load i32, ptr @HZ, align 4, !tbaa !36
%54 = call i32 @wait_for_completion_timeout(ptr noundef %48, i32 noundef %53) #3
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %68
56: ; preds = %47
%57 = load ptr, ptr %9, align 8, !tbaa !14
%58 = load i32, ptr %57, align 4, !tbaa !24
%59 = call i32 @DRM_ERROR(ptr noundef nonnull @.str.1, i32 noundef %58) #3
%60 = load ptr, ptr %13, align 8, !tbaa !17
%61 = load i64, ptr %60, align 8, !tbaa !28
%62 = icmp eq i64 %61, 0
br i1 %62, label %68, label %63
63: ; preds = %56
%64 = load ptr, ptr %0, align 8, !tbaa !6
%65 = call i32 @spin_lock_irqsave(ptr noundef %64, i64 noundef undef) #3
store ptr null, ptr %4, align 8, !tbaa !31
%66 = load ptr, ptr %0, align 8, !tbaa !6
%67 = call i32 @spin_unlock_irqrestore(ptr noundef %66, i64 noundef undef) #3
br label %68
68: ; preds = %56, %63, %47
%69 = call i32 @drm_crtc_vblank_off(ptr noundef nonnull %0) #3
%70 = call i32 @komeda_crtc_unprepare(ptr noundef nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @to_kcrtc(ptr noundef) local_unnamed_addr #2
declare ptr @to_kcrtc_st(ptr noundef) local_unnamed_addr #2
declare i32 @DRM_DEBUG_ATOMIC(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @drm_crtc_index(ptr noundef) local_unnamed_addr #2
declare i64 @has_bit(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @komeda_pipeline_disable(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @komeda_pipeline_get_old_state(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @init_completion(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 @wait_for_completion_timeout(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @DRM_ERROR(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @drm_crtc_vblank_off(ptr noundef) local_unnamed_addr #2
declare i32 @komeda_crtc_unprepare(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 0}
!7 = !{!"drm_crtc", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"TYPE_8__", !13, i64 0, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !8, i64 8}
!15 = !{!"komeda_crtc", !8, i64 0, !8, i64 8, !8, i64 16}
!16 = !{!15, !8, i64 16}
!17 = !{!7, !8, i64 8}
!18 = !{!19, !8, i64 8}
!19 = !{!"TYPE_7__", !20, i64 0, !8, i64 8}
!20 = !{!"long", !9, i64 0}
!21 = !{!22, !13, i64 0}
!22 = !{!"komeda_crtc_state", !13, i64 0, !13, i64 4}
!23 = !{!22, !13, i64 4}
!24 = !{!25, !13, i64 0}
!25 = !{!"komeda_pipeline", !13, i64 0}
!26 = !{!27, !13, i64 0}
!27 = !{!"drm_crtc_state", !13, i64 0}
!28 = !{!19, !20, i64 0}
!29 = !{!30, !20, i64 0}
!30 = !{!"komeda_pipeline_state", !20, i64 0}
!31 = !{!15, !8, i64 0}
!32 = !{!33, !8, i64 0}
!33 = !{!"komeda_dev", !8, i64 0}
!34 = !{!35, !8, i64 0}
!35 = !{!"TYPE_6__", !8, i64 0}
!36 = !{!13, !13, i64 0}
| linux_drivers_gpu_drm_arm_display_komeda_extr_komeda_crtc.c_komeda_crtc_atomic_disable |
; ModuleID = 'AnghaBench/linux/tools/testing/selftests/sigaltstack/extr_sas.c_my_usr1.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/sigaltstack/extr_sas.c_my_usr1.c"
target datalayout = "e-m:e-p270:32:32-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 { i64 }
@sstack = dso_local local_unnamed_addr global i64 0, align 8
@SIGSTKSZ = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [26 x i8] c"SP is not on sigaltstack\0A\00", align 1
@msg = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"[RUN]\09signal USR1\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"sigaltstack() - %s\0A\00", align 1
@errno = dso_local local_unnamed_addr global i32 0, align 4
@EXIT_FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@SS_DISABLE = dso_local local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [36 x i8] c"tss_flags=%x, should be SS_DISABLE\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"sigaltstack is disabled in sighandler\0A\00", align 1
@sc = dso_local global i32 0, align 4
@uc = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"[RUN]\09Aborting\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @my_usr1(i32 noundef %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
%4 = alloca %struct.TYPE_3__, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
%5 = tail call i32 (ptr, ...) @ksft_exit_fail_msg(ptr noundef nonnull @.str) #4
%6 = tail call ptr @alloca(i32 noundef 1024) #4
%7 = tail call i32 @assert(ptr noundef %6) #4
%8 = getelementptr inbounds i8, ptr %6, i64 512
%9 = getelementptr inbounds i8, ptr %6, i64 516
%10 = load i32, ptr %9, align 4, !tbaa !5
%11 = load i32, ptr @msg, align 4, !tbaa !10
%12 = tail call i32 @strcpy(i32 noundef %10, i32 noundef %11) #4
store i32 1, ptr %8, align 4, !tbaa !11
%13 = tail call i32 (ptr, ...) @ksft_print_msg(ptr noundef nonnull @.str.1) #4
%14 = call i32 @sigaltstack(ptr noundef null, ptr noundef nonnull %4) #4
%15 = icmp eq i32 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %3
%17 = load i32, ptr @errno, align 4, !tbaa !10
%18 = call i32 @strerror(i32 noundef %17) #4
%19 = call i32 (ptr, ...) @ksft_exit_fail_msg(ptr noundef nonnull @.str.2, i32 noundef %18) #4
%20 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !10
%21 = call i32 @exit(i32 noundef %20) #5
unreachable
22: ; preds = %3
%23 = load i64, ptr %4, align 8, !tbaa !12
%24 = load i64, ptr @SS_DISABLE, align 8, !tbaa !15
%25 = icmp eq i64 %23, %24
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = call i32 @ksft_test_result_fail(ptr noundef nonnull @.str.3, i64 noundef %23) #4
br label %30
28: ; preds = %22
%29 = call i32 @ksft_test_result_pass(ptr noundef nonnull @.str.4) #4
br label %30
30: ; preds = %28, %26
%31 = call i32 @swapcontext(ptr noundef nonnull @sc, ptr noundef nonnull @uc) #4
%32 = load i32, ptr %9, align 4, !tbaa !5
%33 = call i32 (ptr, ...) @ksft_print_msg(ptr noundef nonnull @.str.5, i32 noundef %32) #4
%34 = load i32, ptr %8, align 4, !tbaa !11
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %30
%37 = call i32 @ksft_exit_skip(ptr noundef nonnull @.str.6) #4
%38 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !10
%39 = call i32 @exit(i32 noundef %38) #5
unreachable
40: ; preds = %30
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #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 i32 @ksft_exit_fail_msg(ptr noundef, ...) local_unnamed_addr #2
declare ptr @alloca(i32 noundef) local_unnamed_addr #2
declare i32 @assert(ptr noundef) local_unnamed_addr #2
declare i32 @strcpy(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ksft_print_msg(ptr noundef, ...) local_unnamed_addr #2
declare i32 @sigaltstack(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strerror(i32 noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #3
declare i32 @ksft_test_result_fail(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ksft_test_result_pass(ptr noundef) local_unnamed_addr #2
declare i32 @swapcontext(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ksft_exit_skip(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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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, !7, i64 4}
!6 = !{!"stk_data", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/tools/testing/selftests/sigaltstack/extr_sas.c_my_usr1.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/sigaltstack/extr_sas.c_my_usr1.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 { i64 }
@sstack = common local_unnamed_addr global i64 0, align 8
@SIGSTKSZ = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [26 x i8] c"SP is not on sigaltstack\0A\00", align 1
@msg = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"[RUN]\09signal USR1\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"sigaltstack() - %s\0A\00", align 1
@errno = common local_unnamed_addr global i32 0, align 4
@EXIT_FAILURE = common local_unnamed_addr global i32 0, align 4
@SS_DISABLE = common local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [36 x i8] c"tss_flags=%x, should be SS_DISABLE\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"sigaltstack is disabled in sighandler\0A\00", align 1
@sc = common global i32 0, align 4
@uc = common global i32 0, align 4
@.str.5 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"[RUN]\09Aborting\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @my_usr1(i32 noundef %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
%4 = alloca %struct.TYPE_3__, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
%5 = tail call i32 (ptr, ...) @ksft_exit_fail_msg(ptr noundef nonnull @.str) #4
%6 = tail call ptr @alloca(i32 noundef 1024) #4
%7 = tail call i32 @assert(ptr noundef %6) #4
%8 = getelementptr inbounds i8, ptr %6, i64 512
%9 = getelementptr inbounds i8, ptr %6, i64 516
%10 = load i32, ptr %9, align 4, !tbaa !6
%11 = load i32, ptr @msg, align 4, !tbaa !11
%12 = tail call i32 @strcpy(i32 noundef %10, i32 noundef %11) #4
store i32 1, ptr %8, align 4, !tbaa !12
%13 = tail call i32 (ptr, ...) @ksft_print_msg(ptr noundef nonnull @.str.1) #4
%14 = call i32 @sigaltstack(ptr noundef null, ptr noundef nonnull %4) #4
%15 = icmp eq i32 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %3
%17 = load i32, ptr @errno, align 4, !tbaa !11
%18 = call i32 @strerror(i32 noundef %17) #4
%19 = call i32 (ptr, ...) @ksft_exit_fail_msg(ptr noundef nonnull @.str.2, i32 noundef %18) #4
%20 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !11
%21 = call i32 @exit(i32 noundef %20) #5
unreachable
22: ; preds = %3
%23 = load i64, ptr %4, align 8, !tbaa !13
%24 = load i64, ptr @SS_DISABLE, align 8, !tbaa !16
%25 = icmp eq i64 %23, %24
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = call i32 @ksft_test_result_fail(ptr noundef nonnull @.str.3, i64 noundef %23) #4
br label %30
28: ; preds = %22
%29 = call i32 @ksft_test_result_pass(ptr noundef nonnull @.str.4) #4
br label %30
30: ; preds = %28, %26
%31 = call i32 @swapcontext(ptr noundef nonnull @sc, ptr noundef nonnull @uc) #4
%32 = load i32, ptr %9, align 4, !tbaa !6
%33 = call i32 (ptr, ...) @ksft_print_msg(ptr noundef nonnull @.str.5, i32 noundef %32) #4
%34 = load i32, ptr %8, align 4, !tbaa !12
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %30
%37 = call i32 @ksft_exit_skip(ptr noundef nonnull @.str.6) #4
%38 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !11
%39 = call i32 @exit(i32 noundef %38) #5
unreachable
40: ; preds = %30
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #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 i32 @ksft_exit_fail_msg(ptr noundef, ...) local_unnamed_addr #2
declare ptr @alloca(i32 noundef) local_unnamed_addr #2
declare i32 @assert(ptr noundef) local_unnamed_addr #2
declare i32 @strcpy(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ksft_print_msg(ptr noundef, ...) local_unnamed_addr #2
declare i32 @sigaltstack(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strerror(i32 noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #3
declare i32 @ksft_test_result_fail(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ksft_test_result_pass(ptr noundef) local_unnamed_addr #2
declare i32 @swapcontext(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ksft_exit_skip(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 = { noreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
attributes #5 = { 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, !8, i64 4}
!7 = !{!"stk_data", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!15, !15, i64 0}
| linux_tools_testing_selftests_sigaltstack_extr_sas.c_my_usr1 |
; ModuleID = 'AnghaBench/nuklear/demo/sdl_opengl3/extr_nuklear_sdl_gl3.h_nk_sdl_clipboard_paste.c'
source_filename = "AnghaBench/nuklear/demo/sdl_opengl3/extr_nuklear_sdl_gl3.h_nk_sdl_clipboard_paste.c"
target datalayout = "e-m:e-p270:32:32-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 @nk_sdl_clipboard_paste], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @nk_sdl_clipboard_paste(i32 %0, ptr noundef %1) #0 {
%3 = tail call ptr (...) @SDL_GetClipboardText() #2
%4 = icmp eq ptr %3, null
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @nk_strlen(ptr noundef nonnull %3) #2
%7 = tail call i32 @nk_textedit_paste(ptr noundef %1, ptr noundef nonnull %3, i32 noundef %6) #2
br label %8
8: ; preds = %5, %2
ret void
}
declare ptr @SDL_GetClipboardText(...) local_unnamed_addr #1
declare i32 @nk_textedit_paste(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nk_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)"}
| ; ModuleID = 'AnghaBench/nuklear/demo/sdl_opengl3/extr_nuklear_sdl_gl3.h_nk_sdl_clipboard_paste.c'
source_filename = "AnghaBench/nuklear/demo/sdl_opengl3/extr_nuklear_sdl_gl3.h_nk_sdl_clipboard_paste.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 @nk_sdl_clipboard_paste], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @nk_sdl_clipboard_paste(i32 %0, ptr noundef %1) #0 {
%3 = tail call ptr @SDL_GetClipboardText() #2
%4 = icmp eq ptr %3, null
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @nk_strlen(ptr noundef nonnull %3) #2
%7 = tail call i32 @nk_textedit_paste(ptr noundef %1, ptr noundef nonnull %3, i32 noundef %6) #2
br label %8
8: ; preds = %5, %2
ret void
}
declare ptr @SDL_GetClipboardText(...) local_unnamed_addr #1
declare i32 @nk_textedit_paste(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nk_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)"}
| nuklear_demo_sdl_opengl3_extr_nuklear_sdl_gl3.h_nk_sdl_clipboard_paste |
; ModuleID = 'AnghaBench/linux/sound/drivers/extr_mtpav.c_snd_mtpav_remove_output_timer.c'
source_filename = "AnghaBench/linux/sound/drivers/extr_mtpav.c_snd_mtpav_remove_output_timer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_mtpav_remove_output_timer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @snd_mtpav_remove_output_timer(ptr noundef %0) #0 {
%2 = tail call i32 @del_timer(ptr noundef %0) #2
ret void
}
declare i32 @del_timer(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/sound/drivers/extr_mtpav.c_snd_mtpav_remove_output_timer.c'
source_filename = "AnghaBench/linux/sound/drivers/extr_mtpav.c_snd_mtpav_remove_output_timer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @snd_mtpav_remove_output_timer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @snd_mtpav_remove_output_timer(ptr noundef %0) #0 {
%2 = tail call i32 @del_timer(ptr noundef %0) #2
ret void
}
declare i32 @del_timer(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_sound_drivers_extr_mtpav.c_snd_mtpav_remove_output_timer |
; ModuleID = 'AnghaBench/reactos/dll/win32/kernel32/winnls/string/extr_format_msg.c_load_message.c'
source_filename = "AnghaBench/reactos/dll/win32/kernel32/winnls/string/extr_format_msg.c_load_message.c"
target datalayout = "e-m:e-p270:32:32-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, i64 }
@.str = private unnamed_addr constant [24 x i8] c"module = %p, id = %08x\0A\00", align 1
@RT_MESSAGETABLE = dso_local local_unnamed_addr global i64 0, align 8
@STATUS_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@MESSAGE_RESOURCE_UNICODE = dso_local local_unnamed_addr global i32 0, align 4
@CP_ACP = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"returning %s\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @load_message], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @load_message(i64 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = trunc i64 %0 to i32
%6 = tail call i32 (ptr, i32, ...) @TRACE(ptr noundef nonnull @.str, i32 noundef %5, i32 noundef %1) #3
%7 = icmp eq i64 %0, 0
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = tail call i64 @GetModuleHandleW(ptr noundef null) #3
br label %10
10: ; preds = %8, %3
%11 = phi i64 [ %0, %3 ], [ %9, %8 ]
%12 = load i64, ptr @RT_MESSAGETABLE, align 8, !tbaa !5
%13 = call i32 @RtlFindMessage(i64 noundef %11, i64 noundef %12, i32 noundef %2, i32 noundef %1, ptr noundef nonnull %4) #3
%14 = load i32, ptr @STATUS_SUCCESS, align 4, !tbaa !9
%15 = icmp eq i32 %13, %14
br i1 %15, label %19, label %16
16: ; preds = %10
%17 = call i32 @RtlNtStatusToDosError(i32 noundef %13) #3
%18 = call i32 @SetLastError(i32 noundef %17) #3
br label %61
19: ; preds = %10
%20 = load ptr, ptr %4, align 8, !tbaa !11
%21 = load i32, ptr %20, align 8, !tbaa !13
%22 = load i32, ptr @MESSAGE_RESOURCE_UNICODE, align 4, !tbaa !9
%23 = and i32 %22, %21
%24 = icmp eq i32 %23, 0
br i1 %24, label %40, label %25
25: ; preds = %19
%26 = getelementptr inbounds %struct.TYPE_3__, ptr %20, i64 0, i32 1
%27 = load i64, ptr %26, align 8, !tbaa !15
%28 = inttoptr i64 %27 to ptr
%29 = call i32 @strlenW(ptr noundef %28) #3
%30 = shl i32 %29, 2
%31 = add i32 %30, 4
%32 = call i32 (...) @GetProcessHeap() #3
%33 = call ptr @HeapAlloc(i32 noundef %32, i32 noundef 0, i32 noundef %31) #3
%34 = icmp eq ptr %33, null
br i1 %34, label %61, label %35
35: ; preds = %25
%36 = load ptr, ptr %4, align 8, !tbaa !11
%37 = getelementptr inbounds %struct.TYPE_3__, ptr %36, i64 0, i32 1
%38 = load i64, ptr %37, align 8, !tbaa !15
%39 = call i32 @memcpy(ptr noundef nonnull %33, i64 noundef %38, i32 noundef %31) #3
br label %57
40: ; preds = %19
%41 = load i32, ptr @CP_ACP, align 4, !tbaa !9
%42 = getelementptr inbounds %struct.TYPE_3__, ptr %20, i64 0, i32 1
%43 = load i64, ptr %42, align 8, !tbaa !15
%44 = inttoptr i64 %43 to ptr
%45 = call i32 @MultiByteToWideChar(i32 noundef %41, i32 noundef 0, ptr noundef %44, i32 noundef -1, ptr noundef null, i32 noundef 0) #3
%46 = call i32 (...) @GetProcessHeap() #3
%47 = shl i32 %45, 2
%48 = call ptr @HeapAlloc(i32 noundef %46, i32 noundef 0, i32 noundef %47) #3
%49 = icmp eq ptr %48, null
br i1 %49, label %61, label %50
50: ; preds = %40
%51 = load i32, ptr @CP_ACP, align 4, !tbaa !9
%52 = load ptr, ptr %4, align 8, !tbaa !11
%53 = getelementptr inbounds %struct.TYPE_3__, ptr %52, i64 0, i32 1
%54 = load i64, ptr %53, align 8, !tbaa !15
%55 = inttoptr i64 %54 to ptr
%56 = call i32 @MultiByteToWideChar(i32 noundef %51, i32 noundef 0, ptr noundef %55, i32 noundef -1, ptr noundef nonnull %48, i32 noundef %45) #3
br label %57
57: ; preds = %50, %35
%58 = phi ptr [ %33, %35 ], [ %48, %50 ]
%59 = call i32 @wine_dbgstr_w(ptr noundef nonnull %58) #3
%60 = call i32 (ptr, i32, ...) @TRACE(ptr noundef nonnull @.str.1, i32 noundef %59) #3
br label %61
61: ; preds = %40, %25, %57, %16
%62 = phi ptr [ null, %16 ], [ %58, %57 ], [ null, %25 ], [ null, %40 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret ptr %62
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @TRACE(ptr noundef, i32 noundef, ...) local_unnamed_addr #2
declare i64 @GetModuleHandleW(ptr noundef) local_unnamed_addr #2
declare i32 @RtlFindMessage(i64 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SetLastError(i32 noundef) local_unnamed_addr #2
declare i32 @RtlNtStatusToDosError(i32 noundef) local_unnamed_addr #2
declare i32 @strlenW(ptr noundef) local_unnamed_addr #2
declare ptr @HeapAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GetProcessHeap(...) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @MultiByteToWideChar(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @wine_dbgstr_w(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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"TYPE_3__", !10, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/kernel32/winnls/string/extr_format_msg.c_load_message.c'
source_filename = "AnghaBench/reactos/dll/win32/kernel32/winnls/string/extr_format_msg.c_load_message.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 [24 x i8] c"module = %p, id = %08x\0A\00", align 1
@RT_MESSAGETABLE = common local_unnamed_addr global i64 0, align 8
@STATUS_SUCCESS = common local_unnamed_addr global i32 0, align 4
@MESSAGE_RESOURCE_UNICODE = common local_unnamed_addr global i32 0, align 4
@CP_ACP = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"returning %s\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @load_message], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @load_message(i64 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = trunc i64 %0 to i32
%6 = tail call i32 (ptr, i32, ...) @TRACE(ptr noundef nonnull @.str, i32 noundef %5, i32 noundef %1) #3
%7 = icmp eq i64 %0, 0
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = tail call i64 @GetModuleHandleW(ptr noundef null) #3
br label %10
10: ; preds = %8, %3
%11 = phi i64 [ %0, %3 ], [ %9, %8 ]
%12 = load i64, ptr @RT_MESSAGETABLE, align 8, !tbaa !6
%13 = call i32 @RtlFindMessage(i64 noundef %11, i64 noundef %12, i32 noundef %2, i32 noundef %1, ptr noundef nonnull %4) #3
%14 = load i32, ptr @STATUS_SUCCESS, align 4, !tbaa !10
%15 = icmp eq i32 %13, %14
br i1 %15, label %19, label %16
16: ; preds = %10
%17 = call i32 @RtlNtStatusToDosError(i32 noundef %13) #3
%18 = call i32 @SetLastError(i32 noundef %17) #3
br label %61
19: ; preds = %10
%20 = load ptr, ptr %4, align 8, !tbaa !12
%21 = load i32, ptr %20, align 8, !tbaa !14
%22 = load i32, ptr @MESSAGE_RESOURCE_UNICODE, align 4, !tbaa !10
%23 = and i32 %22, %21
%24 = icmp eq i32 %23, 0
br i1 %24, label %40, label %25
25: ; preds = %19
%26 = getelementptr inbounds i8, ptr %20, i64 8
%27 = load i64, ptr %26, align 8, !tbaa !16
%28 = inttoptr i64 %27 to ptr
%29 = call i32 @strlenW(ptr noundef %28) #3
%30 = shl i32 %29, 2
%31 = add i32 %30, 4
%32 = call i32 @GetProcessHeap() #3
%33 = call ptr @HeapAlloc(i32 noundef %32, i32 noundef 0, i32 noundef %31) #3
%34 = icmp eq ptr %33, null
br i1 %34, label %61, label %35
35: ; preds = %25
%36 = load ptr, ptr %4, align 8, !tbaa !12
%37 = getelementptr inbounds i8, ptr %36, i64 8
%38 = load i64, ptr %37, align 8, !tbaa !16
%39 = call i32 @memcpy(ptr noundef nonnull %33, i64 noundef %38, i32 noundef %31) #3
br label %57
40: ; preds = %19
%41 = load i32, ptr @CP_ACP, align 4, !tbaa !10
%42 = getelementptr inbounds i8, ptr %20, i64 8
%43 = load i64, ptr %42, align 8, !tbaa !16
%44 = inttoptr i64 %43 to ptr
%45 = call i32 @MultiByteToWideChar(i32 noundef %41, i32 noundef 0, ptr noundef %44, i32 noundef -1, ptr noundef null, i32 noundef 0) #3
%46 = call i32 @GetProcessHeap() #3
%47 = shl i32 %45, 2
%48 = call ptr @HeapAlloc(i32 noundef %46, i32 noundef 0, i32 noundef %47) #3
%49 = icmp eq ptr %48, null
br i1 %49, label %61, label %50
50: ; preds = %40
%51 = load i32, ptr @CP_ACP, align 4, !tbaa !10
%52 = load ptr, ptr %4, align 8, !tbaa !12
%53 = getelementptr inbounds i8, ptr %52, i64 8
%54 = load i64, ptr %53, align 8, !tbaa !16
%55 = inttoptr i64 %54 to ptr
%56 = call i32 @MultiByteToWideChar(i32 noundef %51, i32 noundef 0, ptr noundef %55, i32 noundef -1, ptr noundef nonnull %48, i32 noundef %45) #3
br label %57
57: ; preds = %50, %35
%58 = phi ptr [ %33, %35 ], [ %48, %50 ]
%59 = call i32 @wine_dbgstr_w(ptr noundef nonnull %58) #3
%60 = call i32 (ptr, i32, ...) @TRACE(ptr noundef nonnull @.str.1, i32 noundef %59) #3
br label %61
61: ; preds = %40, %25, %57, %16
%62 = phi ptr [ null, %16 ], [ %58, %57 ], [ null, %25 ], [ null, %40 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret ptr %62
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @TRACE(ptr noundef, i32 noundef, ...) local_unnamed_addr #2
declare i64 @GetModuleHandleW(ptr noundef) local_unnamed_addr #2
declare i32 @RtlFindMessage(i64 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @SetLastError(i32 noundef) local_unnamed_addr #2
declare i32 @RtlNtStatusToDosError(i32 noundef) local_unnamed_addr #2
declare i32 @strlenW(ptr noundef) local_unnamed_addr #2
declare ptr @HeapAlloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GetProcessHeap(...) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @MultiByteToWideChar(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @wine_dbgstr_w(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, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_3__", !11, i64 0, !7, i64 8}
!16 = !{!15, !7, i64 8}
| reactos_dll_win32_kernel32_winnls_string_extr_format_msg.c_load_message |
; ModuleID = 'AnghaBench/radare2/libr/egg/extr_emit_arm.c_emit_frame_end.c'
source_filename = "AnghaBench/radare2/libr/egg/extr_emit_arm.c_emit_frame_end.c"
target datalayout = "e-m:e-p270:32:32-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 [18 x i8] c" add sp, fp, %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c" pop {fp,pc}\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @emit_frame_end], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @emit_frame_end(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 (ptr, ptr, ...) @r_egg_printf(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %1) #2
br label %7
7: ; preds = %5, %3
%8 = icmp sgt i32 %2, 0
br i1 %8, label %9, label %11
9: ; preds = %7
%10 = tail call i32 (ptr, ptr, ...) @r_egg_printf(ptr noundef %0, ptr noundef nonnull @.str.1) #2
br label %11
11: ; preds = %9, %7
ret void
}
declare i32 @r_egg_printf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/radare2/libr/egg/extr_emit_arm.c_emit_frame_end.c'
source_filename = "AnghaBench/radare2/libr/egg/extr_emit_arm.c_emit_frame_end.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 [18 x i8] c" add sp, fp, %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c" pop {fp,pc}\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @emit_frame_end], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @emit_frame_end(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 (ptr, ptr, ...) @r_egg_printf(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %1) #2
br label %7
7: ; preds = %5, %3
%8 = icmp sgt i32 %2, 0
br i1 %8, label %9, label %11
9: ; preds = %7
%10 = tail call i32 (ptr, ptr, ...) @r_egg_printf(ptr noundef %0, ptr noundef nonnull @.str.1) #2
br label %11
11: ; preds = %9, %7
ret void
}
declare i32 @r_egg_printf(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)"}
| radare2_libr_egg_extr_emit_arm.c_emit_frame_end |
; ModuleID = 'AnghaBench/freebsd/contrib/libpcap/extr_gencode.c_gen_msg_abbrev.c'
source_filename = "AnghaBench/freebsd/contrib/libpcap/extr_gencode.c_gen_msg_abbrev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@A_MSGTYPE = dso_local local_unnamed_addr global i32 0, align 4
@SETUP = dso_local local_unnamed_addr global i32 0, align 4
@BPF_JEQ = dso_local local_unnamed_addr global i32 0, align 4
@CALL_PROCEED = dso_local local_unnamed_addr global i32 0, align 4
@CONNECT = dso_local local_unnamed_addr global i32 0, align 4
@CONNECT_ACK = dso_local local_unnamed_addr global i32 0, align 4
@RELEASE = dso_local local_unnamed_addr global i32 0, align 4
@RELEASE_DONE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @gen_msg_abbrev], section "llvm.metadata"
@switch.table.gen_msg_abbrev = private unnamed_addr constant [6 x ptr] [ptr @SETUP, ptr @RELEASE_DONE, ptr @RELEASE, ptr @CONNECT_ACK, ptr @CONNECT, ptr @CALL_PROCEED], align 8
; Function Attrs: nounwind uwtable
define internal ptr @gen_msg_abbrev(ptr noundef %0, i32 noundef %1) #0 {
%3 = add i32 %1, -128
%4 = icmp ult i32 %3, 6
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 (...) @abort() #3
unreachable
7: ; preds = %2
%8 = zext nneg i32 %3 to i64
%9 = getelementptr inbounds [6 x ptr], ptr @switch.table.gen_msg_abbrev, i64 0, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @A_MSGTYPE, align 4, !tbaa !5
%12 = load i32, ptr %10, align 4, !tbaa !5
%13 = load i32, ptr @BPF_JEQ, align 4, !tbaa !5
%14 = tail call ptr @gen_atmfield_code(ptr noundef %0, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef 0) #4
ret ptr %14
}
declare ptr @gen_atmfield_code(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @abort(...) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { noreturn nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libpcap/extr_gencode.c_gen_msg_abbrev.c'
source_filename = "AnghaBench/freebsd/contrib/libpcap/extr_gencode.c_gen_msg_abbrev.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@A_MSGTYPE = common local_unnamed_addr global i32 0, align 4
@SETUP = common local_unnamed_addr global i32 0, align 4
@BPF_JEQ = common local_unnamed_addr global i32 0, align 4
@CALL_PROCEED = common local_unnamed_addr global i32 0, align 4
@CONNECT = common local_unnamed_addr global i32 0, align 4
@CONNECT_ACK = common local_unnamed_addr global i32 0, align 4
@RELEASE = common local_unnamed_addr global i32 0, align 4
@RELEASE_DONE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @gen_msg_abbrev], section "llvm.metadata"
@switch.table.gen_msg_abbrev = private unnamed_addr constant [6 x ptr] [ptr @SETUP, ptr @RELEASE_DONE, ptr @RELEASE, ptr @CONNECT_ACK, ptr @CONNECT, ptr @CALL_PROCEED], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @gen_msg_abbrev(ptr noundef %0, i32 noundef %1) #0 {
%3 = add i32 %1, -128
%4 = icmp ult i32 %3, 6
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @abort() #3
unreachable
7: ; preds = %2
%8 = zext nneg i32 %3 to i64
%9 = getelementptr inbounds [6 x ptr], ptr @switch.table.gen_msg_abbrev, i64 0, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @A_MSGTYPE, align 4, !tbaa !6
%12 = load i32, ptr %10, align 4, !tbaa !6
%13 = load i32, ptr @BPF_JEQ, align 4, !tbaa !6
%14 = tail call ptr @gen_atmfield_code(ptr noundef %0, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef 0) #4
ret ptr %14
}
declare ptr @gen_atmfield_code(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @abort(...) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { 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 = { noreturn nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_libpcap_extr_gencode.c_gen_msg_abbrev |
; ModuleID = 'AnghaBench/libgit2/tests/checkout/extr_tree.c_test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT.c'
source_filename = "AnghaBench/libgit2/tests/checkout/extr_tree.c_test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT.c"
target datalayout = "e-m:e-p270:32:32-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 [16 x i8] c"link_to_new.txt\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"old.txt\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"a65fedf\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"099faba\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT() local_unnamed_addr #0 {
%1 = tail call i32 @assert_conflict(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3) #2
ret void
}
declare i32 @assert_conflict(ptr 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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/libgit2/tests/checkout/extr_tree.c_test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT.c'
source_filename = "AnghaBench/libgit2/tests/checkout/extr_tree.c_test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT.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"link_to_new.txt\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"old.txt\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"a65fedf\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"099faba\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT() local_unnamed_addr #0 {
%1 = tail call i32 @assert_conflict(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3) #2
ret void
}
declare i32 @assert_conflict(ptr 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 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| libgit2_tests_checkout_extr_tree.c_test_checkout_tree__checking_out_a_conflicting_type_change_returns_ECONFLICT |
; ModuleID = 'AnghaBench/linux/drivers/usb/chipidea/extr_usbmisc_imx.c_usbmisc_imx_probe.c'
source_filename = "AnghaBench/linux/drivers/usb/chipidea/extr_usbmisc_imx.c_usbmisc_imx_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.imx_usbmisc = type { ptr, i32, i32 }
@usbmisc_imx_dt_ids = dso_local local_unnamed_addr global i32 0, align 4
@ENODEV = 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
@llvm.compiler.used = appending global [1 x ptr] [ptr @usbmisc_imx_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @usbmisc_imx_probe(ptr noundef %0) #0 {
%2 = load i32, ptr @usbmisc_imx_dt_ids, align 4, !tbaa !5
%3 = tail call ptr @of_match_device(i32 noundef %2, ptr noundef %0) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @ENODEV, align 4, !tbaa !5
%7 = sub nsw i32 0, %6
br label %29
8: ; preds = %1
%9 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%10 = tail call ptr @devm_kzalloc(ptr noundef %0, i32 noundef 16, i32 noundef %9) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%14 = sub nsw i32 0, %13
br label %29
15: ; preds = %8
%16 = getelementptr inbounds %struct.imx_usbmisc, ptr %10, i64 0, i32 2
%17 = tail call i32 @spin_lock_init(ptr noundef nonnull %16) #2
%18 = tail call i32 @devm_platform_ioremap_resource(ptr noundef %0, i32 noundef 0) #2
%19 = getelementptr inbounds %struct.imx_usbmisc, ptr %10, i64 0, i32 1
store i32 %18, ptr %19, align 8, !tbaa !9
%20 = tail call i64 @IS_ERR(i32 noundef %18) #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %15
%23 = load i32, ptr %19, align 8, !tbaa !9
%24 = tail call i32 @PTR_ERR(i32 noundef %23) #2
br label %29
25: ; preds = %15
%26 = load i64, ptr %3, align 8, !tbaa !12
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %10, align 8, !tbaa !15
%28 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %10) #2
br label %29
29: ; preds = %25, %22, %12, %5
%30 = phi i32 [ %24, %22 ], [ 0, %25 ], [ %14, %12 ], [ %7, %5 ]
ret i32 %30
}
declare ptr @of_match_device(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_init(ptr noundef) local_unnamed_addr #1
declare i32 @devm_platform_ioremap_resource(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"imx_usbmisc", !11, i64 0, !6, i64 8, !6, i64 12}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"of_device_id", !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/chipidea/extr_usbmisc_imx.c_usbmisc_imx_probe.c'
source_filename = "AnghaBench/linux/drivers/usb/chipidea/extr_usbmisc_imx.c_usbmisc_imx_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@usbmisc_imx_dt_ids = common local_unnamed_addr global i32 0, align 4
@ENODEV = 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
@llvm.used = appending global [1 x ptr] [ptr @usbmisc_imx_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @usbmisc_imx_probe(ptr noundef %0) #0 {
%2 = load i32, ptr @usbmisc_imx_dt_ids, align 4, !tbaa !6
%3 = tail call ptr @of_match_device(i32 noundef %2, ptr noundef %0) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @ENODEV, align 4, !tbaa !6
%7 = sub nsw i32 0, %6
br label %29
8: ; preds = %1
%9 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%10 = tail call ptr @devm_kzalloc(ptr noundef %0, i32 noundef 16, i32 noundef %9) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%14 = sub nsw i32 0, %13
br label %29
15: ; preds = %8
%16 = getelementptr inbounds i8, ptr %10, i64 12
%17 = tail call i32 @spin_lock_init(ptr noundef nonnull %16) #2
%18 = tail call i32 @devm_platform_ioremap_resource(ptr noundef %0, i32 noundef 0) #2
%19 = getelementptr inbounds i8, ptr %10, i64 8
store i32 %18, ptr %19, align 8, !tbaa !10
%20 = tail call i64 @IS_ERR(i32 noundef %18) #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %15
%23 = load i32, ptr %19, align 8, !tbaa !10
%24 = tail call i32 @PTR_ERR(i32 noundef %23) #2
br label %29
25: ; preds = %15
%26 = load i64, ptr %3, align 8, !tbaa !13
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %10, align 8, !tbaa !16
%28 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %10) #2
br label %29
29: ; preds = %25, %22, %12, %5
%30 = phi i32 [ %24, %22 ], [ 0, %25 ], [ %14, %12 ], [ %7, %5 ]
ret i32 %30
}
declare ptr @of_match_device(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_init(ptr noundef) local_unnamed_addr #1
declare i32 @devm_platform_ioremap_resource(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"imx_usbmisc", !12, i64 0, !7, i64 8, !7, i64 12}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"of_device_id", !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!11, !12, i64 0}
| linux_drivers_usb_chipidea_extr_usbmisc_imx.c_usbmisc_imx_probe |
; ModuleID = 'AnghaBench/freebsd/sys/dev/rtwn/rtl8188e/extr_r88e_calib.c_r88e_iq_calib_compare_results.c'
source_filename = "AnghaBench/freebsd/sys/dev/rtwn/rtl8188e/extr_r88e_calib.c_r88e_iq_calib_compare_results.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@RTWN_IQ_CAL_MAX_TOLERANCE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @r88e_iq_calib_compare_results], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @r88e_iq_calib_compare_results(ptr nocapture readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4) #0 {
%6 = load i32, ptr %1, align 4, !tbaa !5
%7 = icmp eq i32 %6, 255
br i1 %7, label %30, label %8
8: ; preds = %5
%9 = load i32, ptr %3, align 4, !tbaa !5
%10 = icmp eq i32 %9, 255
br i1 %10, label %30, label %11
11: ; preds = %8
%12 = load i32, ptr %2, align 4, !tbaa !5
%13 = icmp eq i32 %12, 255
br i1 %13, label %30, label %14
14: ; preds = %11
%15 = load i32, ptr %4, align 4, !tbaa !5
%16 = icmp eq i32 %15, 255
br i1 %16, label %30, label %17
17: ; preds = %14
%18 = sub nsw i32 %6, %9
%19 = tail call i64 @abs(i32 noundef %18) #2
%20 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !9
%21 = icmp sle i64 %19, %20
%22 = zext i1 %21 to i32
%23 = load i32, ptr %2, align 4, !tbaa !5
%24 = load i32, ptr %4, align 4, !tbaa !5
%25 = sub nsw i32 %23, %24
%26 = tail call i64 @abs(i32 noundef %25) #2
%27 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !9
%28 = icmp sle i64 %26, %27
%29 = zext i1 %28 to i32
br label %30
30: ; preds = %5, %8, %11, %14, %17
%31 = phi i32 [ 0, %5 ], [ 0, %8 ], [ 0, %11 ], [ 0, %14 ], [ %22, %17 ]
%32 = phi i32 [ 0, %5 ], [ 0, %8 ], [ 0, %11 ], [ 0, %14 ], [ %29, %17 ]
%33 = getelementptr inbounds i32, ptr %1, i64 1
%34 = load i32, ptr %33, align 4, !tbaa !5
%35 = icmp eq i32 %34, 255
br i1 %35, label %61, label %36
36: ; preds = %30
%37 = getelementptr inbounds i32, ptr %3, i64 1
%38 = load i32, ptr %37, align 4, !tbaa !5
%39 = icmp eq i32 %38, 255
br i1 %39, label %61, label %40
40: ; preds = %36
%41 = getelementptr inbounds i32, ptr %2, i64 1
%42 = load i32, ptr %41, align 4, !tbaa !5
%43 = icmp eq i32 %42, 255
br i1 %43, label %61, label %44
44: ; preds = %40
%45 = getelementptr inbounds i32, ptr %4, i64 1
%46 = load i32, ptr %45, align 4, !tbaa !5
%47 = icmp eq i32 %46, 255
br i1 %47, label %61, label %48
48: ; preds = %44
%49 = sub nsw i32 %34, %38
%50 = tail call i64 @abs(i32 noundef %49) #2
%51 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !9
%52 = icmp sle i64 %50, %51
%53 = zext i1 %52 to i32
%54 = load i32, ptr %41, align 4, !tbaa !5
%55 = load i32, ptr %45, align 4, !tbaa !5
%56 = sub nsw i32 %54, %55
%57 = tail call i64 @abs(i32 noundef %56) #2
%58 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !9
%59 = icmp sle i64 %57, %58
%60 = zext i1 %59 to i32
br label %61
61: ; preds = %48, %44, %40, %36, %30
%62 = phi i32 [ %31, %30 ], [ %31, %36 ], [ %31, %40 ], [ %31, %44 ], [ %53, %48 ]
%63 = phi i32 [ %32, %30 ], [ %32, %36 ], [ %32, %40 ], [ %32, %44 ], [ %60, %48 ]
%64 = icmp ne i32 %62, 0
%65 = icmp ne i32 %63, 0
%66 = select i1 %64, i1 %65, i1 false
%67 = zext i1 %66 to i32
ret i32 %67
}
declare i64 @abs(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/rtwn/rtl8188e/extr_r88e_calib.c_r88e_iq_calib_compare_results.c'
source_filename = "AnghaBench/freebsd/sys/dev/rtwn/rtl8188e/extr_r88e_calib.c_r88e_iq_calib_compare_results.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RTWN_IQ_CAL_MAX_TOLERANCE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @r88e_iq_calib_compare_results], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @r88e_iq_calib_compare_results(ptr nocapture readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4) #0 {
%6 = load i32, ptr %1, align 4, !tbaa !6
%7 = icmp eq i32 %6, 255
br i1 %7, label %30, label %8
8: ; preds = %5
%9 = load i32, ptr %3, align 4, !tbaa !6
%10 = icmp eq i32 %9, 255
br i1 %10, label %30, label %11
11: ; preds = %8
%12 = load i32, ptr %2, align 4, !tbaa !6
%13 = icmp eq i32 %12, 255
br i1 %13, label %30, label %14
14: ; preds = %11
%15 = load i32, ptr %4, align 4, !tbaa !6
%16 = icmp eq i32 %15, 255
br i1 %16, label %30, label %17
17: ; preds = %14
%18 = sub nsw i32 %6, %9
%19 = tail call i64 @abs(i32 noundef %18) #2
%20 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !10
%21 = icmp sle i64 %19, %20
%22 = zext i1 %21 to i32
%23 = load i32, ptr %2, align 4, !tbaa !6
%24 = load i32, ptr %4, align 4, !tbaa !6
%25 = sub nsw i32 %23, %24
%26 = tail call i64 @abs(i32 noundef %25) #2
%27 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !10
%28 = icmp sle i64 %26, %27
%29 = zext i1 %28 to i32
br label %30
30: ; preds = %5, %8, %11, %14, %17
%31 = phi i32 [ 0, %5 ], [ 0, %8 ], [ 0, %11 ], [ 0, %14 ], [ %22, %17 ]
%32 = phi i32 [ 0, %5 ], [ 0, %8 ], [ 0, %11 ], [ 0, %14 ], [ %29, %17 ]
%33 = getelementptr inbounds i8, ptr %1, i64 4
%34 = load i32, ptr %33, align 4, !tbaa !6
%35 = icmp eq i32 %34, 255
br i1 %35, label %61, label %36
36: ; preds = %30
%37 = getelementptr inbounds i8, ptr %3, i64 4
%38 = load i32, ptr %37, align 4, !tbaa !6
%39 = icmp eq i32 %38, 255
br i1 %39, label %61, label %40
40: ; preds = %36
%41 = getelementptr inbounds i8, ptr %2, i64 4
%42 = load i32, ptr %41, align 4, !tbaa !6
%43 = icmp eq i32 %42, 255
br i1 %43, label %61, label %44
44: ; preds = %40
%45 = getelementptr inbounds i8, ptr %4, i64 4
%46 = load i32, ptr %45, align 4, !tbaa !6
%47 = icmp eq i32 %46, 255
br i1 %47, label %61, label %48
48: ; preds = %44
%49 = sub nsw i32 %34, %38
%50 = tail call i64 @abs(i32 noundef %49) #2
%51 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !10
%52 = icmp sle i64 %50, %51
%53 = zext i1 %52 to i32
%54 = load i32, ptr %41, align 4, !tbaa !6
%55 = load i32, ptr %45, align 4, !tbaa !6
%56 = sub nsw i32 %54, %55
%57 = tail call i64 @abs(i32 noundef %56) #2
%58 = load i64, ptr @RTWN_IQ_CAL_MAX_TOLERANCE, align 8, !tbaa !10
%59 = icmp sle i64 %57, %58
%60 = zext i1 %59 to i32
br label %61
61: ; preds = %48, %44, %40, %36, %30
%62 = phi i32 [ %31, %30 ], [ %31, %36 ], [ %31, %40 ], [ %31, %44 ], [ %53, %48 ]
%63 = phi i32 [ %32, %30 ], [ %32, %36 ], [ %32, %40 ], [ %32, %44 ], [ %60, %48 ]
%64 = icmp ne i32 %62, 0
%65 = icmp ne i32 %63, 0
%66 = select i1 %64, i1 %65, i1 false
%67 = zext i1 %66 to i32
ret i32 %67
}
declare i64 @abs(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
| freebsd_sys_dev_rtwn_rtl8188e_extr_r88e_calib.c_r88e_iq_calib_compare_results |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/powerpc/boot/extr_dummy.c_main.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/powerpc/boot/extr_dummy.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local noundef i32 @main() 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/arch/powerpc/boot/extr_dummy.c_main.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/powerpc/boot/extr_dummy.c_main.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 @main() 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_arch_powerpc_boot_extr_dummy.c_main |
; ModuleID = 'AnghaBench/HandBrake/libhb/extr_preset.c_import_detel_0_0_0.c'
source_filename = "AnghaBench/HandBrake/libhb/extr_preset.c_import_detel_0_0_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"PictureDetelecine\00", align 1
@HB_FILTER_DETELECINE = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"Invalid detelecine index %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"off\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @import_detel_0_0_0], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @import_detel_0_0_0(ptr noundef %0) #0 {
%2 = tail call ptr @hb_dict_get(ptr noundef %0, ptr noundef nonnull @.str) #2
%3 = tail call i64 @hb_value_is_number(ptr noundef %2) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %1
%6 = tail call i32 @hb_value_get_int(ptr noundef %2) #2
%7 = load i32, ptr @HB_FILTER_DETELECINE, align 4, !tbaa !5
%8 = tail call ptr @import_indexed_filter(i32 noundef %7, i32 noundef %6) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %5
%11 = tail call i32 @hb_error(ptr noundef nonnull @.str.1, i32 noundef %6) #2
br label %12
12: ; preds = %5, %10
%13 = phi ptr [ @.str.2, %10 ], [ %8, %5 ]
%14 = tail call i32 @hb_value_string(ptr noundef nonnull %13) #2
%15 = tail call i32 @hb_dict_set(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %14) #2
br label %16
16: ; preds = %12, %1
ret void
}
declare ptr @hb_dict_get(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @hb_value_is_number(ptr noundef) local_unnamed_addr #1
declare i32 @hb_value_get_int(ptr noundef) local_unnamed_addr #1
declare ptr @import_indexed_filter(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hb_dict_set(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hb_value_string(ptr noundef) local_unnamed_addr #1
declare i32 @hb_error(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/HandBrake/libhb/extr_preset.c_import_detel_0_0_0.c'
source_filename = "AnghaBench/HandBrake/libhb/extr_preset.c_import_detel_0_0_0.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [18 x i8] c"PictureDetelecine\00", align 1
@HB_FILTER_DETELECINE = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [28 x i8] c"Invalid detelecine index %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"off\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @import_detel_0_0_0], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @import_detel_0_0_0(ptr noundef %0) #0 {
%2 = tail call ptr @hb_dict_get(ptr noundef %0, ptr noundef nonnull @.str) #2
%3 = tail call i64 @hb_value_is_number(ptr noundef %2) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %1
%6 = tail call i32 @hb_value_get_int(ptr noundef %2) #2
%7 = load i32, ptr @HB_FILTER_DETELECINE, align 4, !tbaa !6
%8 = tail call ptr @import_indexed_filter(i32 noundef %7, i32 noundef %6) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %5
%11 = tail call i32 @hb_error(ptr noundef nonnull @.str.1, i32 noundef %6) #2
br label %12
12: ; preds = %5, %10
%13 = phi ptr [ @.str.2, %10 ], [ %8, %5 ]
%14 = tail call i32 @hb_value_string(ptr noundef nonnull %13) #2
%15 = tail call i32 @hb_dict_set(ptr noundef %0, ptr noundef nonnull @.str, i32 noundef %14) #2
br label %16
16: ; preds = %12, %1
ret void
}
declare ptr @hb_dict_get(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @hb_value_is_number(ptr noundef) local_unnamed_addr #1
declare i32 @hb_value_get_int(ptr noundef) local_unnamed_addr #1
declare ptr @import_indexed_filter(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hb_dict_set(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hb_value_string(ptr noundef) local_unnamed_addr #1
declare i32 @hb_error(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"}
| HandBrake_libhb_extr_preset.c_import_detel_0_0_0 |
; ModuleID = 'AnghaBench/linux/sound/soc/meson/extr_axg-card.c_axg_card_probe.c'
source_filename = "AnghaBench/linux/sound/soc/meson/extr_axg-card.c_axg_card_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_7__ = type { ptr, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@THIS_MODULE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"model\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"audio-routing\00", align 1
@snd_soc_of_parse_audio_routing = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"error while parsing routing\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"audio-widgets\00", align 1
@snd_soc_of_parse_audio_simple_widgets = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [29 x i8] c"error while parsing widgets\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @axg_card_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @axg_card_probe(ptr noundef %0) #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%3 = tail call ptr @devm_kzalloc(ptr noundef %0, i32 noundef 16, i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%7 = sub nsw i32 0, %6
br label %39
8: ; preds = %1
%9 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %3) #2
%10 = tail call i32 @snd_soc_card_set_drvdata(ptr noundef nonnull %3, ptr noundef nonnull %3) #2
%11 = load i32, ptr @THIS_MODULE, align 4, !tbaa !5
%12 = getelementptr inbounds %struct.TYPE_7__, ptr %3, i64 0, i32 1
store i32 %11, ptr %12, align 8, !tbaa !9
store ptr %0, ptr %3, align 8, !tbaa !13
%13 = tail call i32 @snd_soc_of_parse_card_name(ptr noundef nonnull %3, ptr noundef nonnull @.str) #2
%14 = icmp slt i32 %13, 0
br i1 %14, label %39, label %15
15: ; preds = %8
%16 = load i32, ptr @snd_soc_of_parse_audio_routing, align 4, !tbaa !5
%17 = tail call i32 @axg_card_parse_of_optional(ptr noundef nonnull %3, ptr noundef nonnull @.str.1, i32 noundef %16) #2
%18 = icmp eq i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %15
%20 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str.2) #2
br label %39
21: ; preds = %15
%22 = load i32, ptr @snd_soc_of_parse_audio_simple_widgets, align 4, !tbaa !5
%23 = tail call i32 @axg_card_parse_of_optional(ptr noundef nonnull %3, ptr noundef nonnull @.str.3, i32 noundef %22) #2
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %21
%26 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str.4) #2
br label %39
27: ; preds = %21
%28 = tail call i32 @axg_card_add_links(ptr noundef nonnull %3) #2
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = tail call i32 @axg_card_add_aux_devices(ptr noundef nonnull %3) #2
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = tail call i32 @devm_snd_soc_register_card(ptr noundef %0, ptr noundef nonnull %3) #2
%35 = icmp eq i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %33, %30, %27
%37 = phi i32 [ %28, %27 ], [ %31, %30 ], [ %34, %33 ]
%38 = tail call i32 @axg_card_clean_references(ptr noundef nonnull %3) #2
br label %39
39: ; preds = %33, %8, %36, %25, %19, %5
%40 = phi i32 [ %17, %19 ], [ %23, %25 ], [ %37, %36 ], [ %7, %5 ], [ %13, %8 ], [ 0, %33 ]
ret i32 %40
}
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @snd_soc_card_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @snd_soc_of_parse_card_name(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_parse_of_optional(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_add_links(ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_add_aux_devices(ptr noundef) local_unnamed_addr #1
declare i32 @devm_snd_soc_register_card(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_clean_references(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"axg_card", !11, i64 0}
!11 = !{!"TYPE_7__", !12, i64 0, !6, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/soc/meson/extr_axg-card.c_axg_card_probe.c'
source_filename = "AnghaBench/linux/sound/soc/meson/extr_axg-card.c_axg_card_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@THIS_MODULE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"model\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"audio-routing\00", align 1
@snd_soc_of_parse_audio_routing = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"error while parsing routing\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"audio-widgets\00", align 1
@snd_soc_of_parse_audio_simple_widgets = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [29 x i8] c"error while parsing widgets\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @axg_card_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @axg_card_probe(ptr noundef %0) #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%3 = tail call ptr @devm_kzalloc(ptr noundef %0, i32 noundef 16, i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%7 = sub nsw i32 0, %6
br label %39
8: ; preds = %1
%9 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %3) #2
%10 = tail call i32 @snd_soc_card_set_drvdata(ptr noundef nonnull %3, ptr noundef nonnull %3) #2
%11 = load i32, ptr @THIS_MODULE, align 4, !tbaa !6
%12 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %11, ptr %12, align 8, !tbaa !10
store ptr %0, ptr %3, align 8, !tbaa !14
%13 = tail call i32 @snd_soc_of_parse_card_name(ptr noundef nonnull %3, ptr noundef nonnull @.str) #2
%14 = icmp slt i32 %13, 0
br i1 %14, label %39, label %15
15: ; preds = %8
%16 = load i32, ptr @snd_soc_of_parse_audio_routing, align 4, !tbaa !6
%17 = tail call i32 @axg_card_parse_of_optional(ptr noundef nonnull %3, ptr noundef nonnull @.str.1, i32 noundef %16) #2
%18 = icmp eq i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %15
%20 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str.2) #2
br label %39
21: ; preds = %15
%22 = load i32, ptr @snd_soc_of_parse_audio_simple_widgets, align 4, !tbaa !6
%23 = tail call i32 @axg_card_parse_of_optional(ptr noundef nonnull %3, ptr noundef nonnull @.str.3, i32 noundef %22) #2
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %21
%26 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str.4) #2
br label %39
27: ; preds = %21
%28 = tail call i32 @axg_card_add_links(ptr noundef nonnull %3) #2
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = tail call i32 @axg_card_add_aux_devices(ptr noundef nonnull %3) #2
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = tail call i32 @devm_snd_soc_register_card(ptr noundef %0, ptr noundef nonnull %3) #2
%35 = icmp eq i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %33, %30, %27
%37 = phi i32 [ %28, %27 ], [ %31, %30 ], [ %34, %33 ]
%38 = tail call i32 @axg_card_clean_references(ptr noundef nonnull %3) #2
br label %39
39: ; preds = %33, %8, %36, %25, %19, %5
%40 = phi i32 [ %17, %19 ], [ %23, %25 ], [ %37, %36 ], [ %7, %5 ], [ %13, %8 ], [ 0, %33 ]
ret i32 %40
}
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @snd_soc_card_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @snd_soc_of_parse_card_name(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_parse_of_optional(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_add_links(ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_add_aux_devices(ptr noundef) local_unnamed_addr #1
declare i32 @devm_snd_soc_register_card(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @axg_card_clean_references(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"axg_card", !12, i64 0}
!12 = !{!"TYPE_7__", !13, i64 0, !7, i64 8}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !13, i64 0}
| linux_sound_soc_meson_extr_axg-card.c_axg_card_probe |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_winbond-840.c_free_rxtx_rings.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_winbond-840.c_free_rxtx_rings.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.netdev_private = type { ptr, ptr, i32, ptr, ptr, ptr }
%struct.TYPE_3__ = type { i64 }
@RX_RING_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@PCI_DMA_FROMDEVICE = dso_local local_unnamed_addr global i32 0, align 4
@TX_RING_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@PCI_DMA_TODEVICE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @free_rxtx_rings], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @free_rxtx_rings(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @RX_RING_SIZE, align 4, !tbaa !5
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %9
4: ; preds = %1
%5 = getelementptr inbounds %struct.netdev_private, ptr %0, i64 0, i32 5
%6 = getelementptr inbounds %struct.netdev_private, ptr %0, i64 0, i32 3
%7 = getelementptr inbounds %struct.netdev_private, ptr %0, i64 0, i32 2
%8 = getelementptr inbounds %struct.netdev_private, ptr %0, i64 0, i32 4
br label %15
9: ; preds = %38, %1
%10 = load i32, ptr @TX_RING_SIZE, align 4, !tbaa !5
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %73
12: ; preds = %9
%13 = getelementptr inbounds %struct.netdev_private, ptr %0, i64 0, i32 2
%14 = getelementptr inbounds %struct.netdev_private, ptr %0, i64 0, i32 1
br label %45
15: ; preds = %4, %38
%16 = phi i32 [ %2, %4 ], [ %39, %38 ]
%17 = phi i64 [ 0, %4 ], [ %42, %38 ]
%18 = load ptr, ptr %5, align 8, !tbaa !9
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %18, i64 %17
store i64 0, ptr %19, align 8, !tbaa !12
%20 = load ptr, ptr %6, align 8, !tbaa !15
%21 = getelementptr inbounds ptr, ptr %20, i64 %17
%22 = load ptr, ptr %21, align 8, !tbaa !16
%23 = icmp eq ptr %22, null
br i1 %23, label %38, label %24
24: ; preds = %15
%25 = load i32, ptr %7, align 8, !tbaa !17
%26 = load ptr, ptr %8, align 8, !tbaa !18
%27 = getelementptr inbounds i32, ptr %26, i64 %17
%28 = load i32, ptr %27, align 4, !tbaa !5
%29 = load i32, ptr %22, align 4, !tbaa !19
%30 = load i32, ptr @PCI_DMA_FROMDEVICE, align 4, !tbaa !5
%31 = tail call i32 @pci_unmap_single(i32 noundef %25, i32 noundef %28, i32 noundef %29, i32 noundef %30) #2
%32 = load ptr, ptr %6, align 8, !tbaa !15
%33 = getelementptr inbounds ptr, ptr %32, i64 %17
%34 = load ptr, ptr %33, align 8, !tbaa !16
%35 = tail call i32 @dev_kfree_skb(ptr noundef %34) #2
%36 = load ptr, ptr %6, align 8, !tbaa !15
%37 = load i32, ptr @RX_RING_SIZE, align 4, !tbaa !5
br label %38
38: ; preds = %24, %15
%39 = phi i32 [ %37, %24 ], [ %16, %15 ]
%40 = phi ptr [ %36, %24 ], [ %20, %15 ]
%41 = getelementptr inbounds ptr, ptr %40, i64 %17
store ptr null, ptr %41, align 8, !tbaa !16
%42 = add nuw nsw i64 %17, 1
%43 = sext i32 %39 to i64
%44 = icmp slt i64 %42, %43
br i1 %44, label %15, label %9, !llvm.loop !21
45: ; preds = %12, %66
%46 = phi i32 [ %10, %12 ], [ %67, %66 ]
%47 = phi i64 [ 0, %12 ], [ %70, %66 ]
%48 = load ptr, ptr %0, align 8, !tbaa !23
%49 = getelementptr inbounds ptr, ptr %48, i64 %47
%50 = load ptr, ptr %49, align 8, !tbaa !16
%51 = icmp eq ptr %50, null
br i1 %51, label %66, label %52
52: ; preds = %45
%53 = load i32, ptr %13, align 8, !tbaa !17
%54 = load ptr, ptr %14, align 8, !tbaa !24
%55 = getelementptr inbounds i32, ptr %54, i64 %47
%56 = load i32, ptr %55, align 4, !tbaa !5
%57 = load i32, ptr %50, align 4, !tbaa !19
%58 = load i32, ptr @PCI_DMA_TODEVICE, align 4, !tbaa !5
%59 = tail call i32 @pci_unmap_single(i32 noundef %53, i32 noundef %56, i32 noundef %57, i32 noundef %58) #2
%60 = load ptr, ptr %0, align 8, !tbaa !23
%61 = getelementptr inbounds ptr, ptr %60, i64 %47
%62 = load ptr, ptr %61, align 8, !tbaa !16
%63 = tail call i32 @dev_kfree_skb(ptr noundef %62) #2
%64 = load ptr, ptr %0, align 8, !tbaa !23
%65 = load i32, ptr @TX_RING_SIZE, align 4, !tbaa !5
br label %66
66: ; preds = %52, %45
%67 = phi i32 [ %65, %52 ], [ %46, %45 ]
%68 = phi ptr [ %64, %52 ], [ %48, %45 ]
%69 = getelementptr inbounds ptr, ptr %68, i64 %47
store ptr null, ptr %69, align 8, !tbaa !16
%70 = add nuw nsw i64 %47, 1
%71 = sext i32 %67 to i64
%72 = icmp slt i64 %70, %71
br i1 %72, label %45, label %73, !llvm.loop !25
73: ; preds = %66, %9
ret void
}
declare i32 @pci_unmap_single(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_kfree_skb(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 40}
!10 = !{!"netdev_private", !11, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !11, i64 24}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !6, i64 16}
!18 = !{!10, !11, i64 32}
!19 = !{!20, !6, i64 0}
!20 = !{!"TYPE_4__", !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !11, i64 0}
!24 = !{!10, !11, i64 8}
!25 = distinct !{!25, !22}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_winbond-840.c_free_rxtx_rings.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/dec/tulip/extr_winbond-840.c_free_rxtx_rings.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 { i64 }
@RX_RING_SIZE = common local_unnamed_addr global i32 0, align 4
@PCI_DMA_FROMDEVICE = common local_unnamed_addr global i32 0, align 4
@TX_RING_SIZE = common local_unnamed_addr global i32 0, align 4
@PCI_DMA_TODEVICE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @free_rxtx_rings], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @free_rxtx_rings(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @RX_RING_SIZE, align 4, !tbaa !6
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %9
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 40
%6 = getelementptr inbounds i8, ptr %0, i64 24
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = getelementptr inbounds i8, ptr %0, i64 32
br label %15
9: ; preds = %38, %1
%10 = load i32, ptr @TX_RING_SIZE, align 4, !tbaa !6
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %73
12: ; preds = %9
%13 = getelementptr inbounds i8, ptr %0, i64 16
%14 = getelementptr inbounds i8, ptr %0, i64 8
br label %45
15: ; preds = %4, %38
%16 = phi i32 [ %2, %4 ], [ %39, %38 ]
%17 = phi i64 [ 0, %4 ], [ %42, %38 ]
%18 = load ptr, ptr %5, align 8, !tbaa !10
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %18, i64 %17
store i64 0, ptr %19, align 8, !tbaa !13
%20 = load ptr, ptr %6, align 8, !tbaa !16
%21 = getelementptr inbounds ptr, ptr %20, i64 %17
%22 = load ptr, ptr %21, align 8, !tbaa !17
%23 = icmp eq ptr %22, null
br i1 %23, label %38, label %24
24: ; preds = %15
%25 = load i32, ptr %7, align 8, !tbaa !18
%26 = load ptr, ptr %8, align 8, !tbaa !19
%27 = getelementptr inbounds i32, ptr %26, i64 %17
%28 = load i32, ptr %27, align 4, !tbaa !6
%29 = load i32, ptr %22, align 4, !tbaa !20
%30 = load i32, ptr @PCI_DMA_FROMDEVICE, align 4, !tbaa !6
%31 = tail call i32 @pci_unmap_single(i32 noundef %25, i32 noundef %28, i32 noundef %29, i32 noundef %30) #2
%32 = load ptr, ptr %6, align 8, !tbaa !16
%33 = getelementptr inbounds ptr, ptr %32, i64 %17
%34 = load ptr, ptr %33, align 8, !tbaa !17
%35 = tail call i32 @dev_kfree_skb(ptr noundef %34) #2
%36 = load ptr, ptr %6, align 8, !tbaa !16
%37 = load i32, ptr @RX_RING_SIZE, align 4, !tbaa !6
br label %38
38: ; preds = %24, %15
%39 = phi i32 [ %37, %24 ], [ %16, %15 ]
%40 = phi ptr [ %36, %24 ], [ %20, %15 ]
%41 = getelementptr inbounds ptr, ptr %40, i64 %17
store ptr null, ptr %41, align 8, !tbaa !17
%42 = add nuw nsw i64 %17, 1
%43 = sext i32 %39 to i64
%44 = icmp slt i64 %42, %43
br i1 %44, label %15, label %9, !llvm.loop !22
45: ; preds = %12, %66
%46 = phi i32 [ %10, %12 ], [ %67, %66 ]
%47 = phi i64 [ 0, %12 ], [ %70, %66 ]
%48 = load ptr, ptr %0, align 8, !tbaa !24
%49 = getelementptr inbounds ptr, ptr %48, i64 %47
%50 = load ptr, ptr %49, align 8, !tbaa !17
%51 = icmp eq ptr %50, null
br i1 %51, label %66, label %52
52: ; preds = %45
%53 = load i32, ptr %13, align 8, !tbaa !18
%54 = load ptr, ptr %14, align 8, !tbaa !25
%55 = getelementptr inbounds i32, ptr %54, i64 %47
%56 = load i32, ptr %55, align 4, !tbaa !6
%57 = load i32, ptr %50, align 4, !tbaa !20
%58 = load i32, ptr @PCI_DMA_TODEVICE, align 4, !tbaa !6
%59 = tail call i32 @pci_unmap_single(i32 noundef %53, i32 noundef %56, i32 noundef %57, i32 noundef %58) #2
%60 = load ptr, ptr %0, align 8, !tbaa !24
%61 = getelementptr inbounds ptr, ptr %60, i64 %47
%62 = load ptr, ptr %61, align 8, !tbaa !17
%63 = tail call i32 @dev_kfree_skb(ptr noundef %62) #2
%64 = load ptr, ptr %0, align 8, !tbaa !24
%65 = load i32, ptr @TX_RING_SIZE, align 4, !tbaa !6
br label %66
66: ; preds = %52, %45
%67 = phi i32 [ %65, %52 ], [ %46, %45 ]
%68 = phi ptr [ %64, %52 ], [ %48, %45 ]
%69 = getelementptr inbounds ptr, ptr %68, i64 %47
store ptr null, ptr %69, align 8, !tbaa !17
%70 = add nuw nsw i64 %47, 1
%71 = sext i32 %67 to i64
%72 = icmp slt i64 %70, %71
br i1 %72, label %45, label %73, !llvm.loop !26
73: ; preds = %66, %9
ret void
}
declare i32 @pci_unmap_single(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_kfree_skb(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 40}
!11 = !{!"netdev_private", !12, i64 0, !12, i64 8, !7, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!11, !12, i64 24}
!17 = !{!12, !12, i64 0}
!18 = !{!11, !7, i64 16}
!19 = !{!11, !12, i64 32}
!20 = !{!21, !7, i64 0}
!21 = !{!"TYPE_4__", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!11, !12, i64 0}
!25 = !{!11, !12, i64 8}
!26 = distinct !{!26, !23}
| linux_drivers_net_ethernet_dec_tulip_extr_winbond-840.c_free_rxtx_rings |
; ModuleID = 'AnghaBench/RetroArch/deps/libvita2d/source/extr_vita2d.c__vita2d_free_fragment_programs.c'
source_filename = "AnghaBench/RetroArch/deps/libvita2d/source/extr_vita2d.c__vita2d_free_fragment_programs.c"
target datalayout = "e-m:e-p270:32:32-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 }
@shaderPatcher = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @_vita2d_free_fragment_programs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @_vita2d_free_fragment_programs(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @shaderPatcher, align 4, !tbaa !5
%3 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 2
%4 = load i32, ptr %3, align 4, !tbaa !9
%5 = tail call i32 @sceGxmShaderPatcherReleaseFragmentProgram(i32 noundef %2, i32 noundef %4) #2
%6 = load i32, ptr @shaderPatcher, align 4, !tbaa !5
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !11
%9 = tail call i32 @sceGxmShaderPatcherReleaseFragmentProgram(i32 noundef %6, i32 noundef %8) #2
%10 = load i32, ptr @shaderPatcher, align 4, !tbaa !5
%11 = load i32, ptr %0, align 4, !tbaa !12
%12 = tail call i32 @sceGxmShaderPatcherReleaseFragmentProgram(i32 noundef %10, i32 noundef %11) #2
ret void
}
declare i32 @sceGxmShaderPatcherReleaseFragmentProgram(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"}
!9 = !{!10, !6, i64 8}
!10 = !{!"TYPE_3__", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/deps/libvita2d/source/extr_vita2d.c__vita2d_free_fragment_programs.c'
source_filename = "AnghaBench/RetroArch/deps/libvita2d/source/extr_vita2d.c__vita2d_free_fragment_programs.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@shaderPatcher = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @_vita2d_free_fragment_programs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @_vita2d_free_fragment_programs(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @shaderPatcher, align 4, !tbaa !6
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load i32, ptr %3, align 4, !tbaa !10
%5 = tail call i32 @sceGxmShaderPatcherReleaseFragmentProgram(i32 noundef %2, i32 noundef %4) #2
%6 = load i32, ptr @shaderPatcher, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %0, i64 4
%8 = load i32, ptr %7, align 4, !tbaa !12
%9 = tail call i32 @sceGxmShaderPatcherReleaseFragmentProgram(i32 noundef %6, i32 noundef %8) #2
%10 = load i32, ptr @shaderPatcher, align 4, !tbaa !6
%11 = load i32, ptr %0, align 4, !tbaa !13
%12 = tail call i32 @sceGxmShaderPatcherReleaseFragmentProgram(i32 noundef %10, i32 noundef %11) #2
ret void
}
declare i32 @sceGxmShaderPatcherReleaseFragmentProgram(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"}
!10 = !{!11, !7, i64 8}
!11 = !{!"TYPE_3__", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!11, !7, i64 4}
!13 = !{!11, !7, i64 0}
| RetroArch_deps_libvita2d_source_extr_vita2d.c__vita2d_free_fragment_programs |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_netdev_close.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_netdev_close.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.lan743x_adapter = type { ptr, ptr }
@LAN743X_USED_RX_CHANNELS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lan743x_netdev_close], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @lan743x_netdev_close(ptr noundef %0) #0 {
%2 = tail call ptr @netdev_priv(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.lan743x_adapter, ptr %2, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @lan743x_tx_close(ptr noundef %4) #2
%6 = load i32, ptr @LAN743X_USED_RX_CHANNELS, align 4, !tbaa !10
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %1, %8
%9 = phi i64 [ %13, %8 ], [ 0, %1 ]
%10 = load ptr, ptr %2, align 8, !tbaa !12
%11 = getelementptr inbounds i32, ptr %10, i64 %9
%12 = tail call i32 @lan743x_rx_close(ptr noundef %11) #2
%13 = add nuw nsw i64 %9, 1
%14 = load i32, ptr @LAN743X_USED_RX_CHANNELS, align 4, !tbaa !10
%15 = sext i32 %14 to i64
%16 = icmp slt i64 %13, %15
br i1 %16, label %8, label %17, !llvm.loop !13
17: ; preds = %8, %1
%18 = tail call i32 @lan743x_ptp_close(ptr noundef nonnull %2) #2
%19 = tail call i32 @lan743x_phy_close(ptr noundef nonnull %2) #2
%20 = tail call i32 @lan743x_mac_close(ptr noundef nonnull %2) #2
%21 = tail call i32 @lan743x_intr_close(ptr noundef nonnull %2) #2
ret i32 0
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_tx_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_rx_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_ptp_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_phy_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_mac_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_intr_close(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"lan743x_adapter", !7, i64 0, !7, i64 8}
!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 = !{!6, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_netdev_close.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_netdev_close.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LAN743X_USED_RX_CHANNELS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lan743x_netdev_close], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @lan743x_netdev_close(ptr noundef %0) #0 {
%2 = tail call ptr @netdev_priv(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %2, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = tail call i32 @lan743x_tx_close(ptr noundef %4) #2
%6 = load i32, ptr @LAN743X_USED_RX_CHANNELS, align 4, !tbaa !11
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %1, %8
%9 = phi i64 [ %13, %8 ], [ 0, %1 ]
%10 = load ptr, ptr %2, align 8, !tbaa !13
%11 = getelementptr inbounds i32, ptr %10, i64 %9
%12 = tail call i32 @lan743x_rx_close(ptr noundef %11) #2
%13 = add nuw nsw i64 %9, 1
%14 = load i32, ptr @LAN743X_USED_RX_CHANNELS, align 4, !tbaa !11
%15 = sext i32 %14 to i64
%16 = icmp slt i64 %13, %15
br i1 %16, label %8, label %17, !llvm.loop !14
17: ; preds = %8, %1
%18 = tail call i32 @lan743x_ptp_close(ptr noundef nonnull %2) #2
%19 = tail call i32 @lan743x_phy_close(ptr noundef nonnull %2) #2
%20 = tail call i32 @lan743x_mac_close(ptr noundef nonnull %2) #2
%21 = tail call i32 @lan743x_intr_close(ptr noundef nonnull %2) #2
ret i32 0
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_tx_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_rx_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_ptp_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_phy_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_mac_close(ptr noundef) local_unnamed_addr #1
declare i32 @lan743x_intr_close(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"lan743x_adapter", !8, i64 0, !8, i64 8}
!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 = !{!7, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| linux_drivers_net_ethernet_microchip_extr_lan743x_main.c_lan743x_netdev_close |
; ModuleID = 'AnghaBench/fastsocket/kernel/tools/perf/extr_utilcallchain.h_callchain_cursor_current.c'
source_filename = "AnghaBench/fastsocket/kernel/tools/perf/extr_utilcallchain.h_callchain_cursor_current.c"
target datalayout = "e-m:e-p270:32:32-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.callchain_cursor = type { i64, i64, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @callchain_cursor_current], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal ptr @callchain_cursor_current(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.callchain_cursor, ptr %0, i64 0, i32 1
%4 = load i64, ptr %3, align 8, !tbaa !11
%5 = icmp eq i64 %2, %4
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.callchain_cursor, ptr %0, i64 0, i32 2
%8 = load ptr, ptr %7, align 8, !tbaa !12
br label %9
9: ; preds = %1, %6
%10 = phi ptr [ %8, %6 ], [ null, %1 ]
ret ptr %10
}
attributes #0 = { inlinehint 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 = !{!"callchain_cursor", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/tools/perf/extr_utilcallchain.h_callchain_cursor_current.c'
source_filename = "AnghaBench/fastsocket/kernel/tools/perf/extr_utilcallchain.h_callchain_cursor_current.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 @callchain_cursor_current], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal ptr @callchain_cursor_current(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, 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 %2, %4
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %0, i64 16
%8 = load ptr, ptr %7, align 8, !tbaa !13
br label %9
9: ; preds = %1, %6
%10 = phi ptr [ %8, %6 ], [ null, %1 ]
ret ptr %10
}
attributes #0 = { inlinehint 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 = !{!"callchain_cursor", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !11, i64 16}
| fastsocket_kernel_tools_perf_extr_utilcallchain.h_callchain_cursor_current |
; ModuleID = 'AnghaBench/Provenance/Cores/PicoDrive/pico/32x/extr_32x.c_PicoReset32x.c'
source_filename = "AnghaBench/Provenance/Cores/PicoDrive/pico/32x/extr_32x.c_PicoReset32x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PicoAHW = dso_local local_unnamed_addr global i32 0, align 4
@PAHW_32X = dso_local local_unnamed_addr global i32 0, align 4
@P32XI_VRES = dso_local local_unnamed_addr global i32 0, align 4
@msh2 = dso_local global i32 0, align 4
@SH2_IDLE_STATES = dso_local local_unnamed_addr global i32 0, align 4
@ssh2 = dso_local global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @PicoReset32x() local_unnamed_addr #0 {
%1 = load i32, ptr @PicoAHW, align 4, !tbaa !5
%2 = load i32, ptr @PAHW_32X, align 4, !tbaa !5
%3 = and i32 %2, %1
%4 = icmp eq i32 %3, 0
br i1 %4, label %15, label %5
5: ; preds = %0
%6 = tail call i32 (...) @SekCyclesDone() #2
%7 = load i32, ptr @P32XI_VRES, align 4, !tbaa !5
%8 = tail call i32 @p32x_trigger_irq(ptr noundef null, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @SH2_IDLE_STATES, align 4, !tbaa !5
%10 = tail call i32 @p32x_sh2_poll_event(ptr noundef nonnull @msh2, i32 noundef %9, i32 noundef 0) #2
%11 = load i32, ptr @SH2_IDLE_STATES, align 4, !tbaa !5
%12 = tail call i32 @p32x_sh2_poll_event(ptr noundef nonnull @ssh2, i32 noundef %11, i32 noundef 0) #2
%13 = tail call i32 (...) @p32x_pwm_ctl_changed() #2
%14 = tail call i32 (...) @p32x_timers_recalc() #2
br label %15
15: ; preds = %5, %0
ret void
}
declare i32 @p32x_trigger_irq(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SekCyclesDone(...) local_unnamed_addr #1
declare i32 @p32x_sh2_poll_event(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @p32x_pwm_ctl_changed(...) local_unnamed_addr #1
declare i32 @p32x_timers_recalc(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/PicoDrive/pico/32x/extr_32x.c_PicoReset32x.c'
source_filename = "AnghaBench/Provenance/Cores/PicoDrive/pico/32x/extr_32x.c_PicoReset32x.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PicoAHW = common local_unnamed_addr global i32 0, align 4
@PAHW_32X = common local_unnamed_addr global i32 0, align 4
@P32XI_VRES = common local_unnamed_addr global i32 0, align 4
@msh2 = common global i32 0, align 4
@SH2_IDLE_STATES = common local_unnamed_addr global i32 0, align 4
@ssh2 = common global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @PicoReset32x() local_unnamed_addr #0 {
%1 = load i32, ptr @PicoAHW, align 4, !tbaa !6
%2 = load i32, ptr @PAHW_32X, align 4, !tbaa !6
%3 = and i32 %2, %1
%4 = icmp eq i32 %3, 0
br i1 %4, label %15, label %5
5: ; preds = %0
%6 = tail call i32 @SekCyclesDone() #2
%7 = load i32, ptr @P32XI_VRES, align 4, !tbaa !6
%8 = tail call i32 @p32x_trigger_irq(ptr noundef null, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @SH2_IDLE_STATES, align 4, !tbaa !6
%10 = tail call i32 @p32x_sh2_poll_event(ptr noundef nonnull @msh2, i32 noundef %9, i32 noundef 0) #2
%11 = load i32, ptr @SH2_IDLE_STATES, align 4, !tbaa !6
%12 = tail call i32 @p32x_sh2_poll_event(ptr noundef nonnull @ssh2, i32 noundef %11, i32 noundef 0) #2
%13 = tail call i32 @p32x_pwm_ctl_changed() #2
%14 = tail call i32 @p32x_timers_recalc() #2
br label %15
15: ; preds = %5, %0
ret void
}
declare i32 @p32x_trigger_irq(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SekCyclesDone(...) local_unnamed_addr #1
declare i32 @p32x_sh2_poll_event(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @p32x_pwm_ctl_changed(...) local_unnamed_addr #1
declare i32 @p32x_timers_recalc(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_PicoDrive_pico_32x_extr_32x.c_PicoReset32x |
; ModuleID = 'AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_onPause.c'
source_filename = "AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_onPause.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Pause: %p\0A\00", align 1
@APP_CMD_PAUSE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @onPause], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @onPause(ptr noundef %0) #0 {
%2 = tail call i32 @LOGV(ptr noundef nonnull @.str, ptr noundef %0) #2
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = inttoptr i64 %3 to ptr
%5 = load i32, ptr @APP_CMD_PAUSE, align 4, !tbaa !10
%6 = tail call i32 @android_app_set_activity_state(ptr noundef %4, i32 noundef %5) #2
ret void
}
declare i32 @LOGV(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @android_app_set_activity_state(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_onPause.c'
source_filename = "AnghaBench/Cinder/src/cinder/app/android/extr_android_native_app_glue.c_onPause.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [11 x i8] c"Pause: %p\0A\00", align 1
@APP_CMD_PAUSE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @onPause], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @onPause(ptr noundef %0) #0 {
%2 = tail call i32 @LOGV(ptr noundef nonnull @.str, ptr noundef %0) #2
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = inttoptr i64 %3 to ptr
%5 = load i32, ptr @APP_CMD_PAUSE, align 4, !tbaa !11
%6 = tail call i32 @android_app_set_activity_state(ptr noundef %4, i32 noundef %5) #2
ret void
}
declare i32 @LOGV(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @android_app_set_activity_state(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| Cinder_src_cinder_app_android_extr_android_native_app_glue.c_onPause |
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_h263dsp.c_h263_h_loop_filter_c.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_h263dsp.c_h263_h_loop_filter_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ff_h263_loop_filter_strength = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @h263_h_loop_filter_c], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @h263_h_loop_filter_c(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load ptr, ptr @ff_h263_loop_filter_strength, align 8, !tbaa !5
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds i32, ptr %4, i64 %5
%7 = load i32, ptr %6, align 4, !tbaa !9
%8 = mul nsw i32 %7, -2
%9 = sub nsw i32 0, %7
%10 = shl nsw i32 %7, 1
%11 = sext i32 %1 to i64
br label %12
12: ; preds = %3, %39
%13 = phi i64 [ 0, %3 ], [ %60, %39 ]
%14 = mul nsw i64 %13, %11
%15 = getelementptr i32, ptr %0, i64 %14
%16 = getelementptr i32, ptr %15, i64 -2
%17 = load i32, ptr %16, align 4, !tbaa !9
%18 = getelementptr i32, ptr %15, i64 -1
%19 = load i32, ptr %18, align 4, !tbaa !9
%20 = load i32, ptr %15, align 4, !tbaa !9
%21 = getelementptr i32, ptr %15, i64 1
%22 = load i32, ptr %21, align 4, !tbaa !9
%23 = sub nsw i32 %17, %22
%24 = sub nsw i32 %20, %19
%25 = shl nsw i32 %24, 2
%26 = add nsw i32 %23, %25
%27 = sdiv i32 %26, 8
%28 = icmp slt i32 %27, %8
br i1 %28, label %39, label %29
29: ; preds = %12
%30 = icmp slt i32 %27, %9
br i1 %30, label %31, label %33
31: ; preds = %29
%32 = sub nsw i32 %8, %27
br label %39
33: ; preds = %29
%34 = icmp slt i32 %27, %7
br i1 %34, label %39, label %35
35: ; preds = %33
%36 = icmp slt i32 %27, %10
%37 = sub nsw i32 %10, %27
%38 = select i1 %36, i32 %37, i32 0
br label %39
39: ; preds = %35, %33, %12, %31
%40 = phi i32 [ %32, %31 ], [ 0, %12 ], [ %27, %33 ], [ %38, %35 ]
%41 = add nsw i32 %40, %19
%42 = sub nsw i32 %20, %40
%43 = and i32 %41, 256
%44 = icmp eq i32 %43, 0
%45 = icmp sgt i32 %41, -1
%46 = sext i1 %45 to i32
%47 = select i1 %44, i32 %41, i32 %46
%48 = and i32 %42, 256
%49 = icmp eq i32 %48, 0
%50 = icmp sgt i32 %42, -1
%51 = sext i1 %50 to i32
%52 = select i1 %49, i32 %42, i32 %51
store i32 %47, ptr %18, align 4, !tbaa !9
store i32 %52, ptr %15, align 4, !tbaa !9
%53 = tail call i32 @FFABS(i32 noundef %40) #2
%54 = ashr i32 %53, 1
%55 = sdiv i32 %23, 4
%56 = sub nsw i32 0, %54
%57 = tail call i32 @av_clip(i32 noundef %55, i32 noundef %56, i32 noundef %54) #2
%58 = sub nsw i32 %17, %57
store i32 %58, ptr %16, align 4, !tbaa !9
%59 = add nsw i32 %57, %22
store i32 %59, ptr %21, align 4, !tbaa !9
%60 = add nuw nsw i64 %13, 1
%61 = icmp eq i64 %60, 8
br i1 %61, label %62, label %12, !llvm.loop !11
62: ; preds = %39
ret void
}
declare i32 @FFABS(i32 noundef) local_unnamed_addr #1
declare i32 @av_clip(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 = !{!"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_h263dsp.c_h263_h_loop_filter_c.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_h263dsp.c_h263_h_loop_filter_c.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ff_h263_loop_filter_strength = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @h263_h_loop_filter_c], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @h263_h_loop_filter_c(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load ptr, ptr @ff_h263_loop_filter_strength, align 8, !tbaa !6
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds i32, ptr %4, i64 %5
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = mul nsw i32 %7, -2
%9 = sub nsw i32 0, %7
%10 = shl nsw i32 %7, 1
%11 = sext i32 %1 to i64
br label %12
12: ; preds = %3, %39
%13 = phi i64 [ 0, %3 ], [ %60, %39 ]
%14 = mul nsw i64 %13, %11
%15 = getelementptr i32, ptr %0, i64 %14
%16 = getelementptr i8, ptr %15, i64 -8
%17 = load i32, ptr %16, align 4, !tbaa !10
%18 = getelementptr i8, ptr %15, i64 -4
%19 = load i32, ptr %18, align 4, !tbaa !10
%20 = load i32, ptr %15, align 4, !tbaa !10
%21 = getelementptr i8, ptr %15, i64 4
%22 = load i32, ptr %21, align 4, !tbaa !10
%23 = sub nsw i32 %17, %22
%24 = sub nsw i32 %20, %19
%25 = shl nsw i32 %24, 2
%26 = add nsw i32 %23, %25
%27 = sdiv i32 %26, 8
%28 = icmp slt i32 %27, %8
br i1 %28, label %39, label %29
29: ; preds = %12
%30 = icmp slt i32 %27, %9
br i1 %30, label %31, label %33
31: ; preds = %29
%32 = sub nsw i32 %8, %27
br label %39
33: ; preds = %29
%34 = icmp slt i32 %27, %7
br i1 %34, label %39, label %35
35: ; preds = %33
%36 = icmp slt i32 %27, %10
%37 = sub nsw i32 %10, %27
%38 = select i1 %36, i32 %37, i32 0
br label %39
39: ; preds = %35, %33, %12, %31
%40 = phi i32 [ %32, %31 ], [ 0, %12 ], [ %27, %33 ], [ %38, %35 ]
%41 = add nsw i32 %40, %19
%42 = sub nsw i32 %20, %40
%43 = and i32 %41, 256
%44 = icmp eq i32 %43, 0
%45 = icmp sgt i32 %41, -1
%46 = sext i1 %45 to i32
%47 = select i1 %44, i32 %41, i32 %46
%48 = and i32 %42, 256
%49 = icmp eq i32 %48, 0
%50 = icmp sgt i32 %42, -1
%51 = sext i1 %50 to i32
%52 = select i1 %49, i32 %42, i32 %51
store i32 %47, ptr %18, align 4, !tbaa !10
store i32 %52, ptr %15, align 4, !tbaa !10
%53 = tail call i32 @FFABS(i32 noundef %40) #2
%54 = ashr i32 %53, 1
%55 = sdiv i32 %23, 4
%56 = sub nsw i32 0, %54
%57 = tail call i32 @av_clip(i32 noundef %55, i32 noundef %56, i32 noundef %54) #2
%58 = sub nsw i32 %17, %57
store i32 %58, ptr %16, align 4, !tbaa !10
%59 = add nsw i32 %57, %22
store i32 %59, ptr %21, align 4, !tbaa !10
%60 = add nuw nsw i64 %13, 1
%61 = icmp eq i64 %60, 8
br i1 %61, label %62, label %12, !llvm.loop !12
62: ; preds = %39
ret void
}
declare i32 @FFABS(i32 noundef) local_unnamed_addr #1
declare i32 @av_clip(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 = !{!"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_h263dsp.c_h263_h_loop_filter_c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.