IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/linux/drivers/usb/dwc2/extr_gadget.c_dwc2_gadget_init_lpm.c'
source_filename = "AnghaBench/linux/drivers/usb/dwc2/extr_gadget.c_dwc2_gadget_init_lpm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i32, i64, i64, i64, i64, i32 }
%struct.dwc2_hsotg = type { %struct.TYPE_2__, i32 }
@GLPMCFG_LPMCAP = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_APPL1RES = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_HIRD_THRES_EN = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_ENBLSLPM = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_HIRD_THRES_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_ENBESL = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_LPM_REJECT_CTRL_CONTROL = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG_LPM_ACCEPT_CTRL_ISOC = dso_local local_unnamed_addr global i32 0, align 4
@GLPMCFG = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"GLPMCFG=0x%08x\0A\00", align 1
@GINTMSK2 = dso_local local_unnamed_addr global i32 0, align 4
@GINTMSK2_WKUP_ALERT_INT_MSK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @dwc2_gadget_init_lpm(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 5
%3 = load i32, ptr %2, align 8, !tbaa !5
%4 = icmp eq i32 %3, 0
br i1 %4, label %49, label %5
5: ; preds = %1
%6 = load i32, ptr @GLPMCFG_LPMCAP, align 4, !tbaa !12
%7 = load i32, ptr @GLPMCFG_APPL1RES, align 4, !tbaa !12
%8 = or i32 %7, %6
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 4
%10 = load i64, ptr %9, align 8, !tbaa !13
%11 = icmp eq i64 %10, 0
%12 = load i32, ptr @GLPMCFG_HIRD_THRES_EN, align 4
%13 = select i1 %11, i32 0, i32 %12
%14 = or i32 %8, %13
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 3
%16 = load i64, ptr %15, align 8, !tbaa !14
%17 = icmp eq i64 %16, 0
%18 = load i32, ptr @GLPMCFG_ENBLSLPM, align 4
%19 = select i1 %17, i32 0, i32 %18
%20 = or i32 %14, %19
%21 = load i32, ptr %0, align 8, !tbaa !15
%22 = load i32, ptr @GLPMCFG_HIRD_THRES_SHIFT, align 4, !tbaa !12
%23 = shl i32 %21, %22
%24 = or i32 %20, %23
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 2
%26 = load i64, ptr %25, align 8, !tbaa !16
%27 = icmp eq i64 %26, 0
%28 = load i32, ptr @GLPMCFG_ENBESL, align 4
%29 = select i1 %27, i32 0, i32 %28
%30 = or i32 %24, %29
%31 = load i32, ptr @GLPMCFG_LPM_REJECT_CTRL_CONTROL, align 4, !tbaa !12
%32 = or i32 %30, %31
%33 = load i32, ptr @GLPMCFG_LPM_ACCEPT_CTRL_ISOC, align 4, !tbaa !12
%34 = or i32 %32, %33
%35 = load i32, ptr @GLPMCFG, align 4, !tbaa !12
%36 = tail call i32 @dwc2_writel(ptr noundef nonnull %0, i32 noundef %34, i32 noundef %35) #2
%37 = getelementptr inbounds %struct.dwc2_hsotg, ptr %0, i64 0, i32 1
%38 = load i32, ptr %37, align 8, !tbaa !17
%39 = load i32, ptr @GLPMCFG, align 4, !tbaa !12
%40 = tail call i32 @dwc2_readl(ptr noundef nonnull %0, i32 noundef %39) #2
%41 = tail call i32 @dev_dbg(i32 noundef %38, ptr noundef nonnull @.str, i32 noundef %40) #2
%42 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%43 = load i64, ptr %42, align 8, !tbaa !18
%44 = icmp eq i64 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %5
%46 = load i32, ptr @GINTMSK2, align 4, !tbaa !12
%47 = load i32, ptr @GINTMSK2_WKUP_ALERT_INT_MSK, align 4, !tbaa !12
%48 = tail call i32 @dwc2_set_bit(ptr noundef nonnull %0, i32 noundef %46, i32 noundef %47) #2
br label %49
49: ; preds = %5, %45, %1
ret void
}
declare i32 @dwc2_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dwc2_readl(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dwc2_set_bit(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, !8, i64 40}
!6 = !{!"dwc2_hsotg", !7, i64 0, !8, i64 48}
!7 = !{!"TYPE_2__", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !8, i64 40}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!6, !11, i64 32}
!14 = !{!6, !11, i64 24}
!15 = !{!6, !8, i64 0}
!16 = !{!6, !11, i64 16}
!17 = !{!6, !8, i64 48}
!18 = !{!6, !11, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/dwc2/extr_gadget.c_dwc2_gadget_init_lpm.c'
source_filename = "AnghaBench/linux/drivers/usb/dwc2/extr_gadget.c_dwc2_gadget_init_lpm.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GLPMCFG_LPMCAP = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_APPL1RES = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_HIRD_THRES_EN = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_ENBLSLPM = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_HIRD_THRES_SHIFT = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_ENBESL = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_LPM_REJECT_CTRL_CONTROL = common local_unnamed_addr global i32 0, align 4
@GLPMCFG_LPM_ACCEPT_CTRL_ISOC = common local_unnamed_addr global i32 0, align 4
@GLPMCFG = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"GLPMCFG=0x%08x\0A\00", align 1
@GINTMSK2 = common local_unnamed_addr global i32 0, align 4
@GINTMSK2_WKUP_ALERT_INT_MSK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @dwc2_gadget_init_lpm(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 40
%3 = load i32, ptr %2, align 8, !tbaa !6
%4 = icmp eq i32 %3, 0
br i1 %4, label %49, label %5
5: ; preds = %1
%6 = load i32, ptr @GLPMCFG_LPMCAP, align 4, !tbaa !13
%7 = load i32, ptr @GLPMCFG_APPL1RES, align 4, !tbaa !13
%8 = or i32 %7, %6
%9 = getelementptr inbounds i8, ptr %0, i64 32
%10 = load i64, ptr %9, align 8, !tbaa !14
%11 = icmp eq i64 %10, 0
%12 = load i32, ptr @GLPMCFG_HIRD_THRES_EN, align 4
%13 = select i1 %11, i32 0, i32 %12
%14 = or i32 %8, %13
%15 = getelementptr inbounds i8, ptr %0, i64 24
%16 = load i64, ptr %15, align 8, !tbaa !15
%17 = icmp eq i64 %16, 0
%18 = load i32, ptr @GLPMCFG_ENBLSLPM, align 4
%19 = select i1 %17, i32 0, i32 %18
%20 = or i32 %14, %19
%21 = load i32, ptr %0, align 8, !tbaa !16
%22 = load i32, ptr @GLPMCFG_HIRD_THRES_SHIFT, align 4, !tbaa !13
%23 = shl i32 %21, %22
%24 = or i32 %20, %23
%25 = getelementptr inbounds i8, ptr %0, i64 16
%26 = load i64, ptr %25, align 8, !tbaa !17
%27 = icmp eq i64 %26, 0
%28 = load i32, ptr @GLPMCFG_ENBESL, align 4
%29 = select i1 %27, i32 0, i32 %28
%30 = or i32 %24, %29
%31 = load i32, ptr @GLPMCFG_LPM_REJECT_CTRL_CONTROL, align 4, !tbaa !13
%32 = or i32 %30, %31
%33 = load i32, ptr @GLPMCFG_LPM_ACCEPT_CTRL_ISOC, align 4, !tbaa !13
%34 = or i32 %32, %33
%35 = load i32, ptr @GLPMCFG, align 4, !tbaa !13
%36 = tail call i32 @dwc2_writel(ptr noundef nonnull %0, i32 noundef %34, i32 noundef %35) #2
%37 = getelementptr inbounds i8, ptr %0, i64 48
%38 = load i32, ptr %37, align 8, !tbaa !18
%39 = load i32, ptr @GLPMCFG, align 4, !tbaa !13
%40 = tail call i32 @dwc2_readl(ptr noundef nonnull %0, i32 noundef %39) #2
%41 = tail call i32 @dev_dbg(i32 noundef %38, ptr noundef nonnull @.str, i32 noundef %40) #2
%42 = getelementptr inbounds i8, ptr %0, i64 8
%43 = load i64, ptr %42, align 8, !tbaa !19
%44 = icmp eq i64 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %5
%46 = load i32, ptr @GINTMSK2, align 4, !tbaa !13
%47 = load i32, ptr @GINTMSK2_WKUP_ALERT_INT_MSK, align 4, !tbaa !13
%48 = tail call i32 @dwc2_set_bit(ptr noundef nonnull %0, i32 noundef %46, i32 noundef %47) #2
br label %49
49: ; preds = %5, %45, %1
ret void
}
declare i32 @dwc2_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dwc2_readl(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dwc2_set_bit(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, !9, i64 40}
!7 = !{!"dwc2_hsotg", !8, i64 0, !9, i64 48}
!8 = !{!"TYPE_2__", !9, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !9, i64 40}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!9, !9, i64 0}
!14 = !{!7, !12, i64 32}
!15 = !{!7, !12, i64 24}
!16 = !{!7, !9, i64 0}
!17 = !{!7, !12, i64 16}
!18 = !{!7, !9, i64 48}
!19 = !{!7, !12, i64 8}
| linux_drivers_usb_dwc2_extr_gadget.c_dwc2_gadget_init_lpm |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_radio.c_b43legacy_set_original_gains.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_radio.c_b43legacy_set_original_gains.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @b43legacy_set_original_gains], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @b43legacy_set_original_gains(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = icmp slt i32 %2, 2
%4 = select i1 %3, i32 20480, i32 1024
%5 = select i1 %3, i32 16, i32 8
%6 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %4, i32 noundef 0) #2
%7 = or disjoint i32 %4, 1
%8 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %7, i32 noundef 2) #2
%9 = or disjoint i32 %4, 2
%10 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %9, i32 noundef 1) #2
%11 = or disjoint i32 %4, 3
%12 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %11, i32 noundef 3) #2
%13 = select i1 %3, i32 32, i32 24
br label %14
14: ; preds = %1, %14
%15 = phi i32 [ %19, %14 ], [ %5, %1 ]
%16 = add nuw nsw i32 %15, %4
%17 = sub nuw nsw i32 %15, %5
%18 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %16, i32 noundef %17) #2
%19 = add nuw nsw i32 %15, 1
%20 = icmp ult i32 %19, %13
br i1 %20, label %14, label %21, !llvm.loop !10
21: ; preds = %14
%22 = tail call i32 @b43legacy_phy_read(ptr noundef nonnull %0, i32 noundef 1184) #2
%23 = and i32 %22, 49087
%24 = or disjoint i32 %23, 16448
%25 = tail call i32 @b43legacy_phy_write(ptr noundef nonnull %0, i32 noundef 1184, i32 noundef %24) #2
%26 = tail call i32 @b43legacy_phy_read(ptr noundef nonnull %0, i32 noundef 1185) #2
%27 = and i32 %26, 49087
%28 = or disjoint i32 %27, 16448
%29 = tail call i32 @b43legacy_phy_write(ptr noundef nonnull %0, i32 noundef 1185, i32 noundef %28) #2
%30 = tail call i32 @b43legacy_phy_read(ptr noundef nonnull %0, i32 noundef 1186) #2
%31 = and i32 %30, 49087
%32 = or disjoint i32 %31, 16384
%33 = tail call i32 @b43legacy_phy_write(ptr noundef nonnull %0, i32 noundef 1186, i32 noundef %32) #2
%34 = tail call i32 @b43legacy_dummy_transmission(ptr noundef nonnull %0) #2
ret void
}
declare i32 @b43legacy_ilt_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43legacy_phy_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43legacy_phy_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43legacy_dummy_transmission(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 = !{!"b43legacy_phy", !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"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_radio.c_b43legacy_set_original_gains.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/broadcom/b43legacy/extr_radio.c_b43legacy_set_original_gains.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @b43legacy_set_original_gains], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @b43legacy_set_original_gains(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = icmp slt i32 %2, 2
%4 = select i1 %3, i32 20480, i32 1024
%5 = select i1 %3, i32 16, i32 8
%6 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %4, i32 noundef 0) #2
%7 = or disjoint i32 %4, 1
%8 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %7, i32 noundef 2) #2
%9 = or disjoint i32 %4, 2
%10 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %9, i32 noundef 1) #2
%11 = or disjoint i32 %4, 3
%12 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %11, i32 noundef 3) #2
%13 = select i1 %3, i32 32, i32 24
br label %14
14: ; preds = %1, %14
%15 = phi i32 [ %19, %14 ], [ %5, %1 ]
%16 = add nuw nsw i32 %15, %4
%17 = sub nuw nsw i32 %15, %5
%18 = tail call i32 @b43legacy_ilt_write(ptr noundef nonnull %0, i32 noundef %16, i32 noundef %17) #2
%19 = add nuw nsw i32 %15, 1
%20 = icmp ult i32 %19, %13
br i1 %20, label %14, label %21, !llvm.loop !11
21: ; preds = %14
%22 = tail call i32 @b43legacy_phy_read(ptr noundef nonnull %0, i32 noundef 1184) #2
%23 = and i32 %22, 49087
%24 = or disjoint i32 %23, 16448
%25 = tail call i32 @b43legacy_phy_write(ptr noundef nonnull %0, i32 noundef 1184, i32 noundef %24) #2
%26 = tail call i32 @b43legacy_phy_read(ptr noundef nonnull %0, i32 noundef 1185) #2
%27 = and i32 %26, 49087
%28 = or disjoint i32 %27, 16448
%29 = tail call i32 @b43legacy_phy_write(ptr noundef nonnull %0, i32 noundef 1185, i32 noundef %28) #2
%30 = tail call i32 @b43legacy_phy_read(ptr noundef nonnull %0, i32 noundef 1186) #2
%31 = and i32 %30, 49087
%32 = or disjoint i32 %31, 16384
%33 = tail call i32 @b43legacy_phy_write(ptr noundef nonnull %0, i32 noundef 1186, i32 noundef %32) #2
%34 = tail call i32 @b43legacy_dummy_transmission(ptr noundef nonnull %0) #2
ret void
}
declare i32 @b43legacy_ilt_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43legacy_phy_write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43legacy_phy_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b43legacy_dummy_transmission(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 = !{!"b43legacy_phy", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| linux_drivers_net_wireless_broadcom_b43legacy_extr_radio.c_b43legacy_set_original_gains |
; ModuleID = 'AnghaBench/linux/net/unix/extr_af_unix.c_unix_sock_inherit_flags.c'
source_filename = "AnghaBench/linux/net/unix/extr_af_unix.c_unix_sock_inherit_flags.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SOCK_PASSCRED = dso_local local_unnamed_addr global i32 0, align 4
@SOCK_PASSSEC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @unix_sock_inherit_flags], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @unix_sock_inherit_flags(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @SOCK_PASSCRED, align 4, !tbaa !5
%4 = tail call i64 @test_bit(i32 noundef %3, ptr noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, ptr @SOCK_PASSCRED, align 4, !tbaa !5
%8 = tail call i32 @set_bit(i32 noundef %7, ptr noundef %1) #2
br label %9
9: ; preds = %6, %2
%10 = load i32, ptr @SOCK_PASSSEC, align 4, !tbaa !5
%11 = tail call i64 @test_bit(i32 noundef %10, ptr noundef %0) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = load i32, ptr @SOCK_PASSSEC, align 4, !tbaa !5
%15 = tail call i32 @set_bit(i32 noundef %14, ptr noundef %1) #2
br label %16
16: ; preds = %13, %9
ret void
}
declare i64 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/net/unix/extr_af_unix.c_unix_sock_inherit_flags.c'
source_filename = "AnghaBench/linux/net/unix/extr_af_unix.c_unix_sock_inherit_flags.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SOCK_PASSCRED = common local_unnamed_addr global i32 0, align 4
@SOCK_PASSSEC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @unix_sock_inherit_flags], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @unix_sock_inherit_flags(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @SOCK_PASSCRED, align 4, !tbaa !6
%4 = tail call i64 @test_bit(i32 noundef %3, ptr noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, ptr @SOCK_PASSCRED, align 4, !tbaa !6
%8 = tail call i32 @set_bit(i32 noundef %7, ptr noundef %1) #2
br label %9
9: ; preds = %6, %2
%10 = load i32, ptr @SOCK_PASSSEC, align 4, !tbaa !6
%11 = tail call i64 @test_bit(i32 noundef %10, ptr noundef %0) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = load i32, ptr @SOCK_PASSSEC, align 4, !tbaa !6
%15 = tail call i32 @set_bit(i32 noundef %14, ptr noundef %1) #2
br label %16
16: ; preds = %13, %9
ret void
}
declare i64 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_net_unix_extr_af_unix.c_unix_sock_inherit_flags |
; ModuleID = 'AnghaBench/freebsd/sys/cddl/dev/dtrace/powerpc/extr_dtrace_isa.c_dtrace_copyoutstr.c'
source_filename = "AnghaBench/freebsd/sys/cddl/dev/dtrace/powerpc/extr_dtrace_isa.c_dtrace_copyoutstr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64 }
@CPU_DTRACE_BADADDR = dso_local local_unnamed_addr global i32 0, align 4
@cpu_core = dso_local local_unnamed_addr global ptr null, align 8
@curcpu = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @dtrace_copyoutstr(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
%5 = tail call i64 @dtrace_copycheck(i64 noundef %1, i64 noundef %0, i64 noundef %2) #4
%6 = icmp eq i64 %5, 0
br i1 %6, label %20, label %7
7: ; preds = %4
%8 = inttoptr i64 %0 to ptr
%9 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8)
%10 = tail call i64 @llvm.umin.i64(i64 %9, i64 %2)
%11 = inttoptr i64 %1 to ptr
%12 = tail call i64 @copyout(ptr noundef %8, ptr noundef %11, i64 noundef %10) #4
%13 = icmp eq i64 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %7
%15 = load i32, ptr @CPU_DTRACE_BADADDR, align 4, !tbaa !5
%16 = tail call i32 @DTRACE_CPUFLAG_SET(i32 noundef %15) #4
%17 = load ptr, ptr @cpu_core, align 8, !tbaa !9
%18 = load i64, ptr @curcpu, align 8, !tbaa !11
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %18
store i64 %1, ptr %19, align 8, !tbaa !13
br label %20
20: ; preds = %7, %14, %4
ret void
}
declare i64 @dtrace_copycheck(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2
declare i64 @copyout(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @DTRACE_CPUFLAG_SET(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_2__", !12, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/cddl/dev/dtrace/powerpc/extr_dtrace_isa.c_dtrace_copyoutstr.c'
source_filename = "AnghaBench/freebsd/sys/cddl/dev/dtrace/powerpc/extr_dtrace_isa.c_dtrace_copyoutstr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i64 }
@CPU_DTRACE_BADADDR = common local_unnamed_addr global i32 0, align 4
@cpu_core = common local_unnamed_addr global ptr null, align 8
@curcpu = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @dtrace_copyoutstr(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
%5 = tail call i64 @dtrace_copycheck(i64 noundef %1, i64 noundef %0, i64 noundef %2) #4
%6 = icmp eq i64 %5, 0
br i1 %6, label %20, label %7
7: ; preds = %4
%8 = inttoptr i64 %0 to ptr
%9 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8) #4
%10 = tail call i64 @llvm.umin.i64(i64 %9, i64 %2)
%11 = inttoptr i64 %1 to ptr
%12 = tail call i64 @copyout(ptr noundef %8, ptr noundef %11, i64 noundef %10) #4
%13 = icmp eq i64 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %7
%15 = load i32, ptr @CPU_DTRACE_BADADDR, align 4, !tbaa !6
%16 = tail call i32 @DTRACE_CPUFLAG_SET(i32 noundef %15) #4
%17 = load ptr, ptr @cpu_core, align 8, !tbaa !10
%18 = load i64, ptr @curcpu, align 8, !tbaa !12
%19 = getelementptr inbounds %struct.TYPE_2__, ptr %17, i64 %18
store i64 %1, ptr %19, align 8, !tbaa !14
br label %20
20: ; preds = %7, %14, %4
ret void
}
declare i64 @dtrace_copycheck(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2
declare i64 @copyout(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @DTRACE_CPUFLAG_SET(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_2__", !13, i64 0}
| freebsd_sys_cddl_dev_dtrace_powerpc_extr_dtrace_isa.c_dtrace_copyoutstr |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/extr_crypto_generichash.c_crypto_generichash_bytes.c'
source_filename = "AnghaBench/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/extr_crypto_generichash.c_crypto_generichash_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"
@crypto_generichash_BYTES = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i64 @crypto_generichash_bytes() local_unnamed_addr #0 {
%1 = load i64, ptr @crypto_generichash_BYTES, align 8, !tbaa !5
ret i64 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/extr_crypto_generichash.c_crypto_generichash_bytes.c'
source_filename = "AnghaBench/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/extr_crypto_generichash.c_crypto_generichash_bytes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@crypto_generichash_BYTES = common local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i64 @crypto_generichash_bytes() local_unnamed_addr #0 {
%1 = load i64, ptr @crypto_generichash_BYTES, align 8, !tbaa !6
ret i64 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_contrib_libsodium_src_libsodium_crypto_generichash_extr_crypto_generichash.c_crypto_generichash_bytes |
; ModuleID = 'AnghaBench/linux/drivers/s390/char/extr_tape_std.c_tape_std_mtbsf.c'
source_filename = "AnghaBench/linux/drivers/s390/char/extr_tape_std.c_tape_std_mtbsf.c"
target datalayout = "e-m:e-p270:32:32-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.tape_request = type { i32, i32 }
@TO_BSF = dso_local local_unnamed_addr global i32 0, align 4
@MODE_SET_DB = dso_local local_unnamed_addr global i32 0, align 4
@BACKSPACEFILE = dso_local local_unnamed_addr global i32 0, align 4
@NOP = dso_local local_unnamed_addr global i32 0, align 4
@MTFSR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @tape_std_mtbsf(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = add nsw i32 %1, 2
%4 = tail call ptr @tape_alloc_request(i32 noundef %3, i32 noundef 0) #3
%5 = tail call i64 @IS_ERR(ptr noundef %4) #3
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %2
%8 = tail call i32 @PTR_ERR(ptr noundef %4) #3
br label %26
9: ; preds = %2
%10 = load i32, ptr @TO_BSF, align 4, !tbaa !5
%11 = getelementptr inbounds %struct.tape_request, ptr %4, i64 0, i32 1
store i32 %10, ptr %11, align 4, !tbaa !9
%12 = load i32, ptr %4, align 4, !tbaa !11
%13 = load i32, ptr @MODE_SET_DB, align 4, !tbaa !5
%14 = load i32, ptr %0, align 4, !tbaa !12
%15 = tail call ptr @tape_ccw_cc(i32 noundef %12, i32 noundef %13, i32 noundef 1, i32 noundef %14) #3
%16 = load i32, ptr @BACKSPACEFILE, align 4, !tbaa !5
%17 = tail call ptr @tape_ccw_repeat(ptr noundef %15, i32 noundef %16, i32 noundef %1) #3
%18 = load i32, ptr @NOP, align 4, !tbaa !5
%19 = tail call ptr @tape_ccw_end(ptr noundef %17, i32 noundef %18, i32 noundef 0, ptr noundef null) #3
%20 = tail call i32 @tape_do_io_free(ptr noundef nonnull %0, ptr noundef nonnull %4) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %9
%23 = load i32, ptr @MTFSR, align 4, !tbaa !5
%24 = tail call i32 @tape_mtop(ptr noundef nonnull %0, i32 noundef %23, i32 noundef 1) #3
%25 = tail call i32 @llvm.smin.i32(i32 %24, i32 0)
br label %26
26: ; preds = %9, %22, %7
%27 = phi i32 [ %8, %7 ], [ %25, %22 ], [ %20, %9 ]
ret i32 %27
}
declare ptr @tape_alloc_request(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare ptr @tape_ccw_cc(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @tape_ccw_repeat(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @tape_ccw_end(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tape_do_io_free(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tape_mtop(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"tape_request", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"tape_device", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/s390/char/extr_tape_std.c_tape_std_mtbsf.c'
source_filename = "AnghaBench/linux/drivers/s390/char/extr_tape_std.c_tape_std_mtbsf.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TO_BSF = common local_unnamed_addr global i32 0, align 4
@MODE_SET_DB = common local_unnamed_addr global i32 0, align 4
@BACKSPACEFILE = common local_unnamed_addr global i32 0, align 4
@NOP = common local_unnamed_addr global i32 0, align 4
@MTFSR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @tape_std_mtbsf(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = add nsw i32 %1, 2
%4 = tail call ptr @tape_alloc_request(i32 noundef %3, i32 noundef 0) #3
%5 = tail call i64 @IS_ERR(ptr noundef %4) #3
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %2
%8 = tail call i32 @PTR_ERR(ptr noundef %4) #3
br label %26
9: ; preds = %2
%10 = load i32, ptr @TO_BSF, align 4, !tbaa !6
%11 = getelementptr inbounds i8, ptr %4, i64 4
store i32 %10, ptr %11, align 4, !tbaa !10
%12 = load i32, ptr %4, align 4, !tbaa !12
%13 = load i32, ptr @MODE_SET_DB, align 4, !tbaa !6
%14 = load i32, ptr %0, align 4, !tbaa !13
%15 = tail call ptr @tape_ccw_cc(i32 noundef %12, i32 noundef %13, i32 noundef 1, i32 noundef %14) #3
%16 = load i32, ptr @BACKSPACEFILE, align 4, !tbaa !6
%17 = tail call ptr @tape_ccw_repeat(ptr noundef %15, i32 noundef %16, i32 noundef %1) #3
%18 = load i32, ptr @NOP, align 4, !tbaa !6
%19 = tail call ptr @tape_ccw_end(ptr noundef %17, i32 noundef %18, i32 noundef 0, ptr noundef null) #3
%20 = tail call i32 @tape_do_io_free(ptr noundef nonnull %0, ptr noundef nonnull %4) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %9
%23 = load i32, ptr @MTFSR, align 4, !tbaa !6
%24 = tail call i32 @tape_mtop(ptr noundef nonnull %0, i32 noundef %23, i32 noundef 1) #3
%25 = tail call i32 @llvm.smin.i32(i32 %24, i32 0)
br label %26
26: ; preds = %9, %22, %7
%27 = phi i32 [ %8, %7 ], [ %25, %22 ], [ %20, %9 ]
ret i32 %27
}
declare ptr @tape_alloc_request(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare ptr @tape_ccw_cc(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @tape_ccw_repeat(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @tape_ccw_end(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tape_do_io_free(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tape_mtop(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 4}
!11 = !{!"tape_request", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"tape_device", !7, i64 0}
| linux_drivers_s390_char_extr_tape_std.c_tape_std_mtbsf |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_uvd_v6_0.c_uvd_v6_0_check_soft_reset.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_uvd_v6_0.c_uvd_v6_0_check_soft_reset.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@mmSRBM_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@SRBM_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@UVD_RQ_PENDING = dso_local local_unnamed_addr global i32 0, align 4
@UVD_BUSY = dso_local local_unnamed_addr global i32 0, align 4
@mmUVD_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@AMDGPU_UVD_STATUS_BUSY_MASK = dso_local local_unnamed_addr global i32 0, align 4
@SRBM_SOFT_RESET = dso_local local_unnamed_addr global i32 0, align 4
@SOFT_RESET_UVD = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @uvd_v6_0_check_soft_reset], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @uvd_v6_0_check_soft_reset(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @mmSRBM_STATUS, align 4, !tbaa !5
%3 = tail call i32 @RREG32(i32 noundef %2) #2
%4 = load i32, ptr @SRBM_STATUS, align 4, !tbaa !5
%5 = load i32, ptr @UVD_RQ_PENDING, align 4, !tbaa !5
%6 = tail call i64 @REG_GET_FIELD(i32 noundef %3, i32 noundef %4, i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %19
8: ; preds = %1
%9 = load i32, ptr @SRBM_STATUS, align 4, !tbaa !5
%10 = load i32, ptr @UVD_BUSY, align 4, !tbaa !5
%11 = tail call i64 @REG_GET_FIELD(i32 noundef %3, i32 noundef %9, i32 noundef %10) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %8
%14 = load i32, ptr @mmUVD_STATUS, align 4, !tbaa !5
%15 = tail call i32 @RREG32(i32 noundef %14) #2
%16 = load i32, ptr @AMDGPU_UVD_STATUS_BUSY_MASK, align 4, !tbaa !5
%17 = and i32 %16, %15
%18 = icmp eq i32 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %1, %8, %13
%20 = load i32, ptr @SRBM_SOFT_RESET, align 4, !tbaa !5
%21 = load i32, ptr @SOFT_RESET_UVD, align 4, !tbaa !5
%22 = tail call i32 @REG_SET_FIELD(i32 noundef 0, i32 noundef %20, i32 noundef %21, i32 noundef 1) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %13, %19
br label %25
25: ; preds = %19, %24
%26 = phi i32 [ 0, %24 ], [ %22, %19 ]
%27 = phi i32 [ 0, %24 ], [ 1, %19 ]
%28 = load ptr, ptr %0, align 8, !tbaa !9
store i32 %26, ptr %28, align 4, !tbaa !13
ret i32 %27
}
declare i32 @RREG32(i32 noundef) local_unnamed_addr #1
declare i64 @REG_GET_FIELD(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @REG_SET_FIELD(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, !12, i64 0}
!10 = !{!"amdgpu_device", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_uvd_v6_0.c_uvd_v6_0_check_soft_reset.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_uvd_v6_0.c_uvd_v6_0_check_soft_reset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mmSRBM_STATUS = common local_unnamed_addr global i32 0, align 4
@SRBM_STATUS = common local_unnamed_addr global i32 0, align 4
@UVD_RQ_PENDING = common local_unnamed_addr global i32 0, align 4
@UVD_BUSY = common local_unnamed_addr global i32 0, align 4
@mmUVD_STATUS = common local_unnamed_addr global i32 0, align 4
@AMDGPU_UVD_STATUS_BUSY_MASK = common local_unnamed_addr global i32 0, align 4
@SRBM_SOFT_RESET = common local_unnamed_addr global i32 0, align 4
@SOFT_RESET_UVD = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @uvd_v6_0_check_soft_reset], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @uvd_v6_0_check_soft_reset(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @mmSRBM_STATUS, align 4, !tbaa !6
%3 = tail call i32 @RREG32(i32 noundef %2) #2
%4 = load i32, ptr @SRBM_STATUS, align 4, !tbaa !6
%5 = load i32, ptr @UVD_RQ_PENDING, align 4, !tbaa !6
%6 = tail call i64 @REG_GET_FIELD(i32 noundef %3, i32 noundef %4, i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %19
8: ; preds = %1
%9 = load i32, ptr @SRBM_STATUS, align 4, !tbaa !6
%10 = load i32, ptr @UVD_BUSY, align 4, !tbaa !6
%11 = tail call i64 @REG_GET_FIELD(i32 noundef %3, i32 noundef %9, i32 noundef %10) #2
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %8
%14 = load i32, ptr @mmUVD_STATUS, align 4, !tbaa !6
%15 = tail call i32 @RREG32(i32 noundef %14) #2
%16 = load i32, ptr @AMDGPU_UVD_STATUS_BUSY_MASK, align 4, !tbaa !6
%17 = and i32 %16, %15
%18 = icmp eq i32 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %1, %8, %13
%20 = load i32, ptr @SRBM_SOFT_RESET, align 4, !tbaa !6
%21 = load i32, ptr @SOFT_RESET_UVD, align 4, !tbaa !6
%22 = tail call i32 @REG_SET_FIELD(i32 noundef 0, i32 noundef %20, i32 noundef %21, i32 noundef 1) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %13, %19
br label %25
25: ; preds = %19, %24
%26 = phi i32 [ 0, %24 ], [ %22, %19 ]
%27 = phi i32 [ 0, %24 ], [ 1, %19 ]
%28 = load ptr, ptr %0, align 8, !tbaa !10
store i32 %26, ptr %28, align 4, !tbaa !14
ret i32 %27
}
declare i32 @RREG32(i32 noundef) local_unnamed_addr #1
declare i64 @REG_GET_FIELD(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @REG_SET_FIELD(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, !13, i64 0}
!11 = !{!"amdgpu_device", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_3__", !7, i64 0}
| linux_drivers_gpu_drm_amd_amdgpu_extr_uvd_v6_0.c_uvd_v6_0_check_soft_reset |
; ModuleID = 'AnghaBench/redis/src/extr_t_string.c_appendCommand.c'
source_filename = "AnghaBench/redis/src/extr_t_string.c_appendCommand.c"
target datalayout = "e-m:e-p270:32:32-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_29__ = type { i32 }
%struct.TYPE_27__ = type { ptr, ptr }
@OBJ_STRING = dso_local local_unnamed_addr global i32 0, align 4
@C_OK = dso_local local_unnamed_addr global i64 0, align 8
@NOTIFY_STRING = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"append\00", align 1
@server = dso_local local_unnamed_addr global %struct.TYPE_29__ zeroinitializer, align 4
; Function Attrs: nounwind uwtable
define dso_local void @appendCommand(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.TYPE_27__, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = getelementptr inbounds ptr, ptr %4, i64 1
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = tail call ptr @lookupKeyWrite(ptr noundef %2, ptr noundef %6) #2
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %31
9: ; preds = %1
%10 = load ptr, ptr %3, align 8, !tbaa !10
%11 = getelementptr inbounds ptr, ptr %10, i64 2
%12 = load ptr, ptr %11, align 8, !tbaa !11
%13 = tail call ptr @tryObjectEncoding(ptr noundef %12) #2
%14 = load ptr, ptr %3, align 8, !tbaa !10
%15 = getelementptr inbounds ptr, ptr %14, i64 2
store ptr %13, ptr %15, align 8, !tbaa !11
%16 = load ptr, ptr %0, align 8, !tbaa !5
%17 = load ptr, ptr %3, align 8, !tbaa !10
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8, !tbaa !11
%20 = getelementptr inbounds ptr, ptr %17, i64 2
%21 = load ptr, ptr %20, align 8, !tbaa !11
%22 = tail call i32 @dbAdd(ptr noundef %16, ptr noundef %19, ptr noundef %21) #2
%23 = load ptr, ptr %3, align 8, !tbaa !10
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8, !tbaa !11
%26 = tail call i32 @incrRefCount(ptr noundef %25) #2
%27 = load ptr, ptr %3, align 8, !tbaa !10
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8, !tbaa !11
%30 = tail call i64 @stringObjectLen(ptr noundef %29) #2
br label %57
31: ; preds = %1
%32 = load i32, ptr @OBJ_STRING, align 4, !tbaa !12
%33 = tail call i64 @checkType(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef %32) #2
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %74
35: ; preds = %31
%36 = load ptr, ptr %3, align 8, !tbaa !10
%37 = getelementptr inbounds ptr, ptr %36, i64 2
%38 = load ptr, ptr %37, align 8, !tbaa !11
%39 = tail call i64 @stringObjectLen(ptr noundef nonnull %7) #2
%40 = load i32, ptr %38, align 4, !tbaa !14
%41 = tail call i64 @sdslen(i32 noundef %40) #2
%42 = add i64 %41, %39
%43 = tail call i64 @checkStringLength(ptr noundef nonnull %0, i64 noundef %42) #2
%44 = load i64, ptr @C_OK, align 8, !tbaa !16
%45 = icmp eq i64 %43, %44
br i1 %45, label %46, label %74
46: ; preds = %35
%47 = load ptr, ptr %0, align 8, !tbaa !5
%48 = load ptr, ptr %3, align 8, !tbaa !10
%49 = getelementptr inbounds ptr, ptr %48, i64 1
%50 = load ptr, ptr %49, align 8, !tbaa !11
%51 = tail call ptr @dbUnshareStringValue(ptr noundef %47, ptr noundef %50, ptr noundef nonnull %7) #2
%52 = load i32, ptr %51, align 4, !tbaa !14
%53 = load i32, ptr %38, align 4, !tbaa !14
%54 = tail call i64 @sdslen(i32 noundef %53) #2
%55 = tail call i32 @sdscatlen(i32 noundef %52, i32 noundef %53, i64 noundef %54) #2
store i32 %55, ptr %51, align 4, !tbaa !14
%56 = tail call i64 @sdslen(i32 noundef %55) #2
br label %57
57: ; preds = %46, %9
%58 = phi i64 [ %30, %9 ], [ %56, %46 ]
%59 = load ptr, ptr %0, align 8, !tbaa !5
%60 = load ptr, ptr %3, align 8, !tbaa !10
%61 = getelementptr inbounds ptr, ptr %60, i64 1
%62 = load ptr, ptr %61, align 8, !tbaa !11
%63 = tail call i32 @signalModifiedKey(ptr noundef %59, ptr noundef %62) #2
%64 = load i32, ptr @NOTIFY_STRING, align 4, !tbaa !12
%65 = load ptr, ptr %3, align 8, !tbaa !10
%66 = getelementptr inbounds ptr, ptr %65, i64 1
%67 = load ptr, ptr %66, align 8, !tbaa !11
%68 = load ptr, ptr %0, align 8, !tbaa !5
%69 = load i32, ptr %68, align 4, !tbaa !18
%70 = tail call i32 @notifyKeyspaceEvent(i32 noundef %64, ptr noundef nonnull @.str, ptr noundef %67, i32 noundef %69) #2
%71 = load i32, ptr @server, align 4, !tbaa !20
%72 = add nsw i32 %71, 1
store i32 %72, ptr @server, align 4, !tbaa !20
%73 = tail call i32 @addReplyLongLong(ptr noundef nonnull %0, i64 noundef %58) #2
br label %74
74: ; preds = %35, %31, %57
ret void
}
declare ptr @lookupKeyWrite(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @tryObjectEncoding(ptr noundef) local_unnamed_addr #1
declare i32 @dbAdd(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @incrRefCount(ptr noundef) local_unnamed_addr #1
declare i64 @stringObjectLen(ptr noundef) local_unnamed_addr #1
declare i64 @checkType(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @sdslen(i32 noundef) local_unnamed_addr #1
declare i64 @checkStringLength(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @dbUnshareStringValue(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sdscatlen(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @signalModifiedKey(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @notifyKeyspaceEvent(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @addReplyLongLong(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_27__", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_26__", !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!19, !13, i64 0}
!19 = !{!"TYPE_28__", !13, i64 0}
!20 = !{!21, !13, i64 0}
!21 = !{!"TYPE_29__", !13, i64 0}
| ; ModuleID = 'AnghaBench/redis/src/extr_t_string.c_appendCommand.c'
source_filename = "AnghaBench/redis/src/extr_t_string.c_appendCommand.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_29__ = type { i32 }
@OBJ_STRING = common local_unnamed_addr global i32 0, align 4
@C_OK = common local_unnamed_addr global i64 0, align 8
@NOTIFY_STRING = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"append\00", align 1
@server = common local_unnamed_addr global %struct.TYPE_29__ zeroinitializer, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @appendCommand(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = getelementptr inbounds i8, ptr %4, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = tail call ptr @lookupKeyWrite(ptr noundef %2, ptr noundef %6) #2
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %31
9: ; preds = %1
%10 = load ptr, ptr %3, align 8, !tbaa !11
%11 = getelementptr inbounds i8, ptr %10, i64 16
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = tail call ptr @tryObjectEncoding(ptr noundef %12) #2
%14 = load ptr, ptr %3, align 8, !tbaa !11
%15 = getelementptr inbounds i8, ptr %14, i64 16
store ptr %13, ptr %15, align 8, !tbaa !12
%16 = load ptr, ptr %0, align 8, !tbaa !6
%17 = load ptr, ptr %3, align 8, !tbaa !11
%18 = getelementptr inbounds i8, ptr %17, i64 8
%19 = load ptr, ptr %18, align 8, !tbaa !12
%20 = getelementptr inbounds i8, ptr %17, i64 16
%21 = load ptr, ptr %20, align 8, !tbaa !12
%22 = tail call i32 @dbAdd(ptr noundef %16, ptr noundef %19, ptr noundef %21) #2
%23 = load ptr, ptr %3, align 8, !tbaa !11
%24 = getelementptr inbounds i8, ptr %23, i64 16
%25 = load ptr, ptr %24, align 8, !tbaa !12
%26 = tail call i32 @incrRefCount(ptr noundef %25) #2
%27 = load ptr, ptr %3, align 8, !tbaa !11
%28 = getelementptr inbounds i8, ptr %27, i64 16
%29 = load ptr, ptr %28, align 8, !tbaa !12
%30 = tail call i64 @stringObjectLen(ptr noundef %29) #2
br label %57
31: ; preds = %1
%32 = load i32, ptr @OBJ_STRING, align 4, !tbaa !13
%33 = tail call i64 @checkType(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef %32) #2
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %74
35: ; preds = %31
%36 = load ptr, ptr %3, align 8, !tbaa !11
%37 = getelementptr inbounds i8, ptr %36, i64 16
%38 = load ptr, ptr %37, align 8, !tbaa !12
%39 = tail call i64 @stringObjectLen(ptr noundef nonnull %7) #2
%40 = load i32, ptr %38, align 4, !tbaa !15
%41 = tail call i64 @sdslen(i32 noundef %40) #2
%42 = add i64 %41, %39
%43 = tail call i64 @checkStringLength(ptr noundef nonnull %0, i64 noundef %42) #2
%44 = load i64, ptr @C_OK, align 8, !tbaa !17
%45 = icmp eq i64 %43, %44
br i1 %45, label %46, label %74
46: ; preds = %35
%47 = load ptr, ptr %0, align 8, !tbaa !6
%48 = load ptr, ptr %3, align 8, !tbaa !11
%49 = getelementptr inbounds i8, ptr %48, i64 8
%50 = load ptr, ptr %49, align 8, !tbaa !12
%51 = tail call ptr @dbUnshareStringValue(ptr noundef %47, ptr noundef %50, ptr noundef nonnull %7) #2
%52 = load i32, ptr %51, align 4, !tbaa !15
%53 = load i32, ptr %38, align 4, !tbaa !15
%54 = tail call i64 @sdslen(i32 noundef %53) #2
%55 = tail call i32 @sdscatlen(i32 noundef %52, i32 noundef %53, i64 noundef %54) #2
store i32 %55, ptr %51, align 4, !tbaa !15
%56 = tail call i64 @sdslen(i32 noundef %55) #2
br label %57
57: ; preds = %46, %9
%58 = phi i64 [ %30, %9 ], [ %56, %46 ]
%59 = load ptr, ptr %0, align 8, !tbaa !6
%60 = load ptr, ptr %3, align 8, !tbaa !11
%61 = getelementptr inbounds i8, ptr %60, i64 8
%62 = load ptr, ptr %61, align 8, !tbaa !12
%63 = tail call i32 @signalModifiedKey(ptr noundef %59, ptr noundef %62) #2
%64 = load i32, ptr @NOTIFY_STRING, align 4, !tbaa !13
%65 = load ptr, ptr %3, align 8, !tbaa !11
%66 = getelementptr inbounds i8, ptr %65, i64 8
%67 = load ptr, ptr %66, align 8, !tbaa !12
%68 = load ptr, ptr %0, align 8, !tbaa !6
%69 = load i32, ptr %68, align 4, !tbaa !19
%70 = tail call i32 @notifyKeyspaceEvent(i32 noundef %64, ptr noundef nonnull @.str, ptr noundef %67, i32 noundef %69) #2
%71 = load i32, ptr @server, align 4, !tbaa !21
%72 = add nsw i32 %71, 1
store i32 %72, ptr @server, align 4, !tbaa !21
%73 = tail call i32 @addReplyLongLong(ptr noundef nonnull %0, i64 noundef %58) #2
br label %74
74: ; preds = %35, %31, %57
ret void
}
declare ptr @lookupKeyWrite(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @tryObjectEncoding(ptr noundef) local_unnamed_addr #1
declare i32 @dbAdd(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @incrRefCount(ptr noundef) local_unnamed_addr #1
declare i64 @stringObjectLen(ptr noundef) local_unnamed_addr #1
declare i64 @checkType(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @sdslen(i32 noundef) local_unnamed_addr #1
declare i64 @checkStringLength(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @dbUnshareStringValue(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sdscatlen(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @signalModifiedKey(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @notifyKeyspaceEvent(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @addReplyLongLong(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_27__", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_26__", !14, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !9, i64 0}
!19 = !{!20, !14, i64 0}
!20 = !{!"TYPE_28__", !14, i64 0}
!21 = !{!22, !14, i64 0}
!22 = !{!"TYPE_29__", !14, i64 0}
| redis_src_extr_t_string.c_appendCommand |
; ModuleID = 'AnghaBench/Cello/src/extr_Pointer.c_Ref_Brief.c'
source_filename = "AnghaBench/Cello/src/extr_Pointer.c_Ref_Brief.c"
target datalayout = "e-m:e-p270:32:32-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 [15 x i8] c"Shared Pointer\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @Ref_Brief], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef nonnull ptr @Ref_Brief() #0 {
ret ptr @.str
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/Cello/src/extr_Pointer.c_Ref_Brief.c'
source_filename = "AnghaBench/Cello/src/extr_Pointer.c_Ref_Brief.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [15 x i8] c"Shared Pointer\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @Ref_Brief], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef nonnull ptr @Ref_Brief() #0 {
ret ptr @.str
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| Cello_src_extr_Pointer.c_Ref_Brief |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/core/extr_cache.c_rdma_read_gid_l2_fields.c'
source_filename = "AnghaBench/linux/drivers/infiniband/core/extr_cache.c_rdma_read_gid_l2_fields.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@get_lower_dev_vlan = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @rdma_read_gid_l2_fields(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 (...) @rcu_read_lock() #2
%5 = load i32, ptr %0, align 4, !tbaa !5
%6 = tail call ptr @rcu_dereference(i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %12
8: ; preds = %3
%9 = tail call i32 (...) @rcu_read_unlock() #2
%10 = load i32, ptr @ENODEV, align 4, !tbaa !10
%11 = sub nsw i32 0, %10
br label %30
12: ; preds = %3
%13 = icmp eq ptr %2, null
br i1 %13, label %17, label %14
14: ; preds = %12
%15 = load i32, ptr %6, align 4, !tbaa !11
%16 = tail call i32 @ether_addr_copy(ptr noundef nonnull %2, i32 noundef %15) #2
br label %17
17: ; preds = %14, %12
%18 = icmp eq ptr %1, null
br i1 %18, label %28, label %19
19: ; preds = %17
store i32 65535, ptr %1, align 4, !tbaa !10
%20 = tail call i64 @is_vlan_dev(ptr noundef nonnull %6) #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @vlan_dev_vlan_id(ptr noundef nonnull %6) #2
store i32 %23, ptr %1, align 4, !tbaa !10
br label %28
24: ; preds = %19
%25 = load i32, ptr %0, align 4, !tbaa !5
%26 = load i32, ptr @get_lower_dev_vlan, align 4, !tbaa !10
%27 = tail call i32 @netdev_walk_all_lower_dev_rcu(i32 noundef %25, i32 noundef %26, ptr noundef nonnull %1) #2
br label %28
28: ; preds = %22, %24, %17
%29 = tail call i32 (...) @rcu_read_unlock() #2
br label %30
30: ; preds = %28, %8
%31 = phi i32 [ 0, %28 ], [ %11, %8 ]
ret i32 %31
}
declare i32 @rcu_read_lock(...) local_unnamed_addr #1
declare ptr @rcu_dereference(i32 noundef) local_unnamed_addr #1
declare i32 @rcu_read_unlock(...) local_unnamed_addr #1
declare i32 @ether_addr_copy(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @is_vlan_dev(ptr noundef) local_unnamed_addr #1
declare i32 @vlan_dev_vlan_id(ptr noundef) local_unnamed_addr #1
declare i32 @netdev_walk_all_lower_dev_rcu(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ib_gid_attr", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"net_device", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/core/extr_cache.c_rdma_read_gid_l2_fields.c'
source_filename = "AnghaBench/linux/drivers/infiniband/core/extr_cache.c_rdma_read_gid_l2_fields.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENODEV = common local_unnamed_addr global i32 0, align 4
@get_lower_dev_vlan = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @rdma_read_gid_l2_fields(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @rcu_read_lock() #2
%5 = load i32, ptr %0, align 4, !tbaa !6
%6 = tail call ptr @rcu_dereference(i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %12
8: ; preds = %3
%9 = tail call i32 @rcu_read_unlock() #2
%10 = load i32, ptr @ENODEV, align 4, !tbaa !11
%11 = sub nsw i32 0, %10
br label %30
12: ; preds = %3
%13 = icmp eq ptr %2, null
br i1 %13, label %17, label %14
14: ; preds = %12
%15 = load i32, ptr %6, align 4, !tbaa !12
%16 = tail call i32 @ether_addr_copy(ptr noundef nonnull %2, i32 noundef %15) #2
br label %17
17: ; preds = %14, %12
%18 = icmp eq ptr %1, null
br i1 %18, label %28, label %19
19: ; preds = %17
store i32 65535, ptr %1, align 4, !tbaa !11
%20 = tail call i64 @is_vlan_dev(ptr noundef nonnull %6) #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @vlan_dev_vlan_id(ptr noundef nonnull %6) #2
store i32 %23, ptr %1, align 4, !tbaa !11
br label %28
24: ; preds = %19
%25 = load i32, ptr %0, align 4, !tbaa !6
%26 = load i32, ptr @get_lower_dev_vlan, align 4, !tbaa !11
%27 = tail call i32 @netdev_walk_all_lower_dev_rcu(i32 noundef %25, i32 noundef %26, ptr noundef nonnull %1) #2
br label %28
28: ; preds = %22, %24, %17
%29 = tail call i32 @rcu_read_unlock() #2
br label %30
30: ; preds = %28, %8
%31 = phi i32 [ 0, %28 ], [ %11, %8 ]
ret i32 %31
}
declare i32 @rcu_read_lock(...) local_unnamed_addr #1
declare ptr @rcu_dereference(i32 noundef) local_unnamed_addr #1
declare i32 @rcu_read_unlock(...) local_unnamed_addr #1
declare i32 @ether_addr_copy(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @is_vlan_dev(ptr noundef) local_unnamed_addr #1
declare i32 @vlan_dev_vlan_id(ptr noundef) local_unnamed_addr #1
declare i32 @netdev_walk_all_lower_dev_rcu(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ib_gid_attr", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"net_device", !8, i64 0}
| linux_drivers_infiniband_core_extr_cache.c_rdma_read_gid_l2_fields |
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/fusion/extr_fusion.c_test_GetCachePath.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/fusion/extr_fusion.c_test_GetCachePath.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MAX_PATH = dso_local local_unnamed_addr global i32 0, align 4
@test_GetCachePath.backslash = internal constant [2 x i8] c"\\\00", align 1
@test_GetCachePath.nochange = internal constant [9 x i8] c"nochange\00", align 1
@test_GetCachePath.gac = internal constant [4 x i8] c"GAC\00", align 1
@CP_ACP = dso_local local_unnamed_addr global i32 0, align 4
@ASM_CACHE_GAC = dso_local local_unnamed_addr global i32 0, align 4
@E_NOT_SUFFICIENT_BUFFER = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [44 x i8] c"Expected E_NOT_SUFFICIENT_BUFFER, got %08x\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Expected %d, got %d\0A\00", align 1
@E_INVALIDARG = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [33 x i8] c"Expected E_INVALIDARG, got %08x\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Expected %s, got %s\0A\00", align 1
@S_OK = dso_local local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [25 x i8] c"Expected S_OK, got %08x\0A\00", align 1
@ASM_CACHE_ROOT = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [14 x i8] c"NativeImages_\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"%s\\%s\\%s%s_32\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"NativeImages1_\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"%s\\%s\\%s%s\00", align 1
@.str.9 = private constant [9 x i8] c"assembly\00", align 1
@ASM_CACHE_ZAP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_GetCachePath], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_GetCachePath() #0 {
%1 = alloca i64, align 8
%2 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%3 = zext i32 %2 to i64
%4 = alloca i32, i64 %3, align 16
%5 = alloca i8, i64 %3, align 16
%6 = alloca i8, i64 %3, align 16
%7 = alloca i8, i64 %3, align 16
%8 = alloca i8, i64 %3, align 16
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
%9 = call i32 @GetWindowsDirectoryA(ptr noundef nonnull %4, i32 noundef %2) #4
%10 = load i32, ptr @CP_ACP, align 4, !tbaa !5
%11 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%12 = call i32 @MultiByteToWideChar(i32 noundef %10, i32 noundef 0, ptr noundef nonnull %4, i32 noundef -1, ptr noundef nonnull %5, i32 noundef %11) #4
%13 = call i32 @lstrcpyW(ptr noundef nonnull %6, ptr noundef nonnull %5) #4
%14 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.backslash) #4
%15 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @.str.9) #4
%16 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.backslash) #4
%17 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.gac) #4
store i64 0, ptr %1, align 8, !tbaa !9
%18 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%19 = call i64 @pGetCachePath(i32 noundef %18, ptr noundef null, ptr noundef nonnull %1) #4
%20 = load i64, ptr @E_NOT_SUFFICIENT_BUFFER, align 8, !tbaa !9
%21 = icmp eq i64 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %22, ptr noundef nonnull @.str, i64 noundef %19) #4
%24 = load i64, ptr %1, align 8, !tbaa !9
%25 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%26 = add nsw i64 %25, 1
%27 = icmp eq i64 %24, %26
%28 = zext i1 %27 to i32
%29 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%30 = add nsw i64 %29, 1
%31 = load i64, ptr %1, align 8, !tbaa !9
%32 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %28, ptr noundef nonnull @.str.1, i64 noundef %30, i64 noundef %31) #4
%33 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%34 = sext i32 %33 to i64
store i64 %34, ptr %1, align 8, !tbaa !9
%35 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%36 = call i64 @pGetCachePath(i32 noundef %35, ptr noundef null, ptr noundef nonnull %1) #4
%37 = load i64, ptr @E_NOT_SUFFICIENT_BUFFER, align 8, !tbaa !9
%38 = icmp eq i64 %36, %37
%39 = zext i1 %38 to i32
%40 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %39, ptr noundef nonnull @.str, i64 noundef %36) #4
%41 = load i64, ptr %1, align 8, !tbaa !9
%42 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%43 = add nsw i64 %42, 1
%44 = icmp eq i64 %41, %43
%45 = zext i1 %44 to i32
%46 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%47 = add nsw i64 %46, 1
%48 = load i64, ptr %1, align 8, !tbaa !9
%49 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %45, ptr noundef nonnull @.str.1, i64 noundef %47, i64 noundef %48) #4
%50 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%51 = call i64 @pGetCachePath(i32 noundef %50, ptr noundef null, ptr noundef null) #4
%52 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !9
%53 = icmp eq i64 %51, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %54, ptr noundef nonnull @.str.2, i64 noundef %51) #4
%56 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%57 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%58 = call i64 @pGetCachePath(i32 noundef %57, ptr noundef nonnull %8, ptr noundef null) #4
%59 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !9
%60 = icmp eq i64 %58, %59
%61 = zext i1 %60 to i32
%62 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %61, ptr noundef nonnull @.str.2, i64 noundef %58) #4
%63 = call i32 @lstrcmpW(ptr noundef nonnull @test_GetCachePath.nochange, ptr noundef nonnull %8) #4
%64 = icmp eq i32 %63, 0
%65 = zext i1 %64 to i32
%66 = call i64 @wine_dbgstr_w(ptr noundef nonnull @test_GetCachePath.nochange) #4
%67 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%68 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %65, ptr noundef nonnull @.str.3, i64 noundef %66, i64 noundef %67) #4
%69 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%70 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%71 = sext i32 %70 to i64
store i64 %71, ptr %1, align 8, !tbaa !9
%72 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%73 = call i64 @pGetCachePath(i32 noundef %72, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%74 = load i64, ptr @S_OK, align 8, !tbaa !9
%75 = icmp eq i64 %73, %74
%76 = zext i1 %75 to i32
%77 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %76, ptr noundef nonnull @.str.4, i64 noundef %73) #4
%78 = call i32 @lstrcmpW(ptr noundef nonnull %6, ptr noundef nonnull %8) #4
%79 = icmp eq i32 %78, 0
%80 = zext i1 %79 to i32
%81 = call i64 @wine_dbgstr_w(ptr noundef nonnull %6) #4
%82 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%83 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %80, ptr noundef nonnull @.str.3, i64 noundef %81, i64 noundef %82) #4
%84 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%85 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
store i64 %85, ptr %1, align 8, !tbaa !9
%86 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%87 = call i64 @pGetCachePath(i32 noundef %86, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%88 = load i64, ptr @E_NOT_SUFFICIENT_BUFFER, align 8, !tbaa !9
%89 = icmp eq i64 %87, %88
%90 = zext i1 %89 to i32
%91 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %90, ptr noundef nonnull @.str, i64 noundef %87) #4
%92 = call i32 @lstrcmpW(ptr noundef nonnull @test_GetCachePath.nochange, ptr noundef nonnull %8) #4
%93 = icmp eq i32 %92, 0
%94 = zext i1 %93 to i32
%95 = call i64 @wine_dbgstr_w(ptr noundef nonnull @test_GetCachePath.nochange) #4
%96 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%97 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %94, ptr noundef nonnull @.str.3, i64 noundef %95, i64 noundef %96) #4
%98 = call i32 @lstrcpyW(ptr noundef nonnull %6, ptr noundef nonnull %5) #4
%99 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.backslash) #4
%100 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @.str.9) #4
%101 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%102 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%103 = sext i32 %102 to i64
store i64 %103, ptr %1, align 8, !tbaa !9
%104 = load i32, ptr @ASM_CACHE_ROOT, align 4, !tbaa !5
%105 = call i64 @pGetCachePath(i32 noundef %104, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%106 = load i64, ptr @S_OK, align 8, !tbaa !9
%107 = icmp eq i64 %105, %106
br i1 %107, label %115, label %108
108: ; preds = %0
%109 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !9
%110 = icmp eq i64 %105, %109
%111 = zext i1 %110 to i32
%112 = call i64 @broken(i32 noundef %111) #4
%113 = icmp ne i64 %112, 0
%114 = zext i1 %113 to i32
br label %115
115: ; preds = %108, %0
%116 = phi i32 [ 1, %0 ], [ %114, %108 ]
%117 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %116, ptr noundef nonnull @.str.4, i64 noundef %105) #4
%118 = load i64, ptr @S_OK, align 8, !tbaa !9
%119 = icmp eq i64 %105, %118
br i1 %119, label %120, label %127
120: ; preds = %115
%121 = call i32 @lstrcmpW(ptr noundef nonnull %6, ptr noundef nonnull %8) #4
%122 = icmp eq i32 %121, 0
%123 = zext i1 %122 to i32
%124 = call i64 @wine_dbgstr_w(ptr noundef nonnull %6) #4
%125 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%126 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %123, ptr noundef nonnull @.str.3, i64 noundef %124, i64 noundef %125) #4
br label %127
127: ; preds = %115, %120
%128 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%129 = zext i32 %128 to i64
%130 = call ptr @llvm.stacksave.p0()
%131 = alloca i32, i64 %129, align 16
%132 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%133 = zext i32 %132 to i64
%134 = alloca i32, i64 %133, align 16
%135 = alloca i32, i64 %133, align 16
%136 = alloca i32, i64 %133, align 16
%137 = load i64, ptr @S_OK, align 8, !tbaa !9
%138 = icmp eq i64 %105, %137
%139 = select i1 %138, ptr @.str.5, ptr @.str.7
%140 = select i1 %138, ptr @.str.6, ptr @.str.8
%141 = call i32 @lstrcpyA(ptr noundef nonnull %135, ptr noundef nonnull %139) #4
%142 = call i32 @lstrcpyA(ptr noundef nonnull %136, ptr noundef nonnull %140) #4
%143 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%144 = call i32 @pGetCORVersion(ptr noundef nonnull %7, i32 noundef %143, ptr noundef nonnull %1) #4
%145 = load i32, ptr @CP_ACP, align 4, !tbaa !5
%146 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%147 = call i32 @WideCharToMultiByte(i32 noundef %145, i32 noundef 0, ptr noundef nonnull %7, i32 noundef -1, ptr noundef nonnull %131, i32 noundef %146, i32 noundef 0, i32 noundef 0) #4
%148 = call i32 @wsprintfA(ptr noundef nonnull %134, ptr noundef nonnull %136, ptr noundef nonnull %4, ptr noundef nonnull @.str.9, ptr noundef nonnull %135, ptr noundef nonnull %131) #4
%149 = load i32, ptr @CP_ACP, align 4, !tbaa !5
%150 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%151 = call i32 @MultiByteToWideChar(i32 noundef %149, i32 noundef 0, ptr noundef nonnull %134, i32 noundef -1, ptr noundef nonnull %6, i32 noundef %150) #4
%152 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%153 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%154 = sext i32 %153 to i64
store i64 %154, ptr %1, align 8, !tbaa !9
%155 = load i32, ptr @ASM_CACHE_ZAP, align 4, !tbaa !5
%156 = call i64 @pGetCachePath(i32 noundef %155, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%157 = load i64, ptr @S_OK, align 8, !tbaa !9
%158 = icmp eq i64 %156, %157
%159 = zext i1 %158 to i32
%160 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %159, ptr noundef nonnull @.str.4, i64 noundef %156) #4
%161 = call i32 @lstrcmpW(ptr noundef nonnull %6, ptr noundef nonnull %8) #4
%162 = icmp eq i32 %161, 0
%163 = zext i1 %162 to i32
%164 = call i64 @wine_dbgstr_w(ptr noundef nonnull %6) #4
%165 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%166 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %163, ptr noundef nonnull @.str.3, i64 noundef %164, i64 noundef %165) #4
call void @llvm.stackrestore.p0(ptr %130)
%167 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%168 = load i32, ptr @MAX_PATH, align 4, !tbaa !5
%169 = sext i32 %168 to i64
store i64 %169, ptr %1, align 8, !tbaa !9
%170 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !5
%171 = load i32, ptr @ASM_CACHE_ROOT, align 4, !tbaa !5
%172 = or i32 %171, %170
%173 = call i64 @pGetCachePath(i32 noundef %172, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%174 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !9
%175 = icmp eq i64 %173, %174
%176 = zext i1 %175 to i32
%177 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %176, ptr noundef nonnull @.str.2, i64 noundef %173) #4
%178 = call i32 @lstrcmpW(ptr noundef nonnull @test_GetCachePath.nochange, ptr noundef nonnull %8) #4
%179 = icmp eq i32 %178, 0
%180 = zext i1 %179 to i32
%181 = call i64 @wine_dbgstr_w(ptr noundef nonnull @test_GetCachePath.nochange) #4
%182 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%183 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %180, ptr noundef nonnull @.str.3, i64 noundef %181, i64 noundef %182) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @GetWindowsDirectoryA(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @MultiByteToWideChar(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @lstrcpyW(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @lstrcatW(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i64 @pGetCachePath(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @ok(i32 noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #3
declare i64 @lstrlenW(ptr noundef) local_unnamed_addr #3
declare i32 @lstrcmpW(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i64 @wine_dbgstr_w(ptr noundef) local_unnamed_addr #3
declare i64 @broken(i32 noundef) local_unnamed_addr #3
declare i32 @pGetCORVersion(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3
declare i32 @lstrcpyA(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @WideCharToMultiByte(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare i32 @wsprintfA(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { mustprogress nocallback nofree nosync 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, !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/reactos/modules/rostests/winetests/fusion/extr_fusion.c_test_GetCachePath.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/fusion/extr_fusion.c_test_GetCachePath.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAX_PATH = common local_unnamed_addr global i32 0, align 4
@test_GetCachePath.backslash = internal constant [2 x i8] c"\\\00", align 1
@test_GetCachePath.nochange = internal constant [9 x i8] c"nochange\00", align 1
@test_GetCachePath.gac = internal constant [4 x i8] c"GAC\00", align 1
@CP_ACP = common local_unnamed_addr global i32 0, align 4
@ASM_CACHE_GAC = common local_unnamed_addr global i32 0, align 4
@E_NOT_SUFFICIENT_BUFFER = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [44 x i8] c"Expected E_NOT_SUFFICIENT_BUFFER, got %08x\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Expected %d, got %d\0A\00", align 1
@E_INVALIDARG = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [33 x i8] c"Expected E_INVALIDARG, got %08x\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Expected %s, got %s\0A\00", align 1
@S_OK = common local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [25 x i8] c"Expected S_OK, got %08x\0A\00", align 1
@ASM_CACHE_ROOT = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [14 x i8] c"NativeImages_\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"%s\\%s\\%s%s_32\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"NativeImages1_\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"%s\\%s\\%s%s\00", align 1
@.str.9 = private constant [9 x i8] c"assembly\00", align 1
@ASM_CACHE_ZAP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @test_GetCachePath], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_GetCachePath() #0 {
%1 = alloca i64, align 8
%2 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%3 = zext i32 %2 to i64
%4 = alloca i32, i64 %3, align 4
%5 = alloca i8, i64 %3, align 1
%6 = alloca i8, i64 %3, align 1
%7 = alloca i8, i64 %3, align 1
%8 = alloca i8, i64 %3, align 1
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
%9 = call i32 @GetWindowsDirectoryA(ptr noundef nonnull %4, i32 noundef %2) #4
%10 = load i32, ptr @CP_ACP, align 4, !tbaa !6
%11 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%12 = call i32 @MultiByteToWideChar(i32 noundef %10, i32 noundef 0, ptr noundef nonnull %4, i32 noundef -1, ptr noundef nonnull %5, i32 noundef %11) #4
%13 = call i32 @lstrcpyW(ptr noundef nonnull %6, ptr noundef nonnull %5) #4
%14 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.backslash) #4
%15 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @.str.9) #4
%16 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.backslash) #4
%17 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.gac) #4
store i64 0, ptr %1, align 8, !tbaa !10
%18 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%19 = call i64 @pGetCachePath(i32 noundef %18, ptr noundef null, ptr noundef nonnull %1) #4
%20 = load i64, ptr @E_NOT_SUFFICIENT_BUFFER, align 8, !tbaa !10
%21 = icmp eq i64 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %22, ptr noundef nonnull @.str, i64 noundef %19) #4
%24 = load i64, ptr %1, align 8, !tbaa !10
%25 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%26 = add nsw i64 %25, 1
%27 = icmp eq i64 %24, %26
%28 = zext i1 %27 to i32
%29 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%30 = add nsw i64 %29, 1
%31 = load i64, ptr %1, align 8, !tbaa !10
%32 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %28, ptr noundef nonnull @.str.1, i64 noundef %30, i64 noundef %31) #4
%33 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%34 = sext i32 %33 to i64
store i64 %34, ptr %1, align 8, !tbaa !10
%35 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%36 = call i64 @pGetCachePath(i32 noundef %35, ptr noundef null, ptr noundef nonnull %1) #4
%37 = load i64, ptr @E_NOT_SUFFICIENT_BUFFER, align 8, !tbaa !10
%38 = icmp eq i64 %36, %37
%39 = zext i1 %38 to i32
%40 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %39, ptr noundef nonnull @.str, i64 noundef %36) #4
%41 = load i64, ptr %1, align 8, !tbaa !10
%42 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%43 = add nsw i64 %42, 1
%44 = icmp eq i64 %41, %43
%45 = zext i1 %44 to i32
%46 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
%47 = add nsw i64 %46, 1
%48 = load i64, ptr %1, align 8, !tbaa !10
%49 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %45, ptr noundef nonnull @.str.1, i64 noundef %47, i64 noundef %48) #4
%50 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%51 = call i64 @pGetCachePath(i32 noundef %50, ptr noundef null, ptr noundef null) #4
%52 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !10
%53 = icmp eq i64 %51, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %54, ptr noundef nonnull @.str.2, i64 noundef %51) #4
%56 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%57 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%58 = call i64 @pGetCachePath(i32 noundef %57, ptr noundef nonnull %8, ptr noundef null) #4
%59 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !10
%60 = icmp eq i64 %58, %59
%61 = zext i1 %60 to i32
%62 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %61, ptr noundef nonnull @.str.2, i64 noundef %58) #4
%63 = call i32 @lstrcmpW(ptr noundef nonnull @test_GetCachePath.nochange, ptr noundef nonnull %8) #4
%64 = icmp eq i32 %63, 0
%65 = zext i1 %64 to i32
%66 = call i64 @wine_dbgstr_w(ptr noundef nonnull @test_GetCachePath.nochange) #4
%67 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%68 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %65, ptr noundef nonnull @.str.3, i64 noundef %66, i64 noundef %67) #4
%69 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%70 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%71 = sext i32 %70 to i64
store i64 %71, ptr %1, align 8, !tbaa !10
%72 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%73 = call i64 @pGetCachePath(i32 noundef %72, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%74 = load i64, ptr @S_OK, align 8, !tbaa !10
%75 = icmp eq i64 %73, %74
%76 = zext i1 %75 to i32
%77 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %76, ptr noundef nonnull @.str.4, i64 noundef %73) #4
%78 = call i32 @lstrcmpW(ptr noundef nonnull %6, ptr noundef nonnull %8) #4
%79 = icmp eq i32 %78, 0
%80 = zext i1 %79 to i32
%81 = call i64 @wine_dbgstr_w(ptr noundef nonnull %6) #4
%82 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%83 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %80, ptr noundef nonnull @.str.3, i64 noundef %81, i64 noundef %82) #4
%84 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%85 = call i64 @lstrlenW(ptr noundef nonnull %6) #4
store i64 %85, ptr %1, align 8, !tbaa !10
%86 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%87 = call i64 @pGetCachePath(i32 noundef %86, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%88 = load i64, ptr @E_NOT_SUFFICIENT_BUFFER, align 8, !tbaa !10
%89 = icmp eq i64 %87, %88
%90 = zext i1 %89 to i32
%91 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %90, ptr noundef nonnull @.str, i64 noundef %87) #4
%92 = call i32 @lstrcmpW(ptr noundef nonnull @test_GetCachePath.nochange, ptr noundef nonnull %8) #4
%93 = icmp eq i32 %92, 0
%94 = zext i1 %93 to i32
%95 = call i64 @wine_dbgstr_w(ptr noundef nonnull @test_GetCachePath.nochange) #4
%96 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%97 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %94, ptr noundef nonnull @.str.3, i64 noundef %95, i64 noundef %96) #4
%98 = call i32 @lstrcpyW(ptr noundef nonnull %6, ptr noundef nonnull %5) #4
%99 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @test_GetCachePath.backslash) #4
%100 = call i32 @lstrcatW(ptr noundef nonnull %6, ptr noundef nonnull @.str.9) #4
%101 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%102 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%103 = sext i32 %102 to i64
store i64 %103, ptr %1, align 8, !tbaa !10
%104 = load i32, ptr @ASM_CACHE_ROOT, align 4, !tbaa !6
%105 = call i64 @pGetCachePath(i32 noundef %104, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%106 = load i64, ptr @S_OK, align 8, !tbaa !10
%107 = icmp eq i64 %105, %106
br i1 %107, label %115, label %108
108: ; preds = %0
%109 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !10
%110 = icmp eq i64 %105, %109
%111 = zext i1 %110 to i32
%112 = call i64 @broken(i32 noundef %111) #4
%113 = icmp ne i64 %112, 0
%114 = zext i1 %113 to i32
br label %115
115: ; preds = %108, %0
%116 = phi i32 [ 1, %0 ], [ %114, %108 ]
%117 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %116, ptr noundef nonnull @.str.4, i64 noundef %105) #4
%118 = load i64, ptr @S_OK, align 8, !tbaa !10
%119 = icmp eq i64 %105, %118
br i1 %119, label %120, label %127
120: ; preds = %115
%121 = call i32 @lstrcmpW(ptr noundef nonnull %6, ptr noundef nonnull %8) #4
%122 = icmp eq i32 %121, 0
%123 = zext i1 %122 to i32
%124 = call i64 @wine_dbgstr_w(ptr noundef nonnull %6) #4
%125 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%126 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %123, ptr noundef nonnull @.str.3, i64 noundef %124, i64 noundef %125) #4
br label %127
127: ; preds = %115, %120
%128 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%129 = zext i32 %128 to i64
%130 = call ptr @llvm.stacksave.p0()
%131 = alloca i32, i64 %129, align 4
%132 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%133 = zext i32 %132 to i64
%134 = alloca i32, i64 %133, align 4
%135 = alloca i32, i64 %133, align 4
%136 = alloca i32, i64 %133, align 4
%137 = load i64, ptr @S_OK, align 8, !tbaa !10
%138 = icmp eq i64 %105, %137
%139 = select i1 %138, ptr @.str.5, ptr @.str.7
%140 = select i1 %138, ptr @.str.6, ptr @.str.8
%141 = call i32 @lstrcpyA(ptr noundef nonnull %135, ptr noundef nonnull %139) #4
%142 = call i32 @lstrcpyA(ptr noundef nonnull %136, ptr noundef nonnull %140) #4
%143 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%144 = call i32 @pGetCORVersion(ptr noundef nonnull %7, i32 noundef %143, ptr noundef nonnull %1) #4
%145 = load i32, ptr @CP_ACP, align 4, !tbaa !6
%146 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%147 = call i32 @WideCharToMultiByte(i32 noundef %145, i32 noundef 0, ptr noundef nonnull %7, i32 noundef -1, ptr noundef nonnull %131, i32 noundef %146, i32 noundef 0, i32 noundef 0) #4
%148 = call i32 @wsprintfA(ptr noundef nonnull %134, ptr noundef nonnull %136, ptr noundef nonnull %4, ptr noundef nonnull @.str.9, ptr noundef nonnull %135, ptr noundef nonnull %131) #4
%149 = load i32, ptr @CP_ACP, align 4, !tbaa !6
%150 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%151 = call i32 @MultiByteToWideChar(i32 noundef %149, i32 noundef 0, ptr noundef nonnull %134, i32 noundef -1, ptr noundef nonnull %6, i32 noundef %150) #4
%152 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%153 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%154 = sext i32 %153 to i64
store i64 %154, ptr %1, align 8, !tbaa !10
%155 = load i32, ptr @ASM_CACHE_ZAP, align 4, !tbaa !6
%156 = call i64 @pGetCachePath(i32 noundef %155, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%157 = load i64, ptr @S_OK, align 8, !tbaa !10
%158 = icmp eq i64 %156, %157
%159 = zext i1 %158 to i32
%160 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %159, ptr noundef nonnull @.str.4, i64 noundef %156) #4
%161 = call i32 @lstrcmpW(ptr noundef nonnull %6, ptr noundef nonnull %8) #4
%162 = icmp eq i32 %161, 0
%163 = zext i1 %162 to i32
%164 = call i64 @wine_dbgstr_w(ptr noundef nonnull %6) #4
%165 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%166 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %163, ptr noundef nonnull @.str.3, i64 noundef %164, i64 noundef %165) #4
call void @llvm.stackrestore.p0(ptr %130)
%167 = call i32 @lstrcpyW(ptr noundef nonnull %8, ptr noundef nonnull @test_GetCachePath.nochange) #4
%168 = load i32, ptr @MAX_PATH, align 4, !tbaa !6
%169 = sext i32 %168 to i64
store i64 %169, ptr %1, align 8, !tbaa !10
%170 = load i32, ptr @ASM_CACHE_GAC, align 4, !tbaa !6
%171 = load i32, ptr @ASM_CACHE_ROOT, align 4, !tbaa !6
%172 = or i32 %171, %170
%173 = call i64 @pGetCachePath(i32 noundef %172, ptr noundef nonnull %8, ptr noundef nonnull %1) #4
%174 = load i64, ptr @E_INVALIDARG, align 8, !tbaa !10
%175 = icmp eq i64 %173, %174
%176 = zext i1 %175 to i32
%177 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %176, ptr noundef nonnull @.str.2, i64 noundef %173) #4
%178 = call i32 @lstrcmpW(ptr noundef nonnull @test_GetCachePath.nochange, ptr noundef nonnull %8) #4
%179 = icmp eq i32 %178, 0
%180 = zext i1 %179 to i32
%181 = call i64 @wine_dbgstr_w(ptr noundef nonnull @test_GetCachePath.nochange) #4
%182 = call i64 @wine_dbgstr_w(ptr noundef nonnull %8) #4
%183 = call i32 (i32, ptr, i64, ...) @ok(i32 noundef %180, ptr noundef nonnull @.str.3, i64 noundef %181, i64 noundef %182) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @GetWindowsDirectoryA(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @MultiByteToWideChar(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @lstrcpyW(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @lstrcatW(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i64 @pGetCachePath(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @ok(i32 noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #3
declare i64 @lstrlenW(ptr noundef) local_unnamed_addr #3
declare i32 @lstrcmpW(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i64 @wine_dbgstr_w(ptr noundef) local_unnamed_addr #3
declare i64 @broken(i32 noundef) local_unnamed_addr #3
declare i32 @pGetCORVersion(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3
declare i32 @lstrcpyA(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @WideCharToMultiByte(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare i32 @wsprintfA(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { mustprogress nocallback nofree nosync 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, !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}
| reactos_modules_rostests_winetests_fusion_extr_fusion.c_test_GetCachePath |
; ModuleID = 'AnghaBench/freebsd/usr.sbin/crunch/crunchgen/extr_crunchgen.c_gen_output_makefile.c'
source_filename = "AnghaBench/freebsd/usr.sbin/crunch/crunchgen/extr_crunchgen.c_gen_output_makefile.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MAXLINELEN = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"generating %s\00", align 1
@outmkname = dso_local local_unnamed_addr global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@goterror = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"# %s - generated from %s by crunchgen %s\0A\0A\00", align 1
@infilename = dso_local local_unnamed_addr global ptr null, align 8
@CRUNCH_VERSION = dso_local local_unnamed_addr global ptr null, align 8
@outhdrname = dso_local local_unnamed_addr global ptr null, align 8
@.str.4 = private unnamed_addr constant [15 x i8] c".include \22%s\22\0A\00", align 1
@progs = dso_local local_unnamed_addr global ptr null, align 8
@.str.5 = private unnamed_addr constant [13 x i8] c"\0A# ========\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @gen_output_makefile() local_unnamed_addr #0 {
%1 = load i32, ptr @MAXLINELEN, align 4, !tbaa !5
%2 = zext i32 %1 to i64
%3 = alloca i8, i64 %2, align 16
%4 = load ptr, ptr @outmkname, align 8, !tbaa !9
%5 = call i32 @snprintf(ptr noundef nonnull %3, i32 noundef %1, ptr noundef nonnull @.str, ptr noundef %4) #4
%6 = call i32 @status(ptr noundef nonnull %3) #4
%7 = load ptr, ptr @outmkname, align 8, !tbaa !9
%8 = call ptr @fopen(ptr noundef %7, ptr noundef nonnull @.str.1)
%9 = icmp eq ptr %8, null
%10 = load ptr, ptr @outmkname, align 8, !tbaa !9
br i1 %9, label %11, label %13
11: ; preds = %0
%12 = call i32 @warn(ptr noundef nonnull @.str.2, ptr noundef %10) #4
store i32 1, ptr @goterror, align 4, !tbaa !5
br label %34
13: ; preds = %0
%14 = load ptr, ptr @infilename, align 8, !tbaa !9
%15 = load ptr, ptr @CRUNCH_VERSION, align 8, !tbaa !9
%16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.3, ptr noundef %10, ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr @outhdrname, align 8, !tbaa !9
%18 = load i8, ptr %17, align 1, !tbaa !11
%19 = icmp eq i8 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %13
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.4, ptr noundef nonnull %17)
br label %22
22: ; preds = %20, %13
%23 = call i32 @top_makefile_rules(ptr noundef nonnull %8) #4
%24 = load ptr, ptr @progs, align 8, !tbaa !9
%25 = icmp eq ptr %24, null
br i1 %25, label %31, label %26
26: ; preds = %22, %26
%27 = phi ptr [ %29, %26 ], [ %24, %22 ]
%28 = call i32 @prog_makefile_rules(ptr noundef nonnull %8, ptr noundef nonnull %27) #4
%29 = load ptr, ptr %27, align 8, !tbaa !9
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %26, !llvm.loop !12
31: ; preds = %26, %22
%32 = call i64 @fwrite(ptr nonnull @.str.5, i64 12, i64 1, ptr nonnull %8)
%33 = call i32 @fclose(ptr noundef nonnull %8)
br label %34
34: ; preds = %31, %11
ret void
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @status(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2
declare i32 @warn(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i32 @top_makefile_rules(ptr noundef) local_unnamed_addr #1
declare i32 @prog_makefile_rules(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/usr.sbin/crunch/crunchgen/extr_crunchgen.c_gen_output_makefile.c'
source_filename = "AnghaBench/freebsd/usr.sbin/crunch/crunchgen/extr_crunchgen.c_gen_output_makefile.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAXLINELEN = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"generating %s\00", align 1
@outmkname = common local_unnamed_addr global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@goterror = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"# %s - generated from %s by crunchgen %s\0A\0A\00", align 1
@infilename = common local_unnamed_addr global ptr null, align 8
@CRUNCH_VERSION = common local_unnamed_addr global ptr null, align 8
@outhdrname = common local_unnamed_addr global ptr null, align 8
@.str.4 = private unnamed_addr constant [15 x i8] c".include \22%s\22\0A\00", align 1
@progs = common local_unnamed_addr global ptr null, align 8
@.str.5 = private unnamed_addr constant [13 x i8] c"\0A# ========\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @gen_output_makefile() local_unnamed_addr #0 {
%1 = load i32, ptr @MAXLINELEN, align 4, !tbaa !6
%2 = zext i32 %1 to i64
%3 = alloca i8, i64 %2, align 1
%4 = load ptr, ptr @outmkname, align 8, !tbaa !10
%5 = call i32 @snprintf(ptr noundef nonnull %3, i32 noundef %1, ptr noundef nonnull @.str, ptr noundef %4) #4
%6 = call i32 @status(ptr noundef nonnull %3) #4
%7 = load ptr, ptr @outmkname, align 8, !tbaa !10
%8 = call ptr @fopen(ptr noundef %7, ptr noundef nonnull @.str.1)
%9 = icmp eq ptr %8, null
%10 = load ptr, ptr @outmkname, align 8, !tbaa !10
br i1 %9, label %11, label %13
11: ; preds = %0
%12 = call i32 @warn(ptr noundef nonnull @.str.2, ptr noundef %10) #4
store i32 1, ptr @goterror, align 4, !tbaa !6
br label %34
13: ; preds = %0
%14 = load ptr, ptr @infilename, align 8, !tbaa !10
%15 = load ptr, ptr @CRUNCH_VERSION, align 8, !tbaa !10
%16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.3, ptr noundef %10, ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr @outhdrname, align 8, !tbaa !10
%18 = load i8, ptr %17, align 1, !tbaa !12
%19 = icmp eq i8 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %13
%21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.4, ptr noundef nonnull %17)
br label %22
22: ; preds = %20, %13
%23 = call i32 @top_makefile_rules(ptr noundef nonnull %8) #4
%24 = load ptr, ptr @progs, align 8, !tbaa !10
%25 = icmp eq ptr %24, null
br i1 %25, label %31, label %26
26: ; preds = %22, %26
%27 = phi ptr [ %29, %26 ], [ %24, %22 ]
%28 = call i32 @prog_makefile_rules(ptr noundef nonnull %8, ptr noundef nonnull %27) #4
%29 = load ptr, ptr %27, align 8, !tbaa !10
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %26, !llvm.loop !13
31: ; preds = %26, %22
%32 = call i64 @fwrite(ptr nonnull @.str.5, i64 12, i64 1, ptr nonnull %8)
%33 = call i32 @fclose(ptr noundef nonnull %8)
br label %34
34: ; preds = %31, %11
ret void
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @status(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2
declare i32 @warn(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2
declare i32 @top_makefile_rules(ptr noundef) local_unnamed_addr #1
declare i32 @prog_makefile_rules(ptr noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree nounwind }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| freebsd_usr.sbin_crunch_crunchgen_extr_crunchgen.c_gen_output_makefile |
; ModuleID = 'AnghaBench/esp-idf/examples/protocols/esp_local_ctrl/main/extr_app_main.c_app_main.c'
source_filename = "AnghaBench/esp-idf/examples/protocols/esp_local_ctrl/main/extr_app_main.c_app_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"
@ESP_ERR_NVS_NO_FREE_PAGES = dso_local local_unnamed_addr global i64 0, align 8
@ESP_ERR_NVS_NEW_VERSION_FOUND = dso_local local_unnamed_addr global i64 0, align 8
@TAG = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"ESP_WIFI_MODE_STA\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @app_main() local_unnamed_addr #0 {
%1 = tail call i64 (...) @nvs_flash_init() #2
%2 = load i64, ptr @ESP_ERR_NVS_NO_FREE_PAGES, align 8, !tbaa !5
%3 = icmp eq i64 %1, %2
%4 = load i64, ptr @ESP_ERR_NVS_NEW_VERSION_FOUND, align 8
%5 = icmp eq i64 %1, %4
%6 = select i1 %3, i1 true, i1 %5
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = tail call i64 (...) @nvs_flash_erase() #2
%9 = tail call i32 @ESP_ERROR_CHECK(i64 noundef %8) #2
%10 = tail call i64 (...) @nvs_flash_init() #2
br label %11
11: ; preds = %0, %7
%12 = phi i64 [ %10, %7 ], [ %1, %0 ]
%13 = tail call i32 @ESP_ERROR_CHECK(i64 noundef %12) #2
%14 = load i32, ptr @TAG, align 4, !tbaa !9
%15 = tail call i32 @ESP_LOGI(i32 noundef %14, ptr noundef nonnull @.str) #2
%16 = tail call i32 (...) @wifi_init_sta() #2
%17 = tail call i32 (...) @start_esp_local_ctrl_service() #2
ret void
}
declare i64 @nvs_flash_init(...) local_unnamed_addr #1
declare i32 @ESP_ERROR_CHECK(i64 noundef) local_unnamed_addr #1
declare i64 @nvs_flash_erase(...) local_unnamed_addr #1
declare i32 @ESP_LOGI(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wifi_init_sta(...) local_unnamed_addr #1
declare i32 @start_esp_local_ctrl_service(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/esp-idf/examples/protocols/esp_local_ctrl/main/extr_app_main.c_app_main.c'
source_filename = "AnghaBench/esp-idf/examples/protocols/esp_local_ctrl/main/extr_app_main.c_app_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ESP_ERR_NVS_NO_FREE_PAGES = common local_unnamed_addr global i64 0, align 8
@ESP_ERR_NVS_NEW_VERSION_FOUND = common local_unnamed_addr global i64 0, align 8
@TAG = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"ESP_WIFI_MODE_STA\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @app_main() local_unnamed_addr #0 {
%1 = tail call i64 @nvs_flash_init() #2
%2 = load i64, ptr @ESP_ERR_NVS_NO_FREE_PAGES, align 8, !tbaa !6
%3 = icmp eq i64 %1, %2
%4 = load i64, ptr @ESP_ERR_NVS_NEW_VERSION_FOUND, align 8
%5 = icmp eq i64 %1, %4
%6 = select i1 %3, i1 true, i1 %5
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = tail call i64 @nvs_flash_erase() #2
%9 = tail call i32 @ESP_ERROR_CHECK(i64 noundef %8) #2
%10 = tail call i64 @nvs_flash_init() #2
br label %11
11: ; preds = %0, %7
%12 = phi i64 [ %10, %7 ], [ %1, %0 ]
%13 = tail call i32 @ESP_ERROR_CHECK(i64 noundef %12) #2
%14 = load i32, ptr @TAG, align 4, !tbaa !10
%15 = tail call i32 @ESP_LOGI(i32 noundef %14, ptr noundef nonnull @.str) #2
%16 = tail call i32 @wifi_init_sta() #2
%17 = tail call i32 @start_esp_local_ctrl_service() #2
ret void
}
declare i64 @nvs_flash_init(...) local_unnamed_addr #1
declare i32 @ESP_ERROR_CHECK(i64 noundef) local_unnamed_addr #1
declare i64 @nvs_flash_erase(...) local_unnamed_addr #1
declare i32 @ESP_LOGI(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wifi_init_sta(...) local_unnamed_addr #1
declare i32 @start_esp_local_ctrl_service(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| esp-idf_examples_protocols_esp_local_ctrl_main_extr_app_main.c_app_main |
; ModuleID = 'AnghaBench/linux/tools/power/cpupower/utils/helpers/extr_sysfs.c_sysfs_get_sched.c'
source_filename = "AnghaBench/linux/tools/power/cpupower/utils/helpers/extr_sysfs.c_sysfs_get_sched.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ENODEV = 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 @sysfs_get_sched(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ENODEV, align 4, !tbaa !5
%3 = sub nsw i32 0, %2
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/tools/power/cpupower/utils/helpers/extr_sysfs.c_sysfs_get_sched.c'
source_filename = "AnghaBench/linux/tools/power/cpupower/utils/helpers/extr_sysfs.c_sysfs_get_sched.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENODEV = 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 range(i32 -2147483647, -2147483648) i32 @sysfs_get_sched(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ENODEV, align 4, !tbaa !6
%3 = sub nsw i32 0, %2
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 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_tools_power_cpupower_utils_helpers_extr_sysfs.c_sysfs_get_sched |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/crypto/extr_tls_wolfssl.c_tls_connection_init.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/crypto/extr_tls_wolfssl.c_tls_connection_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.tls_connection = type { i32, i32, i32, i32 }
@MSG_DEBUG = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"SSL: connection init\00", align 1
; Function Attrs: nounwind uwtable
define dso_local ptr @tls_connection_init(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !5
%3 = tail call i32 @wpa_printf(i32 noundef %2, ptr noundef nonnull @.str) #2
%4 = tail call ptr @os_zalloc(i32 noundef 16) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %27, label %6
6: ; preds = %1
%7 = tail call i32 @wolfSSL_new(ptr noundef %0) #2
store i32 %7, ptr %4, align 4, !tbaa !9
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @os_free(ptr noundef nonnull %4) #2
br label %27
11: ; preds = %6
%12 = getelementptr inbounds %struct.tls_connection, ptr %4, i64 0, i32 3
%13 = tail call i32 @wolfSSL_SetIOReadCtx(i32 noundef %7, ptr noundef nonnull %12) #2
%14 = load i32, ptr %4, align 4, !tbaa !9
%15 = getelementptr inbounds %struct.tls_connection, ptr %4, i64 0, i32 2
%16 = tail call i32 @wolfSSL_SetIOWriteCtx(i32 noundef %14, ptr noundef nonnull %15) #2
%17 = load i32, ptr %4, align 4, !tbaa !9
%18 = tail call i32 @wolfSSL_set_ex_data(i32 noundef %17, i32 noundef 0, ptr noundef nonnull %4) #2
%19 = tail call i32 @wolfSSL_CTX_get_ex_data(ptr noundef %0, i32 noundef 0) #2
%20 = getelementptr inbounds %struct.tls_connection, ptr %4, i64 0, i32 1
store i32 %19, ptr %20, align 4, !tbaa !11
%21 = load i32, ptr %4, align 4, !tbaa !9
%22 = tail call i32 @wolfSSL_KeepArrays(i32 noundef %21) #2
%23 = load i32, ptr %4, align 4, !tbaa !9
%24 = tail call i32 @wolfSSL_KeepHandshakeResources(i32 noundef %23) #2
%25 = load i32, ptr %4, align 4, !tbaa !9
%26 = tail call i32 @wolfSSL_UseClientSuites(i32 noundef %25) #2
br label %27
27: ; preds = %1, %11, %9
%28 = phi ptr [ %4, %11 ], [ null, %9 ], [ null, %1 ]
ret ptr %28
}
declare i32 @wpa_printf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @os_zalloc(i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_new(ptr noundef) local_unnamed_addr #1
declare i32 @os_free(ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_SetIOReadCtx(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_SetIOWriteCtx(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_set_ex_data(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_CTX_get_ex_data(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_KeepArrays(i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_KeepHandshakeResources(i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_UseClientSuites(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 = !{!"tls_connection", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/crypto/extr_tls_wolfssl.c_tls_connection_init.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/crypto/extr_tls_wolfssl.c_tls_connection_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MSG_DEBUG = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"SSL: connection init\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @tls_connection_init(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @MSG_DEBUG, align 4, !tbaa !6
%3 = tail call i32 @wpa_printf(i32 noundef %2, ptr noundef nonnull @.str) #2
%4 = tail call ptr @os_zalloc(i32 noundef 16) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %27, label %6
6: ; preds = %1
%7 = tail call i32 @wolfSSL_new(ptr noundef %0) #2
store i32 %7, ptr %4, align 4, !tbaa !10
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @os_free(ptr noundef nonnull %4) #2
br label %27
11: ; preds = %6
%12 = getelementptr inbounds i8, ptr %4, i64 12
%13 = tail call i32 @wolfSSL_SetIOReadCtx(i32 noundef %7, ptr noundef nonnull %12) #2
%14 = load i32, ptr %4, align 4, !tbaa !10
%15 = getelementptr inbounds i8, ptr %4, i64 8
%16 = tail call i32 @wolfSSL_SetIOWriteCtx(i32 noundef %14, ptr noundef nonnull %15) #2
%17 = load i32, ptr %4, align 4, !tbaa !10
%18 = tail call i32 @wolfSSL_set_ex_data(i32 noundef %17, i32 noundef 0, ptr noundef nonnull %4) #2
%19 = tail call i32 @wolfSSL_CTX_get_ex_data(ptr noundef %0, i32 noundef 0) #2
%20 = getelementptr inbounds i8, ptr %4, i64 4
store i32 %19, ptr %20, align 4, !tbaa !12
%21 = load i32, ptr %4, align 4, !tbaa !10
%22 = tail call i32 @wolfSSL_KeepArrays(i32 noundef %21) #2
%23 = load i32, ptr %4, align 4, !tbaa !10
%24 = tail call i32 @wolfSSL_KeepHandshakeResources(i32 noundef %23) #2
%25 = load i32, ptr %4, align 4, !tbaa !10
%26 = tail call i32 @wolfSSL_UseClientSuites(i32 noundef %25) #2
br label %27
27: ; preds = %1, %11, %9
%28 = phi ptr [ %4, %11 ], [ null, %9 ], [ null, %1 ]
ret ptr %28
}
declare i32 @wpa_printf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @os_zalloc(i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_new(ptr noundef) local_unnamed_addr #1
declare i32 @os_free(ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_SetIOReadCtx(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_SetIOWriteCtx(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_set_ex_data(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @wolfSSL_CTX_get_ex_data(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_KeepArrays(i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_KeepHandshakeResources(i32 noundef) local_unnamed_addr #1
declare i32 @wolfSSL_UseClientSuites(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 = !{!"tls_connection", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!12 = !{!11, !7, i64 4}
| freebsd_contrib_wpa_src_crypto_extr_tls_wolfssl.c_tls_connection_init |
; ModuleID = 'AnghaBench/fastsocket/kernel/lib/extr_bcd.c_bin2bcd.c'
source_filename = "AnghaBench/fastsocket/kernel/lib/extr_bcd.c_bin2bcd.c"
target datalayout = "e-m:e-p270:32:32-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 zeroext i8 @bin2bcd(i32 noundef %0) local_unnamed_addr #0 {
%2 = udiv i32 %0, 10
%3 = shl i32 %2, 4
%4 = urem i32 %0, 10
%5 = or disjoint i32 %3, %4
%6 = trunc i32 %5 to i8
ret i8 %6
}
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/lib/extr_bcd.c_bin2bcd.c'
source_filename = "AnghaBench/fastsocket/kernel/lib/extr_bcd.c_bin2bcd.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 zeroext i8 @bin2bcd(i32 noundef %0) local_unnamed_addr #0 {
%2 = udiv i32 %0, 10
%3 = mul nuw i32 %2, 6
%4 = add i32 %3, %0
%5 = trunc i32 %4 to i8
ret i8 %5
}
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_lib_extr_bcd.c_bin2bcd |
; ModuleID = 'AnghaBench/SoftEtherVPN/src/Cedar/extr_Client.c_CiWriteAccountData.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Cedar/extr_Client.c_CiWriteAccountData.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [13 x i8] c"ClientOption\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"ClientAuth\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"StartupAccount\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"CheckServerCert\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"RetryOnServerCert\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"CreateDateTime\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"UpdateDateTime\00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"LastConnectDateTime\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"ServerCert\00", align 1
@SHA1_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str.9 = private unnamed_addr constant [12 x i8] c"ShortcutKey\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @CiWriteAccountData(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = alloca [64 x i8], align 16
%4 = icmp eq ptr %0, null
%5 = icmp eq ptr %1, null
%6 = or i1 %4, %5
br i1 %6, label %53, label %7
7: ; preds = %2
%8 = tail call i32 @CfgCreateFolder(ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 9
%10 = load i32, ptr %9, align 4, !tbaa !5
%11 = tail call i32 @CiWriteClientOption(i32 noundef %8, i32 noundef %10) #3
%12 = tail call i32 @CfgCreateFolder(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
%13 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 8
%14 = load i32, ptr %13, align 8, !tbaa !11
%15 = tail call i32 @CiWriteClientAuth(i32 noundef %12, i32 noundef %14) #3
%16 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 7
%17 = load i32, ptr %16, align 4, !tbaa !12
%18 = tail call i32 @CfgAddBool(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, i32 noundef %17) #3
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 6
%20 = load i32, ptr %19, align 8, !tbaa !13
%21 = tail call i32 @CfgAddBool(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef %20) #3
%22 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 5
%23 = load i32, ptr %22, align 4, !tbaa !14
%24 = tail call i32 @CfgAddBool(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, i32 noundef %23) #3
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 4
%26 = load i32, ptr %25, align 8, !tbaa !15
%27 = tail call i32 @CfgAddInt64(ptr noundef nonnull %0, ptr noundef nonnull @.str.5, i32 noundef %26) #3
%28 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 3
%29 = load i32, ptr %28, align 4, !tbaa !16
%30 = tail call i32 @CfgAddInt64(ptr noundef nonnull %0, ptr noundef nonnull @.str.6, i32 noundef %29) #3
%31 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 2
%32 = load i32, ptr %31, align 8, !tbaa !17
%33 = tail call i32 @CfgAddInt64(ptr noundef nonnull %0, ptr noundef nonnull @.str.7, i32 noundef %32) #3
%34 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 1
%35 = load ptr, ptr %34, align 8, !tbaa !18
%36 = icmp eq ptr %35, null
br i1 %36, label %43, label %37
37: ; preds = %7
%38 = tail call ptr @XToBuf(ptr noundef nonnull %35, i32 noundef 0) #3
%39 = icmp eq ptr %38, null
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = tail call i32 @CfgAddBuf(ptr noundef nonnull %0, ptr noundef nonnull @.str.8, ptr noundef nonnull %38) #3
%42 = tail call i32 @FreeBuf(ptr noundef nonnull %38) #3
br label %43
43: ; preds = %37, %40, %7
%44 = load i32, ptr %1, align 8, !tbaa !19
%45 = load i32, ptr @SHA1_SIZE, align 4, !tbaa !20
%46 = tail call i32 @IsZero(i32 noundef %44, i32 noundef %45) #3
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %43
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #3
%49 = load i32, ptr %1, align 8, !tbaa !19
%50 = load i32, ptr @SHA1_SIZE, align 4, !tbaa !20
%51 = call i32 @BinToStr(ptr noundef nonnull %3, i32 noundef 64, i32 noundef %49, i32 noundef %50) #3
%52 = call i32 @CfgAddStr(ptr noundef nonnull %0, ptr noundef nonnull @.str.9, ptr noundef nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #3
br label %53
53: ; preds = %2, %48, %43
ret void
}
declare i32 @CiWriteClientOption(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgCreateFolder(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @CiWriteClientAuth(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddBool(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddInt64(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare ptr @XToBuf(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddBuf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @FreeBuf(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
declare i32 @IsZero(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BinToStr(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddStr(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn 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, !7, i64 44}
!6 = !{!"TYPE_3__", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44}
!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 40}
!12 = !{!6, !7, i64 36}
!13 = !{!6, !7, i64 32}
!14 = !{!6, !7, i64 28}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 20}
!17 = !{!6, !7, i64 16}
!18 = !{!6, !10, i64 8}
!19 = !{!6, !7, i64 0}
!20 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/SoftEtherVPN/src/Cedar/extr_Client.c_CiWriteAccountData.c'
source_filename = "AnghaBench/SoftEtherVPN/src/Cedar/extr_Client.c_CiWriteAccountData.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [13 x i8] c"ClientOption\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"ClientAuth\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"StartupAccount\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"CheckServerCert\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"RetryOnServerCert\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"CreateDateTime\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"UpdateDateTime\00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"LastConnectDateTime\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"ServerCert\00", align 1
@SHA1_SIZE = common local_unnamed_addr global i32 0, align 4
@.str.9 = private unnamed_addr constant [12 x i8] c"ShortcutKey\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @CiWriteAccountData(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = alloca [64 x i8], align 1
%4 = icmp eq ptr %0, null
%5 = icmp eq ptr %1, null
%6 = or i1 %4, %5
br i1 %6, label %53, label %7
7: ; preds = %2
%8 = tail call i32 @CfgCreateFolder(ptr noundef nonnull %0, ptr noundef nonnull @.str) #3
%9 = getelementptr inbounds i8, ptr %1, i64 44
%10 = load i32, ptr %9, align 4, !tbaa !6
%11 = tail call i32 @CiWriteClientOption(i32 noundef %8, i32 noundef %10) #3
%12 = tail call i32 @CfgCreateFolder(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
%13 = getelementptr inbounds i8, ptr %1, i64 40
%14 = load i32, ptr %13, align 8, !tbaa !12
%15 = tail call i32 @CiWriteClientAuth(i32 noundef %12, i32 noundef %14) #3
%16 = getelementptr inbounds i8, ptr %1, i64 36
%17 = load i32, ptr %16, align 4, !tbaa !13
%18 = tail call i32 @CfgAddBool(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, i32 noundef %17) #3
%19 = getelementptr inbounds i8, ptr %1, i64 32
%20 = load i32, ptr %19, align 8, !tbaa !14
%21 = tail call i32 @CfgAddBool(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, i32 noundef %20) #3
%22 = getelementptr inbounds i8, ptr %1, i64 28
%23 = load i32, ptr %22, align 4, !tbaa !15
%24 = tail call i32 @CfgAddBool(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, i32 noundef %23) #3
%25 = getelementptr inbounds i8, ptr %1, i64 24
%26 = load i32, ptr %25, align 8, !tbaa !16
%27 = tail call i32 @CfgAddInt64(ptr noundef nonnull %0, ptr noundef nonnull @.str.5, i32 noundef %26) #3
%28 = getelementptr inbounds i8, ptr %1, i64 20
%29 = load i32, ptr %28, align 4, !tbaa !17
%30 = tail call i32 @CfgAddInt64(ptr noundef nonnull %0, ptr noundef nonnull @.str.6, i32 noundef %29) #3
%31 = getelementptr inbounds i8, ptr %1, i64 16
%32 = load i32, ptr %31, align 8, !tbaa !18
%33 = tail call i32 @CfgAddInt64(ptr noundef nonnull %0, ptr noundef nonnull @.str.7, i32 noundef %32) #3
%34 = getelementptr inbounds i8, ptr %1, i64 8
%35 = load ptr, ptr %34, align 8, !tbaa !19
%36 = icmp eq ptr %35, null
br i1 %36, label %43, label %37
37: ; preds = %7
%38 = tail call ptr @XToBuf(ptr noundef nonnull %35, i32 noundef 0) #3
%39 = icmp eq ptr %38, null
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = tail call i32 @CfgAddBuf(ptr noundef nonnull %0, ptr noundef nonnull @.str.8, ptr noundef nonnull %38) #3
%42 = tail call i32 @FreeBuf(ptr noundef nonnull %38) #3
br label %43
43: ; preds = %37, %40, %7
%44 = load i32, ptr %1, align 8, !tbaa !20
%45 = load i32, ptr @SHA1_SIZE, align 4, !tbaa !21
%46 = tail call i32 @IsZero(i32 noundef %44, i32 noundef %45) #3
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %43
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #3
%49 = load i32, ptr %1, align 8, !tbaa !20
%50 = load i32, ptr @SHA1_SIZE, align 4, !tbaa !21
%51 = call i32 @BinToStr(ptr noundef nonnull %3, i32 noundef 64, i32 noundef %49, i32 noundef %50) #3
%52 = call i32 @CfgAddStr(ptr noundef nonnull %0, ptr noundef nonnull @.str.9, ptr noundef nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #3
br label %53
53: ; preds = %2, %48, %43
ret void
}
declare i32 @CiWriteClientOption(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgCreateFolder(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @CiWriteClientAuth(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddBool(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddInt64(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare ptr @XToBuf(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddBuf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @FreeBuf(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
declare i32 @IsZero(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BinToStr(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CfgAddStr(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn 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, !8, i64 44}
!7 = !{!"TYPE_3__", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 40}
!13 = !{!7, !8, i64 36}
!14 = !{!7, !8, i64 32}
!15 = !{!7, !8, i64 28}
!16 = !{!7, !8, i64 24}
!17 = !{!7, !8, i64 20}
!18 = !{!7, !8, i64 16}
!19 = !{!7, !11, i64 8}
!20 = !{!7, !8, i64 0}
!21 = !{!8, !8, i64 0}
| SoftEtherVPN_src_Cedar_extr_Client.c_CiWriteAccountData |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/extr_ipr.c_ipr_modify_ioafp_mode_page_28.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/extr_ipr.c_ipr_modify_ioafp_mode_page_28.c"
target datalayout = "e-m:e-p270:32:32-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.ipr_mode_page28 = type { i32, i32, ptr }
%struct.ipr_ioa_cfg = type { ptr, ptr }
%struct.ipr_dev_bus_entry = type { i32, i32, i32, i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
%struct.ipr_bus_attributes = type { i64, i32, i32 }
@IPR_MAX_NUM_BUSES = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [43 x i8] c"Invalid resource address reported: 0x%08X\0A\00", align 1
@IPR_EXTENDED_RESET_DELAY = dso_local local_unnamed_addr global i32 0, align 4
@IPR_SCSI_ATTR_QAS_MASK = dso_local local_unnamed_addr global i32 0, align 4
@IPR_SCSI_ATTR_ENABLE_QAS = dso_local local_unnamed_addr global i32 0, align 4
@IPR_SCSI_ATTR_DISABLE_QAS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ipr_modify_ioafp_mode_page_28], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ipr_modify_ioafp_mode_page_28(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = tail call ptr @ipr_get_mode_page(ptr noundef %1, i32 noundef 40, i32 noundef 16) #2
%4 = getelementptr inbounds %struct.ipr_mode_page28, ptr %3, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %54
7: ; preds = %2
%8 = getelementptr inbounds %struct.ipr_mode_page28, ptr %3, i64 0, i32 2
%9 = load ptr, ptr %8, align 8, !tbaa !11
%10 = load i32, ptr %3, align 8, !tbaa !12
%11 = getelementptr inbounds %struct.ipr_ioa_cfg, ptr %0, i64 0, i32 1
%12 = sext i32 %10 to i64
br label %13
13: ; preds = %7, %48
%14 = phi i64 [ 0, %7 ], [ %49, %48 ]
%15 = phi ptr [ %9, %7 ], [ %50, %48 ]
%16 = getelementptr inbounds %struct.ipr_dev_bus_entry, ptr %15, i64 0, i32 4
%17 = load i64, ptr %16, align 8
%18 = load i64, ptr @IPR_MAX_NUM_BUSES, align 8, !tbaa !13
%19 = icmp sgt i64 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %13
%21 = load ptr, ptr %11, align 8, !tbaa !15
%22 = tail call i32 @IPR_GET_PHYS_LOC(i64 %17) #2
%23 = tail call i32 @dev_err(ptr noundef %21, ptr noundef nonnull @.str, i32 noundef %22) #2
br label %48
24: ; preds = %13
%25 = load ptr, ptr %0, align 8, !tbaa !17
%26 = getelementptr inbounds %struct.ipr_bus_attributes, ptr %25, i64 %14
%27 = load i32, ptr @IPR_EXTENDED_RESET_DELAY, align 4, !tbaa !18
%28 = getelementptr inbounds %struct.ipr_dev_bus_entry, ptr %15, i64 0, i32 3
store i32 %27, ptr %28, align 4, !tbaa !19
%29 = getelementptr inbounds %struct.ipr_bus_attributes, ptr %25, i64 %14, i32 2
%30 = load i32, ptr %29, align 4, !tbaa !22
%31 = getelementptr inbounds %struct.ipr_dev_bus_entry, ptr %15, i64 0, i32 2
store i32 %30, ptr %31, align 8, !tbaa !24
%32 = getelementptr inbounds %struct.ipr_bus_attributes, ptr %25, i64 %14, i32 1
%33 = load i32, ptr %32, align 8, !tbaa !25
%34 = tail call i32 @cpu_to_be32(i32 noundef %33) #2
%35 = getelementptr inbounds %struct.ipr_dev_bus_entry, ptr %15, i64 0, i32 1
store i32 %34, ptr %35, align 4, !tbaa !26
%36 = load i32, ptr @IPR_SCSI_ATTR_QAS_MASK, align 4, !tbaa !18
%37 = xor i32 %36, -1
%38 = load i32, ptr %15, align 8, !tbaa !27
%39 = and i32 %38, %37
store i32 %39, ptr %15, align 8, !tbaa !27
%40 = load i64, ptr %26, align 8, !tbaa !28
%41 = icmp eq i64 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %24
%43 = load i32, ptr @IPR_SCSI_ATTR_ENABLE_QAS, align 4, !tbaa !18
%44 = or i32 %43, %39
store i32 %44, ptr %15, align 8, !tbaa !27
br label %48
45: ; preds = %24
%46 = load i32, ptr @IPR_SCSI_ATTR_DISABLE_QAS, align 4, !tbaa !18
%47 = or i32 %46, %39
store i32 %47, ptr %15, align 8, !tbaa !27
br label %48
48: ; preds = %42, %45, %20
%49 = add nuw nsw i64 %14, 1
%50 = getelementptr inbounds i32, ptr %15, i64 %12
%51 = load i32, ptr %4, align 4, !tbaa !5
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %49, %52
br i1 %53, label %13, label %54, !llvm.loop !29
54: ; preds = %48, %2
ret void
}
declare ptr @ipr_get_mode_page(ptr 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 @IPR_GET_PHYS_LOC(i64) local_unnamed_addr #1
declare i32 @cpu_to_be32(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 = !{!"ipr_mode_page28", !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 = !{!6, !10, i64 8}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"ipr_ioa_cfg", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !7, i64 12}
!20 = !{!"ipr_dev_bus_entry", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !21, i64 16}
!21 = !{!"TYPE_4__", !14, i64 0}
!22 = !{!23, !7, i64 12}
!23 = !{!"ipr_bus_attributes", !14, i64 0, !7, i64 8, !7, i64 12}
!24 = !{!20, !7, i64 8}
!25 = !{!23, !7, i64 8}
!26 = !{!20, !7, i64 4}
!27 = !{!20, !7, i64 0}
!28 = !{!23, !14, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/extr_ipr.c_ipr_modify_ioafp_mode_page_28.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/extr_ipr.c_ipr_modify_ioafp_mode_page_28.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ipr_bus_attributes = type { i64, i32, i32 }
@IPR_MAX_NUM_BUSES = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [43 x i8] c"Invalid resource address reported: 0x%08X\0A\00", align 1
@IPR_EXTENDED_RESET_DELAY = common local_unnamed_addr global i32 0, align 4
@IPR_SCSI_ATTR_QAS_MASK = common local_unnamed_addr global i32 0, align 4
@IPR_SCSI_ATTR_ENABLE_QAS = common local_unnamed_addr global i32 0, align 4
@IPR_SCSI_ATTR_DISABLE_QAS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ipr_modify_ioafp_mode_page_28], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ipr_modify_ioafp_mode_page_28(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = tail call ptr @ipr_get_mode_page(ptr noundef %1, i32 noundef 40, i32 noundef 16) #2
%4 = getelementptr inbounds i8, ptr %3, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %54
7: ; preds = %2
%8 = getelementptr inbounds i8, ptr %3, i64 8
%9 = load ptr, ptr %8, align 8, !tbaa !12
%10 = load i32, ptr %3, align 8, !tbaa !13
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = sext i32 %10 to i64
br label %13
13: ; preds = %7, %48
%14 = phi i64 [ 0, %7 ], [ %49, %48 ]
%15 = phi ptr [ %9, %7 ], [ %50, %48 ]
%16 = getelementptr inbounds i8, ptr %15, i64 16
%17 = load i64, ptr %16, align 8
%18 = load i64, ptr @IPR_MAX_NUM_BUSES, align 8, !tbaa !14
%19 = icmp sgt i64 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %13
%21 = load ptr, ptr %11, align 8, !tbaa !16
%22 = tail call i32 @IPR_GET_PHYS_LOC(i64 %17) #2
%23 = tail call i32 @dev_err(ptr noundef %21, ptr noundef nonnull @.str, i32 noundef %22) #2
br label %48
24: ; preds = %13
%25 = load ptr, ptr %0, align 8, !tbaa !18
%26 = getelementptr inbounds %struct.ipr_bus_attributes, ptr %25, i64 %14
%27 = load i32, ptr @IPR_EXTENDED_RESET_DELAY, align 4, !tbaa !19
%28 = getelementptr inbounds i8, ptr %15, i64 12
store i32 %27, ptr %28, align 4, !tbaa !20
%29 = getelementptr inbounds i8, ptr %26, i64 12
%30 = load i32, ptr %29, align 4, !tbaa !23
%31 = getelementptr inbounds i8, ptr %15, i64 8
store i32 %30, ptr %31, align 8, !tbaa !25
%32 = getelementptr inbounds i8, ptr %26, i64 8
%33 = load i32, ptr %32, align 8, !tbaa !26
%34 = tail call i32 @cpu_to_be32(i32 noundef %33) #2
%35 = getelementptr inbounds i8, ptr %15, i64 4
store i32 %34, ptr %35, align 4, !tbaa !27
%36 = load i32, ptr @IPR_SCSI_ATTR_QAS_MASK, align 4, !tbaa !19
%37 = xor i32 %36, -1
%38 = load i32, ptr %15, align 8, !tbaa !28
%39 = and i32 %38, %37
store i32 %39, ptr %15, align 8, !tbaa !28
%40 = load i64, ptr %26, align 8, !tbaa !29
%41 = icmp eq i64 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %24
%43 = load i32, ptr @IPR_SCSI_ATTR_ENABLE_QAS, align 4, !tbaa !19
%44 = or i32 %43, %39
store i32 %44, ptr %15, align 8, !tbaa !28
br label %48
45: ; preds = %24
%46 = load i32, ptr @IPR_SCSI_ATTR_DISABLE_QAS, align 4, !tbaa !19
%47 = or i32 %46, %39
store i32 %47, ptr %15, align 8, !tbaa !28
br label %48
48: ; preds = %42, %45, %20
%49 = add nuw nsw i64 %14, 1
%50 = getelementptr inbounds i32, ptr %15, i64 %12
%51 = load i32, ptr %4, align 4, !tbaa !6
%52 = sext i32 %51 to i64
%53 = icmp slt i64 %49, %52
br i1 %53, label %13, label %54, !llvm.loop !30
54: ; preds = %48, %2
ret void
}
declare ptr @ipr_get_mode_page(ptr 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 @IPR_GET_PHYS_LOC(i64) local_unnamed_addr #1
declare i32 @cpu_to_be32(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 = !{!"ipr_mode_page28", !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 = !{!7, !11, i64 8}
!13 = !{!7, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!17, !11, i64 8}
!17 = !{!"ipr_ioa_cfg", !11, i64 0, !11, i64 8}
!18 = !{!17, !11, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !8, i64 12}
!21 = !{!"ipr_dev_bus_entry", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !22, i64 16}
!22 = !{!"TYPE_4__", !15, i64 0}
!23 = !{!24, !8, i64 12}
!24 = !{!"ipr_bus_attributes", !15, i64 0, !8, i64 8, !8, i64 12}
!25 = !{!21, !8, i64 8}
!26 = !{!24, !8, i64 8}
!27 = !{!21, !8, i64 4}
!28 = !{!21, !8, i64 0}
!29 = !{!24, !15, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_drivers_scsi_extr_ipr.c_ipr_modify_ioafp_mode_page_28 |
; ModuleID = 'AnghaBench/linux/drivers/block/zram/extr_zram_drv.c_hot_remove_store.c'
source_filename = "AnghaBench/linux/drivers/block/zram/extr_zram_drv.c_hot_remove_store.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@zram_index_mutex = dso_local global i32 0, align 4
@zram_index_idr = dso_local global i32 0, align 4
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hot_remove_store], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hot_remove_store(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = call i32 @kstrtoint(ptr noundef %2, i32 noundef 10, ptr noundef nonnull %5) #3
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %36
8: ; preds = %4
%9 = load i32, ptr %5, align 4, !tbaa !5
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr @EINVAL, align 4, !tbaa !5
%13 = sub nsw i32 0, %12
br label %36
14: ; preds = %8
%15 = call i32 @mutex_lock(ptr noundef nonnull @zram_index_mutex) #3
%16 = load i32, ptr %5, align 4, !tbaa !5
%17 = call ptr @idr_find(ptr noundef nonnull @zram_index_idr, i32 noundef %16) #3
%18 = icmp eq ptr %17, null
br i1 %18, label %28, label %19
19: ; preds = %14
%20 = call i32 @zram_remove(ptr noundef nonnull %17) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = call i32 @mutex_unlock(ptr noundef nonnull @zram_index_mutex) #3
br label %36
24: ; preds = %19
%25 = load i32, ptr %5, align 4, !tbaa !5
%26 = call i32 @idr_remove(ptr noundef nonnull @zram_index_idr, i32 noundef %25) #3
%27 = call i32 @mutex_unlock(ptr noundef nonnull @zram_index_mutex) #3
br label %34
28: ; preds = %14
%29 = load i32, ptr @ENODEV, align 4, !tbaa !5
%30 = freeze i32 %29
%31 = sub nsw i32 0, %30
%32 = call i32 @mutex_unlock(ptr noundef nonnull @zram_index_mutex) #3
%33 = icmp eq i32 %30, 0
br i1 %33, label %34, label %36
34: ; preds = %24, %28
%35 = trunc i64 %3 to i32
br label %36
36: ; preds = %34, %28, %22, %4, %11
%37 = phi i32 [ %13, %11 ], [ %6, %4 ], [ %35, %34 ], [ %31, %28 ], [ %20, %22 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %37
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @kstrtoint(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #2
declare ptr @idr_find(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @zram_remove(ptr noundef) local_unnamed_addr #2
declare i32 @idr_remove(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/block/zram/extr_zram_drv.c_hot_remove_store.c'
source_filename = "AnghaBench/linux/drivers/block/zram/extr_zram_drv.c_hot_remove_store.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
@zram_index_mutex = common global i32 0, align 4
@zram_index_idr = common global i32 0, align 4
@ENODEV = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hot_remove_store], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @hot_remove_store(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = call i32 @kstrtoint(ptr noundef %2, i32 noundef 10, ptr noundef nonnull %5) #3
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %36
8: ; preds = %4
%9 = load i32, ptr %5, align 4, !tbaa !6
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr @EINVAL, align 4, !tbaa !6
%13 = sub nsw i32 0, %12
br label %36
14: ; preds = %8
%15 = call i32 @mutex_lock(ptr noundef nonnull @zram_index_mutex) #3
%16 = load i32, ptr %5, align 4, !tbaa !6
%17 = call ptr @idr_find(ptr noundef nonnull @zram_index_idr, i32 noundef %16) #3
%18 = icmp eq ptr %17, null
br i1 %18, label %28, label %19
19: ; preds = %14
%20 = call i32 @zram_remove(ptr noundef nonnull %17) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = call i32 @mutex_unlock(ptr noundef nonnull @zram_index_mutex) #3
br label %36
24: ; preds = %19
%25 = load i32, ptr %5, align 4, !tbaa !6
%26 = call i32 @idr_remove(ptr noundef nonnull @zram_index_idr, i32 noundef %25) #3
%27 = call i32 @mutex_unlock(ptr noundef nonnull @zram_index_mutex) #3
br label %34
28: ; preds = %14
%29 = load i32, ptr @ENODEV, align 4, !tbaa !6
%30 = freeze i32 %29
%31 = sub nsw i32 0, %30
%32 = call i32 @mutex_unlock(ptr noundef nonnull @zram_index_mutex) #3
%33 = icmp eq i32 %30, 0
br i1 %33, label %34, label %36
34: ; preds = %24, %28
%35 = trunc i64 %3 to i32
br label %36
36: ; preds = %34, %28, %22, %4, %11
%37 = phi i32 [ %13, %11 ], [ %6, %4 ], [ %35, %34 ], [ %31, %28 ], [ %20, %22 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %37
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @kstrtoint(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #2
declare ptr @idr_find(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @zram_remove(ptr noundef) local_unnamed_addr #2
declare i32 @idr_remove(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_block_zram_extr_zram_drv.c_hot_remove_store |
; ModuleID = 'AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic7xxx_seq.h_ahc_patch9_func.c'
source_filename = "AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic7xxx_seq.h_ahc_patch9_func.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@AHC_CMD_CHAN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ahc_patch9_func], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @ahc_patch9_func(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = load i32, ptr @AHC_CMD_CHAN, align 4, !tbaa !10
%4 = and i32 %3, %2
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
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 = !{!"ahc_softc", !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/freebsd/sys/dev/aic7xxx/extr_aic7xxx_seq.h_ahc_patch9_func.c'
source_filename = "AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic7xxx_seq.h_ahc_patch9_func.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AHC_CMD_CHAN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ahc_patch9_func], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 2) i32 @ahc_patch9_func(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = load i32, ptr @AHC_CMD_CHAN, align 4, !tbaa !11
%4 = and i32 %3, %2
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
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 = !{!"ahc_softc", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| freebsd_sys_dev_aic7xxx_extr_aic7xxx_seq.h_ahc_patch9_func |
; ModuleID = 'AnghaBench/exploitdb/shellcodes/linux_x86/extr_13417.c_main.c'
source_filename = "AnghaBench/exploitdb/shellcodes/linux_x86/extr_13417.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"
@shellcode = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [8 x i8] c"len:%d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
%3 = load i64, ptr @shellcode, align 8, !tbaa !5
%4 = inttoptr i64 %3 to ptr
%5 = tail call i32 @strlen(i64 noundef %3) #2
%6 = tail call i32 @printf(ptr noundef nonnull @.str, i32 noundef %5) #2
tail call void (...) %4() #2
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strlen(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/exploitdb/shellcodes/linux_x86/extr_13417.c_main.c'
source_filename = "AnghaBench/exploitdb/shellcodes/linux_x86/extr_13417.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@shellcode = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [8 x i8] c"len:%d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
%3 = load i64, ptr @shellcode, align 8, !tbaa !6
%4 = inttoptr i64 %3 to ptr
%5 = tail call i32 @strlen(i64 noundef %3) #2
%6 = tail call i32 @printf(ptr noundef nonnull @.str, i32 noundef %5) #2
tail call void %4() #2
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strlen(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| exploitdb_shellcodes_linux_x86_extr_13417.c_main |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_gpu.h_OUT_PKT0.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_gpu.h_OUT_PKT0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CP_TYPE0_PKT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @OUT_PKT0], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @OUT_PKT0(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = add nsw i32 %2, 1
%5 = tail call i32 @adreno_wait_ring(ptr noundef %0, i32 noundef %4) #2
%6 = load i32, ptr @CP_TYPE0_PKT, align 4, !tbaa !5
%7 = shl i32 %2, 16
%8 = add i32 %7, -65536
%9 = and i32 %1, 32767
%10 = or disjoint i32 %8, %9
%11 = or i32 %10, %6
%12 = tail call i32 @OUT_RING(ptr noundef %0, i32 noundef %11) #2
ret void
}
declare i32 @adreno_wait_ring(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @OUT_RING(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_gpu.h_OUT_PKT0.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_gpu.h_OUT_PKT0.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CP_TYPE0_PKT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @OUT_PKT0], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @OUT_PKT0(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = add nsw i32 %2, 1
%5 = tail call i32 @adreno_wait_ring(ptr noundef %0, i32 noundef %4) #2
%6 = load i32, ptr @CP_TYPE0_PKT, align 4, !tbaa !6
%7 = shl i32 %2, 16
%8 = add i32 %7, -65536
%9 = and i32 %1, 32767
%10 = or disjoint i32 %8, %9
%11 = or i32 %10, %6
%12 = tail call i32 @OUT_RING(ptr noundef %0, i32 noundef %11) #2
ret void
}
declare i32 @adreno_wait_ring(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @OUT_RING(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_msm_adreno_extr_adreno_gpu.h_OUT_PKT0 |
; ModuleID = 'AnghaBench/freebsd/sys/dev/cp/extr_cpddk.c_cp_g703_timer.c'
source_filename = "AnghaBench/freebsd/sys/dev/cp/extr_cpddk.c_cp_g703_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"
%struct.TYPE_7__ = type { i32, i32, i32, i32, i64, %struct.TYPE_8__, %struct.TYPE_6__, ptr, i32, i32 }
%struct.TYPE_8__ = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.TYPE_6__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @cp_g703_timer(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = add nsw i32 %2, 1
store i32 %3, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 4
%5 = load i64, ptr %4, align 8, !tbaa !14
%6 = icmp eq i64 %5, 0
%7 = icmp slt i32 %2, 1
%8 = select i1 %6, i1 %7, i1 false
br i1 %8, label %121, label %9
9: ; preds = %1
%10 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
store i32 0, ptr %10, align 4, !tbaa !15
%11 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 9
%12 = load i32, ptr %11, align 4, !tbaa !16
%13 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 8
%14 = load i32, ptr %13, align 8, !tbaa !17
%15 = tail call zeroext i8 @u(i32 noundef %12, i32 noundef %14) #3
%16 = load i32, ptr %11, align 4, !tbaa !16
%17 = load i32, ptr %13, align 8, !tbaa !17
%18 = tail call i32 @l(i32 noundef %16, i32 noundef %17, i8 noundef zeroext %15) #3
%19 = tail call i32 @cp_get_cd(ptr noundef nonnull %0) #3
%20 = zext i8 %15 to i32
%21 = and i32 %20, 1
%22 = icmp eq i32 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %9
%24 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5, i32 11
%25 = load i64, ptr %24, align 8, !tbaa !18
%26 = add nsw i64 %25, 1
store i64 %26, ptr %24, align 8, !tbaa !18
br label %27
27: ; preds = %9, %23
%28 = icmp eq i32 %19, 0
br i1 %28, label %29, label %32
29: ; preds = %27
%30 = load i32, ptr %10, align 4, !tbaa !15
%31 = or i32 %30, 64
store i32 %31, ptr %10, align 4, !tbaa !15
br label %32
32: ; preds = %27, %29
%33 = and i32 %20, 2
%34 = icmp eq i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = load i32, ptr %10, align 4, !tbaa !15
%37 = or i32 %36, 4096
store i32 %37, ptr %10, align 4, !tbaa !15
br label %38
38: ; preds = %32, %35
%39 = and i32 %20, 16
%40 = icmp eq i32 %39, 0
%41 = load i32, ptr %10, align 4, !tbaa !15
br i1 %40, label %44, label %42
42: ; preds = %38
%43 = or i32 %41, 2048
store i32 %43, ptr %10, align 4, !tbaa !15
br label %48
44: ; preds = %38
%45 = icmp eq i32 %41, 0
br i1 %45, label %46, label %47
46: ; preds = %44
store i32 1, ptr %10, align 4, !tbaa !15
br label %47
47: ; preds = %44, %46
br i1 %28, label %48, label %52
48: ; preds = %42, %47
%49 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5, i32 7
%50 = load i64, ptr %49, align 8, !tbaa !19
%51 = add nsw i64 %50, 1
store i64 %51, ptr %49, align 8, !tbaa !19
br label %64
52: ; preds = %47
br i1 %22, label %60, label %53
53: ; preds = %52
%54 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5, i32 6
%55 = load i64, ptr %54, align 8, !tbaa !20
%56 = add nsw i64 %55, 1
store i64 %56, ptr %54, align 8, !tbaa !20
%57 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 2
%58 = load <2 x i32>, ptr %57, align 8, !tbaa !21
%59 = add nsw <2 x i32> %58, <i32 1, i32 1>
store <2 x i32> %59, ptr %57, align 8, !tbaa !21
br label %64
60: ; preds = %52
%61 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 2
%62 = load i32, ptr %61, align 8, !tbaa !22
%63 = add nsw i32 %62, 1
store i32 %63, ptr %61, align 8, !tbaa !22
br label %64
64: ; preds = %60, %53, %48
%65 = load i32, ptr %0, align 8, !tbaa !5
%66 = add i32 %65, 59
%67 = icmp ult i32 %66, 119
br i1 %67, label %68, label %80
68: ; preds = %64
%69 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 3
%70 = load i32, ptr %69, align 4, !tbaa !23
%71 = shl nsw i32 %70, 1
%72 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 2
%73 = load i32, ptr %72, align 8, !tbaa !22
%74 = icmp sgt i32 %71, %73
br i1 %74, label %75, label %79
75: ; preds = %68
%76 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5
%77 = load i64, ptr %76, align 8, !tbaa !24
%78 = add nsw i64 %77, 1
store i64 %78, ptr %76, align 8, !tbaa !24
br label %79
79: ; preds = %75, %68
store i32 0, ptr %72, align 8, !tbaa !22
store i32 0, ptr %69, align 4, !tbaa !23
br label %121
80: ; preds = %64
%81 = icmp sgt i32 %65, 900
br i1 %81, label %82, label %121
82: ; preds = %80
%83 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 7
br label %84
84: ; preds = %90, %82
%85 = phi i64 [ 47, %82 ], [ %95, %90 ]
%86 = load ptr, ptr %83, align 8, !tbaa !25
%87 = getelementptr inbounds %struct.TYPE_8__, ptr %86, i64 %85
%88 = getelementptr %struct.TYPE_8__, ptr %87, i64 -1
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %87, ptr noundef nonnull align 8 dereferenceable(96) %88, i64 96, i1 false), !tbaa.struct !26
%89 = icmp ugt i64 %85, 1
br i1 %89, label %90, label %96
90: ; preds = %84
%91 = load ptr, ptr %83, align 8, !tbaa !25
%92 = getelementptr %struct.TYPE_8__, ptr %91, i64 %85
%93 = getelementptr %struct.TYPE_8__, ptr %92, i64 -1
%94 = getelementptr %struct.TYPE_8__, ptr %92, i64 -2
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %93, ptr noundef nonnull align 8 dereferenceable(96) %94, i64 96, i1 false), !tbaa.struct !26
%95 = add nsw i64 %85, -2
br label %84
96: ; preds = %84
%97 = load ptr, ptr %83, align 8, !tbaa !25
%98 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %97, ptr noundef nonnull align 8 dereferenceable(96) %98, i64 96, i1 false), !tbaa.struct !26
%99 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 6
%100 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5, i32 8
%101 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 6, i32 8
%102 = load <4 x i64>, ptr %100, align 8, !tbaa !27
%103 = load <4 x i32>, ptr %101, align 8, !tbaa !21
%104 = trunc <4 x i64> %102 to <4 x i32>
%105 = add <4 x i32> %103, %104
store <4 x i32> %105, ptr %101, align 8, !tbaa !21
%106 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 5, i32 4
%107 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 6, i32 4
%108 = load <4 x i64>, ptr %106, align 8, !tbaa !27
%109 = load <4 x i32>, ptr %107, align 8, !tbaa !21
%110 = trunc <4 x i64> %108 to <4 x i32>
%111 = add <4 x i32> %109, %110
store <4 x i32> %111, ptr %107, align 8, !tbaa !21
%112 = load <4 x i64>, ptr %98, align 8, !tbaa !27
%113 = load <4 x i32>, ptr %99, align 8, !tbaa !21
%114 = trunc <4 x i64> %112 to <4 x i32>
%115 = add <4 x i32> %113, %114
store <4 x i32> %115, ptr %99, align 8, !tbaa !21
%116 = tail call i32 @memset(ptr noundef nonnull %98, i32 noundef 0, i32 noundef 96) #3
%117 = load i32, ptr %0, align 8, !tbaa !5
%118 = sext i32 %117 to i64
%119 = load i64, ptr %4, align 8, !tbaa !14
%120 = add nsw i64 %119, %118
store i64 %120, ptr %4, align 8, !tbaa !14
store i32 0, ptr %0, align 8, !tbaa !5
br label %121
121: ; preds = %79, %96, %80, %1
ret void
}
declare zeroext i8 @u(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @l(i32 noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @cp_get_cd(ptr 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 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !7, i64 0}
!6 = !{!"TYPE_7__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !12, i64 120, !13, i64 168, !7, i64 176, !7, i64 180}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"TYPE_8__", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88}
!12 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !10, i64 16}
!15 = !{!6, !7, i64 4}
!16 = !{!6, !7, i64 180}
!17 = !{!6, !7, i64 176}
!18 = !{!6, !10, i64 112}
!19 = !{!6, !10, i64 80}
!20 = !{!6, !10, i64 72}
!21 = !{!7, !7, i64 0}
!22 = !{!6, !7, i64 8}
!23 = !{!6, !7, i64 12}
!24 = !{!6, !10, i64 24}
!25 = !{!6, !13, i64 168}
!26 = !{i64 0, i64 8, !27, i64 8, i64 8, !27, i64 16, i64 8, !27, i64 24, i64 8, !27, i64 32, i64 8, !27, i64 40, i64 8, !27, i64 48, i64 8, !27, i64 56, i64 8, !27, i64 64, i64 8, !27, i64 72, i64 8, !27, i64 80, i64 8, !27, i64 88, i64 8, !27}
!27 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/cp/extr_cpddk.c_cp_g703_timer.c'
source_filename = "AnghaBench/freebsd/sys/dev/cp/extr_cpddk.c_cp_g703_timer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_8__ = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
; Function Attrs: nounwind ssp uwtable(sync)
define void @cp_g703_timer(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = add nsw i32 %2, 1
store i32 %3, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = load i64, ptr %4, align 8, !tbaa !15
%6 = icmp eq i64 %5, 0
%7 = icmp slt i32 %2, 1
%8 = select i1 %6, i1 %7, i1 false
br i1 %8, label %116, label %9
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %0, i64 4
store i32 0, ptr %10, align 4, !tbaa !16
%11 = getelementptr inbounds i8, ptr %0, i64 180
%12 = load i32, ptr %11, align 4, !tbaa !17
%13 = getelementptr inbounds i8, ptr %0, i64 176
%14 = load i32, ptr %13, align 8, !tbaa !18
%15 = tail call zeroext i8 @u(i32 noundef %12, i32 noundef %14) #3
%16 = load i32, ptr %11, align 4, !tbaa !17
%17 = load i32, ptr %13, align 8, !tbaa !18
%18 = tail call i32 @l(i32 noundef %16, i32 noundef %17, i8 noundef zeroext %15) #3
%19 = tail call i32 @cp_get_cd(ptr noundef nonnull %0) #3
%20 = zext i8 %15 to i32
%21 = and i32 %20, 1
%22 = icmp eq i32 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %9
%24 = getelementptr inbounds i8, ptr %0, i64 112
%25 = load i64, ptr %24, align 8, !tbaa !19
%26 = add nsw i64 %25, 1
store i64 %26, ptr %24, align 8, !tbaa !19
br label %27
27: ; preds = %9, %23
%28 = icmp eq i32 %19, 0
br i1 %28, label %29, label %32
29: ; preds = %27
%30 = load i32, ptr %10, align 4, !tbaa !16
%31 = or i32 %30, 64
store i32 %31, ptr %10, align 4, !tbaa !16
br label %32
32: ; preds = %27, %29
%33 = and i32 %20, 2
%34 = icmp eq i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = load i32, ptr %10, align 4, !tbaa !16
%37 = or i32 %36, 4096
store i32 %37, ptr %10, align 4, !tbaa !16
br label %38
38: ; preds = %32, %35
%39 = and i32 %20, 16
%40 = icmp eq i32 %39, 0
%41 = load i32, ptr %10, align 4, !tbaa !16
br i1 %40, label %44, label %42
42: ; preds = %38
%43 = or i32 %41, 2048
store i32 %43, ptr %10, align 4, !tbaa !16
br label %48
44: ; preds = %38
%45 = icmp eq i32 %41, 0
br i1 %45, label %46, label %47
46: ; preds = %44
store i32 1, ptr %10, align 4, !tbaa !16
br label %47
47: ; preds = %44, %46
br i1 %28, label %48, label %52
48: ; preds = %42, %47
%49 = getelementptr inbounds i8, ptr %0, i64 80
%50 = load i64, ptr %49, align 8, !tbaa !20
%51 = add nsw i64 %50, 1
store i64 %51, ptr %49, align 8, !tbaa !20
br label %64
52: ; preds = %47
br i1 %22, label %60, label %53
53: ; preds = %52
%54 = getelementptr inbounds i8, ptr %0, i64 72
%55 = load i64, ptr %54, align 8, !tbaa !21
%56 = add nsw i64 %55, 1
store i64 %56, ptr %54, align 8, !tbaa !21
%57 = getelementptr inbounds i8, ptr %0, i64 8
%58 = load <2 x i32>, ptr %57, align 8, !tbaa !22
%59 = add nsw <2 x i32> %58, <i32 1, i32 1>
store <2 x i32> %59, ptr %57, align 8, !tbaa !22
br label %64
60: ; preds = %52
%61 = getelementptr inbounds i8, ptr %0, i64 8
%62 = load i32, ptr %61, align 8, !tbaa !23
%63 = add nsw i32 %62, 1
store i32 %63, ptr %61, align 8, !tbaa !23
br label %64
64: ; preds = %60, %53, %48
%65 = load i32, ptr %0, align 8, !tbaa !6
%66 = add i32 %65, 59
%67 = icmp ult i32 %66, 119
br i1 %67, label %68, label %80
68: ; preds = %64
%69 = getelementptr inbounds i8, ptr %0, i64 12
%70 = load i32, ptr %69, align 4, !tbaa !24
%71 = shl nsw i32 %70, 1
%72 = getelementptr inbounds i8, ptr %0, i64 8
%73 = load i32, ptr %72, align 8, !tbaa !23
%74 = icmp sgt i32 %71, %73
br i1 %74, label %75, label %79
75: ; preds = %68
%76 = getelementptr inbounds i8, ptr %0, i64 24
%77 = load i64, ptr %76, align 8, !tbaa !25
%78 = add nsw i64 %77, 1
store i64 %78, ptr %76, align 8, !tbaa !25
br label %79
79: ; preds = %75, %68
store <2 x i32> zeroinitializer, ptr %72, align 8, !tbaa !22
br label %116
80: ; preds = %64
%81 = icmp sgt i32 %65, 900
br i1 %81, label %82, label %116
82: ; preds = %80
%83 = getelementptr inbounds i8, ptr %0, i64 168
br label %84
84: ; preds = %82, %84
%85 = phi i64 [ 47, %82 ], [ %89, %84 ]
%86 = load ptr, ptr %83, align 8, !tbaa !26
%87 = getelementptr inbounds %struct.TYPE_8__, ptr %86, i64 %85
%88 = getelementptr i8, ptr %87, i64 -96
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %87, ptr noundef nonnull align 8 dereferenceable(96) %88, i64 96, i1 false), !tbaa.struct !27
%89 = add nsw i64 %85, -1
%90 = icmp ugt i64 %85, 1
br i1 %90, label %84, label %91
91: ; preds = %84
%92 = load ptr, ptr %83, align 8, !tbaa !26
%93 = getelementptr inbounds i8, ptr %0, i64 24
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %92, ptr noundef nonnull align 8 dereferenceable(96) %93, i64 96, i1 false), !tbaa.struct !27
%94 = getelementptr inbounds i8, ptr %0, i64 120
%95 = getelementptr inbounds i8, ptr %0, i64 88
%96 = getelementptr inbounds i8, ptr %0, i64 152
%97 = load <4 x i64>, ptr %95, align 8, !tbaa !28
%98 = load <4 x i32>, ptr %96, align 8, !tbaa !22
%99 = trunc <4 x i64> %97 to <4 x i32>
%100 = add <4 x i32> %98, %99
store <4 x i32> %100, ptr %96, align 8, !tbaa !22
%101 = getelementptr inbounds i8, ptr %0, i64 56
%102 = getelementptr inbounds i8, ptr %0, i64 136
%103 = load <4 x i64>, ptr %101, align 8, !tbaa !28
%104 = load <4 x i32>, ptr %102, align 8, !tbaa !22
%105 = trunc <4 x i64> %103 to <4 x i32>
%106 = add <4 x i32> %104, %105
store <4 x i32> %106, ptr %102, align 8, !tbaa !22
%107 = load <4 x i64>, ptr %93, align 8, !tbaa !28
%108 = load <4 x i32>, ptr %94, align 8, !tbaa !22
%109 = trunc <4 x i64> %107 to <4 x i32>
%110 = add <4 x i32> %108, %109
store <4 x i32> %110, ptr %94, align 8, !tbaa !22
%111 = tail call i32 @memset(ptr noundef nonnull %93, i32 noundef 0, i32 noundef 96) #3
%112 = load i32, ptr %0, align 8, !tbaa !6
%113 = sext i32 %112 to i64
%114 = load i64, ptr %4, align 8, !tbaa !15
%115 = add nsw i64 %114, %113
store i64 %115, ptr %4, align 8, !tbaa !15
store i32 0, ptr %0, align 8, !tbaa !6
br label %116
116: ; preds = %79, %91, %80, %1
ret void
}
declare zeroext i8 @u(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @l(i32 noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #1
declare i32 @cp_get_cd(ptr 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 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { 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, !8, i64 0}
!7 = !{!"TYPE_7__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !13, i64 120, !14, i64 168, !8, i64 176, !8, i64 180}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"TYPE_8__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!13 = !{!"TYPE_6__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!7, !11, i64 16}
!16 = !{!7, !8, i64 4}
!17 = !{!7, !8, i64 180}
!18 = !{!7, !8, i64 176}
!19 = !{!7, !11, i64 112}
!20 = !{!7, !11, i64 80}
!21 = !{!7, !11, i64 72}
!22 = !{!8, !8, i64 0}
!23 = !{!7, !8, i64 8}
!24 = !{!7, !8, i64 12}
!25 = !{!7, !11, i64 24}
!26 = !{!7, !14, i64 168}
!27 = !{i64 0, i64 8, !28, i64 8, i64 8, !28, i64 16, i64 8, !28, i64 24, i64 8, !28, i64 32, i64 8, !28, i64 40, i64 8, !28, i64 48, i64 8, !28, i64 56, i64 8, !28, i64 64, i64 8, !28, i64 72, i64 8, !28, i64 80, i64 8, !28, i64 88, i64 8, !28}
!28 = !{!11, !11, i64 0}
| freebsd_sys_dev_cp_extr_cpddk.c_cp_g703_timer |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/extr_trx.h_get_rx_status_desc_rpt_sel.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/extr_trx.h_get_rx_status_desc_rpt_sel.c"
target datalayout = "e-m:e-p270:32:32-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 @get_rx_status_desc_rpt_sel], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @get_rx_status_desc_rpt_sel(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i32, ptr %0, i64 1
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = tail call i32 @BIT(i32 noundef 28) #2
%5 = tail call i32 @le32_get_bits(i32 noundef %3, i32 noundef %4) #2
ret i32 %5
}
declare i32 @le32_get_bits(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BIT(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/extr_trx.h_get_rx_status_desc_rpt_sel.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/extr_trx.h_get_rx_status_desc_rpt_sel.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 @get_rx_status_desc_rpt_sel], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @get_rx_status_desc_rpt_sel(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = tail call i32 @BIT(i32 noundef 28) #2
%5 = tail call i32 @le32_get_bits(i32 noundef %3, i32 noundef %4) #2
ret i32 %5
}
declare i32 @le32_get_bits(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BIT(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_wireless_realtek_rtlwifi_rtl8821ae_extr_trx.h_get_rx_status_desc_rpt_sel |
; ModuleID = 'AnghaBench/postgres/src/backend/storage/lmgr/extr_lock.c_VirtualXactLockTableInsert.c'
source_filename = "AnghaBench/postgres/src/backend/storage/lmgr/extr_lock.c_VirtualXactLockTableInsert.c"
target datalayout = "e-m:e-p270:32:32-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 { i64, i64, i32, i32 }
@MyProc = dso_local local_unnamed_addr global ptr null, align 8
@LW_EXCLUSIVE = dso_local local_unnamed_addr global i32 0, align 4
@InvalidLocalTransactionId = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @VirtualXactLockTableInsert(i64 %0, i64 %1) local_unnamed_addr #0 {
%3 = tail call i32 @VirtualTransactionIdIsValid(i64 %0, i64 %1) #2
%4 = tail call i32 @Assert(i32 noundef %3) #2
%5 = load ptr, ptr @MyProc, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_6__, ptr %5, i64 0, i32 3
%7 = load i32, ptr @LW_EXCLUSIVE, align 4, !tbaa !9
%8 = tail call i32 @LWLockAcquire(ptr noundef nonnull %6, i32 noundef %7) #2
%9 = load ptr, ptr @MyProc, align 8, !tbaa !5
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = icmp eq i64 %10, %0
%12 = zext i1 %11 to i32
%13 = tail call i32 @Assert(i32 noundef %12) #2
%14 = load ptr, ptr @MyProc, align 8, !tbaa !5
%15 = getelementptr inbounds %struct.TYPE_6__, ptr %14, i64 0, i32 1
%16 = load i64, ptr %15, align 8, !tbaa !14
%17 = load i64, ptr @InvalidLocalTransactionId, align 8, !tbaa !15
%18 = icmp eq i64 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @Assert(i32 noundef %19) #2
%21 = load ptr, ptr @MyProc, align 8, !tbaa !5
%22 = getelementptr inbounds %struct.TYPE_6__, ptr %21, i64 0, i32 2
%23 = load i32, ptr %22, align 8, !tbaa !16
%24 = icmp eq i32 %23, 0
%25 = zext i1 %24 to i32
%26 = tail call i32 @Assert(i32 noundef %25) #2
%27 = load ptr, ptr @MyProc, align 8, !tbaa !5
%28 = getelementptr inbounds %struct.TYPE_6__, ptr %27, i64 0, i32 2
store i32 1, ptr %28, align 8, !tbaa !16
%29 = getelementptr inbounds %struct.TYPE_6__, ptr %27, i64 0, i32 1
store i64 %1, ptr %29, align 8, !tbaa !14
%30 = getelementptr inbounds %struct.TYPE_6__, ptr %27, i64 0, i32 3
%31 = tail call i32 @LWLockRelease(ptr noundef nonnull %30) #2
ret void
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare i32 @VirtualTransactionIdIsValid(i64, i64) local_unnamed_addr #1
declare i32 @LWLockAcquire(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LWLockRelease(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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_6__", !13, i64 0, !13, i64 8, !10, i64 16, !10, i64 20}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !10, i64 16}
| ; ModuleID = 'AnghaBench/postgres/src/backend/storage/lmgr/extr_lock.c_VirtualXactLockTableInsert.c'
source_filename = "AnghaBench/postgres/src/backend/storage/lmgr/extr_lock.c_VirtualXactLockTableInsert.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MyProc = common local_unnamed_addr global ptr null, align 8
@LW_EXCLUSIVE = common local_unnamed_addr global i32 0, align 4
@InvalidLocalTransactionId = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @VirtualXactLockTableInsert([2 x i64] %0) local_unnamed_addr #0 {
%2 = extractvalue [2 x i64] %0, 0
%3 = extractvalue [2 x i64] %0, 1
%4 = tail call i32 @VirtualTransactionIdIsValid([2 x i64] %0) #2
%5 = tail call i32 @Assert(i32 noundef %4) #2
%6 = load ptr, ptr @MyProc, align 8, !tbaa !6
%7 = getelementptr inbounds i8, ptr %6, i64 20
%8 = load i32, ptr @LW_EXCLUSIVE, align 4, !tbaa !10
%9 = tail call i32 @LWLockAcquire(ptr noundef nonnull %7, i32 noundef %8) #2
%10 = load ptr, ptr @MyProc, align 8, !tbaa !6
%11 = load i64, ptr %10, align 8, !tbaa !12
%12 = icmp eq i64 %11, %2
%13 = zext i1 %12 to i32
%14 = tail call i32 @Assert(i32 noundef %13) #2
%15 = load ptr, ptr @MyProc, align 8, !tbaa !6
%16 = getelementptr inbounds i8, ptr %15, i64 8
%17 = load i64, ptr %16, align 8, !tbaa !15
%18 = load i64, ptr @InvalidLocalTransactionId, align 8, !tbaa !16
%19 = icmp eq i64 %17, %18
%20 = zext i1 %19 to i32
%21 = tail call i32 @Assert(i32 noundef %20) #2
%22 = load ptr, ptr @MyProc, align 8, !tbaa !6
%23 = getelementptr inbounds i8, ptr %22, i64 16
%24 = load i32, ptr %23, align 8, !tbaa !17
%25 = icmp eq i32 %24, 0
%26 = zext i1 %25 to i32
%27 = tail call i32 @Assert(i32 noundef %26) #2
%28 = load ptr, ptr @MyProc, align 8, !tbaa !6
%29 = getelementptr inbounds i8, ptr %28, i64 16
store i32 1, ptr %29, align 8, !tbaa !17
%30 = getelementptr inbounds i8, ptr %28, i64 8
store i64 %3, ptr %30, align 8, !tbaa !15
%31 = getelementptr inbounds i8, ptr %28, i64 20
%32 = tail call i32 @LWLockRelease(ptr noundef nonnull %31) #2
ret void
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare i32 @VirtualTransactionIdIsValid([2 x i64]) local_unnamed_addr #1
declare i32 @LWLockAcquire(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LWLockRelease(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, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_6__", !14, i64 0, !14, i64 8, !11, i64 16, !11, i64 20}
!14 = !{!"long", !8, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !11, i64 16}
| postgres_src_backend_storage_lmgr_extr_lock.c_VirtualXactLockTableInsert |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/core/extr_dc_link.c_dc_link_disable_hpd.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/core/extr_dc_link.c_dc_link_disable_hpd.c"
target datalayout = "e-m:e-p270:32:32-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 @dc_link_disable_hpd(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @dc_link_dp_disable_hpd(ptr noundef %0) #2
ret void
}
declare i32 @dc_link_dp_disable_hpd(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/gpu/drm/amd/display/dc/core/extr_dc_link.c_dc_link_disable_hpd.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/core/extr_dc_link.c_dc_link_disable_hpd.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 @dc_link_disable_hpd(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @dc_link_dp_disable_hpd(ptr noundef %0) #2
ret void
}
declare i32 @dc_link_dp_disable_hpd(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_gpu_drm_amd_display_dc_core_extr_dc_link.c_dc_link_disable_hpd |
; ModuleID = 'AnghaBench/Cinder/src/freetype/bdf/extr_bdflib.c__bdf_list_ensure.c'
source_filename = "AnghaBench/Cinder/src/freetype/bdf/extr_bdflib.c__bdf_list_ensure.c"
target datalayout = "e-m:e-p270:32:32-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, i32, i32 }
@FT_Err_Ok = dso_local local_unnamed_addr global i32 0, align 4
@FT_INT_MAX = dso_local local_unnamed_addr global i32 0, align 4
@Out_Of_Memory = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @_bdf_list_ensure], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @_bdf_list_ensure(ptr nocapture noundef %0, i64 noundef %1) #0 {
%3 = load i32, ptr @FT_Err_Ok, align 4, !tbaa !5
%4 = load i64, ptr %0, align 8, !tbaa !9
%5 = icmp ult i64 %4, %1
br i1 %5, label %6, label %26
6: ; preds = %2
%7 = load i32, ptr @FT_INT_MAX, align 4, !tbaa !5
%8 = sext i32 %7 to i64
%9 = lshr i64 %8, 3
%10 = icmp eq i64 %4, %9
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr @Out_Of_Memory, align 4, !tbaa !5
%13 = tail call i32 @FT_THROW(i32 noundef %12) #3
br label %26
14: ; preds = %6
%15 = lshr i64 %4, 1
%16 = add i64 %4, 5
%17 = add i64 %16, %15
%18 = icmp ult i64 %17, %4
%19 = tail call i64 @llvm.umin.i64(i64 %17, i64 %9)
%20 = select i1 %18, i64 %9, i64 %19
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%22 = load i32, ptr %21, align 8, !tbaa !12
%23 = tail call i64 @FT_RENEW_ARRAY(i32 noundef %22, i64 noundef %4, i64 noundef %20) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %14
store i64 %20, ptr %0, align 8, !tbaa !9
br label %26
26: ; preds = %2, %14, %11, %25
%27 = phi i32 [ %3, %2 ], [ %13, %11 ], [ %3, %25 ], [ %3, %14 ]
ret i32 %27
}
declare i32 @FT_THROW(i32 noundef) local_unnamed_addr #1
declare i64 @FT_RENEW_ARRAY(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0, !6, i64 8, !6, i64 12}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/Cinder/src/freetype/bdf/extr_bdflib.c__bdf_list_ensure.c'
source_filename = "AnghaBench/Cinder/src/freetype/bdf/extr_bdflib.c__bdf_list_ensure.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FT_Err_Ok = common local_unnamed_addr global i32 0, align 4
@FT_INT_MAX = common local_unnamed_addr global i32 0, align 4
@Out_Of_Memory = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @_bdf_list_ensure], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @_bdf_list_ensure(ptr nocapture noundef %0, i64 noundef %1) #0 {
%3 = load i32, ptr @FT_Err_Ok, align 4, !tbaa !6
%4 = load i64, ptr %0, align 8, !tbaa !10
%5 = icmp ult i64 %4, %1
br i1 %5, label %6, label %26
6: ; preds = %2
%7 = load i32, ptr @FT_INT_MAX, align 4, !tbaa !6
%8 = sext i32 %7 to i64
%9 = lshr i64 %8, 3
%10 = icmp eq i64 %4, %9
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr @Out_Of_Memory, align 4, !tbaa !6
%13 = tail call i32 @FT_THROW(i32 noundef %12) #3
br label %26
14: ; preds = %6
%15 = lshr i64 %4, 1
%16 = add i64 %4, 5
%17 = add i64 %16, %15
%18 = icmp ult i64 %17, %4
%19 = tail call i64 @llvm.umin.i64(i64 %17, i64 %9)
%20 = select i1 %18, i64 %9, i64 %19
%21 = getelementptr inbounds i8, ptr %0, i64 8
%22 = load i32, ptr %21, align 8, !tbaa !13
%23 = tail call i64 @FT_RENEW_ARRAY(i32 noundef %22, i64 noundef %4, i64 noundef %20) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %14
store i64 %20, ptr %0, align 8, !tbaa !10
br label %26
26: ; preds = %2, %14, %11, %25
%27 = phi i32 [ %3, %2 ], [ %13, %11 ], [ %3, %25 ], [ %3, %14 ]
ret i32 %27
}
declare i32 @FT_THROW(i32 noundef) local_unnamed_addr #1
declare i64 @FT_RENEW_ARRAY(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0, !7, i64 8, !7, i64 12}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !7, i64 8}
| Cinder_src_freetype_bdf_extr_bdflib.c__bdf_list_ensure |
; ModuleID = 'AnghaBench/netdata/libnetdata/avl/extr_avl.c_avl_insert_lock.c'
source_filename = "AnghaBench/netdata/libnetdata/avl/extr_avl.c_avl_insert_lock.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local ptr @avl_insert_lock(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @avl_write_lock(ptr noundef %0) #2
%4 = tail call ptr @avl_insert(ptr noundef %0, ptr noundef %1) #2
%5 = tail call i32 @avl_unlock(ptr noundef %0) #2
ret ptr %4
}
declare i32 @avl_write_lock(ptr noundef) local_unnamed_addr #1
declare ptr @avl_insert(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @avl_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/netdata/libnetdata/avl/extr_avl.c_avl_insert_lock.c'
source_filename = "AnghaBench/netdata/libnetdata/avl/extr_avl.c_avl_insert_lock.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 ptr @avl_insert_lock(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @avl_write_lock(ptr noundef %0) #2
%4 = tail call ptr @avl_insert(ptr noundef %0, ptr noundef %1) #2
%5 = tail call i32 @avl_unlock(ptr noundef %0) #2
ret ptr %4
}
declare i32 @avl_write_lock(ptr noundef) local_unnamed_addr #1
declare ptr @avl_insert(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @avl_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| netdata_libnetdata_avl_extr_avl.c_avl_insert_lock |
; ModuleID = 'AnghaBench/linux/tools/lib/traceevent/extr_parse-filter.c_tep_filter_add_filter_str.c'
source_filename = "AnghaBench/linux/tools/lib/traceevent/extr_parse-filter.c_tep_filter_add_filter_str.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.tep_event_filter = type { i32, ptr }
%struct.TYPE_2__ = type { ptr, i32 }
%struct.event_list = type { ptr, ptr }
@TEP_ERRNO__MEM_ALLOC_FAILED = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@TEP_ERRNO__FILTER_NOT_FOUND = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c" '%s: %s'\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @tep_filter_add_filter_str(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = getelementptr inbounds %struct.tep_event_filter, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
store ptr null, ptr %3, align 8, !tbaa !11
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
%7 = tail call i32 @filter_init_error_buf(ptr noundef %0) #4
%8 = tail call ptr @strchr(ptr noundef %1, i8 noundef signext 58) #4
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 @strlen(ptr noundef %1) #4
br label %12
12: ; preds = %2, %10
%13 = ptrtoint ptr %8 to i64
br label %14
14: ; preds = %64, %12
%15 = phi ptr [ %1, %12 ], [ %46, %64 ]
%16 = call ptr @strchr(ptr noundef %15, i8 noundef signext 44) #4
%17 = icmp ne ptr %16, null
%18 = icmp ult ptr %16, %8
%19 = or i1 %9, %18
%20 = and i1 %17, %19
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = ptrtoint ptr %16 to i64
%23 = ptrtoint ptr %15 to i64
%24 = sub i64 %22, %23
%25 = trunc i64 %24 to i32
br label %33
26: ; preds = %14
br i1 %9, label %31, label %27
27: ; preds = %26
%28 = ptrtoint ptr %15 to i64
%29 = sub i64 %13, %28
%30 = trunc i64 %29 to i32
br label %33
31: ; preds = %26
%32 = call i32 @strlen(ptr noundef %15) #4
br label %33
33: ; preds = %27, %31, %21
%34 = phi i32 [ %25, %21 ], [ %30, %27 ], [ %32, %31 ]
%35 = add nsw i32 %34, 1
%36 = call ptr @malloc(i32 noundef %35) #4
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %42
38: ; preds = %33
%39 = load ptr, ptr %3, align 8, !tbaa !11
%40 = call i32 @free_events(ptr noundef %39) #4
%41 = load i32, ptr @TEP_ERRNO__MEM_ALLOC_FAILED, align 4, !tbaa !12
br label %104
42: ; preds = %33
%43 = call i32 @memcpy(ptr noundef nonnull %36, ptr noundef %15, i32 noundef %34) #4
%44 = sext i32 %34 to i64
%45 = getelementptr inbounds i8, ptr %36, i64 %44
store i8 0, ptr %45, align 1, !tbaa !13
%46 = getelementptr inbounds i8, ptr %16, i64 1
%47 = call ptr @strtok_r(ptr noundef nonnull %36, ptr noundef nonnull @.str, ptr noundef nonnull %4)
%48 = call ptr @strtok_r(ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull %4)
%49 = icmp eq ptr %47, null
br i1 %49, label %50, label %55
50: ; preds = %42
%51 = load ptr, ptr %3, align 8, !tbaa !11
%52 = call i32 @free_events(ptr noundef %51) #4
%53 = call i32 @free(ptr noundef nonnull %36) #4
%54 = load i32, ptr @TEP_ERRNO__FILTER_NOT_FOUND, align 4, !tbaa !12
br label %104
55: ; preds = %42
%56 = call i32 @strim(ptr noundef nonnull %47) #4
%57 = call i32 @strim(ptr noundef %48) #4
%58 = call i32 @find_event(ptr noundef %6, ptr noundef nonnull %3, i32 noundef %56, i32 noundef %57) #4
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %55
%61 = load ptr, ptr %3, align 8, !tbaa !11
%62 = call i32 @free_events(ptr noundef %61) #4
%63 = call i32 @free(ptr noundef nonnull %36) #4
br label %104
64: ; preds = %55
%65 = call i32 @free(ptr noundef nonnull %36) #4
br i1 %17, label %14, label %66, !llvm.loop !14
66: ; preds = %64
%67 = getelementptr inbounds i8, ptr %8, i64 1
%68 = select i1 %9, ptr null, ptr %67
%69 = load ptr, ptr %3, align 8, !tbaa !11
%70 = icmp eq ptr %69, null
br i1 %70, label %100, label %71
71: ; preds = %66, %94
%72 = phi ptr [ %96, %94 ], [ %69, %66 ]
%73 = phi i32 [ %78, %94 ], [ 0, %66 ]
%74 = load ptr, ptr %72, align 8, !tbaa !16
%75 = load i32, ptr %0, align 8, !tbaa !18
%76 = call i32 @filter_event(ptr noundef nonnull %0, ptr noundef %74, ptr noundef %68, i32 noundef %75) #4
%77 = icmp slt i32 %76, 0
%78 = select i1 %77, i32 %76, i32 %73
%79 = icmp sgt i32 %76, -1
br i1 %79, label %80, label %94
80: ; preds = %71
%81 = load i64, ptr %6, align 8, !tbaa !19
%82 = icmp eq i64 %81, 0
br i1 %82, label %94, label %83
83: ; preds = %80
%84 = load ptr, ptr %72, align 8, !tbaa !16
%85 = getelementptr inbounds %struct.TYPE_2__, ptr %84, i64 0, i32 1
%86 = load i32, ptr %85, align 8, !tbaa !22
%87 = call ptr @tep_filter_make_string(ptr noundef nonnull %0, i32 noundef %86) #4
%88 = icmp eq ptr %87, null
br i1 %88, label %94, label %89
89: ; preds = %83
%90 = load ptr, ptr %72, align 8, !tbaa !16
%91 = load ptr, ptr %90, align 8, !tbaa !24
%92 = call i32 @printf(ptr noundef nonnull @.str.1, ptr noundef %91, ptr noundef nonnull %87) #4
%93 = call i32 @free(ptr noundef nonnull %87) #4
br label %94
94: ; preds = %83, %89, %71, %80
%95 = getelementptr inbounds %struct.event_list, ptr %72, i64 0, i32 1
%96 = load ptr, ptr %95, align 8, !tbaa !11
%97 = icmp eq ptr %96, null
br i1 %97, label %98, label %71, !llvm.loop !25
98: ; preds = %94
%99 = load ptr, ptr %3, align 8, !tbaa !11
br label %100
100: ; preds = %98, %66
%101 = phi ptr [ null, %66 ], [ %99, %98 ]
%102 = phi i32 [ 0, %66 ], [ %78, %98 ]
%103 = call i32 @free_events(ptr noundef %101) #4
br label %104
104: ; preds = %100, %60, %50, %38
%105 = phi i32 [ %41, %38 ], [ %58, %60 ], [ %102, %100 ], [ %54, %50 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
ret i32 %105
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @filter_init_error_buf(ptr noundef) local_unnamed_addr #2
declare ptr @strchr(ptr noundef, i8 noundef signext) local_unnamed_addr #2
declare i32 @strlen(ptr noundef) local_unnamed_addr #2
declare ptr @malloc(i32 noundef) local_unnamed_addr #2
declare i32 @free_events(ptr noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok_r(ptr noundef, ptr nocapture noundef readonly, ptr noundef) local_unnamed_addr #3
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @find_event(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strim(ptr noundef) local_unnamed_addr #2
declare i32 @filter_event(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @tep_filter_make_string(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"tep_event_filter", !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 = !{!10, !10, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 0}
!17 = !{!"event_list", !10, i64 0, !10, i64 8}
!18 = !{!6, !7, i64 0}
!19 = !{!20, !21, i64 0}
!20 = !{!"tep_handle", !21, i64 0}
!21 = !{!"long", !8, i64 0}
!22 = !{!23, !7, i64 8}
!23 = !{!"TYPE_2__", !10, i64 0, !7, i64 8}
!24 = !{!23, !10, i64 0}
!25 = distinct !{!25, !15}
| ; ModuleID = 'AnghaBench/linux/tools/lib/traceevent/extr_parse-filter.c_tep_filter_add_filter_str.c'
source_filename = "AnghaBench/linux/tools/lib/traceevent/extr_parse-filter.c_tep_filter_add_filter_str.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TEP_ERRNO__MEM_ALLOC_FAILED = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@TEP_ERRNO__FILTER_NOT_FOUND = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [11 x i8] c" '%s: %s'\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @tep_filter_add_filter_str(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
store ptr null, ptr %3, align 8, !tbaa !12
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
%7 = tail call i32 @filter_init_error_buf(ptr noundef %0) #4
%8 = tail call ptr @strchr(ptr noundef %1, i8 noundef signext 58) #4
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 @strlen(ptr noundef %1) #4
br label %12
12: ; preds = %2, %10
%13 = ptrtoint ptr %8 to i64
br label %14
14: ; preds = %64, %12
%15 = phi ptr [ %1, %12 ], [ %46, %64 ]
%16 = call ptr @strchr(ptr noundef %15, i8 noundef signext 44) #4
%17 = icmp ne ptr %16, null
%18 = icmp ult ptr %16, %8
%19 = or i1 %9, %18
%20 = and i1 %17, %19
br i1 %20, label %21, label %26
21: ; preds = %14
%22 = ptrtoint ptr %16 to i64
%23 = ptrtoint ptr %15 to i64
%24 = sub i64 %22, %23
%25 = trunc i64 %24 to i32
br label %33
26: ; preds = %14
br i1 %9, label %31, label %27
27: ; preds = %26
%28 = ptrtoint ptr %15 to i64
%29 = sub i64 %13, %28
%30 = trunc i64 %29 to i32
br label %33
31: ; preds = %26
%32 = call i32 @strlen(ptr noundef %15) #4
br label %33
33: ; preds = %27, %31, %21
%34 = phi i32 [ %25, %21 ], [ %30, %27 ], [ %32, %31 ]
%35 = add nsw i32 %34, 1
%36 = call ptr @malloc(i32 noundef %35) #4
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %42
38: ; preds = %33
%39 = load ptr, ptr %3, align 8, !tbaa !12
%40 = call i32 @free_events(ptr noundef %39) #4
%41 = load i32, ptr @TEP_ERRNO__MEM_ALLOC_FAILED, align 4, !tbaa !13
br label %104
42: ; preds = %33
%43 = call i32 @memcpy(ptr noundef nonnull %36, ptr noundef %15, i32 noundef %34) #4
%44 = sext i32 %34 to i64
%45 = getelementptr inbounds i8, ptr %36, i64 %44
store i8 0, ptr %45, align 1, !tbaa !14
%46 = getelementptr inbounds i8, ptr %16, i64 1
%47 = call ptr @strtok_r(ptr noundef nonnull %36, ptr noundef nonnull @.str, ptr noundef nonnull %4)
%48 = call ptr @strtok_r(ptr noundef null, ptr noundef nonnull @.str, ptr noundef nonnull %4)
%49 = icmp eq ptr %47, null
br i1 %49, label %50, label %55
50: ; preds = %42
%51 = load ptr, ptr %3, align 8, !tbaa !12
%52 = call i32 @free_events(ptr noundef %51) #4
%53 = call i32 @free(ptr noundef nonnull %36) #4
%54 = load i32, ptr @TEP_ERRNO__FILTER_NOT_FOUND, align 4, !tbaa !13
br label %104
55: ; preds = %42
%56 = call i32 @strim(ptr noundef nonnull %47) #4
%57 = call i32 @strim(ptr noundef %48) #4
%58 = call i32 @find_event(ptr noundef %6, ptr noundef nonnull %3, i32 noundef %56, i32 noundef %57) #4
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %55
%61 = load ptr, ptr %3, align 8, !tbaa !12
%62 = call i32 @free_events(ptr noundef %61) #4
%63 = call i32 @free(ptr noundef nonnull %36) #4
br label %104
64: ; preds = %55
%65 = call i32 @free(ptr noundef nonnull %36) #4
br i1 %17, label %14, label %66, !llvm.loop !15
66: ; preds = %64
%67 = getelementptr inbounds i8, ptr %8, i64 1
%68 = select i1 %9, ptr null, ptr %67
%69 = load ptr, ptr %3, align 8, !tbaa !12
%70 = icmp eq ptr %69, null
br i1 %70, label %100, label %71
71: ; preds = %66, %94
%72 = phi ptr [ %96, %94 ], [ %69, %66 ]
%73 = phi i32 [ %78, %94 ], [ 0, %66 ]
%74 = load ptr, ptr %72, align 8, !tbaa !17
%75 = load i32, ptr %0, align 8, !tbaa !19
%76 = call i32 @filter_event(ptr noundef nonnull %0, ptr noundef %74, ptr noundef %68, i32 noundef %75) #4
%77 = icmp slt i32 %76, 0
%78 = select i1 %77, i32 %76, i32 %73
%79 = icmp sgt i32 %76, -1
br i1 %79, label %80, label %94
80: ; preds = %71
%81 = load i64, ptr %6, align 8, !tbaa !20
%82 = icmp eq i64 %81, 0
br i1 %82, label %94, label %83
83: ; preds = %80
%84 = load ptr, ptr %72, align 8, !tbaa !17
%85 = getelementptr inbounds i8, ptr %84, i64 8
%86 = load i32, ptr %85, align 8, !tbaa !23
%87 = call ptr @tep_filter_make_string(ptr noundef nonnull %0, i32 noundef %86) #4
%88 = icmp eq ptr %87, null
br i1 %88, label %94, label %89
89: ; preds = %83
%90 = load ptr, ptr %72, align 8, !tbaa !17
%91 = load ptr, ptr %90, align 8, !tbaa !25
%92 = call i32 @printf(ptr noundef nonnull @.str.1, ptr noundef %91, ptr noundef nonnull %87) #4
%93 = call i32 @free(ptr noundef nonnull %87) #4
br label %94
94: ; preds = %83, %89, %71, %80
%95 = getelementptr inbounds i8, ptr %72, i64 8
%96 = load ptr, ptr %95, align 8, !tbaa !12
%97 = icmp eq ptr %96, null
br i1 %97, label %98, label %71, !llvm.loop !26
98: ; preds = %94
%99 = load ptr, ptr %3, align 8, !tbaa !12
br label %100
100: ; preds = %98, %66
%101 = phi ptr [ null, %66 ], [ %99, %98 ]
%102 = phi i32 [ 0, %66 ], [ %78, %98 ]
%103 = call i32 @free_events(ptr noundef %101) #4
br label %104
104: ; preds = %100, %60, %50, %38
%105 = phi i32 [ %41, %38 ], [ %58, %60 ], [ %102, %100 ], [ %54, %50 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
ret i32 %105
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @filter_init_error_buf(ptr noundef) local_unnamed_addr #2
declare ptr @strchr(ptr noundef, i8 noundef signext) local_unnamed_addr #2
declare i32 @strlen(ptr noundef) local_unnamed_addr #2
declare ptr @malloc(i32 noundef) local_unnamed_addr #2
declare i32 @free_events(ptr noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok_r(ptr noundef, ptr nocapture noundef readonly, ptr noundef) local_unnamed_addr #3
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @find_event(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strim(ptr noundef) local_unnamed_addr #2
declare i32 @filter_event(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @tep_filter_make_string(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { mustprogress nofree nounwind willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"tep_event_filter", !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 = !{!11, !11, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!9, !9, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !11, i64 0}
!18 = !{!"event_list", !11, i64 0, !11, i64 8}
!19 = !{!7, !8, i64 0}
!20 = !{!21, !22, i64 0}
!21 = !{!"tep_handle", !22, i64 0}
!22 = !{!"long", !9, i64 0}
!23 = !{!24, !8, i64 8}
!24 = !{!"TYPE_2__", !11, i64 0, !8, i64 8}
!25 = !{!24, !11, i64 0}
!26 = distinct !{!26, !16}
| linux_tools_lib_traceevent_extr_parse-filter.c_tep_filter_add_filter_str |
; ModuleID = 'AnghaBench/freebsd/contrib/byacc/test/yacc/extr_grammar.tab.c_init_parser.c'
source_filename = "AnghaBench/freebsd/contrib/byacc/test/yacc/extr_grammar.tab.c_init_parser.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"const\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"restrict\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"volatile\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"interrupt\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"__builtin_va_arg\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"__builtin_va_list\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"__const\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"__const__\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"__inline\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"__inline__\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"__restrict\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"__restrict__\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"__volatile\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"__volatile__\00", align 1
@type_qualifiers = dso_local local_unnamed_addr global i32 0, align 4
@DS_NONE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @init_parser() local_unnamed_addr #0 {
%1 = tail call i32 (...) @new_symbol_table() #2
store i32 %1, ptr @type_qualifiers, align 4, !tbaa !5
%2 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%3 = tail call i32 @new_symbol(i32 noundef %1, ptr noundef nonnull @.str, ptr noundef null, i32 noundef %2) #2
%4 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%5 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%6 = tail call i32 @new_symbol(i32 noundef %4, ptr noundef nonnull @.str.1, ptr noundef null, i32 noundef %5) #2
%7 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%8 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%9 = tail call i32 @new_symbol(i32 noundef %7, ptr noundef nonnull @.str.2, ptr noundef null, i32 noundef %8) #2
%10 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%11 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%12 = tail call i32 @new_symbol(i32 noundef %10, ptr noundef nonnull @.str.3, ptr noundef null, i32 noundef %11) #2
%13 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%14 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%15 = tail call i32 @new_symbol(i32 noundef %13, ptr noundef nonnull @.str.4, ptr noundef null, i32 noundef %14) #2
%16 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%17 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%18 = tail call i32 @new_symbol(i32 noundef %16, ptr noundef nonnull @.str.5, ptr noundef null, i32 noundef %17) #2
%19 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%20 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%21 = tail call i32 @new_symbol(i32 noundef %19, ptr noundef nonnull @.str.6, ptr noundef null, i32 noundef %20) #2
%22 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%23 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%24 = tail call i32 @new_symbol(i32 noundef %22, ptr noundef nonnull @.str.7, ptr noundef null, i32 noundef %23) #2
%25 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%26 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%27 = tail call i32 @new_symbol(i32 noundef %25, ptr noundef nonnull @.str.8, ptr noundef null, i32 noundef %26) #2
%28 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%29 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%30 = tail call i32 @new_symbol(i32 noundef %28, ptr noundef nonnull @.str.9, ptr noundef null, i32 noundef %29) #2
%31 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%32 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%33 = tail call i32 @new_symbol(i32 noundef %31, ptr noundef nonnull @.str.10, ptr noundef null, i32 noundef %32) #2
%34 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%35 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%36 = tail call i32 @new_symbol(i32 noundef %34, ptr noundef nonnull @.str.11, ptr noundef null, i32 noundef %35) #2
%37 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%38 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%39 = tail call i32 @new_symbol(i32 noundef %37, ptr noundef nonnull @.str.12, ptr noundef null, i32 noundef %38) #2
%40 = load i32, ptr @type_qualifiers, align 4, !tbaa !5
%41 = load i32, ptr @DS_NONE, align 4, !tbaa !5
%42 = tail call i32 @new_symbol(i32 noundef %40, ptr noundef nonnull @.str.13, ptr noundef null, i32 noundef %41) #2
ret void
}
declare i32 @new_symbol_table(...) local_unnamed_addr #1
declare i32 @new_symbol(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/byacc/test/yacc/extr_grammar.tab.c_init_parser.c'
source_filename = "AnghaBench/freebsd/contrib/byacc/test/yacc/extr_grammar.tab.c_init_parser.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [6 x i8] c"const\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"restrict\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"volatile\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"interrupt\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"__builtin_va_arg\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"__builtin_va_list\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"__const\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"__const__\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"__inline\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"__inline__\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"__restrict\00", align 1
@.str.11 = private unnamed_addr constant [13 x i8] c"__restrict__\00", align 1
@.str.12 = private unnamed_addr constant [11 x i8] c"__volatile\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"__volatile__\00", align 1
@type_qualifiers = common local_unnamed_addr global i32 0, align 4
@DS_NONE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @init_parser() local_unnamed_addr #0 {
%1 = tail call i32 @new_symbol_table() #2
store i32 %1, ptr @type_qualifiers, align 4, !tbaa !6
%2 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%3 = tail call i32 @new_symbol(i32 noundef %1, ptr noundef nonnull @.str, ptr noundef null, i32 noundef %2) #2
%4 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%5 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%6 = tail call i32 @new_symbol(i32 noundef %4, ptr noundef nonnull @.str.1, ptr noundef null, i32 noundef %5) #2
%7 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%8 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%9 = tail call i32 @new_symbol(i32 noundef %7, ptr noundef nonnull @.str.2, ptr noundef null, i32 noundef %8) #2
%10 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%11 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%12 = tail call i32 @new_symbol(i32 noundef %10, ptr noundef nonnull @.str.3, ptr noundef null, i32 noundef %11) #2
%13 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%14 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%15 = tail call i32 @new_symbol(i32 noundef %13, ptr noundef nonnull @.str.4, ptr noundef null, i32 noundef %14) #2
%16 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%17 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%18 = tail call i32 @new_symbol(i32 noundef %16, ptr noundef nonnull @.str.5, ptr noundef null, i32 noundef %17) #2
%19 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%20 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%21 = tail call i32 @new_symbol(i32 noundef %19, ptr noundef nonnull @.str.6, ptr noundef null, i32 noundef %20) #2
%22 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%23 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%24 = tail call i32 @new_symbol(i32 noundef %22, ptr noundef nonnull @.str.7, ptr noundef null, i32 noundef %23) #2
%25 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%26 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%27 = tail call i32 @new_symbol(i32 noundef %25, ptr noundef nonnull @.str.8, ptr noundef null, i32 noundef %26) #2
%28 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%29 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%30 = tail call i32 @new_symbol(i32 noundef %28, ptr noundef nonnull @.str.9, ptr noundef null, i32 noundef %29) #2
%31 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%32 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%33 = tail call i32 @new_symbol(i32 noundef %31, ptr noundef nonnull @.str.10, ptr noundef null, i32 noundef %32) #2
%34 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%35 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%36 = tail call i32 @new_symbol(i32 noundef %34, ptr noundef nonnull @.str.11, ptr noundef null, i32 noundef %35) #2
%37 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%38 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%39 = tail call i32 @new_symbol(i32 noundef %37, ptr noundef nonnull @.str.12, ptr noundef null, i32 noundef %38) #2
%40 = load i32, ptr @type_qualifiers, align 4, !tbaa !6
%41 = load i32, ptr @DS_NONE, align 4, !tbaa !6
%42 = tail call i32 @new_symbol(i32 noundef %40, ptr noundef nonnull @.str.13, ptr noundef null, i32 noundef %41) #2
ret void
}
declare i32 @new_symbol_table(...) local_unnamed_addr #1
declare i32 @new_symbol(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_byacc_test_yacc_extr_grammar.tab.c_init_parser |
; ModuleID = 'AnghaBench/linux/drivers/usb/misc/extr_ftdi-elan.c_ftdi_elan_read_reg.c'
source_filename = "AnghaBench/linux/drivers/usb/misc/extr_ftdi-elan.c_ftdi_elan_read_reg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.usb_ftdi = type { i64, i32, i32, i32, i32, i32, ptr, ptr }
%struct.u132_command = type { i32, i32, i32, ptr, i64, i64, i32 }
%struct.u132_respond = type { ptr, i32, i32, ptr, i32 }
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@COMMAND_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@RESPOND_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@COMMAND_MASK = dso_local local_unnamed_addr global i64 0, align 8
@RESPOND_MASK = dso_local local_unnamed_addr global i64 0, align 8
@cPCIu132rd = dso_local local_unnamed_addr global i32 0, align 4
@cU132cmd_status = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ftdi_elan_read_reg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ftdi_elan_read_reg(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = icmp sgt i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %2
%7 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 5
%8 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 1
%9 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 2
%10 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 3
%11 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 4
br label %15
12: ; preds = %62, %2
%13 = load i32, ptr @ENODEV, align 4, !tbaa !12
%14 = sub nsw i32 0, %13
br label %67
15: ; preds = %6, %62
%16 = tail call i32 @mutex_lock(ptr noundef nonnull %7) #4
%17 = load i32, ptr %8, align 8, !tbaa !13
%18 = load i32, ptr %9, align 4, !tbaa !14
%19 = sub nsw i32 %17, %18
%20 = load i32, ptr @COMMAND_SIZE, align 4, !tbaa !12
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %62
22: ; preds = %15
%23 = load i32, ptr %10, align 8, !tbaa !15
%24 = load i32, ptr %11, align 4, !tbaa !16
%25 = sub nsw i32 %23, %24
%26 = load i32, ptr @RESPOND_SIZE, align 4, !tbaa !12
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %62
28: ; preds = %22
%29 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 7
%30 = load ptr, ptr %29, align 8, !tbaa !17
%31 = load i64, ptr @COMMAND_MASK, align 8, !tbaa !18
%32 = sext i32 %17 to i64
%33 = and i64 %31, %32
%34 = getelementptr inbounds %struct.u132_command, ptr %30, i64 %33
%35 = getelementptr inbounds %struct.usb_ftdi, ptr %0, i64 0, i32 6
%36 = load ptr, ptr %35, align 8, !tbaa !19
%37 = load i64, ptr @RESPOND_MASK, align 8, !tbaa !18
%38 = sext i32 %23 to i64
%39 = and i64 %37, %38
%40 = getelementptr inbounds %struct.u132_respond, ptr %36, i64 %39
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
%41 = load i32, ptr @ENODEV, align 4, !tbaa !12
%42 = sub nsw i32 0, %41
store i32 %42, ptr %3, align 4, !tbaa !12
store ptr %3, ptr %40, align 8, !tbaa !20
%43 = load i32, ptr @cPCIu132rd, align 4, !tbaa !12
store i32 %43, ptr %34, align 8, !tbaa !22
%44 = getelementptr inbounds %struct.u132_respond, ptr %36, i64 %39, i32 1
store i32 %43, ptr %44, align 8, !tbaa !24
%45 = getelementptr inbounds %struct.u132_command, ptr %30, i64 %33, i32 1
store i32 4, ptr %45, align 4, !tbaa !25
%46 = load i32, ptr @cU132cmd_status, align 4, !tbaa !12
%47 = getelementptr inbounds %struct.u132_command, ptr %30, i64 %33, i32 6
store i32 %46, ptr %47, align 8, !tbaa !26
%48 = getelementptr inbounds %struct.u132_respond, ptr %36, i64 %39, i32 4
store i32 %46, ptr %48, align 8, !tbaa !27
%49 = getelementptr inbounds %struct.u132_command, ptr %30, i64 %33, i32 2
store i32 0, ptr %49, align 8, !tbaa !28
%50 = getelementptr inbounds %struct.u132_command, ptr %30, i64 %33, i32 3
%51 = getelementptr inbounds %struct.u132_respond, ptr %36, i64 %39, i32 3
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %50, i8 0, i64 24, i1 false)
store ptr %1, ptr %51, align 8, !tbaa !29
%52 = getelementptr inbounds %struct.u132_respond, ptr %36, i64 %39, i32 2
%53 = call i32 @init_completion(ptr noundef nonnull %52) #4
%54 = load i32, ptr %8, align 8, !tbaa !13
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 8, !tbaa !13
%56 = load i32, ptr %10, align 8, !tbaa !15
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 8, !tbaa !15
%58 = call i32 @ftdi_elan_kick_command_queue(ptr noundef nonnull %0) #4
%59 = call i32 @mutex_unlock(ptr noundef nonnull %7) #4
%60 = call i32 @wait_for_completion(ptr noundef nonnull %52) #4
%61 = load i32, ptr %3, align 4, !tbaa !12
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
br label %67
62: ; preds = %15, %22
%63 = tail call i32 @mutex_unlock(ptr noundef nonnull %7) #4
%64 = tail call i32 @msleep(i32 noundef 100) #4
%65 = load i64, ptr %0, align 8, !tbaa !5
%66 = icmp sgt i64 %65, 0
br i1 %66, label %12, label %15
67: ; preds = %28, %12
%68 = phi i32 [ %14, %12 ], [ %61, %28 ]
ret i32 %68
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #2
declare i32 @init_completion(ptr noundef) local_unnamed_addr #2
declare i32 @ftdi_elan_kick_command_queue(ptr noundef) local_unnamed_addr #2
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #2
declare i32 @wait_for_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 @msleep(i32 noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"usb_ftdi", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !11, i64 32, !11, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !10, i64 12}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !10, i64 20}
!17 = !{!6, !11, i64 40}
!18 = !{!7, !7, i64 0}
!19 = !{!6, !11, i64 32}
!20 = !{!21, !11, i64 0}
!21 = !{!"u132_respond", !11, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !10, i64 24}
!22 = !{!23, !10, i64 0}
!23 = !{!"u132_command", !10, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !7, i64 24, !7, i64 32, !10, i64 40}
!24 = !{!21, !10, i64 8}
!25 = !{!23, !10, i64 4}
!26 = !{!23, !10, i64 40}
!27 = !{!21, !10, i64 24}
!28 = !{!23, !10, i64 8}
!29 = !{!21, !11, i64 16}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/misc/extr_ftdi-elan.c_ftdi_elan_read_reg.c'
source_filename = "AnghaBench/linux/drivers/usb/misc/extr_ftdi-elan.c_ftdi_elan_read_reg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.u132_command = type { i32, i32, i32, ptr, i64, i64, i32 }
%struct.u132_respond = type { ptr, i32, i32, ptr, i32 }
@ENODEV = common local_unnamed_addr global i32 0, align 4
@COMMAND_SIZE = common local_unnamed_addr global i32 0, align 4
@RESPOND_SIZE = common local_unnamed_addr global i32 0, align 4
@COMMAND_MASK = common local_unnamed_addr global i64 0, align 8
@RESPOND_MASK = common local_unnamed_addr global i64 0, align 8
@cPCIu132rd = common local_unnamed_addr global i32 0, align 4
@cU132cmd_status = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ftdi_elan_read_reg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ftdi_elan_read_reg(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = icmp sgt i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %0, i64 24
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = getelementptr inbounds i8, ptr %0, i64 12
%10 = getelementptr inbounds i8, ptr %0, i64 16
%11 = getelementptr inbounds i8, ptr %0, i64 20
br label %15
12: ; preds = %62, %2
%13 = load i32, ptr @ENODEV, align 4, !tbaa !13
%14 = sub nsw i32 0, %13
br label %67
15: ; preds = %6, %62
%16 = tail call i32 @mutex_lock(ptr noundef nonnull %7) #4
%17 = load i32, ptr %8, align 8, !tbaa !14
%18 = load i32, ptr %9, align 4, !tbaa !15
%19 = sub nsw i32 %17, %18
%20 = load i32, ptr @COMMAND_SIZE, align 4, !tbaa !13
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %62
22: ; preds = %15
%23 = load i32, ptr %10, align 8, !tbaa !16
%24 = load i32, ptr %11, align 4, !tbaa !17
%25 = sub nsw i32 %23, %24
%26 = load i32, ptr @RESPOND_SIZE, align 4, !tbaa !13
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %62
28: ; preds = %22
%29 = getelementptr inbounds i8, ptr %0, i64 40
%30 = load ptr, ptr %29, align 8, !tbaa !18
%31 = load i64, ptr @COMMAND_MASK, align 8, !tbaa !19
%32 = sext i32 %17 to i64
%33 = and i64 %31, %32
%34 = getelementptr inbounds %struct.u132_command, ptr %30, i64 %33
%35 = getelementptr inbounds i8, ptr %0, i64 32
%36 = load ptr, ptr %35, align 8, !tbaa !20
%37 = load i64, ptr @RESPOND_MASK, align 8, !tbaa !19
%38 = sext i32 %23 to i64
%39 = and i64 %37, %38
%40 = getelementptr inbounds %struct.u132_respond, ptr %36, i64 %39
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
%41 = load i32, ptr @ENODEV, align 4, !tbaa !13
%42 = sub nsw i32 0, %41
store i32 %42, ptr %3, align 4, !tbaa !13
store ptr %3, ptr %40, align 8, !tbaa !21
%43 = load i32, ptr @cPCIu132rd, align 4, !tbaa !13
store i32 %43, ptr %34, align 8, !tbaa !23
%44 = getelementptr inbounds i8, ptr %40, i64 8
store i32 %43, ptr %44, align 8, !tbaa !25
%45 = getelementptr inbounds i8, ptr %34, i64 4
store i32 4, ptr %45, align 4, !tbaa !26
%46 = load i32, ptr @cU132cmd_status, align 4, !tbaa !13
%47 = getelementptr inbounds i8, ptr %34, i64 40
store i32 %46, ptr %47, align 8, !tbaa !27
%48 = getelementptr inbounds i8, ptr %40, i64 24
store i32 %46, ptr %48, align 8, !tbaa !28
%49 = getelementptr inbounds i8, ptr %34, i64 8
store i32 0, ptr %49, align 8, !tbaa !29
%50 = getelementptr inbounds i8, ptr %34, i64 16
%51 = getelementptr inbounds i8, ptr %40, i64 16
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %50, i8 0, i64 24, i1 false)
store ptr %1, ptr %51, align 8, !tbaa !30
%52 = getelementptr inbounds i8, ptr %40, i64 12
%53 = call i32 @init_completion(ptr noundef nonnull %52) #4
%54 = load i32, ptr %8, align 8, !tbaa !14
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 8, !tbaa !14
%56 = load i32, ptr %10, align 8, !tbaa !16
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 8, !tbaa !16
%58 = call i32 @ftdi_elan_kick_command_queue(ptr noundef nonnull %0) #4
%59 = call i32 @mutex_unlock(ptr noundef nonnull %7) #4
%60 = call i32 @wait_for_completion(ptr noundef nonnull %52) #4
%61 = load i32, ptr %3, align 4, !tbaa !13
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
br label %67
62: ; preds = %15, %22
%63 = tail call i32 @mutex_unlock(ptr noundef nonnull %7) #4
%64 = tail call i32 @msleep(i32 noundef 100) #4
%65 = load i64, ptr %0, align 8, !tbaa !6
%66 = icmp sgt i64 %65, 0
br i1 %66, label %12, label %15
67: ; preds = %28, %12
%68 = phi i32 [ %14, %12 ], [ %61, %28 ]
ret i32 %68
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #2
declare i32 @init_completion(ptr noundef) local_unnamed_addr #2
declare i32 @ftdi_elan_kick_command_queue(ptr noundef) local_unnamed_addr #2
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #2
declare i32 @wait_for_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 @msleep(i32 noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"usb_ftdi", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 32, !12, i64 40}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!7, !11, i64 12}
!16 = !{!7, !11, i64 16}
!17 = !{!7, !11, i64 20}
!18 = !{!7, !12, i64 40}
!19 = !{!8, !8, i64 0}
!20 = !{!7, !12, i64 32}
!21 = !{!22, !12, i64 0}
!22 = !{!"u132_respond", !12, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !11, i64 24}
!23 = !{!24, !11, i64 0}
!24 = !{!"u132_command", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !8, i64 24, !8, i64 32, !11, i64 40}
!25 = !{!22, !11, i64 8}
!26 = !{!24, !11, i64 4}
!27 = !{!24, !11, i64 40}
!28 = !{!22, !11, i64 24}
!29 = !{!24, !11, i64 8}
!30 = !{!22, !12, i64 16}
| linux_drivers_usb_misc_extr_ftdi-elan.c_ftdi_elan_read_reg |
; ModuleID = 'AnghaBench/freebsd/sys/dev/mpt/extr_mpt_pci.c_mpt_pci_attach.c'
source_filename = "AnghaBench/freebsd/sys/dev/mpt/extr_mpt_pci.c_mpt_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.mpt_softc = type { i32, i32, i32, i32, i64, i64, ptr, i32, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32 }
@MPT_RAID_RESYNC_RATE_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@MPT_RAID_MWCE_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@MPT_RAID_QUEUE_DEPTH_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@MPT_PRT_NONE = dso_local local_unnamed_addr global i64 0, align 8
@MPT_ROLE_NONE = dso_local local_unnamed_addr global i32 0, align 4
@MPT_INI_ID_NONE = dso_local local_unnamed_addr global i32 0, align 4
@MPT_PRT_WARN = dso_local local_unnamed_addr global i64 0, align 8
@bootverbose = dso_local local_unnamed_addr global i64 0, align 8
@PCIR_COMMAND = dso_local local_unnamed_addr global i32 0, align 4
@PCIM_CMD_SERRESPEN = dso_local local_unnamed_addr global i32 0, align 4
@PCIM_CMD_PERRESPEN = dso_local local_unnamed_addr global i32 0, align 4
@PCIM_CMD_BUSMASTEREN = dso_local local_unnamed_addr global i32 0, align 4
@PCIM_CMD_MWRICEN = dso_local local_unnamed_addr global i32 0, align 4
@PCIR_BIOS = dso_local local_unnamed_addr global i32 0, align 4
@PCIM_BIOS_ENABLE = dso_local local_unnamed_addr global i32 0, align 4
@SYS_RES_IOPORT = dso_local local_unnamed_addr global i32 0, align 4
@RF_ACTIVE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"unable to map registers in PIO mode\0A\00", align 1
@SYS_RES_MEMORY = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"Unable to memory map registers.\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Giving Up.\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Falling back to PIO mode.\0A\00", align 1
@SYS_RES_IRQ = dso_local local_unnamed_addr global i32 0, align 4
@RF_SHAREABLE = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [30 x i8] c"could not allocate interrupt\0A\00", align 1
@MPT_IFLAGS = dso_local local_unnamed_addr global i32 0, align 4
@mpt_pci_intr = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [27 x i8] c"could not setup interrupt\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"Could not allocate DMA memory\0A\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"device disabled at user request\0A\00", align 1
@shutdown_post_sync = dso_local local_unnamed_addr global i32 0, align 4
@mpt_pci_shutdown = dso_local local_unnamed_addr global i32 0, align 4
@SHUTDOWN_PRI_LAST = dso_local local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [36 x i8] c"shutdown event registration failed\0A\00", align 1
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mpt_pci_attach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @mpt_pci_attach(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = tail call i64 @device_get_softc(i32 noundef %0) #3
%7 = inttoptr i64 %6 to ptr
%8 = tail call i32 @pci_get_device(i32 noundef %0) #3
switch i32 %8, label %14 [
i32 151, label %9
i32 152, label %9
i32 150, label %9
i32 147, label %9
i32 146, label %9
i32 143, label %9
i32 145, label %9
i32 144, label %9
i32 149, label %9
i32 148, label %9
i32 142, label %9
i32 141, label %9
i32 129, label %10
i32 128, label %10
i32 138, label %12
i32 137, label %12
i32 136, label %12
i32 135, label %12
i32 134, label %12
i32 133, label %12
i32 132, label %12
i32 131, label %12
i32 130, label %12
]
9: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 1, ptr %7, align 8, !tbaa !5
br label %16
10: ; preds = %1, %1
%11 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 1
store i32 1, ptr %11, align 4, !tbaa !12
br label %12
12: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %10
%13 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 2
store i32 1, ptr %13, align 8, !tbaa !13
br label %16
14: ; preds = %1
%15 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 3
store i32 1, ptr %15, align 4, !tbaa !14
br label %16
16: ; preds = %14, %12, %9
%17 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 22
store i32 %0, ptr %17, align 8, !tbaa !15
%18 = tail call i32 @device_get_unit(i32 noundef %0) #3
%19 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 21
store i32 %18, ptr %19, align 4, !tbaa !16
%20 = load i32, ptr @MPT_RAID_RESYNC_RATE_DEFAULT, align 4, !tbaa !17
%21 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 20
store i32 %20, ptr %21, align 8, !tbaa !18
%22 = load i32, ptr @MPT_RAID_MWCE_DEFAULT, align 4, !tbaa !17
%23 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 19
store i32 %22, ptr %23, align 4, !tbaa !19
%24 = load i32, ptr @MPT_RAID_QUEUE_DEPTH_DEFAULT, align 4, !tbaa !17
%25 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 18
store i32 %24, ptr %25, align 8, !tbaa !20
%26 = load i64, ptr @MPT_PRT_NONE, align 8, !tbaa !21
%27 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 4
store i64 %26, ptr %27, align 8, !tbaa !22
%28 = load i32, ptr @MPT_ROLE_NONE, align 4, !tbaa !17
%29 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 17
store i32 %28, ptr %29, align 4, !tbaa !23
%30 = load i32, ptr @MPT_INI_ID_NONE, align 4, !tbaa !17
%31 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 16
store i32 %30, ptr %31, align 8, !tbaa !24
%32 = tail call i32 @mpt_set_options(ptr noundef nonnull %7) #3
%33 = load i64, ptr %27, align 8, !tbaa !22
%34 = load i64, ptr @MPT_PRT_NONE, align 8, !tbaa !21
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %42
36: ; preds = %16
%37 = load i64, ptr @MPT_PRT_WARN, align 8, !tbaa !21
%38 = load i64, ptr @bootverbose, align 8, !tbaa !21
%39 = icmp ne i64 %38, 0
%40 = zext i1 %39 to i64
%41 = add nsw i64 %37, %40
store i64 %41, ptr %27, align 8, !tbaa !22
br label %42
42: ; preds = %36, %16
%43 = load i32, ptr @PCIR_COMMAND, align 4, !tbaa !17
%44 = tail call i32 @pci_read_config(i32 noundef %0, i32 noundef %43, i32 noundef 2) #3
%45 = load i32, ptr @PCIM_CMD_SERRESPEN, align 4, !tbaa !17
%46 = load i32, ptr @PCIM_CMD_PERRESPEN, align 4, !tbaa !17
%47 = load i32, ptr @PCIM_CMD_BUSMASTEREN, align 4, !tbaa !17
%48 = load i32, ptr @PCIM_CMD_MWRICEN, align 4, !tbaa !17
%49 = or i32 %45, %46
%50 = or i32 %49, %47
%51 = or i32 %50, %48
%52 = or i32 %51, %44
%53 = load i32, ptr @PCIR_COMMAND, align 4, !tbaa !17
%54 = tail call i32 @pci_write_config(i32 noundef %0, i32 noundef %53, i32 noundef %52, i32 noundef 2) #3
%55 = load i32, ptr @PCIR_BIOS, align 4, !tbaa !17
%56 = tail call i32 @pci_read_config(i32 noundef %0, i32 noundef %55, i32 noundef 4) #3
%57 = load i32, ptr @PCIM_BIOS_ENABLE, align 4, !tbaa !17
%58 = xor i32 %57, -1
%59 = and i32 %56, %58
%60 = load i32, ptr @PCIR_BIOS, align 4, !tbaa !17
%61 = tail call i32 @pci_write_config(i32 noundef %0, i32 noundef %60, i32 noundef %59, i32 noundef 4) #3
%62 = tail call i32 @PCIR_BAR(i32 noundef 0) #3
%63 = tail call i32 @pci_read_config(i32 noundef %0, i32 noundef %62, i32 noundef 4) #3
store i32 %63, ptr %3, align 4, !tbaa !17
%64 = tail call i64 @PCI_BAR_IO(i32 noundef %63) #3
%65 = icmp ne i64 %64, 0
%66 = zext i1 %65 to i32
%67 = xor i1 %65, true
%68 = zext i1 %67 to i32
store i32 %66, ptr %5, align 4
%69 = tail call i32 @PCIR_BAR(i32 noundef %68) #3
store i32 %69, ptr %4, align 4, !tbaa !17
%70 = load i32, ptr @SYS_RES_IOPORT, align 4, !tbaa !17
%71 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !17
%72 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %70, ptr noundef nonnull %4, i32 noundef %71) #3
%73 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 15
store ptr %72, ptr %73, align 8, !tbaa !25
%74 = icmp eq ptr %72, null
br i1 %74, label %75, label %80
75: ; preds = %42
%76 = load i64, ptr @bootverbose, align 8, !tbaa !21
%77 = icmp eq i64 %76, 0
br i1 %77, label %86, label %78
78: ; preds = %75
%79 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str) #3
br label %86
80: ; preds = %42
%81 = call ptr @rman_get_bustag(ptr noundef nonnull %72) #3
%82 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 14
store ptr %81, ptr %82, align 8, !tbaa !26
%83 = load ptr, ptr %73, align 8, !tbaa !25
%84 = call ptr @rman_get_bushandle(ptr noundef %83) #3
%85 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 13
store ptr %84, ptr %85, align 8, !tbaa !27
br label %86
86: ; preds = %75, %78, %80
%87 = load i32, ptr %5, align 4, !tbaa !17
%88 = call i32 @PCIR_BAR(i32 noundef %87) #3
store i32 %88, ptr %5, align 4, !tbaa !17
%89 = load i32, ptr @SYS_RES_MEMORY, align 4, !tbaa !17
%90 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !17
%91 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %89, ptr noundef nonnull %5, i32 noundef %90) #3
%92 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 10
store ptr %91, ptr %92, align 8, !tbaa !28
%93 = icmp eq ptr %91, null
br i1 %93, label %94, label %125
94: ; preds = %86
%95 = load i64, ptr @bootverbose, align 8, !tbaa !21
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %104
97: ; preds = %94
%98 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 2
%99 = load i32, ptr %98, align 8, !tbaa !13
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %97
%102 = load ptr, ptr %73, align 8, !tbaa !25
%103 = icmp eq ptr %102, null
br i1 %103, label %104, label %114
104: ; preds = %94, %97, %101
%105 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.1) #3
%106 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 2
%107 = load i32, ptr %106, align 8, !tbaa !13
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %104
%110 = load ptr, ptr %73, align 8, !tbaa !25
%111 = icmp eq ptr %110, null
br i1 %111, label %112, label %114
112: ; preds = %109, %104
%113 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.2) #3
br label %202
114: ; preds = %101, %109
%115 = load i64, ptr @bootverbose, align 8, !tbaa !21
%116 = icmp eq i64 %115, 0
br i1 %116, label %119, label %117
117: ; preds = %114
%118 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.3) #3
br label %119
119: ; preds = %117, %114
%120 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 14
%121 = load ptr, ptr %120, align 8, !tbaa !26
%122 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 12
store ptr %121, ptr %122, align 8, !tbaa !29
%123 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 13
%124 = load ptr, ptr %123, align 8, !tbaa !27
br label %130
125: ; preds = %86
%126 = call ptr @rman_get_bustag(ptr noundef nonnull %91) #3
%127 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 12
store ptr %126, ptr %127, align 8, !tbaa !29
%128 = load ptr, ptr %92, align 8, !tbaa !28
%129 = call ptr @rman_get_bushandle(ptr noundef %128) #3
br label %130
130: ; preds = %125, %119
%131 = phi ptr [ %129, %125 ], [ %124, %119 ]
%132 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 11
store ptr %131, ptr %132, align 8, !tbaa !30
store i32 0, ptr %2, align 4, !tbaa !17
%133 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 9
%134 = load i64, ptr %133, align 8, !tbaa !31
%135 = icmp eq i64 %134, 0
br i1 %135, label %144, label %136
136: ; preds = %130
store i32 1, ptr %3, align 4, !tbaa !17
%137 = call i64 @pci_alloc_msix(i32 noundef %0, ptr noundef nonnull %3) #3
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %136
store i32 1, ptr %2, align 4, !tbaa !17
store i32 1, ptr %3, align 4, !tbaa !17
br label %146
140: ; preds = %136
store i32 1, ptr %3, align 4, !tbaa !17
%141 = call i64 @pci_alloc_msi(i32 noundef %0, ptr noundef nonnull %3) #3
%142 = icmp eq i64 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %140
store i32 1, ptr %2, align 4, !tbaa !17
br label %146
144: ; preds = %140, %130
%145 = load i32, ptr @RF_SHAREABLE, align 4
br label %146
146: ; preds = %143, %139, %144
%147 = phi i32 [ %145, %144 ], [ 0, %139 ], [ 0, %143 ]
%148 = load i32, ptr @SYS_RES_IRQ, align 4, !tbaa !17
%149 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !17
%150 = or i32 %147, %149
%151 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %148, ptr noundef nonnull %2, i32 noundef %150) #3
%152 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 8
store ptr %151, ptr %152, align 8, !tbaa !32
%153 = icmp eq ptr %151, null
br i1 %153, label %154, label %156
154: ; preds = %146
%155 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.4) #3
br label %202
156: ; preds = %146
%157 = call i32 @MPT_LOCK_SETUP(ptr noundef nonnull %7) #3
%158 = call i32 @mpt_disable_ints(ptr noundef nonnull %7) #3
%159 = load ptr, ptr %152, align 8, !tbaa !32
%160 = load i32, ptr @MPT_IFLAGS, align 4, !tbaa !17
%161 = load i32, ptr @mpt_pci_intr, align 4, !tbaa !17
%162 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 7
%163 = call i64 @bus_setup_intr(i32 noundef %0, ptr noundef %159, i32 noundef %160, ptr noundef null, i32 noundef %161, ptr noundef nonnull %7, ptr noundef nonnull %162) #3
%164 = icmp eq i64 %163, 0
br i1 %164, label %167, label %165
165: ; preds = %156
%166 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.5) #3
br label %202
167: ; preds = %156
%168 = call i64 @mpt_dma_mem_alloc(ptr noundef nonnull %7) #3
%169 = icmp eq i64 %168, 0
br i1 %169, label %172, label %170
170: ; preds = %167
%171 = call i32 @mpt_prt(ptr noundef nonnull %7, ptr noundef nonnull @.str.6) #3
br label %202
172: ; preds = %167
%173 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 2
%174 = load i32, ptr %173, align 8, !tbaa !13
%175 = icmp eq i32 %174, 0
br i1 %175, label %179, label %176
176: ; preds = %172
%177 = load i32, ptr @SYS_RES_IOPORT, align 4, !tbaa !17
%178 = call i32 @pci_disable_io(i32 noundef %0, i32 noundef %177) #3
br label %179
179: ; preds = %176, %172
%180 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 5
%181 = load i64, ptr %180, align 8, !tbaa !33
%182 = icmp eq i64 %181, 0
br i1 %182, label %183, label %186
183: ; preds = %179
%184 = call i64 @mpt_attach(ptr noundef nonnull %7) #3
%185 = icmp eq i64 %184, 0
br i1 %185, label %188, label %202
186: ; preds = %179
%187 = call i32 @mpt_prt(ptr noundef nonnull %7, ptr noundef nonnull @.str.7) #3
br label %202
188: ; preds = %183
%189 = load i32, ptr @shutdown_post_sync, align 4, !tbaa !17
%190 = load i32, ptr @mpt_pci_shutdown, align 4, !tbaa !17
%191 = load i32, ptr @SHUTDOWN_PRI_LAST, align 4, !tbaa !17
%192 = call ptr @EVENTHANDLER_REGISTER(i32 noundef %189, i32 noundef %190, i32 noundef %0, i32 noundef %191) #3
%193 = getelementptr inbounds %struct.mpt_softc, ptr %7, i64 0, i32 6
store ptr %192, ptr %193, align 8, !tbaa !34
%194 = icmp eq ptr %192, null
br i1 %194, label %195, label %206
195: ; preds = %188
%196 = call i32 @mpt_prt(ptr noundef nonnull %7, ptr noundef nonnull @.str.8) #3
%197 = call i32 @mpt_disable_ints(ptr noundef nonnull %7) #3
%198 = call i32 @mpt_detach(ptr noundef nonnull %7) #3
%199 = load i32, ptr @FALSE, align 4, !tbaa !17
%200 = call i32 @mpt_reset(ptr noundef nonnull %7, i32 noundef %199) #3
%201 = call i32 @mpt_raid_free_mem(ptr noundef nonnull %7) #3
br label %202
202: ; preds = %183, %195, %186, %170, %165, %154, %112
%203 = call i32 @mpt_dma_mem_free(ptr noundef nonnull %7) #3
%204 = call i32 @mpt_free_bus_resources(ptr noundef nonnull %7) #3
%205 = call i32 @MPT_LOCK_DESTROY(ptr noundef nonnull %7) #3
br label %206
206: ; preds = %188, %202
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @device_get_softc(i32 noundef) local_unnamed_addr #2
declare i32 @pci_get_device(i32 noundef) local_unnamed_addr #2
declare i32 @device_get_unit(i32 noundef) local_unnamed_addr #2
declare i32 @mpt_set_options(ptr noundef) local_unnamed_addr #2
declare i32 @pci_read_config(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @pci_write_config(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @PCIR_BAR(i32 noundef) local_unnamed_addr #2
declare i64 @PCI_BAR_IO(i32 noundef) local_unnamed_addr #2
declare ptr @bus_alloc_resource_any(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @rman_get_bustag(ptr noundef) local_unnamed_addr #2
declare ptr @rman_get_bushandle(ptr noundef) local_unnamed_addr #2
declare i64 @pci_alloc_msix(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @pci_alloc_msi(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @MPT_LOCK_SETUP(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_disable_ints(ptr noundef) local_unnamed_addr #2
declare i64 @bus_setup_intr(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @mpt_dma_mem_alloc(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_prt(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @pci_disable_io(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @mpt_attach(ptr noundef) local_unnamed_addr #2
declare ptr @EVENTHANDLER_REGISTER(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mpt_detach(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_reset(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mpt_raid_free_mem(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_dma_mem_free(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_free_bus_resources(ptr noundef) local_unnamed_addr #2
declare i32 @MPT_LOCK_DESTROY(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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 = !{!"mpt_softc", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !11, i64 32, !7, i64 40, !11, i64 48, !10, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 12}
!15 = !{!6, !7, i64 136}
!16 = !{!6, !7, i64 132}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 128}
!19 = !{!6, !7, i64 124}
!20 = !{!6, !7, i64 120}
!21 = !{!10, !10, i64 0}
!22 = !{!6, !10, i64 16}
!23 = !{!6, !7, i64 116}
!24 = !{!6, !7, i64 112}
!25 = !{!6, !11, i64 104}
!26 = !{!6, !11, i64 96}
!27 = !{!6, !11, i64 88}
!28 = !{!6, !11, i64 64}
!29 = !{!6, !11, i64 80}
!30 = !{!6, !11, i64 72}
!31 = !{!6, !10, i64 56}
!32 = !{!6, !11, i64 48}
!33 = !{!6, !10, i64 24}
!34 = !{!6, !11, i64 32}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/mpt/extr_mpt_pci.c_mpt_pci_attach.c'
source_filename = "AnghaBench/freebsd/sys/dev/mpt/extr_mpt_pci.c_mpt_pci_attach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MPT_RAID_RESYNC_RATE_DEFAULT = common local_unnamed_addr global i32 0, align 4
@MPT_RAID_MWCE_DEFAULT = common local_unnamed_addr global i32 0, align 4
@MPT_RAID_QUEUE_DEPTH_DEFAULT = common local_unnamed_addr global i32 0, align 4
@MPT_PRT_NONE = common local_unnamed_addr global i64 0, align 8
@MPT_ROLE_NONE = common local_unnamed_addr global i32 0, align 4
@MPT_INI_ID_NONE = common local_unnamed_addr global i32 0, align 4
@MPT_PRT_WARN = common local_unnamed_addr global i64 0, align 8
@bootverbose = common local_unnamed_addr global i64 0, align 8
@PCIR_COMMAND = common local_unnamed_addr global i32 0, align 4
@PCIM_CMD_SERRESPEN = common local_unnamed_addr global i32 0, align 4
@PCIM_CMD_PERRESPEN = common local_unnamed_addr global i32 0, align 4
@PCIM_CMD_BUSMASTEREN = common local_unnamed_addr global i32 0, align 4
@PCIM_CMD_MWRICEN = common local_unnamed_addr global i32 0, align 4
@PCIR_BIOS = common local_unnamed_addr global i32 0, align 4
@PCIM_BIOS_ENABLE = common local_unnamed_addr global i32 0, align 4
@SYS_RES_IOPORT = common local_unnamed_addr global i32 0, align 4
@RF_ACTIVE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"unable to map registers in PIO mode\0A\00", align 1
@SYS_RES_MEMORY = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"Unable to memory map registers.\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Giving Up.\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Falling back to PIO mode.\0A\00", align 1
@SYS_RES_IRQ = common local_unnamed_addr global i32 0, align 4
@RF_SHAREABLE = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [30 x i8] c"could not allocate interrupt\0A\00", align 1
@MPT_IFLAGS = common local_unnamed_addr global i32 0, align 4
@mpt_pci_intr = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [27 x i8] c"could not setup interrupt\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"Could not allocate DMA memory\0A\00", align 1
@.str.7 = private unnamed_addr constant [33 x i8] c"device disabled at user request\0A\00", align 1
@shutdown_post_sync = common local_unnamed_addr global i32 0, align 4
@mpt_pci_shutdown = common local_unnamed_addr global i32 0, align 4
@SHUTDOWN_PRI_LAST = common local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [36 x i8] c"shutdown event registration failed\0A\00", align 1
@FALSE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mpt_pci_attach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @mpt_pci_attach(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = tail call i64 @device_get_softc(i32 noundef %0) #3
%7 = inttoptr i64 %6 to ptr
%8 = tail call i32 @pci_get_device(i32 noundef %0) #3
switch i32 %8, label %14 [
i32 151, label %9
i32 152, label %9
i32 150, label %9
i32 147, label %9
i32 146, label %9
i32 143, label %9
i32 145, label %9
i32 144, label %9
i32 149, label %9
i32 148, label %9
i32 142, label %9
i32 141, label %9
i32 129, label %10
i32 128, label %10
i32 138, label %12
i32 137, label %12
i32 136, label %12
i32 135, label %12
i32 134, label %12
i32 133, label %12
i32 132, label %12
i32 131, label %12
i32 130, label %12
]
9: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 1, ptr %7, align 8, !tbaa !6
br label %16
10: ; preds = %1, %1
%11 = getelementptr inbounds i8, ptr %7, i64 4
store i32 1, ptr %11, align 4, !tbaa !13
br label %12
12: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %10
%13 = getelementptr inbounds i8, ptr %7, i64 8
store i32 1, ptr %13, align 8, !tbaa !14
br label %16
14: ; preds = %1
%15 = getelementptr inbounds i8, ptr %7, i64 12
store i32 1, ptr %15, align 4, !tbaa !15
br label %16
16: ; preds = %14, %12, %9
%17 = getelementptr inbounds i8, ptr %7, i64 136
store i32 %0, ptr %17, align 8, !tbaa !16
%18 = tail call i32 @device_get_unit(i32 noundef %0) #3
%19 = getelementptr inbounds i8, ptr %7, i64 132
store i32 %18, ptr %19, align 4, !tbaa !17
%20 = load i32, ptr @MPT_RAID_RESYNC_RATE_DEFAULT, align 4, !tbaa !18
%21 = getelementptr inbounds i8, ptr %7, i64 128
store i32 %20, ptr %21, align 8, !tbaa !19
%22 = load i32, ptr @MPT_RAID_MWCE_DEFAULT, align 4, !tbaa !18
%23 = getelementptr inbounds i8, ptr %7, i64 124
store i32 %22, ptr %23, align 4, !tbaa !20
%24 = load i32, ptr @MPT_RAID_QUEUE_DEPTH_DEFAULT, align 4, !tbaa !18
%25 = getelementptr inbounds i8, ptr %7, i64 120
store i32 %24, ptr %25, align 8, !tbaa !21
%26 = load i64, ptr @MPT_PRT_NONE, align 8, !tbaa !22
%27 = getelementptr inbounds i8, ptr %7, i64 16
store i64 %26, ptr %27, align 8, !tbaa !23
%28 = load i32, ptr @MPT_ROLE_NONE, align 4, !tbaa !18
%29 = getelementptr inbounds i8, ptr %7, i64 116
store i32 %28, ptr %29, align 4, !tbaa !24
%30 = load i32, ptr @MPT_INI_ID_NONE, align 4, !tbaa !18
%31 = getelementptr inbounds i8, ptr %7, i64 112
store i32 %30, ptr %31, align 8, !tbaa !25
%32 = tail call i32 @mpt_set_options(ptr noundef nonnull %7) #3
%33 = load i64, ptr %27, align 8, !tbaa !23
%34 = load i64, ptr @MPT_PRT_NONE, align 8, !tbaa !22
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %42
36: ; preds = %16
%37 = load i64, ptr @MPT_PRT_WARN, align 8, !tbaa !22
%38 = load i64, ptr @bootverbose, align 8, !tbaa !22
%39 = icmp ne i64 %38, 0
%40 = zext i1 %39 to i64
%41 = add nsw i64 %37, %40
store i64 %41, ptr %27, align 8, !tbaa !23
br label %42
42: ; preds = %36, %16
%43 = load i32, ptr @PCIR_COMMAND, align 4, !tbaa !18
%44 = tail call i32 @pci_read_config(i32 noundef %0, i32 noundef %43, i32 noundef 2) #3
%45 = load i32, ptr @PCIM_CMD_SERRESPEN, align 4, !tbaa !18
%46 = load i32, ptr @PCIM_CMD_PERRESPEN, align 4, !tbaa !18
%47 = load i32, ptr @PCIM_CMD_BUSMASTEREN, align 4, !tbaa !18
%48 = load i32, ptr @PCIM_CMD_MWRICEN, align 4, !tbaa !18
%49 = or i32 %45, %46
%50 = or i32 %49, %47
%51 = or i32 %50, %48
%52 = or i32 %51, %44
%53 = load i32, ptr @PCIR_COMMAND, align 4, !tbaa !18
%54 = tail call i32 @pci_write_config(i32 noundef %0, i32 noundef %53, i32 noundef %52, i32 noundef 2) #3
%55 = load i32, ptr @PCIR_BIOS, align 4, !tbaa !18
%56 = tail call i32 @pci_read_config(i32 noundef %0, i32 noundef %55, i32 noundef 4) #3
%57 = load i32, ptr @PCIM_BIOS_ENABLE, align 4, !tbaa !18
%58 = xor i32 %57, -1
%59 = and i32 %56, %58
%60 = load i32, ptr @PCIR_BIOS, align 4, !tbaa !18
%61 = tail call i32 @pci_write_config(i32 noundef %0, i32 noundef %60, i32 noundef %59, i32 noundef 4) #3
%62 = tail call i32 @PCIR_BAR(i32 noundef 0) #3
%63 = tail call i32 @pci_read_config(i32 noundef %0, i32 noundef %62, i32 noundef 4) #3
store i32 %63, ptr %3, align 4, !tbaa !18
%64 = tail call i64 @PCI_BAR_IO(i32 noundef %63) #3
%65 = icmp ne i64 %64, 0
%66 = zext i1 %65 to i32
%67 = xor i1 %65, true
%68 = zext i1 %67 to i32
store i32 %66, ptr %5, align 4
%69 = tail call i32 @PCIR_BAR(i32 noundef %68) #3
store i32 %69, ptr %4, align 4, !tbaa !18
%70 = load i32, ptr @SYS_RES_IOPORT, align 4, !tbaa !18
%71 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !18
%72 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %70, ptr noundef nonnull %4, i32 noundef %71) #3
%73 = getelementptr inbounds i8, ptr %7, i64 104
store ptr %72, ptr %73, align 8, !tbaa !26
%74 = icmp eq ptr %72, null
br i1 %74, label %75, label %80
75: ; preds = %42
%76 = load i64, ptr @bootverbose, align 8, !tbaa !22
%77 = icmp eq i64 %76, 0
br i1 %77, label %86, label %78
78: ; preds = %75
%79 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str) #3
br label %86
80: ; preds = %42
%81 = call ptr @rman_get_bustag(ptr noundef nonnull %72) #3
%82 = getelementptr inbounds i8, ptr %7, i64 96
store ptr %81, ptr %82, align 8, !tbaa !27
%83 = load ptr, ptr %73, align 8, !tbaa !26
%84 = call ptr @rman_get_bushandle(ptr noundef %83) #3
%85 = getelementptr inbounds i8, ptr %7, i64 88
store ptr %84, ptr %85, align 8, !tbaa !28
br label %86
86: ; preds = %75, %78, %80
%87 = load i32, ptr %5, align 4, !tbaa !18
%88 = call i32 @PCIR_BAR(i32 noundef %87) #3
store i32 %88, ptr %5, align 4, !tbaa !18
%89 = load i32, ptr @SYS_RES_MEMORY, align 4, !tbaa !18
%90 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !18
%91 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %89, ptr noundef nonnull %5, i32 noundef %90) #3
%92 = getelementptr inbounds i8, ptr %7, i64 64
store ptr %91, ptr %92, align 8, !tbaa !29
%93 = icmp eq ptr %91, null
br i1 %93, label %94, label %125
94: ; preds = %86
%95 = load i64, ptr @bootverbose, align 8, !tbaa !22
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %104
97: ; preds = %94
%98 = getelementptr inbounds i8, ptr %7, i64 8
%99 = load i32, ptr %98, align 8, !tbaa !14
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %97
%102 = load ptr, ptr %73, align 8, !tbaa !26
%103 = icmp eq ptr %102, null
br i1 %103, label %104, label %114
104: ; preds = %94, %97, %101
%105 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.1) #3
%106 = getelementptr inbounds i8, ptr %7, i64 8
%107 = load i32, ptr %106, align 8, !tbaa !14
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %104
%110 = load ptr, ptr %73, align 8, !tbaa !26
%111 = icmp eq ptr %110, null
br i1 %111, label %112, label %114
112: ; preds = %109, %104
%113 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.2) #3
br label %202
114: ; preds = %101, %109
%115 = load i64, ptr @bootverbose, align 8, !tbaa !22
%116 = icmp eq i64 %115, 0
br i1 %116, label %119, label %117
117: ; preds = %114
%118 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.3) #3
br label %119
119: ; preds = %117, %114
%120 = getelementptr inbounds i8, ptr %7, i64 96
%121 = load ptr, ptr %120, align 8, !tbaa !27
%122 = getelementptr inbounds i8, ptr %7, i64 80
store ptr %121, ptr %122, align 8, !tbaa !30
%123 = getelementptr inbounds i8, ptr %7, i64 88
%124 = load ptr, ptr %123, align 8, !tbaa !28
br label %130
125: ; preds = %86
%126 = call ptr @rman_get_bustag(ptr noundef nonnull %91) #3
%127 = getelementptr inbounds i8, ptr %7, i64 80
store ptr %126, ptr %127, align 8, !tbaa !30
%128 = load ptr, ptr %92, align 8, !tbaa !29
%129 = call ptr @rman_get_bushandle(ptr noundef %128) #3
br label %130
130: ; preds = %125, %119
%131 = phi ptr [ %129, %125 ], [ %124, %119 ]
%132 = getelementptr inbounds i8, ptr %7, i64 72
store ptr %131, ptr %132, align 8, !tbaa !31
store i32 0, ptr %2, align 4, !tbaa !18
%133 = getelementptr inbounds i8, ptr %7, i64 56
%134 = load i64, ptr %133, align 8, !tbaa !32
%135 = icmp eq i64 %134, 0
br i1 %135, label %144, label %136
136: ; preds = %130
store i32 1, ptr %3, align 4, !tbaa !18
%137 = call i64 @pci_alloc_msix(i32 noundef %0, ptr noundef nonnull %3) #3
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %136
store i32 1, ptr %2, align 4, !tbaa !18
store i32 1, ptr %3, align 4, !tbaa !18
br label %146
140: ; preds = %136
store i32 1, ptr %3, align 4, !tbaa !18
%141 = call i64 @pci_alloc_msi(i32 noundef %0, ptr noundef nonnull %3) #3
%142 = icmp eq i64 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %140
store i32 1, ptr %2, align 4, !tbaa !18
br label %146
144: ; preds = %140, %130
%145 = load i32, ptr @RF_SHAREABLE, align 4
br label %146
146: ; preds = %143, %139, %144
%147 = phi i32 [ %145, %144 ], [ 0, %139 ], [ 0, %143 ]
%148 = load i32, ptr @SYS_RES_IRQ, align 4, !tbaa !18
%149 = load i32, ptr @RF_ACTIVE, align 4, !tbaa !18
%150 = or i32 %147, %149
%151 = call ptr @bus_alloc_resource_any(i32 noundef %0, i32 noundef %148, ptr noundef nonnull %2, i32 noundef %150) #3
%152 = getelementptr inbounds i8, ptr %7, i64 48
store ptr %151, ptr %152, align 8, !tbaa !33
%153 = icmp eq ptr %151, null
br i1 %153, label %154, label %156
154: ; preds = %146
%155 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.4) #3
br label %202
156: ; preds = %146
%157 = call i32 @MPT_LOCK_SETUP(ptr noundef nonnull %7) #3
%158 = call i32 @mpt_disable_ints(ptr noundef nonnull %7) #3
%159 = load ptr, ptr %152, align 8, !tbaa !33
%160 = load i32, ptr @MPT_IFLAGS, align 4, !tbaa !18
%161 = load i32, ptr @mpt_pci_intr, align 4, !tbaa !18
%162 = getelementptr inbounds i8, ptr %7, i64 40
%163 = call i64 @bus_setup_intr(i32 noundef %0, ptr noundef %159, i32 noundef %160, ptr noundef null, i32 noundef %161, ptr noundef nonnull %7, ptr noundef nonnull %162) #3
%164 = icmp eq i64 %163, 0
br i1 %164, label %167, label %165
165: ; preds = %156
%166 = call i32 @device_printf(i32 noundef %0, ptr noundef nonnull @.str.5) #3
br label %202
167: ; preds = %156
%168 = call i64 @mpt_dma_mem_alloc(ptr noundef nonnull %7) #3
%169 = icmp eq i64 %168, 0
br i1 %169, label %172, label %170
170: ; preds = %167
%171 = call i32 @mpt_prt(ptr noundef nonnull %7, ptr noundef nonnull @.str.6) #3
br label %202
172: ; preds = %167
%173 = getelementptr inbounds i8, ptr %7, i64 8
%174 = load i32, ptr %173, align 8, !tbaa !14
%175 = icmp eq i32 %174, 0
br i1 %175, label %179, label %176
176: ; preds = %172
%177 = load i32, ptr @SYS_RES_IOPORT, align 4, !tbaa !18
%178 = call i32 @pci_disable_io(i32 noundef %0, i32 noundef %177) #3
br label %179
179: ; preds = %176, %172
%180 = getelementptr inbounds i8, ptr %7, i64 24
%181 = load i64, ptr %180, align 8, !tbaa !34
%182 = icmp eq i64 %181, 0
br i1 %182, label %183, label %186
183: ; preds = %179
%184 = call i64 @mpt_attach(ptr noundef nonnull %7) #3
%185 = icmp eq i64 %184, 0
br i1 %185, label %188, label %202
186: ; preds = %179
%187 = call i32 @mpt_prt(ptr noundef nonnull %7, ptr noundef nonnull @.str.7) #3
br label %202
188: ; preds = %183
%189 = load i32, ptr @shutdown_post_sync, align 4, !tbaa !18
%190 = load i32, ptr @mpt_pci_shutdown, align 4, !tbaa !18
%191 = load i32, ptr @SHUTDOWN_PRI_LAST, align 4, !tbaa !18
%192 = call ptr @EVENTHANDLER_REGISTER(i32 noundef %189, i32 noundef %190, i32 noundef %0, i32 noundef %191) #3
%193 = getelementptr inbounds i8, ptr %7, i64 32
store ptr %192, ptr %193, align 8, !tbaa !35
%194 = icmp eq ptr %192, null
br i1 %194, label %195, label %206
195: ; preds = %188
%196 = call i32 @mpt_prt(ptr noundef nonnull %7, ptr noundef nonnull @.str.8) #3
%197 = call i32 @mpt_disable_ints(ptr noundef nonnull %7) #3
%198 = call i32 @mpt_detach(ptr noundef nonnull %7) #3
%199 = load i32, ptr @FALSE, align 4, !tbaa !18
%200 = call i32 @mpt_reset(ptr noundef nonnull %7, i32 noundef %199) #3
%201 = call i32 @mpt_raid_free_mem(ptr noundef nonnull %7) #3
br label %202
202: ; preds = %183, %195, %186, %170, %165, %154, %112
%203 = call i32 @mpt_dma_mem_free(ptr noundef nonnull %7) #3
%204 = call i32 @mpt_free_bus_resources(ptr noundef nonnull %7) #3
%205 = call i32 @MPT_LOCK_DESTROY(ptr noundef nonnull %7) #3
br label %206
206: ; preds = %188, %202
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @device_get_softc(i32 noundef) local_unnamed_addr #2
declare i32 @pci_get_device(i32 noundef) local_unnamed_addr #2
declare i32 @device_get_unit(i32 noundef) local_unnamed_addr #2
declare i32 @mpt_set_options(ptr noundef) local_unnamed_addr #2
declare i32 @pci_read_config(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @pci_write_config(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @PCIR_BAR(i32 noundef) local_unnamed_addr #2
declare i64 @PCI_BAR_IO(i32 noundef) local_unnamed_addr #2
declare ptr @bus_alloc_resource_any(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_printf(i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @rman_get_bustag(ptr noundef) local_unnamed_addr #2
declare ptr @rman_get_bushandle(ptr noundef) local_unnamed_addr #2
declare i64 @pci_alloc_msix(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @pci_alloc_msi(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @MPT_LOCK_SETUP(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_disable_ints(ptr noundef) local_unnamed_addr #2
declare i64 @bus_setup_intr(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @mpt_dma_mem_alloc(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_prt(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @pci_disable_io(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @mpt_attach(ptr noundef) local_unnamed_addr #2
declare ptr @EVENTHANDLER_REGISTER(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mpt_detach(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_reset(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mpt_raid_free_mem(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_dma_mem_free(ptr noundef) local_unnamed_addr #2
declare i32 @mpt_free_bus_resources(ptr noundef) local_unnamed_addr #2
declare i32 @MPT_LOCK_DESTROY(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"mpt_softc", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !11, i64 16, !11, i64 24, !12, i64 32, !8, i64 40, !12, i64 48, !11, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !8, i64 112, !8, i64 116, !8, i64 120, !8, i64 124, !8, i64 128, !8, i64 132, !8, i64 136}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!7, !8, i64 4}
!14 = !{!7, !8, i64 8}
!15 = !{!7, !8, i64 12}
!16 = !{!7, !8, i64 136}
!17 = !{!7, !8, i64 132}
!18 = !{!8, !8, i64 0}
!19 = !{!7, !8, i64 128}
!20 = !{!7, !8, i64 124}
!21 = !{!7, !8, i64 120}
!22 = !{!11, !11, i64 0}
!23 = !{!7, !11, i64 16}
!24 = !{!7, !8, i64 116}
!25 = !{!7, !8, i64 112}
!26 = !{!7, !12, i64 104}
!27 = !{!7, !12, i64 96}
!28 = !{!7, !12, i64 88}
!29 = !{!7, !12, i64 64}
!30 = !{!7, !12, i64 80}
!31 = !{!7, !12, i64 72}
!32 = !{!7, !11, i64 56}
!33 = !{!7, !12, i64 48}
!34 = !{!7, !11, i64 24}
!35 = !{!7, !12, i64 32}
| freebsd_sys_dev_mpt_extr_mpt_pci.c_mpt_pci_attach |
; ModuleID = 'AnghaBench/systemd/src/udev/extr_udev-event.c_udev_event_execute_rules.c'
source_filename = "AnghaBench/systemd/src/udev/extr_udev-event.c_udev_event_execute_rules.c"
target datalayout = "e-m:e-p270:32:32-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_13__ = type { i64, ptr }
@.str = private unnamed_addr constant [28 x i8] c"Failed to get subsystem: %m\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Failed to get ACTION: %m\00", align 1
@DEVICE_ACTION_REMOVE = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [37 x i8] c"Failed to clone sd_device object: %m\00", align 1
@DEVICE_ACTION_MOVE = dso_local local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [31 x i8] c"Failed to apply udev rules: %m\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Failed to set initialization timestamp: %m\00", align 1
@.str.5 = private unnamed_addr constant [47 x i8] c"Failed to update tags under /run/udev/tag/: %m\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"Failed to update database under /run/udev/data/: %m\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @udev_event_execute_rules(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%7 = tail call i32 @assert(ptr noundef %0) #3
%8 = tail call i32 @assert(ptr noundef %3) #3
%9 = getelementptr inbounds %struct.TYPE_13__, ptr %0, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !5
%11 = call i32 @sd_device_get_subsystem(ptr noundef %10, ptr noundef nonnull %5) #3
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %4
%14 = call i32 @log_device_error_errno(ptr noundef %10, i32 noundef %11, ptr noundef nonnull @.str) #3
br label %79
15: ; preds = %4
%16 = call i32 @device_get_action(ptr noundef %10, ptr noundef nonnull %6) #3
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @log_device_error_errno(ptr noundef %10, i32 noundef %16, ptr noundef nonnull @.str.1) #3
br label %79
20: ; preds = %15
%21 = load i64, ptr %6, align 8, !tbaa !11
%22 = load i64, ptr @DEVICE_ACTION_REMOVE, align 8, !tbaa !11
%23 = icmp eq i64 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @event_execute_rules_on_remove(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #3
br label %79
26: ; preds = %20
%27 = call i32 @device_clone_with_db(ptr noundef %10, ptr noundef nonnull %0) #3
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %27, ptr noundef nonnull @.str.2) #3
br label %79
31: ; preds = %26
%32 = load i64, ptr %0, align 8, !tbaa !12
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = call i64 @sd_device_get_devnum(ptr noundef %10, ptr noundef null) #3
%36 = icmp sgt i64 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i64, ptr %0, align 8, !tbaa !12
%39 = call i32 @udev_watch_end(i64 noundef %38) #3
br label %40
40: ; preds = %37, %34, %31
%41 = load i64, ptr %6, align 8, !tbaa !11
%42 = load i64, ptr @DEVICE_ACTION_MOVE, align 8, !tbaa !11
%43 = icmp eq i64 %41, %42
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = call i32 @udev_event_on_move(ptr noundef nonnull %0) #3
%46 = icmp slt i32 %45, 0
br i1 %46, label %79, label %47
47: ; preds = %44, %40
%48 = call i32 @udev_rules_apply_to_event(ptr noundef %3, ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #3
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %48, ptr noundef nonnull @.str.3) #3
br label %79
52: ; preds = %47
%53 = call i32 @rename_netif(ptr noundef nonnull %0) #3
%54 = icmp slt i32 %53, 0
br i1 %54, label %79, label %55
55: ; preds = %52
%56 = call i32 @update_devnode(ptr noundef nonnull %0) #3
%57 = icmp slt i32 %56, 0
br i1 %57, label %79, label %58
58: ; preds = %55
%59 = load i64, ptr %0, align 8, !tbaa !12
%60 = call i32 @device_ensure_usec_initialized(ptr noundef %10, i64 noundef %59) #3
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %60, ptr noundef nonnull @.str.4) #3
br label %79
64: ; preds = %58
%65 = load i64, ptr %0, align 8, !tbaa !12
%66 = call i32 @device_tag_index(ptr noundef %10, i64 noundef %65, i32 noundef 1) #3
%67 = icmp slt i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %66, ptr noundef nonnull @.str.5) #3
br label %79
70: ; preds = %64
%71 = call i32 @device_update_db(ptr noundef %10) #3
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %71, ptr noundef nonnull @.str.6) #3
br label %79
75: ; preds = %70
%76 = call i32 @device_set_is_initialized(ptr noundef %10) #3
%77 = load i64, ptr %0, align 8, !tbaa !12
%78 = call i64 @sd_device_unref(i64 noundef %77) #3
store i64 %78, ptr %0, align 8, !tbaa !12
br label %79
79: ; preds = %55, %52, %44, %75, %73, %68, %62, %50, %29, %24, %18, %13
%80 = phi i32 [ %14, %13 ], [ %19, %18 ], [ 0, %24 ], [ %30, %29 ], [ %51, %50 ], [ %63, %62 ], [ %69, %68 ], [ %74, %73 ], [ 0, %75 ], [ %45, %44 ], [ %53, %52 ], [ %56, %55 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
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 @assert(ptr noundef) local_unnamed_addr #2
declare i32 @sd_device_get_subsystem(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_device_error_errno(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_get_action(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @event_execute_rules_on_remove(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_clone_with_db(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_device_debug_errno(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @sd_device_get_devnum(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @udev_watch_end(i64 noundef) local_unnamed_addr #2
declare i32 @udev_event_on_move(ptr noundef) local_unnamed_addr #2
declare i32 @udev_rules_apply_to_event(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rename_netif(ptr noundef) local_unnamed_addr #2
declare i32 @update_devnode(ptr noundef) local_unnamed_addr #2
declare i32 @device_ensure_usec_initialized(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @device_tag_index(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_update_db(ptr noundef) local_unnamed_addr #2
declare i32 @device_set_is_initialized(ptr noundef) local_unnamed_addr #2
declare i64 @sd_device_unref(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, !10, i64 8}
!6 = !{!"TYPE_13__", !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, !7, i64 0}
| ; ModuleID = 'AnghaBench/systemd/src/udev/extr_udev-event.c_udev_event_execute_rules.c'
source_filename = "AnghaBench/systemd/src/udev/extr_udev-event.c_udev_event_execute_rules.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [28 x i8] c"Failed to get subsystem: %m\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Failed to get ACTION: %m\00", align 1
@DEVICE_ACTION_REMOVE = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [37 x i8] c"Failed to clone sd_device object: %m\00", align 1
@DEVICE_ACTION_MOVE = common local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [31 x i8] c"Failed to apply udev rules: %m\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Failed to set initialization timestamp: %m\00", align 1
@.str.5 = private unnamed_addr constant [47 x i8] c"Failed to update tags under /run/udev/tag/: %m\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"Failed to update database under /run/udev/data/: %m\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @udev_event_execute_rules(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%7 = tail call i32 @assert(ptr noundef %0) #3
%8 = tail call i32 @assert(ptr noundef %3) #3
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !6
%11 = call i32 @sd_device_get_subsystem(ptr noundef %10, ptr noundef nonnull %5) #3
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %4
%14 = call i32 @log_device_error_errno(ptr noundef %10, i32 noundef %11, ptr noundef nonnull @.str) #3
br label %79
15: ; preds = %4
%16 = call i32 @device_get_action(ptr noundef %10, ptr noundef nonnull %6) #3
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @log_device_error_errno(ptr noundef %10, i32 noundef %16, ptr noundef nonnull @.str.1) #3
br label %79
20: ; preds = %15
%21 = load i64, ptr %6, align 8, !tbaa !12
%22 = load i64, ptr @DEVICE_ACTION_REMOVE, align 8, !tbaa !12
%23 = icmp eq i64 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @event_execute_rules_on_remove(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #3
br label %79
26: ; preds = %20
%27 = call i32 @device_clone_with_db(ptr noundef %10, ptr noundef nonnull %0) #3
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %27, ptr noundef nonnull @.str.2) #3
br label %79
31: ; preds = %26
%32 = load i64, ptr %0, align 8, !tbaa !13
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = call i64 @sd_device_get_devnum(ptr noundef %10, ptr noundef null) #3
%36 = icmp sgt i64 %35, -1
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i64, ptr %0, align 8, !tbaa !13
%39 = call i32 @udev_watch_end(i64 noundef %38) #3
br label %40
40: ; preds = %37, %34, %31
%41 = load i64, ptr %6, align 8, !tbaa !12
%42 = load i64, ptr @DEVICE_ACTION_MOVE, align 8, !tbaa !12
%43 = icmp eq i64 %41, %42
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = call i32 @udev_event_on_move(ptr noundef nonnull %0) #3
%46 = icmp slt i32 %45, 0
br i1 %46, label %79, label %47
47: ; preds = %44, %40
%48 = call i32 @udev_rules_apply_to_event(ptr noundef %3, ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #3
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %48, ptr noundef nonnull @.str.3) #3
br label %79
52: ; preds = %47
%53 = call i32 @rename_netif(ptr noundef nonnull %0) #3
%54 = icmp slt i32 %53, 0
br i1 %54, label %79, label %55
55: ; preds = %52
%56 = call i32 @update_devnode(ptr noundef nonnull %0) #3
%57 = icmp slt i32 %56, 0
br i1 %57, label %79, label %58
58: ; preds = %55
%59 = load i64, ptr %0, align 8, !tbaa !13
%60 = call i32 @device_ensure_usec_initialized(ptr noundef %10, i64 noundef %59) #3
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %60, ptr noundef nonnull @.str.4) #3
br label %79
64: ; preds = %58
%65 = load i64, ptr %0, align 8, !tbaa !13
%66 = call i32 @device_tag_index(ptr noundef %10, i64 noundef %65, i32 noundef 1) #3
%67 = icmp slt i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %66, ptr noundef nonnull @.str.5) #3
br label %79
70: ; preds = %64
%71 = call i32 @device_update_db(ptr noundef %10) #3
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 @log_device_debug_errno(ptr noundef %10, i32 noundef %71, ptr noundef nonnull @.str.6) #3
br label %79
75: ; preds = %70
%76 = call i32 @device_set_is_initialized(ptr noundef %10) #3
%77 = load i64, ptr %0, align 8, !tbaa !13
%78 = call i64 @sd_device_unref(i64 noundef %77) #3
store i64 %78, ptr %0, align 8, !tbaa !13
br label %79
79: ; preds = %55, %52, %44, %75, %73, %68, %62, %50, %29, %24, %18, %13
%80 = phi i32 [ %14, %13 ], [ %19, %18 ], [ 0, %24 ], [ %30, %29 ], [ %51, %50 ], [ %63, %62 ], [ %69, %68 ], [ %74, %73 ], [ 0, %75 ], [ %45, %44 ], [ %53, %52 ], [ %56, %55 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
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 @assert(ptr noundef) local_unnamed_addr #2
declare i32 @sd_device_get_subsystem(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_device_error_errno(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_get_action(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @event_execute_rules_on_remove(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_clone_with_db(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @log_device_debug_errno(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @sd_device_get_devnum(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @udev_watch_end(i64 noundef) local_unnamed_addr #2
declare i32 @udev_event_on_move(ptr noundef) local_unnamed_addr #2
declare i32 @udev_rules_apply_to_event(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @rename_netif(ptr noundef) local_unnamed_addr #2
declare i32 @update_devnode(ptr noundef) local_unnamed_addr #2
declare i32 @device_ensure_usec_initialized(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @device_tag_index(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_update_db(ptr noundef) local_unnamed_addr #2
declare i32 @device_set_is_initialized(ptr noundef) local_unnamed_addr #2
declare i64 @sd_device_unref(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, !11, i64 8}
!7 = !{!"TYPE_13__", !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, !8, i64 0}
| systemd_src_udev_extr_udev-event.c_udev_event_execute_rules |
; ModuleID = 'AnghaBench/freebsd/sbin/rcorder/extr_hash.c_Hash_DeleteEntry.c'
source_filename = "AnghaBench/freebsd/sbin/rcorder/extr_hash.c_Hash_DeleteEntry.c"
target datalayout = "e-m:e-p270:32:32-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 { i64, i32, ptr }
%struct.TYPE_6__ = type { i64, ptr }
@.str = private unnamed_addr constant [30 x i8] c"bad call to Hash_DeleteEntry\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @Hash_DeleteEntry(ptr nocapture noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %35, label %4
4: ; preds = %2
%5 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = load i64, ptr %1, align 8, !tbaa !12
%8 = load i64, ptr %0, align 8, !tbaa !14
%9 = and i64 %8, %7
%10 = getelementptr inbounds ptr, ptr %6, i64 %9
%11 = load ptr, ptr %10, align 8, !tbaa !15
%12 = icmp eq ptr %11, null
br i1 %12, label %32, label %13
13: ; preds = %4
%14 = icmp eq ptr %11, %1
br i1 %14, label %19, label %27
15: ; preds = %27
%16 = icmp eq ptr %30, %1
br i1 %16, label %17, label %27, !llvm.loop !16
17: ; preds = %15
%18 = getelementptr inbounds %struct.TYPE_6__, ptr %28, i64 0, i32 1
br label %19
19: ; preds = %17, %13
%20 = phi ptr [ %10, %13 ], [ %18, %17 ]
%21 = getelementptr inbounds %struct.TYPE_6__, ptr %1, i64 0, i32 1
%22 = load ptr, ptr %21, align 8, !tbaa !18
store ptr %22, ptr %20, align 8, !tbaa !15
%23 = tail call i32 @free(ptr noundef nonnull %1) #3
%24 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%25 = load i32, ptr %24, align 8, !tbaa !19
%26 = add nsw i32 %25, -1
store i32 %26, ptr %24, align 8, !tbaa !19
br label %35
27: ; preds = %13, %15
%28 = phi ptr [ %30, %15 ], [ %11, %13 ]
%29 = getelementptr inbounds %struct.TYPE_6__, ptr %28, i64 0, i32 1
%30 = load ptr, ptr %29, align 8, !tbaa !15
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %15, !llvm.loop !16
32: ; preds = %27, %4
%33 = tail call i32 @write(i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 29) #3
%34 = tail call i32 (...) @abort() #4
unreachable
35: ; preds = %2, %19
ret void
}
declare i32 @free(ptr noundef) local_unnamed_addr #1
declare i32 @write(i32 noundef, ptr 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 = { nounwind }
attributes #4 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"TYPE_5__", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_6__", !7, i64 0, !11, i64 8}
!14 = !{!6, !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!13, !11, i64 8}
!19 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/sbin/rcorder/extr_hash.c_Hash_DeleteEntry.c'
source_filename = "AnghaBench/freebsd/sbin/rcorder/extr_hash.c_Hash_DeleteEntry.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 [30 x i8] c"bad call to Hash_DeleteEntry\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @Hash_DeleteEntry(ptr nocapture noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %36, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = load i64, ptr %1, align 8, !tbaa !13
%8 = load i64, ptr %0, align 8, !tbaa !15
%9 = and i64 %8, %7
%10 = getelementptr inbounds ptr, ptr %6, i64 %9
%11 = load ptr, ptr %10, align 8, !tbaa !16
%12 = icmp eq ptr %11, null
br i1 %12, label %33, label %13
13: ; preds = %4
%14 = icmp eq ptr %11, %1
br i1 %14, label %19, label %28
15: ; preds = %28
%16 = icmp eq ptr %31, %1
br i1 %16, label %17, label %28, !llvm.loop !17
17: ; preds = %15
%18 = getelementptr inbounds i8, ptr %29, i64 8
br label %19
19: ; preds = %17, %13
%20 = phi ptr [ %11, %13 ], [ %31, %17 ]
%21 = phi ptr [ %10, %13 ], [ %18, %17 ]
%22 = getelementptr inbounds i8, ptr %20, i64 8
%23 = load ptr, ptr %22, align 8, !tbaa !19
store ptr %23, ptr %21, align 8, !tbaa !16
%24 = tail call i32 @free(ptr noundef nonnull %20) #3
%25 = getelementptr inbounds i8, ptr %0, i64 8
%26 = load i32, ptr %25, align 8, !tbaa !20
%27 = add nsw i32 %26, -1
store i32 %27, ptr %25, align 8, !tbaa !20
br label %36
28: ; preds = %13, %15
%29 = phi ptr [ %31, %15 ], [ %11, %13 ]
%30 = getelementptr inbounds i8, ptr %29, i64 8
%31 = load ptr, ptr %30, align 8, !tbaa !16
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %15, !llvm.loop !17
33: ; preds = %28, %4
%34 = tail call i32 @write(i32 noundef 2, ptr noundef nonnull @.str, i32 noundef 29) #3
%35 = tail call i32 @abort() #4
unreachable
36: ; preds = %2, %19
ret void
}
declare i32 @free(ptr noundef) local_unnamed_addr #1
declare i32 @write(i32 noundef, ptr 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 = { nounwind }
attributes #4 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 16}
!7 = !{!"TYPE_5__", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_6__", !8, i64 0, !12, i64 8}
!15 = !{!7, !8, i64 0}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !12, i64 8}
!20 = !{!7, !11, i64 8}
| freebsd_sbin_rcorder_extr_hash.c_Hash_DeleteEntry |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_subr/extr_subst.c_read_handler_special.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_subr/extr_subst.c_read_handler_special.c"
target datalayout = "e-m:e-p270:32:32-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.special_stream_baton = type { i32, i32, i64 }
@APR_ENOENT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"Can't read special file: File '%s' not found\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @read_handler_special], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @read_handler_special(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = getelementptr inbounds %struct.special_stream_baton, ptr %0, i64 0, i32 2
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %3
%8 = tail call ptr @svn_stream_read_full(i64 noundef %5, ptr noundef %1, ptr noundef %2) #2
br label %17
9: ; preds = %3
%10 = load i32, ptr @APR_ENOENT, align 4, !tbaa !11
%11 = tail call i32 @_(ptr noundef nonnull @.str) #2
%12 = getelementptr inbounds %struct.special_stream_baton, ptr %0, i64 0, i32 1
%13 = load i32, ptr %12, align 4, !tbaa !12
%14 = load i32, ptr %0, align 8, !tbaa !13
%15 = tail call i32 @svn_dirent_local_style(i32 noundef %13, i32 noundef %14) #2
%16 = tail call ptr @svn_error_createf(i32 noundef %10, ptr noundef null, i32 noundef %11, i32 noundef %15) #2
br label %17
17: ; preds = %9, %7
%18 = phi ptr [ %8, %7 ], [ %16, %9 ]
ret ptr %18
}
declare ptr @svn_stream_read_full(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @svn_error_createf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @_(ptr noundef) local_unnamed_addr #1
declare i32 @svn_dirent_local_style(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"special_stream_baton", !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 = !{!"long", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_subr/extr_subst.c_read_handler_special.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_subr/extr_subst.c_read_handler_special.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@APR_ENOENT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"Can't read special file: File '%s' not found\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @read_handler_special], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @read_handler_special(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %3
%8 = tail call ptr @svn_stream_read_full(i64 noundef %5, ptr noundef %1, ptr noundef %2) #2
br label %17
9: ; preds = %3
%10 = load i32, ptr @APR_ENOENT, align 4, !tbaa !12
%11 = tail call i32 @_(ptr noundef nonnull @.str) #2
%12 = getelementptr inbounds i8, ptr %0, i64 4
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = load i32, ptr %0, align 8, !tbaa !14
%15 = tail call i32 @svn_dirent_local_style(i32 noundef %13, i32 noundef %14) #2
%16 = tail call ptr @svn_error_createf(i32 noundef %10, ptr noundef null, i32 noundef %11, i32 noundef %15) #2
br label %17
17: ; preds = %9, %7
%18 = phi ptr [ %8, %7 ], [ %16, %9 ]
ret ptr %18
}
declare ptr @svn_stream_read_full(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @svn_error_createf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @_(ptr noundef) local_unnamed_addr #1
declare i32 @svn_dirent_local_style(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"special_stream_baton", !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 = !{!"long", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 4}
!14 = !{!7, !8, i64 0}
| freebsd_contrib_subversion_subversion_libsvn_subr_extr_subst.c_read_handler_special |
; ModuleID = 'AnghaBench/linux/arch/x86/kvm/extr_x86.h_is_pse.c'
source_filename = "AnghaBench/linux/arch/x86/kvm/extr_x86.h_is_pse.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@X86_CR4_PSE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @is_pse], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @is_pse(ptr noundef %0) #0 {
%2 = load i32, ptr @X86_CR4_PSE, align 4, !tbaa !5
%3 = tail call i32 @kvm_read_cr4_bits(ptr noundef %0, i32 noundef %2) #2
ret i32 %3
}
declare i32 @kvm_read_cr4_bits(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/arch/x86/kvm/extr_x86.h_is_pse.c'
source_filename = "AnghaBench/linux/arch/x86/kvm/extr_x86.h_is_pse.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@X86_CR4_PSE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @is_pse], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @is_pse(ptr noundef %0) #0 {
%2 = load i32, ptr @X86_CR4_PSE, align 4, !tbaa !6
%3 = tail call i32 @kvm_read_cr4_bits(ptr noundef %0, i32 noundef %2) #2
ret i32 %3
}
declare i32 @kvm_read_cr4_bits(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_arch_x86_kvm_extr_x86.h_is_pse |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/oss/extr_pas2_pcm.c_pas_audio_prepare_for_input.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_pas2_pcm.c_pas_audio_prepare_for_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @pas_audio_prepare_for_input], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @pas_audio_prepare_for_input(i32 noundef %0, i32 %1, i32 %2) #0 {
%4 = tail call i32 @pas_audio_reset(i32 noundef %0) #2
ret i32 0
}
declare i32 @pas_audio_reset(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/fastsocket/kernel/sound/oss/extr_pas2_pcm.c_pas_audio_prepare_for_input.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/oss/extr_pas2_pcm.c_pas_audio_prepare_for_input.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 @pas_audio_prepare_for_input], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @pas_audio_prepare_for_input(i32 noundef %0, i32 %1, i32 %2) #0 {
%4 = tail call i32 @pas_audio_reset(i32 noundef %0) #2
ret i32 0
}
declare i32 @pas_audio_reset(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)"}
| fastsocket_kernel_sound_oss_extr_pas2_pcm.c_pas_audio_prepare_for_input |
; ModuleID = 'AnghaBench/linux/drivers/i2c/busses/extr_i2c-axxia.c_axxia_i2c_xfer_seq.c'
source_filename = "AnghaBench/linux/drivers/i2c/busses/extr_i2c-axxia.c_axxia_i2c_xfer_seq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.i2c_msg = type { i32 }
%struct.axxia_i2c_dev = type { i32, i32, i32, i32, i64, i32, i64, i64, ptr, ptr }
@MST_STATUS_ERR = dso_local local_unnamed_addr global i32 0, align 4
@MST_STATUS_SS = dso_local local_unnamed_addr global i32 0, align 4
@MST_STATUS_RFL = dso_local local_unnamed_addr global i32 0, align 4
@I2C_SMBUS_BLOCK_MAX = dso_local local_unnamed_addr global i32 0, align 4
@MST_TX_XFER = dso_local local_unnamed_addr global i64 0, align 8
@MST_RX_XFER = dso_local local_unnamed_addr global i64 0, align 8
@CMD_SEQUENCE = dso_local local_unnamed_addr global i32 0, align 4
@MST_COMMAND = dso_local local_unnamed_addr global i64 0, align 8
@I2C_XFER_TIMEOUT = dso_local local_unnamed_addr global i32 0, align 4
@ENXIO = dso_local local_unnamed_addr global i32 0, align 4
@CMD_BUSY = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"busy after xfer\0A\00", align 1
@ETIMEDOUT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @axxia_i2c_xfer_seq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @axxia_i2c_xfer_seq(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @MST_STATUS_ERR, align 4, !tbaa !5
%4 = load i32, ptr @MST_STATUS_SS, align 4, !tbaa !5
%5 = or i32 %4, %3
%6 = load i32, ptr @MST_STATUS_RFL, align 4, !tbaa !5
%7 = or i32 %5, %6
%8 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 1
%9 = tail call i64 @i2c_m_recv_len(ptr noundef nonnull %8) #3
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, ptr %8, ptr @I2C_SMBUS_BLOCK_MAX
%12 = load i32, ptr %11, align 4, !tbaa !5
%13 = tail call i32 @axxia_i2c_set_addr(ptr noundef %0, ptr noundef %1) #3
%14 = load i32, ptr %1, align 4, !tbaa !9
%15 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 4
%16 = load i64, ptr %15, align 8, !tbaa !11
%17 = load i64, ptr @MST_TX_XFER, align 8, !tbaa !15
%18 = add nsw i64 %17, %16
%19 = tail call i32 @writel(i32 noundef %14, i64 noundef %18) #3
%20 = load i64, ptr %15, align 8, !tbaa !11
%21 = load i64, ptr @MST_RX_XFER, align 8, !tbaa !15
%22 = add nsw i64 %21, %20
%23 = tail call i32 @writel(i32 noundef %12, i64 noundef %22) #3
%24 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 9
store ptr %1, ptr %24, align 8, !tbaa !16
%25 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 8
store ptr %8, ptr %25, align 8, !tbaa !17
%26 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 6
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %26, i8 0, i64 16, i1 false)
store i32 1, ptr %0, align 8, !tbaa !18
%27 = tail call i32 @axxia_i2c_fill_tx_fifo(ptr noundef nonnull %0) #3
%28 = load i32, ptr @CMD_SEQUENCE, align 4, !tbaa !5
%29 = load i64, ptr %15, align 8, !tbaa !11
%30 = load i64, ptr @MST_COMMAND, align 8, !tbaa !15
%31 = add nsw i64 %30, %29
%32 = tail call i32 @writel(i32 noundef %28, i64 noundef %31) #3
%33 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 5
%34 = tail call i32 @reinit_completion(ptr noundef nonnull %33) #3
%35 = tail call i32 @i2c_int_enable(ptr noundef nonnull %0, i32 noundef %7) #3
%36 = load i32, ptr @I2C_XFER_TIMEOUT, align 4, !tbaa !5
%37 = tail call i64 @wait_for_completion_timeout(ptr noundef nonnull %33, i32 noundef %36) #3
%38 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 1
%39 = load i32, ptr %38, align 4, !tbaa !19
%40 = load i32, ptr @ENXIO, align 4, !tbaa !5
%41 = sub nsw i32 0, %40
%42 = icmp eq i32 %39, %41
br i1 %42, label %43, label %48
43: ; preds = %2
%44 = tail call i64 @axxia_i2c_handle_seq_nak(ptr noundef nonnull %0) #3
%45 = icmp eq i64 %44, 0
br i1 %45, label %60, label %46
46: ; preds = %43
%47 = tail call i32 @axxia_i2c_init(ptr noundef nonnull %0) #3
br label %60
48: ; preds = %2
%49 = load i64, ptr %15, align 8, !tbaa !11
%50 = load i64, ptr @MST_COMMAND, align 8, !tbaa !15
%51 = add nsw i64 %50, %49
%52 = tail call i32 @readl(i64 noundef %51) #3
%53 = load i32, ptr @CMD_BUSY, align 4, !tbaa !5
%54 = and i32 %53, %52
%55 = icmp eq i32 %54, 0
br i1 %55, label %60, label %56
56: ; preds = %48
%57 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 3
%58 = load i32, ptr %57, align 4, !tbaa !20
%59 = tail call i32 @dev_warn(i32 noundef %58, ptr noundef nonnull @.str) #3
br label %60
60: ; preds = %48, %56, %43, %46
%61 = icmp eq i64 %37, 0
br i1 %61, label %62, label %68
62: ; preds = %60
%63 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%64 = sub nsw i32 0, %63
store i32 %64, ptr %38, align 4, !tbaa !19
%65 = getelementptr inbounds %struct.axxia_i2c_dev, ptr %0, i64 0, i32 2
%66 = tail call i32 @i2c_recover_bus(ptr noundef nonnull %65) #3
%67 = tail call i32 @axxia_i2c_init(ptr noundef nonnull %0) #3
br label %68
68: ; preds = %62, %60
%69 = load i32, ptr %38, align 4, !tbaa !19
%70 = tail call i64 @unlikely(i32 noundef %69) #3
%71 = icmp eq i64 %70, 0
%72 = load i32, ptr %38, align 4, !tbaa !19
br i1 %71, label %80, label %73
73: ; preds = %68
%74 = load i32, ptr @ENXIO, align 4, !tbaa !5
%75 = sub nsw i32 0, %74
%76 = icmp eq i32 %72, %75
br i1 %76, label %80, label %77
77: ; preds = %73
%78 = tail call i32 @axxia_i2c_init(ptr noundef nonnull %0) #3
%79 = load i32, ptr %38, align 4, !tbaa !19
br label %80
80: ; preds = %77, %73, %68
%81 = phi i32 [ %79, %77 ], [ %72, %73 ], [ %72, %68 ]
ret i32 %81
}
declare i64 @i2c_m_recv_len(ptr noundef) local_unnamed_addr #1
declare i32 @axxia_i2c_set_addr(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @writel(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @axxia_i2c_fill_tx_fifo(ptr noundef) local_unnamed_addr #1
declare i32 @reinit_completion(ptr noundef) local_unnamed_addr #1
declare i32 @i2c_int_enable(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @wait_for_completion_timeout(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @axxia_i2c_handle_seq_nak(ptr noundef) local_unnamed_addr #1
declare i32 @axxia_i2c_init(ptr noundef) local_unnamed_addr #1
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @dev_warn(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i2c_recover_bus(ptr noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"i2c_msg", !6, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"axxia_i2c_dev", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !13, i64 16, !6, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !14, i64 56}
!13 = !{!"long", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !14, i64 56}
!17 = !{!12, !14, i64 48}
!18 = !{!12, !6, i64 0}
!19 = !{!12, !6, i64 4}
!20 = !{!12, !6, i64 12}
| ; ModuleID = 'AnghaBench/linux/drivers/i2c/busses/extr_i2c-axxia.c_axxia_i2c_xfer_seq.c'
source_filename = "AnghaBench/linux/drivers/i2c/busses/extr_i2c-axxia.c_axxia_i2c_xfer_seq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MST_STATUS_ERR = common local_unnamed_addr global i32 0, align 4
@MST_STATUS_SS = common local_unnamed_addr global i32 0, align 4
@MST_STATUS_RFL = common local_unnamed_addr global i32 0, align 4
@I2C_SMBUS_BLOCK_MAX = common local_unnamed_addr global i32 0, align 4
@MST_TX_XFER = common local_unnamed_addr global i64 0, align 8
@MST_RX_XFER = common local_unnamed_addr global i64 0, align 8
@CMD_SEQUENCE = common local_unnamed_addr global i32 0, align 4
@MST_COMMAND = common local_unnamed_addr global i64 0, align 8
@I2C_XFER_TIMEOUT = common local_unnamed_addr global i32 0, align 4
@ENXIO = common local_unnamed_addr global i32 0, align 4
@CMD_BUSY = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"busy after xfer\0A\00", align 1
@ETIMEDOUT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @axxia_i2c_xfer_seq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @axxia_i2c_xfer_seq(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @MST_STATUS_ERR, align 4, !tbaa !6
%4 = load i32, ptr @MST_STATUS_SS, align 4, !tbaa !6
%5 = or i32 %4, %3
%6 = load i32, ptr @MST_STATUS_RFL, align 4, !tbaa !6
%7 = or i32 %5, %6
%8 = getelementptr inbounds i8, ptr %1, i64 4
%9 = tail call i64 @i2c_m_recv_len(ptr noundef nonnull %8) #3
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, ptr %8, ptr @I2C_SMBUS_BLOCK_MAX
%12 = load i32, ptr %11, align 4, !tbaa !6
%13 = tail call i32 @axxia_i2c_set_addr(ptr noundef %0, ptr noundef %1) #3
%14 = load i32, ptr %1, align 4, !tbaa !10
%15 = getelementptr inbounds i8, ptr %0, i64 16
%16 = load i64, ptr %15, align 8, !tbaa !12
%17 = load i64, ptr @MST_TX_XFER, align 8, !tbaa !16
%18 = add nsw i64 %17, %16
%19 = tail call i32 @writel(i32 noundef %14, i64 noundef %18) #3
%20 = load i64, ptr %15, align 8, !tbaa !12
%21 = load i64, ptr @MST_RX_XFER, align 8, !tbaa !16
%22 = add nsw i64 %21, %20
%23 = tail call i32 @writel(i32 noundef %12, i64 noundef %22) #3
%24 = getelementptr inbounds i8, ptr %0, i64 56
store ptr %1, ptr %24, align 8, !tbaa !17
%25 = getelementptr inbounds i8, ptr %0, i64 48
store ptr %8, ptr %25, align 8, !tbaa !18
%26 = getelementptr inbounds i8, ptr %0, i64 32
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %26, i8 0, i64 16, i1 false)
store i32 1, ptr %0, align 8, !tbaa !19
%27 = tail call i32 @axxia_i2c_fill_tx_fifo(ptr noundef nonnull %0) #3
%28 = load i32, ptr @CMD_SEQUENCE, align 4, !tbaa !6
%29 = load i64, ptr %15, align 8, !tbaa !12
%30 = load i64, ptr @MST_COMMAND, align 8, !tbaa !16
%31 = add nsw i64 %30, %29
%32 = tail call i32 @writel(i32 noundef %28, i64 noundef %31) #3
%33 = getelementptr inbounds i8, ptr %0, i64 24
%34 = tail call i32 @reinit_completion(ptr noundef nonnull %33) #3
%35 = tail call i32 @i2c_int_enable(ptr noundef nonnull %0, i32 noundef %7) #3
%36 = load i32, ptr @I2C_XFER_TIMEOUT, align 4, !tbaa !6
%37 = tail call i64 @wait_for_completion_timeout(ptr noundef nonnull %33, i32 noundef %36) #3
%38 = getelementptr inbounds i8, ptr %0, i64 4
%39 = load i32, ptr %38, align 4, !tbaa !20
%40 = load i32, ptr @ENXIO, align 4, !tbaa !6
%41 = sub nsw i32 0, %40
%42 = icmp eq i32 %39, %41
br i1 %42, label %43, label %48
43: ; preds = %2
%44 = tail call i64 @axxia_i2c_handle_seq_nak(ptr noundef nonnull %0) #3
%45 = icmp eq i64 %44, 0
br i1 %45, label %60, label %46
46: ; preds = %43
%47 = tail call i32 @axxia_i2c_init(ptr noundef nonnull %0) #3
br label %60
48: ; preds = %2
%49 = load i64, ptr %15, align 8, !tbaa !12
%50 = load i64, ptr @MST_COMMAND, align 8, !tbaa !16
%51 = add nsw i64 %50, %49
%52 = tail call i32 @readl(i64 noundef %51) #3
%53 = load i32, ptr @CMD_BUSY, align 4, !tbaa !6
%54 = and i32 %53, %52
%55 = icmp eq i32 %54, 0
br i1 %55, label %60, label %56
56: ; preds = %48
%57 = getelementptr inbounds i8, ptr %0, i64 12
%58 = load i32, ptr %57, align 4, !tbaa !21
%59 = tail call i32 @dev_warn(i32 noundef %58, ptr noundef nonnull @.str) #3
br label %60
60: ; preds = %48, %56, %43, %46
%61 = icmp eq i64 %37, 0
br i1 %61, label %62, label %68
62: ; preds = %60
%63 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%64 = sub nsw i32 0, %63
store i32 %64, ptr %38, align 4, !tbaa !20
%65 = getelementptr inbounds i8, ptr %0, i64 8
%66 = tail call i32 @i2c_recover_bus(ptr noundef nonnull %65) #3
%67 = tail call i32 @axxia_i2c_init(ptr noundef nonnull %0) #3
br label %68
68: ; preds = %62, %60
%69 = load i32, ptr %38, align 4, !tbaa !20
%70 = tail call i64 @unlikely(i32 noundef %69) #3
%71 = icmp eq i64 %70, 0
%72 = load i32, ptr %38, align 4, !tbaa !20
br i1 %71, label %80, label %73
73: ; preds = %68
%74 = load i32, ptr @ENXIO, align 4, !tbaa !6
%75 = sub nsw i32 0, %74
%76 = icmp eq i32 %72, %75
br i1 %76, label %80, label %77
77: ; preds = %73
%78 = tail call i32 @axxia_i2c_init(ptr noundef nonnull %0) #3
%79 = load i32, ptr %38, align 4, !tbaa !20
br label %80
80: ; preds = %77, %73, %68
%81 = phi i32 [ %79, %77 ], [ %72, %73 ], [ %72, %68 ]
ret i32 %81
}
declare i64 @i2c_m_recv_len(ptr noundef) local_unnamed_addr #1
declare i32 @axxia_i2c_set_addr(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @writel(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @axxia_i2c_fill_tx_fifo(ptr noundef) local_unnamed_addr #1
declare i32 @reinit_completion(ptr noundef) local_unnamed_addr #1
declare i32 @i2c_int_enable(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @wait_for_completion_timeout(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @axxia_i2c_handle_seq_nak(ptr noundef) local_unnamed_addr #1
declare i32 @axxia_i2c_init(ptr noundef) local_unnamed_addr #1
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @dev_warn(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @i2c_recover_bus(ptr noundef) local_unnamed_addr #1
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"i2c_msg", !7, i64 0}
!12 = !{!13, !14, i64 16}
!13 = !{!"axxia_i2c_dev", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !14, i64 16, !7, i64 24, !14, i64 32, !14, i64 40, !15, i64 48, !15, i64 56}
!14 = !{!"long", !8, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !15, i64 56}
!18 = !{!13, !15, i64 48}
!19 = !{!13, !7, i64 0}
!20 = !{!13, !7, i64 4}
!21 = !{!13, !7, i64 12}
| linux_drivers_i2c_busses_extr_i2c-axxia.c_axxia_i2c_xfer_seq |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi.c_hdmi_phy_wait_i2c_done.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi.c_hdmi_phy_wait_i2c_done.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@HDMI_IH_I2CMPHY_STAT0 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hdmi_phy_wait_i2c_done], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @hdmi_phy_wait_i2c_done(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @HDMI_IH_I2CMPHY_STAT0, align 4, !tbaa !5
%4 = tail call i32 @hdmi_readb(ptr noundef %0, i32 noundef %3) #2
%5 = and i32 %4, 3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %2, %10
%8 = phi i32 [ %11, %10 ], [ %1, %2 ]
%9 = icmp eq i32 %8, 0
br i1 %9, label %21, label %10
10: ; preds = %7
%11 = add nsw i32 %8, -1
%12 = tail call i32 @udelay(i32 noundef 1000) #2
%13 = load i32, ptr @HDMI_IH_I2CMPHY_STAT0, align 4, !tbaa !5
%14 = tail call i32 @hdmi_readb(ptr noundef %0, i32 noundef %13) #2
%15 = and i32 %14, 3
%16 = icmp eq i32 %15, 0
br i1 %16, label %7, label %17, !llvm.loop !9
17: ; preds = %10, %2
%18 = phi i32 [ %5, %2 ], [ %15, %10 ]
%19 = load i32, ptr @HDMI_IH_I2CMPHY_STAT0, align 4, !tbaa !5
%20 = tail call i32 @hdmi_writeb(ptr noundef %0, i32 noundef %18, i32 noundef %19) #2
br label %21
21: ; preds = %7, %17
%22 = phi i32 [ 1, %17 ], [ 0, %7 ]
ret i32 %22
}
declare i32 @hdmi_readb(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
declare i32 @hdmi_writeb(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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi.c_hdmi_phy_wait_i2c_done.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi.c_hdmi_phy_wait_i2c_done.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HDMI_IH_I2CMPHY_STAT0 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hdmi_phy_wait_i2c_done], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @hdmi_phy_wait_i2c_done(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @HDMI_IH_I2CMPHY_STAT0, align 4, !tbaa !6
%4 = tail call i32 @hdmi_readb(ptr noundef %0, i32 noundef %3) #2
%5 = and i32 %4, 3
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %2, %10
%8 = phi i32 [ %11, %10 ], [ %1, %2 ]
%9 = icmp eq i32 %8, 0
br i1 %9, label %21, label %10
10: ; preds = %7
%11 = add nsw i32 %8, -1
%12 = tail call i32 @udelay(i32 noundef 1000) #2
%13 = load i32, ptr @HDMI_IH_I2CMPHY_STAT0, align 4, !tbaa !6
%14 = tail call i32 @hdmi_readb(ptr noundef %0, i32 noundef %13) #2
%15 = and i32 %14, 3
%16 = icmp eq i32 %15, 0
br i1 %16, label %7, label %17, !llvm.loop !10
17: ; preds = %10, %2
%18 = phi i32 [ %5, %2 ], [ %15, %10 ]
%19 = load i32, ptr @HDMI_IH_I2CMPHY_STAT0, align 4, !tbaa !6
%20 = tail call i32 @hdmi_writeb(ptr noundef %0, i32 noundef %18, i32 noundef %19) #2
br label %21
21: ; preds = %7, %17
%22 = phi i32 [ 1, %17 ], [ 0, %7 ]
ret i32 %22
}
declare i32 @hdmi_readb(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #1
declare i32 @hdmi_writeb(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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| linux_drivers_gpu_drm_bridge_synopsys_extr_dw-hdmi.c_hdmi_phy_wait_i2c_done |
; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_tty_outq.c_ttyoutq_setsize.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_tty_outq.c_ttyoutq_setsize.c"
target datalayout = "e-m:e-p270:32:32-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.ttyoutq = type { i64, i64 }
@TTYOUTQ_DATASIZE = dso_local local_unnamed_addr global i32 0, align 4
@ttyoutq_zone = dso_local local_unnamed_addr global i32 0, align 4
@M_WAITOK = dso_local local_unnamed_addr global i32 0, align 4
@ENXIO = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ttyoutq_setsize(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @TTYOUTQ_DATASIZE, align 4, !tbaa !5
%5 = tail call i64 @howmany(i64 noundef %2, i32 noundef %4) #2
store i64 %5, ptr %0, align 8, !tbaa !9
%6 = getelementptr inbounds %struct.ttyoutq, ptr %0, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = icmp sgt i64 %5, %7
br i1 %8, label %9, label %26
9: ; preds = %3, %21
%10 = tail call i32 @tty_unlock(ptr noundef %1) #2
%11 = load i32, ptr @ttyoutq_zone, align 4, !tbaa !5
%12 = load i32, ptr @M_WAITOK, align 4, !tbaa !5
%13 = tail call ptr @uma_zalloc(i32 noundef %11, i32 noundef %12) #2
%14 = tail call i32 @tty_lock(ptr noundef %1) #2
%15 = tail call i64 @tty_gone(ptr noundef %1) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %9
%18 = load i32, ptr @ttyoutq_zone, align 4, !tbaa !5
%19 = tail call i32 @uma_zfree(i32 noundef %18, ptr noundef %13) #2
%20 = load i32, ptr @ENXIO, align 4, !tbaa !5
br label %26
21: ; preds = %9
%22 = tail call i32 @TTYOUTQ_INSERT_TAIL(ptr noundef nonnull %0, ptr noundef %13) #2
%23 = load i64, ptr %0, align 8, !tbaa !9
%24 = load i64, ptr %6, align 8, !tbaa !12
%25 = icmp sgt i64 %23, %24
br i1 %25, label %9, label %26, !llvm.loop !13
26: ; preds = %21, %3, %17
%27 = phi i32 [ %20, %17 ], [ 0, %3 ], [ 0, %21 ]
ret i32 %27
}
declare i64 @howmany(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tty_unlock(ptr noundef) local_unnamed_addr #1
declare ptr @uma_zalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tty_lock(ptr noundef) local_unnamed_addr #1
declare i64 @tty_gone(ptr noundef) local_unnamed_addr #1
declare i32 @uma_zfree(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @TTYOUTQ_INSERT_TAIL(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, !11, i64 0}
!10 = !{!"ttyoutq", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_tty_outq.c_ttyoutq_setsize.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_tty_outq.c_ttyoutq_setsize.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TTYOUTQ_DATASIZE = common local_unnamed_addr global i32 0, align 4
@ttyoutq_zone = common local_unnamed_addr global i32 0, align 4
@M_WAITOK = common local_unnamed_addr global i32 0, align 4
@ENXIO = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ttyoutq_setsize(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @TTYOUTQ_DATASIZE, align 4, !tbaa !6
%5 = tail call i64 @howmany(i64 noundef %2, i32 noundef %4) #2
store i64 %5, ptr %0, align 8, !tbaa !10
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = icmp sgt i64 %5, %7
br i1 %8, label %9, label %26
9: ; preds = %3, %21
%10 = tail call i32 @tty_unlock(ptr noundef %1) #2
%11 = load i32, ptr @ttyoutq_zone, align 4, !tbaa !6
%12 = load i32, ptr @M_WAITOK, align 4, !tbaa !6
%13 = tail call ptr @uma_zalloc(i32 noundef %11, i32 noundef %12) #2
%14 = tail call i32 @tty_lock(ptr noundef %1) #2
%15 = tail call i64 @tty_gone(ptr noundef %1) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %9
%18 = load i32, ptr @ttyoutq_zone, align 4, !tbaa !6
%19 = tail call i32 @uma_zfree(i32 noundef %18, ptr noundef %13) #2
%20 = load i32, ptr @ENXIO, align 4, !tbaa !6
br label %26
21: ; preds = %9
%22 = tail call i32 @TTYOUTQ_INSERT_TAIL(ptr noundef nonnull %0, ptr noundef %13) #2
%23 = load i64, ptr %0, align 8, !tbaa !10
%24 = load i64, ptr %6, align 8, !tbaa !13
%25 = icmp sgt i64 %23, %24
br i1 %25, label %9, label %26, !llvm.loop !14
26: ; preds = %21, %3, %17
%27 = phi i32 [ %20, %17 ], [ 0, %3 ], [ 0, %21 ]
ret i32 %27
}
declare i64 @howmany(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tty_unlock(ptr noundef) local_unnamed_addr #1
declare ptr @uma_zalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tty_lock(ptr noundef) local_unnamed_addr #1
declare i64 @tty_gone(ptr noundef) local_unnamed_addr #1
declare i32 @uma_zfree(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @TTYOUTQ_INSERT_TAIL(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, !12, i64 0}
!11 = !{!"ttyoutq", !12, i64 0, !12, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_kern_extr_tty_outq.c_ttyoutq_setsize |
; ModuleID = 'AnghaBench/lab/engine/code/game/extr_bg_pmove.c_PM_AddTouchEnt.c'
source_filename = "AnghaBench/lab/engine/code/game/extr_bg_pmove.c_PM_AddTouchEnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32, i32* }
@ENTITYNUM_WORLD = dso_local local_unnamed_addr global i32 0, align 4
@pm = dso_local local_unnamed_addr global %struct.TYPE_2__* null, align 8
@MAXTOUCH = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nofree norecurse nosync nounwind uwtable
define dso_local void @PM_AddTouchEnt(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, i32* @ENTITYNUM_WORLD, align 4, !tbaa !5
%3 = icmp eq i32 %2, %0
br i1 %3, label %29, label %4
4: ; preds = %1
%5 = load %struct.TYPE_2__*, %struct.TYPE_2__** @pm, align 8, !tbaa !9
%6 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 0, i32 0
%7 = load i32, i32* %6, align 8, !tbaa !11
%8 = load i32, i32* @MAXTOUCH, align 4, !tbaa !5
%9 = icmp eq i32 %7, %8
br i1 %9, label %29, label %10
10: ; preds = %4
%11 = icmp sgt i32 %7, 0
%12 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %5, i64 0, i32 1
%13 = load i32*, i32** %12, align 8, !tbaa !13
br i1 %11, label %14, label %24
14: ; preds = %10
%15 = zext i32 %7 to i64
br label %18
16: ; preds = %18
%17 = icmp eq i64 %23, %15
br i1 %17, label %24, label %18, !llvm.loop !14
18: ; preds = %14, %16
%19 = phi i64 [ 0, %14 ], [ %23, %16 ]
%20 = getelementptr inbounds i32, i32* %13, i64 %19
%21 = load i32, i32* %20, align 4, !tbaa !5
%22 = icmp eq i32 %21, %0
%23 = add nuw nsw i64 %19, 1
br i1 %22, label %29, label %16
24: ; preds = %16, %10
%25 = sext i32 %7 to i64
%26 = getelementptr inbounds i32, i32* %13, i64 %25
store i32 %0, i32* %26, align 4, !tbaa !5
%27 = load i32, i32* %6, align 8, !tbaa !11
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6, align 8, !tbaa !11
br label %29
29: ; preds = %18, %4, %1, %24
ret void
}
attributes #0 = { nofree norecurse nosync nounwind uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{!"Ubuntu clang version 14.0.0-1ubuntu1.1"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"TYPE_2__", !6, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/lab/engine/code/game/extr_bg_pmove.c_PM_AddTouchEnt.c'
source_filename = "AnghaBench/lab/engine/code/game/extr_bg_pmove.c_PM_AddTouchEnt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENTITYNUM_WORLD = common local_unnamed_addr global i32 0, align 4
@pm = common local_unnamed_addr global ptr null, align 8
@MAXTOUCH = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define void @PM_AddTouchEnt(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ENTITYNUM_WORLD, align 4, !tbaa !6
%3 = icmp eq i32 %2, %0
br i1 %3, label %28, label %4
4: ; preds = %1
%5 = load ptr, ptr @pm, align 8, !tbaa !10
%6 = load i32, ptr %5, align 8, !tbaa !12
%7 = load i32, ptr @MAXTOUCH, align 4, !tbaa !6
%8 = icmp eq i32 %6, %7
br i1 %8, label %28, label %9
9: ; preds = %4
%10 = icmp sgt i32 %6, 0
%11 = getelementptr inbounds i8, ptr %5, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !14
br i1 %10, label %13, label %23
13: ; preds = %9
%14 = zext nneg i32 %6 to i64
br label %18
15: ; preds = %18
%16 = add nuw nsw i64 %19, 1
%17 = icmp eq i64 %16, %14
br i1 %17, label %23, label %18, !llvm.loop !15
18: ; preds = %13, %15
%19 = phi i64 [ 0, %13 ], [ %16, %15 ]
%20 = getelementptr inbounds i32, ptr %12, i64 %19
%21 = load i32, ptr %20, align 4, !tbaa !6
%22 = icmp eq i32 %21, %0
br i1 %22, label %28, label %15
23: ; preds = %15, %9
%24 = sext i32 %6 to i64
%25 = getelementptr inbounds i32, ptr %12, i64 %24
store i32 %0, ptr %25, align 4, !tbaa !6
%26 = load i32, ptr %5, align 8, !tbaa !12
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 8, !tbaa !12
br label %28
28: ; preds = %18, %4, %1, %23
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 = !{!"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, !11, i64 8}
!14 = !{!13, !11, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| lab_engine_code_game_extr_bg_pmove.c_PM_AddTouchEnt |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_client_stop.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_client_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 @hclge_client_stop], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @hclge_client_stop(ptr noundef %0) #0 {
%2 = tail call ptr @hclge_get_vport(ptr noundef %0) #2
%3 = tail call i32 @hclge_vport_stop(ptr noundef %2) #2
ret void
}
declare ptr @hclge_get_vport(ptr noundef) local_unnamed_addr #1
declare i32 @hclge_vport_stop(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_client_stop.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_client_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 @hclge_client_stop], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @hclge_client_stop(ptr noundef %0) #0 {
%2 = tail call ptr @hclge_get_vport(ptr noundef %0) #2
%3 = tail call i32 @hclge_vport_stop(ptr noundef %2) #2
ret void
}
declare ptr @hclge_get_vport(ptr noundef) local_unnamed_addr #1
declare i32 @hclge_vport_stop(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_net_ethernet_hisilicon_hns3_hns3pf_extr_hclge_main.c_hclge_client_stop |
; ModuleID = 'AnghaBench/sumatrapdf/mupdf/source/tools/extr_pdfsign.c_list_signature.c'
source_filename = "AnghaBench/sumatrapdf/mupdf/source/tools/extr_pdfsign.c_list_signature.c"
target datalayout = "e-m:e-p270:32:32-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 [25 x i8] c"%5d: signature name: %s\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @list_signature], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @list_signature(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca [500 x i8], align 16
call void @llvm.lifetime.start.p0(i64 500, ptr nonnull %4) #3
%5 = call i32 @pdf_signature_designated_name(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %4, i32 noundef 500) #3
%6 = call i32 @pdf_to_num(ptr noundef %0, ptr noundef %2) #3
%7 = call i32 @printf(ptr noundef nonnull @.str, i32 noundef %6, ptr noundef nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 500, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @pdf_signature_designated_name(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @pdf_to_num(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/sumatrapdf/mupdf/source/tools/extr_pdfsign.c_list_signature.c'
source_filename = "AnghaBench/sumatrapdf/mupdf/source/tools/extr_pdfsign.c_list_signature.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 [25 x i8] c"%5d: signature name: %s\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @list_signature], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @list_signature(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca [500 x i8], align 1
call void @llvm.lifetime.start.p0(i64 500, ptr nonnull %4) #3
%5 = call i32 @pdf_signature_designated_name(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %4, i32 noundef 500) #3
%6 = call i32 @pdf_to_num(ptr noundef %0, ptr noundef %2) #3
%7 = call i32 @printf(ptr noundef nonnull @.str, i32 noundef %6, ptr noundef nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 500, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @pdf_signature_designated_name(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @pdf_to_num(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| sumatrapdf_mupdf_source_tools_extr_pdfsign.c_list_signature |
; ModuleID = 'AnghaBench/fastsocket/kernel/tools/perf/util/extr_python.c_pyrf_cpu_map__setup_types.c'
source_filename = "AnghaBench/fastsocket/kernel/tools/perf/util/extr_python.c_pyrf_cpu_map__setup_types.c"
target datalayout = "e-m:e-p270:32:32-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 }
@PyType_GenericNew = dso_local local_unnamed_addr global i32 0, align 4
@pyrf_cpu_map__type = dso_local global %struct.TYPE_3__ zeroinitializer, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pyrf_cpu_map__setup_types], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pyrf_cpu_map__setup_types() #0 {
%1 = load i32, ptr @PyType_GenericNew, align 4, !tbaa !5
store i32 %1, ptr @pyrf_cpu_map__type, align 4, !tbaa !9
%2 = tail call i32 @PyType_Ready(ptr noundef nonnull @pyrf_cpu_map__type) #2
ret i32 %2
}
declare i32 @PyType_Ready(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/tools/perf/util/extr_python.c_pyrf_cpu_map__setup_types.c'
source_filename = "AnghaBench/fastsocket/kernel/tools/perf/util/extr_python.c_pyrf_cpu_map__setup_types.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 }
@PyType_GenericNew = common local_unnamed_addr global i32 0, align 4
@pyrf_cpu_map__type = common global %struct.TYPE_3__ zeroinitializer, align 4
@llvm.used = appending global [1 x ptr] [ptr @pyrf_cpu_map__setup_types], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @pyrf_cpu_map__setup_types() #0 {
%1 = load i32, ptr @PyType_GenericNew, align 4, !tbaa !6
store i32 %1, ptr @pyrf_cpu_map__type, align 4, !tbaa !10
%2 = tail call i32 @PyType_Ready(ptr noundef nonnull @pyrf_cpu_map__type) #2
ret i32 %2
}
declare i32 @PyType_Ready(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_3__", !7, i64 0}
| fastsocket_kernel_tools_perf_util_extr_python.c_pyrf_cpu_map__setup_types |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/cxgb4/extr_id_table.c_c4iw_id_free.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/cxgb4/extr_id_table.c_c4iw_id_free.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.c4iw_id_table = type { i32, i32, i64 }
; Function Attrs: nounwind uwtable
define dso_local void @c4iw_id_free(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.c4iw_id_table, ptr %0, i64 0, i32 2
%4 = load i64, ptr %3, align 8, !tbaa !5
%5 = sub nsw i64 %1, %4
%6 = and i64 %5, 2147483648
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @BUG_ON(i32 noundef %8) #2
%10 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #2
%11 = getelementptr inbounds %struct.c4iw_id_table, ptr %0, i64 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !11
%13 = tail call i32 @clear_bit(i64 noundef %5, i32 noundef %12) #2
%14 = tail call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #2
ret void
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @clear_bit(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"c4iw_id_table", !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 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/cxgb4/extr_id_table.c_c4iw_id_free.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/cxgb4/extr_id_table.c_c4iw_id_free.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @c4iw_id_free(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load i64, ptr %3, align 8, !tbaa !6
%5 = sub nsw i64 %1, %4
%6 = and i64 %5, 2147483648
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @BUG_ON(i32 noundef %8) #2
%10 = tail call i32 @spin_lock_irqsave(ptr noundef %0, i64 noundef undef) #2
%11 = getelementptr inbounds i8, ptr %0, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = tail call i32 @clear_bit(i64 noundef %5, i32 noundef %12) #2
%14 = tail call i32 @spin_unlock_irqrestore(ptr noundef %0, i64 noundef undef) #2
ret void
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @clear_bit(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"c4iw_id_table", !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 = !{!"long", !9, i64 0}
!12 = !{!7, !8, i64 4}
| fastsocket_kernel_drivers_infiniband_hw_cxgb4_extr_id_table.c_c4iw_id_free |
; ModuleID = 'AnghaBench/linux/drivers/staging/media/imx/extr_imx-ic-common.c_imx_media_ic_register.c'
source_filename = "AnghaBench/linux/drivers/staging/media/imx/extr_imx-ic-common.c_imx_media_ic_register.c"
target datalayout = "e-m:e-p270:32:32-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_ic_priv = type { i64, %struct.v4l2_subdev, ptr, ptr }
%struct.v4l2_subdev = type { i32, i32, i32, i32, %struct.TYPE_4__, i32 }
%struct.TYPE_4__ = type { i32, i32 }
%struct.TYPE_6__ = type { ptr, ptr, i32, i32, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@IC_TASK_PRP = dso_local local_unnamed_addr global i64 0, align 8
@IC_TASK_ENCODER = dso_local local_unnamed_addr global i64 0, align 8
@IC_TASK_VIEWFINDER = dso_local local_unnamed_addr global i64 0, align 8
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@ic_ops = dso_local local_unnamed_addr global ptr null, align 8
@MEDIA_ENT_F_PROC_VIDEO_SCALER = dso_local local_unnamed_addr global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_DEVNODE = dso_local local_unnamed_addr global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_EVENTS = dso_local local_unnamed_addr global i32 0, align 4
@switch.table.imx_media_ic_register = private unnamed_addr constant [3 x ptr] [ptr @IC_TASK_VIEWFINDER, ptr @IC_TASK_ENCODER, ptr @IC_TASK_PRP], align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @imx_media_ic_register(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%6 = tail call ptr @devm_kzalloc(ptr noundef %1, i32 noundef 56, i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%10 = sub nsw i32 0, %9
br label %70
11: ; preds = %4
%12 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 3
store ptr %1, ptr %12, align 8, !tbaa !9
%13 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 2
store ptr %2, ptr %13, align 8, !tbaa !15
%14 = add i32 %3, -128
%15 = icmp ult i32 %14, 3
br i1 %15, label %19, label %16
16: ; preds = %11
%17 = load i32, ptr @EINVAL, align 4, !tbaa !5
%18 = sub nsw i32 0, %17
br label %70
19: ; preds = %11
%20 = zext nneg i32 %14 to i64
%21 = getelementptr inbounds [3 x ptr], ptr @switch.table.imx_media_ic_register, i64 0, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load i64, ptr %22, align 8, !tbaa !16
store i64 %23, ptr %6, align 8, !tbaa !17
%24 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 1
%25 = load ptr, ptr @ic_ops, align 8, !tbaa !18
%26 = getelementptr inbounds ptr, ptr %25, i64 %23
%27 = load ptr, ptr %26, align 8, !tbaa !18
%28 = getelementptr inbounds %struct.TYPE_6__, ptr %27, i64 0, i32 4
%29 = load i32, ptr %28, align 8, !tbaa !19
%30 = tail call i32 @v4l2_subdev_init(ptr noundef nonnull %24, i32 noundef %29) #2
%31 = tail call i32 @v4l2_set_subdevdata(ptr noundef nonnull %24, ptr noundef nonnull %6) #2
%32 = load ptr, ptr @ic_ops, align 8, !tbaa !18
%33 = load i64, ptr %6, align 8, !tbaa !17
%34 = getelementptr inbounds ptr, ptr %32, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !18
%36 = getelementptr inbounds %struct.TYPE_6__, ptr %35, i64 0, i32 2
%37 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 1, i32 4
%38 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 1, i32 4, i32 1
%39 = load <2 x i32>, ptr %36, align 8, !tbaa !5
store <2 x i32> %39, ptr %38, align 4, !tbaa !5
%40 = load i32, ptr @MEDIA_ENT_F_PROC_VIDEO_SCALER, align 4, !tbaa !5
store i32 %40, ptr %37, align 8, !tbaa !21
%41 = load ptr, ptr %1, align 8, !tbaa !22
%42 = load i32, ptr %41, align 4, !tbaa !24
%43 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 1, i32 3
store i32 %42, ptr %43, align 4, !tbaa !26
%44 = load i32, ptr @V4L2_SUBDEV_FL_HAS_DEVNODE, align 4, !tbaa !5
%45 = load i32, ptr @V4L2_SUBDEV_FL_HAS_EVENTS, align 4, !tbaa !5
%46 = or i32 %45, %44
store i32 %46, ptr %24, align 8, !tbaa !27
%47 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 1, i32 1
store i32 %3, ptr %47, align 4, !tbaa !28
%48 = getelementptr inbounds %struct.imx_ic_priv, ptr %6, i64 0, i32 1, i32 2
%49 = load i32, ptr %48, align 8, !tbaa !29
%50 = tail call i32 @ipu_get_num(ptr noundef %2) #2
%51 = tail call i32 @imx_media_grp_id_to_sd_name(i32 noundef %49, i32 noundef 4, i32 noundef %3, i32 noundef %50) #2
%52 = load ptr, ptr @ic_ops, align 8, !tbaa !18
%53 = load i64, ptr %6, align 8, !tbaa !17
%54 = getelementptr inbounds ptr, ptr %52, i64 %53
%55 = load ptr, ptr %54, align 8, !tbaa !18
%56 = load ptr, ptr %55, align 8, !tbaa !30
%57 = tail call i32 %56(ptr noundef nonnull %6) #2
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %70
59: ; preds = %19
%60 = tail call i32 @v4l2_device_register_subdev(ptr noundef %0, ptr noundef nonnull %24) #2
%61 = icmp eq i32 %60, 0
br i1 %61, label %73, label %62
62: ; preds = %59
%63 = load ptr, ptr @ic_ops, align 8, !tbaa !18
%64 = load i64, ptr %6, align 8, !tbaa !17
%65 = getelementptr inbounds ptr, ptr %63, i64 %64
%66 = load ptr, ptr %65, align 8, !tbaa !18
%67 = getelementptr inbounds %struct.TYPE_6__, ptr %66, i64 0, i32 1
%68 = load ptr, ptr %67, align 8, !tbaa !31
%69 = tail call i32 %68(ptr noundef nonnull %6) #2
br label %70
70: ; preds = %19, %8, %16, %62
%71 = phi i32 [ %60, %62 ], [ %18, %16 ], [ %10, %8 ], [ %57, %19 ]
%72 = tail call ptr @ERR_PTR(i32 noundef %71) #2
br label %73
73: ; preds = %70, %59
%74 = phi ptr [ %24, %59 ], [ %72, %70 ]
ret ptr %74
}
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_subdev_init(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_set_subdevdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @imx_media_grp_id_to_sd_name(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ipu_get_num(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_device_register_subdev(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, !14, i64 48}
!10 = !{!"imx_ic_priv", !11, i64 0, !12, i64 8, !14, i64 40, !14, i64 48}
!11 = !{!"long", !7, i64 0}
!12 = !{!"v4l2_subdev", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !13, i64 16, !6, i64 24}
!13 = !{!"TYPE_4__", !6, i64 0, !6, i64 4}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !14, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !11, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !6, i64 24}
!20 = !{!"TYPE_6__", !14, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !6, i64 24}
!21 = !{!10, !6, i64 24}
!22 = !{!23, !14, i64 0}
!23 = !{!"device", !14, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"TYPE_5__", !6, i64 0}
!26 = !{!10, !6, i64 20}
!27 = !{!10, !6, i64 8}
!28 = !{!10, !6, i64 12}
!29 = !{!10, !6, i64 16}
!30 = !{!20, !14, i64 0}
!31 = !{!20, !14, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/media/imx/extr_imx-ic-common.c_imx_media_ic_register.c'
source_filename = "AnghaBench/linux/drivers/staging/media/imx/extr_imx-ic-common.c_imx_media_ic_register.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
@IC_TASK_PRP = common local_unnamed_addr global i64 0, align 8
@IC_TASK_ENCODER = common local_unnamed_addr global i64 0, align 8
@IC_TASK_VIEWFINDER = common local_unnamed_addr global i64 0, align 8
@EINVAL = common local_unnamed_addr global i32 0, align 4
@ic_ops = common local_unnamed_addr global ptr null, align 8
@MEDIA_ENT_F_PROC_VIDEO_SCALER = common local_unnamed_addr global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_DEVNODE = common local_unnamed_addr global i32 0, align 4
@V4L2_SUBDEV_FL_HAS_EVENTS = common local_unnamed_addr global i32 0, align 4
@switch.table.imx_media_ic_register = private unnamed_addr constant [3 x ptr] [ptr @IC_TASK_VIEWFINDER, ptr @IC_TASK_ENCODER, ptr @IC_TASK_PRP], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @imx_media_ic_register(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%6 = tail call ptr @devm_kzalloc(ptr noundef %1, i32 noundef 56, i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%10 = sub nsw i32 0, %9
br label %70
11: ; preds = %4
%12 = getelementptr inbounds i8, ptr %6, i64 48
store ptr %1, ptr %12, align 8, !tbaa !10
%13 = getelementptr inbounds i8, ptr %6, i64 40
store ptr %2, ptr %13, align 8, !tbaa !16
%14 = add i32 %3, -128
%15 = icmp ult i32 %14, 3
br i1 %15, label %19, label %16
16: ; preds = %11
%17 = load i32, ptr @EINVAL, align 4, !tbaa !6
%18 = sub nsw i32 0, %17
br label %70
19: ; preds = %11
%20 = zext nneg i32 %14 to i64
%21 = getelementptr inbounds [3 x ptr], ptr @switch.table.imx_media_ic_register, i64 0, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load i64, ptr %22, align 8, !tbaa !17
store i64 %23, ptr %6, align 8, !tbaa !18
%24 = getelementptr inbounds i8, ptr %6, i64 8
%25 = load ptr, ptr @ic_ops, align 8, !tbaa !19
%26 = getelementptr inbounds ptr, ptr %25, i64 %23
%27 = load ptr, ptr %26, align 8, !tbaa !19
%28 = getelementptr inbounds i8, ptr %27, i64 24
%29 = load i32, ptr %28, align 8, !tbaa !20
%30 = tail call i32 @v4l2_subdev_init(ptr noundef nonnull %24, i32 noundef %29) #2
%31 = tail call i32 @v4l2_set_subdevdata(ptr noundef nonnull %24, ptr noundef nonnull %6) #2
%32 = load ptr, ptr @ic_ops, align 8, !tbaa !19
%33 = load i64, ptr %6, align 8, !tbaa !18
%34 = getelementptr inbounds ptr, ptr %32, i64 %33
%35 = load ptr, ptr %34, align 8, !tbaa !19
%36 = getelementptr inbounds i8, ptr %35, i64 16
%37 = getelementptr inbounds i8, ptr %6, i64 24
%38 = getelementptr inbounds i8, ptr %6, i64 28
%39 = load <2 x i32>, ptr %36, align 8, !tbaa !6
store <2 x i32> %39, ptr %38, align 4, !tbaa !6
%40 = load i32, ptr @MEDIA_ENT_F_PROC_VIDEO_SCALER, align 4, !tbaa !6
store i32 %40, ptr %37, align 8, !tbaa !22
%41 = load ptr, ptr %1, align 8, !tbaa !23
%42 = load i32, ptr %41, align 4, !tbaa !25
%43 = getelementptr inbounds i8, ptr %6, i64 20
store i32 %42, ptr %43, align 4, !tbaa !27
%44 = load i32, ptr @V4L2_SUBDEV_FL_HAS_DEVNODE, align 4, !tbaa !6
%45 = load i32, ptr @V4L2_SUBDEV_FL_HAS_EVENTS, align 4, !tbaa !6
%46 = or i32 %45, %44
store i32 %46, ptr %24, align 8, !tbaa !28
%47 = getelementptr inbounds i8, ptr %6, i64 12
store i32 %3, ptr %47, align 4, !tbaa !29
%48 = getelementptr inbounds i8, ptr %6, i64 16
%49 = load i32, ptr %48, align 8, !tbaa !30
%50 = tail call i32 @ipu_get_num(ptr noundef %2) #2
%51 = tail call i32 @imx_media_grp_id_to_sd_name(i32 noundef %49, i32 noundef 4, i32 noundef %3, i32 noundef %50) #2
%52 = load ptr, ptr @ic_ops, align 8, !tbaa !19
%53 = load i64, ptr %6, align 8, !tbaa !18
%54 = getelementptr inbounds ptr, ptr %52, i64 %53
%55 = load ptr, ptr %54, align 8, !tbaa !19
%56 = load ptr, ptr %55, align 8, !tbaa !31
%57 = tail call i32 %56(ptr noundef nonnull %6) #2
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %70
59: ; preds = %19
%60 = tail call i32 @v4l2_device_register_subdev(ptr noundef %0, ptr noundef nonnull %24) #2
%61 = icmp eq i32 %60, 0
br i1 %61, label %73, label %62
62: ; preds = %59
%63 = load ptr, ptr @ic_ops, align 8, !tbaa !19
%64 = load i64, ptr %6, align 8, !tbaa !18
%65 = getelementptr inbounds ptr, ptr %63, i64 %64
%66 = load ptr, ptr %65, align 8, !tbaa !19
%67 = getelementptr inbounds i8, ptr %66, i64 8
%68 = load ptr, ptr %67, align 8, !tbaa !32
%69 = tail call i32 %68(ptr noundef nonnull %6) #2
br label %70
70: ; preds = %19, %8, %16, %62
%71 = phi i32 [ %60, %62 ], [ %18, %16 ], [ %10, %8 ], [ %57, %19 ]
%72 = tail call ptr @ERR_PTR(i32 noundef %71) #2
br label %73
73: ; preds = %70, %59
%74 = phi ptr [ %24, %59 ], [ %72, %70 ]
ret ptr %74
}
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_subdev_init(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_set_subdevdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @imx_media_grp_id_to_sd_name(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ipu_get_num(ptr noundef) local_unnamed_addr #1
declare i32 @v4l2_device_register_subdev(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, !15, i64 48}
!11 = !{!"imx_ic_priv", !12, i64 0, !13, i64 8, !15, i64 40, !15, i64 48}
!12 = !{!"long", !8, i64 0}
!13 = !{!"v4l2_subdev", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !14, i64 16, !7, i64 24}
!14 = !{!"TYPE_4__", !7, i64 0, !7, i64 4}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!11, !15, i64 40}
!17 = !{!12, !12, i64 0}
!18 = !{!11, !12, i64 0}
!19 = !{!15, !15, i64 0}
!20 = !{!21, !7, i64 24}
!21 = !{!"TYPE_6__", !15, i64 0, !15, i64 8, !7, i64 16, !7, i64 20, !7, i64 24}
!22 = !{!11, !7, i64 24}
!23 = !{!24, !15, i64 0}
!24 = !{!"device", !15, i64 0}
!25 = !{!26, !7, i64 0}
!26 = !{!"TYPE_5__", !7, i64 0}
!27 = !{!11, !7, i64 20}
!28 = !{!11, !7, i64 8}
!29 = !{!11, !7, i64 12}
!30 = !{!11, !7, i64 16}
!31 = !{!21, !15, i64 0}
!32 = !{!21, !15, i64 8}
| linux_drivers_staging_media_imx_extr_imx-ic-common.c_imx_media_ic_register |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/stm32/extr_stm32-dcmi.c___find_outer_frame_size.c'
source_filename = "AnghaBench/linux/drivers/media/platform/stm32/extr_stm32-dcmi.c___find_outer_frame_size.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.stm32_dcmi = type { i32, ptr }
%struct.v4l2_pix_format = type { i32, i32 }
%struct.dcmi_framesize = type { i32, i32 }
@UINT_MAX = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__find_outer_frame_size], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define internal void @__find_outer_frame_size(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) #0 {
%4 = load i32, ptr %0, align 8, !tbaa !5
%5 = icmp eq i32 %4, 0
br i1 %5, label %78, label %6
6: ; preds = %3
%7 = load i32, ptr @UINT_MAX, align 4, !tbaa !11
%8 = getelementptr inbounds %struct.stm32_dcmi, ptr %0, i64 0, i32 1
%9 = load ptr, ptr %8, align 8, !tbaa !12
%10 = load i32, ptr %1, align 4, !tbaa !13
%11 = getelementptr inbounds %struct.v4l2_pix_format, ptr %1, i64 0, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !15
%13 = zext i32 %4 to i64
%14 = and i64 %13, 1
%15 = icmp eq i32 %4, 1
br i1 %15, label %55, label %16
16: ; preds = %6
%17 = and i64 %13, 4294967294
br label %18
18: ; preds = %18, %16
%19 = phi i64 [ 0, %16 ], [ %52, %18 ]
%20 = phi ptr [ null, %16 ], [ %51, %18 ]
%21 = phi i32 [ %7, %16 ], [ %50, %18 ]
%22 = phi i64 [ 0, %16 ], [ %53, %18 ]
%23 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %19
%24 = load i32, ptr %23, align 4, !tbaa !16
%25 = sub nsw i32 %24, %10
%26 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %19, i32 1
%27 = load i32, ptr %26, align 4, !tbaa !18
%28 = sub nsw i32 %27, %12
%29 = add nsw i32 %28, %25
%30 = icmp sgt i32 %25, -1
%31 = icmp sgt i32 %28, -1
%32 = select i1 %30, i1 %31, i1 false
%33 = icmp ult i32 %29, %21
%34 = select i1 %32, i1 %33, i1 false
%35 = select i1 %34, i32 %29, i32 %21
%36 = select i1 %34, ptr %23, ptr %20
%37 = or disjoint i64 %19, 1
%38 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %37
%39 = load i32, ptr %38, align 4, !tbaa !16
%40 = sub nsw i32 %39, %10
%41 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %37, i32 1
%42 = load i32, ptr %41, align 4, !tbaa !18
%43 = sub nsw i32 %42, %12
%44 = add nsw i32 %43, %40
%45 = icmp sgt i32 %40, -1
%46 = icmp sgt i32 %43, -1
%47 = select i1 %45, i1 %46, i1 false
%48 = icmp ult i32 %44, %35
%49 = select i1 %47, i1 %48, i1 false
%50 = select i1 %49, i32 %44, i32 %35
%51 = select i1 %49, ptr %38, ptr %36
%52 = add nuw nsw i64 %19, 2
%53 = add i64 %22, 2
%54 = icmp eq i64 %53, %17
br i1 %54, label %55, label %18, !llvm.loop !19
55: ; preds = %18, %6
%56 = phi ptr [ undef, %6 ], [ %51, %18 ]
%57 = phi i64 [ 0, %6 ], [ %52, %18 ]
%58 = phi ptr [ null, %6 ], [ %51, %18 ]
%59 = phi i32 [ %7, %6 ], [ %50, %18 ]
%60 = icmp eq i64 %14, 0
br i1 %60, label %75, label %61
61: ; preds = %55
%62 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %57
%63 = load i32, ptr %62, align 4, !tbaa !16
%64 = sub nsw i32 %63, %10
%65 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %57, i32 1
%66 = load i32, ptr %65, align 4, !tbaa !18
%67 = sub nsw i32 %66, %12
%68 = add nsw i32 %67, %64
%69 = icmp sgt i32 %64, -1
%70 = icmp sgt i32 %67, -1
%71 = select i1 %69, i1 %70, i1 false
%72 = icmp ult i32 %68, %59
%73 = select i1 %71, i1 %72, i1 false
%74 = select i1 %73, ptr %62, ptr %58
br label %75
75: ; preds = %55, %61
%76 = phi ptr [ %56, %55 ], [ %74, %61 ]
%77 = icmp eq ptr %76, null
br i1 %77, label %78, label %81
78: ; preds = %3, %75
%79 = getelementptr inbounds %struct.stm32_dcmi, ptr %0, i64 0, i32 1
%80 = load ptr, ptr %79, align 8, !tbaa !12
br label %81
81: ; preds = %78, %75
%82 = phi ptr [ %76, %75 ], [ %80, %78 ]
%83 = load i64, ptr %82, align 4
store i64 %83, ptr %2, align 4
ret void
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"stm32_dcmi", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"v4l2_pix_format", !7, i64 0, !7, i64 4}
!15 = !{!14, !7, i64 4}
!16 = !{!17, !7, i64 0}
!17 = !{!"dcmi_framesize", !7, i64 0, !7, i64 4}
!18 = !{!17, !7, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/stm32/extr_stm32-dcmi.c___find_outer_frame_size.c'
source_filename = "AnghaBench/linux/drivers/media/platform/stm32/extr_stm32-dcmi.c___find_outer_frame_size.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.dcmi_framesize = type { i32, i32 }
@UINT_MAX = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__find_outer_frame_size], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @__find_outer_frame_size(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) #0 {
%4 = load i32, ptr %0, align 8, !tbaa !6
%5 = icmp eq i32 %4, 0
br i1 %5, label %33, label %6
6: ; preds = %3
%7 = load i32, ptr @UINT_MAX, align 4, !tbaa !12
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = load ptr, ptr %8, align 8, !tbaa !13
%10 = load <2 x i32>, ptr %1, align 4, !tbaa !12
%11 = zext i32 %4 to i64
br label %12
12: ; preds = %6, %12
%13 = phi i64 [ 0, %6 ], [ %29, %12 ]
%14 = phi ptr [ null, %6 ], [ %28, %12 ]
%15 = phi i32 [ %7, %6 ], [ %27, %12 ]
%16 = getelementptr inbounds %struct.dcmi_framesize, ptr %9, i64 %13
%17 = load <2 x i32>, ptr %16, align 4, !tbaa !12
%18 = sub nsw <2 x i32> %17, %10
%19 = extractelement <2 x i32> %18, i64 0
%20 = extractelement <2 x i32> %18, i64 1
%21 = add nsw i32 %20, %19
%22 = icmp sgt i32 %19, -1
%23 = icmp sgt i32 %20, -1
%24 = select i1 %22, i1 %23, i1 false
%25 = icmp ult i32 %21, %15
%26 = select i1 %24, i1 %25, i1 false
%27 = select i1 %26, i32 %21, i32 %15
%28 = select i1 %26, ptr %16, ptr %14
%29 = add nuw nsw i64 %13, 1
%30 = icmp eq i64 %29, %11
br i1 %30, label %31, label %12, !llvm.loop !14
31: ; preds = %12
%32 = icmp eq ptr %28, null
br i1 %32, label %33, label %36
33: ; preds = %3, %31
%34 = getelementptr inbounds i8, ptr %0, i64 8
%35 = load ptr, ptr %34, align 8, !tbaa !13
br label %36
36: ; preds = %33, %31
%37 = phi ptr [ %28, %31 ], [ %35, %33 ]
%38 = load i64, ptr %37, align 4
store i64 %38, ptr %2, align 4
ret void
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"stm32_dcmi", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| linux_drivers_media_platform_stm32_extr_stm32-dcmi.c___find_outer_frame_size |
; ModuleID = 'AnghaBench/sqlcipher/ext/misc/extr_fossildelta.c_deltaparsevtabColumn.c'
source_filename = "AnghaBench/sqlcipher/ext/misc/extr_fossildelta.c_deltaparsevtabColumn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i64, i64, i64, i64 }
@azOp = dso_local local_unnamed_addr global ptr null, align 8
@SQLITE_STATIC = dso_local local_unnamed_addr global i32 0, align 4
@DELTAPARSE_OP_COPY = dso_local local_unnamed_addr global i64 0, align 8
@DELTAPARSE_OP_INSERT = dso_local local_unnamed_addr global i64 0, align 8
@SQLITE_TRANSIENT = dso_local local_unnamed_addr global i32 0, align 4
@SQLITE_OK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @deltaparsevtabColumn], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @deltaparsevtabColumn(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2) #0 {
switch i32 %2, label %43 [
i32 128, label %4
i32 131, label %11
i32 130, label %15
i32 129, label %36
]
4: ; preds = %3
%5 = load ptr, ptr @azOp, align 8, !tbaa !5
%6 = load i64, ptr %0, align 8, !tbaa !9
%7 = getelementptr inbounds i32, ptr %5, i64 %6
%8 = load i32, ptr %7, align 4, !tbaa !12
%9 = load i32, ptr @SQLITE_STATIC, align 4, !tbaa !12
%10 = tail call i32 @sqlite3_result_text(ptr noundef %1, i32 noundef %8, i32 noundef -1, i32 noundef %9) #2
br label %43
11: ; preds = %3
%12 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 3
%13 = load i64, ptr %12, align 8, !tbaa !14
%14 = tail call i32 @sqlite3_result_int(ptr noundef %1, i64 noundef %13) #2
br label %43
15: ; preds = %3
%16 = load i64, ptr %0, align 8, !tbaa !9
%17 = load i64, ptr @DELTAPARSE_OP_COPY, align 8, !tbaa !15
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 4
%21 = load i64, ptr %20, align 8, !tbaa !16
%22 = tail call i32 @sqlite3_result_int(ptr noundef %1, i64 noundef %21) #2
br label %43
23: ; preds = %15
%24 = load i64, ptr @DELTAPARSE_OP_INSERT, align 8, !tbaa !15
%25 = icmp eq i64 %16, %24
br i1 %25, label %26, label %43
26: ; preds = %23
%27 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 2
%28 = load i64, ptr %27, align 8, !tbaa !17
%29 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 4
%30 = load i64, ptr %29, align 8, !tbaa !16
%31 = add nsw i64 %30, %28
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 3
%33 = load i64, ptr %32, align 8, !tbaa !14
%34 = load i32, ptr @SQLITE_TRANSIENT, align 4, !tbaa !12
%35 = tail call i32 @sqlite3_result_blob(ptr noundef %1, i64 noundef %31, i64 noundef %33, i32 noundef %34) #2
br label %43
36: ; preds = %3
%37 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 2
%38 = load i64, ptr %37, align 8, !tbaa !17
%39 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%40 = load i64, ptr %39, align 8, !tbaa !18
%41 = load i32, ptr @SQLITE_TRANSIENT, align 4, !tbaa !12
%42 = tail call i32 @sqlite3_result_blob(ptr noundef %1, i64 noundef %38, i64 noundef %40, i32 noundef %41) #2
br label %43
43: ; preds = %19, %26, %23, %3, %36, %11, %4
%44 = load i32, ptr @SQLITE_OK, align 4, !tbaa !12
ret i32 %44
}
declare i32 @sqlite3_result_text(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_result_int(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sqlite3_result_blob(ptr 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_2__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !11, i64 24}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 32}
!17 = !{!10, !11, i64 16}
!18 = !{!10, !11, i64 8}
| ; ModuleID = 'AnghaBench/sqlcipher/ext/misc/extr_fossildelta.c_deltaparsevtabColumn.c'
source_filename = "AnghaBench/sqlcipher/ext/misc/extr_fossildelta.c_deltaparsevtabColumn.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@azOp = common local_unnamed_addr global ptr null, align 8
@SQLITE_STATIC = common local_unnamed_addr global i32 0, align 4
@DELTAPARSE_OP_COPY = common local_unnamed_addr global i64 0, align 8
@DELTAPARSE_OP_INSERT = common local_unnamed_addr global i64 0, align 8
@SQLITE_TRANSIENT = common local_unnamed_addr global i32 0, align 4
@SQLITE_OK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @deltaparsevtabColumn], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @deltaparsevtabColumn(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2) #0 {
switch i32 %2, label %43 [
i32 128, label %4
i32 131, label %11
i32 130, label %15
i32 129, label %36
]
4: ; preds = %3
%5 = load ptr, ptr @azOp, align 8, !tbaa !6
%6 = load i64, ptr %0, align 8, !tbaa !10
%7 = getelementptr inbounds i32, ptr %5, i64 %6
%8 = load i32, ptr %7, align 4, !tbaa !13
%9 = load i32, ptr @SQLITE_STATIC, align 4, !tbaa !13
%10 = tail call i32 @sqlite3_result_text(ptr noundef %1, i32 noundef %8, i32 noundef -1, i32 noundef %9) #2
br label %43
11: ; preds = %3
%12 = getelementptr inbounds i8, ptr %0, i64 24
%13 = load i64, ptr %12, align 8, !tbaa !15
%14 = tail call i32 @sqlite3_result_int(ptr noundef %1, i64 noundef %13) #2
br label %43
15: ; preds = %3
%16 = load i64, ptr %0, align 8, !tbaa !10
%17 = load i64, ptr @DELTAPARSE_OP_COPY, align 8, !tbaa !16
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %15
%20 = getelementptr inbounds i8, ptr %0, i64 32
%21 = load i64, ptr %20, align 8, !tbaa !17
%22 = tail call i32 @sqlite3_result_int(ptr noundef %1, i64 noundef %21) #2
br label %43
23: ; preds = %15
%24 = load i64, ptr @DELTAPARSE_OP_INSERT, align 8, !tbaa !16
%25 = icmp eq i64 %16, %24
br i1 %25, label %26, label %43
26: ; preds = %23
%27 = getelementptr inbounds i8, ptr %0, i64 16
%28 = load i64, ptr %27, align 8, !tbaa !18
%29 = getelementptr inbounds i8, ptr %0, i64 32
%30 = load i64, ptr %29, align 8, !tbaa !17
%31 = add nsw i64 %30, %28
%32 = getelementptr inbounds i8, ptr %0, i64 24
%33 = load i64, ptr %32, align 8, !tbaa !15
%34 = load i32, ptr @SQLITE_TRANSIENT, align 4, !tbaa !13
%35 = tail call i32 @sqlite3_result_blob(ptr noundef %1, i64 noundef %31, i64 noundef %33, i32 noundef %34) #2
br label %43
36: ; preds = %3
%37 = getelementptr inbounds i8, ptr %0, i64 16
%38 = load i64, ptr %37, align 8, !tbaa !18
%39 = getelementptr inbounds i8, ptr %0, i64 8
%40 = load i64, ptr %39, align 8, !tbaa !19
%41 = load i32, ptr @SQLITE_TRANSIENT, align 4, !tbaa !13
%42 = tail call i32 @sqlite3_result_blob(ptr noundef %1, i64 noundef %38, i64 noundef %40, i32 noundef %41) #2
br label %43
43: ; preds = %19, %26, %23, %3, %36, %11, %4
%44 = load i32, ptr @SQLITE_OK, align 4, !tbaa !13
ret i32 %44
}
declare i32 @sqlite3_result_text(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_result_int(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sqlite3_result_blob(ptr 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 = !{!"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, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!11, !12, i64 24}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !12, i64 32}
!18 = !{!11, !12, i64 16}
!19 = !{!11, !12, i64 8}
| sqlcipher_ext_misc_extr_fossildelta.c_deltaparsevtabColumn |
; ModuleID = 'AnghaBench/libuv/test/extr_test-threadpool-cancel.c_saturate_threadpool.c'
source_filename = "AnghaBench/libuv/test/extr_test-threadpool-cancel.c_saturate_threadpool.c"
target datalayout = "e-m:e-p270:32:32-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 [23 x i8] c"UV_THREADPOOL_SIZE=%lu\00", align 1
@pause_reqs = dso_local local_unnamed_addr global i64 0, align 8
@pause_sems = dso_local local_unnamed_addr global i64 0, align 8
@work_cb = dso_local local_unnamed_addr global i32 0, align 4
@done_cb = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @saturate_threadpool], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @saturate_threadpool() #0 {
%1 = alloca [64 x i8], align 16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #3
%2 = load i64, ptr @pause_reqs, align 8, !tbaa !5
%3 = tail call i64 @ARRAY_SIZE(i64 noundef %2) #3
%4 = call i32 @snprintf(ptr noundef nonnull %1, i32 noundef 64, ptr noundef nonnull @.str, i64 noundef %3) #3
%5 = call i32 @putenv(ptr noundef nonnull %1) #3
%6 = call ptr (...) @uv_default_loop() #3
%7 = load i64, ptr @pause_reqs, align 8, !tbaa !5
%8 = call i64 @ARRAY_SIZE(i64 noundef %7) #3
%9 = icmp eq i64 %8, 0
br i1 %9, label %30, label %10
10: ; preds = %0, %10
%11 = phi i64 [ %26, %10 ], [ 0, %0 ]
%12 = load i64, ptr @pause_sems, align 8, !tbaa !5
%13 = add i64 %12, %11
%14 = call i64 @uv_sem_init(i64 noundef %13, i32 noundef 0) #3
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @ASSERT(i32 noundef %16) #3
%18 = load i64, ptr @pause_reqs, align 8, !tbaa !5
%19 = add i64 %18, %11
%20 = load i32, ptr @work_cb, align 4, !tbaa !9
%21 = load i32, ptr @done_cb, align 4, !tbaa !9
%22 = call i64 @uv_queue_work(ptr noundef %6, i64 noundef %19, i32 noundef %20, i32 noundef %21) #3
%23 = icmp eq i64 %22, 0
%24 = zext i1 %23 to i32
%25 = call i32 @ASSERT(i32 noundef %24) #3
%26 = add nuw i64 %11, 1
%27 = load i64, ptr @pause_reqs, align 8, !tbaa !5
%28 = call i64 @ARRAY_SIZE(i64 noundef %27) #3
%29 = icmp ult i64 %26, %28
br i1 %29, label %10, label %30, !llvm.loop !11
30: ; preds = %10, %0
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i64 @ARRAY_SIZE(i64 noundef) local_unnamed_addr #2
declare i32 @putenv(ptr noundef) local_unnamed_addr #2
declare ptr @uv_default_loop(...) local_unnamed_addr #2
declare i32 @ASSERT(i32 noundef) local_unnamed_addr #2
declare i64 @uv_sem_init(i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @uv_queue_work(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/libuv/test/extr_test-threadpool-cancel.c_saturate_threadpool.c'
source_filename = "AnghaBench/libuv/test/extr_test-threadpool-cancel.c_saturate_threadpool.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [23 x i8] c"UV_THREADPOOL_SIZE=%lu\00", align 1
@pause_reqs = common local_unnamed_addr global i64 0, align 8
@pause_sems = common local_unnamed_addr global i64 0, align 8
@work_cb = common local_unnamed_addr global i32 0, align 4
@done_cb = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @saturate_threadpool], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @saturate_threadpool() #0 {
%1 = alloca [64 x i8], align 1
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #3
%2 = load i64, ptr @pause_reqs, align 8, !tbaa !6
%3 = tail call i64 @ARRAY_SIZE(i64 noundef %2) #3
%4 = call i32 @snprintf(ptr noundef nonnull %1, i32 noundef 64, ptr noundef nonnull @.str, i64 noundef %3) #3
%5 = call i32 @putenv(ptr noundef nonnull %1) #3
%6 = call ptr @uv_default_loop() #3
%7 = load i64, ptr @pause_reqs, align 8, !tbaa !6
%8 = call i64 @ARRAY_SIZE(i64 noundef %7) #3
%9 = icmp eq i64 %8, 0
br i1 %9, label %30, label %10
10: ; preds = %0, %10
%11 = phi i64 [ %26, %10 ], [ 0, %0 ]
%12 = load i64, ptr @pause_sems, align 8, !tbaa !6
%13 = add i64 %12, %11
%14 = call i64 @uv_sem_init(i64 noundef %13, i32 noundef 0) #3
%15 = icmp eq i64 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @ASSERT(i32 noundef %16) #3
%18 = load i64, ptr @pause_reqs, align 8, !tbaa !6
%19 = add i64 %18, %11
%20 = load i32, ptr @work_cb, align 4, !tbaa !10
%21 = load i32, ptr @done_cb, align 4, !tbaa !10
%22 = call i64 @uv_queue_work(ptr noundef %6, i64 noundef %19, i32 noundef %20, i32 noundef %21) #3
%23 = icmp eq i64 %22, 0
%24 = zext i1 %23 to i32
%25 = call i32 @ASSERT(i32 noundef %24) #3
%26 = add nuw i64 %11, 1
%27 = load i64, ptr @pause_reqs, align 8, !tbaa !6
%28 = call i64 @ARRAY_SIZE(i64 noundef %27) #3
%29 = icmp ult i64 %26, %28
br i1 %29, label %10, label %30, !llvm.loop !12
30: ; preds = %10, %0
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i64 @ARRAY_SIZE(i64 noundef) local_unnamed_addr #2
declare i32 @putenv(ptr noundef) local_unnamed_addr #2
declare ptr @uv_default_loop(...) local_unnamed_addr #2
declare i32 @ASSERT(i32 noundef) local_unnamed_addr #2
declare i64 @uv_sem_init(i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @uv_queue_work(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| libuv_test_extr_test-threadpool-cancel.c_saturate_threadpool |
; ModuleID = 'AnghaBench/libgit2/src/extr_submodule.c_git_submodule_set_ignore.c'
source_filename = "AnghaBench/libgit2/src/extr_submodule.c_git_submodule_set_ignore.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@_sm_ignore_map = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"ignore\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @git_submodule_set_ignore(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp ne ptr %0, null
%5 = icmp ne ptr %1, null
%6 = and i1 %4, %5
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 noundef %7) #2
%9 = load i32, ptr @_sm_ignore_map, align 4, !tbaa !5
%10 = tail call i32 @ARRAY_SIZE(i32 noundef %9) #2
%11 = tail call i32 @write_mapped_var(ptr noundef %0, ptr noundef %1, i32 noundef %9, i32 noundef %10, ptr noundef nonnull @.str, i32 noundef %2) #2
ret i32 %11
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @write_mapped_var(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/libgit2/src/extr_submodule.c_git_submodule_set_ignore.c'
source_filename = "AnghaBench/libgit2/src/extr_submodule.c_git_submodule_set_ignore.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@_sm_ignore_map = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"ignore\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @git_submodule_set_ignore(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp ne ptr %0, null
%5 = icmp ne ptr %1, null
%6 = and i1 %4, %5
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 noundef %7) #2
%9 = load i32, ptr @_sm_ignore_map, align 4, !tbaa !6
%10 = tail call i32 @ARRAY_SIZE(i32 noundef %9) #2
%11 = tail call i32 @write_mapped_var(ptr noundef %0, ptr noundef %1, i32 noundef %9, i32 noundef %10, ptr noundef nonnull @.str, i32 noundef %2) #2
ret i32 %11
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @write_mapped_var(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| libgit2_src_extr_submodule.c_git_submodule_set_ignore |
; ModuleID = 'AnghaBench/freebsd/usr.bin/mail/extr_strings.c_sreset.c'
source_filename = "AnghaBench/freebsd/usr.bin/mail/extr_strings.c_sreset.c"
target datalayout = "e-m:e-p270:32:32-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.strings = type { i32, ptr, ptr }
@noreset = dso_local local_unnamed_addr global i64 0, align 8
@stringdope = dso_local local_unnamed_addr global ptr null, align 8
@NSPACE = dso_local local_unnamed_addr global i64 0, align 8
@STRINGSIZE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @sreset() local_unnamed_addr #0 {
%1 = load i64, ptr @noreset, align 8, !tbaa !5
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %23
3: ; preds = %0
%4 = load ptr, ptr @stringdope, align 8, !tbaa !9
%5 = load i64, ptr @NSPACE, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.strings, ptr %4, i64 %5
%7 = icmp sgt i64 %5, 0
br i1 %7, label %8, label %23
8: ; preds = %3, %19
%9 = phi i32 [ %20, %19 ], [ 0, %3 ]
%10 = phi ptr [ %21, %19 ], [ %4, %3 ]
%11 = getelementptr inbounds %struct.strings, ptr %10, i64 0, i32 1
%12 = load ptr, ptr %11, align 8, !tbaa !11
%13 = icmp eq ptr %12, null
br i1 %13, label %19, label %14
14: ; preds = %8
%15 = getelementptr inbounds %struct.strings, ptr %10, i64 0, i32 2
store ptr %12, ptr %15, align 8, !tbaa !14
%16 = load i32, ptr @STRINGSIZE, align 4, !tbaa !15
%17 = shl i32 %16, %9
store i32 %17, ptr %10, align 8, !tbaa !16
%18 = add nsw i32 %9, 1
br label %19
19: ; preds = %8, %14
%20 = phi i32 [ %9, %8 ], [ %18, %14 ]
%21 = getelementptr inbounds %struct.strings, ptr %10, i64 1
%22 = icmp ult ptr %21, %6
br i1 %22, label %8, label %23, !llvm.loop !17
23: ; preds = %19, %3, %0
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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"strings", !13, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/usr.bin/mail/extr_strings.c_sreset.c'
source_filename = "AnghaBench/freebsd/usr.bin/mail/extr_strings.c_sreset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.strings = type { i32, ptr, ptr }
@noreset = common local_unnamed_addr global i64 0, align 8
@stringdope = common local_unnamed_addr global ptr null, align 8
@NSPACE = common local_unnamed_addr global i64 0, align 8
@STRINGSIZE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define void @sreset() local_unnamed_addr #0 {
%1 = load i64, ptr @noreset, align 8, !tbaa !6
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %23
3: ; preds = %0
%4 = load ptr, ptr @stringdope, align 8, !tbaa !10
%5 = load i64, ptr @NSPACE, align 8, !tbaa !6
%6 = getelementptr inbounds %struct.strings, ptr %4, i64 %5
%7 = icmp sgt i64 %5, 0
br i1 %7, label %8, label %23
8: ; preds = %3, %19
%9 = phi i32 [ %20, %19 ], [ 0, %3 ]
%10 = phi ptr [ %21, %19 ], [ %4, %3 ]
%11 = getelementptr inbounds i8, ptr %10, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = icmp eq ptr %12, null
br i1 %13, label %19, label %14
14: ; preds = %8
%15 = getelementptr inbounds i8, ptr %10, i64 16
store ptr %12, ptr %15, align 8, !tbaa !15
%16 = load i32, ptr @STRINGSIZE, align 4, !tbaa !16
%17 = shl i32 %16, %9
store i32 %17, ptr %10, align 8, !tbaa !17
%18 = add nsw i32 %9, 1
br label %19
19: ; preds = %8, %14
%20 = phi i32 [ %9, %8 ], [ %18, %14 ]
%21 = getelementptr inbounds i8, ptr %10, i64 24
%22 = icmp ult ptr %21, %6
br i1 %22, label %8, label %23, !llvm.loop !18
23: ; preds = %19, %3, %0
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 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"strings", !14, i64 0, !11, i64 8, !11, i64 16}
!14 = !{!"int", !8, i64 0}
!15 = !{!13, !11, i64 16}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !14, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| freebsd_usr.bin_mail_extr_strings.c_sreset |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kdasm.c_d68000_jsr.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kdasm.c_d68000_jsr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@g_dasm_str = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"jsr %s\00", align 1
@g_cpu_ir = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @d68000_jsr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @d68000_jsr() #0 {
%1 = load i32, ptr @g_dasm_str, align 4, !tbaa !5
%2 = load i32, ptr @g_cpu_ir, align 4, !tbaa !5
%3 = tail call ptr @get_ea_mode_str_32(i32 noundef %2) #2
%4 = tail call i32 @sprintf(i32 noundef %1, ptr noundef nonnull @.str, ptr noundef %3) #2
ret void
}
declare i32 @sprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @get_ea_mode_str_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kdasm.c_d68000_jsr.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kdasm.c_d68000_jsr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@g_dasm_str = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"jsr %s\00", align 1
@g_cpu_ir = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @d68000_jsr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @d68000_jsr() #0 {
%1 = load i32, ptr @g_dasm_str, align 4, !tbaa !6
%2 = load i32, ptr @g_cpu_ir, align 4, !tbaa !6
%3 = tail call ptr @get_ea_mode_str_32(i32 noundef %2) #2
%4 = tail call i32 @sprintf(i32 noundef %1, ptr noundef nonnull @.str, ptr noundef %3) #2
ret void
}
declare i32 @sprintf(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @get_ea_mode_str_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_Yabause_yabause_src_musashi_extr_m68kdasm.c_d68000_jsr |
; ModuleID = 'AnghaBench/linux/drivers/staging/speakup/extr_speakup_apollo.c_do_catch_up.c'
source_filename = "AnghaBench/linux/drivers/staging/speakup/extr_speakup_apollo.c_do_catch_up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_8__ = type { i32, i64 }
%struct.spk_synth = type { i64, ptr, ptr }
%struct.TYPE_7__ = type { ptr, ptr }
@JIFFY = dso_local local_unnamed_addr global i32 0, align 4
@DELAY = dso_local local_unnamed_addr global i32 0, align 4
@FULL = dso_local local_unnamed_addr global i32 0, align 4
@speakup_info = dso_local global %struct.TYPE_8__ zeroinitializer, align 8
@jiffies = dso_local local_unnamed_addr global i32 0, align 4
@TASK_INTERRUPTIBLE = dso_local local_unnamed_addr global i32 0, align 4
@UART_MCR_RTS = dso_local local_unnamed_addr global i32 0, align 4
@SPACE = dso_local local_unnamed_addr global i64 0, align 8
@TASK_RUNNING = dso_local local_unnamed_addr global i32 0, align 4
@PROCSPEECH = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @do_catch_up], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @do_catch_up(ptr noundef %0) #0 {
%2 = load i32, ptr @JIFFY, align 4, !tbaa !5
%3 = tail call ptr @spk_get_var(i32 noundef %2) #2
%4 = load i32, ptr @DELAY, align 4, !tbaa !5
%5 = tail call ptr @spk_get_var(i32 noundef %4) #2
%6 = load i32, ptr @FULL, align 4, !tbaa !5
%7 = tail call ptr @spk_get_var(i32 noundef %6) #2
%8 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%9 = load i32, ptr %3, align 4, !tbaa !9
%10 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%11 = load i32, ptr @jiffies, align 4, !tbaa !5
%12 = tail call i32 (...) @kthread_should_stop() #2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %94
14: ; preds = %1
%15 = add nsw i32 %11, %9
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds %struct.spk_synth, ptr %0, i64 0, i32 2
%18 = getelementptr inbounds %struct.spk_synth, ptr %0, i64 0, i32 1
br label %19
19: ; preds = %14, %85
%20 = phi i64 [ %16, %14 ], [ %86, %85 ]
br label %21
21: ; preds = %19, %29
%22 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%23 = load i64, ptr getelementptr inbounds (%struct.TYPE_8__, ptr @speakup_info, i64 0, i32 1), align 8, !tbaa !13
%24 = icmp eq i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21
store i64 0, ptr getelementptr inbounds (%struct.TYPE_8__, ptr @speakup_info, i64 0, i32 1), align 8, !tbaa !13
%26 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%27 = load ptr, ptr %17, align 8, !tbaa !16
%28 = tail call i32 %27(ptr noundef %0) #2
br label %29
29: ; preds = %25, %48
%30 = tail call i32 (...) @kthread_should_stop() #2
%31 = icmp eq i32 %30, 0
br i1 %31, label %21, label %94, !llvm.loop !19
32: ; preds = %21
%33 = tail call i32 (...) @synth_buffer_skip_nonlatin1() #2
%34 = tail call i64 (...) @synth_buffer_empty() #2
%35 = icmp eq i64 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %32
%37 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
br label %94
38: ; preds = %32
%39 = tail call i64 (...) @synth_buffer_peek() #2
%40 = load i32, ptr @TASK_INTERRUPTIBLE, align 4, !tbaa !5
%41 = tail call i32 @set_current_state(i32 noundef %40) #2
%42 = load i32, ptr %7, align 4, !tbaa !9
%43 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%44 = load ptr, ptr %18, align 8, !tbaa !21
%45 = load ptr, ptr %44, align 8, !tbaa !22
%46 = tail call i64 %45(ptr noundef %0, i64 noundef %39) #2
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %61
48: ; preds = %38
%49 = load ptr, ptr %18, align 8, !tbaa !21
%50 = getelementptr inbounds %struct.TYPE_7__, ptr %49, i64 0, i32 1
%51 = load ptr, ptr %50, align 8, !tbaa !24
%52 = load i32, ptr @UART_MCR_RTS, align 4, !tbaa !5
%53 = tail call i32 %51(i32 noundef 0, i32 noundef %52) #2
%54 = load ptr, ptr %18, align 8, !tbaa !21
%55 = getelementptr inbounds %struct.TYPE_7__, ptr %54, i64 0, i32 1
%56 = load ptr, ptr %55, align 8, !tbaa !24
%57 = load i32, ptr @UART_MCR_RTS, align 4, !tbaa !5
%58 = tail call i32 %56(i32 noundef %57, i32 noundef 0) #2
%59 = tail call i32 @msecs_to_jiffies(i32 noundef %42) #2
%60 = tail call i32 @schedule_timeout(i32 noundef %59) #2
br label %29
61: ; preds = %38
%62 = load i32, ptr @jiffies, align 4, !tbaa !5
%63 = tail call i64 @time_after_eq(i32 noundef %62, i64 noundef %20) #2
%64 = icmp ne i64 %63, 0
%65 = load i64, ptr @SPACE, align 8
%66 = icmp eq i64 %39, %65
%67 = select i1 %64, i1 %66, i1 false
br i1 %67, label %68, label %85
68: ; preds = %61
%69 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%70 = load i32, ptr %3, align 4, !tbaa !9
%71 = load i32, ptr %7, align 4, !tbaa !9
%72 = load i32, ptr %5, align 4, !tbaa !9
%73 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%74 = load ptr, ptr %18, align 8, !tbaa !21
%75 = load ptr, ptr %74, align 8, !tbaa !22
%76 = load i64, ptr %0, align 8, !tbaa !25
%77 = tail call i64 %75(ptr noundef nonnull %0, i64 noundef %76) #2
%78 = icmp eq i64 %77, 0
%79 = select i1 %78, i32 %71, i32 %72
%80 = tail call i32 @msecs_to_jiffies(i32 noundef %79) #2
%81 = tail call i32 @schedule_timeout(i32 noundef %80) #2
%82 = load i32, ptr @jiffies, align 4, !tbaa !5
%83 = add nsw i32 %82, %70
%84 = sext i32 %83 to i64
br label %85
85: ; preds = %68, %61
%86 = phi i64 [ %84, %68 ], [ %20, %61 ]
%87 = load i32, ptr @TASK_RUNNING, align 4, !tbaa !5
%88 = tail call i32 @set_current_state(i32 noundef %87) #2
%89 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%90 = tail call i32 (...) @synth_buffer_getc() #2
%91 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%92 = tail call i32 (...) @kthread_should_stop() #2
%93 = icmp eq i32 %92, 0
br i1 %93, label %19, label %94, !llvm.loop !19
94: ; preds = %85, %29, %1, %36
%95 = getelementptr inbounds %struct.spk_synth, ptr %0, i64 0, i32 1
%96 = load ptr, ptr %95, align 8, !tbaa !21
%97 = load ptr, ptr %96, align 8, !tbaa !22
%98 = load i64, ptr @PROCSPEECH, align 8, !tbaa !26
%99 = tail call i64 %97(ptr noundef %0, i64 noundef %98) #2
ret void
}
declare ptr @spk_get_var(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @kthread_should_stop(...) local_unnamed_addr #1
declare i32 @synth_buffer_skip_nonlatin1(...) local_unnamed_addr #1
declare i64 @synth_buffer_empty(...) local_unnamed_addr #1
declare i64 @synth_buffer_peek(...) local_unnamed_addr #1
declare i32 @set_current_state(i32 noundef) local_unnamed_addr #1
declare i32 @schedule_timeout(i32 noundef) local_unnamed_addr #1
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i64 @time_after_eq(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @synth_buffer_getc(...) 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 = !{!"var_t", !11, i64 0}
!11 = !{!"TYPE_6__", !12, i64 0}
!12 = !{!"TYPE_5__", !6, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"TYPE_8__", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !18, i64 16}
!17 = !{!"spk_synth", !15, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !18, i64 8}
!22 = !{!23, !18, i64 0}
!23 = !{!"TYPE_7__", !18, i64 0, !18, i64 8}
!24 = !{!23, !18, i64 8}
!25 = !{!17, !15, i64 0}
!26 = !{!15, !15, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/speakup/extr_speakup_apollo.c_do_catch_up.c'
source_filename = "AnghaBench/linux/drivers/staging/speakup/extr_speakup_apollo.c_do_catch_up.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_8__ = type { i32, i64 }
@JIFFY = common local_unnamed_addr global i32 0, align 4
@DELAY = common local_unnamed_addr global i32 0, align 4
@FULL = common local_unnamed_addr global i32 0, align 4
@speakup_info = common global %struct.TYPE_8__ zeroinitializer, align 8
@jiffies = common local_unnamed_addr global i32 0, align 4
@TASK_INTERRUPTIBLE = common local_unnamed_addr global i32 0, align 4
@UART_MCR_RTS = common local_unnamed_addr global i32 0, align 4
@SPACE = common local_unnamed_addr global i64 0, align 8
@TASK_RUNNING = common local_unnamed_addr global i32 0, align 4
@PROCSPEECH = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @do_catch_up], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @do_catch_up(ptr noundef %0) #0 {
%2 = load i32, ptr @JIFFY, align 4, !tbaa !6
%3 = tail call ptr @spk_get_var(i32 noundef %2) #2
%4 = load i32, ptr @DELAY, align 4, !tbaa !6
%5 = tail call ptr @spk_get_var(i32 noundef %4) #2
%6 = load i32, ptr @FULL, align 4, !tbaa !6
%7 = tail call ptr @spk_get_var(i32 noundef %6) #2
%8 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%9 = load i32, ptr %3, align 4, !tbaa !10
%10 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%11 = load i32, ptr @jiffies, align 4, !tbaa !6
%12 = tail call i32 @kthread_should_stop() #2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %94
14: ; preds = %1
%15 = add nsw i32 %11, %9
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %0, i64 16
%18 = getelementptr inbounds i8, ptr %0, i64 8
br label %19
19: ; preds = %14, %85
%20 = phi i64 [ %16, %14 ], [ %86, %85 ]
br label %21
21: ; preds = %19, %29
%22 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%23 = load i64, ptr getelementptr inbounds (i8, ptr @speakup_info, i64 8), align 8, !tbaa !14
%24 = icmp eq i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21
store i64 0, ptr getelementptr inbounds (i8, ptr @speakup_info, i64 8), align 8, !tbaa !14
%26 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%27 = load ptr, ptr %17, align 8, !tbaa !17
%28 = tail call i32 %27(ptr noundef %0) #2
br label %29
29: ; preds = %25, %48
%30 = tail call i32 @kthread_should_stop() #2
%31 = icmp eq i32 %30, 0
br i1 %31, label %21, label %94, !llvm.loop !20
32: ; preds = %21
%33 = tail call i32 @synth_buffer_skip_nonlatin1() #2
%34 = tail call i64 @synth_buffer_empty() #2
%35 = icmp eq i64 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %32
%37 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
br label %94
38: ; preds = %32
%39 = tail call i64 @synth_buffer_peek() #2
%40 = load i32, ptr @TASK_INTERRUPTIBLE, align 4, !tbaa !6
%41 = tail call i32 @set_current_state(i32 noundef %40) #2
%42 = load i32, ptr %7, align 4, !tbaa !10
%43 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%44 = load ptr, ptr %18, align 8, !tbaa !22
%45 = load ptr, ptr %44, align 8, !tbaa !23
%46 = tail call i64 %45(ptr noundef %0, i64 noundef %39) #2
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %61
48: ; preds = %38
%49 = load ptr, ptr %18, align 8, !tbaa !22
%50 = getelementptr inbounds i8, ptr %49, i64 8
%51 = load ptr, ptr %50, align 8, !tbaa !25
%52 = load i32, ptr @UART_MCR_RTS, align 4, !tbaa !6
%53 = tail call i32 %51(i32 noundef 0, i32 noundef %52) #2
%54 = load ptr, ptr %18, align 8, !tbaa !22
%55 = getelementptr inbounds i8, ptr %54, i64 8
%56 = load ptr, ptr %55, align 8, !tbaa !25
%57 = load i32, ptr @UART_MCR_RTS, align 4, !tbaa !6
%58 = tail call i32 %56(i32 noundef %57, i32 noundef 0) #2
%59 = tail call i32 @msecs_to_jiffies(i32 noundef %42) #2
%60 = tail call i32 @schedule_timeout(i32 noundef %59) #2
br label %29
61: ; preds = %38
%62 = load i32, ptr @jiffies, align 4, !tbaa !6
%63 = tail call i64 @time_after_eq(i32 noundef %62, i64 noundef %20) #2
%64 = icmp ne i64 %63, 0
%65 = load i64, ptr @SPACE, align 8
%66 = icmp eq i64 %39, %65
%67 = select i1 %64, i1 %66, i1 false
br i1 %67, label %68, label %85
68: ; preds = %61
%69 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%70 = load i32, ptr %3, align 4, !tbaa !10
%71 = load i32, ptr %7, align 4, !tbaa !10
%72 = load i32, ptr %5, align 4, !tbaa !10
%73 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%74 = load ptr, ptr %18, align 8, !tbaa !22
%75 = load ptr, ptr %74, align 8, !tbaa !23
%76 = load i64, ptr %0, align 8, !tbaa !26
%77 = tail call i64 %75(ptr noundef nonnull %0, i64 noundef %76) #2
%78 = icmp eq i64 %77, 0
%79 = select i1 %78, i32 %71, i32 %72
%80 = tail call i32 @msecs_to_jiffies(i32 noundef %79) #2
%81 = tail call i32 @schedule_timeout(i32 noundef %80) #2
%82 = load i32, ptr @jiffies, align 4, !tbaa !6
%83 = add nsw i32 %82, %70
%84 = sext i32 %83 to i64
br label %85
85: ; preds = %68, %61
%86 = phi i64 [ %84, %68 ], [ %20, %61 ]
%87 = load i32, ptr @TASK_RUNNING, align 4, !tbaa !6
%88 = tail call i32 @set_current_state(i32 noundef %87) #2
%89 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%90 = tail call i32 @synth_buffer_getc() #2
%91 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%92 = tail call i32 @kthread_should_stop() #2
%93 = icmp eq i32 %92, 0
br i1 %93, label %19, label %94, !llvm.loop !20
94: ; preds = %85, %29, %1, %36
%95 = getelementptr inbounds i8, ptr %0, i64 8
%96 = load ptr, ptr %95, align 8, !tbaa !22
%97 = load ptr, ptr %96, align 8, !tbaa !23
%98 = load i64, ptr @PROCSPEECH, align 8, !tbaa !27
%99 = tail call i64 %97(ptr noundef %0, i64 noundef %98) #2
ret void
}
declare ptr @spk_get_var(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @kthread_should_stop(...) local_unnamed_addr #1
declare i32 @synth_buffer_skip_nonlatin1(...) local_unnamed_addr #1
declare i64 @synth_buffer_empty(...) local_unnamed_addr #1
declare i64 @synth_buffer_peek(...) local_unnamed_addr #1
declare i32 @set_current_state(i32 noundef) local_unnamed_addr #1
declare i32 @schedule_timeout(i32 noundef) local_unnamed_addr #1
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i64 @time_after_eq(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @synth_buffer_getc(...) 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 = !{!"var_t", !12, i64 0}
!12 = !{!"TYPE_6__", !13, i64 0}
!13 = !{!"TYPE_5__", !7, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"TYPE_8__", !7, i64 0, !16, i64 8}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !19, i64 16}
!18 = !{!"spk_synth", !16, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!18, !19, i64 8}
!23 = !{!24, !19, i64 0}
!24 = !{!"TYPE_7__", !19, i64 0, !19, i64 8}
!25 = !{!24, !19, i64 8}
!26 = !{!18, !16, i64 0}
!27 = !{!16, !16, i64 0}
| linux_drivers_staging_speakup_extr_speakup_apollo.c_do_catch_up |
; ModuleID = 'AnghaBench/linux/net/mac80211/extr_mlme.c_ieee80211_connection_loss.c'
source_filename = "AnghaBench/linux/net/mac80211/extr_mlme.c_ieee80211_connection_loss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ieee80211_sub_if_data = type { %struct.TYPE_6__, ptr }
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @ieee80211_connection_loss(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @vif_to_sdata(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.ieee80211_sub_if_data, ptr %2, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @trace_api_connection_loss(ptr noundef %2) #2
store i32 1, ptr %2, align 8, !tbaa !13
%6 = getelementptr inbounds %struct.TYPE_5__, ptr %2, i64 0, i32 1
%7 = tail call i32 @ieee80211_queue_work(ptr noundef %4, ptr noundef nonnull %6) #2
ret void
}
declare ptr @vif_to_sdata(ptr noundef) local_unnamed_addr #1
declare i32 @trace_api_connection_loss(ptr noundef) local_unnamed_addr #1
declare i32 @ieee80211_queue_work(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, !12, i64 8}
!6 = !{!"ieee80211_sub_if_data", !7, i64 0, !12, i64 8}
!7 = !{!"TYPE_6__", !8, i64 0}
!8 = !{!"TYPE_5__", !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 = !{!6, !9, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/mac80211/extr_mlme.c_ieee80211_connection_loss.c'
source_filename = "AnghaBench/linux/net/mac80211/extr_mlme.c_ieee80211_connection_loss.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 @ieee80211_connection_loss(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @vif_to_sdata(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 @trace_api_connection_loss(ptr noundef %2) #2
store i32 1, ptr %2, align 8, !tbaa !14
%6 = getelementptr inbounds i8, ptr %2, i64 4
%7 = tail call i32 @ieee80211_queue_work(ptr noundef %4, ptr noundef nonnull %6) #2
ret void
}
declare ptr @vif_to_sdata(ptr noundef) local_unnamed_addr #1
declare i32 @trace_api_connection_loss(ptr noundef) local_unnamed_addr #1
declare i32 @ieee80211_queue_work(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, !13, i64 8}
!7 = !{!"ieee80211_sub_if_data", !8, i64 0, !13, i64 8}
!8 = !{!"TYPE_6__", !9, i64 0}
!9 = !{!"TYPE_5__", !10, i64 0, !10, i64 4}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!7, !10, i64 0}
| linux_net_mac80211_extr_mlme.c_ieee80211_connection_loss |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ext4/extr_dir.c_ext4_htree_create_dir_info.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ext4/extr_dir.c_ext4_htree_create_dir_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"
%struct.dir_private_info = type { i32, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ext4_htree_create_dir_info], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @ext4_htree_create_dir_info(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%4 = tail call ptr @kzalloc(i32 noundef 8, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = tail call i32 @pos2maj_hash(ptr noundef %0, i32 noundef %1) #2
%8 = getelementptr inbounds %struct.dir_private_info, ptr %4, i64 0, i32 1
store i32 %7, ptr %8, align 4, !tbaa !9
%9 = tail call i32 @pos2min_hash(ptr noundef %0, i32 noundef %1) #2
store i32 %9, ptr %4, align 4, !tbaa !11
br label %10
10: ; preds = %2, %6
ret ptr %4
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pos2maj_hash(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pos2min_hash(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 4}
!10 = !{!"dir_private_info", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ext4/extr_dir.c_ext4_htree_create_dir_info.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ext4/extr_dir.c_ext4_htree_create_dir_info.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 @ext4_htree_create_dir_info], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @ext4_htree_create_dir_info(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%4 = tail call ptr @kzalloc(i32 noundef 8, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = tail call i32 @pos2maj_hash(ptr noundef %0, i32 noundef %1) #2
%8 = getelementptr inbounds i8, ptr %4, i64 4
store i32 %7, ptr %8, align 4, !tbaa !10
%9 = tail call i32 @pos2min_hash(ptr noundef %0, i32 noundef %1) #2
store i32 %9, ptr %4, align 4, !tbaa !12
br label %10
10: ; preds = %2, %6
ret ptr %4
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pos2maj_hash(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pos2min_hash(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 4}
!11 = !{!"dir_private_info", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
| fastsocket_kernel_fs_ext4_extr_dir.c_ext4_htree_create_dir_info |
; ModuleID = 'AnghaBench/freebsd/sys/net80211/extr_ieee80211_ht.c_htinfo_update.c'
source_filename = "AnghaBench/freebsd/sys/net80211/extr_ieee80211_ht.c_htinfo_update.c"
target datalayout = "e-m:e-p270:32:32-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.ieee80211com = type { i64, i64, i32, i64, i64, i32 }
@IEEE80211_HTINFO_OPMODE_MIXED = dso_local local_unnamed_addr global i32 0, align 4
@IEEE80211_HTINFO_NONHT_PRESENT = dso_local local_unnamed_addr global i32 0, align 4
@IEEE80211_FHT_NONHT_PR = dso_local local_unnamed_addr global i32 0, align 4
@IEEE80211_HTINFO_OPMODE_PROTOPT = dso_local local_unnamed_addr global i32 0, align 4
@IEEE80211_CHAN_ANYC = dso_local local_unnamed_addr global i64 0, align 8
@IEEE80211_HTINFO_OPMODE_HT20PR = dso_local local_unnamed_addr global i32 0, align 4
@IEEE80211_HTINFO_OPMODE_PURE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @htinfo_update], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @htinfo_update(ptr noundef %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.ieee80211com, 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 %10, label %6
6: ; preds = %1
%7 = load i32, ptr @IEEE80211_HTINFO_OPMODE_MIXED, align 4, !tbaa !12
%8 = load i32, ptr @IEEE80211_HTINFO_NONHT_PRESENT, align 4, !tbaa !12
%9 = or i32 %8, %7
br label %37
10: ; preds = %1
%11 = getelementptr inbounds %struct.ieee80211com, ptr %0, i64 0, i32 2
%12 = load i32, ptr %11, align 8, !tbaa !13
%13 = load i32, ptr @IEEE80211_FHT_NONHT_PR, align 4, !tbaa !12
%14 = and i32 %13, %12
%15 = icmp eq i32 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %10
%17 = load i32, ptr @IEEE80211_HTINFO_OPMODE_PROTOPT, align 4, !tbaa !12
%18 = load i32, ptr @IEEE80211_HTINFO_NONHT_PRESENT, align 4, !tbaa !12
%19 = or i32 %18, %17
br label %37
20: ; preds = %10
%21 = getelementptr inbounds %struct.ieee80211com, ptr %0, i64 0, i32 3
%22 = load i64, ptr %21, align 8, !tbaa !14
%23 = load i64, ptr @IEEE80211_CHAN_ANYC, align 8, !tbaa !15
%24 = icmp eq i64 %22, %23
br i1 %24, label %35, label %25
25: ; preds = %20
%26 = tail call i64 @IEEE80211_IS_CHAN_HT40(i64 noundef %22) #2
%27 = icmp eq i64 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = load i64, ptr %0, align 8, !tbaa !5
%30 = getelementptr inbounds %struct.ieee80211com, ptr %0, i64 0, i32 4
%31 = load i64, ptr %30, align 8, !tbaa !16
%32 = icmp eq i64 %29, %31
br i1 %32, label %35, label %33
33: ; preds = %28
%34 = load i32, ptr @IEEE80211_HTINFO_OPMODE_HT20PR, align 4, !tbaa !12
br label %37
35: ; preds = %28, %25, %20
%36 = load i32, ptr @IEEE80211_HTINFO_OPMODE_PURE, align 4, !tbaa !12
br label %37
37: ; preds = %16, %35, %33, %6
%38 = phi i32 [ %9, %6 ], [ %19, %16 ], [ %34, %33 ], [ %36, %35 ]
%39 = getelementptr inbounds %struct.ieee80211com, ptr %0, i64 0, i32 5
%40 = load i32, ptr %39, align 8, !tbaa !17
%41 = icmp eq i32 %38, %40
br i1 %41, label %44, label %42
42: ; preds = %37
store i32 %38, ptr %39, align 8, !tbaa !17
%43 = tail call i32 @htinfo_notify(ptr noundef nonnull %0) #2
br label %44
44: ; preds = %42, %37
ret void
}
declare i64 @IEEE80211_IS_CHAN_HT40(i64 noundef) local_unnamed_addr #1
declare i32 @htinfo_notify(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 = !{!"ieee80211com", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !10, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 24}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !10, i64 40}
| ; ModuleID = 'AnghaBench/freebsd/sys/net80211/extr_ieee80211_ht.c_htinfo_update.c'
source_filename = "AnghaBench/freebsd/sys/net80211/extr_ieee80211_ht.c_htinfo_update.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IEEE80211_HTINFO_OPMODE_MIXED = common local_unnamed_addr global i32 0, align 4
@IEEE80211_HTINFO_NONHT_PRESENT = common local_unnamed_addr global i32 0, align 4
@IEEE80211_FHT_NONHT_PR = common local_unnamed_addr global i32 0, align 4
@IEEE80211_HTINFO_OPMODE_PROTOPT = common local_unnamed_addr global i32 0, align 4
@IEEE80211_CHAN_ANYC = common local_unnamed_addr global i64 0, align 8
@IEEE80211_HTINFO_OPMODE_HT20PR = common local_unnamed_addr global i32 0, align 4
@IEEE80211_HTINFO_OPMODE_PURE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @htinfo_update], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @htinfo_update(ptr noundef %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 %10, label %6
6: ; preds = %1
%7 = load i32, ptr @IEEE80211_HTINFO_OPMODE_MIXED, align 4, !tbaa !13
%8 = load i32, ptr @IEEE80211_HTINFO_NONHT_PRESENT, align 4, !tbaa !13
%9 = or i32 %8, %7
br label %37
10: ; preds = %1
%11 = getelementptr inbounds i8, ptr %0, i64 16
%12 = load i32, ptr %11, align 8, !tbaa !14
%13 = load i32, ptr @IEEE80211_FHT_NONHT_PR, align 4, !tbaa !13
%14 = and i32 %13, %12
%15 = icmp eq i32 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %10
%17 = load i32, ptr @IEEE80211_HTINFO_OPMODE_PROTOPT, align 4, !tbaa !13
%18 = load i32, ptr @IEEE80211_HTINFO_NONHT_PRESENT, align 4, !tbaa !13
%19 = or i32 %18, %17
br label %37
20: ; preds = %10
%21 = getelementptr inbounds i8, ptr %0, i64 24
%22 = load i64, ptr %21, align 8, !tbaa !15
%23 = load i64, ptr @IEEE80211_CHAN_ANYC, align 8, !tbaa !16
%24 = icmp eq i64 %22, %23
br i1 %24, label %35, label %25
25: ; preds = %20
%26 = tail call i64 @IEEE80211_IS_CHAN_HT40(i64 noundef %22) #2
%27 = icmp eq i64 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = load i64, ptr %0, align 8, !tbaa !6
%30 = getelementptr inbounds i8, ptr %0, i64 32
%31 = load i64, ptr %30, align 8, !tbaa !17
%32 = icmp eq i64 %29, %31
br i1 %32, label %35, label %33
33: ; preds = %28
%34 = load i32, ptr @IEEE80211_HTINFO_OPMODE_HT20PR, align 4, !tbaa !13
br label %37
35: ; preds = %28, %25, %20
%36 = load i32, ptr @IEEE80211_HTINFO_OPMODE_PURE, align 4, !tbaa !13
br label %37
37: ; preds = %16, %35, %33, %6
%38 = phi i32 [ %9, %6 ], [ %19, %16 ], [ %34, %33 ], [ %36, %35 ]
%39 = getelementptr inbounds i8, ptr %0, i64 40
%40 = load i32, ptr %39, align 8, !tbaa !18
%41 = icmp eq i32 %38, %40
br i1 %41, label %44, label %42
42: ; preds = %37
store i32 %38, ptr %39, align 8, !tbaa !18
%43 = tail call i32 @htinfo_notify(ptr noundef nonnull %0) #2
br label %44
44: ; preds = %42, %37
ret void
}
declare i64 @IEEE80211_IS_CHAN_HT40(i64 noundef) local_unnamed_addr #1
declare i32 @htinfo_notify(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 = !{!"ieee80211com", !8, i64 0, !8, i64 8, !11, i64 16, !8, i64 24, !8, i64 32, !11, i64 40}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !8, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !11, i64 16}
!15 = !{!7, !8, i64 24}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !8, i64 32}
!18 = !{!7, !11, i64 40}
| freebsd_sys_net80211_extr_ieee80211_ht.c_htinfo_update |
; ModuleID = 'AnghaBench/linux/drivers/tee/extr_tee_core.c_tee_client_invoke_func.c'
source_filename = "AnghaBench/linux/drivers/tee/extr_tee_core.c_tee_client_invoke_func.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @tee_client_invoke_func(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr @EINVAL, align 4, !tbaa !16
%11 = sub nsw i32 0, %10
br label %14
12: ; preds = %3
%13 = tail call i32 %7(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2) #1
br label %14
14: ; preds = %12, %9
%15 = phi i32 [ %13, %12 ], [ %11, %9 ]
ret i32 %15
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="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 = !{!"tee_context", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_6__", !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_5__", !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_4__", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/tee/extr_tee_core.c_tee_client_invoke_func.c'
source_filename = "AnghaBench/linux/drivers/tee/extr_tee_core.c_tee_client_invoke_func.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @tee_client_invoke_func(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = load ptr, ptr %6, align 8, !tbaa !15
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr @EINVAL, align 4, !tbaa !17
%11 = sub nsw i32 0, %10
br label %14
12: ; preds = %3
%13 = tail call i32 %7(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2) #1
br label %14
14: ; preds = %12, %9
%15 = phi i32 [ %13, %12 ], [ %11, %9 ]
ret i32 %15
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+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 = !{!"tee_context", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_6__", !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_5__", !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_4__", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !9, i64 0}
| linux_drivers_tee_extr_tee_core.c_tee_client_invoke_func |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/btrfs/extr_inode.c_check_path_shared.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/btrfs/extr_inode.c_check_path_shared.c"
target datalayout = "e-m:e-p270:32:32-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.extent_buffer = type { i32, i32 }
@BTRFS_MAX_LEVEL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @check_path_shared], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @check_path_shared(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
store i32 1, ptr %3, align 4, !tbaa !5
%4 = load i32, ptr @BTRFS_MAX_LEVEL, align 4, !tbaa !5
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %27
6: ; preds = %2, %22
%7 = phi i64 [ %23, %22 ], [ 0, %2 ]
%8 = load ptr, ptr %1, align 8, !tbaa !9
%9 = getelementptr inbounds ptr, ptr %8, i64 %7
%10 = load ptr, ptr %9, align 8, !tbaa !12
%11 = icmp eq ptr %10, null
br i1 %11, label %27, label %12
12: ; preds = %6
%13 = call i32 @btrfs_block_can_be_shared(ptr noundef %0, ptr noundef nonnull %10) #3
%14 = icmp eq i32 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %12
%16 = getelementptr inbounds %struct.extent_buffer, ptr %10, i64 0, i32 1
%17 = load i32, ptr %16, align 4, !tbaa !13
%18 = load i32, ptr %10, align 4, !tbaa !15
%19 = call i32 @btrfs_lookup_extent_info(ptr noundef null, ptr noundef %0, i32 noundef %17, i32 noundef %18, ptr noundef nonnull %3, ptr noundef null) #3
%20 = load i32, ptr %3, align 4, !tbaa !5
%21 = icmp sgt i32 %20, 1
br i1 %21, label %27, label %22
22: ; preds = %12, %15
%23 = add nuw nsw i64 %7, 1
%24 = load i32, ptr @BTRFS_MAX_LEVEL, align 4, !tbaa !5
%25 = sext i32 %24 to i64
%26 = icmp slt i64 %23, %25
br i1 %26, label %6, label %27, !llvm.loop !16
27: ; preds = %6, %22, %15, %2
%28 = phi i32 [ 0, %2 ], [ 1, %15 ], [ 0, %22 ], [ 0, %6 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @btrfs_block_can_be_shared(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @btrfs_lookup_extent_info(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"btrfs_path", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 4}
!14 = !{!"extent_buffer", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/btrfs/extr_inode.c_check_path_shared.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/btrfs/extr_inode.c_check_path_shared.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BTRFS_MAX_LEVEL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @check_path_shared], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @check_path_shared(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
store i32 1, ptr %3, align 4, !tbaa !6
%4 = load i32, ptr @BTRFS_MAX_LEVEL, align 4, !tbaa !6
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %27
6: ; preds = %2, %22
%7 = phi i64 [ %23, %22 ], [ 0, %2 ]
%8 = load ptr, ptr %1, align 8, !tbaa !10
%9 = getelementptr inbounds ptr, ptr %8, i64 %7
%10 = load ptr, ptr %9, align 8, !tbaa !13
%11 = icmp eq ptr %10, null
br i1 %11, label %27, label %12
12: ; preds = %6
%13 = call i32 @btrfs_block_can_be_shared(ptr noundef %0, ptr noundef nonnull %10) #3
%14 = icmp eq i32 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %12
%16 = getelementptr inbounds i8, ptr %10, i64 4
%17 = load i32, ptr %16, align 4, !tbaa !14
%18 = load i32, ptr %10, align 4, !tbaa !16
%19 = call i32 @btrfs_lookup_extent_info(ptr noundef null, ptr noundef %0, i32 noundef %17, i32 noundef %18, ptr noundef nonnull %3, ptr noundef null) #3
%20 = load i32, ptr %3, align 4, !tbaa !6
%21 = icmp sgt i32 %20, 1
br i1 %21, label %27, label %22
22: ; preds = %12, %15
%23 = add nuw nsw i64 %7, 1
%24 = load i32, ptr @BTRFS_MAX_LEVEL, align 4, !tbaa !6
%25 = sext i32 %24 to i64
%26 = icmp slt i64 %23, %25
br i1 %26, label %6, label %27, !llvm.loop !17
27: ; preds = %6, %22, %15, %2
%28 = phi i32 [ 0, %2 ], [ 1, %15 ], [ 0, %22 ], [ 0, %6 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @btrfs_block_can_be_shared(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @btrfs_lookup_extent_info(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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 = !{!"btrfs_path", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !7, i64 4}
!15 = !{!"extent_buffer", !7, i64 0, !7, i64 4}
!16 = !{!15, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_fs_btrfs_extr_inode.c_check_path_shared |
; ModuleID = 'AnghaBench/freebsd/libexec/rtld-aout/extr_shlib.c_add_search_dir.c'
source_filename = "AnghaBench/freebsd/libexec/rtld-aout/extr_shlib.c_add_search_dir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@n_search_dirs = dso_local local_unnamed_addr global i32 0, align 4
@search_dirs = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @add_search_dir(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @n_search_dirs, align 4, !tbaa !5
%3 = icmp sgt i32 %2, 0
br i1 %3, label %9, label %16
4: ; preds = %9
%5 = add nuw nsw i64 %10, 1
%6 = load i32, ptr @n_search_dirs, align 4, !tbaa !5
%7 = sext i32 %6 to i64
%8 = icmp slt i64 %5, %7
br i1 %8, label %9, label %16, !llvm.loop !9
9: ; preds = %1, %4
%10 = phi i64 [ %5, %4 ], [ 0, %1 ]
%11 = load ptr, ptr @search_dirs, align 8, !tbaa !11
%12 = getelementptr inbounds ptr, ptr %11, i64 %10
%13 = load ptr, ptr %12, align 8, !tbaa !11
%14 = tail call i64 @strcmp(ptr noundef %13, ptr noundef %0) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %28, label %4
16: ; preds = %4, %1
%17 = phi i32 [ %2, %1 ], [ %6, %4 ]
%18 = add nsw i32 %17, 1
store i32 %18, ptr @n_search_dirs, align 4, !tbaa !5
%19 = load ptr, ptr @search_dirs, align 8, !tbaa !11
%20 = shl i32 %18, 3
%21 = tail call i64 @xrealloc(ptr noundef %19, i32 noundef %20) #3
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr @search_dirs, align 8, !tbaa !11
%23 = tail call ptr @strdup(ptr noundef %0)
%24 = load i32, ptr @n_search_dirs, align 4, !tbaa !5
%25 = sext i32 %24 to i64
%26 = getelementptr ptr, ptr %22, i64 %25
%27 = getelementptr ptr, ptr %26, i64 -1
store ptr %23, ptr %27, align 8, !tbaa !11
br label %28
28: ; preds = %9, %16
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @xrealloc(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/libexec/rtld-aout/extr_shlib.c_add_search_dir.c'
source_filename = "AnghaBench/freebsd/libexec/rtld-aout/extr_shlib.c_add_search_dir.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@n_search_dirs = common local_unnamed_addr global i32 0, align 4
@search_dirs = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @add_search_dir(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @n_search_dirs, align 4, !tbaa !6
%3 = icmp sgt i32 %2, 0
br i1 %3, label %9, label %16
4: ; preds = %9
%5 = add nuw nsw i64 %10, 1
%6 = load i32, ptr @n_search_dirs, align 4, !tbaa !6
%7 = sext i32 %6 to i64
%8 = icmp slt i64 %5, %7
br i1 %8, label %9, label %16, !llvm.loop !10
9: ; preds = %1, %4
%10 = phi i64 [ %5, %4 ], [ 0, %1 ]
%11 = load ptr, ptr @search_dirs, align 8, !tbaa !12
%12 = getelementptr inbounds ptr, ptr %11, i64 %10
%13 = load ptr, ptr %12, align 8, !tbaa !12
%14 = tail call i64 @strcmp(ptr noundef %13, ptr noundef %0) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %28, label %4
16: ; preds = %4, %1
%17 = phi i32 [ %2, %1 ], [ %6, %4 ]
%18 = add nsw i32 %17, 1
store i32 %18, ptr @n_search_dirs, align 4, !tbaa !6
%19 = load ptr, ptr @search_dirs, align 8, !tbaa !12
%20 = shl i32 %18, 3
%21 = tail call i64 @xrealloc(ptr noundef %19, i32 noundef %20) #3
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr @search_dirs, align 8, !tbaa !12
%23 = tail call ptr @strdup(ptr noundef %0) #3
%24 = load i32, ptr @n_search_dirs, align 4, !tbaa !6
%25 = sext i32 %24 to i64
%26 = getelementptr ptr, ptr %22, i64 %25
%27 = getelementptr i8, ptr %26, i64 -8
store ptr %23, ptr %27, align 8, !tbaa !12
br label %28
28: ; preds = %9, %16
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @xrealloc(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #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 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
| freebsd_libexec_rtld-aout_extr_shlib.c_add_search_dir |
; ModuleID = 'AnghaBench/linux/drivers/usb/renesas_usbhs/extr_mod.h_usbhs_mod_host_remove.c'
source_filename = "AnghaBench/linux/drivers/usb/renesas_usbhs/extr_mod.h_usbhs_mod_host_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 @usbhs_mod_host_remove], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @usbhs_mod_host_remove(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/renesas_usbhs/extr_mod.h_usbhs_mod_host_remove.c'
source_filename = "AnghaBench/linux/drivers/usb/renesas_usbhs/extr_mod.h_usbhs_mod_host_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 @usbhs_mod_host_remove], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @usbhs_mod_host_remove(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_usb_renesas_usbhs_extr_mod.h_usbhs_mod_host_remove |
; ModuleID = 'AnghaBench/qmk_firmware/keyboards/m0lly/extr_i2c.h_i2c_start_write.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/m0lly/extr_i2c.h_i2c_start_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@I2C_WRITE = dso_local local_unnamed_addr global i8 0, align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @i2c_start_write], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal zeroext i8 @i2c_start_write(i8 noundef zeroext %0) #0 {
%2 = shl i8 %0, 1
%3 = load i8, ptr @I2C_WRITE, align 1, !tbaa !5
%4 = or i8 %3, %2
%5 = tail call zeroext i8 @i2c_master_start(i8 noundef zeroext %4) #2
ret i8 %5
}
declare zeroext i8 @i2c_master_start(i8 noundef zeroext) 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/qmk_firmware/keyboards/m0lly/extr_i2c.h_i2c_start_write.c'
source_filename = "AnghaBench/qmk_firmware/keyboards/m0lly/extr_i2c.h_i2c_start_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@I2C_WRITE = common local_unnamed_addr global i8 0, align 1
@llvm.used = appending global [1 x ptr] [ptr @i2c_start_write], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal zeroext i8 @i2c_start_write(i8 noundef zeroext %0) #0 {
%2 = shl i8 %0, 1
%3 = load i8, ptr @I2C_WRITE, align 1, !tbaa !6
%4 = or i8 %3, %2
%5 = tail call zeroext i8 @i2c_master_start(i8 noundef zeroext %4) #2
ret i8 %5
}
declare zeroext i8 @i2c_master_start(i8 noundef zeroext) 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 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| qmk_firmware_keyboards_m0lly_extr_i2c.h_i2c_start_write |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/mfd/extr_mc13783-core.c_spi_rw.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/mfd/extr_mc13783-core.c_spi_rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.spi_transfer = type { ptr, i64, i32, i32, ptr }
%struct.spi_message = type { i64, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @spi_rw], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @spi_rw(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca %struct.spi_transfer, align 8
%5 = alloca %struct.spi_message, align 8
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
store ptr %1, ptr %4, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.spi_transfer, ptr %4, i64 0, i32 1
store i64 %2, ptr %6, align 8, !tbaa !12
%7 = getelementptr inbounds %struct.spi_transfer, ptr %4, i64 0, i32 2
store i32 0, ptr %7, align 8, !tbaa !13
%8 = getelementptr inbounds %struct.spi_transfer, ptr %4, i64 0, i32 3
store i32 0, ptr %8, align 4, !tbaa !14
%9 = getelementptr inbounds %struct.spi_transfer, ptr %4, i64 0, i32 4
store ptr %1, ptr %9, align 8, !tbaa !15
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
%10 = call i32 @spi_message_init(ptr noundef nonnull %5) #3
%11 = call i32 @spi_message_add_tail(ptr noundef nonnull %4, ptr noundef nonnull %5) #3
%12 = call i64 @spi_sync(ptr noundef %0, ptr noundef nonnull %5) #3
%13 = icmp ne i64 %12, 0
%14 = load i64, ptr %5, align 8
%15 = icmp ne i64 %14, 0
%16 = select i1 %13, i1 true, i1 %15
%17 = load i32, ptr @EINVAL, align 4
%18 = sub nsw i32 0, %17
%19 = getelementptr inbounds %struct.spi_message, ptr %5, i64 0, i32 1
%20 = load i32, ptr %19, align 8
%21 = trunc i64 %2 to i32
%22 = sub i32 %21, %20
%23 = select i1 %16, i32 %18, i32 %22
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
ret i32 %23
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @spi_message_init(ptr noundef) local_unnamed_addr #2
declare i32 @spi_message_add_tail(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @spi_sync(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"spi_transfer", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !11, i64 20}
!15 = !{!6, !7, i64 24}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/mfd/extr_mc13783-core.c_spi_rw.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/mfd/extr_mc13783-core.c_spi_rw.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.spi_transfer = type { ptr, i64, i32, i32, ptr }
%struct.spi_message = type { i64, i32 }
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @spi_rw], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @spi_rw(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca %struct.spi_transfer, align 8
%5 = alloca %struct.spi_message, align 8
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
store ptr %1, ptr %4, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %4, i64 8
store i64 %2, ptr %6, align 8, !tbaa !13
%7 = getelementptr inbounds i8, ptr %4, i64 16
store <2 x i32> zeroinitializer, ptr %7, align 8, !tbaa !14
%8 = getelementptr inbounds i8, ptr %4, i64 24
store ptr %1, ptr %8, align 8, !tbaa !15
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
%9 = call i32 @spi_message_init(ptr noundef nonnull %5) #3
%10 = call i32 @spi_message_add_tail(ptr noundef nonnull %4, ptr noundef nonnull %5) #3
%11 = call i64 @spi_sync(ptr noundef %0, ptr noundef nonnull %5) #3
%12 = icmp ne i64 %11, 0
%13 = load i64, ptr %5, align 8
%14 = icmp ne i64 %13, 0
%15 = select i1 %12, i1 true, i1 %14
%16 = load i32, ptr @EINVAL, align 4
%17 = sub nsw i32 0, %16
%18 = getelementptr inbounds i8, ptr %5, i64 8
%19 = load i32, ptr %18, align 8
%20 = trunc i64 %2 to i32
%21 = sub i32 %20, %19
%22 = select i1 %15, i32 %17, i32 %21
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
ret i32 %22
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @spi_message_init(ptr noundef) local_unnamed_addr #2
declare i32 @spi_message_add_tail(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @spi_sync(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"spi_transfer", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!12, !12, i64 0}
!15 = !{!7, !8, i64 24}
| fastsocket_kernel_drivers_mfd_extr_mc13783-core.c_spi_rw |
; ModuleID = 'AnghaBench/freebsd/sys/arm/freescale/vybrid/extr_vf_iomuxc.c_iomuxc_probe.c'
source_filename = "AnghaBench/freebsd/sys/arm/freescale/vybrid/extr_vf_iomuxc.c_iomuxc_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"
@ENXIO = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"fsl,mvf600-iomuxc\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Vybrid Family IOMUXC Unit\00", align 1
@BUS_PROBE_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @iomuxc_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @iomuxc_probe(i32 noundef %0) #0 {
%2 = tail call i32 @ofw_bus_status_okay(i32 noundef %0) #2
%3 = icmp eq i32 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = tail call i32 @ofw_bus_is_compatible(i32 noundef %0, ptr noundef nonnull @.str) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @device_set_desc(i32 noundef %0, ptr noundef nonnull @.str.1) #2
br label %9
9: ; preds = %4, %1, %7
%10 = phi ptr [ @BUS_PROBE_DEFAULT, %7 ], [ @ENXIO, %1 ], [ @ENXIO, %4 ]
%11 = load i32, ptr %10, align 4, !tbaa !5
ret i32 %11
}
declare i32 @ofw_bus_status_okay(i32 noundef) local_unnamed_addr #1
declare i32 @ofw_bus_is_compatible(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @device_set_desc(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/arm/freescale/vybrid/extr_vf_iomuxc.c_iomuxc_probe.c'
source_filename = "AnghaBench/freebsd/sys/arm/freescale/vybrid/extr_vf_iomuxc.c_iomuxc_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENXIO = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"fsl,mvf600-iomuxc\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Vybrid Family IOMUXC Unit\00", align 1
@BUS_PROBE_DEFAULT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @iomuxc_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @iomuxc_probe(i32 noundef %0) #0 {
%2 = tail call i32 @ofw_bus_status_okay(i32 noundef %0) #2
%3 = icmp eq i32 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = tail call i32 @ofw_bus_is_compatible(i32 noundef %0, ptr noundef nonnull @.str) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @device_set_desc(i32 noundef %0, ptr noundef nonnull @.str.1) #2
br label %9
9: ; preds = %4, %1, %7
%10 = phi ptr [ @BUS_PROBE_DEFAULT, %7 ], [ @ENXIO, %1 ], [ @ENXIO, %4 ]
%11 = load i32, ptr %10, align 4, !tbaa !6
ret i32 %11
}
declare i32 @ofw_bus_status_okay(i32 noundef) local_unnamed_addr #1
declare i32 @ofw_bus_is_compatible(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @device_set_desc(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_arm_freescale_vybrid_extr_vf_iomuxc.c_iomuxc_probe |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/zd1211rw/extr_zd_chip.c_read_fw_regs_offset.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/zd1211rw/extr_zd_chip.c_read_fw_regs_offset.c"
target datalayout = "e-m:e-p270:32:32-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.zd_chip = type { i64, i32 }
@FWRAW_REGS_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"fw_regs_base: %#06hx\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @read_fw_regs_offset], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @read_fw_regs_offset(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.zd_chip, ptr %0, i64 0, i32 1
%3 = tail call i32 @mutex_is_locked(ptr noundef nonnull %2) #2
%4 = tail call i32 @ZD_ASSERT(i32 noundef %3) #2
%5 = load i32, ptr @FWRAW_REGS_ADDR, align 4, !tbaa !5
%6 = tail call i32 @zd_ioread16_locked(ptr noundef %0, ptr noundef %0, i32 noundef %5) #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = tail call i32 @zd_chip_dev(ptr noundef %0) #2
%10 = load i64, ptr %0, align 8, !tbaa !9
%11 = trunc i64 %10 to i32
%12 = tail call i32 @dev_dbg_f(i32 noundef %9, ptr noundef nonnull @.str, i32 noundef %11) #2
br label %13
13: ; preds = %1, %8
ret i32 %6
}
declare i32 @ZD_ASSERT(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_is_locked(ptr noundef) local_unnamed_addr #1
declare i32 @zd_ioread16_locked(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg_f(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @zd_chip_dev(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"zd_chip", !11, i64 0, !6, i64 8}
!11 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/zd1211rw/extr_zd_chip.c_read_fw_regs_offset.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/zd1211rw/extr_zd_chip.c_read_fw_regs_offset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FWRAW_REGS_ADDR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"fw_regs_base: %#06hx\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @read_fw_regs_offset], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @read_fw_regs_offset(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = tail call i32 @mutex_is_locked(ptr noundef nonnull %2) #2
%4 = tail call i32 @ZD_ASSERT(i32 noundef %3) #2
%5 = load i32, ptr @FWRAW_REGS_ADDR, align 4, !tbaa !6
%6 = tail call i32 @zd_ioread16_locked(ptr noundef %0, ptr noundef %0, i32 noundef %5) #2
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = tail call i32 @zd_chip_dev(ptr noundef %0) #2
%10 = load i64, ptr %0, align 8, !tbaa !10
%11 = trunc i64 %10 to i32
%12 = tail call i32 @dev_dbg_f(i32 noundef %9, ptr noundef nonnull @.str, i32 noundef %11) #2
br label %13
13: ; preds = %1, %8
ret i32 %6
}
declare i32 @ZD_ASSERT(i32 noundef) local_unnamed_addr #1
declare i32 @mutex_is_locked(ptr noundef) local_unnamed_addr #1
declare i32 @zd_ioread16_locked(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg_f(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @zd_chip_dev(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"zd_chip", !12, i64 0, !7, i64 8}
!12 = !{!"long", !8, i64 0}
| fastsocket_kernel_drivers_net_wireless_zd1211rw_extr_zd_chip.c_read_fw_regs_offset |
; ModuleID = 'AnghaBench/anypixel/firmware/controller/ThirdParty/SPL/src/extr_stm32f4xx_wwdg.c_WWDG_ClearFlag.c'
source_filename = "AnghaBench/anypixel/firmware/controller/ThirdParty/SPL/src/extr_stm32f4xx_wwdg.c_WWDG_ClearFlag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@RESET = dso_local local_unnamed_addr global i64 0, align 8
@WWDG = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: write, inaccessiblemem: none) uwtable
define dso_local void @WWDG_ClearFlag() local_unnamed_addr #0 {
%1 = load i64, ptr @RESET, align 8, !tbaa !5
%2 = load ptr, ptr @WWDG, align 8, !tbaa !9
store i64 %1, ptr %2, align 8, !tbaa !11
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: write, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/anypixel/firmware/controller/ThirdParty/SPL/src/extr_stm32f4xx_wwdg.c_WWDG_ClearFlag.c'
source_filename = "AnghaBench/anypixel/firmware/controller/ThirdParty/SPL/src/extr_stm32f4xx_wwdg.c_WWDG_ClearFlag.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RESET = common local_unnamed_addr global i64 0, align 8
@WWDG = common local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, argmem: write, inaccessiblemem: none) uwtable(sync)
define void @WWDG_ClearFlag() local_unnamed_addr #0 {
%1 = load i64, ptr @RESET, align 8, !tbaa !6
%2 = load ptr, ptr @WWDG, align 8, !tbaa !10
store i64 %1, ptr %2, align 8, !tbaa !12
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, argmem: write, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0}
| anypixel_firmware_controller_ThirdParty_SPL_src_extr_stm32f4xx_wwdg.c_WWDG_ClearFlag |
; ModuleID = 'AnghaBench/RetroArch/extr_retroarch.c_input_state.c'
source_filename = "AnghaBench/RetroArch/extr_retroarch.c_input_state.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_13__ = type { i32 }
@input_driver_axis_threshold = dso_local local_unnamed_addr global i32 0, align 4
@configuration_settings = dso_local local_unnamed_addr global ptr null, align 8
@input_autoconf_binds = dso_local local_unnamed_addr global ptr null, align 8
@bsv_movie_state_handle = dso_local local_unnamed_addr global ptr null, align 8
@bsv_movie_state = dso_local local_unnamed_addr global %struct.TYPE_13__ zeroinitializer, align 4
@RETRO_DEVICE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@current_input = dso_local local_unnamed_addr global ptr null, align 8
@current_input_data = dso_local local_unnamed_addr global i32 0, align 4
@libretro_input_binds = dso_local local_unnamed_addr global i32 0, align 4
@input_driver_flushing_input = dso_local local_unnamed_addr global i32 0, align 4
@input_driver_block_libretro_input = dso_local local_unnamed_addr global i32 0, align 4
@RETRO_DEVICE_JOYPAD = dso_local local_unnamed_addr global i32 0, align 4
@RETRO_DEVICE_ID_JOYPAD_MASK = dso_local local_unnamed_addr global i32 0, align 4
@RARCH_FIRST_CUSTOM_BIND = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @input_state], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @input_state(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%7 = load i32, ptr @input_driver_axis_threshold, align 4, !tbaa !5
%8 = zext i32 %7 to i64
%9 = shl nuw i64 %8, 32
%10 = load ptr, ptr @configuration_settings, align 8, !tbaa !9
%11 = load ptr, ptr %10, align 8, !tbaa !11
%12 = zext i32 %0 to i64
%13 = getelementptr inbounds i64, ptr %11, i64 %12
%14 = load i64, ptr %13, align 8, !tbaa !14
%15 = load ptr, ptr @input_autoconf_binds, align 8, !tbaa !9
%16 = getelementptr inbounds i32, ptr %15, i64 %14
%17 = load i32, ptr %16, align 4, !tbaa !5
%18 = zext i32 %17 to i64
%19 = or disjoint i64 %9, %18
%20 = tail call i64 (...) @BSV_MOVIE_IS_PLAYBACK_ON() #3
%21 = icmp eq i64 %20, 0
br i1 %21, label %31, label %22
22: ; preds = %4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%23 = load ptr, ptr @bsv_movie_state_handle, align 8, !tbaa !9
%24 = load i32, ptr %23, align 4, !tbaa !16
%25 = call i32 @intfstream_read(i32 noundef %24, ptr noundef nonnull %6, i32 noundef 2) #3
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr %6, align 4, !tbaa !5
%29 = call i32 @swap_if_big16(i32 noundef %28) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
br label %78
30: ; preds = %22
store i32 1, ptr @bsv_movie_state, align 4, !tbaa !18
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
br label %31
31: ; preds = %30, %4
%32 = load i32, ptr @RETRO_DEVICE_MASK, align 4, !tbaa !5
%33 = and i32 %32, %1
%34 = load ptr, ptr @current_input, align 8, !tbaa !9
%35 = load ptr, ptr %34, align 8, !tbaa !20
%36 = load i32, ptr @current_input_data, align 4, !tbaa !5
%37 = load i32, ptr @libretro_input_binds, align 4, !tbaa !5
%38 = call i32 %35(i32 noundef %36, i64 %14, i64 %19, i32 noundef %37, i32 noundef %0, i32 noundef %33, i32 noundef %2, i32 noundef %3) #3
%39 = load i32, ptr @input_driver_flushing_input, align 4, !tbaa !5
%40 = icmp ne i32 %39, 0
%41 = load i32, ptr @input_driver_block_libretro_input, align 4
%42 = icmp ne i32 %41, 0
%43 = select i1 %40, i1 true, i1 %42
br i1 %43, label %68, label %44
44: ; preds = %31
%45 = load i32, ptr @RETRO_DEVICE_JOYPAD, align 4, !tbaa !5
%46 = icmp eq i32 %33, %45
%47 = load i32, ptr @RETRO_DEVICE_ID_JOYPAD_MASK, align 4
%48 = icmp eq i32 %47, %3
%49 = select i1 %46, i1 %48, i1 false
br i1 %49, label %50, label %66
50: ; preds = %44
%51 = load i32, ptr @RARCH_FIRST_CUSTOM_BIND, align 4, !tbaa !5
%52 = icmp eq i32 %51, 0
br i1 %52, label %68, label %53
53: ; preds = %50, %61
%54 = phi i32 [ %62, %61 ], [ 0, %50 ]
%55 = phi i32 [ %63, %61 ], [ 0, %50 ]
%56 = call i32 @input_state_device(i32 noundef %38, i32 noundef %0, i32 noundef %33, i32 noundef %2, i32 noundef %55, i32 noundef 1) #3
%57 = icmp eq i32 %56, 0
br i1 %57, label %61, label %58
58: ; preds = %53
%59 = shl nuw i32 1, %55
%60 = or i32 %54, %59
store i32 %60, ptr %5, align 4, !tbaa !5
br label %61
61: ; preds = %53, %58
%62 = phi i32 [ %54, %53 ], [ %60, %58 ]
%63 = add nuw i32 %55, 1
%64 = load i32, ptr @RARCH_FIRST_CUSTOM_BIND, align 4, !tbaa !5
%65 = icmp ult i32 %63, %64
br i1 %65, label %53, label %68, !llvm.loop !22
66: ; preds = %44
%67 = call i32 @input_state_device(i32 noundef %38, i32 noundef %0, i32 noundef %33, i32 noundef %2, i32 noundef %3, i32 noundef 0) #3
br label %68
68: ; preds = %61, %50, %66, %31
%69 = phi i32 [ 0, %50 ], [ %67, %66 ], [ 0, %31 ], [ %62, %61 ]
%70 = call i64 (...) @BSV_MOVIE_IS_PLAYBACK_OFF() #3
%71 = icmp eq i64 %70, 0
br i1 %71, label %78, label %72
72: ; preds = %68
%73 = call i32 @swap_if_big16(i32 noundef %69) #3
store i32 %73, ptr %5, align 4, !tbaa !5
%74 = load ptr, ptr @bsv_movie_state_handle, align 8, !tbaa !9
%75 = load i32, ptr %74, align 4, !tbaa !16
%76 = call i32 @intfstream_write(i32 noundef %75, ptr noundef nonnull %5, i32 noundef 2) #3
%77 = load i32, ptr %5, align 4, !tbaa !5
br label %78
78: ; preds = %68, %72, %27
%79 = phi i32 [ %29, %27 ], [ %77, %72 ], [ %69, %68 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %79
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @BSV_MOVIE_IS_PLAYBACK_ON(...) local_unnamed_addr #2
declare i32 @intfstream_read(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @swap_if_big16(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 @input_state_device(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @BSV_MOVIE_IS_PLAYBACK_OFF(...) local_unnamed_addr #2
declare i32 @intfstream_write(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"TYPE_11__", !13, i64 0}
!13 = !{!"TYPE_8__", !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"TYPE_12__", !6, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"TYPE_13__", !6, i64 0}
!20 = !{!21, !10, i64 0}
!21 = !{!"TYPE_10__", !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/RetroArch/extr_retroarch.c_input_state.c'
source_filename = "AnghaBench/RetroArch/extr_retroarch.c_input_state.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_13__ = type { i32 }
@input_driver_axis_threshold = common local_unnamed_addr global i32 0, align 4
@configuration_settings = common local_unnamed_addr global ptr null, align 8
@input_autoconf_binds = common local_unnamed_addr global ptr null, align 8
@bsv_movie_state_handle = common local_unnamed_addr global ptr null, align 8
@bsv_movie_state = common local_unnamed_addr global %struct.TYPE_13__ zeroinitializer, align 4
@RETRO_DEVICE_MASK = common local_unnamed_addr global i32 0, align 4
@current_input = common local_unnamed_addr global ptr null, align 8
@current_input_data = common local_unnamed_addr global i32 0, align 4
@libretro_input_binds = common local_unnamed_addr global i32 0, align 4
@input_driver_flushing_input = common local_unnamed_addr global i32 0, align 4
@input_driver_block_libretro_input = common local_unnamed_addr global i32 0, align 4
@RETRO_DEVICE_JOYPAD = common local_unnamed_addr global i32 0, align 4
@RETRO_DEVICE_ID_JOYPAD_MASK = common local_unnamed_addr global i32 0, align 4
@RARCH_FIRST_CUSTOM_BIND = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @input_state], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @input_state(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%7 = load i32, ptr @input_driver_axis_threshold, align 4, !tbaa !6
%8 = zext i32 %7 to i64
%9 = shl nuw i64 %8, 32
%10 = load ptr, ptr @configuration_settings, align 8, !tbaa !10
%11 = load ptr, ptr %10, align 8, !tbaa !12
%12 = zext i32 %0 to i64
%13 = getelementptr inbounds i64, ptr %11, i64 %12
%14 = load i64, ptr %13, align 8, !tbaa !15
%15 = load ptr, ptr @input_autoconf_binds, align 8, !tbaa !10
%16 = getelementptr inbounds i32, ptr %15, i64 %14
%17 = load i32, ptr %16, align 4, !tbaa !6
%18 = zext i32 %17 to i64
%19 = or disjoint i64 %9, %18
%20 = tail call i64 @BSV_MOVIE_IS_PLAYBACK_ON() #3
%21 = icmp eq i64 %20, 0
br i1 %21, label %31, label %22
22: ; preds = %4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%23 = load ptr, ptr @bsv_movie_state_handle, align 8, !tbaa !10
%24 = load i32, ptr %23, align 4, !tbaa !17
%25 = call i32 @intfstream_read(i32 noundef %24, ptr noundef nonnull %6, i32 noundef 2) #3
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr %6, align 4, !tbaa !6
%29 = call i32 @swap_if_big16(i32 noundef %28) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
br label %80
30: ; preds = %22
store i32 1, ptr @bsv_movie_state, align 4, !tbaa !19
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
br label %31
31: ; preds = %30, %4
%32 = load i32, ptr @RETRO_DEVICE_MASK, align 4, !tbaa !6
%33 = and i32 %32, %1
%34 = load ptr, ptr @current_input, align 8, !tbaa !10
%35 = load ptr, ptr %34, align 8, !tbaa !21
%36 = load i32, ptr @current_input_data, align 4, !tbaa !6
%37 = load i32, ptr @libretro_input_binds, align 4, !tbaa !6
%38 = insertvalue [2 x i64] poison, i64 %14, 0
%39 = insertvalue [2 x i64] %38, i64 %19, 1
%40 = call i32 %35(i32 noundef %36, [2 x i64] %39, i32 noundef %37, i32 noundef %0, i32 noundef %33, i32 noundef %2, i32 noundef %3) #3
%41 = load i32, ptr @input_driver_flushing_input, align 4, !tbaa !6
%42 = icmp ne i32 %41, 0
%43 = load i32, ptr @input_driver_block_libretro_input, align 4
%44 = icmp ne i32 %43, 0
%45 = select i1 %42, i1 true, i1 %44
br i1 %45, label %70, label %46
46: ; preds = %31
%47 = load i32, ptr @RETRO_DEVICE_JOYPAD, align 4, !tbaa !6
%48 = icmp eq i32 %33, %47
%49 = load i32, ptr @RETRO_DEVICE_ID_JOYPAD_MASK, align 4
%50 = icmp eq i32 %49, %3
%51 = select i1 %48, i1 %50, i1 false
br i1 %51, label %52, label %68
52: ; preds = %46
%53 = load i32, ptr @RARCH_FIRST_CUSTOM_BIND, align 4, !tbaa !6
%54 = icmp eq i32 %53, 0
br i1 %54, label %70, label %55
55: ; preds = %52, %63
%56 = phi i32 [ %64, %63 ], [ 0, %52 ]
%57 = phi i32 [ %65, %63 ], [ 0, %52 ]
%58 = call i32 @input_state_device(i32 noundef %40, i32 noundef %0, i32 noundef %33, i32 noundef %2, i32 noundef %57, i32 noundef 1) #3
%59 = icmp eq i32 %58, 0
br i1 %59, label %63, label %60
60: ; preds = %55
%61 = shl nuw i32 1, %57
%62 = or i32 %56, %61
store i32 %62, ptr %5, align 4, !tbaa !6
br label %63
63: ; preds = %55, %60
%64 = phi i32 [ %56, %55 ], [ %62, %60 ]
%65 = add nuw i32 %57, 1
%66 = load i32, ptr @RARCH_FIRST_CUSTOM_BIND, align 4, !tbaa !6
%67 = icmp ult i32 %65, %66
br i1 %67, label %55, label %70, !llvm.loop !23
68: ; preds = %46
%69 = call i32 @input_state_device(i32 noundef %40, i32 noundef %0, i32 noundef %33, i32 noundef %2, i32 noundef %3, i32 noundef 0) #3
br label %70
70: ; preds = %63, %52, %68, %31
%71 = phi i32 [ 0, %52 ], [ %69, %68 ], [ 0, %31 ], [ %64, %63 ]
%72 = call i64 @BSV_MOVIE_IS_PLAYBACK_OFF() #3
%73 = icmp eq i64 %72, 0
br i1 %73, label %80, label %74
74: ; preds = %70
%75 = call i32 @swap_if_big16(i32 noundef %71) #3
store i32 %75, ptr %5, align 4, !tbaa !6
%76 = load ptr, ptr @bsv_movie_state_handle, align 8, !tbaa !10
%77 = load i32, ptr %76, align 4, !tbaa !17
%78 = call i32 @intfstream_write(i32 noundef %77, ptr noundef nonnull %5, i32 noundef 2) #3
%79 = load i32, ptr %5, align 4, !tbaa !6
br label %80
80: ; preds = %70, %74, %27
%81 = phi i32 [ %29, %27 ], [ %79, %74 ], [ %71, %70 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %81
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @BSV_MOVIE_IS_PLAYBACK_ON(...) local_unnamed_addr #2
declare i32 @intfstream_read(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @swap_if_big16(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 @input_state_device(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @BSV_MOVIE_IS_PLAYBACK_OFF(...) local_unnamed_addr #2
declare i32 @intfstream_write(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_11__", !14, i64 0}
!14 = !{!"TYPE_8__", !11, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_12__", !7, i64 0}
!19 = !{!20, !7, i64 0}
!20 = !{!"TYPE_13__", !7, i64 0}
!21 = !{!22, !11, i64 0}
!22 = !{!"TYPE_10__", !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
| RetroArch_extr_retroarch.c_input_state |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/nfs/extr_nfs_bio.c_nfs_buf_incore.c'
source_filename = "AnghaBench/darwin-xnu/bsd/nfs/extr_nfs_bio.c_nfs_buf_incore.c"
target datalayout = "e-m:e-p270:32:32-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.nfsbuf = type { i64, i32, i32, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { ptr }
@NB_INVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @nfs_buf_incore(i64 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @NFSBUFHASH(i64 noundef %0, i32 noundef %1) #2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %29, label %6
6: ; preds = %2, %25
%7 = phi ptr [ %27, %25 ], [ %4, %2 ]
%8 = getelementptr inbounds %struct.nfsbuf, ptr %7, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !9
%10 = icmp eq i32 %9, %1
br i1 %10, label %11, label %25
11: ; preds = %6
%12 = load i64, ptr %7, align 8, !tbaa !14
%13 = icmp eq i64 %12, %0
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = getelementptr inbounds %struct.nfsbuf, ptr %7, i64 0, i32 1
%16 = load i32, ptr %15, align 8, !tbaa !15
%17 = load i32, ptr @NB_INVAL, align 4, !tbaa !16
%18 = tail call i32 @ISSET(i32 noundef %16, i32 noundef %17) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %14
%21 = getelementptr inbounds %struct.nfsbuf, ptr %7, i64 0, i32 1
%22 = load i32, ptr %21, align 8, !tbaa !15
%23 = load i64, ptr %7, align 8, !tbaa !14
%24 = tail call i32 @FSDBG(i32 noundef 547, ptr noundef nonnull %7, i32 noundef %1, i32 noundef %22, i64 noundef %23) #2
br label %29
25: ; preds = %6, %11, %14
%26 = getelementptr inbounds %struct.nfsbuf, ptr %7, i64 0, i32 3
%27 = load ptr, ptr %26, align 8, !tbaa !5
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %6, !llvm.loop !17
29: ; preds = %25, %2, %20
%30 = phi ptr [ %7, %20 ], [ null, %2 ], [ null, %25 ]
ret ptr %30
}
declare ptr @NFSBUFHASH(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ISSET(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FSDBG(i32 noundef, ptr noundef, i32 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 12}
!10 = !{!"nfsbuf", !11, i64 0, !12, i64 8, !12, i64 12, !13, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"TYPE_3__", !6, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !12, i64 8}
!16 = !{!12, !12, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/nfs/extr_nfs_bio.c_nfs_buf_incore.c'
source_filename = "AnghaBench/darwin-xnu/bsd/nfs/extr_nfs_bio.c_nfs_buf_incore.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NB_INVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @nfs_buf_incore(i64 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @NFSBUFHASH(i64 noundef %0, i32 noundef %1) #2
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %29, label %6
6: ; preds = %2, %25
%7 = phi ptr [ %27, %25 ], [ %4, %2 ]
%8 = getelementptr inbounds i8, ptr %7, i64 12
%9 = load i32, ptr %8, align 4, !tbaa !10
%10 = icmp eq i32 %9, %1
br i1 %10, label %11, label %25
11: ; preds = %6
%12 = load i64, ptr %7, align 8, !tbaa !15
%13 = icmp eq i64 %12, %0
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = getelementptr inbounds i8, ptr %7, i64 8
%16 = load i32, ptr %15, align 8, !tbaa !16
%17 = load i32, ptr @NB_INVAL, align 4, !tbaa !17
%18 = tail call i32 @ISSET(i32 noundef %16, i32 noundef %17) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %14
%21 = getelementptr inbounds i8, ptr %7, i64 8
%22 = load i32, ptr %21, align 8, !tbaa !16
%23 = load i64, ptr %7, align 8, !tbaa !15
%24 = tail call i32 @FSDBG(i32 noundef 547, ptr noundef nonnull %7, i32 noundef %1, i32 noundef %22, i64 noundef %23) #2
br label %29
25: ; preds = %6, %11, %14
%26 = getelementptr inbounds i8, ptr %7, i64 16
%27 = load ptr, ptr %26, align 8, !tbaa !6
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %6, !llvm.loop !18
29: ; preds = %25, %2, %20
%30 = phi ptr [ %7, %20 ], [ null, %2 ], [ null, %25 ]
ret ptr %30
}
declare ptr @NFSBUFHASH(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ISSET(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FSDBG(i32 noundef, ptr noundef, i32 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, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 12}
!11 = !{!"nfsbuf", !12, i64 0, !13, i64 8, !13, i64 12, !14, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"TYPE_3__", !7, i64 0}
!15 = !{!11, !12, i64 0}
!16 = !{!11, !13, i64 8}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| darwin-xnu_bsd_nfs_extr_nfs_bio.c_nfs_buf_incore |
; ModuleID = 'AnghaBench/freebsd/tests/sys/netmap/extr_ctrl-api-test.c_port_register_hwall_rx.c'
source_filename = "AnghaBench/freebsd/tests/sys/netmap/extr_ctrl-api-test.c_port_register_hwall_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.TestContext = type { i32, i32 }
@NR_REG_ALL_NIC = dso_local local_unnamed_addr global i32 0, align 4
@NR_RX_RINGS_ONLY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @port_register_hwall_rx], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @port_register_hwall_rx(ptr noundef %0) #0 {
%2 = load i32, ptr @NR_REG_ALL_NIC, align 4, !tbaa !5
%3 = getelementptr inbounds %struct.TestContext, ptr %0, i64 0, i32 1
store i32 %2, ptr %3, align 4, !tbaa !9
%4 = load i32, ptr @NR_RX_RINGS_ONLY, align 4, !tbaa !5
%5 = load i32, ptr %0, align 4, !tbaa !11
%6 = or i32 %5, %4
store i32 %6, ptr %0, align 4, !tbaa !11
%7 = tail call i32 @port_register(ptr noundef nonnull %0) #2
ret i32 %7
}
declare i32 @port_register(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 4}
!10 = !{!"TestContext", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/tests/sys/netmap/extr_ctrl-api-test.c_port_register_hwall_rx.c'
source_filename = "AnghaBench/freebsd/tests/sys/netmap/extr_ctrl-api-test.c_port_register_hwall_rx.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NR_REG_ALL_NIC = common local_unnamed_addr global i32 0, align 4
@NR_RX_RINGS_ONLY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @port_register_hwall_rx], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @port_register_hwall_rx(ptr noundef %0) #0 {
%2 = load i32, ptr @NR_REG_ALL_NIC, align 4, !tbaa !6
%3 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %2, ptr %3, align 4, !tbaa !10
%4 = load i32, ptr @NR_RX_RINGS_ONLY, align 4, !tbaa !6
%5 = load i32, ptr %0, align 4, !tbaa !12
%6 = or i32 %5, %4
store i32 %6, ptr %0, align 4, !tbaa !12
%7 = tail call i32 @port_register(ptr noundef nonnull %0) #2
ret i32 %7
}
declare i32 @port_register(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 4}
!11 = !{!"TestContext", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
| freebsd_tests_sys_netmap_extr_ctrl-api-test.c_port_register_hwall_rx |
; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_put_event.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_put_event.c"
target datalayout = "e-m:e-p270:32:32-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.perf_event = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @put_event], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @put_event(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.perf_event, ptr %0, i64 0, i32 2
%3 = tail call i32 @atomic_long_dec_and_test(ptr noundef nonnull %2) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %27, label %5
5: ; preds = %1
%6 = tail call i32 (...) @rcu_read_lock() #2
%7 = getelementptr inbounds %struct.perf_event, ptr %0, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !5
%9 = tail call ptr @ACCESS_ONCE(i32 noundef %8) #2
%10 = tail call i32 (...) @smp_read_barrier_depends() #2
%11 = icmp eq ptr %9, null
br i1 %11, label %23, label %12
12: ; preds = %5
%13 = tail call i32 @get_task_struct(ptr noundef nonnull %9) #2
%14 = tail call i32 (...) @rcu_read_unlock() #2
%15 = tail call i32 @mutex_lock(ptr noundef nonnull %9) #2
%16 = load i32, ptr %7, align 4, !tbaa !5
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %12
%19 = tail call i32 @list_del_init(ptr noundef nonnull %0) #2
br label %20
20: ; preds = %18, %12
%21 = tail call i32 @mutex_unlock(ptr noundef nonnull %9) #2
%22 = tail call i32 @put_task_struct(ptr noundef nonnull %9) #2
br label %25
23: ; preds = %5
%24 = tail call i32 (...) @rcu_read_unlock() #2
br label %25
25: ; preds = %23, %20
%26 = tail call i32 @perf_event_release_kernel(ptr noundef nonnull %0) #2
br label %27
27: ; preds = %1, %25
ret void
}
declare i32 @atomic_long_dec_and_test(ptr noundef) local_unnamed_addr #1
declare i32 @rcu_read_lock(...) local_unnamed_addr #1
declare ptr @ACCESS_ONCE(i32 noundef) local_unnamed_addr #1
declare i32 @smp_read_barrier_depends(...) local_unnamed_addr #1
declare i32 @get_task_struct(ptr noundef) local_unnamed_addr #1
declare i32 @rcu_read_unlock(...) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @list_del_init(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @put_task_struct(ptr noundef) local_unnamed_addr #1
declare i32 @perf_event_release_kernel(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"perf_event", !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"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_put_event.c'
source_filename = "AnghaBench/fastsocket/kernel/kernel/events/extr_core.c_put_event.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 @put_event], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @put_event(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = tail call i32 @atomic_long_dec_and_test(ptr noundef nonnull %2) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %27, label %5
5: ; preds = %1
%6 = tail call i32 @rcu_read_lock() #2
%7 = getelementptr inbounds i8, ptr %0, i64 4
%8 = load i32, ptr %7, align 4, !tbaa !6
%9 = tail call ptr @ACCESS_ONCE(i32 noundef %8) #2
%10 = tail call i32 @smp_read_barrier_depends() #2
%11 = icmp eq ptr %9, null
br i1 %11, label %23, label %12
12: ; preds = %5
%13 = tail call i32 @get_task_struct(ptr noundef nonnull %9) #2
%14 = tail call i32 @rcu_read_unlock() #2
%15 = tail call i32 @mutex_lock(ptr noundef nonnull %9) #2
%16 = load i32, ptr %7, align 4, !tbaa !6
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %12
%19 = tail call i32 @list_del_init(ptr noundef nonnull %0) #2
br label %20
20: ; preds = %18, %12
%21 = tail call i32 @mutex_unlock(ptr noundef nonnull %9) #2
%22 = tail call i32 @put_task_struct(ptr noundef nonnull %9) #2
br label %25
23: ; preds = %5
%24 = tail call i32 @rcu_read_unlock() #2
br label %25
25: ; preds = %23, %20
%26 = tail call i32 @perf_event_release_kernel(ptr noundef nonnull %0) #2
br label %27
27: ; preds = %1, %25
ret void
}
declare i32 @atomic_long_dec_and_test(ptr noundef) local_unnamed_addr #1
declare i32 @rcu_read_lock(...) local_unnamed_addr #1
declare ptr @ACCESS_ONCE(i32 noundef) local_unnamed_addr #1
declare i32 @smp_read_barrier_depends(...) local_unnamed_addr #1
declare i32 @get_task_struct(ptr noundef) local_unnamed_addr #1
declare i32 @rcu_read_unlock(...) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @list_del_init(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @put_task_struct(ptr noundef) local_unnamed_addr #1
declare i32 @perf_event_release_kernel(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"perf_event", !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"}
| fastsocket_kernel_kernel_events_extr_core.c_put_event |
; ModuleID = 'AnghaBench/timescaledb/tsl/src/continuous_aggs/extr_create.c_cagg_create_hypertable.c'
source_filename = "AnghaBench/timescaledb/tsl/src/continuous_aggs/extr_create.c_cagg_create_hypertable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@INT8OID = dso_local local_unnamed_addr global i32 0, align 4
@InvalidOid = dso_local local_unnamed_addr global i32 0, align 4
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@ERRCODE_INTERNAL_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"continuous agg could not create hypertable for relid\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @cagg_create_hypertable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cagg_create_hypertable(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = call i32 @namestrcpy(ptr noundef nonnull %5, ptr noundef %2) #3
%7 = call i32 @Int64GetDatum(i32 noundef %3) #3
%8 = load i32, ptr @INT8OID, align 4, !tbaa !5
%9 = load i32, ptr @InvalidOid, align 4, !tbaa !5
%10 = call ptr @ts_dimension_info_create_open(i32 noundef %1, ptr noundef nonnull %5, i32 noundef %7, i32 noundef %8, i32 noundef %9) #3
%11 = call ptr @ts_chunk_sizing_info_get_default_disabled(i32 noundef %1) #3
store ptr %2, ptr %11, align 8, !tbaa !9
%12 = call i32 @ts_hypertable_create_from_info(i32 noundef %1, i32 noundef %0, i32 noundef 0, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %11) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %4
%15 = load i32, ptr @ERROR, align 4, !tbaa !5
%16 = load i32, ptr @ERRCODE_INTERNAL_ERROR, align 4, !tbaa !5
%17 = call i32 @errcode(i32 noundef %16) #3
%18 = call i32 @errmsg(ptr noundef nonnull @.str) #3
%19 = call i32 @ereport(i32 noundef %15, i32 noundef %18) #3
br label %20
20: ; preds = %14, %4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #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 @namestrcpy(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @ts_dimension_info_create_open(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @Int64GetDatum(i32 noundef) local_unnamed_addr #2
declare ptr @ts_chunk_sizing_info_get_default_disabled(i32 noundef) local_unnamed_addr #2
declare i32 @ts_hypertable_create_from_info(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errcode(i32 noundef) local_unnamed_addr #2
declare i32 @errmsg(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_4__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/timescaledb/tsl/src/continuous_aggs/extr_create.c_cagg_create_hypertable.c'
source_filename = "AnghaBench/timescaledb/tsl/src/continuous_aggs/extr_create.c_cagg_create_hypertable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@INT8OID = common local_unnamed_addr global i32 0, align 4
@InvalidOid = common local_unnamed_addr global i32 0, align 4
@ERROR = common local_unnamed_addr global i32 0, align 4
@ERRCODE_INTERNAL_ERROR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [53 x i8] c"continuous agg could not create hypertable for relid\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @cagg_create_hypertable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cagg_create_hypertable(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = call i32 @namestrcpy(ptr noundef nonnull %5, ptr noundef %2) #3
%7 = call i32 @Int64GetDatum(i32 noundef %3) #3
%8 = load i32, ptr @INT8OID, align 4, !tbaa !6
%9 = load i32, ptr @InvalidOid, align 4, !tbaa !6
%10 = call ptr @ts_dimension_info_create_open(i32 noundef %1, ptr noundef nonnull %5, i32 noundef %7, i32 noundef %8, i32 noundef %9) #3
%11 = call ptr @ts_chunk_sizing_info_get_default_disabled(i32 noundef %1) #3
store ptr %2, ptr %11, align 8, !tbaa !10
%12 = call i32 @ts_hypertable_create_from_info(i32 noundef %1, i32 noundef %0, i32 noundef 0, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %11) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %4
%15 = load i32, ptr @ERROR, align 4, !tbaa !6
%16 = load i32, ptr @ERRCODE_INTERNAL_ERROR, align 4, !tbaa !6
%17 = call i32 @errcode(i32 noundef %16) #3
%18 = call i32 @errmsg(ptr noundef nonnull @.str) #3
%19 = call i32 @ereport(i32 noundef %15, i32 noundef %18) #3
br label %20
20: ; preds = %14, %4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #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 @namestrcpy(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @ts_dimension_info_create_open(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @Int64GetDatum(i32 noundef) local_unnamed_addr #2
declare ptr @ts_chunk_sizing_info_get_default_disabled(i32 noundef) local_unnamed_addr #2
declare i32 @ts_hypertable_create_from_info(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ereport(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @errcode(i32 noundef) local_unnamed_addr #2
declare i32 @errmsg(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| timescaledb_tsl_src_continuous_aggs_extr_create.c_cagg_create_hypertable |
; ModuleID = 'AnghaBench/micropython/ports/stm32/extr_extint.c_extint_set.c'
source_filename = "AnghaBench/micropython/ports/stm32/extr_extint.c_extint_set.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i64, i32 }
@pyb_extint_callback = dso_local local_unnamed_addr global i32 0, align 4
@MP_OBJ_SENTINEL = dso_local local_unnamed_addr global i32 0, align 4
@EXTI_Mode_Interrupt = dso_local local_unnamed_addr global i32 0, align 4
@EXTI_Mode_Event = dso_local local_unnamed_addr global i32 0, align 4
@pyb_extint_mode = dso_local local_unnamed_addr global ptr null, align 8
@pyb_extint_hard_irq = dso_local local_unnamed_addr global ptr null, align 8
@pyb_extint_callback_arg = dso_local local_unnamed_addr global ptr null, align 8
@SYSCFG = dso_local local_unnamed_addr global ptr null, align 8
@GPIO_MODE_IT_RISING = dso_local local_unnamed_addr global i64 0, align 8
@EXTI_RTSR = dso_local local_unnamed_addr global i32 0, align 4
@GPIO_MODE_IT_FALLING = dso_local local_unnamed_addr global i64 0, align 8
@EXTI_FTSR = dso_local local_unnamed_addr global i32 0, align 4
@nvic_irq_channel = dso_local local_unnamed_addr global ptr null, align 8
@IRQ_PRI_EXTINT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @extint_set(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = load i32, ptr @pyb_extint_callback, align 4, !tbaa !11
%5 = tail call ptr @MP_STATE_PORT(i32 noundef %4) #2
%6 = getelementptr inbounds i32, ptr %5, i64 %3
%7 = tail call i32 @extint_disable(i64 noundef %3) #2
%8 = load i32, ptr @MP_OBJ_SENTINEL, align 4, !tbaa !11
store i32 %8, ptr %6, align 4, !tbaa !11
%9 = and i64 %1, 65536
%10 = icmp eq i64 %9, 0
%11 = load i32, ptr @EXTI_Mode_Interrupt, align 4
%12 = load i32, ptr @EXTI_Mode_Event, align 4
%13 = select i1 %10, i32 %12, i32 %11
%14 = load ptr, ptr @pyb_extint_mode, align 8, !tbaa !12
%15 = getelementptr inbounds i32, ptr %14, i64 %3
store i32 %13, ptr %15, align 4, !tbaa !11
%16 = load ptr, ptr @pyb_extint_hard_irq, align 8, !tbaa !12
%17 = getelementptr inbounds i32, ptr %16, i64 %3
store i32 1, ptr %17, align 4, !tbaa !11
%18 = tail call i32 @MP_OBJ_FROM_PTR(ptr noundef nonnull %0) #2
%19 = load ptr, ptr @pyb_extint_callback_arg, align 8, !tbaa !12
%20 = getelementptr inbounds i32, ptr %19, i64 %3
store i32 %18, ptr %20, align 4, !tbaa !11
%21 = tail call i32 (...) @__HAL_RCC_SYSCFG_CLK_ENABLE() #2
%22 = load ptr, ptr @SYSCFG, align 8, !tbaa !12
%23 = load ptr, ptr %22, align 8, !tbaa !14
%24 = lshr i64 %3, 2
%25 = getelementptr inbounds i32, ptr %23, i64 %24
%26 = load i32, ptr %25, align 4, !tbaa !11
%27 = shl i64 %3, 2
%28 = and i64 %27, 12
%29 = trunc i64 %28 to i32
%30 = shl nuw nsw i32 15, %29
%31 = xor i32 %30, -1
%32 = and i32 %26, %31
%33 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%34 = load i32, ptr %33, align 8, !tbaa !16
%35 = tail call i64 @GPIO_GET_INDEX(i32 noundef %34) #2
%36 = shl i64 %35, %28
%37 = trunc i64 %36 to i32
%38 = or i32 %32, %37
%39 = load ptr, ptr @SYSCFG, align 8, !tbaa !12
%40 = load ptr, ptr %39, align 8, !tbaa !14
%41 = getelementptr inbounds i32, ptr %40, i64 %24
store i32 %38, ptr %41, align 4, !tbaa !11
%42 = load i64, ptr @GPIO_MODE_IT_RISING, align 8, !tbaa !17
%43 = and i64 %42, %1
%44 = icmp eq i64 %43, %42
%45 = trunc i64 %3 to i32
%46 = shl nuw i32 1, %45
br i1 %44, label %47, label %50
47: ; preds = %2
%48 = load i32, ptr @EXTI_RTSR, align 4, !tbaa !11
%49 = or i32 %48, %46
br label %54
50: ; preds = %2
%51 = xor i32 %46, -1
%52 = load i32, ptr @EXTI_RTSR, align 4, !tbaa !11
%53 = and i32 %52, %51
br label %54
54: ; preds = %50, %47
%55 = phi i32 [ %53, %50 ], [ %49, %47 ]
store i32 %55, ptr @EXTI_RTSR, align 4, !tbaa !11
%56 = load i64, ptr @GPIO_MODE_IT_FALLING, align 8, !tbaa !17
%57 = and i64 %56, %1
%58 = icmp eq i64 %57, %56
%59 = trunc i64 %3 to i32
%60 = shl nuw i32 1, %59
br i1 %58, label %61, label %64
61: ; preds = %54
%62 = load i32, ptr @EXTI_FTSR, align 4, !tbaa !11
%63 = or i32 %62, %60
br label %68
64: ; preds = %54
%65 = xor i32 %60, -1
%66 = load i32, ptr @EXTI_FTSR, align 4, !tbaa !11
%67 = and i32 %66, %65
br label %68
68: ; preds = %64, %61
%69 = phi i32 [ %67, %64 ], [ %63, %61 ]
store i32 %69, ptr @EXTI_FTSR, align 4, !tbaa !11
%70 = load ptr, ptr @nvic_irq_channel, align 8, !tbaa !12
%71 = getelementptr inbounds i32, ptr %70, i64 %3
%72 = load i32, ptr %71, align 4, !tbaa !11
%73 = tail call i32 @IRQn_NONNEG(i32 noundef %72) #2
%74 = load i32, ptr @IRQ_PRI_EXTINT, align 4, !tbaa !11
%75 = tail call i32 @NVIC_SetPriority(i32 noundef %73, i32 noundef %74) #2
%76 = load ptr, ptr @nvic_irq_channel, align 8, !tbaa !12
%77 = getelementptr inbounds i32, ptr %76, i64 %3
%78 = load i32, ptr %77, align 4, !tbaa !11
%79 = tail call i32 @HAL_NVIC_EnableIRQ(i32 noundef %78) #2
%80 = tail call i32 @extint_enable(i64 noundef %3) #2
ret void
}
declare ptr @MP_STATE_PORT(i32 noundef) local_unnamed_addr #1
declare i32 @extint_disable(i64 noundef) local_unnamed_addr #1
declare i32 @MP_OBJ_FROM_PTR(ptr noundef) local_unnamed_addr #1
declare i32 @__HAL_RCC_SYSCFG_CLK_ENABLE(...) local_unnamed_addr #1
declare i64 @GPIO_GET_INDEX(i32 noundef) local_unnamed_addr #1
declare i32 @NVIC_SetPriority(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @IRQn_NONNEG(i32 noundef) local_unnamed_addr #1
declare i32 @HAL_NVIC_EnableIRQ(i32 noundef) local_unnamed_addr #1
declare i32 @extint_enable(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_5__", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_6__", !13, i64 0}
!16 = !{!6, !10, i64 8}
!17 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/micropython/ports/stm32/extr_extint.c_extint_set.c'
source_filename = "AnghaBench/micropython/ports/stm32/extr_extint.c_extint_set.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@pyb_extint_callback = common local_unnamed_addr global i32 0, align 4
@MP_OBJ_SENTINEL = common local_unnamed_addr global i32 0, align 4
@EXTI_Mode_Interrupt = common local_unnamed_addr global i32 0, align 4
@EXTI_Mode_Event = common local_unnamed_addr global i32 0, align 4
@pyb_extint_mode = common local_unnamed_addr global ptr null, align 8
@pyb_extint_hard_irq = common local_unnamed_addr global ptr null, align 8
@pyb_extint_callback_arg = common local_unnamed_addr global ptr null, align 8
@SYSCFG = common local_unnamed_addr global ptr null, align 8
@GPIO_MODE_IT_RISING = common local_unnamed_addr global i64 0, align 8
@EXTI_RTSR = common local_unnamed_addr global i32 0, align 4
@GPIO_MODE_IT_FALLING = common local_unnamed_addr global i64 0, align 8
@EXTI_FTSR = common local_unnamed_addr global i32 0, align 4
@nvic_irq_channel = common local_unnamed_addr global ptr null, align 8
@IRQ_PRI_EXTINT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @extint_set(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = load i32, ptr @pyb_extint_callback, align 4, !tbaa !12
%5 = tail call ptr @MP_STATE_PORT(i32 noundef %4) #2
%6 = getelementptr inbounds i32, ptr %5, i64 %3
%7 = tail call i32 @extint_disable(i64 noundef %3) #2
%8 = load i32, ptr @MP_OBJ_SENTINEL, align 4, !tbaa !12
store i32 %8, ptr %6, align 4, !tbaa !12
%9 = and i64 %1, 65536
%10 = icmp eq i64 %9, 0
%11 = load i32, ptr @EXTI_Mode_Interrupt, align 4
%12 = load i32, ptr @EXTI_Mode_Event, align 4
%13 = select i1 %10, i32 %12, i32 %11
%14 = load ptr, ptr @pyb_extint_mode, align 8, !tbaa !13
%15 = getelementptr inbounds i32, ptr %14, i64 %3
store i32 %13, ptr %15, align 4, !tbaa !12
%16 = load ptr, ptr @pyb_extint_hard_irq, align 8, !tbaa !13
%17 = getelementptr inbounds i32, ptr %16, i64 %3
store i32 1, ptr %17, align 4, !tbaa !12
%18 = tail call i32 @MP_OBJ_FROM_PTR(ptr noundef nonnull %0) #2
%19 = load ptr, ptr @pyb_extint_callback_arg, align 8, !tbaa !13
%20 = getelementptr inbounds i32, ptr %19, i64 %3
store i32 %18, ptr %20, align 4, !tbaa !12
%21 = tail call i32 @__HAL_RCC_SYSCFG_CLK_ENABLE() #2
%22 = load ptr, ptr @SYSCFG, align 8, !tbaa !13
%23 = load ptr, ptr %22, align 8, !tbaa !15
%24 = lshr i64 %3, 2
%25 = getelementptr inbounds i32, ptr %23, i64 %24
%26 = load i32, ptr %25, align 4, !tbaa !12
%27 = shl i64 %3, 2
%28 = and i64 %27, 12
%29 = trunc nuw nsw i64 %28 to i32
%30 = shl nuw nsw i32 15, %29
%31 = xor i32 %30, -1
%32 = and i32 %26, %31
%33 = getelementptr inbounds i8, ptr %0, i64 8
%34 = load i32, ptr %33, align 8, !tbaa !17
%35 = tail call i64 @GPIO_GET_INDEX(i32 noundef %34) #2
%36 = shl i64 %35, %28
%37 = trunc i64 %36 to i32
%38 = or i32 %32, %37
%39 = load ptr, ptr @SYSCFG, align 8, !tbaa !13
%40 = load ptr, ptr %39, align 8, !tbaa !15
%41 = getelementptr inbounds i32, ptr %40, i64 %24
store i32 %38, ptr %41, align 4, !tbaa !12
%42 = load i64, ptr @GPIO_MODE_IT_RISING, align 8, !tbaa !18
%43 = and i64 %42, %1
%44 = icmp eq i64 %43, %42
%45 = trunc i64 %3 to i32
%46 = shl nuw i32 1, %45
br i1 %44, label %47, label %50
47: ; preds = %2
%48 = load i32, ptr @EXTI_RTSR, align 4, !tbaa !12
%49 = or i32 %48, %46
br label %54
50: ; preds = %2
%51 = xor i32 %46, -1
%52 = load i32, ptr @EXTI_RTSR, align 4, !tbaa !12
%53 = and i32 %52, %51
br label %54
54: ; preds = %50, %47
%55 = phi i32 [ %53, %50 ], [ %49, %47 ]
store i32 %55, ptr @EXTI_RTSR, align 4, !tbaa !12
%56 = load i64, ptr @GPIO_MODE_IT_FALLING, align 8, !tbaa !18
%57 = and i64 %56, %1
%58 = icmp eq i64 %57, %56
br i1 %58, label %59, label %62
59: ; preds = %54
%60 = load i32, ptr @EXTI_FTSR, align 4, !tbaa !12
%61 = or i32 %60, %46
br label %66
62: ; preds = %54
%63 = xor i32 %46, -1
%64 = load i32, ptr @EXTI_FTSR, align 4, !tbaa !12
%65 = and i32 %64, %63
br label %66
66: ; preds = %62, %59
%67 = phi i32 [ %65, %62 ], [ %61, %59 ]
store i32 %67, ptr @EXTI_FTSR, align 4, !tbaa !12
%68 = load ptr, ptr @nvic_irq_channel, align 8, !tbaa !13
%69 = getelementptr inbounds i32, ptr %68, i64 %3
%70 = load i32, ptr %69, align 4, !tbaa !12
%71 = tail call i32 @IRQn_NONNEG(i32 noundef %70) #2
%72 = load i32, ptr @IRQ_PRI_EXTINT, align 4, !tbaa !12
%73 = tail call i32 @NVIC_SetPriority(i32 noundef %71, i32 noundef %72) #2
%74 = load ptr, ptr @nvic_irq_channel, align 8, !tbaa !13
%75 = getelementptr inbounds i32, ptr %74, i64 %3
%76 = load i32, ptr %75, align 4, !tbaa !12
%77 = tail call i32 @HAL_NVIC_EnableIRQ(i32 noundef %76) #2
%78 = tail call i32 @extint_enable(i64 noundef %3) #2
ret void
}
declare ptr @MP_STATE_PORT(i32 noundef) local_unnamed_addr #1
declare i32 @extint_disable(i64 noundef) local_unnamed_addr #1
declare i32 @MP_OBJ_FROM_PTR(ptr noundef) local_unnamed_addr #1
declare i32 @__HAL_RCC_SYSCFG_CLK_ENABLE(...) local_unnamed_addr #1
declare i64 @GPIO_GET_INDEX(i32 noundef) local_unnamed_addr #1
declare i32 @NVIC_SetPriority(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @IRQn_NONNEG(i32 noundef) local_unnamed_addr #1
declare i32 @HAL_NVIC_EnableIRQ(i32 noundef) local_unnamed_addr #1
declare i32 @extint_enable(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_5__", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_6__", !14, i64 0}
!17 = !{!7, !11, i64 8}
!18 = !{!8, !8, i64 0}
| micropython_ports_stm32_extr_extint.c_extint_set |
; ModuleID = 'AnghaBench/linux/fs/extr_proc_namespace.c_mounts_release.c'
source_filename = "AnghaBench/linux/fs/extr_proc_namespace.c_mounts_release.c"
target datalayout = "e-m:e-p270:32:32-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.proc_mounts = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @mounts_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mounts_release(ptr noundef %0, ptr noundef %1) #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = getelementptr inbounds %struct.proc_mounts, ptr %4, i64 0, i32 1
%6 = tail call i32 @path_put(ptr noundef nonnull %5) #2
%7 = load i32, ptr %4, align 4, !tbaa !12
%8 = tail call i32 @put_mnt_ns(i32 noundef %7) #2
%9 = tail call i32 @seq_release_private(ptr noundef %0, ptr noundef nonnull %1) #2
ret i32 %9
}
declare i32 @path_put(ptr noundef) local_unnamed_addr #1
declare i32 @put_mnt_ns(i32 noundef) local_unnamed_addr #1
declare i32 @seq_release_private(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 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"seq_file", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"proc_mounts", !14, i64 0, !14, i64 4}
!14 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/extr_proc_namespace.c_mounts_release.c'
source_filename = "AnghaBench/linux/fs/extr_proc_namespace.c_mounts_release.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 @mounts_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mounts_release(ptr noundef %0, ptr noundef %1) #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = tail call i32 @path_put(ptr noundef nonnull %5) #2
%7 = load i32, ptr %4, align 4, !tbaa !13
%8 = tail call i32 @put_mnt_ns(i32 noundef %7) #2
%9 = tail call i32 @seq_release_private(ptr noundef %0, ptr noundef nonnull %1) #2
ret i32 %9
}
declare i32 @path_put(ptr noundef) local_unnamed_addr #1
declare i32 @put_mnt_ns(i32 noundef) local_unnamed_addr #1
declare i32 @seq_release_private(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 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"seq_file", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"proc_mounts", !15, i64 0, !15, i64 4}
!15 = !{!"int", !9, i64 0}
| linux_fs_extr_proc_namespace.c_mounts_release |
; ModuleID = 'AnghaBench/linux/drivers/xen/xenbus/extr_xenbus_client.c_xenbus_unmap_ring_setup_grant_hvm.c'
source_filename = "AnghaBench/linux/drivers/xen/xenbus/extr_xenbus_client.c_xenbus_unmap_ring_setup_grant_hvm.c"
target datalayout = "e-m:e-p270:32:32-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.unmap_ring_vfree_hvm = type { ptr, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @xenbus_unmap_ring_setup_grant_hvm], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @xenbus_unmap_ring_setup_grant_hvm(i64 noundef %0, i32 %1, i32 %2, ptr nocapture noundef %3) #0 {
%5 = tail call i64 @gfn_to_virt(i64 noundef %0) #2
%6 = load ptr, ptr %3, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.unmap_ring_vfree_hvm, ptr %3, i64 0, i32 1
%8 = load i64, ptr %7, align 8, !tbaa !11
%9 = getelementptr inbounds i64, ptr %6, i64 %8
store i64 %5, ptr %9, align 8, !tbaa !12
%10 = load i64, ptr %7, align 8, !tbaa !11
%11 = add i64 %10, 1
store i64 %11, ptr %7, align 8, !tbaa !11
ret void
}
declare i64 @gfn_to_virt(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 = !{!"unmap_ring_vfree_hvm", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/xen/xenbus/extr_xenbus_client.c_xenbus_unmap_ring_setup_grant_hvm.c'
source_filename = "AnghaBench/linux/drivers/xen/xenbus/extr_xenbus_client.c_xenbus_unmap_ring_setup_grant_hvm.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 @xenbus_unmap_ring_setup_grant_hvm], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @xenbus_unmap_ring_setup_grant_hvm(i64 noundef %0, i32 %1, i32 %2, ptr nocapture noundef %3) #0 {
%5 = tail call i64 @gfn_to_virt(i64 noundef %0) #2
%6 = load ptr, ptr %3, align 8, !tbaa !6
%7 = getelementptr inbounds i8, ptr %3, i64 8
%8 = load i64, ptr %7, align 8, !tbaa !12
%9 = getelementptr inbounds i64, ptr %6, i64 %8
store i64 %5, ptr %9, align 8, !tbaa !13
%10 = load i64, ptr %7, align 8, !tbaa !12
%11 = add i64 %10, 1
store i64 %11, ptr %7, align 8, !tbaa !12
ret void
}
declare i64 @gfn_to_virt(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 = !{!"unmap_ring_vfree_hvm", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!11, !11, i64 0}
| linux_drivers_xen_xenbus_extr_xenbus_client.c_xenbus_unmap_ring_setup_grant_hvm |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/dispnv50/extr_disp.c_evo_kick.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/dispnv50/extr_disp.c_evo_kick.c"
target datalayout = "e-m:e-p270:32:32-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.nv50_dmac = type { i32, ptr, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
; Function Attrs: nounwind uwtable
define dso_local void @evo_kick(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @evo_flush(ptr noundef %1) #2
%4 = getelementptr inbounds %struct.nv50_dmac, ptr %1, i64 0, i32 2
%5 = getelementptr inbounds %struct.nv50_dmac, ptr %1, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = ptrtoint ptr %0 to i64
%8 = ptrtoint ptr %6 to i64
%9 = sub i64 %7, %8
%10 = trunc i64 %9 to i32
%11 = tail call i32 @nvif_wr32(ptr noundef nonnull %4, i32 noundef 0, i32 noundef %10) #2
%12 = tail call i32 @mutex_unlock(ptr noundef %1) #2
ret void
}
declare i32 @evo_flush(ptr noundef) local_unnamed_addr #1
declare i32 @nvif_wr32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"nv50_dmac", !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 = !{!"TYPE_2__", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/dispnv50/extr_disp.c_evo_kick.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/dispnv50/extr_disp.c_evo_kick.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 @evo_kick(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @evo_flush(ptr noundef %1) #2
%4 = getelementptr inbounds i8, ptr %1, i64 16
%5 = getelementptr inbounds i8, ptr %1, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = ptrtoint ptr %0 to i64
%8 = ptrtoint ptr %6 to i64
%9 = sub i64 %7, %8
%10 = trunc i64 %9 to i32
%11 = tail call i32 @nvif_wr32(ptr noundef nonnull %4, i32 noundef 0, i32 noundef %10) #2
%12 = tail call i32 @mutex_unlock(ptr noundef %1) #2
ret void
}
declare i32 @evo_flush(ptr noundef) local_unnamed_addr #1
declare i32 @nvif_wr32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"nv50_dmac", !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 = !{!"TYPE_2__", !8, i64 0}
| linux_drivers_gpu_drm_nouveau_dispnv50_extr_disp.c_evo_kick |
; ModuleID = 'AnghaBench/TDengine/src/client/src/extr_tscUtil.c_tscFieldInfoGetOffset.c'
source_filename = "AnghaBench/TDengine/src/client/src/extr_tscUtil.c_tscFieldInfoGetOffset.c"
target datalayout = "e-m:e-p270:32:32-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 }
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @tscFieldInfoGetOffset(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = icmp ugt i64 %3, %1
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = getelementptr inbounds i32, ptr %7, i64 %1
%9 = load i32, ptr %8, align 4, !tbaa !13
br label %10
10: ; preds = %2, %5
%11 = phi i32 [ %9, %5 ], [ 0, %2 ]
ret i32 %11
}
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, !8, i64 0}
!6 = !{!"TYPE_5__", !7, 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 = !{!6, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
| ; ModuleID = 'AnghaBench/TDengine/src/client/src/extr_tscUtil.c_tscFieldInfoGetOffset.c'
source_filename = "AnghaBench/TDengine/src/client/src/extr_tscUtil.c_tscFieldInfoGetOffset.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 @tscFieldInfoGetOffset(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = icmp ugt i64 %3, %1
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = getelementptr inbounds i32, ptr %7, i64 %1
%9 = load i32, ptr %8, align 4, !tbaa !14
br label %10
10: ; preds = %2, %5
%11 = phi i32 [ %9, %5 ], [ 0, %2 ]
ret i32 %11
}
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, !9, i64 0}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0, !12, i64 8}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!7, !12, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !10, i64 0}
| TDengine_src_client_src_extr_tscUtil.c_tscFieldInfoGetOffset |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_frontbuffer.c_intel_frontbuffer_flip.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_frontbuffer.c_intel_frontbuffer_flip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i32, i32 }
@ORIGIN_FLIP = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @intel_frontbuffer_flip(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%4 = tail call i32 @spin_lock(ptr noundef nonnull %3) #2
%5 = xor i32 %1, -1
%6 = load i32, ptr %0, align 4, !tbaa !5
%7 = and i32 %6, %5
store i32 %7, ptr %0, align 4, !tbaa !5
%8 = tail call i32 @spin_unlock(ptr noundef nonnull %3) #2
%9 = load i32, ptr @ORIGIN_FLIP, align 4, !tbaa !11
%10 = tail call i32 @frontbuffer_flush(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %9) #2
ret void
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @frontbuffer_flush(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, !8, i64 0}
!6 = !{!"drm_i915_private", !7, i64 0}
!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 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_frontbuffer.c_intel_frontbuffer_flip.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_frontbuffer.c_intel_frontbuffer_flip.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ORIGIN_FLIP = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @intel_frontbuffer_flip(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = tail call i32 @spin_lock(ptr noundef nonnull %3) #2
%5 = xor i32 %1, -1
%6 = load i32, ptr %0, align 4, !tbaa !6
%7 = and i32 %6, %5
store i32 %7, ptr %0, align 4, !tbaa !6
%8 = tail call i32 @spin_unlock(ptr noundef nonnull %3) #2
%9 = load i32, ptr @ORIGIN_FLIP, align 4, !tbaa !12
%10 = tail call i32 @frontbuffer_flush(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %9) #2
ret void
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @frontbuffer_flush(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, !9, i64 0}
!7 = !{!"drm_i915_private", !8, i64 0}
!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 = !{!9, !9, i64 0}
| linux_drivers_gpu_drm_i915_display_extr_intel_frontbuffer.c_intel_frontbuffer_flip |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/miscfs/fifofs/extr_fifo_vnops.c_fifo_read.c'
source_filename = "AnghaBench/darwin-xnu/bsd/miscfs/fifofs/extr_fifo_vnops.c_fifo_read.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.vnop_read_args = type { i32, ptr, ptr }
%struct.TYPE_4__ = type { i32, ptr }
%struct.socket = type { i32, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i64 }
@IO_NDELAY = dso_local local_unnamed_addr global i32 0, align 4
@MSG_NBIO = dso_local local_unnamed_addr global i32 0, align 4
@EWOULDBLOCK = dso_local local_unnamed_addr global i32 0, align 4
@SS_CANTRCVMORE = dso_local local_unnamed_addr global i32 0, align 4
@UIO_READ = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local i32 @fifo_read(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
%3 = getelementptr inbounds %struct.vnop_read_args, ptr %0, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.vnop_read_args, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = getelementptr inbounds %struct.TYPE_4__, ptr %7, i64 0, i32 1
%9 = load ptr, ptr %8, align 8, !tbaa !14
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%10 = tail call i64 @uio_resid(ptr noundef %4) #3
%11 = icmp eq i64 %10, 0
br i1 %11, label %53, label %12
12: ; preds = %1
%13 = load i32, ptr %0, align 8, !tbaa !16
%14 = load i32, ptr @IO_NDELAY, align 4, !tbaa !17
%15 = and i32 %14, %13
%16 = icmp eq i32 %15, 0
%17 = load i32, ptr @MSG_NBIO, align 4
%18 = select i1 %16, i32 0, i32 %17
store i32 %18, ptr %2, align 4, !tbaa !17
%19 = tail call i64 @uio_resid(ptr noundef %4) #3
%20 = load ptr, ptr %5, align 8, !tbaa !11
%21 = load ptr, ptr %20, align 8, !tbaa !12
%22 = load i32, ptr %21, align 8, !tbaa !18
%23 = icmp slt i32 %22, 1
br i1 %23, label %24, label %32
24: ; preds = %12
%25 = tail call i32 @socket_lock(ptr noundef %9, i32 noundef 1) #3
%26 = getelementptr inbounds %struct.socket, ptr %9, i64 0, i32 1
%27 = load i64, ptr %26, align 8, !tbaa !19
%28 = icmp eq i64 %27, 0
%29 = load i32, ptr @EWOULDBLOCK, align 4
%30 = select i1 %28, i32 %29, i32 0
%31 = tail call i32 @socket_unlock(ptr noundef %9, i32 noundef 1) #3
br label %32
32: ; preds = %24, %12
%33 = phi i32 [ %30, %24 ], [ 0, %12 ]
%34 = load i32, ptr @EWOULDBLOCK, align 4, !tbaa !17
%35 = icmp eq i32 %33, %34
br i1 %35, label %42, label %36
36: ; preds = %32
%37 = call i32 @soreceive(ptr noundef %9, ptr noundef null, ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef nonnull %2) #3
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load ptr, ptr %5, align 8, !tbaa !11
%41 = call i32 @lock_vnode_and_post(ptr noundef %40, i32 noundef 0) #3
br label %42
42: ; preds = %32, %36, %39
%43 = phi i32 [ 0, %39 ], [ %37, %36 ], [ 0, %32 ]
%44 = call i64 @uio_resid(ptr noundef %4) #3
%45 = icmp eq i64 %44, %19
br i1 %45, label %46, label %53
46: ; preds = %42
%47 = call i32 @socket_lock(ptr noundef %9, i32 noundef 1) #3
%48 = load i32, ptr @SS_CANTRCVMORE, align 4, !tbaa !17
%49 = xor i32 %48, -1
%50 = load i32, ptr %9, align 8, !tbaa !23
%51 = and i32 %50, %49
store i32 %51, ptr %9, align 8, !tbaa !23
%52 = call i32 @socket_unlock(ptr noundef nonnull %9, i32 noundef 1) #3
br label %53
53: ; preds = %42, %46, %1
%54 = phi i32 [ 0, %1 ], [ %43, %46 ], [ %43, %42 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 %54
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @uio_resid(ptr noundef) local_unnamed_addr #2
declare i32 @socket_lock(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @socket_unlock(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @soreceive(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @lock_vnode_and_post(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"vnop_read_args", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !10, i64 0}
!13 = !{!"TYPE_6__", !10, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"TYPE_4__", !7, i64 0, !10, i64 8}
!16 = !{!6, !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!15, !7, i64 0}
!19 = !{!20, !22, i64 8}
!20 = !{!"socket", !7, i64 0, !21, i64 8}
!21 = !{!"TYPE_5__", !22, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{!20, !7, i64 0}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/miscfs/fifofs/extr_fifo_vnops.c_fifo_read.c'
source_filename = "AnghaBench/darwin-xnu/bsd/miscfs/fifofs/extr_fifo_vnops.c_fifo_read.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IO_NDELAY = common local_unnamed_addr global i32 0, align 4
@MSG_NBIO = common local_unnamed_addr global i32 0, align 4
@EWOULDBLOCK = common local_unnamed_addr global i32 0, align 4
@SS_CANTRCVMORE = common local_unnamed_addr global i32 0, align 4
@UIO_READ = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @fifo_read(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
%3 = getelementptr inbounds i8, ptr %0, i64 16
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = getelementptr inbounds i8, ptr %7, i64 8
%9 = load ptr, ptr %8, align 8, !tbaa !15
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%10 = tail call i64 @uio_resid(ptr noundef %4) #3
%11 = icmp eq i64 %10, 0
br i1 %11, label %53, label %12
12: ; preds = %1
%13 = load i32, ptr %0, align 8, !tbaa !17
%14 = load i32, ptr @IO_NDELAY, align 4, !tbaa !18
%15 = and i32 %14, %13
%16 = icmp eq i32 %15, 0
%17 = load i32, ptr @MSG_NBIO, align 4
%18 = select i1 %16, i32 0, i32 %17
store i32 %18, ptr %2, align 4, !tbaa !18
%19 = tail call i64 @uio_resid(ptr noundef %4) #3
%20 = load ptr, ptr %5, align 8, !tbaa !12
%21 = load ptr, ptr %20, align 8, !tbaa !13
%22 = load i32, ptr %21, align 8, !tbaa !19
%23 = icmp slt i32 %22, 1
br i1 %23, label %24, label %32
24: ; preds = %12
%25 = tail call i32 @socket_lock(ptr noundef %9, i32 noundef 1) #3
%26 = getelementptr inbounds i8, ptr %9, i64 8
%27 = load i64, ptr %26, align 8, !tbaa !20
%28 = icmp eq i64 %27, 0
%29 = load i32, ptr @EWOULDBLOCK, align 4
%30 = select i1 %28, i32 %29, i32 0
%31 = tail call i32 @socket_unlock(ptr noundef %9, i32 noundef 1) #3
br label %32
32: ; preds = %24, %12
%33 = phi i32 [ %30, %24 ], [ 0, %12 ]
%34 = load i32, ptr @EWOULDBLOCK, align 4, !tbaa !18
%35 = icmp eq i32 %33, %34
br i1 %35, label %42, label %36
36: ; preds = %32
%37 = call i32 @soreceive(ptr noundef %9, ptr noundef null, ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef nonnull %2) #3
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load ptr, ptr %5, align 8, !tbaa !12
%41 = call i32 @lock_vnode_and_post(ptr noundef %40, i32 noundef 0) #3
br label %42
42: ; preds = %32, %36, %39
%43 = phi i32 [ 0, %39 ], [ %37, %36 ], [ 0, %32 ]
%44 = call i64 @uio_resid(ptr noundef %4) #3
%45 = icmp eq i64 %44, %19
br i1 %45, label %46, label %53
46: ; preds = %42
%47 = call i32 @socket_lock(ptr noundef %9, i32 noundef 1) #3
%48 = load i32, ptr @SS_CANTRCVMORE, align 4, !tbaa !18
%49 = xor i32 %48, -1
%50 = load i32, ptr %9, align 8, !tbaa !24
%51 = and i32 %50, %49
store i32 %51, ptr %9, align 8, !tbaa !24
%52 = call i32 @socket_unlock(ptr noundef nonnull %9, i32 noundef 1) #3
br label %53
53: ; preds = %42, %46, %1
%54 = phi i32 [ 0, %1 ], [ %43, %46 ], [ %43, %42 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 %54
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @uio_resid(ptr noundef) local_unnamed_addr #2
declare i32 @socket_lock(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @socket_unlock(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @soreceive(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @lock_vnode_and_post(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 16}
!7 = !{!"vnop_read_args", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!14, !11, i64 0}
!14 = !{!"TYPE_6__", !11, i64 0}
!15 = !{!16, !11, i64 8}
!16 = !{!"TYPE_4__", !8, i64 0, !11, i64 8}
!17 = !{!7, !8, i64 0}
!18 = !{!8, !8, i64 0}
!19 = !{!16, !8, i64 0}
!20 = !{!21, !23, i64 8}
!21 = !{!"socket", !8, i64 0, !22, i64 8}
!22 = !{!"TYPE_5__", !23, i64 0}
!23 = !{!"long", !9, i64 0}
!24 = !{!21, !8, i64 0}
| darwin-xnu_bsd_miscfs_fifofs_extr_fifo_vnops.c_fifo_read |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_toplev.c_default_pch_valid_p.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_toplev.c_default_pch_valid_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { ptr }
%struct.cl_option_state = type { i64, i32 }
%struct.TYPE_4__ = type { i32 }
@flag_pic = dso_local local_unnamed_addr constant i8 0, align 1
@.str = private unnamed_addr constant [50 x i8] c"created and used with different settings of -fpic\00", align 1
@flag_pie = dso_local local_unnamed_addr constant i8 0, align 1
@.str.1 = private unnamed_addr constant [50 x i8] c"created and used with different settings of -fpie\00", align 1
@targetm = dso_local local_unnamed_addr global %struct.TYPE_3__ zeroinitializer, align 8
@cl_options_count = dso_local local_unnamed_addr global i64 0, align 8
@cl_options = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @default_pch_valid_p(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.cl_option_state, align 8
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%5 = load i8, ptr %0, align 1, !tbaa !5
%6 = icmp eq i8 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %2
%8 = tail call ptr @_(ptr noundef nonnull @.str) #3
br label %55
9: ; preds = %2
%10 = getelementptr inbounds i8, ptr %0, i64 1
%11 = load i8, ptr %10, align 1, !tbaa !5
%12 = icmp eq i8 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = tail call ptr @_(ptr noundef nonnull @.str.1) #3
br label %55
15: ; preds = %9
%16 = getelementptr inbounds i8, ptr %0, i64 2
%17 = load ptr, ptr @targetm, align 8, !tbaa !8
%18 = icmp eq ptr %17, null
br i1 %18, label %26, label %19
19: ; preds = %15
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%20 = call i32 @memcpy(ptr noundef nonnull %4, ptr noundef nonnull %16, i32 noundef 4) #3
%21 = getelementptr inbounds i8, ptr %0, i64 6
%22 = load ptr, ptr @targetm, align 8, !tbaa !8
%23 = load i32, ptr %4, align 4, !tbaa !11
%24 = call ptr %22(i32 noundef %23) #3
%25 = icmp eq ptr %24, null
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
br i1 %25, label %26, label %55
26: ; preds = %19, %15
%27 = phi ptr [ %21, %19 ], [ %16, %15 ]
%28 = load i64, ptr @cl_options_count, align 8, !tbaa !13
%29 = icmp eq i64 %28, 0
br i1 %29, label %55, label %30
30: ; preds = %26
%31 = getelementptr inbounds %struct.cl_option_state, ptr %3, i64 0, i32 1
br label %32
32: ; preds = %30, %50
%33 = phi i64 [ 0, %30 ], [ %52, %50 ]
%34 = phi ptr [ %27, %30 ], [ %51, %50 ]
%35 = call i64 @option_affects_pch_p(i64 noundef %33, ptr noundef nonnull %3) #3
%36 = icmp eq i64 %35, 0
br i1 %36, label %50, label %37
37: ; preds = %32
%38 = load i32, ptr %31, align 8, !tbaa !15
%39 = load i64, ptr %3, align 8, !tbaa !17
%40 = call i64 @memcmp(ptr noundef %34, i32 noundef %38, i64 noundef %39) #3
%41 = icmp eq i64 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = load ptr, ptr @cl_options, align 8, !tbaa !18
%44 = getelementptr inbounds %struct.TYPE_4__, ptr %43, i64 %33
%45 = load i32, ptr %44, align 4, !tbaa !19
%46 = call ptr @pch_option_mismatch(i32 noundef %45) #3
br label %55
47: ; preds = %37
%48 = load i64, ptr %3, align 8, !tbaa !17
%49 = getelementptr inbounds i8, ptr %34, i64 %48
br label %50
50: ; preds = %32, %47
%51 = phi ptr [ %49, %47 ], [ %34, %32 ]
%52 = add nuw i64 %33, 1
%53 = load i64, ptr @cl_options_count, align 8, !tbaa !13
%54 = icmp ult i64 %52, %53
br i1 %54, label %32, label %55, !llvm.loop !21
55: ; preds = %50, %26, %19, %42, %13, %7
%56 = phi ptr [ %8, %7 ], [ %14, %13 ], [ %46, %42 ], [ %24, %19 ], [ null, %26 ], [ null, %50 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret ptr %56
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @_(ptr noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i64 @option_affects_pch_p(i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @memcmp(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare ptr @pch_option_mismatch(i32 noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"TYPE_3__", !10, i64 0}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !6, i64 0}
!15 = !{!16, !12, i64 8}
!16 = !{!"cl_option_state", !14, i64 0, !12, i64 8}
!17 = !{!16, !14, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"TYPE_4__", !12, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_toplev.c_default_pch_valid_p.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_toplev.c_default_pch_valid_p.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { ptr }
%struct.cl_option_state = type { i64, i32 }
%struct.TYPE_4__ = type { i32 }
@flag_pic = common local_unnamed_addr global i8 0, align 1
@.str = private unnamed_addr constant [50 x i8] c"created and used with different settings of -fpic\00", align 1
@flag_pie = common local_unnamed_addr global i8 0, align 1
@.str.1 = private unnamed_addr constant [50 x i8] c"created and used with different settings of -fpie\00", align 1
@targetm = common local_unnamed_addr global %struct.TYPE_3__ zeroinitializer, align 8
@cl_options_count = common local_unnamed_addr global i64 0, align 8
@cl_options = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @default_pch_valid_p(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.cl_option_state, align 8
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%5 = load i8, ptr %0, align 1, !tbaa !6
%6 = load i8, ptr @flag_pic, align 1, !tbaa !6
%7 = icmp eq i8 %5, %6
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = tail call ptr @_(ptr noundef nonnull @.str) #3
br label %57
10: ; preds = %2
%11 = getelementptr inbounds i8, ptr %0, i64 1
%12 = load i8, ptr %11, align 1, !tbaa !6
%13 = load i8, ptr @flag_pie, align 1, !tbaa !6
%14 = icmp eq i8 %12, %13
br i1 %14, label %17, label %15
15: ; preds = %10
%16 = tail call ptr @_(ptr noundef nonnull @.str.1) #3
br label %57
17: ; preds = %10
%18 = getelementptr inbounds i8, ptr %0, i64 2
%19 = load ptr, ptr @targetm, align 8, !tbaa !9
%20 = icmp eq ptr %19, null
br i1 %20, label %28, label %21
21: ; preds = %17
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%22 = call i32 @memcpy(ptr noundef nonnull %4, ptr noundef nonnull %18, i32 noundef 4) #3
%23 = getelementptr inbounds i8, ptr %0, i64 6
%24 = load ptr, ptr @targetm, align 8, !tbaa !9
%25 = load i32, ptr %4, align 4, !tbaa !12
%26 = call ptr %24(i32 noundef %25) #3
%27 = icmp eq ptr %26, null
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
br i1 %27, label %28, label %57
28: ; preds = %21, %17
%29 = phi ptr [ %23, %21 ], [ %18, %17 ]
%30 = load i64, ptr @cl_options_count, align 8, !tbaa !14
%31 = icmp eq i64 %30, 0
br i1 %31, label %57, label %32
32: ; preds = %28
%33 = getelementptr inbounds i8, ptr %3, i64 8
br label %34
34: ; preds = %32, %52
%35 = phi i64 [ 0, %32 ], [ %54, %52 ]
%36 = phi ptr [ %29, %32 ], [ %53, %52 ]
%37 = call i64 @option_affects_pch_p(i64 noundef %35, ptr noundef nonnull %3) #3
%38 = icmp eq i64 %37, 0
br i1 %38, label %52, label %39
39: ; preds = %34
%40 = load i32, ptr %33, align 8, !tbaa !16
%41 = load i64, ptr %3, align 8, !tbaa !18
%42 = call i64 @memcmp(ptr noundef %36, i32 noundef %40, i64 noundef %41) #3
%43 = icmp eq i64 %42, 0
br i1 %43, label %49, label %44
44: ; preds = %39
%45 = load ptr, ptr @cl_options, align 8, !tbaa !19
%46 = getelementptr inbounds %struct.TYPE_4__, ptr %45, i64 %35
%47 = load i32, ptr %46, align 4, !tbaa !20
%48 = call ptr @pch_option_mismatch(i32 noundef %47) #3
br label %57
49: ; preds = %39
%50 = load i64, ptr %3, align 8, !tbaa !18
%51 = getelementptr inbounds i8, ptr %36, i64 %50
br label %52
52: ; preds = %34, %49
%53 = phi ptr [ %51, %49 ], [ %36, %34 ]
%54 = add nuw i64 %35, 1
%55 = load i64, ptr @cl_options_count, align 8, !tbaa !14
%56 = icmp ult i64 %54, %55
br i1 %56, label %34, label %57, !llvm.loop !22
57: ; preds = %52, %28, %21, %44, %15, %8
%58 = phi ptr [ %9, %8 ], [ %16, %15 ], [ %48, %44 ], [ %26, %21 ], [ null, %28 ], [ null, %52 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret ptr %58
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @_(ptr noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i64 @option_affects_pch_p(i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @memcmp(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare ptr @pch_option_mismatch(i32 noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !13, i64 8}
!17 = !{!"cl_option_state", !15, i64 0, !13, i64 8}
!18 = !{!17, !15, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !13, i64 0}
!21 = !{!"TYPE_4__", !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
| freebsd_contrib_gcc_extr_toplev.c_default_pch_valid_p |
; ModuleID = 'AnghaBench/linux/drivers/video/fbdev/omap2/omapfb/dss/extr_dispc.c_calc_core_clk_24xx.c'
source_filename = "AnghaBench/linux/drivers/video/fbdev/omap2/omapfb/dss/extr_dispc.c_calc_core_clk_24xx.c"
target datalayout = "e-m:e-p270:32:32-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 @calc_core_clk_24xx], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal i64 @calc_core_clk_24xx(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 %5) #0 {
%7 = icmp sgt i64 %2, %4
%8 = icmp sgt i64 %1, %3
%9 = and i1 %8, %7
%10 = select i1 %9, i64 2, i64 1
%11 = shl i64 %0, %10
ret i64 %11
}
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/video/fbdev/omap2/omapfb/dss/extr_dispc.c_calc_core_clk_24xx.c'
source_filename = "AnghaBench/linux/drivers/video/fbdev/omap2/omapfb/dss/extr_dispc.c_calc_core_clk_24xx.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 @calc_core_clk_24xx], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal i64 @calc_core_clk_24xx(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 %5) #0 {
%7 = icmp sgt i64 %2, %4
%8 = icmp sgt i64 %1, %3
%9 = and i1 %8, %7
%10 = select i1 %9, i64 2, i64 1
%11 = shl i64 %0, %10
ret i64 %11
}
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_video_fbdev_omap2_omapfb_dss_extr_dispc.c_calc_core_clk_24xx |
; ModuleID = 'AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriver2.c'
source_filename = "AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriver2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@UNIMPLEMENTED = dso_local local_unnamed_addr global i32 0, align 4
@ERROR_INVALID_FUNCTION = 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 @_RpcGetPrinterDriver2(i32 noundef %0, ptr nocapture noundef readnone %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr nocapture noundef readnone %5, i32 noundef %6, i32 noundef %7, ptr nocapture noundef readnone %8, ptr nocapture noundef readnone %9) local_unnamed_addr #0 {
%11 = load i32, ptr @ERROR_INVALID_FUNCTION, align 4, !tbaa !5
ret i32 %11
}
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/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriver2.c'
source_filename = "AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriver2.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UNIMPLEMENTED = common local_unnamed_addr global i32 0, align 4
@ERROR_INVALID_FUNCTION = 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 @_RpcGetPrinterDriver2(i32 noundef %0, ptr nocapture noundef readnone %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr nocapture noundef readnone %5, i32 noundef %6, i32 noundef %7, ptr nocapture noundef readnone %8, ptr nocapture noundef readnone %9) local_unnamed_addr #0 {
%11 = load i32, ptr @ERROR_INVALID_FUNCTION, align 4, !tbaa !6
ret i32 %11
}
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"}
| reactos_win32ss_printing_base_spoolsv_extr_printerdrivers.c__RpcGetPrinterDriver2 |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_b44.c_b44_get_stats.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_b44.c_b44_get_stats.c"
target datalayout = "e-m:e-p270:32:32-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.b44_hw_stats = type { i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, i32, i64, i64, i64, i64, i32, i32, i32, i32 }
%struct.net_device_stats = type { i32, i64, i64, i64, i64, i64, i64, i32, i32, i64, i32, i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @b44_get_stats], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @b44_get_stats(ptr noundef returned %0) #0 {
%2 = tail call ptr @netdev_priv(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 16
%4 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 10
%5 = load <4 x i32>, ptr %3, align 8, !tbaa !5
store <4 x i32> %5, ptr %4, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 15
%7 = load i64, ptr %6, align 8, !tbaa !9
%8 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 14
%9 = load i64, ptr %8, align 8, !tbaa !12
%10 = add nsw i64 %9, %7
%11 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !13
%13 = add nsw i64 %10, %12
%14 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 13
%15 = load i64, ptr %14, align 8, !tbaa !14
%16 = add nsw i64 %13, %15
%17 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 12
%18 = load i64, ptr %17, align 8, !tbaa !15
%19 = add nsw i64 %16, %18
%20 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 9
store i64 %19, ptr %20, align 8, !tbaa !16
%21 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 10
%22 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 7
%23 = load <2 x i32>, ptr %21, align 8, !tbaa !5
store <2 x i32> %23, ptr %22, align 8, !tbaa !5
%24 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 8
%25 = load i64, ptr %24, align 8, !tbaa !18
%26 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 5
%27 = load i64, ptr %26, align 8, !tbaa !19
%28 = add i64 %27, %25
%29 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 6
store i64 %28, ptr %29, align 8, !tbaa !20
%30 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 7
%31 = load i64, ptr %30, align 8, !tbaa !21
%32 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 5
store i64 %31, ptr %32, align 8, !tbaa !22
%33 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 3
%34 = load i64, ptr %33, align 8, !tbaa !23
%35 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 4
store i64 %34, ptr %35, align 8, !tbaa !24
%36 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 4
%37 = load i64, ptr %36, align 8, !tbaa !25
%38 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 3
store i64 %37, ptr %38, align 8, !tbaa !26
%39 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 9
%40 = load i64, ptr %39, align 8, !tbaa !27
%41 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 6
%42 = load i64, ptr %41, align 8, !tbaa !28
%43 = getelementptr inbounds %struct.b44_hw_stats, ptr %2, i64 0, i32 2
%44 = load i64, ptr %43, align 8, !tbaa !29
%45 = add i64 %28, %31
%46 = add i64 %45, %34
%47 = add i64 %46, %37
%48 = add i64 %47, %40
%49 = add i64 %48, %42
%50 = add nsw i64 %49, %44
%51 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 2
store i64 %50, ptr %51, align 8, !tbaa !30
%52 = getelementptr inbounds %struct.net_device_stats, ptr %0, i64 0, i32 1
store i64 %12, ptr %52, align 8, !tbaa !31
ret ptr %0
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 112}
!10 = !{!"b44_hw_stats", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !6, i64 80, !6, i64 84, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 104}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 96}
!15 = !{!10, !11, i64 88}
!16 = !{!17, !11, i64 64}
!17 = !{!"net_device_stats", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !6, i64 56, !6, i64 60, !11, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84}
!18 = !{!10, !11, i64 64}
!19 = !{!10, !11, i64 40}
!20 = !{!17, !11, i64 48}
!21 = !{!10, !11, i64 56}
!22 = !{!17, !11, i64 40}
!23 = !{!10, !11, i64 24}
!24 = !{!17, !11, i64 32}
!25 = !{!10, !11, i64 32}
!26 = !{!17, !11, i64 24}
!27 = !{!10, !11, i64 72}
!28 = !{!10, !11, i64 48}
!29 = !{!10, !11, i64 16}
!30 = !{!17, !11, i64 16}
!31 = !{!17, !11, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_b44.c_b44_get_stats.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_b44.c_b44_get_stats.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 @b44_get_stats], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @b44_get_stats(ptr noundef returned %0) #0 {
%2 = tail call ptr @netdev_priv(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %2, i64 120
%4 = getelementptr inbounds i8, ptr %0, i64 72
%5 = load <4 x i32>, ptr %3, align 8, !tbaa !6
store <4 x i32> %5, ptr %4, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %2, i64 112
%7 = load i64, ptr %6, align 8, !tbaa !10
%8 = getelementptr inbounds i8, ptr %2, i64 104
%9 = load i64, ptr %8, align 8, !tbaa !13
%10 = add nsw i64 %9, %7
%11 = getelementptr inbounds i8, ptr %2, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !14
%13 = add nsw i64 %10, %12
%14 = getelementptr inbounds i8, ptr %2, i64 96
%15 = load i64, ptr %14, align 8, !tbaa !15
%16 = add nsw i64 %13, %15
%17 = getelementptr inbounds i8, ptr %2, i64 88
%18 = load i64, ptr %17, align 8, !tbaa !16
%19 = add nsw i64 %16, %18
%20 = getelementptr inbounds i8, ptr %0, i64 64
store i64 %19, ptr %20, align 8, !tbaa !17
%21 = getelementptr inbounds i8, ptr %2, i64 80
%22 = getelementptr inbounds i8, ptr %0, i64 56
%23 = load <2 x i32>, ptr %21, align 8, !tbaa !6
store <2 x i32> %23, ptr %22, align 8, !tbaa !6
%24 = getelementptr inbounds i8, ptr %2, i64 64
%25 = load i64, ptr %24, align 8, !tbaa !19
%26 = getelementptr inbounds i8, ptr %2, i64 40
%27 = load i64, ptr %26, align 8, !tbaa !20
%28 = add i64 %27, %25
%29 = getelementptr inbounds i8, ptr %0, i64 48
store i64 %28, ptr %29, align 8, !tbaa !21
%30 = getelementptr inbounds i8, ptr %2, i64 56
%31 = load i64, ptr %30, align 8, !tbaa !22
%32 = getelementptr inbounds i8, ptr %0, i64 40
store i64 %31, ptr %32, align 8, !tbaa !23
%33 = getelementptr inbounds i8, ptr %2, i64 24
%34 = load i64, ptr %33, align 8, !tbaa !24
%35 = getelementptr inbounds i8, ptr %0, i64 32
store i64 %34, ptr %35, align 8, !tbaa !25
%36 = getelementptr inbounds i8, ptr %2, i64 32
%37 = load i64, ptr %36, align 8, !tbaa !26
%38 = getelementptr inbounds i8, ptr %0, i64 24
store i64 %37, ptr %38, align 8, !tbaa !27
%39 = getelementptr inbounds i8, ptr %2, i64 72
%40 = load i64, ptr %39, align 8, !tbaa !28
%41 = getelementptr inbounds i8, ptr %2, i64 48
%42 = load i64, ptr %41, align 8, !tbaa !29
%43 = getelementptr inbounds i8, ptr %2, i64 16
%44 = load i64, ptr %43, align 8, !tbaa !30
%45 = add i64 %28, %31
%46 = add i64 %45, %34
%47 = add i64 %46, %37
%48 = add i64 %47, %40
%49 = add i64 %48, %42
%50 = add nsw i64 %49, %44
%51 = getelementptr inbounds i8, ptr %0, i64 16
store i64 %50, ptr %51, align 8, !tbaa !31
%52 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %12, ptr %52, align 8, !tbaa !32
ret ptr %0
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 112}
!11 = !{!"b44_hw_stats", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !7, i64 84, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 104}
!14 = !{!11, !12, i64 8}
!15 = !{!11, !12, i64 96}
!16 = !{!11, !12, i64 88}
!17 = !{!18, !12, i64 64}
!18 = !{!"net_device_stats", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !7, i64 56, !7, i64 60, !12, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84}
!19 = !{!11, !12, i64 64}
!20 = !{!11, !12, i64 40}
!21 = !{!18, !12, i64 48}
!22 = !{!11, !12, i64 56}
!23 = !{!18, !12, i64 40}
!24 = !{!11, !12, i64 24}
!25 = !{!18, !12, i64 32}
!26 = !{!11, !12, i64 32}
!27 = !{!18, !12, i64 24}
!28 = !{!11, !12, i64 72}
!29 = !{!11, !12, i64 48}
!30 = !{!11, !12, i64 16}
!31 = !{!18, !12, i64 16}
!32 = !{!18, !12, i64 8}
| fastsocket_kernel_drivers_net_extr_b44.c_b44_get_stats |
; ModuleID = 'AnghaBench/zfs/module/zfs/extr_zcp.c_zcp_parse_args.c'
source_filename = "AnghaBench/zfs/module/zfs/extr_zcp.c_zcp_parse_args.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @zcp_parse_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = tail call i32 @lua_gettop(ptr noundef %0) #2
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = tail call i64 @lua_istable(ptr noundef %0, i32 noundef 1) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @zcp_parse_table_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2
br label %14
12: ; preds = %7, %4
%13 = tail call i32 @zcp_parse_pos_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2
br label %14
14: ; preds = %12, %10
ret void
}
declare i32 @lua_gettop(ptr noundef) local_unnamed_addr #1
declare i64 @lua_istable(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @zcp_parse_table_args(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @zcp_parse_pos_args(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/zfs/module/zfs/extr_zcp.c_zcp_parse_args.c'
source_filename = "AnghaBench/zfs/module/zfs/extr_zcp.c_zcp_parse_args.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 @zcp_parse_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = tail call i32 @lua_gettop(ptr noundef %0) #2
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = tail call i64 @lua_istable(ptr noundef %0, i32 noundef 1) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @zcp_parse_table_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2
br label %14
12: ; preds = %7, %4
%13 = tail call i32 @zcp_parse_pos_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2
br label %14
14: ; preds = %12, %10
ret void
}
declare i32 @lua_gettop(ptr noundef) local_unnamed_addr #1
declare i64 @lua_istable(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @zcp_parse_table_args(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @zcp_parse_pos_args(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)"}
| zfs_module_zfs_extr_zcp.c_zcp_parse_args |
; ModuleID = 'AnghaBench/freebsd/crypto/openssh/extr_sshbuf-getput-basic.c_sshbuf_get_passwd.c'
source_filename = "AnghaBench/freebsd/crypto/openssh/extr_sshbuf-getput-basic.c_sshbuf_get_passwd.c"
target datalayout = "e-m:e-p270:32:32-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.passwd = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local ptr @sshbuf_get_passwd(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 = call i32 @sshbuf_get_u64(ptr noundef %0, ptr noundef nonnull %2) #3
%4 = icmp ne i32 %3, 0
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 44
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %38, label %8
8: ; preds = %1
%9 = call ptr @xcalloc(i32 noundef 1, i32 noundef 44) #3
%10 = getelementptr inbounds %struct.passwd, ptr %9, i64 0, i32 10
%11 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %10, ptr noundef null) #3
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %36
13: ; preds = %8
%14 = getelementptr inbounds %struct.passwd, ptr %9, i64 0, i32 9
%15 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %14, ptr noundef null) #3
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = getelementptr inbounds %struct.passwd, ptr %9, i64 0, i32 8
%19 = call i64 @sshbuf_get_u32(ptr noundef %0, ptr noundef nonnull %18) #3
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %36
21: ; preds = %17
%22 = getelementptr inbounds %struct.passwd, ptr %9, i64 0, i32 7
%23 = call i64 @sshbuf_get_u32(ptr noundef %0, ptr noundef nonnull %22) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %36
25: ; preds = %21
%26 = getelementptr inbounds %struct.passwd, ptr %9, i64 0, i32 3
%27 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %26, ptr noundef null) #3
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = getelementptr inbounds %struct.passwd, ptr %9, i64 0, i32 2
%31 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %30, ptr noundef null) #3
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = call i64 @sshbuf_get_u32(ptr noundef %0, ptr noundef %9) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %33, %29, %25, %21, %17, %13, %8
%37 = call i32 @sshbuf_free_passwd(ptr noundef %9) #3
br label %38
38: ; preds = %33, %1, %36
%39 = phi ptr [ null, %36 ], [ null, %1 ], [ %9, %33 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret ptr %39
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sshbuf_get_u64(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @xcalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @sshbuf_get_cstring(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @sshbuf_get_u32(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sshbuf_free_passwd(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/crypto/openssh/extr_sshbuf-getput-basic.c_sshbuf_get_passwd.c'
source_filename = "AnghaBench/freebsd/crypto/openssh/extr_sshbuf-getput-basic.c_sshbuf_get_passwd.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 ptr @sshbuf_get_passwd(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 = call i32 @sshbuf_get_u64(ptr noundef %0, ptr noundef nonnull %2) #3
%4 = icmp ne i32 %3, 0
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 44
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %38, label %8
8: ; preds = %1
%9 = call ptr @xcalloc(i32 noundef 1, i32 noundef 44) #3
%10 = getelementptr inbounds i8, ptr %9, i64 40
%11 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %10, ptr noundef null) #3
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %36
13: ; preds = %8
%14 = getelementptr inbounds i8, ptr %9, i64 36
%15 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %14, ptr noundef null) #3
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = getelementptr inbounds i8, ptr %9, i64 32
%19 = call i64 @sshbuf_get_u32(ptr noundef %0, ptr noundef nonnull %18) #3
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %36
21: ; preds = %17
%22 = getelementptr inbounds i8, ptr %9, i64 28
%23 = call i64 @sshbuf_get_u32(ptr noundef %0, ptr noundef nonnull %22) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %36
25: ; preds = %21
%26 = getelementptr inbounds i8, ptr %9, i64 12
%27 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %26, ptr noundef null) #3
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = getelementptr inbounds i8, ptr %9, i64 8
%31 = call i64 @sshbuf_get_cstring(ptr noundef %0, ptr noundef nonnull %30, ptr noundef null) #3
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = call i64 @sshbuf_get_u32(ptr noundef %0, ptr noundef %9) #3
%35 = icmp eq i64 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %33, %29, %25, %21, %17, %13, %8
%37 = call i32 @sshbuf_free_passwd(ptr noundef %9) #3
br label %38
38: ; preds = %33, %1, %36
%39 = phi ptr [ null, %36 ], [ null, %1 ], [ %9, %33 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret ptr %39
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sshbuf_get_u64(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @xcalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @sshbuf_get_cstring(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @sshbuf_get_u32(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sshbuf_free_passwd(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)"}
| freebsd_crypto_openssh_extr_sshbuf-getput-basic.c_sshbuf_get_passwd |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/drivers/extr_ml403-ac97cr.c_snd_ml403_ac97cr_irq.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/drivers/extr_ml403-ac97cr.c_snd_ml403_ac97cr_irq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.snd_ml403_ac97cr = type { i32, i32, i64, i32, i32, i64, ptr }
@IRQ_NONE = dso_local local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_playback_ind2_copy = dso_local local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_playback_ind2_zero = dso_local local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_capture_ind2_copy = dso_local local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_capture_ind2_null = dso_local local_unnamed_addr global i32 0, align 4
@IRQ_HANDLED = dso_local local_unnamed_addr global i32 0, align 4
@INIT_INFO = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [76 x i8] c"irq(): irq %d is meant to be disabled! So, now try to disable it _really_!\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_ml403_ac97cr_irq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @snd_ml403_ac97cr_irq(i32 noundef %0, ptr noundef %1) #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %37, label %4
4: ; preds = %2
%5 = getelementptr inbounds %struct.snd_ml403_ac97cr, ptr %1, i64 0, i32 6
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = tail call i32 @platform_get_irq(ptr noundef %6, i32 noundef 0) #2
%8 = icmp eq i32 %7, %0
br i1 %8, label %9, label %20
9: ; preds = %4
%10 = getelementptr inbounds %struct.snd_ml403_ac97cr, ptr %1, i64 0, i32 5
%11 = load i64, ptr %10, align 8, !tbaa !12
%12 = icmp eq i64 %11, 0
br i1 %12, label %33, label %13
13: ; preds = %9
%14 = getelementptr inbounds %struct.snd_ml403_ac97cr, ptr %1, i64 0, i32 4
%15 = load i32, ptr %14, align 4, !tbaa !13
%16 = getelementptr inbounds %struct.snd_ml403_ac97cr, ptr %1, i64 0, i32 3
%17 = load i32, ptr @snd_ml403_ac97cr_playback_ind2_copy, align 4, !tbaa !14
%18 = load i32, ptr @snd_ml403_ac97cr_playback_ind2_zero, align 4, !tbaa !14
%19 = tail call i32 @snd_pcm_indirect2_playback_interrupt(i32 noundef %15, ptr noundef nonnull %16, i32 noundef %17, i32 noundef %18) #2
br label %37
20: ; preds = %4
%21 = tail call i32 @platform_get_irq(ptr noundef %6, i32 noundef 1) #2
%22 = icmp eq i32 %21, %0
br i1 %22, label %23, label %37
23: ; preds = %20
%24 = getelementptr inbounds %struct.snd_ml403_ac97cr, ptr %1, i64 0, i32 2
%25 = load i64, ptr %24, align 8, !tbaa !15
%26 = icmp eq i64 %25, 0
br i1 %26, label %33, label %27
27: ; preds = %23
%28 = getelementptr inbounds %struct.snd_ml403_ac97cr, ptr %1, i64 0, i32 1
%29 = load i32, ptr %28, align 4, !tbaa !16
%30 = load i32, ptr @snd_ml403_ac97cr_capture_ind2_copy, align 4, !tbaa !14
%31 = load i32, ptr @snd_ml403_ac97cr_capture_ind2_null, align 4, !tbaa !14
%32 = tail call i32 @snd_pcm_indirect2_capture_interrupt(i32 noundef %29, ptr noundef nonnull %1, i32 noundef %30, i32 noundef %31) #2
br label %37
33: ; preds = %23, %9
%34 = load i32, ptr @INIT_INFO, align 4, !tbaa !14
%35 = tail call i32 @PDEBUG(i32 noundef %34, ptr noundef nonnull @.str, i32 noundef %0) #2
%36 = tail call i32 @disable_irq_nosync(i32 noundef %0) #2
br label %37
37: ; preds = %13, %27, %20, %2, %33
%38 = phi ptr [ @IRQ_HANDLED, %33 ], [ @IRQ_NONE, %2 ], [ @IRQ_NONE, %20 ], [ @IRQ_HANDLED, %27 ], [ @IRQ_HANDLED, %13 ]
%39 = load i32, ptr %38, align 4, !tbaa !14
ret i32 %39
}
declare i32 @platform_get_irq(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_pcm_indirect2_playback_interrupt(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_pcm_indirect2_capture_interrupt(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PDEBUG(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @disable_irq_nosync(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 32}
!6 = !{!"snd_ml403_ac97cr", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !11, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !7, i64 20}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/drivers/extr_ml403-ac97cr.c_snd_ml403_ac97cr_irq.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/drivers/extr_ml403-ac97cr.c_snd_ml403_ac97cr_irq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IRQ_NONE = common local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_playback_ind2_copy = common local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_playback_ind2_zero = common local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_capture_ind2_copy = common local_unnamed_addr global i32 0, align 4
@snd_ml403_ac97cr_capture_ind2_null = common local_unnamed_addr global i32 0, align 4
@IRQ_HANDLED = common local_unnamed_addr global i32 0, align 4
@INIT_INFO = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [76 x i8] c"irq(): irq %d is meant to be disabled! So, now try to disable it _really_!\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @snd_ml403_ac97cr_irq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @snd_ml403_ac97cr_irq(i32 noundef %0, ptr noundef %1) #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %37, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8, ptr %1, i64 32
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = tail call i32 @platform_get_irq(ptr noundef %6, i32 noundef 0) #2
%8 = icmp eq i32 %7, %0
br i1 %8, label %9, label %20
9: ; preds = %4
%10 = getelementptr inbounds i8, ptr %1, i64 24
%11 = load i64, ptr %10, align 8, !tbaa !13
%12 = icmp eq i64 %11, 0
br i1 %12, label %33, label %13
13: ; preds = %9
%14 = getelementptr inbounds i8, ptr %1, i64 20
%15 = load i32, ptr %14, align 4, !tbaa !14
%16 = getelementptr inbounds i8, ptr %1, i64 16
%17 = load i32, ptr @snd_ml403_ac97cr_playback_ind2_copy, align 4, !tbaa !15
%18 = load i32, ptr @snd_ml403_ac97cr_playback_ind2_zero, align 4, !tbaa !15
%19 = tail call i32 @snd_pcm_indirect2_playback_interrupt(i32 noundef %15, ptr noundef nonnull %16, i32 noundef %17, i32 noundef %18) #2
br label %37
20: ; preds = %4
%21 = tail call i32 @platform_get_irq(ptr noundef %6, i32 noundef 1) #2
%22 = icmp eq i32 %21, %0
br i1 %22, label %23, label %37
23: ; preds = %20
%24 = getelementptr inbounds i8, ptr %1, i64 8
%25 = load i64, ptr %24, align 8, !tbaa !16
%26 = icmp eq i64 %25, 0
br i1 %26, label %33, label %27
27: ; preds = %23
%28 = getelementptr inbounds i8, ptr %1, i64 4
%29 = load i32, ptr %28, align 4, !tbaa !17
%30 = load i32, ptr @snd_ml403_ac97cr_capture_ind2_copy, align 4, !tbaa !15
%31 = load i32, ptr @snd_ml403_ac97cr_capture_ind2_null, align 4, !tbaa !15
%32 = tail call i32 @snd_pcm_indirect2_capture_interrupt(i32 noundef %29, ptr noundef nonnull %1, i32 noundef %30, i32 noundef %31) #2
br label %37
33: ; preds = %23, %9
%34 = load i32, ptr @INIT_INFO, align 4, !tbaa !15
%35 = tail call i32 @PDEBUG(i32 noundef %34, ptr noundef nonnull @.str, i32 noundef %0) #2
%36 = tail call i32 @disable_irq_nosync(i32 noundef %0) #2
br label %37
37: ; preds = %13, %27, %20, %2, %33
%38 = phi ptr [ @IRQ_HANDLED, %33 ], [ @IRQ_NONE, %2 ], [ @IRQ_NONE, %20 ], [ @IRQ_HANDLED, %27 ], [ @IRQ_HANDLED, %13 ]
%39 = load i32, ptr %38, align 4, !tbaa !15
ret i32 %39
}
declare i32 @platform_get_irq(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_pcm_indirect2_playback_interrupt(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_pcm_indirect2_capture_interrupt(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PDEBUG(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @disable_irq_nosync(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 32}
!7 = !{!"snd_ml403_ac97cr", !8, i64 0, !8, i64 4, !11, i64 8, !8, i64 16, !8, i64 20, !11, i64 24, !12, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!7, !11, i64 24}
!14 = !{!7, !8, i64 20}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !11, i64 8}
!17 = !{!7, !8, i64 4}
| fastsocket_kernel_sound_drivers_extr_ml403-ac97cr.c_snd_ml403_ac97cr_irq |
; ModuleID = 'AnghaBench/freebsd/lib/libc/db/hash/extr_hash_func.c_hash4.c'
source_filename = "AnghaBench/freebsd/lib/libc/db/hash/extr_hash_func.c_hash4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@HASH4 = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i64 @hash4(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = icmp eq i64 %1, 0
br i1 %3, label %83, label %4
4: ; preds = %2
%5 = add i64 %1, 7
%6 = lshr i64 %5, 3
%7 = and i64 %1, 7
switch i64 %7, label %82 [
i64 0, label %8
i64 7, label %17
i64 6, label %26
i64 5, label %35
i64 4, label %44
i64 3, label %53
i64 2, label %62
i64 1, label %71
]
8: ; preds = %4, %71
%9 = phi i64 [ %79, %71 ], [ %7, %4 ]
%10 = phi i64 [ %80, %71 ], [ %6, %4 ]
%11 = phi ptr [ %76, %71 ], [ %0, %4 ]
%12 = mul i64 %9, 33
%13 = getelementptr inbounds i32, ptr %11, i64 1
%14 = load i32, ptr %11, align 4, !tbaa !5
%15 = sext i32 %14 to i64
%16 = add i64 %12, %15
br label %17
17: ; preds = %4, %8
%18 = phi i64 [ %16, %8 ], [ 0, %4 ]
%19 = phi i64 [ %10, %8 ], [ %6, %4 ]
%20 = phi ptr [ %13, %8 ], [ %0, %4 ]
%21 = mul i64 %18, 33
%22 = getelementptr inbounds i32, ptr %20, i64 1
%23 = load i32, ptr %20, align 4, !tbaa !5
%24 = sext i32 %23 to i64
%25 = add i64 %21, %24
br label %26
26: ; preds = %4, %17
%27 = phi i64 [ %25, %17 ], [ 0, %4 ]
%28 = phi i64 [ %19, %17 ], [ %6, %4 ]
%29 = phi ptr [ %22, %17 ], [ %0, %4 ]
%30 = mul i64 %27, 33
%31 = getelementptr inbounds i32, ptr %29, i64 1
%32 = load i32, ptr %29, align 4, !tbaa !5
%33 = sext i32 %32 to i64
%34 = add i64 %30, %33
br label %35
35: ; preds = %4, %26
%36 = phi i64 [ %34, %26 ], [ 0, %4 ]
%37 = phi i64 [ %28, %26 ], [ %6, %4 ]
%38 = phi ptr [ %31, %26 ], [ %0, %4 ]
%39 = mul i64 %36, 33
%40 = getelementptr inbounds i32, ptr %38, i64 1
%41 = load i32, ptr %38, align 4, !tbaa !5
%42 = sext i32 %41 to i64
%43 = add i64 %39, %42
br label %44
44: ; preds = %4, %35
%45 = phi i64 [ %43, %35 ], [ 0, %4 ]
%46 = phi i64 [ %37, %35 ], [ %6, %4 ]
%47 = phi ptr [ %40, %35 ], [ %0, %4 ]
%48 = mul i64 %45, 33
%49 = getelementptr inbounds i32, ptr %47, i64 1
%50 = load i32, ptr %47, align 4, !tbaa !5
%51 = sext i32 %50 to i64
%52 = add i64 %48, %51
br label %53
53: ; preds = %4, %44
%54 = phi i64 [ %52, %44 ], [ 0, %4 ]
%55 = phi i64 [ %46, %44 ], [ %6, %4 ]
%56 = phi ptr [ %49, %44 ], [ %0, %4 ]
%57 = mul i64 %54, 33
%58 = getelementptr inbounds i32, ptr %56, i64 1
%59 = load i32, ptr %56, align 4, !tbaa !5
%60 = sext i32 %59 to i64
%61 = add i64 %57, %60
br label %62
62: ; preds = %4, %53
%63 = phi i64 [ %61, %53 ], [ 0, %4 ]
%64 = phi i64 [ %55, %53 ], [ %6, %4 ]
%65 = phi ptr [ %58, %53 ], [ %0, %4 ]
%66 = mul i64 %63, 33
%67 = getelementptr inbounds i32, ptr %65, i64 1
%68 = load i32, ptr %65, align 4, !tbaa !5
%69 = sext i32 %68 to i64
%70 = add i64 %66, %69
br label %71
71: ; preds = %4, %62
%72 = phi i64 [ 0, %4 ], [ %70, %62 ]
%73 = phi i64 [ %6, %4 ], [ %64, %62 ]
%74 = phi ptr [ %0, %4 ], [ %67, %62 ]
%75 = mul i64 %72, 33
%76 = getelementptr inbounds i32, ptr %74, i64 1
%77 = load i32, ptr %74, align 4, !tbaa !5
%78 = sext i32 %77 to i64
%79 = add i64 %75, %78
%80 = add i64 %73, -1
%81 = icmp eq i64 %80, 0
br i1 %81, label %83, label %8, !llvm.loop !9
82: ; preds = %4
unreachable
83: ; preds = %71, %2
%84 = phi i64 [ %79, %71 ], [ 0, %2 ]
ret i64 %84
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/lib/libc/db/hash/extr_hash_func.c_hash4.c'
source_filename = "AnghaBench/freebsd/lib/libc/db/hash/extr_hash_func.c_hash4.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HASH4 = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define i64 @hash4(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = icmp eq i64 %1, 0
br i1 %3, label %83, label %4
4: ; preds = %2
%5 = add i64 %1, 7
%6 = lshr i64 %5, 3
%7 = and i64 %1, 7
switch i64 %7, label %82 [
i64 0, label %8
i64 7, label %17
i64 6, label %26
i64 5, label %35
i64 4, label %44
i64 3, label %53
i64 2, label %62
i64 1, label %71
]
8: ; preds = %4, %71
%9 = phi i64 [ %79, %71 ], [ %7, %4 ]
%10 = phi i64 [ %80, %71 ], [ %6, %4 ]
%11 = phi ptr [ %76, %71 ], [ %0, %4 ]
%12 = mul i64 %9, 33
%13 = getelementptr inbounds i8, ptr %11, i64 4
%14 = load i32, ptr %11, align 4, !tbaa !6
%15 = sext i32 %14 to i64
%16 = add i64 %12, %15
br label %17
17: ; preds = %4, %8
%18 = phi i64 [ %16, %8 ], [ 0, %4 ]
%19 = phi i64 [ %10, %8 ], [ %6, %4 ]
%20 = phi ptr [ %13, %8 ], [ %0, %4 ]
%21 = mul i64 %18, 33
%22 = getelementptr inbounds i8, ptr %20, i64 4
%23 = load i32, ptr %20, align 4, !tbaa !6
%24 = sext i32 %23 to i64
%25 = add i64 %21, %24
br label %26
26: ; preds = %4, %17
%27 = phi i64 [ %25, %17 ], [ 0, %4 ]
%28 = phi i64 [ %19, %17 ], [ %6, %4 ]
%29 = phi ptr [ %22, %17 ], [ %0, %4 ]
%30 = mul i64 %27, 33
%31 = getelementptr inbounds i8, ptr %29, i64 4
%32 = load i32, ptr %29, align 4, !tbaa !6
%33 = sext i32 %32 to i64
%34 = add i64 %30, %33
br label %35
35: ; preds = %4, %26
%36 = phi i64 [ %34, %26 ], [ 0, %4 ]
%37 = phi i64 [ %28, %26 ], [ %6, %4 ]
%38 = phi ptr [ %31, %26 ], [ %0, %4 ]
%39 = mul i64 %36, 33
%40 = getelementptr inbounds i8, ptr %38, i64 4
%41 = load i32, ptr %38, align 4, !tbaa !6
%42 = sext i32 %41 to i64
%43 = add i64 %39, %42
br label %44
44: ; preds = %4, %35
%45 = phi i64 [ %43, %35 ], [ 0, %4 ]
%46 = phi i64 [ %37, %35 ], [ %6, %4 ]
%47 = phi ptr [ %40, %35 ], [ %0, %4 ]
%48 = mul i64 %45, 33
%49 = getelementptr inbounds i8, ptr %47, i64 4
%50 = load i32, ptr %47, align 4, !tbaa !6
%51 = sext i32 %50 to i64
%52 = add i64 %48, %51
br label %53
53: ; preds = %4, %44
%54 = phi i64 [ %52, %44 ], [ 0, %4 ]
%55 = phi i64 [ %46, %44 ], [ %6, %4 ]
%56 = phi ptr [ %49, %44 ], [ %0, %4 ]
%57 = mul i64 %54, 33
%58 = getelementptr inbounds i8, ptr %56, i64 4
%59 = load i32, ptr %56, align 4, !tbaa !6
%60 = sext i32 %59 to i64
%61 = add i64 %57, %60
br label %62
62: ; preds = %4, %53
%63 = phi i64 [ %61, %53 ], [ 0, %4 ]
%64 = phi i64 [ %55, %53 ], [ %6, %4 ]
%65 = phi ptr [ %58, %53 ], [ %0, %4 ]
%66 = mul i64 %63, 33
%67 = getelementptr inbounds i8, ptr %65, i64 4
%68 = load i32, ptr %65, align 4, !tbaa !6
%69 = sext i32 %68 to i64
%70 = add i64 %66, %69
br label %71
71: ; preds = %4, %62
%72 = phi i64 [ 0, %4 ], [ %70, %62 ]
%73 = phi i64 [ %6, %4 ], [ %64, %62 ]
%74 = phi ptr [ %0, %4 ], [ %67, %62 ]
%75 = mul i64 %72, 33
%76 = getelementptr inbounds i8, ptr %74, i64 4
%77 = load i32, ptr %74, align 4, !tbaa !6
%78 = sext i32 %77 to i64
%79 = add i64 %75, %78
%80 = add i64 %73, -1
%81 = icmp eq i64 %80, 0
br i1 %81, label %83, label %8, !llvm.loop !10
82: ; preds = %4
unreachable
83: ; preds = %71, %2
%84 = phi i64 [ %79, %71 ], [ 0, %2 ]
ret i64 %84
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| freebsd_lib_libc_db_hash_extr_hash_func.c_hash4 |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_fold-const.c_build_fold_indirect_ref.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_fold-const.c_build_fold_indirect_ref.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@INDIRECT_REF = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i64 @build_fold_indirect_ref(i64 noundef %0) local_unnamed_addr #0 {
%2 = tail call i64 @TREE_TYPE(i64 noundef %0) #2
%3 = tail call i64 @TREE_TYPE(i64 noundef %2) #2
%4 = tail call i64 @fold_indirect_ref_1(i64 noundef %3, i64 noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @INDIRECT_REF, align 4, !tbaa !5
%8 = tail call i64 @build1(i32 noundef %7, i64 noundef %3, i64 noundef %0) #2
br label %9
9: ; preds = %1, %6
%10 = phi i64 [ %8, %6 ], [ %4, %1 ]
ret i64 %10
}
declare i64 @TREE_TYPE(i64 noundef) local_unnamed_addr #1
declare i64 @fold_indirect_ref_1(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @build1(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_fold-const.c_build_fold_indirect_ref.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_fold-const.c_build_fold_indirect_ref.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@INDIRECT_REF = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @build_fold_indirect_ref(i64 noundef %0) local_unnamed_addr #0 {
%2 = tail call i64 @TREE_TYPE(i64 noundef %0) #2
%3 = tail call i64 @TREE_TYPE(i64 noundef %2) #2
%4 = tail call i64 @fold_indirect_ref_1(i64 noundef %3, i64 noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @INDIRECT_REF, align 4, !tbaa !6
%8 = tail call i64 @build1(i32 noundef %7, i64 noundef %3, i64 noundef %0) #2
br label %9
9: ; preds = %1, %6
%10 = phi i64 [ %8, %6 ], [ %4, %1 ]
ret i64 %10
}
declare i64 @TREE_TYPE(i64 noundef) local_unnamed_addr #1
declare i64 @fold_indirect_ref_1(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @build1(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gcc_extr_fold-const.c_build_fold_indirect_ref |
; ModuleID = 'AnghaBench/zfs/cmd/zed/agents/extr_fmd_api.c_fmd_serd_exists.c'
source_filename = "AnghaBench/zfs/cmd/zed/agents/extr_fmd_api.c_fmd_serd_exists.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local i32 @fmd_serd_exists(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @fmd_serd_eng_lookup(ptr noundef %0, ptr noundef %1) #2
%4 = icmp ne ptr %3, null
%5 = zext i1 %4 to i32
ret i32 %5
}
declare ptr @fmd_serd_eng_lookup(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/zfs/cmd/zed/agents/extr_fmd_api.c_fmd_serd_exists.c'
source_filename = "AnghaBench/zfs/cmd/zed/agents/extr_fmd_api.c_fmd_serd_exists.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @fmd_serd_exists(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call ptr @fmd_serd_eng_lookup(ptr noundef %0, ptr noundef %1) #2
%4 = icmp ne ptr %3, null
%5 = zext i1 %4 to i32
ret i32 %5
}
declare ptr @fmd_serd_eng_lookup(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)"}
| zfs_cmd_zed_agents_extr_fmd_api.c_fmd_serd_exists |
; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpiolib-of.c_of_gpiochip_add.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpiolib-of.c_of_gpiochip_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.gpio_chip = type { i32, i32, i32, i64 }
@of_gpio_simple_xlate = dso_local local_unnamed_addr global i64 0, align 8
@MAX_PHANDLE_ARGS = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @of_gpiochip_add(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.gpio_chip, ptr %0, i64 0, i32 1
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = icmp eq i32 %3, 0
br i1 %4, label %41, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.gpio_chip, ptr %0, i64 0, i32 3
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %5
%10 = load i32, ptr %0, align 8, !tbaa !12
br label %13
11: ; preds = %5
store i32 2, ptr %0, align 8, !tbaa !12
%12 = load i64, ptr @of_gpio_simple_xlate, align 8, !tbaa !13
store i64 %12, ptr %6, align 8, !tbaa !11
br label %13
13: ; preds = %9, %11
%14 = phi i32 [ %10, %9 ], [ 2, %11 ]
%15 = load i32, ptr @MAX_PHANDLE_ARGS, align 4, !tbaa !14
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr @EINVAL, align 4, !tbaa !14
%19 = sub nsw i32 0, %18
br label %41
20: ; preds = %13
%21 = tail call i32 @of_gpiochip_init_valid_mask(ptr noundef nonnull %0) #2
%22 = tail call i32 @of_gpiochip_add_pin_range(ptr noundef nonnull %0) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %41
24: ; preds = %20
%25 = getelementptr inbounds %struct.gpio_chip, ptr %0, i64 0, i32 2
%26 = load i32, ptr %25, align 8, !tbaa !15
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i32, ptr %2, align 4, !tbaa !5
%30 = tail call i32 @of_fwnode_handle(i32 noundef %29) #2
%31 = tail call i32 @devprop_gpiochip_set_names(ptr noundef nonnull %0, i32 noundef %30) #2
br label %32
32: ; preds = %28, %24
%33 = load i32, ptr %2, align 4, !tbaa !5
%34 = tail call i32 @of_node_get(i32 noundef %33) #2
%35 = tail call i32 @of_gpiochip_scan_gpios(ptr noundef nonnull %0) #2
%36 = icmp eq i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %32
%38 = load i32, ptr %2, align 4, !tbaa !5
%39 = tail call i32 @of_node_put(i32 noundef %38) #2
%40 = tail call i32 @gpiochip_remove_pin_ranges(ptr noundef nonnull %0) #2
br label %41
41: ; preds = %32, %37, %20, %1, %17
%42 = phi i32 [ %19, %17 ], [ 0, %1 ], [ %22, %20 ], [ %35, %37 ], [ 0, %32 ]
ret i32 %42
}
declare i32 @of_gpiochip_init_valid_mask(ptr noundef) local_unnamed_addr #1
declare i32 @of_gpiochip_add_pin_range(ptr noundef) local_unnamed_addr #1
declare i32 @devprop_gpiochip_set_names(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @of_fwnode_handle(i32 noundef) local_unnamed_addr #1
declare i32 @of_node_get(i32 noundef) local_unnamed_addr #1
declare i32 @of_gpiochip_scan_gpios(ptr noundef) local_unnamed_addr #1
declare i32 @of_node_put(i32 noundef) local_unnamed_addr #1
declare i32 @gpiochip_remove_pin_ranges(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"gpio_chip", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpiolib-of.c_of_gpiochip_add.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpiolib-of.c_of_gpiochip_add.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@of_gpio_simple_xlate = common local_unnamed_addr global i64 0, align 8
@MAX_PHANDLE_ARGS = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @of_gpiochip_add(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = icmp eq i32 %3, 0
br i1 %4, label %41, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %5
%10 = load i32, ptr %0, align 8, !tbaa !13
br label %13
11: ; preds = %5
store i32 2, ptr %0, align 8, !tbaa !13
%12 = load i64, ptr @of_gpio_simple_xlate, align 8, !tbaa !14
store i64 %12, ptr %6, align 8, !tbaa !12
br label %13
13: ; preds = %9, %11
%14 = phi i32 [ %10, %9 ], [ 2, %11 ]
%15 = load i32, ptr @MAX_PHANDLE_ARGS, align 4, !tbaa !15
%16 = icmp sgt i32 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr @EINVAL, align 4, !tbaa !15
%19 = sub nsw i32 0, %18
br label %41
20: ; preds = %13
%21 = tail call i32 @of_gpiochip_init_valid_mask(ptr noundef nonnull %0) #2
%22 = tail call i32 @of_gpiochip_add_pin_range(ptr noundef nonnull %0) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %41
24: ; preds = %20
%25 = getelementptr inbounds i8, ptr %0, i64 8
%26 = load i32, ptr %25, align 8, !tbaa !16
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i32, ptr %2, align 4, !tbaa !6
%30 = tail call i32 @of_fwnode_handle(i32 noundef %29) #2
%31 = tail call i32 @devprop_gpiochip_set_names(ptr noundef nonnull %0, i32 noundef %30) #2
br label %32
32: ; preds = %28, %24
%33 = load i32, ptr %2, align 4, !tbaa !6
%34 = tail call i32 @of_node_get(i32 noundef %33) #2
%35 = tail call i32 @of_gpiochip_scan_gpios(ptr noundef nonnull %0) #2
%36 = icmp eq i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %32
%38 = load i32, ptr %2, align 4, !tbaa !6
%39 = tail call i32 @of_node_put(i32 noundef %38) #2
%40 = tail call i32 @gpiochip_remove_pin_ranges(ptr noundef nonnull %0) #2
br label %41
41: ; preds = %32, %37, %20, %1, %17
%42 = phi i32 [ %19, %17 ], [ 0, %1 ], [ %22, %20 ], [ %35, %37 ], [ 0, %32 ]
ret i32 %42
}
declare i32 @of_gpiochip_init_valid_mask(ptr noundef) local_unnamed_addr #1
declare i32 @of_gpiochip_add_pin_range(ptr noundef) local_unnamed_addr #1
declare i32 @devprop_gpiochip_set_names(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @of_fwnode_handle(i32 noundef) local_unnamed_addr #1
declare i32 @of_node_get(i32 noundef) local_unnamed_addr #1
declare i32 @of_gpiochip_scan_gpios(ptr noundef) local_unnamed_addr #1
declare i32 @of_node_put(i32 noundef) local_unnamed_addr #1
declare i32 @gpiochip_remove_pin_ranges(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"gpio_chip", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !11, i64 16}
!13 = !{!7, !8, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !8, i64 8}
| linux_drivers_gpio_extr_gpiolib-of.c_of_gpiochip_add |
; ModuleID = 'AnghaBench/gb-studio/buildTools/linux-x64/gbdk/examples/gb/extr_sound.c_dump_registers.c'
source_filename = "AnghaBench/gb-studio/buildTools/linux-x64/gbdk/examples/gb/extr_sound.c_dump_registers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FIRST_X = dso_local local_unnamed_addr global i64 0, align 8
@TITLE_Y = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [14 x i8] c"Register Dump\00", align 1
@FIRST_Y = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"0xFF\00", align 1
@UNSIGNED = dso_local local_unnamed_addr global i32 0, align 4
@VAL_X = dso_local local_unnamed_addr global i64 0, align 8
@soundReg = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @dump_registers() local_unnamed_addr #0 {
%1 = tail call i32 (...) @cls() #2
%2 = load i64, ptr @FIRST_X, align 8, !tbaa !5
%3 = load i64, ptr @TITLE_Y, align 8, !tbaa !5
%4 = tail call i32 @gotoxy(i64 noundef %2, i64 noundef %3) #2
%5 = tail call i32 @print(ptr noundef nonnull @.str) #2
br label %6
6: ; preds = %0, %57
%7 = phi i32 [ 0, %0 ], [ %61, %57 ]
%8 = phi i32 [ 0, %0 ], [ %60, %57 ]
switch i32 %8, label %11 [
i32 15, label %9
i32 5, label %9
]
9: ; preds = %6, %6
%10 = add nuw nsw i32 %8, 1
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ %10, %9 ], [ %8, %6 ]
%13 = and i32 %7, 1
%14 = icmp eq i32 %13, 0
%15 = load i64, ptr @FIRST_X, align 8, !tbaa !5
br i1 %14, label %16, label %30
16: ; preds = %11
%17 = load i64, ptr @FIRST_Y, align 8, !tbaa !5
%18 = lshr exact i32 %7, 1
%19 = zext nneg i32 %18 to i64
%20 = add nsw i64 %17, %19
%21 = tail call i32 @gotoxy(i64 noundef %15, i64 noundef %20) #2
%22 = tail call i32 @print(ptr noundef nonnull @.str.1) #2
%23 = add nsw i32 %12, 16
%24 = load i32, ptr @UNSIGNED, align 4, !tbaa !9
%25 = tail call i32 @printn(i32 noundef %23, i32 noundef 16, i32 noundef %24) #2
%26 = load i64, ptr @VAL_X, align 8, !tbaa !5
%27 = load i64, ptr @FIRST_Y, align 8, !tbaa !5
%28 = add nsw i64 %27, %19
%29 = tail call i32 @gotoxy(i64 noundef %26, i64 noundef %28) #2
br label %47
30: ; preds = %11
%31 = add nsw i64 %15, 6
%32 = load i64, ptr @FIRST_Y, align 8, !tbaa !5
%33 = lshr i32 %7, 1
%34 = zext nneg i32 %33 to i64
%35 = add nsw i64 %32, %34
%36 = tail call i32 @gotoxy(i64 noundef %31, i64 noundef %35) #2
%37 = tail call i32 @putchar(i8 noundef signext 45) #2
%38 = add nsw i32 %12, 16
%39 = load i32, ptr @UNSIGNED, align 4, !tbaa !9
%40 = tail call i32 @printn(i32 noundef %38, i32 noundef 16, i32 noundef %39) #2
%41 = load i64, ptr @VAL_X, align 8, !tbaa !5
%42 = add nsw i64 %41, 2
%43 = load i64, ptr @FIRST_Y, align 8, !tbaa !5
%44 = add nsw i64 %43, %34
%45 = tail call i32 @gotoxy(i64 noundef %42, i64 noundef %44) #2
%46 = tail call i32 @putchar(i8 noundef signext 45) #2
br label %47
47: ; preds = %30, %16
%48 = load i64, ptr @soundReg, align 8, !tbaa !5
%49 = inttoptr i64 %48 to ptr
%50 = sext i32 %12 to i64
%51 = getelementptr inbounds i32, ptr %49, i64 %50
%52 = load i32, ptr %51, align 4, !tbaa !9
%53 = and i32 %52, 240
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %47
%56 = tail call i32 @putchar(i8 noundef signext 48) #2
br label %57
57: ; preds = %55, %47
%58 = load i32, ptr @UNSIGNED, align 4, !tbaa !9
%59 = tail call i32 @printn(i32 noundef %52, i32 noundef 16, i32 noundef %58) #2
%60 = add nsw i32 %12, 1
%61 = add nuw nsw i32 %7, 1
%62 = icmp slt i32 %12, 22
br i1 %62, label %6, label %63, !llvm.loop !11
63: ; preds = %57
ret void
}
declare i32 @cls(...) local_unnamed_addr #1
declare i32 @gotoxy(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @print(ptr noundef) local_unnamed_addr #1
declare i32 @putchar(i8 noundef signext) local_unnamed_addr #1
declare i32 @printn(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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/gb-studio/buildTools/linux-x64/gbdk/examples/gb/extr_sound.c_dump_registers.c'
source_filename = "AnghaBench/gb-studio/buildTools/linux-x64/gbdk/examples/gb/extr_sound.c_dump_registers.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FIRST_X = common local_unnamed_addr global i64 0, align 8
@TITLE_Y = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [14 x i8] c"Register Dump\00", align 1
@FIRST_Y = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"0xFF\00", align 1
@UNSIGNED = common local_unnamed_addr global i32 0, align 4
@VAL_X = common local_unnamed_addr global i64 0, align 8
@soundReg = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @dump_registers() local_unnamed_addr #0 {
%1 = tail call i32 @cls() #2
%2 = load i64, ptr @FIRST_X, align 8, !tbaa !6
%3 = load i64, ptr @TITLE_Y, align 8, !tbaa !6
%4 = tail call i32 @gotoxy(i64 noundef %2, i64 noundef %3) #2
%5 = tail call i32 @print(ptr noundef nonnull @.str) #2
br label %6
6: ; preds = %0, %57
%7 = phi i32 [ 0, %0 ], [ %61, %57 ]
%8 = phi i32 [ 0, %0 ], [ %60, %57 ]
switch i32 %8, label %11 [
i32 15, label %9
i32 5, label %9
]
9: ; preds = %6, %6
%10 = add nuw nsw i32 %8, 1
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ %10, %9 ], [ %8, %6 ]
%13 = and i32 %7, 1
%14 = icmp eq i32 %13, 0
%15 = load i64, ptr @FIRST_X, align 8, !tbaa !6
br i1 %14, label %16, label %30
16: ; preds = %11
%17 = load i64, ptr @FIRST_Y, align 8, !tbaa !6
%18 = lshr exact i32 %7, 1
%19 = zext nneg i32 %18 to i64
%20 = add nsw i64 %17, %19
%21 = tail call i32 @gotoxy(i64 noundef %15, i64 noundef %20) #2
%22 = tail call i32 @print(ptr noundef nonnull @.str.1) #2
%23 = add nsw i32 %12, 16
%24 = load i32, ptr @UNSIGNED, align 4, !tbaa !10
%25 = tail call i32 @printn(i32 noundef %23, i32 noundef 16, i32 noundef %24) #2
%26 = load i64, ptr @VAL_X, align 8, !tbaa !6
%27 = load i64, ptr @FIRST_Y, align 8, !tbaa !6
%28 = add nsw i64 %27, %19
%29 = tail call i32 @gotoxy(i64 noundef %26, i64 noundef %28) #2
br label %47
30: ; preds = %11
%31 = add nsw i64 %15, 6
%32 = load i64, ptr @FIRST_Y, align 8, !tbaa !6
%33 = lshr i32 %7, 1
%34 = zext nneg i32 %33 to i64
%35 = add nsw i64 %32, %34
%36 = tail call i32 @gotoxy(i64 noundef %31, i64 noundef %35) #2
%37 = tail call i32 @putchar(i8 noundef signext 45) #2
%38 = add nsw i32 %12, 16
%39 = load i32, ptr @UNSIGNED, align 4, !tbaa !10
%40 = tail call i32 @printn(i32 noundef %38, i32 noundef 16, i32 noundef %39) #2
%41 = load i64, ptr @VAL_X, align 8, !tbaa !6
%42 = add nsw i64 %41, 2
%43 = load i64, ptr @FIRST_Y, align 8, !tbaa !6
%44 = add nsw i64 %43, %34
%45 = tail call i32 @gotoxy(i64 noundef %42, i64 noundef %44) #2
%46 = tail call i32 @putchar(i8 noundef signext 45) #2
br label %47
47: ; preds = %30, %16
%48 = load i64, ptr @soundReg, align 8, !tbaa !6
%49 = inttoptr i64 %48 to ptr
%50 = sext i32 %12 to i64
%51 = getelementptr inbounds i32, ptr %49, i64 %50
%52 = load i32, ptr %51, align 4, !tbaa !10
%53 = and i32 %52, 240
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %47
%56 = tail call i32 @putchar(i8 noundef signext 48) #2
br label %57
57: ; preds = %55, %47
%58 = load i32, ptr @UNSIGNED, align 4, !tbaa !10
%59 = tail call i32 @printn(i32 noundef %52, i32 noundef 16, i32 noundef %58) #2
%60 = add nsw i32 %12, 1
%61 = add nuw nsw i32 %7, 1
%62 = icmp slt i32 %12, 22
br i1 %62, label %6, label %63, !llvm.loop !12
63: ; preds = %57
ret void
}
declare i32 @cls(...) local_unnamed_addr #1
declare i32 @gotoxy(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @print(ptr noundef) local_unnamed_addr #1
declare i32 @putchar(i8 noundef signext) local_unnamed_addr #1
declare i32 @printn(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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| gb-studio_buildTools_linux-x64_gbdk_examples_gb_extr_sound.c_dump_registers |
; ModuleID = 'AnghaBench/sqlcipher/ext/fts5/extr_fts5_index.c_fts5SegIterSeekInit.c'
source_filename = "AnghaBench/sqlcipher/ext/fts5/extr_fts5_index.c_fts5SegIterSeekInit.c"
target datalayout = "e-m:e-p270:32:32-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_20__ = type { i32, i64, i32, i32, ptr }
%struct.TYPE_19__ = type { i32, i32 }
@FTS5INDEX_QUERY_SCAN = dso_local local_unnamed_addr global i32 0, align 4
@FTS5INDEX_QUERY_DESC = dso_local local_unnamed_addr global i32 0, align 4
@SQLITE_STATIC = dso_local local_unnamed_addr global i32 0, align 4
@SQLITE_ROW = dso_local local_unnamed_addr global i64 0, align 8
@SQLITE_OK = dso_local local_unnamed_addr global i32 0, align 4
@FTS5_SEGITER_ONETERM = dso_local local_unnamed_addr global i32 0, align 4
@FTS5_SEGITER_REVERSE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @fts5SegIterSeekInit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @fts5SegIterSeekInit(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = load i32, ptr @FTS5INDEX_QUERY_SCAN, align 4, !tbaa !5
%8 = and i32 %7, %3
%9 = icmp eq i32 %8, 0
%10 = load i32, ptr @FTS5INDEX_QUERY_DESC, align 4
%11 = and i32 %10, %3
%12 = icmp eq i32 %11, 0
%13 = select i1 %9, i1 true, i1 %12
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 noundef %14) #3
%16 = icmp ne ptr %1, null
%17 = icmp ne i32 %2, 0
%18 = and i1 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 noundef %19) #3
%21 = tail call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 32) #3
%22 = getelementptr inbounds %struct.TYPE_20__, ptr %5, i64 0, i32 4
store ptr %4, ptr %22, align 8, !tbaa !9
%23 = tail call ptr @fts5IdxSelectStmt(ptr noundef %0) #3
%24 = load i32, ptr %0, align 4, !tbaa !13
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %105
26: ; preds = %6
%27 = getelementptr inbounds %struct.TYPE_19__, ptr %4, i64 0, i32 1
%28 = load i32, ptr %27, align 4, !tbaa !15
%29 = tail call i32 @sqlite3_bind_int(ptr noundef %23, i32 noundef 1, i32 noundef %28) #3
%30 = load i32, ptr @SQLITE_STATIC, align 4, !tbaa !5
%31 = tail call i32 @sqlite3_bind_blob(ptr noundef %23, i32 noundef 2, ptr noundef %1, i32 noundef %2, i32 noundef %30) #3
%32 = load i64, ptr @SQLITE_ROW, align 8, !tbaa !17
%33 = tail call i64 @sqlite3_step(ptr noundef %23) #3
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = tail call i32 @sqlite3_column_int(ptr noundef %23, i32 noundef 0) #3
%37 = ashr i32 %36, 1
%38 = and i32 %36, 1
%39 = icmp eq i32 %38, 0
br label %40
40: ; preds = %35, %26
%41 = phi i1 [ %39, %35 ], [ true, %26 ]
%42 = phi i32 [ %37, %35 ], [ 1, %26 ]
%43 = tail call i32 @sqlite3_reset(ptr noundef %23) #3
store i32 %43, ptr %0, align 4, !tbaa !13
%44 = tail call i32 @sqlite3_bind_null(ptr noundef %23, i32 noundef 2) #3
%45 = load i32, ptr %4, align 4, !tbaa !18
%46 = icmp slt i32 %42, %45
%47 = tail call i32 @llvm.smax.i32(i32 %42, i32 %45)
%48 = add nsw i32 %47, -1
store i32 %48, ptr %5, align 8, !tbaa !19
%49 = tail call i32 @fts5SegIterNextPage(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%50 = getelementptr inbounds %struct.TYPE_20__, ptr %5, i64 0, i32 1
%51 = load i64, ptr %50, align 8, !tbaa !20
%52 = icmp eq i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %40
%54 = tail call i32 @fts5LeafSeek(ptr noundef nonnull %0, i32 noundef %8, ptr noundef nonnull %5, ptr noundef %1, i32 noundef %2) #3
br label %55
55: ; preds = %53, %40
%56 = load i32, ptr %0, align 4, !tbaa !13
%57 = load i32, ptr @SQLITE_OK, align 4, !tbaa !5
%58 = icmp eq i32 %56, %57
%59 = and i1 %9, %58
br i1 %59, label %60, label %85
60: ; preds = %55
%61 = load i32, ptr @FTS5_SEGITER_ONETERM, align 4, !tbaa !5
%62 = getelementptr inbounds %struct.TYPE_20__, ptr %5, i64 0, i32 3
%63 = load i32, ptr %62, align 4, !tbaa !21
%64 = or i32 %63, %61
store i32 %64, ptr %62, align 4, !tbaa !21
%65 = load i64, ptr %50, align 8, !tbaa !20
%66 = icmp eq i64 %65, 0
br i1 %66, label %85, label %67
67: ; preds = %60
%68 = load i32, ptr @FTS5INDEX_QUERY_DESC, align 4, !tbaa !5
%69 = and i32 %68, %3
%70 = icmp eq i32 %69, 0
br i1 %70, label %74, label %71
71: ; preds = %67
%72 = load i32, ptr @FTS5_SEGITER_REVERSE, align 4, !tbaa !5
%73 = or i32 %72, %64
store i32 %73, ptr %62, align 4, !tbaa !21
br label %74
74: ; preds = %71, %67
%75 = select i1 %46, i1 true, i1 %41
br i1 %75, label %80, label %76
76: ; preds = %74
%77 = tail call i32 @fts5SegIterLoadDlidx(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%78 = load i32, ptr @FTS5INDEX_QUERY_DESC, align 4, !tbaa !5
%79 = and i32 %78, %3
br label %80
80: ; preds = %76, %74
%81 = phi i32 [ %79, %76 ], [ %69, %74 ]
%82 = icmp eq i32 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = tail call i32 @fts5SegIterReverse(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
br label %85
85: ; preds = %60, %83, %80, %55
%86 = tail call i32 @fts5SegIterSetNext(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%87 = load i32, ptr %0, align 4, !tbaa !13
%88 = load i32, ptr @SQLITE_OK, align 4, !tbaa !5
%89 = icmp eq i32 %87, %88
br i1 %89, label %90, label %101
90: ; preds = %85
%91 = load i64, ptr %50, align 8, !tbaa !20
%92 = icmp eq i64 %91, 0
br i1 %92, label %101, label %93
93: ; preds = %90
%94 = getelementptr inbounds %struct.TYPE_20__, ptr %5, i64 0, i32 2
%95 = tail call i64 @fts5BufferCompareBlob(ptr noundef nonnull %94, ptr noundef %1, i32 noundef %2) #3
%96 = icmp eq i64 %95, 0
%97 = or i1 %9, %96
br i1 %97, label %101, label %98
98: ; preds = %93
%99 = tail call i64 @fts5BufferCompareBlob(ptr noundef nonnull %94, ptr noundef %1, i32 noundef %2) #3
%100 = icmp sgt i64 %99, 0
br label %101
101: ; preds = %93, %98, %90, %85
%102 = phi i1 [ %96, %93 ], [ true, %90 ], [ true, %85 ], [ %100, %98 ]
%103 = zext i1 %102 to i32
%104 = tail call i32 @assert_nc(i32 noundef %103) #3
br label %105
105: ; preds = %6, %101
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @fts5IdxSelectStmt(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_bind_int(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_bind_blob(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @sqlite3_step(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_column_int(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_reset(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_bind_null(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fts5SegIterNextPage(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fts5LeafSeek(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fts5SegIterLoadDlidx(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fts5SegIterReverse(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fts5SegIterSetNext(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @assert_nc(i32 noundef) local_unnamed_addr #1
declare i64 @fts5BufferCompareBlob(ptr noundef, ptr 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
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"TYPE_20__", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !12, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"TYPE_21__", !6, i64 0}
!15 = !{!16, !6, i64 4}
!16 = !{!"TYPE_19__", !6, i64 0, !6, i64 4}
!17 = !{!11, !11, i64 0}
!18 = !{!16, !6, i64 0}
!19 = !{!10, !6, i64 0}
!20 = !{!10, !11, i64 8}
!21 = !{!10, !6, i64 20}
| ; ModuleID = 'AnghaBench/sqlcipher/ext/fts5/extr_fts5_index.c_fts5SegIterSeekInit.c'
source_filename = "AnghaBench/sqlcipher/ext/fts5/extr_fts5_index.c_fts5SegIterSeekInit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FTS5INDEX_QUERY_SCAN = common local_unnamed_addr global i32 0, align 4
@FTS5INDEX_QUERY_DESC = common local_unnamed_addr global i32 0, align 4
@SQLITE_STATIC = common local_unnamed_addr global i32 0, align 4
@SQLITE_ROW = common local_unnamed_addr global i64 0, align 8
@SQLITE_OK = common local_unnamed_addr global i32 0, align 4
@FTS5_SEGITER_ONETERM = common local_unnamed_addr global i32 0, align 4
@FTS5_SEGITER_REVERSE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @fts5SegIterSeekInit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @fts5SegIterSeekInit(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = load i32, ptr @FTS5INDEX_QUERY_SCAN, align 4, !tbaa !6
%8 = and i32 %7, %3
%9 = icmp eq i32 %8, 0
%10 = load i32, ptr @FTS5INDEX_QUERY_DESC, align 4
%11 = and i32 %10, %3
%12 = icmp eq i32 %11, 0
%13 = select i1 %9, i1 true, i1 %12
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 noundef %14) #3
%16 = icmp ne ptr %1, null
%17 = icmp ne i32 %2, 0
%18 = and i1 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 noundef %19) #3
%21 = tail call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 32) #3
%22 = getelementptr inbounds i8, ptr %5, i64 24
store ptr %4, ptr %22, align 8, !tbaa !10
%23 = tail call ptr @fts5IdxSelectStmt(ptr noundef %0) #3
%24 = load i32, ptr %0, align 4, !tbaa !14
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %105
26: ; preds = %6
%27 = getelementptr inbounds i8, ptr %4, i64 4
%28 = load i32, ptr %27, align 4, !tbaa !16
%29 = tail call i32 @sqlite3_bind_int(ptr noundef %23, i32 noundef 1, i32 noundef %28) #3
%30 = load i32, ptr @SQLITE_STATIC, align 4, !tbaa !6
%31 = tail call i32 @sqlite3_bind_blob(ptr noundef %23, i32 noundef 2, ptr noundef %1, i32 noundef %2, i32 noundef %30) #3
%32 = load i64, ptr @SQLITE_ROW, align 8, !tbaa !18
%33 = tail call i64 @sqlite3_step(ptr noundef %23) #3
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = tail call i32 @sqlite3_column_int(ptr noundef %23, i32 noundef 0) #3
%37 = ashr i32 %36, 1
%38 = and i32 %36, 1
%39 = icmp eq i32 %38, 0
br label %40
40: ; preds = %35, %26
%41 = phi i1 [ %39, %35 ], [ true, %26 ]
%42 = phi i32 [ %37, %35 ], [ 1, %26 ]
%43 = tail call i32 @sqlite3_reset(ptr noundef %23) #3
store i32 %43, ptr %0, align 4, !tbaa !14
%44 = tail call i32 @sqlite3_bind_null(ptr noundef %23, i32 noundef 2) #3
%45 = load i32, ptr %4, align 4, !tbaa !19
%46 = icmp slt i32 %42, %45
%47 = tail call i32 @llvm.smax.i32(i32 %42, i32 %45)
%48 = add nsw i32 %47, -1
store i32 %48, ptr %5, align 8, !tbaa !20
%49 = tail call i32 @fts5SegIterNextPage(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%50 = getelementptr inbounds i8, ptr %5, i64 8
%51 = load i64, ptr %50, align 8, !tbaa !21
%52 = icmp eq i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %40
%54 = tail call i32 @fts5LeafSeek(ptr noundef nonnull %0, i32 noundef %8, ptr noundef nonnull %5, ptr noundef %1, i32 noundef %2) #3
br label %55
55: ; preds = %53, %40
%56 = load i32, ptr %0, align 4, !tbaa !14
%57 = load i32, ptr @SQLITE_OK, align 4, !tbaa !6
%58 = icmp eq i32 %56, %57
%59 = and i1 %9, %58
br i1 %59, label %60, label %85
60: ; preds = %55
%61 = load i32, ptr @FTS5_SEGITER_ONETERM, align 4, !tbaa !6
%62 = getelementptr inbounds i8, ptr %5, i64 20
%63 = load i32, ptr %62, align 4, !tbaa !22
%64 = or i32 %63, %61
store i32 %64, ptr %62, align 4, !tbaa !22
%65 = load i64, ptr %50, align 8, !tbaa !21
%66 = icmp eq i64 %65, 0
br i1 %66, label %85, label %67
67: ; preds = %60
%68 = load i32, ptr @FTS5INDEX_QUERY_DESC, align 4, !tbaa !6
%69 = and i32 %68, %3
%70 = icmp eq i32 %69, 0
br i1 %70, label %74, label %71
71: ; preds = %67
%72 = load i32, ptr @FTS5_SEGITER_REVERSE, align 4, !tbaa !6
%73 = or i32 %72, %64
store i32 %73, ptr %62, align 4, !tbaa !22
br label %74
74: ; preds = %71, %67
%75 = select i1 %46, i1 true, i1 %41
br i1 %75, label %80, label %76
76: ; preds = %74
%77 = tail call i32 @fts5SegIterLoadDlidx(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%78 = load i32, ptr @FTS5INDEX_QUERY_DESC, align 4, !tbaa !6
%79 = and i32 %78, %3
br label %80
80: ; preds = %76, %74
%81 = phi i32 [ %79, %76 ], [ %69, %74 ]
%82 = icmp eq i32 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = tail call i32 @fts5SegIterReverse(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
br label %85
85: ; preds = %60, %83, %80, %55
%86 = tail call i32 @fts5SegIterSetNext(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
%87 = load i32, ptr %0, align 4, !tbaa !14
%88 = load i32, ptr @SQLITE_OK, align 4, !tbaa !6
%89 = icmp eq i32 %87, %88
br i1 %89, label %90, label %101
90: ; preds = %85
%91 = load i64, ptr %50, align 8, !tbaa !21
%92 = icmp eq i64 %91, 0
br i1 %92, label %101, label %93
93: ; preds = %90
%94 = getelementptr inbounds i8, ptr %5, i64 16
%95 = tail call i64 @fts5BufferCompareBlob(ptr noundef nonnull %94, ptr noundef %1, i32 noundef %2) #3
%96 = icmp eq i64 %95, 0
%97 = or i1 %9, %96
br i1 %97, label %101, label %98
98: ; preds = %93
%99 = tail call i64 @fts5BufferCompareBlob(ptr noundef nonnull %94, ptr noundef %1, i32 noundef %2) #3
%100 = icmp sgt i64 %99, 0
br label %101
101: ; preds = %93, %98, %90, %85
%102 = phi i1 [ %96, %93 ], [ true, %90 ], [ true, %85 ], [ %100, %98 ]
%103 = zext i1 %102 to i32
%104 = tail call i32 @assert_nc(i32 noundef %103) #3
br label %105
105: ; preds = %6, %101
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @fts5IdxSelectStmt(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_bind_int(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_bind_blob(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @sqlite3_step(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_column_int(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sqlite3_reset(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_bind_null(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fts5SegIterNextPage(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fts5LeafSeek(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fts5SegIterLoadDlidx(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fts5SegIterReverse(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @fts5SegIterSetNext(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @assert_nc(i32 noundef) local_unnamed_addr #1
declare i64 @fts5BufferCompareBlob(ptr noundef, ptr 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
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 24}
!11 = !{!"TYPE_20__", !7, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !13, i64 24}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_21__", !7, i64 0}
!16 = !{!17, !7, i64 4}
!17 = !{!"TYPE_19__", !7, i64 0, !7, i64 4}
!18 = !{!12, !12, i64 0}
!19 = !{!17, !7, i64 0}
!20 = !{!11, !7, i64 0}
!21 = !{!11, !12, i64 8}
!22 = !{!11, !7, i64 20}
| sqlcipher_ext_fts5_extr_fts5_index.c_fts5SegIterSeekInit |
; ModuleID = 'AnghaBench/reactos/dll/win32/mspatcha/extr_mspatcha_main.c_MapFile.c'
source_filename = "AnghaBench/reactos/dll/win32/mspatcha/extr_mspatcha_main.c_MapFile.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PAGE_READONLY = dso_local local_unnamed_addr global i32 0, align 4
@INVALID_HANDLE_VALUE = dso_local local_unnamed_addr global i64 0, align 8
@FILE_MAP_READ = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @MapFile], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @MapFile(i64 noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = tail call i32 @GetFileSize(i64 noundef %0, ptr noundef null) #2
store i32 %3, ptr %1, align 4, !tbaa !5
%4 = load i32, ptr @PAGE_READONLY, align 4, !tbaa !5
%5 = tail call i64 @CreateFileMappingW(i64 noundef %0, ptr noundef null, i32 noundef %4, i32 noundef 0, i32 noundef 0, ptr noundef null) #2
%6 = load i64, ptr @INVALID_HANDLE_VALUE, align 8, !tbaa !9
%7 = icmp eq i64 %5, %6
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, ptr @FILE_MAP_READ, align 4, !tbaa !5
%10 = tail call ptr @MapViewOfFile(i64 noundef %5, i32 noundef %9, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
%11 = tail call i32 @CloseHandle(i64 noundef %5) #2
br label %12
12: ; preds = %2, %8
%13 = phi ptr [ %10, %8 ], [ null, %2 ]
ret ptr %13
}
declare i32 @GetFileSize(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @CreateFileMappingW(i64 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @MapViewOfFile(i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CloseHandle(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/mspatcha/extr_mspatcha_main.c_MapFile.c'
source_filename = "AnghaBench/reactos/dll/win32/mspatcha/extr_mspatcha_main.c_MapFile.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_READONLY = common local_unnamed_addr global i32 0, align 4
@INVALID_HANDLE_VALUE = common local_unnamed_addr global i64 0, align 8
@FILE_MAP_READ = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @MapFile], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @MapFile(i64 noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = tail call i32 @GetFileSize(i64 noundef %0, ptr noundef null) #2
store i32 %3, ptr %1, align 4, !tbaa !6
%4 = load i32, ptr @PAGE_READONLY, align 4, !tbaa !6
%5 = tail call i64 @CreateFileMappingW(i64 noundef %0, ptr noundef null, i32 noundef %4, i32 noundef 0, i32 noundef 0, ptr noundef null) #2
%6 = load i64, ptr @INVALID_HANDLE_VALUE, align 8, !tbaa !10
%7 = icmp eq i64 %5, %6
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, ptr @FILE_MAP_READ, align 4, !tbaa !6
%10 = tail call ptr @MapViewOfFile(i64 noundef %5, i32 noundef %9, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
%11 = tail call i32 @CloseHandle(i64 noundef %5) #2
br label %12
12: ; preds = %2, %8
%13 = phi ptr [ %10, %8 ], [ null, %2 ]
ret ptr %13
}
declare i32 @GetFileSize(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @CreateFileMappingW(i64 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @MapViewOfFile(i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @CloseHandle(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
| reactos_dll_win32_mspatcha_extr_mspatcha_main.c_MapFile |
; ModuleID = 'AnghaBench/linux/lib/extr_..mminternal.h_page_order.c'
source_filename = "AnghaBench/linux/lib/extr_..mminternal.h_page_order.c"
target datalayout = "e-m:e-p270:32:32-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 @page_order], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @page_order(ptr noundef %0) #0 {
%2 = tail call i32 @page_private(ptr noundef %0) #2
ret i32 %2
}
declare i32 @page_private(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/lib/extr_..mminternal.h_page_order.c'
source_filename = "AnghaBench/linux/lib/extr_..mminternal.h_page_order.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 @page_order], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @page_order(ptr noundef %0) #0 {
%2 = tail call i32 @page_private(ptr noundef %0) #2
ret i32 %2
}
declare i32 @page_private(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_lib_extr_..mminternal.h_page_order |
; ModuleID = 'AnghaBench/fastsocket/kernel/crypto/signature/extr_ksign-parse.c_ksign_parse_packets.c'
source_filename = "AnghaBench/fastsocket/kernel/crypto/signature/extr_ksign-parse.c_ksign_parse_packets.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local i32 @ksign_parse_packets(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
store ptr %0, ptr %7, align 8, !tbaa !5
%8 = getelementptr inbounds i32, ptr %0, i64 %1
br label %9
9: ; preds = %9, %6
%10 = call i32 @ksign_parse_one_packet(ptr noundef nonnull %7, ptr noundef %8, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3
%11 = icmp eq i32 %10, 0
%12 = load ptr, ptr %7, align 8
%13 = icmp ult ptr %12, %8
%14 = select i1 %11, i1 %13, i1 false
br i1 %14, label %9, label %15, !llvm.loop !9
15: ; preds = %9
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i32 %10
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ksign_parse_one_packet(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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/fastsocket/kernel/crypto/signature/extr_ksign-parse.c_ksign_parse_packets.c'
source_filename = "AnghaBench/fastsocket/kernel/crypto/signature/extr_ksign-parse.c_ksign_parse_packets.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ksign_parse_packets(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
store ptr %0, ptr %7, align 8, !tbaa !6
%8 = getelementptr inbounds i32, ptr %0, i64 %1
br label %9
9: ; preds = %9, %6
%10 = call i32 @ksign_parse_one_packet(ptr noundef nonnull %7, ptr noundef %8, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3
%11 = icmp eq i32 %10, 0
%12 = load ptr, ptr %7, align 8
%13 = icmp ult ptr %12, %8
%14 = select i1 %11, i1 %13, i1 false
br i1 %14, label %9, label %15, !llvm.loop !10
15: ; preds = %9
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
ret i32 %10
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ksign_parse_one_packet(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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"}
| fastsocket_kernel_crypto_signature_extr_ksign-parse.c_ksign_parse_packets |
; ModuleID = 'AnghaBench/linux/scripts/mod/extr_modpost.c_check_modname_len.c'
source_filename = "AnghaBench/linux/scripts/mod/extr_modpost.c_check_modname_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"
@MODULE_NAME_LEN = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [33 x i8] c"module name is too long [%s.ko]\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @check_modname_len], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @check_modname_len(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call ptr @strrchr(ptr noundef %2, i8 noundef signext 47) #3
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load ptr, ptr %0, align 8, !tbaa !5
br label %9
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %3, i64 1
br label %9
9: ; preds = %7, %5
%10 = phi ptr [ %6, %5 ], [ %8, %7 ]
%11 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %10)
%12 = load i64, ptr @MODULE_NAME_LEN, align 8, !tbaa !10
%13 = icmp slt i64 %11, %12
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = load ptr, ptr %0, align 8, !tbaa !5
%16 = tail call i32 @merror(ptr noundef nonnull @.str, ptr noundef %15) #3
br label %17
17: ; preds = %9, %14
%18 = phi i32 [ 1, %14 ], [ 0, %9 ]
ret i32 %18
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2
declare i32 @merror(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"module", !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 = !{!"long", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/scripts/mod/extr_modpost.c_check_modname_len.c'
source_filename = "AnghaBench/linux/scripts/mod/extr_modpost.c_check_modname_len.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MODULE_NAME_LEN = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [33 x i8] c"module name is too long [%s.ko]\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @check_modname_len], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @check_modname_len(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call ptr @strrchr(ptr noundef %2, i8 noundef signext 47) #3
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load ptr, ptr %0, align 8, !tbaa !6
br label %9
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %3, i64 1
br label %9
9: ; preds = %7, %5
%10 = phi ptr [ %6, %5 ], [ %8, %7 ]
%11 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %10)
%12 = load i64, ptr @MODULE_NAME_LEN, align 8, !tbaa !11
%13 = icmp slt i64 %11, %12
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = load ptr, ptr %0, align 8, !tbaa !6
%16 = tail call i32 @merror(ptr noundef nonnull @.str, ptr noundef %15) #3
br label %17
17: ; preds = %9, %14
%18 = phi i32 [ 1, %14 ], [ 0, %9 ]
ret i32 %18
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2
declare i32 @merror(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"module", !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 = !{!"long", !9, i64 0}
| linux_scripts_mod_extr_modpost.c_check_modname_len |
; ModuleID = 'AnghaBench/obs-studio/libobs/extr_obs-hotkey.c_fixup_pair_pointers.c'
source_filename = "AnghaBench/obs-studio/libobs/extr_obs-hotkey.c_fixup_pair_pointers.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@pair_pointer_fixup_func = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @fixup_pair_pointers], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @fixup_pair_pointers() #0 {
%1 = load i32, ptr @pair_pointer_fixup_func, align 4, !tbaa !5
%2 = tail call i32 @enum_hotkey_pairs(i32 noundef %1, ptr noundef null) #2
ret void
}
declare i32 @enum_hotkey_pairs(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/obs-studio/libobs/extr_obs-hotkey.c_fixup_pair_pointers.c'
source_filename = "AnghaBench/obs-studio/libobs/extr_obs-hotkey.c_fixup_pair_pointers.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@pair_pointer_fixup_func = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @fixup_pair_pointers], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @fixup_pair_pointers() #0 {
%1 = load i32, ptr @pair_pointer_fixup_func, align 4, !tbaa !6
%2 = tail call i32 @enum_hotkey_pairs(i32 noundef %1, ptr noundef null) #2
ret void
}
declare i32 @enum_hotkey_pairs(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| obs-studio_libobs_extr_obs-hotkey.c_fixup_pair_pointers |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/core/extr_request_sock.c_reqsk_queue_yank_listen_sk.c'
source_filename = "AnghaBench/fastsocket/kernel/net/core/extr_request_sock.c_reqsk_queue_yank_listen_sk.c"
target datalayout = "e-m:e-p270:32:32-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.request_sock_queue = type { i32, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @reqsk_queue_yank_listen_sk], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal ptr @reqsk_queue_yank_listen_sk(ptr noundef %0) #0 {
%2 = tail call i32 @write_lock_bh(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.request_sock_queue, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
store ptr null, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @write_unlock_bh(ptr noundef %0) #2
ret ptr %4
}
declare i32 @write_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @write_unlock_bh(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"request_sock_queue", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/core/extr_request_sock.c_reqsk_queue_yank_listen_sk.c'
source_filename = "AnghaBench/fastsocket/kernel/net/core/extr_request_sock.c_reqsk_queue_yank_listen_sk.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 @reqsk_queue_yank_listen_sk], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal ptr @reqsk_queue_yank_listen_sk(ptr noundef %0) #0 {
%2 = tail call i32 @write_lock_bh(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
store ptr null, ptr %3, align 8, !tbaa !6
%5 = tail call i32 @write_unlock_bh(ptr noundef %0) #2
ret ptr %4
}
declare i32 @write_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @write_unlock_bh(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"request_sock_queue", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
| fastsocket_kernel_net_core_extr_request_sock.c_reqsk_queue_yank_listen_sk |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/netinet/extr_mptcp_subr.c_mptcp_set_notsent_lowat.c'
source_filename = "AnghaBench/darwin-xnu/bsd/netinet/extr_mptcp_subr.c_mptcp_set_notsent_lowat.c"
target datalayout = "e-m:e-p270:32:32-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.mptses = type { ptr, ptr }
@MPP_ATTACHED = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none) uwtable
define dso_local i32 @mptcp_set_notsent_lowat(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.mptses, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %4, align 4, !tbaa !10
%6 = load i32, ptr @MPP_ATTACHED, align 4, !tbaa !13
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load ptr, ptr %0, align 8, !tbaa !14
%11 = icmp eq ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %9
store i32 %1, ptr %10, align 4, !tbaa !15
br label %15
13: ; preds = %2, %9
%14 = load i32, ptr @EINVAL, align 4, !tbaa !13
br label %15
15: ; preds = %13, %12
%16 = phi i32 [ 0, %12 ], [ %14, %13 ]
ret i32 %16
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn 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, !7, i64 8}
!6 = !{!"mptses", !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, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"mptcb", !12, i64 0}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/netinet/extr_mptcp_subr.c_mptcp_set_notsent_lowat.c'
source_filename = "AnghaBench/darwin-xnu/bsd/netinet/extr_mptcp_subr.c_mptcp_set_notsent_lowat.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MPP_ATTACHED = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, inaccessiblemem: none) uwtable(sync)
define i32 @mptcp_set_notsent_lowat(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = load i32, ptr @MPP_ATTACHED, align 4, !tbaa !14
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load ptr, ptr %0, align 8, !tbaa !15
%11 = icmp eq ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %9
store i32 %1, ptr %10, align 4, !tbaa !16
br label %15
13: ; preds = %2, %9
%14 = load i32, ptr @EINVAL, align 4, !tbaa !14
br label %15
15: ; preds = %13, %12
%16 = phi i32 [ 0, %12 ], [ %14, %13 ]
ret i32 %16
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn 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, !8, i64 8}
!7 = !{!"mptses", !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, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"mptcb", !13, i64 0}
| darwin-xnu_bsd_netinet_extr_mptcp_subr.c_mptcp_set_notsent_lowat |
; ModuleID = 'AnghaBench/tig/src/extr_tree.c_tree_compare_entry.c'
source_filename = "AnghaBench/tig/src/extr_tree.c_tree_compare_entry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@LINE_DIRECTORY = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @tree_compare_entry], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tree_compare_entry(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = load i64, ptr %1, align 8, !tbaa !5
%5 = icmp eq i64 %3, %4
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load i64, ptr @LINE_DIRECTORY, align 8, !tbaa !10
%8 = icmp eq i64 %3, %7
%9 = select i1 %8, i32 -1, i32 1
br label %14
10: ; preds = %2
%11 = tail call i32 @tree_path(ptr noundef nonnull %0) #2
%12 = tail call i32 @tree_path(ptr noundef nonnull %1) #2
%13 = tail call i32 @strcmp(i32 noundef %11, i32 noundef %12) #2
br label %14
14: ; preds = %10, %6
%15 = phi i32 [ %9, %6 ], [ %13, %10 ]
ret i32 %15
}
declare i32 @strcmp(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tree_path(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 = !{!"line", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/tig/src/extr_tree.c_tree_compare_entry.c'
source_filename = "AnghaBench/tig/src/extr_tree.c_tree_compare_entry.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LINE_DIRECTORY = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @tree_compare_entry], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @tree_compare_entry(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = load i64, ptr %1, align 8, !tbaa !6
%5 = icmp eq i64 %3, %4
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load i64, ptr @LINE_DIRECTORY, align 8, !tbaa !11
%8 = icmp eq i64 %3, %7
%9 = select i1 %8, i32 -1, i32 1
br label %14
10: ; preds = %2
%11 = tail call i32 @tree_path(ptr noundef nonnull %0) #2
%12 = tail call i32 @tree_path(ptr noundef nonnull %1) #2
%13 = tail call i32 @strcmp(i32 noundef %11, i32 noundef %12) #2
br label %14
14: ; preds = %10, %6
%15 = phi i32 [ %9, %6 ], [ %13, %10 ]
ret i32 %15
}
declare i32 @strcmp(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @tree_path(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 = !{!"line", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| tig_src_extr_tree.c_tree_compare_entry |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/dvm/extr_sta.c_iwl_update_bcast_station.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/dvm/extr_sta.c_iwl_update_bcast_station.c"
target datalayout = "e-m:e-p270:32:32-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.iwl_priv = type { i32, ptr }
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [54 x i8] c"Unable to initialize rate scaling for bcast station.\0A\00", align 1
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [58 x i8] c"Bcast station rate scaling has not been initialized yet.\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @iwl_update_bcast_station(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %1, align 8, !tbaa !5
%4 = tail call ptr @iwl_sta_alloc_lq(ptr noundef %0, ptr noundef nonnull %1, i64 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = tail call i32 @IWL_ERR(ptr noundef %0, ptr noundef nonnull @.str) #2
%8 = load i32, ptr @ENOMEM, align 4, !tbaa !10
%9 = sub nsw i32 0, %8
br label %25
10: ; preds = %2
%11 = tail call i32 @spin_lock_bh(ptr noundef %0) #2
%12 = getelementptr inbounds %struct.iwl_priv, ptr %0, i64 0, i32 1
%13 = load ptr, ptr %12, align 8, !tbaa !12
%14 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i64 %3
%15 = load ptr, ptr %14, align 8, !tbaa !15
%16 = icmp eq ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %10
%18 = tail call i32 @kfree(ptr noundef nonnull %15) #2
br label %21
19: ; preds = %10
%20 = tail call i32 @IWL_DEBUG_INFO(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #2
br label %21
21: ; preds = %19, %17
%22 = load ptr, ptr %12, align 8, !tbaa !12
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i64 %3
store ptr %4, ptr %23, align 8, !tbaa !15
%24 = tail call i32 @spin_unlock_bh(ptr noundef nonnull %0) #2
br label %25
25: ; preds = %21, %6
%26 = phi i32 [ 0, %21 ], [ %9, %6 ]
ret i32 %26
}
declare ptr @iwl_sta_alloc_lq(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @IWL_ERR(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @IWL_DEBUG_INFO(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_bh(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"iwl_rxon_context", !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, !14, i64 8}
!13 = !{!"iwl_priv", !11, i64 0, !14, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_2__", !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/dvm/extr_sta.c_iwl_update_bcast_station.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/intel/iwlwifi/dvm/extr_sta.c_iwl_update_bcast_station.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [54 x i8] c"Unable to initialize rate scaling for bcast station.\0A\00", align 1
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [58 x i8] c"Bcast station rate scaling has not been initialized yet.\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @iwl_update_bcast_station(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %1, align 8, !tbaa !6
%4 = tail call ptr @iwl_sta_alloc_lq(ptr noundef %0, ptr noundef nonnull %1, i64 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = tail call i32 @IWL_ERR(ptr noundef %0, ptr noundef nonnull @.str) #2
%8 = load i32, ptr @ENOMEM, align 4, !tbaa !11
%9 = sub nsw i32 0, %8
br label %25
10: ; preds = %2
%11 = tail call i32 @spin_lock_bh(ptr noundef %0) #2
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i64 %3
%15 = load ptr, ptr %14, align 8, !tbaa !16
%16 = icmp eq ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %10
%18 = tail call i32 @kfree(ptr noundef nonnull %15) #2
br label %21
19: ; preds = %10
%20 = tail call i32 @IWL_DEBUG_INFO(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #2
br label %21
21: ; preds = %19, %17
%22 = load ptr, ptr %12, align 8, !tbaa !13
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i64 %3
store ptr %4, ptr %23, align 8, !tbaa !16
%24 = tail call i32 @spin_unlock_bh(ptr noundef nonnull %0) #2
br label %25
25: ; preds = %21, %6
%26 = phi i32 [ 0, %21 ], [ %9, %6 ]
ret i32 %26
}
declare ptr @iwl_sta_alloc_lq(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @IWL_ERR(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @IWL_DEBUG_INFO(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_bh(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"iwl_rxon_context", !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}
!13 = !{!14, !15, i64 8}
!14 = !{!"iwl_priv", !12, i64 0, !15, i64 8}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"TYPE_2__", !15, i64 0}
| linux_drivers_net_wireless_intel_iwlwifi_dvm_extr_sta.c_iwl_update_bcast_station |
; ModuleID = 'AnghaBench/linux/kernel/extr_jump_label.c___static_key_slow_dec.c'
source_filename = "AnghaBench/linux/kernel/extr_jump_label.c___static_key_slow_dec.c"
target datalayout = "e-m:e-p270:32:32-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 @__static_key_slow_dec], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @__static_key_slow_dec(ptr noundef %0) #0 {
%2 = tail call i32 (...) @cpus_read_lock() #2
%3 = tail call i32 @__static_key_slow_dec_cpuslocked(ptr noundef %0) #2
%4 = tail call i32 (...) @cpus_read_unlock() #2
ret void
}
declare i32 @cpus_read_lock(...) local_unnamed_addr #1
declare i32 @__static_key_slow_dec_cpuslocked(ptr noundef) local_unnamed_addr #1
declare i32 @cpus_read_unlock(...) 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/kernel/extr_jump_label.c___static_key_slow_dec.c'
source_filename = "AnghaBench/linux/kernel/extr_jump_label.c___static_key_slow_dec.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 @__static_key_slow_dec], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @__static_key_slow_dec(ptr noundef %0) #0 {
%2 = tail call i32 @cpus_read_lock() #2
%3 = tail call i32 @__static_key_slow_dec_cpuslocked(ptr noundef %0) #2
%4 = tail call i32 @cpus_read_unlock() #2
ret void
}
declare i32 @cpus_read_lock(...) local_unnamed_addr #1
declare i32 @__static_key_slow_dec_cpuslocked(ptr noundef) local_unnamed_addr #1
declare i32 @cpus_read_unlock(...) 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_kernel_extr_jump_label.c___static_key_slow_dec |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.