IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/fastsocket/kernel/tools/perf/ui/browsers/extr_....arch..utilsession.h_perf_session__process_machines.c'
source_filename = "AnghaBench/fastsocket/kernel/tools/perf/ui/browsers/extr_....arch..utilsession.h_perf_session__process_machines.c"
target datalayout = "e-m:e-p270:32:32-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_session = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @perf_session__process_machines], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @perf_session__process_machines(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = getelementptr inbounds %struct.perf_session, ptr %0, i64 0, i32 1
%5 = tail call i32 %2(ptr noundef nonnull %4, ptr noundef %1) #2
tail call void @machines__process(ptr noundef %0, ptr noundef %2, ptr noundef %1) #2
ret void
}
declare void @machines__process(ptr noundef, ptr 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)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/tools/perf/ui/browsers/extr_....arch..utilsession.h_perf_session__process_machines.c'
source_filename = "AnghaBench/fastsocket/kernel/tools/perf/ui/browsers/extr_....arch..utilsession.h_perf_session__process_machines.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 @perf_session__process_machines], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @perf_session__process_machines(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 4
%5 = tail call i32 %2(ptr noundef nonnull %4, ptr noundef %1) #2
tail call void @machines__process(ptr noundef %0, ptr noundef %2, ptr noundef %1) #2
ret void
}
declare void @machines__process(ptr noundef, ptr 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)"}
| fastsocket_kernel_tools_perf_ui_browsers_extr_....arch..utilsession.h_perf_session__process_machines |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/omapdrm/dss/extr_hdmi5.c_hdmi_power_on_full.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/omapdrm/dss/extr_hdmi5.c_hdmi_power_on_full.c"
target datalayout = "e-m:e-p270:32:32-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.dss_pll_clock_info = type { ptr, i32, i32 }
%struct.omap_hdmi = type { %struct.TYPE_7__, i32, i32, %struct.TYPE_8__, i32, i32 }
%struct.TYPE_7__ = type { %struct.TYPE_9__ }
%struct.TYPE_9__ = type { i32 }
%struct.TYPE_8__ = type { %struct.videomode }
%struct.videomode = type { i32, i32, i32, i32 }
@.str = private unnamed_addr constant [40 x i8] c"hdmi_power_on hactive= %d vactive = %d\0A\00", align 1
@DISPLAY_FLAGS_DOUBLECLK = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Failed to enable PLL\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Failed to configure PLL\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Failed to start PHY\0A\00", align 1
@HDMI_PHYPWRCMD_LDOON = dso_local local_unnamed_addr global i32 0, align 4
@HDMI_IRQ_LINK_CONNECT = dso_local local_unnamed_addr global i32 0, align 4
@HDMI_IRQ_LINK_DISCONNECT = dso_local local_unnamed_addr global i32 0, align 4
@HDMI_PHYPWRCMD_OFF = dso_local local_unnamed_addr global i32 0, align 4
@EIO = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hdmi_power_on_full], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hdmi_power_on_full(ptr noundef %0) #0 {
%2 = alloca %struct.dss_pll_clock_info, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
%3 = tail call i32 @hdmi_power_on_core(ptr noundef %0) #4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %76
5: ; preds = %1
%6 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 3
%7 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 3, i32 0, i32 3
%8 = load i32, ptr %7, align 4, !tbaa !5
%9 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 3, i32 0, i32 2
%10 = load i32, ptr %9, align 4, !tbaa !10
%11 = tail call i32 (ptr, ...) @DSSDBG(ptr noundef nonnull @.str, i32 noundef %8, i32 noundef %10) #4
%12 = load i32, ptr %6, align 4, !tbaa !11
%13 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 3, i32 0, i32 1
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = load i32, ptr @DISPLAY_FLAGS_DOUBLECLK, align 4, !tbaa !13
%16 = and i32 %15, %14
%17 = icmp ne i32 %16, 0
%18 = zext i1 %17 to i32
%19 = shl i32 %12, %18
%20 = mul i32 %19, 10
%21 = load i32, ptr %0, align 4, !tbaa !14
%22 = tail call i32 @clk_get_rate(i32 noundef %21) #4
%23 = call i32 @dss_pll_calc_b(ptr noundef nonnull %0, i32 noundef %22, i32 noundef %20, ptr noundef nonnull %2) #4
%24 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 1
%25 = call i32 @hdmi_wp_clear_irqenable(ptr noundef nonnull %24, i32 noundef -1) #4
%26 = call i32 @hdmi_wp_get_irqstatus(ptr noundef nonnull %24) #4
%27 = call i32 @hdmi_wp_set_irqstatus(ptr noundef nonnull %24, i32 noundef %26) #4
%28 = call i32 @dss_pll_enable(ptr noundef nonnull %0) #4
%29 = icmp eq i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %5
%31 = call i32 @DSSERR(ptr noundef nonnull @.str.1) #4
br label %72
32: ; preds = %5
%33 = call i32 @dss_pll_set_config(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
%34 = icmp eq i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %32
%36 = call i32 @DSSERR(ptr noundef nonnull @.str.2) #4
br label %70
37: ; preds = %32
%38 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 5
%39 = getelementptr inbounds %struct.dss_pll_clock_info, ptr %2, i64 0, i32 1
%40 = load i32, ptr %39, align 8, !tbaa !19
%41 = load ptr, ptr %2, align 8, !tbaa !22
%42 = load i32, ptr %41, align 4, !tbaa !13
%43 = call i32 @hdmi_phy_configure(ptr noundef nonnull %38, i32 noundef %40, i32 noundef %42) #4
%44 = icmp eq i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %37
%46 = call i32 (ptr, ...) @DSSDBG(ptr noundef nonnull @.str.3) #4
br label %70
47: ; preds = %37
%48 = load i32, ptr @HDMI_PHYPWRCMD_LDOON, align 4, !tbaa !13
%49 = call i32 @hdmi_wp_set_phy_pwr(ptr noundef nonnull %24, i32 noundef %48) #4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %70
51: ; preds = %47
%52 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 4
%53 = call i32 @hdmi5_configure(ptr noundef nonnull %52, ptr noundef nonnull %24, ptr noundef nonnull %6) #4
%54 = getelementptr inbounds %struct.omap_hdmi, ptr %0, i64 0, i32 2
%55 = call i32 @dss_mgr_enable(ptr noundef nonnull %54) #4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %67
57: ; preds = %51
%58 = call i32 @hdmi_wp_video_start(ptr noundef nonnull %24) #4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = load i32, ptr @HDMI_IRQ_LINK_CONNECT, align 4, !tbaa !13
%62 = load i32, ptr @HDMI_IRQ_LINK_DISCONNECT, align 4, !tbaa !13
%63 = or i32 %62, %61
%64 = call i32 @hdmi_wp_set_irqenable(ptr noundef nonnull %24, i32 noundef %63) #4
br label %76
65: ; preds = %57
%66 = call i32 @dss_mgr_disable(ptr noundef nonnull %54) #4
br label %67
67: ; preds = %51, %65
%68 = load i32, ptr @HDMI_PHYPWRCMD_OFF, align 4, !tbaa !13
%69 = call i32 @hdmi_wp_set_phy_pwr(ptr noundef nonnull %24, i32 noundef %68) #4
br label %70
70: ; preds = %45, %47, %67, %35
%71 = call i32 @dss_pll_disable(ptr noundef nonnull %0) #4
br label %72
72: ; preds = %70, %30
%73 = call i32 @hdmi_power_off_core(ptr noundef nonnull %0) #4
%74 = load i32, ptr @EIO, align 4, !tbaa !13
%75 = sub nsw i32 0, %74
br label %76
76: ; preds = %1, %72, %60
%77 = phi i32 [ %75, %72 ], [ 0, %60 ], [ %3, %1 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
ret i32 %77
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @hdmi_power_on_core(ptr noundef) local_unnamed_addr #3
declare i32 @DSSDBG(ptr noundef, ...) local_unnamed_addr #3
declare i32 @dss_pll_calc_b(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3
declare i32 @clk_get_rate(i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_clear_irqenable(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_set_irqstatus(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_get_irqstatus(ptr noundef) local_unnamed_addr #3
declare i32 @dss_pll_enable(ptr noundef) local_unnamed_addr #3
declare i32 @DSSERR(ptr noundef) local_unnamed_addr #3
declare i32 @dss_pll_set_config(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_phy_configure(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_set_phy_pwr(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi5_configure(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @dss_mgr_enable(ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_video_start(ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_set_irqenable(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @dss_mgr_disable(ptr noundef) local_unnamed_addr #3
declare i32 @dss_pll_disable(ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_power_off_core(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 12}
!6 = !{!"videomode", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"omap_hdmi", !16, i64 0, !7, i64 4, !7, i64 8, !18, i64 12, !7, i64 28, !7, i64 32}
!16 = !{!"TYPE_7__", !17, i64 0}
!17 = !{!"TYPE_9__", !7, i64 0}
!18 = !{!"TYPE_8__", !6, i64 0}
!19 = !{!20, !7, i64 8}
!20 = !{!"dss_pll_clock_info", !21, i64 0, !7, i64 8, !7, i64 12}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!20, !21, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/omapdrm/dss/extr_hdmi5.c_hdmi_power_on_full.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/omapdrm/dss/extr_hdmi5.c_hdmi_power_on_full.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.dss_pll_clock_info = type { ptr, i32, i32 }
@.str = private unnamed_addr constant [40 x i8] c"hdmi_power_on hactive= %d vactive = %d\0A\00", align 1
@DISPLAY_FLAGS_DOUBLECLK = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Failed to enable PLL\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Failed to configure PLL\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Failed to start PHY\0A\00", align 1
@HDMI_PHYPWRCMD_LDOON = common local_unnamed_addr global i32 0, align 4
@HDMI_IRQ_LINK_CONNECT = common local_unnamed_addr global i32 0, align 4
@HDMI_IRQ_LINK_DISCONNECT = common local_unnamed_addr global i32 0, align 4
@HDMI_PHYPWRCMD_OFF = common local_unnamed_addr global i32 0, align 4
@EIO = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hdmi_power_on_full], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @hdmi_power_on_full(ptr noundef %0) #0 {
%2 = alloca %struct.dss_pll_clock_info, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
%3 = tail call i32 @hdmi_power_on_core(ptr noundef %0) #4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %76
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 12
%7 = getelementptr inbounds i8, ptr %0, i64 24
%8 = load i32, ptr %7, align 4, !tbaa !6
%9 = getelementptr inbounds i8, ptr %0, i64 20
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = tail call i32 (ptr, ...) @DSSDBG(ptr noundef nonnull @.str, i32 noundef %8, i32 noundef %10) #4
%12 = load i32, ptr %6, align 4, !tbaa !12
%13 = getelementptr inbounds i8, ptr %0, i64 16
%14 = load i32, ptr %13, align 4, !tbaa !13
%15 = load i32, ptr @DISPLAY_FLAGS_DOUBLECLK, align 4, !tbaa !14
%16 = and i32 %15, %14
%17 = icmp ne i32 %16, 0
%18 = zext i1 %17 to i32
%19 = shl i32 %12, %18
%20 = mul i32 %19, 10
%21 = load i32, ptr %0, align 4, !tbaa !15
%22 = tail call i32 @clk_get_rate(i32 noundef %21) #4
%23 = call i32 @dss_pll_calc_b(ptr noundef nonnull %0, i32 noundef %22, i32 noundef %20, ptr noundef nonnull %2) #4
%24 = getelementptr inbounds i8, ptr %0, i64 4
%25 = call i32 @hdmi_wp_clear_irqenable(ptr noundef nonnull %24, i32 noundef -1) #4
%26 = call i32 @hdmi_wp_get_irqstatus(ptr noundef nonnull %24) #4
%27 = call i32 @hdmi_wp_set_irqstatus(ptr noundef nonnull %24, i32 noundef %26) #4
%28 = call i32 @dss_pll_enable(ptr noundef nonnull %0) #4
%29 = icmp eq i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %5
%31 = call i32 @DSSERR(ptr noundef nonnull @.str.1) #4
br label %72
32: ; preds = %5
%33 = call i32 @dss_pll_set_config(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
%34 = icmp eq i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %32
%36 = call i32 @DSSERR(ptr noundef nonnull @.str.2) #4
br label %70
37: ; preds = %32
%38 = getelementptr inbounds i8, ptr %0, i64 32
%39 = getelementptr inbounds i8, ptr %2, i64 8
%40 = load i32, ptr %39, align 8, !tbaa !20
%41 = load ptr, ptr %2, align 8, !tbaa !23
%42 = load i32, ptr %41, align 4, !tbaa !14
%43 = call i32 @hdmi_phy_configure(ptr noundef nonnull %38, i32 noundef %40, i32 noundef %42) #4
%44 = icmp eq i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %37
%46 = call i32 (ptr, ...) @DSSDBG(ptr noundef nonnull @.str.3) #4
br label %70
47: ; preds = %37
%48 = load i32, ptr @HDMI_PHYPWRCMD_LDOON, align 4, !tbaa !14
%49 = call i32 @hdmi_wp_set_phy_pwr(ptr noundef nonnull %24, i32 noundef %48) #4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %70
51: ; preds = %47
%52 = getelementptr inbounds i8, ptr %0, i64 28
%53 = call i32 @hdmi5_configure(ptr noundef nonnull %52, ptr noundef nonnull %24, ptr noundef nonnull %6) #4
%54 = getelementptr inbounds i8, ptr %0, i64 8
%55 = call i32 @dss_mgr_enable(ptr noundef nonnull %54) #4
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %67
57: ; preds = %51
%58 = call i32 @hdmi_wp_video_start(ptr noundef nonnull %24) #4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = load i32, ptr @HDMI_IRQ_LINK_CONNECT, align 4, !tbaa !14
%62 = load i32, ptr @HDMI_IRQ_LINK_DISCONNECT, align 4, !tbaa !14
%63 = or i32 %62, %61
%64 = call i32 @hdmi_wp_set_irqenable(ptr noundef nonnull %24, i32 noundef %63) #4
br label %76
65: ; preds = %57
%66 = call i32 @dss_mgr_disable(ptr noundef nonnull %54) #4
br label %67
67: ; preds = %51, %65
%68 = load i32, ptr @HDMI_PHYPWRCMD_OFF, align 4, !tbaa !14
%69 = call i32 @hdmi_wp_set_phy_pwr(ptr noundef nonnull %24, i32 noundef %68) #4
br label %70
70: ; preds = %45, %47, %67, %35
%71 = call i32 @dss_pll_disable(ptr noundef nonnull %0) #4
br label %72
72: ; preds = %70, %30
%73 = call i32 @hdmi_power_off_core(ptr noundef nonnull %0) #4
%74 = load i32, ptr @EIO, align 4, !tbaa !14
%75 = sub nsw i32 0, %74
br label %76
76: ; preds = %1, %72, %60
%77 = phi i32 [ %75, %72 ], [ 0, %60 ], [ %3, %1 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
ret i32 %77
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @hdmi_power_on_core(ptr noundef) local_unnamed_addr #3
declare i32 @DSSDBG(ptr noundef, ...) local_unnamed_addr #3
declare i32 @dss_pll_calc_b(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3
declare i32 @clk_get_rate(i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_clear_irqenable(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_set_irqstatus(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_get_irqstatus(ptr noundef) local_unnamed_addr #3
declare i32 @dss_pll_enable(ptr noundef) local_unnamed_addr #3
declare i32 @DSSERR(ptr noundef) local_unnamed_addr #3
declare i32 @dss_pll_set_config(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_phy_configure(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_set_phy_pwr(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @hdmi5_configure(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @dss_mgr_enable(ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_video_start(ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_wp_set_irqenable(ptr noundef, i32 noundef) local_unnamed_addr #3
declare i32 @dss_mgr_disable(ptr noundef) local_unnamed_addr #3
declare i32 @dss_pll_disable(ptr noundef) local_unnamed_addr #3
declare i32 @hdmi_power_off_core(ptr noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 12}
!7 = !{!"videomode", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 8}
!12 = !{!7, !8, i64 0}
!13 = !{!7, !8, i64 4}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"omap_hdmi", !17, i64 0, !8, i64 4, !8, i64 8, !19, i64 12, !8, i64 28, !8, i64 32}
!17 = !{!"TYPE_7__", !18, i64 0}
!18 = !{!"TYPE_9__", !8, i64 0}
!19 = !{!"TYPE_8__", !7, i64 0}
!20 = !{!21, !8, i64 8}
!21 = !{!"dss_pll_clock_info", !22, i64 0, !8, i64 8, !8, i64 12}
!22 = !{!"any pointer", !9, i64 0}
!23 = !{!21, !22, i64 0}
| linux_drivers_gpu_drm_omapdrm_dss_extr_hdmi5.c_hdmi_power_on_full |
; ModuleID = 'AnghaBench/mimikatz/modules/extr_sqlite3_omit.c_btreeMoveto.c'
source_filename = "AnghaBench/mimikatz/modules/extr_sqlite3_omit.c_btreeMoveto.c"
target datalayout = "e-m:e-p270:32:32-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, i32 }
@SQLITE_NOMEM_BKPT = dso_local local_unnamed_addr global i32 0, align 4
@SQLITE_CORRUPT_BKPT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @btreeMoveto], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @btreeMoveto(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = icmp eq ptr %1, null
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i32 @sqlite3BtreeMovetoUnpacked(ptr noundef %0, ptr noundef null, i64 noundef %2, i32 noundef %3, ptr noundef %4) #2
br label %37
9: ; preds = %5
%10 = load ptr, ptr %0, align 8, !tbaa !5
%11 = add i64 %2, 2147483648
%12 = icmp ult i64 %11, 4294967296
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 noundef %13) #2
%15 = tail call ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef %10) #2
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %19
17: ; preds = %9
%18 = load i32, ptr @SQLITE_NOMEM_BKPT, align 4, !tbaa !10
br label %37
19: ; preds = %9
%20 = trunc i64 %2 to i32
%21 = tail call i32 @sqlite3VdbeRecordUnpack(ptr noundef %10, i32 noundef %20, ptr noundef nonnull %1, ptr noundef nonnull %15) #2
%22 = load i64, ptr %15, align 8, !tbaa !12
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %19
%25 = load i64, ptr %10, align 8, !tbaa !15
%26 = icmp sgt i64 %22, %25
br i1 %26, label %27, label %29
27: ; preds = %24, %19
%28 = load i32, ptr @SQLITE_CORRUPT_BKPT, align 4, !tbaa !10
br label %31
29: ; preds = %24
%30 = tail call i32 @sqlite3BtreeMovetoUnpacked(ptr noundef nonnull %0, ptr noundef nonnull %15, i64 noundef %2, i32 noundef %3, ptr noundef %4) #2
br label %31
31: ; preds = %29, %27
%32 = phi i32 [ %28, %27 ], [ %30, %29 ]
%33 = load ptr, ptr %0, align 8, !tbaa !5
%34 = getelementptr inbounds %struct.TYPE_13__, ptr %33, i64 0, i32 1
%35 = load i32, ptr %34, align 8, !tbaa !17
%36 = tail call i32 @sqlite3DbFree(i32 noundef %35, ptr noundef nonnull %15) #2
br label %37
37: ; preds = %7, %17, %31
%38 = phi i32 [ %32, %31 ], [ %18, %17 ], [ %8, %7 ]
ret i32 %38
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3VdbeRecordUnpack(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3BtreeMovetoUnpacked(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3DbFree(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 = !{!"TYPE_14__", !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_12__", !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_13__", !14, i64 0, !11, i64 8}
!17 = !{!16, !11, i64 8}
| ; ModuleID = 'AnghaBench/mimikatz/modules/extr_sqlite3_omit.c_btreeMoveto.c'
source_filename = "AnghaBench/mimikatz/modules/extr_sqlite3_omit.c_btreeMoveto.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SQLITE_NOMEM_BKPT = common local_unnamed_addr global i32 0, align 4
@SQLITE_CORRUPT_BKPT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @btreeMoveto], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @btreeMoveto(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = icmp eq ptr %1, null
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i32 @sqlite3BtreeMovetoUnpacked(ptr noundef %0, ptr noundef null, i64 noundef %2, i32 noundef %3, ptr noundef %4) #2
br label %37
9: ; preds = %5
%10 = load ptr, ptr %0, align 8, !tbaa !6
%11 = add i64 %2, 2147483648
%12 = icmp ult i64 %11, 4294967296
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 noundef %13) #2
%15 = tail call ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef %10) #2
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %19
17: ; preds = %9
%18 = load i32, ptr @SQLITE_NOMEM_BKPT, align 4, !tbaa !11
br label %37
19: ; preds = %9
%20 = trunc i64 %2 to i32
%21 = tail call i32 @sqlite3VdbeRecordUnpack(ptr noundef %10, i32 noundef %20, ptr noundef nonnull %1, ptr noundef nonnull %15) #2
%22 = load i64, ptr %15, align 8, !tbaa !13
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %19
%25 = load i64, ptr %10, align 8, !tbaa !16
%26 = icmp sgt i64 %22, %25
br i1 %26, label %27, label %29
27: ; preds = %24, %19
%28 = load i32, ptr @SQLITE_CORRUPT_BKPT, align 4, !tbaa !11
br label %31
29: ; preds = %24
%30 = tail call i32 @sqlite3BtreeMovetoUnpacked(ptr noundef nonnull %0, ptr noundef nonnull %15, i64 noundef %2, i32 noundef %3, ptr noundef %4) #2
br label %31
31: ; preds = %29, %27
%32 = phi i32 [ %28, %27 ], [ %30, %29 ]
%33 = load ptr, ptr %0, align 8, !tbaa !6
%34 = getelementptr inbounds i8, ptr %33, i64 8
%35 = load i32, ptr %34, align 8, !tbaa !18
%36 = tail call i32 @sqlite3DbFree(i32 noundef %35, ptr noundef nonnull %15) #2
br label %37
37: ; preds = %7, %17, %31
%38 = phi i32 [ %32, %31 ], [ %18, %17 ], [ %8, %7 ]
ret i32 %38
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare ptr @sqlite3VdbeAllocUnpackedRecord(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3VdbeRecordUnpack(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3BtreeMovetoUnpacked(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3DbFree(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 = !{!"TYPE_14__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_12__", !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"TYPE_13__", !15, i64 0, !12, i64 8}
!18 = !{!17, !12, i64 8}
| mimikatz_modules_extr_sqlite3_omit.c_btreeMoveto |
; ModuleID = 'AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zio_inject.c_zio_inject_fini.c'
source_filename = "AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zio_inject.c_zio_inject_fini.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@inject_handlers = dso_local global i32 0, align 4
@inject_delay_mtx = dso_local global i32 0, align 4
@inject_lock = dso_local global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @zio_inject_fini() local_unnamed_addr #0 {
%1 = tail call i32 @list_destroy(ptr noundef nonnull @inject_handlers) #2
%2 = tail call i32 @mutex_destroy(ptr noundef nonnull @inject_delay_mtx) #2
%3 = tail call i32 @rw_destroy(ptr noundef nonnull @inject_lock) #2
ret void
}
declare i32 @list_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @rw_destroy(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zio_inject.c_zio_inject_fini.c'
source_filename = "AnghaBench/freebsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/extr_zio_inject.c_zio_inject_fini.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@inject_handlers = common global i32 0, align 4
@inject_delay_mtx = common global i32 0, align 4
@inject_lock = common global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @zio_inject_fini() local_unnamed_addr #0 {
%1 = tail call i32 @list_destroy(ptr noundef nonnull @inject_handlers) #2
%2 = tail call i32 @mutex_destroy(ptr noundef nonnull @inject_delay_mtx) #2
%3 = tail call i32 @rw_destroy(ptr noundef nonnull @inject_lock) #2
ret void
}
declare i32 @list_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @rw_destroy(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_sys_cddl_contrib_opensolaris_uts_common_fs_zfs_extr_zio_inject.c_zio_inject_fini |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/extr_drm_syncobj.c_drm_syncobj_fd_to_handle_ioctl.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/extr_drm_syncobj.c_drm_syncobj_fd_to_handle_ioctl.c"
target datalayout = "e-m:e-p270:32:32-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.drm_syncobj_handle = type { i32, i32, i32, i64 }
@DRIVER_SYNCOBJ = dso_local local_unnamed_addr global i32 0, align 4
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @drm_syncobj_fd_to_handle_ioctl(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @DRIVER_SYNCOBJ, align 4, !tbaa !5
%5 = tail call i32 @drm_core_check_feature(ptr noundef %0, i32 noundef %4) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %37
10: ; preds = %3
%11 = getelementptr inbounds %struct.drm_syncobj_handle, ptr %1, i64 0, i32 3
%12 = load i64, ptr %11, align 8, !tbaa !9
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = load i32, ptr @EINVAL, align 4, !tbaa !5
%16 = sub nsw i32 0, %15
br label %37
17: ; preds = %10
%18 = load i32, ptr %1, align 8, !tbaa !12
%19 = icmp eq i32 %18, 0
%20 = load i32, ptr @DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE, align 4
%21 = icmp eq i32 %18, %20
%22 = select i1 %19, i1 true, i1 %21
br i1 %22, label %26, label %23
23: ; preds = %17
%24 = load i32, ptr @EINVAL, align 4, !tbaa !5
%25 = sub nsw i32 0, %24
br label %37
26: ; preds = %17
%27 = and i32 %20, %18
%28 = icmp eq i32 %27, 0
%29 = getelementptr inbounds %struct.drm_syncobj_handle, ptr %1, i64 0, i32 2
%30 = load i32, ptr %29, align 8, !tbaa !13
%31 = getelementptr inbounds %struct.drm_syncobj_handle, ptr %1, i64 0, i32 1
br i1 %28, label %35, label %32
32: ; preds = %26
%33 = load i32, ptr %31, align 4, !tbaa !14
%34 = tail call i32 @drm_syncobj_import_sync_file_fence(ptr noundef %2, i32 noundef %30, i32 noundef %33) #2
br label %37
35: ; preds = %26
%36 = tail call i32 @drm_syncobj_fd_to_handle(ptr noundef %2, i32 noundef %30, ptr noundef nonnull %31) #2
br label %37
37: ; preds = %35, %32, %23, %14, %7
%38 = phi i32 [ %16, %14 ], [ %25, %23 ], [ %34, %32 ], [ %36, %35 ], [ %9, %7 ]
ret i32 %38
}
declare i32 @drm_core_check_feature(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @drm_syncobj_import_sync_file_fence(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @drm_syncobj_fd_to_handle(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"drm_syncobj_handle", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !6, i64 8}
!14 = !{!10, !6, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/extr_drm_syncobj.c_drm_syncobj_fd_to_handle_ioctl.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/extr_drm_syncobj.c_drm_syncobj_fd_to_handle_ioctl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DRIVER_SYNCOBJ = common local_unnamed_addr global i32 0, align 4
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @drm_syncobj_fd_to_handle_ioctl(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load i32, ptr @DRIVER_SYNCOBJ, align 4, !tbaa !6
%5 = tail call i32 @drm_core_check_feature(ptr noundef %0, i32 noundef %4) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %37
10: ; preds = %3
%11 = getelementptr inbounds i8, ptr %1, i64 16
%12 = load i64, ptr %11, align 8, !tbaa !10
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = load i32, ptr @EINVAL, align 4, !tbaa !6
%16 = sub nsw i32 0, %15
br label %37
17: ; preds = %10
%18 = load i32, ptr %1, align 8, !tbaa !13
%19 = icmp eq i32 %18, 0
%20 = load i32, ptr @DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE, align 4
%21 = icmp eq i32 %18, %20
%22 = select i1 %19, i1 true, i1 %21
br i1 %22, label %26, label %23
23: ; preds = %17
%24 = load i32, ptr @EINVAL, align 4, !tbaa !6
%25 = sub nsw i32 0, %24
br label %37
26: ; preds = %17
%27 = and i32 %20, %18
%28 = icmp eq i32 %27, 0
%29 = getelementptr inbounds i8, ptr %1, i64 8
%30 = load i32, ptr %29, align 8, !tbaa !14
%31 = getelementptr inbounds i8, ptr %1, i64 4
br i1 %28, label %35, label %32
32: ; preds = %26
%33 = load i32, ptr %31, align 4, !tbaa !15
%34 = tail call i32 @drm_syncobj_import_sync_file_fence(ptr noundef %2, i32 noundef %30, i32 noundef %33) #2
br label %37
35: ; preds = %26
%36 = tail call i32 @drm_syncobj_fd_to_handle(ptr noundef %2, i32 noundef %30, ptr noundef nonnull %31) #2
br label %37
37: ; preds = %35, %32, %23, %14, %7
%38 = phi i32 [ %16, %14 ], [ %25, %23 ], [ %34, %32 ], [ %36, %35 ], [ %9, %7 ]
ret i32 %38
}
declare i32 @drm_core_check_feature(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @drm_syncobj_import_sync_file_fence(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @drm_syncobj_fd_to_handle(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"drm_syncobj_handle", !7, i64 0, !7, i64 4, !7, i64 8, !12, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !7, i64 0}
!14 = !{!11, !7, i64 8}
!15 = !{!11, !7, i64 4}
| linux_drivers_gpu_drm_extr_drm_syncobj.c_drm_syncobj_fd_to_handle_ioctl |
; ModuleID = 'AnghaBench/freebsd/contrib/ofed/libcxgb4/extr_t4.h_t4_sq_consume.c'
source_filename = "AnghaBench/freebsd/contrib/ofed/libcxgb4/extr_t4.h_t4_sq_consume.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { i32, i64, i64, i64, i64, ptr }
%struct.t4_wq = type { %struct.TYPE_6__, i32 }
%struct.TYPE_5__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @t4_sq_consume], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @t4_sq_consume(ptr nocapture noundef %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = icmp sgt i32 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 noundef %4) #2
%6 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
%9 = load i64, ptr %8, align 8, !tbaa !14
%10 = icmp eq i64 %7, %9
br i1 %10, label %11, label %12
11: ; preds = %1
store i64 -1, ptr %8, align 8, !tbaa !14
br label %12
12: ; preds = %11, %1
%13 = load i32, ptr %0, align 8, !tbaa !5
%14 = add nsw i32 %13, -1
store i32 %14, ptr %0, align 8, !tbaa !5
%15 = add nsw i64 %7, 1
%16 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 3
%17 = load i64, ptr %16, align 8, !tbaa !15
%18 = icmp eq i64 %15, %17
%19 = select i1 %18, i64 0, i64 %15
store i64 %19, ptr %6, align 8
%20 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 4
%21 = load i64, ptr %20, align 8, !tbaa !16
%22 = icmp ne i64 %19, %21
%23 = icmp eq i32 %14, 0
%24 = select i1 %22, i1 true, i1 %23
%25 = zext i1 %24 to i32
%26 = tail call i32 @assert(i32 noundef %25) #2
%27 = getelementptr inbounds %struct.t4_wq, ptr %0, i64 0, i32 1
%28 = load i32, ptr %27, align 8, !tbaa !17
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %12
%31 = load i64, ptr %6, align 8, !tbaa !13
%32 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 5
%33 = load ptr, ptr %32, align 8, !tbaa !18
%34 = load i64, ptr %16, align 8, !tbaa !15
%35 = getelementptr inbounds %struct.TYPE_5__, ptr %33, i64 %34
store i64 %31, ptr %35, align 8, !tbaa !19
br label %36
36: ; preds = %30, %12
ret void
}
declare i32 @assert(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, !8, i64 0}
!6 = !{!"t4_wq", !7, i64 0, !8, i64 48}
!7 = !{!"TYPE_6__", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !12, i64 40}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!6, !11, i64 8}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !11, i64 24}
!16 = !{!6, !11, i64 32}
!17 = !{!6, !8, i64 48}
!18 = !{!6, !12, i64 40}
!19 = !{!20, !11, i64 0}
!20 = !{!"TYPE_5__", !21, i64 0}
!21 = !{!"TYPE_4__", !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/ofed/libcxgb4/extr_t4.h_t4_sq_consume.c'
source_filename = "AnghaBench/freebsd/contrib/ofed/libcxgb4/extr_t4.h_t4_sq_consume.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
@llvm.used = appending global [1 x ptr] [ptr @t4_sq_consume], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @t4_sq_consume(ptr nocapture noundef %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = icmp sgt i32 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = getelementptr inbounds i8, ptr %0, i64 16
%9 = load i64, ptr %8, align 8, !tbaa !15
%10 = icmp eq i64 %7, %9
br i1 %10, label %11, label %12
11: ; preds = %1
store i64 -1, ptr %8, align 8, !tbaa !15
br label %12
12: ; preds = %11, %1
%13 = load i32, ptr %0, align 8, !tbaa !6
%14 = add nsw i32 %13, -1
store i32 %14, ptr %0, align 8, !tbaa !6
%15 = add nsw i64 %7, 1
%16 = getelementptr inbounds i8, ptr %0, i64 24
%17 = load i64, ptr %16, align 8, !tbaa !16
%18 = icmp eq i64 %15, %17
%19 = select i1 %18, i64 0, i64 %15
store i64 %19, ptr %6, align 8
%20 = getelementptr inbounds i8, ptr %0, i64 32
%21 = load i64, ptr %20, align 8, !tbaa !17
%22 = icmp ne i64 %19, %21
%23 = icmp eq i32 %14, 0
%24 = select i1 %22, i1 true, i1 %23
%25 = zext i1 %24 to i32
%26 = tail call i32 @assert(i32 noundef %25) #2
%27 = getelementptr inbounds i8, ptr %0, i64 48
%28 = load i32, ptr %27, align 8, !tbaa !18
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %12
%31 = load i64, ptr %6, align 8, !tbaa !14
%32 = getelementptr inbounds i8, ptr %0, i64 40
%33 = load ptr, ptr %32, align 8, !tbaa !19
%34 = load i64, ptr %16, align 8, !tbaa !16
%35 = getelementptr inbounds %struct.TYPE_5__, ptr %33, i64 %34
store i64 %31, ptr %35, align 8, !tbaa !20
br label %36
36: ; preds = %30, %12
ret void
}
declare i32 @assert(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, !9, i64 0}
!7 = !{!"t4_wq", !8, i64 0, !9, i64 48}
!8 = !{!"TYPE_6__", !9, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !13, i64 40}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!7, !12, i64 8}
!15 = !{!7, !12, i64 16}
!16 = !{!7, !12, i64 24}
!17 = !{!7, !12, i64 32}
!18 = !{!7, !9, i64 48}
!19 = !{!7, !13, i64 40}
!20 = !{!21, !12, i64 0}
!21 = !{!"TYPE_5__", !22, i64 0}
!22 = !{!"TYPE_4__", !12, i64 0}
| freebsd_contrib_ofed_libcxgb4_extr_t4.h_t4_sq_consume |
; ModuleID = 'AnghaBench/postgres/src/backend/executor/extr_execMain.c_EvalPlanQualFetchRowMark.c'
source_filename = "AnghaBench/postgres/src/backend/executor/extr_execMain.c_EvalPlanQualFetchRowMark.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_16__ = type { ptr, i32, ptr }
%struct.TYPE_15__ = type { i32, i32, i32, ptr }
%struct.TYPE_14__ = type { i64, i64, i64, i64, ptr }
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"EvalPlanQual doesn't support locking rowmarks\00", align 1
@ROW_MARK_REFERENCE = dso_local local_unnamed_addr global i64 0, align 8
@RELKIND_FOREIGN_TABLE = dso_local local_unnamed_addr global i64 0, align 8
@ERRCODE_FEATURE_NOT_SUPPORTED = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [39 x i8] c"cannot lock rows in foreign table \22%s\22\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"failed to fetch tuple for EvalPlanQual recheck\00", align 1
@SnapshotAny = dso_local local_unnamed_addr global i32 0, align 4
@ROW_MARK_COPY = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @EvalPlanQualFetchRowMark(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 2
%7 = load ptr, ptr %6, align 8, !tbaa !5
%8 = sext i32 %1 to i64
%9 = getelementptr ptr, ptr %7, i64 %8
%10 = getelementptr ptr, ptr %9, i64 -1
%11 = load ptr, ptr %10, align 8, !tbaa !11
%12 = getelementptr inbounds %struct.TYPE_15__, ptr %11, i64 0, i32 3
%13 = load ptr, ptr %12, align 8, !tbaa !12
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%14 = icmp ne ptr %11, null
%15 = zext i1 %14 to i32
%16 = tail call i32 @Assert(i32 noundef %15) #3
%17 = load ptr, ptr %0, align 8, !tbaa !14
%18 = icmp ne ptr %17, null
%19 = zext i1 %18 to i32
%20 = tail call i32 @Assert(i32 noundef %19) #3
%21 = load i64, ptr %13, align 8, !tbaa !15
%22 = tail call i64 @RowMarkRequiresRowShareLock(i64 noundef %21) #3
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %3
%25 = load i32, ptr @ERROR, align 4, !tbaa !18
%26 = tail call i32 @elog(i32 noundef %25, ptr noundef nonnull @.str) #3
br label %27
27: ; preds = %24, %3
%28 = getelementptr inbounds %struct.TYPE_14__, ptr %13, i64 0, i32 1
%29 = load i64, ptr %28, align 8, !tbaa !19
%30 = getelementptr inbounds %struct.TYPE_14__, ptr %13, i64 0, i32 2
%31 = load i64, ptr %30, align 8, !tbaa !20
%32 = icmp eq i64 %29, %31
br i1 %32, label %48, label %33
33: ; preds = %27
%34 = load ptr, ptr %0, align 8, !tbaa !14
%35 = getelementptr inbounds %struct.TYPE_15__, ptr %11, i64 0, i32 2
%36 = load i32, ptr %35, align 8, !tbaa !21
%37 = call i32 @ExecGetJunkAttribute(ptr noundef %34, i32 noundef %36, ptr noundef nonnull %4) #3
%38 = load i32, ptr %4, align 4, !tbaa !18
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %115
40: ; preds = %33
%41 = call i64 @DatumGetObjectId(i32 noundef %37) #3
%42 = getelementptr inbounds %struct.TYPE_14__, ptr %13, i64 0, i32 3
%43 = load i64, ptr %42, align 8, !tbaa !22
%44 = call i32 @OidIsValid(i64 noundef %43) #3
%45 = call i32 @Assert(i32 noundef %44) #3
%46 = load i64, ptr %42, align 8, !tbaa !22
%47 = icmp eq i64 %41, %46
br i1 %47, label %48, label %115
48: ; preds = %40, %27
%49 = load i64, ptr %13, align 8, !tbaa !15
%50 = load i64, ptr @ROW_MARK_REFERENCE, align 8, !tbaa !23
%51 = icmp eq i64 %49, %50
br i1 %51, label %52, label %103
52: ; preds = %48
%53 = getelementptr inbounds %struct.TYPE_14__, ptr %13, i64 0, i32 4
%54 = load ptr, ptr %53, align 8, !tbaa !24
%55 = icmp ne ptr %54, null
%56 = zext i1 %55 to i32
%57 = call i32 @Assert(i32 noundef %56) #3
%58 = load ptr, ptr %0, align 8, !tbaa !14
%59 = getelementptr inbounds %struct.TYPE_15__, ptr %11, i64 0, i32 1
%60 = load i32, ptr %59, align 4, !tbaa !25
%61 = call i32 @ExecGetJunkAttribute(ptr noundef %58, i32 noundef %60, ptr noundef nonnull %4) #3
%62 = load i32, ptr %4, align 4, !tbaa !18
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %115
64: ; preds = %52
%65 = load ptr, ptr %53, align 8, !tbaa !24
%66 = load ptr, ptr %65, align 8, !tbaa !26
%67 = load i64, ptr %66, align 8, !tbaa !28
%68 = load i64, ptr @RELKIND_FOREIGN_TABLE, align 8, !tbaa !23
%69 = icmp eq i64 %67, %68
br i1 %69, label %70, label %94
70: ; preds = %64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
store i32 0, ptr %5, align 4, !tbaa !18
%71 = call ptr @GetFdwRoutineForRelation(ptr noundef nonnull %65, i32 noundef 0) #3
%72 = load ptr, ptr %71, align 8, !tbaa !30
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %83
74: ; preds = %70
%75 = load i32, ptr @ERROR, align 4, !tbaa !18
%76 = load i32, ptr @ERRCODE_FEATURE_NOT_SUPPORTED, align 4, !tbaa !18
%77 = call i32 @errcode(i32 noundef %76) #3
%78 = load ptr, ptr %53, align 8, !tbaa !24
%79 = call i32 @RelationGetRelationName(ptr noundef %78) #3
%80 = call i32 @errmsg(ptr noundef nonnull @.str.1, i32 noundef %79) #3
%81 = call i32 @ereport(i32 noundef %75, i32 noundef %80) #3
%82 = load ptr, ptr %71, align 8, !tbaa !30
br label %83
83: ; preds = %74, %70
%84 = phi ptr [ %82, %74 ], [ %72, %70 ]
%85 = getelementptr inbounds %struct.TYPE_16__, ptr %0, i64 0, i32 1
%86 = load i32, ptr %85, align 8, !tbaa !32
%87 = call i32 %84(i32 noundef %86, ptr noundef nonnull %13, i32 noundef %61, ptr noundef %2, ptr noundef nonnull %5) #3
%88 = call i64 @TupIsNull(ptr noundef %2) #3
%89 = icmp eq i64 %88, 0
br i1 %89, label %93, label %90
90: ; preds = %83
%91 = load i32, ptr @ERROR, align 4, !tbaa !18
%92 = call i32 @elog(i32 noundef %91, ptr noundef nonnull @.str.2) #3
br label %93
93: ; preds = %90, %83
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
br label %115
94: ; preds = %64
%95 = call i64 @DatumGetPointer(i32 noundef %61) #3
%96 = trunc i64 %95 to i32
%97 = load i32, ptr @SnapshotAny, align 4, !tbaa !18
%98 = call i32 @table_tuple_fetch_row_version(ptr noundef nonnull %65, i32 noundef %96, i32 noundef %97, ptr noundef %2) #3
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %115
100: ; preds = %94
%101 = load i32, ptr @ERROR, align 4, !tbaa !18
%102 = call i32 @elog(i32 noundef %101, ptr noundef nonnull @.str.2) #3
br label %115
103: ; preds = %48
%104 = load i64, ptr @ROW_MARK_COPY, align 8, !tbaa !23
%105 = icmp eq i64 %49, %104
%106 = zext i1 %105 to i32
%107 = call i32 @Assert(i32 noundef %106) #3
%108 = load ptr, ptr %0, align 8, !tbaa !14
%109 = load i32, ptr %11, align 8, !tbaa !33
%110 = call i32 @ExecGetJunkAttribute(ptr noundef %108, i32 noundef %109, ptr noundef nonnull %4) #3
%111 = load i32, ptr %4, align 4, !tbaa !18
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %103
%114 = call i32 @ExecStoreHeapTupleDatum(i32 noundef %110, ptr noundef %2) #3
br label %115
115: ; preds = %33, %103, %94, %100, %52, %40, %113, %93
%116 = phi i32 [ 1, %93 ], [ 1, %113 ], [ 0, %40 ], [ 0, %52 ], [ 1, %100 ], [ 1, %94 ], [ 0, %103 ], [ 0, %33 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %116
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @Assert(i32 noundef) local_unnamed_addr #2
declare i64 @RowMarkRequiresRowShareLock(i64 noundef) local_unnamed_addr #2
declare i32 @elog(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ExecGetJunkAttribute(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @DatumGetObjectId(i32 noundef) local_unnamed_addr #2
declare i32 @OidIsValid(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
declare ptr @GetFdwRoutineForRelation(ptr noundef, i32 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, i32 noundef) local_unnamed_addr #2
declare i32 @RelationGetRelationName(ptr noundef) local_unnamed_addr #2
declare i64 @TupIsNull(ptr noundef) local_unnamed_addr #2
declare i32 @table_tuple_fetch_row_version(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @DatumGetPointer(i32 noundef) local_unnamed_addr #2
declare i32 @ExecStoreHeapTupleDatum(i32 noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"TYPE_16__", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 16}
!13 = !{!"TYPE_15__", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"TYPE_14__", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !7, i64 32}
!17 = !{!"long", !8, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{!16, !17, i64 8}
!20 = !{!16, !17, i64 16}
!21 = !{!13, !10, i64 8}
!22 = !{!16, !17, i64 24}
!23 = !{!17, !17, i64 0}
!24 = !{!16, !7, i64 32}
!25 = !{!13, !10, i64 4}
!26 = !{!27, !7, i64 0}
!27 = !{!"TYPE_17__", !7, i64 0}
!28 = !{!29, !17, i64 0}
!29 = !{!"TYPE_12__", !17, i64 0}
!30 = !{!31, !7, i64 0}
!31 = !{!"TYPE_13__", !7, i64 0}
!32 = !{!6, !10, i64 8}
!33 = !{!13, !10, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/executor/extr_execMain.c_EvalPlanQualFetchRowMark.c'
source_filename = "AnghaBench/postgres/src/backend/executor/extr_execMain.c_EvalPlanQualFetchRowMark.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ERROR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [46 x i8] c"EvalPlanQual doesn't support locking rowmarks\00", align 1
@ROW_MARK_REFERENCE = common local_unnamed_addr global i64 0, align 8
@RELKIND_FOREIGN_TABLE = common local_unnamed_addr global i64 0, align 8
@ERRCODE_FEATURE_NOT_SUPPORTED = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [39 x i8] c"cannot lock rows in foreign table \22%s\22\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"failed to fetch tuple for EvalPlanQual recheck\00", align 1
@SnapshotAny = common local_unnamed_addr global i32 0, align 4
@ROW_MARK_COPY = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @EvalPlanQualFetchRowMark(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = load ptr, ptr %6, align 8, !tbaa !6
%8 = sext i32 %1 to i64
%9 = getelementptr ptr, ptr %7, i64 %8
%10 = getelementptr i8, ptr %9, i64 -8
%11 = load ptr, ptr %10, align 8, !tbaa !12
%12 = getelementptr inbounds i8, ptr %11, i64 16
%13 = load ptr, ptr %12, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%14 = icmp ne ptr %11, null
%15 = zext i1 %14 to i32
%16 = tail call i32 @Assert(i32 noundef %15) #3
%17 = load ptr, ptr %0, align 8, !tbaa !15
%18 = icmp ne ptr %17, null
%19 = zext i1 %18 to i32
%20 = tail call i32 @Assert(i32 noundef %19) #3
%21 = load i64, ptr %13, align 8, !tbaa !16
%22 = tail call i64 @RowMarkRequiresRowShareLock(i64 noundef %21) #3
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %3
%25 = load i32, ptr @ERROR, align 4, !tbaa !19
%26 = tail call i32 @elog(i32 noundef %25, ptr noundef nonnull @.str) #3
br label %27
27: ; preds = %24, %3
%28 = getelementptr inbounds i8, ptr %13, i64 8
%29 = load i64, ptr %28, align 8, !tbaa !20
%30 = getelementptr inbounds i8, ptr %13, i64 16
%31 = load i64, ptr %30, align 8, !tbaa !21
%32 = icmp eq i64 %29, %31
br i1 %32, label %48, label %33
33: ; preds = %27
%34 = load ptr, ptr %0, align 8, !tbaa !15
%35 = getelementptr inbounds i8, ptr %11, i64 8
%36 = load i32, ptr %35, align 8, !tbaa !22
%37 = call i32 @ExecGetJunkAttribute(ptr noundef %34, i32 noundef %36, ptr noundef nonnull %4) #3
%38 = load i32, ptr %4, align 4, !tbaa !19
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %115
40: ; preds = %33
%41 = call i64 @DatumGetObjectId(i32 noundef %37) #3
%42 = getelementptr inbounds i8, ptr %13, i64 24
%43 = load i64, ptr %42, align 8, !tbaa !23
%44 = call i32 @OidIsValid(i64 noundef %43) #3
%45 = call i32 @Assert(i32 noundef %44) #3
%46 = load i64, ptr %42, align 8, !tbaa !23
%47 = icmp eq i64 %41, %46
br i1 %47, label %48, label %115
48: ; preds = %40, %27
%49 = load i64, ptr %13, align 8, !tbaa !16
%50 = load i64, ptr @ROW_MARK_REFERENCE, align 8, !tbaa !24
%51 = icmp eq i64 %49, %50
br i1 %51, label %52, label %103
52: ; preds = %48
%53 = getelementptr inbounds i8, ptr %13, i64 32
%54 = load ptr, ptr %53, align 8, !tbaa !25
%55 = icmp ne ptr %54, null
%56 = zext i1 %55 to i32
%57 = call i32 @Assert(i32 noundef %56) #3
%58 = load ptr, ptr %0, align 8, !tbaa !15
%59 = getelementptr inbounds i8, ptr %11, i64 4
%60 = load i32, ptr %59, align 4, !tbaa !26
%61 = call i32 @ExecGetJunkAttribute(ptr noundef %58, i32 noundef %60, ptr noundef nonnull %4) #3
%62 = load i32, ptr %4, align 4, !tbaa !19
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %115
64: ; preds = %52
%65 = load ptr, ptr %53, align 8, !tbaa !25
%66 = load ptr, ptr %65, align 8, !tbaa !27
%67 = load i64, ptr %66, align 8, !tbaa !29
%68 = load i64, ptr @RELKIND_FOREIGN_TABLE, align 8, !tbaa !24
%69 = icmp eq i64 %67, %68
br i1 %69, label %70, label %94
70: ; preds = %64
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
store i32 0, ptr %5, align 4, !tbaa !19
%71 = call ptr @GetFdwRoutineForRelation(ptr noundef nonnull %65, i32 noundef 0) #3
%72 = load ptr, ptr %71, align 8, !tbaa !31
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %83
74: ; preds = %70
%75 = load i32, ptr @ERROR, align 4, !tbaa !19
%76 = load i32, ptr @ERRCODE_FEATURE_NOT_SUPPORTED, align 4, !tbaa !19
%77 = call i32 @errcode(i32 noundef %76) #3
%78 = load ptr, ptr %53, align 8, !tbaa !25
%79 = call i32 @RelationGetRelationName(ptr noundef %78) #3
%80 = call i32 @errmsg(ptr noundef nonnull @.str.1, i32 noundef %79) #3
%81 = call i32 @ereport(i32 noundef %75, i32 noundef %80) #3
%82 = load ptr, ptr %71, align 8, !tbaa !31
br label %83
83: ; preds = %74, %70
%84 = phi ptr [ %82, %74 ], [ %72, %70 ]
%85 = getelementptr inbounds i8, ptr %0, i64 8
%86 = load i32, ptr %85, align 8, !tbaa !33
%87 = call i32 %84(i32 noundef %86, ptr noundef nonnull %13, i32 noundef %61, ptr noundef %2, ptr noundef nonnull %5) #3
%88 = call i64 @TupIsNull(ptr noundef %2) #3
%89 = icmp eq i64 %88, 0
br i1 %89, label %93, label %90
90: ; preds = %83
%91 = load i32, ptr @ERROR, align 4, !tbaa !19
%92 = call i32 @elog(i32 noundef %91, ptr noundef nonnull @.str.2) #3
br label %93
93: ; preds = %90, %83
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
br label %115
94: ; preds = %64
%95 = call i64 @DatumGetPointer(i32 noundef %61) #3
%96 = trunc i64 %95 to i32
%97 = load i32, ptr @SnapshotAny, align 4, !tbaa !19
%98 = call i32 @table_tuple_fetch_row_version(ptr noundef nonnull %65, i32 noundef %96, i32 noundef %97, ptr noundef %2) #3
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %115
100: ; preds = %94
%101 = load i32, ptr @ERROR, align 4, !tbaa !19
%102 = call i32 @elog(i32 noundef %101, ptr noundef nonnull @.str.2) #3
br label %115
103: ; preds = %48
%104 = load i64, ptr @ROW_MARK_COPY, align 8, !tbaa !24
%105 = icmp eq i64 %49, %104
%106 = zext i1 %105 to i32
%107 = call i32 @Assert(i32 noundef %106) #3
%108 = load ptr, ptr %0, align 8, !tbaa !15
%109 = load i32, ptr %11, align 8, !tbaa !34
%110 = call i32 @ExecGetJunkAttribute(ptr noundef %108, i32 noundef %109, ptr noundef nonnull %4) #3
%111 = load i32, ptr %4, align 4, !tbaa !19
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %115
113: ; preds = %103
%114 = call i32 @ExecStoreHeapTupleDatum(i32 noundef %110, ptr noundef %2) #3
br label %115
115: ; preds = %33, %103, %94, %100, %52, %40, %113, %93
%116 = phi i32 [ 1, %93 ], [ 1, %113 ], [ 0, %40 ], [ 0, %52 ], [ 1, %100 ], [ 1, %94 ], [ 0, %103 ], [ 0, %33 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %116
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @Assert(i32 noundef) local_unnamed_addr #2
declare i64 @RowMarkRequiresRowShareLock(i64 noundef) local_unnamed_addr #2
declare i32 @elog(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ExecGetJunkAttribute(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @DatumGetObjectId(i32 noundef) local_unnamed_addr #2
declare i32 @OidIsValid(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
declare ptr @GetFdwRoutineForRelation(ptr noundef, i32 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, i32 noundef) local_unnamed_addr #2
declare i32 @RelationGetRelationName(ptr noundef) local_unnamed_addr #2
declare i64 @TupIsNull(ptr noundef) local_unnamed_addr #2
declare i32 @table_tuple_fetch_row_version(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @DatumGetPointer(i32 noundef) local_unnamed_addr #2
declare i32 @ExecStoreHeapTupleDatum(i32 noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 16}
!7 = !{!"TYPE_16__", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !8, i64 16}
!14 = !{!"TYPE_15__", !11, i64 0, !11, i64 4, !11, i64 8, !8, i64 16}
!15 = !{!7, !8, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"TYPE_14__", !18, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !8, i64 32}
!18 = !{!"long", !9, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!17, !18, i64 8}
!21 = !{!17, !18, i64 16}
!22 = !{!14, !11, i64 8}
!23 = !{!17, !18, i64 24}
!24 = !{!18, !18, i64 0}
!25 = !{!17, !8, i64 32}
!26 = !{!14, !11, i64 4}
!27 = !{!28, !8, i64 0}
!28 = !{!"TYPE_17__", !8, i64 0}
!29 = !{!30, !18, i64 0}
!30 = !{!"TYPE_12__", !18, i64 0}
!31 = !{!32, !8, i64 0}
!32 = !{!"TYPE_13__", !8, i64 0}
!33 = !{!7, !11, i64 8}
!34 = !{!14, !11, i64 0}
| postgres_src_backend_executor_extr_execMain.c_EvalPlanQualFetchRowMark |
; ModuleID = 'AnghaBench/linux/tools/testing/selftests/x86/extr_protection_keys.c_test_kernel_gup_of_access_disabled_region.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/x86/extr_protection_keys.c_test_kernel_gup_of_access_disabled_region.c"
target datalayout = "e-m:e-p270:32:32-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.iovec = type { ptr, i32 }
@.str = private unnamed_addr constant [68 x i8] c"disabling access to PKEY[%02d], having kernel vmsplice from buffer\0A\00", align 1
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@SPLICE_F_GIFT = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"vmsplice() ret: %d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @test_kernel_gup_of_access_disabled_region(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.iovec, align 8
%4 = alloca [2 x i32], align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = call i32 @pipe(ptr noundef nonnull %4) #3
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @pkey_assert(i32 noundef %7) #3
%9 = call i32 @dprintf1(ptr noundef nonnull @.str, i32 noundef %1) #3
%10 = call i32 @pkey_access_deny(i32 noundef %1) #3
store ptr %0, ptr %3, align 8, !tbaa !5
%11 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !11
%12 = getelementptr inbounds %struct.iovec, ptr %3, i64 0, i32 1
store i32 %11, ptr %12, align 8, !tbaa !12
%13 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 1
%14 = load i32, ptr %13, align 4, !tbaa !11
%15 = load i32, ptr @SPLICE_F_GIFT, align 4, !tbaa !11
%16 = call i32 @vmsplice(i32 noundef %14, ptr noundef nonnull %3, i32 noundef 1, i32 noundef %15) #3
%17 = call i32 @dprintf1(ptr noundef nonnull @.str.1, i32 noundef %16) #3
%18 = icmp eq i32 %16, -1
%19 = zext i1 %18 to i32
%20 = call i32 @pkey_assert(i32 noundef %19) #3
%21 = load i32, ptr %4, align 4, !tbaa !11
%22 = call i32 @close(i32 noundef %21) #3
%23 = load i32, ptr %13, align 4, !tbaa !11
%24 = call i32 @close(i32 noundef %23) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @pipe(ptr noundef) local_unnamed_addr #2
declare i32 @pkey_assert(i32 noundef) local_unnamed_addr #2
declare i32 @dprintf1(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @pkey_access_deny(i32 noundef) local_unnamed_addr #2
declare i32 @vmsplice(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="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 = !{!"iovec", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/tools/testing/selftests/x86/extr_protection_keys.c_test_kernel_gup_of_access_disabled_region.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/x86/extr_protection_keys.c_test_kernel_gup_of_access_disabled_region.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.iovec = type { ptr, i32 }
@.str = private unnamed_addr constant [68 x i8] c"disabling access to PKEY[%02d], having kernel vmsplice from buffer\0A\00", align 1
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
@SPLICE_F_GIFT = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"vmsplice() ret: %d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_kernel_gup_of_access_disabled_region(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.iovec, align 8
%4 = alloca [2 x i32], align 4
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = call i32 @pipe(ptr noundef nonnull %4) #3
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @pkey_assert(i32 noundef %7) #3
%9 = call i32 @dprintf1(ptr noundef nonnull @.str, i32 noundef %1) #3
%10 = call i32 @pkey_access_deny(i32 noundef %1) #3
store ptr %0, ptr %3, align 8, !tbaa !6
%11 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !12
%12 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %11, ptr %12, align 8, !tbaa !13
%13 = getelementptr inbounds i8, ptr %4, i64 4
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = load i32, ptr @SPLICE_F_GIFT, align 4, !tbaa !12
%16 = call i32 @vmsplice(i32 noundef %14, ptr noundef nonnull %3, i32 noundef 1, i32 noundef %15) #3
%17 = call i32 @dprintf1(ptr noundef nonnull @.str.1, i32 noundef %16) #3
%18 = icmp eq i32 %16, -1
%19 = zext i1 %18 to i32
%20 = call i32 @pkey_assert(i32 noundef %19) #3
%21 = load i32, ptr %4, align 4, !tbaa !12
%22 = call i32 @close(i32 noundef %21) #3
%23 = load i32, ptr %13, align 4, !tbaa !12
%24 = call i32 @close(i32 noundef %23) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @pipe(ptr noundef) local_unnamed_addr #2
declare i32 @pkey_assert(i32 noundef) local_unnamed_addr #2
declare i32 @dprintf1(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @pkey_access_deny(i32 noundef) local_unnamed_addr #2
declare i32 @vmsplice(i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+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 = !{!"iovec", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !11, i64 8}
| linux_tools_testing_selftests_x86_extr_protection_keys.c_test_kernel_gup_of_access_disabled_region |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ath/ath_hal/ar5211/extr_ar5211_xmit.c_ar5211SetupTxDesc.c'
source_filename = "AnghaBench/freebsd/sys/dev/ath/ath_hal/ar5211/extr_ar5211_xmit.c_ar5211SetupTxDesc.c"
target datalayout = "e-m:e-p270:32:32-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.ar5211_desc = type { i32, i64 }
@AR_FrameLen = dso_local local_unnamed_addr global i64 0, align 8
@AR_XmitRate_S = dso_local local_unnamed_addr global i64 0, align 8
@AR_AntModeXmit_S = dso_local local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_CLRDMASK = dso_local local_unnamed_addr global i64 0, align 8
@AR_ClearDestMask = dso_local local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_INTREQ = dso_local local_unnamed_addr global i64 0, align 8
@AR_TxInterReq = dso_local local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_RTSENA = dso_local local_unnamed_addr global i64 0, align 8
@AR_RTSCTSEnable = dso_local local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_VEOL = dso_local local_unnamed_addr global i64 0, align 8
@AR_VEOL = dso_local local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_NOACK = dso_local local_unnamed_addr global i64 0, align 8
@AR_NoAck = dso_local local_unnamed_addr global i32 0, align 4
@HAL_TXKEYIX_INVALID = dso_local local_unnamed_addr global i64 0, align 8
@AR_EncryptKeyIdx_S = dso_local local_unnamed_addr global i64 0, align 8
@AR_EncryptKeyIdx = dso_local local_unnamed_addr global i64 0, align 8
@AR_EncryptKeyValid = dso_local local_unnamed_addr global i64 0, align 8
@AH_TRUE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ar5211SetupTxDesc(ptr nocapture noundef readnone %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i32 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef %11, i64 noundef %12, i64 noundef %13, i64 noundef %14, i64 noundef %15) local_unnamed_addr #0 {
%17 = tail call ptr @AR5211DESC(ptr noundef %1) #2
%18 = icmp ne i64 %7, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @HALASSERT(i32 noundef %19) #2
%21 = tail call i32 @isValidPktType(i32 noundef %4) #2
%22 = tail call i32 @HALASSERT(i32 noundef %21) #2
%23 = tail call i32 @isValidTxRate(i64 noundef %6) #2
%24 = tail call i32 @HALASSERT(i32 noundef %23) #2
%25 = load i64, ptr @AR_FrameLen, align 8, !tbaa !5
%26 = and i64 %25, %2
%27 = load i64, ptr @AR_XmitRate_S, align 8, !tbaa !5
%28 = shl i64 %6, %27
%29 = or i64 %28, %26
%30 = load i64, ptr @AR_AntModeXmit_S, align 8, !tbaa !5
%31 = shl i64 %9, %30
%32 = or i64 %29, %31
%33 = load i64, ptr @HAL_TXDESC_CLRDMASK, align 8, !tbaa !5
%34 = and i64 %33, %10
%35 = icmp eq i64 %34, 0
%36 = load i64, ptr @AR_ClearDestMask, align 8
%37 = select i1 %35, i64 0, i64 %36
%38 = or i64 %32, %37
%39 = load i64, ptr @HAL_TXDESC_INTREQ, align 8, !tbaa !5
%40 = and i64 %39, %10
%41 = icmp eq i64 %40, 0
%42 = load i64, ptr @AR_TxInterReq, align 8
%43 = select i1 %41, i64 0, i64 %42
%44 = or i64 %38, %43
%45 = load i64, ptr @HAL_TXDESC_RTSENA, align 8, !tbaa !5
%46 = and i64 %45, %10
%47 = icmp eq i64 %46, 0
%48 = load i64, ptr @AR_RTSCTSEnable, align 8
%49 = select i1 %47, i64 0, i64 %48
%50 = or i64 %44, %49
%51 = load i64, ptr @HAL_TXDESC_VEOL, align 8, !tbaa !5
%52 = and i64 %51, %10
%53 = icmp eq i64 %52, 0
%54 = load i64, ptr @AR_VEOL, align 8
%55 = select i1 %53, i64 0, i64 %54
%56 = or i64 %50, %55
%57 = getelementptr inbounds %struct.ar5211_desc, ptr %17, i64 0, i32 1
store i64 %56, ptr %57, align 8, !tbaa !9
%58 = shl i32 %4, 26
%59 = load i64, ptr @HAL_TXDESC_NOACK, align 8, !tbaa !5
%60 = and i64 %59, %10
%61 = icmp eq i64 %60, 0
%62 = load i32, ptr @AR_NoAck, align 4
%63 = select i1 %61, i32 0, i32 %62
%64 = or i32 %63, %58
store i32 %64, ptr %17, align 8, !tbaa !12
%65 = load i64, ptr @HAL_TXKEYIX_INVALID, align 8, !tbaa !5
%66 = icmp eq i64 %65, %8
br i1 %66, label %76, label %67
67: ; preds = %16
%68 = load i64, ptr @AR_EncryptKeyIdx_S, align 8, !tbaa !5
%69 = shl i64 %8, %68
%70 = load i64, ptr @AR_EncryptKeyIdx, align 8, !tbaa !5
%71 = and i64 %69, %70
%72 = trunc i64 %71 to i32
%73 = or i32 %64, %72
store i32 %73, ptr %17, align 8, !tbaa !12
%74 = load i64, ptr @AR_EncryptKeyValid, align 8, !tbaa !5
%75 = or i64 %74, %56
store i64 %75, ptr %57, align 8, !tbaa !9
br label %76
76: ; preds = %67, %16
%77 = load i32, ptr @AH_TRUE, align 4, !tbaa !13
ret i32 %77
}
declare ptr @AR5211DESC(ptr noundef) local_unnamed_addr #1
declare i32 @HALASSERT(i32 noundef) local_unnamed_addr #1
declare i32 @isValidPktType(i32 noundef) local_unnamed_addr #1
declare i32 @isValidTxRate(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"ar5211_desc", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ath/ath_hal/ar5211/extr_ar5211_xmit.c_ar5211SetupTxDesc.c'
source_filename = "AnghaBench/freebsd/sys/dev/ath/ath_hal/ar5211/extr_ar5211_xmit.c_ar5211SetupTxDesc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AR_FrameLen = common local_unnamed_addr global i64 0, align 8
@AR_XmitRate_S = common local_unnamed_addr global i64 0, align 8
@AR_AntModeXmit_S = common local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_CLRDMASK = common local_unnamed_addr global i64 0, align 8
@AR_ClearDestMask = common local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_INTREQ = common local_unnamed_addr global i64 0, align 8
@AR_TxInterReq = common local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_RTSENA = common local_unnamed_addr global i64 0, align 8
@AR_RTSCTSEnable = common local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_VEOL = common local_unnamed_addr global i64 0, align 8
@AR_VEOL = common local_unnamed_addr global i64 0, align 8
@HAL_TXDESC_NOACK = common local_unnamed_addr global i64 0, align 8
@AR_NoAck = common local_unnamed_addr global i32 0, align 4
@HAL_TXKEYIX_INVALID = common local_unnamed_addr global i64 0, align 8
@AR_EncryptKeyIdx_S = common local_unnamed_addr global i64 0, align 8
@AR_EncryptKeyIdx = common local_unnamed_addr global i64 0, align 8
@AR_EncryptKeyValid = common local_unnamed_addr global i64 0, align 8
@AH_TRUE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ar5211SetupTxDesc(ptr nocapture noundef readnone %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i32 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef %11, i64 noundef %12, i64 noundef %13, i64 noundef %14, i64 noundef %15) local_unnamed_addr #0 {
%17 = tail call ptr @AR5211DESC(ptr noundef %1) #2
%18 = icmp ne i64 %7, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @HALASSERT(i32 noundef %19) #2
%21 = tail call i32 @isValidPktType(i32 noundef %4) #2
%22 = tail call i32 @HALASSERT(i32 noundef %21) #2
%23 = tail call i32 @isValidTxRate(i64 noundef %6) #2
%24 = tail call i32 @HALASSERT(i32 noundef %23) #2
%25 = load i64, ptr @AR_FrameLen, align 8, !tbaa !6
%26 = and i64 %25, %2
%27 = load i64, ptr @AR_XmitRate_S, align 8, !tbaa !6
%28 = shl i64 %6, %27
%29 = or i64 %28, %26
%30 = load i64, ptr @AR_AntModeXmit_S, align 8, !tbaa !6
%31 = shl i64 %9, %30
%32 = or i64 %29, %31
%33 = load i64, ptr @HAL_TXDESC_CLRDMASK, align 8, !tbaa !6
%34 = and i64 %33, %10
%35 = icmp eq i64 %34, 0
%36 = load i64, ptr @AR_ClearDestMask, align 8
%37 = select i1 %35, i64 0, i64 %36
%38 = or i64 %32, %37
%39 = load i64, ptr @HAL_TXDESC_INTREQ, align 8, !tbaa !6
%40 = and i64 %39, %10
%41 = icmp eq i64 %40, 0
%42 = load i64, ptr @AR_TxInterReq, align 8
%43 = select i1 %41, i64 0, i64 %42
%44 = or i64 %38, %43
%45 = load i64, ptr @HAL_TXDESC_RTSENA, align 8, !tbaa !6
%46 = and i64 %45, %10
%47 = icmp eq i64 %46, 0
%48 = load i64, ptr @AR_RTSCTSEnable, align 8
%49 = select i1 %47, i64 0, i64 %48
%50 = or i64 %44, %49
%51 = load i64, ptr @HAL_TXDESC_VEOL, align 8, !tbaa !6
%52 = and i64 %51, %10
%53 = icmp eq i64 %52, 0
%54 = load i64, ptr @AR_VEOL, align 8
%55 = select i1 %53, i64 0, i64 %54
%56 = or i64 %50, %55
%57 = getelementptr inbounds i8, ptr %17, i64 8
store i64 %56, ptr %57, align 8, !tbaa !10
%58 = shl i32 %4, 26
%59 = load i64, ptr @HAL_TXDESC_NOACK, align 8, !tbaa !6
%60 = and i64 %59, %10
%61 = icmp eq i64 %60, 0
%62 = load i32, ptr @AR_NoAck, align 4
%63 = select i1 %61, i32 0, i32 %62
%64 = or i32 %63, %58
store i32 %64, ptr %17, align 8, !tbaa !13
%65 = load i64, ptr @HAL_TXKEYIX_INVALID, align 8, !tbaa !6
%66 = icmp eq i64 %65, %8
br i1 %66, label %76, label %67
67: ; preds = %16
%68 = load i64, ptr @AR_EncryptKeyIdx_S, align 8, !tbaa !6
%69 = shl i64 %8, %68
%70 = load i64, ptr @AR_EncryptKeyIdx, align 8, !tbaa !6
%71 = and i64 %69, %70
%72 = trunc i64 %71 to i32
%73 = or i32 %64, %72
store i32 %73, ptr %17, align 8, !tbaa !13
%74 = load i64, ptr @AR_EncryptKeyValid, align 8, !tbaa !6
%75 = or i64 %74, %56
store i64 %75, ptr %57, align 8, !tbaa !10
br label %76
76: ; preds = %67, %16
%77 = load i32, ptr @AH_TRUE, align 4, !tbaa !14
ret i32 %77
}
declare ptr @AR5211DESC(ptr noundef) local_unnamed_addr #1
declare i32 @HALASSERT(i32 noundef) local_unnamed_addr #1
declare i32 @isValidPktType(i32 noundef) local_unnamed_addr #1
declare i32 @isValidTxRate(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"ar5211_desc", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !12, i64 0}
!14 = !{!12, !12, i64 0}
| freebsd_sys_dev_ath_ath_hal_ar5211_extr_ar5211_xmit.c_ar5211SetupTxDesc |
; ModuleID = 'AnghaBench/linux/sound/firewire/dice/extr_dice-transaction.c_get_subaddr.c'
source_filename = "AnghaBench/linux/sound/firewire/dice/extr_dice-transaction.c_get_subaddr.c"
target datalayout = "e-m:e-p270:32:32-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_dice = type { i32, i32, i32, i32, i32 }
@DICE_PRIVATE_SPACE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_subaddr], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @get_subaddr(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
switch i32 %1, label %12 [
i32 128, label %4
i32 130, label %6
i32 129, label %8
i32 131, label %10
]
4: ; preds = %3
%5 = getelementptr inbounds %struct.snd_dice, ptr %0, i64 0, i32 4
br label %12
6: ; preds = %3
%7 = getelementptr inbounds %struct.snd_dice, ptr %0, i64 0, i32 3
br label %12
8: ; preds = %3
%9 = getelementptr inbounds %struct.snd_dice, ptr %0, i64 0, i32 2
br label %12
10: ; preds = %3
%11 = getelementptr inbounds %struct.snd_dice, ptr %0, i64 0, i32 1
br label %12
12: ; preds = %3, %10, %8, %6, %4
%13 = phi ptr [ %11, %10 ], [ %9, %8 ], [ %7, %6 ], [ %5, %4 ], [ %0, %3 ]
%14 = load i32, ptr %13, align 4, !tbaa !5
%15 = add nsw i32 %14, %2
%16 = load i64, ptr @DICE_PRIVATE_SPACE, align 8, !tbaa !9
%17 = trunc i64 %16 to i32
%18 = add i32 %15, %17
ret i32 %18
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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/linux/sound/firewire/dice/extr_dice-transaction.c_get_subaddr.c'
source_filename = "AnghaBench/linux/sound/firewire/dice/extr_dice-transaction.c_get_subaddr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DICE_PRIVATE_SPACE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @get_subaddr], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal i32 @get_subaddr(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
switch i32 %1, label %12 [
i32 128, label %4
i32 130, label %6
i32 129, label %8
i32 131, label %10
]
4: ; preds = %3
%5 = getelementptr inbounds i8, ptr %0, i64 16
br label %12
6: ; preds = %3
%7 = getelementptr inbounds i8, ptr %0, i64 12
br label %12
8: ; preds = %3
%9 = getelementptr inbounds i8, ptr %0, i64 8
br label %12
10: ; preds = %3
%11 = getelementptr inbounds i8, ptr %0, i64 4
br label %12
12: ; preds = %3, %10, %8, %6, %4
%13 = phi ptr [ %11, %10 ], [ %9, %8 ], [ %7, %6 ], [ %5, %4 ], [ %0, %3 ]
%14 = load i32, ptr %13, align 4, !tbaa !6
%15 = add nsw i32 %14, %2
%16 = load i64, ptr @DICE_PRIVATE_SPACE, align 8, !tbaa !10
%17 = trunc i64 %16 to i32
%18 = add i32 %15, %17
ret i32 %18
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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}
| linux_sound_firewire_dice_extr_dice-transaction.c_get_subaddr |
; ModuleID = 'AnghaBench/freebsd/sys/dev/dme/extr_if_dme.c_dme_read_reg.c'
source_filename = "AnghaBench/freebsd/sys/dev/dme/extr_if_dme.c_dme_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.dme_softc = type { i32, i32 }
@CMD_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@BUS_SPACE_BARRIER_WRITE = dso_local local_unnamed_addr global i32 0, align 4
@DATA_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dme_read_reg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @dme_read_reg(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.dme_softc, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = load i32, ptr %0, align 4, !tbaa !10
%6 = load i32, ptr @CMD_ADDR, align 4, !tbaa !11
%7 = tail call i32 @bus_space_write_1(i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %1) #2
%8 = load i32, ptr %3, align 4, !tbaa !5
%9 = load i32, ptr %0, align 4, !tbaa !10
%10 = load i32, ptr @CMD_ADDR, align 4, !tbaa !11
%11 = load i32, ptr @BUS_SPACE_BARRIER_WRITE, align 4, !tbaa !11
%12 = tail call i32 @bus_space_barrier(i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef 1, i32 noundef %11) #2
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = load i32, ptr %0, align 4, !tbaa !10
%15 = load i32, ptr @DATA_ADDR, align 4, !tbaa !11
%16 = tail call i32 @bus_space_read_1(i32 noundef %13, i32 noundef %14, i32 noundef %15) #2
ret i32 %16
}
declare i32 @bus_space_write_1(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_space_barrier(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_space_read_1(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"dme_softc", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/dme/extr_if_dme.c_dme_read_reg.c'
source_filename = "AnghaBench/freebsd/sys/dev/dme/extr_if_dme.c_dme_read_reg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CMD_ADDR = common local_unnamed_addr global i32 0, align 4
@BUS_SPACE_BARRIER_WRITE = common local_unnamed_addr global i32 0, align 4
@DATA_ADDR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dme_read_reg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @dme_read_reg(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = load i32, ptr %0, align 4, !tbaa !11
%6 = load i32, ptr @CMD_ADDR, align 4, !tbaa !12
%7 = tail call i32 @bus_space_write_1(i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %1) #2
%8 = load i32, ptr %3, align 4, !tbaa !6
%9 = load i32, ptr %0, align 4, !tbaa !11
%10 = load i32, ptr @CMD_ADDR, align 4, !tbaa !12
%11 = load i32, ptr @BUS_SPACE_BARRIER_WRITE, align 4, !tbaa !12
%12 = tail call i32 @bus_space_barrier(i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef 1, i32 noundef %11) #2
%13 = load i32, ptr %3, align 4, !tbaa !6
%14 = load i32, ptr %0, align 4, !tbaa !11
%15 = load i32, ptr @DATA_ADDR, align 4, !tbaa !12
%16 = tail call i32 @bus_space_read_1(i32 noundef %13, i32 noundef %14, i32 noundef %15) #2
ret i32 %16
}
declare i32 @bus_space_write_1(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_space_barrier(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_space_read_1(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"dme_softc", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
!12 = !{!8, !8, i64 0}
| freebsd_sys_dev_dme_extr_if_dme.c_dme_read_reg |
; ModuleID = 'AnghaBench/exploitdb/exploits/unix/remote/extr_22975.c_make_send_exploit.c'
source_filename = "AnghaBench/exploitdb/exploits/unix/remote/extr_22975.c_make_send_exploit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@GET_R = dso_local local_unnamed_addr global i32 0, align 4
@t_g = dso_local local_unnamed_addr global i32 0, align 4
@stdout = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c" [+] 01: make 0x41414141 directory.\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c" [+] 02: make shell-code directory.\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c" [+] 03: make 0x43434343 directory.\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c" [+] 04: make 0x44444444 directory.\0A\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c" [+] 05: make 0x45454545 directory.\0A\00", align 1
@.str.5 = private unnamed_addr constant [37 x i8] c" [+] 06: make 0x46464646 directory.\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c" [+] 07: make 0x47474747 directory.\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c" [+] 08: make 0x48484848 directory.\0A\00", align 1
@.str.8 = private unnamed_addr constant [37 x i8] c" [+] 09: make 0x49494949 directory.\0A\00", align 1
@.str.9 = private unnamed_addr constant [37 x i8] c" [+] 10: make 0x50505050 directory.\0A\00", align 1
@.str.10 = private unnamed_addr constant [37 x i8] c" [+] 11: make 0x51515151 directory.\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c" [+] 12: make 0x52525252 directory.\0A\00", align 1
@.str.12 = private unnamed_addr constant [37 x i8] c" [+] 13: make 0x53535353 directory.\0A\00", align 1
@.str.13 = private unnamed_addr constant [37 x i8] c" [+] 14: make 0x54545454 directory.\0A\00", align 1
@.str.14 = private unnamed_addr constant [37 x i8] c" [+] 15: make 0x55555555 directory.\0A\00", align 1
@__exp_test = dso_local local_unnamed_addr global i64 0, align 8
@NRL = dso_local local_unnamed_addr global i64 0, align 8
@FAD = dso_local local_unnamed_addr global i32 0, align 4
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.15 = private unnamed_addr constant [30 x i8] c" [-] This isn't vulnerable.\0A\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @make_send_exploit(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = load i32, ptr @GET_R, align 4, !tbaa !5
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6, align 16
%8 = load i32, ptr @t_g, align 4, !tbaa !5
switch i32 %8, label %66 [
i32 0, label %9
i32 1, label %9
i32 2, label %9
i32 3, label %52
i32 4, label %52
i32 5, label %52
i32 6, label %52
i32 7, label %52
i32 8, label %52
]
9: ; preds = %4, %4, %4
%10 = load i32, ptr @stdout, align 4, !tbaa !5
%11 = tail call i32 @fprintf(i32 noundef %10, ptr noundef nonnull @.str) #3
%12 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 65) #3
%13 = load i32, ptr @stdout, align 4, !tbaa !5
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef nonnull @.str.1) #3
%15 = call i64 @send_shellcode(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7) #3
%16 = load i32, ptr @stdout, align 4, !tbaa !5
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef nonnull @.str.2) #3
%18 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 67) #3
%19 = load i32, ptr @stdout, align 4, !tbaa !5
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef nonnull @.str.3) #3
%21 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 68) #3
%22 = load i32, ptr @stdout, align 4, !tbaa !5
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef nonnull @.str.4) #3
%24 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 69) #3
%25 = load i32, ptr @stdout, align 4, !tbaa !5
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef nonnull @.str.5) #3
%27 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 70) #3
%28 = load i32, ptr @stdout, align 4, !tbaa !5
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef nonnull @.str.6) #3
%30 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 71) #3
%31 = load i32, ptr @stdout, align 4, !tbaa !5
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef nonnull @.str.7) #3
%33 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 72) #3
%34 = load i32, ptr @stdout, align 4, !tbaa !5
%35 = call i32 @fprintf(i32 noundef %34, ptr noundef nonnull @.str.8) #3
%36 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 73) #3
%37 = load i32, ptr @stdout, align 4, !tbaa !5
%38 = call i32 @fprintf(i32 noundef %37, ptr noundef nonnull @.str.9) #3
%39 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 80) #3
%40 = load i32, ptr @stdout, align 4, !tbaa !5
%41 = call i32 @fprintf(i32 noundef %40, ptr noundef nonnull @.str.10) #3
%42 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 81) #3
%43 = load i32, ptr @stdout, align 4, !tbaa !5
%44 = call i32 @fprintf(i32 noundef %43, ptr noundef nonnull @.str.11) #3
%45 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 82) #3
%46 = load i32, ptr @stdout, align 4, !tbaa !5
%47 = call i32 @fprintf(i32 noundef %46, ptr noundef nonnull @.str.12) #3
%48 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 83) #3
%49 = load i32, ptr @stdout, align 4, !tbaa !5
%50 = call i32 @fprintf(i32 noundef %49, ptr noundef nonnull @.str.13) #3
%51 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 84) #3
br label %59
52: ; preds = %4, %4, %4, %4, %4, %4
%53 = load i32, ptr @stdout, align 4, !tbaa !5
%54 = tail call i32 @fprintf(i32 noundef %53, ptr noundef nonnull @.str) #3
%55 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 65) #3
%56 = load i32, ptr @stdout, align 4, !tbaa !5
%57 = call i32 @fprintf(i32 noundef %56, ptr noundef nonnull @.str.1) #3
%58 = call i64 @send_shellcode(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7) #3
br label %59
59: ; preds = %9, %52
%60 = phi ptr [ @.str.2, %52 ], [ @.str.14, %9 ]
%61 = phi i32 [ 67, %52 ], [ 85, %9 ]
%62 = load i32, ptr @stdout, align 4, !tbaa !5
%63 = call i32 @fprintf(i32 noundef %62, ptr noundef nonnull %60) #3
%64 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef %61) #3
%65 = call i64 @make_retloc(i32 noundef %0, i32 noundef %1, ptr noundef nonnull %7, i32 noundef %2) #3
br label %66
66: ; preds = %59, %4
%67 = icmp ne i32 %1, 0
%68 = load i64, ptr @__exp_test, align 8
%69 = icmp ne i64 %68, 0
%70 = select i1 %67, i1 %69, i1 false
br i1 %70, label %71, label %82
71: ; preds = %66
%72 = load i64, ptr @NRL, align 8, !tbaa !9
store i64 %72, ptr @__exp_test, align 8, !tbaa !9
%73 = call i64 @check_exp(i32 noundef %0) #3
%74 = trunc i64 %73 to i32
%75 = load i32, ptr @FAD, align 4, !tbaa !5
%76 = icmp eq i32 %75, %74
br i1 %76, label %77, label %82
77: ; preds = %71
%78 = load i32, ptr @stderr, align 4, !tbaa !5
%79 = call i32 @fprintf(i32 noundef %78, ptr noundef nonnull @.str.15) #3
%80 = load i32, ptr @FAD, align 4, !tbaa !5
%81 = call i32 @exit(i32 noundef %80) #4
unreachable
82: ; preds = %71, %66
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @mkd_cwd_f(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @send_shellcode(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @make_retloc(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @check_exp(i32 noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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/exploitdb/exploits/unix/remote/extr_22975.c_make_send_exploit.c'
source_filename = "AnghaBench/exploitdb/exploits/unix/remote/extr_22975.c_make_send_exploit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GET_R = common local_unnamed_addr global i32 0, align 4
@t_g = common local_unnamed_addr global i32 0, align 4
@stdout = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c" [+] 01: make 0x41414141 directory.\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c" [+] 02: make shell-code directory.\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c" [+] 03: make 0x43434343 directory.\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c" [+] 04: make 0x44444444 directory.\0A\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c" [+] 05: make 0x45454545 directory.\0A\00", align 1
@.str.5 = private unnamed_addr constant [37 x i8] c" [+] 06: make 0x46464646 directory.\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c" [+] 07: make 0x47474747 directory.\0A\00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c" [+] 08: make 0x48484848 directory.\0A\00", align 1
@.str.8 = private unnamed_addr constant [37 x i8] c" [+] 09: make 0x49494949 directory.\0A\00", align 1
@.str.9 = private unnamed_addr constant [37 x i8] c" [+] 10: make 0x50505050 directory.\0A\00", align 1
@.str.10 = private unnamed_addr constant [37 x i8] c" [+] 11: make 0x51515151 directory.\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c" [+] 12: make 0x52525252 directory.\0A\00", align 1
@.str.12 = private unnamed_addr constant [37 x i8] c" [+] 13: make 0x53535353 directory.\0A\00", align 1
@.str.13 = private unnamed_addr constant [37 x i8] c" [+] 14: make 0x54545454 directory.\0A\00", align 1
@.str.14 = private unnamed_addr constant [37 x i8] c" [+] 15: make 0x55555555 directory.\0A\00", align 1
@__exp_test = common local_unnamed_addr global i64 0, align 8
@NRL = common local_unnamed_addr global i64 0, align 8
@FAD = common local_unnamed_addr global i32 0, align 4
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.15 = private unnamed_addr constant [30 x i8] c" [-] This isn't vulnerable.\0A\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @make_send_exploit(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = load i32, ptr @GET_R, align 4, !tbaa !6
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6, align 1
%8 = load i32, ptr @t_g, align 4, !tbaa !6
switch i32 %8, label %66 [
i32 0, label %9
i32 1, label %9
i32 2, label %9
i32 3, label %52
i32 4, label %52
i32 5, label %52
i32 6, label %52
i32 7, label %52
i32 8, label %52
]
9: ; preds = %4, %4, %4
%10 = load i32, ptr @stdout, align 4, !tbaa !6
%11 = tail call i32 @fprintf(i32 noundef %10, ptr noundef nonnull @.str) #3
%12 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 65) #3
%13 = load i32, ptr @stdout, align 4, !tbaa !6
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef nonnull @.str.1) #3
%15 = call i64 @send_shellcode(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7) #3
%16 = load i32, ptr @stdout, align 4, !tbaa !6
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef nonnull @.str.2) #3
%18 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 67) #3
%19 = load i32, ptr @stdout, align 4, !tbaa !6
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef nonnull @.str.3) #3
%21 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 68) #3
%22 = load i32, ptr @stdout, align 4, !tbaa !6
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef nonnull @.str.4) #3
%24 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 69) #3
%25 = load i32, ptr @stdout, align 4, !tbaa !6
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef nonnull @.str.5) #3
%27 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 70) #3
%28 = load i32, ptr @stdout, align 4, !tbaa !6
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef nonnull @.str.6) #3
%30 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 71) #3
%31 = load i32, ptr @stdout, align 4, !tbaa !6
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef nonnull @.str.7) #3
%33 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 72) #3
%34 = load i32, ptr @stdout, align 4, !tbaa !6
%35 = call i32 @fprintf(i32 noundef %34, ptr noundef nonnull @.str.8) #3
%36 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 73) #3
%37 = load i32, ptr @stdout, align 4, !tbaa !6
%38 = call i32 @fprintf(i32 noundef %37, ptr noundef nonnull @.str.9) #3
%39 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 80) #3
%40 = load i32, ptr @stdout, align 4, !tbaa !6
%41 = call i32 @fprintf(i32 noundef %40, ptr noundef nonnull @.str.10) #3
%42 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 81) #3
%43 = load i32, ptr @stdout, align 4, !tbaa !6
%44 = call i32 @fprintf(i32 noundef %43, ptr noundef nonnull @.str.11) #3
%45 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 82) #3
%46 = load i32, ptr @stdout, align 4, !tbaa !6
%47 = call i32 @fprintf(i32 noundef %46, ptr noundef nonnull @.str.12) #3
%48 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 83) #3
%49 = load i32, ptr @stdout, align 4, !tbaa !6
%50 = call i32 @fprintf(i32 noundef %49, ptr noundef nonnull @.str.13) #3
%51 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 84) #3
br label %59
52: ; preds = %4, %4, %4, %4, %4, %4
%53 = load i32, ptr @stdout, align 4, !tbaa !6
%54 = tail call i32 @fprintf(i32 noundef %53, ptr noundef nonnull @.str) #3
%55 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef 65) #3
%56 = load i32, ptr @stdout, align 4, !tbaa !6
%57 = call i32 @fprintf(i32 noundef %56, ptr noundef nonnull @.str.1) #3
%58 = call i64 @send_shellcode(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7) #3
br label %59
59: ; preds = %9, %52
%60 = phi ptr [ @.str.2, %52 ], [ @.str.14, %9 ]
%61 = phi i32 [ 67, %52 ], [ 85, %9 ]
%62 = load i32, ptr @stdout, align 4, !tbaa !6
%63 = call i32 @fprintf(i32 noundef %62, ptr noundef nonnull %60) #3
%64 = call i64 @mkd_cwd_f(i32 noundef %0, i32 noundef %3, ptr noundef nonnull %7, i32 noundef %61) #3
%65 = call i64 @make_retloc(i32 noundef %0, i32 noundef %1, ptr noundef nonnull %7, i32 noundef %2) #3
br label %66
66: ; preds = %59, %4
%67 = icmp ne i32 %1, 0
%68 = load i64, ptr @__exp_test, align 8
%69 = icmp ne i64 %68, 0
%70 = select i1 %67, i1 %69, i1 false
br i1 %70, label %71, label %82
71: ; preds = %66
%72 = load i64, ptr @NRL, align 8, !tbaa !10
store i64 %72, ptr @__exp_test, align 8, !tbaa !10
%73 = call i64 @check_exp(i32 noundef %0) #3
%74 = trunc i64 %73 to i32
%75 = load i32, ptr @FAD, align 4, !tbaa !6
%76 = icmp eq i32 %75, %74
br i1 %76, label %77, label %82
77: ; preds = %71
%78 = load i32, ptr @stderr, align 4, !tbaa !6
%79 = call i32 @fprintf(i32 noundef %78, ptr noundef nonnull @.str.15) #3
%80 = load i32, ptr @FAD, align 4, !tbaa !6
%81 = call i32 @exit(i32 noundef %80) #4
unreachable
82: ; preds = %71, %66
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @mkd_cwd_f(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @send_shellcode(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @make_retloc(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @check_exp(i32 noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(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 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { noreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
attributes #4 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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}
| exploitdb_exploits_unix_remote_extr_22975.c_make_send_exploit |
; ModuleID = 'AnghaBench/kphp-kdb/search/extr_search-y-index.c_cmp_pair.c'
source_filename = "AnghaBench/kphp-kdb/search/extr_search-y-index.c_cmp_pair.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i64, i64, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @cmp_pair], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal i32 @cmp_pair(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !5
%4 = load i64, ptr %1, align 8, !tbaa !5
%5 = icmp slt i64 %3, %4
br i1 %5, label %22, label %6
6: ; preds = %2
%7 = icmp sgt i64 %3, %4
br i1 %7, label %22, label %8
8: ; preds = %6
%9 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !11
%13 = icmp slt i64 %10, %12
br i1 %13, label %22, label %14
14: ; preds = %8
%15 = icmp sgt i64 %10, %12
br i1 %15, label %22, label %16
16: ; preds = %14
%17 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%18 = load i32, ptr %17, align 8, !tbaa !12
%19 = getelementptr inbounds %struct.TYPE_4__, ptr %1, i64 0, i32 2
%20 = load i32, ptr %19, align 8, !tbaa !12
%21 = sub nsw i32 %18, %20
br label %22
22: ; preds = %14, %8, %6, %2, %16
%23 = phi i32 [ %21, %16 ], [ -1, %2 ], [ 1, %6 ], [ -1, %8 ], [ 1, %14 ]
ret i32 %23
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/kphp-kdb/search/extr_search-y-index.c_cmp_pair.c'
source_filename = "AnghaBench/kphp-kdb/search/extr_search-y-index.c_cmp_pair.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 @cmp_pair], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal i32 @cmp_pair(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %0, align 8, !tbaa !6
%4 = load i64, ptr %1, align 8, !tbaa !6
%5 = icmp slt i64 %3, %4
br i1 %5, label %22, label %6
6: ; preds = %2
%7 = icmp sgt i64 %3, %4
br i1 %7, label %22, label %8
8: ; preds = %6
%9 = getelementptr inbounds i8, ptr %0, i64 8
%10 = load i64, ptr %9, align 8, !tbaa !12
%11 = getelementptr inbounds i8, ptr %1, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !12
%13 = icmp slt i64 %10, %12
br i1 %13, label %22, label %14
14: ; preds = %8
%15 = icmp sgt i64 %10, %12
br i1 %15, label %22, label %16
16: ; preds = %14
%17 = getelementptr inbounds i8, ptr %0, i64 16
%18 = load i32, ptr %17, align 8, !tbaa !13
%19 = getelementptr inbounds i8, ptr %1, i64 16
%20 = load i32, ptr %19, align 8, !tbaa !13
%21 = sub nsw i32 %18, %20
br label %22
22: ; preds = %14, %8, %6, %2, %16
%23 = phi i32 [ %21, %16 ], [ -1, %2 ], [ 1, %6 ], [ -1, %8 ], [ 1, %14 ]
ret i32 %23
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !11, i64 16}
| kphp-kdb_search_extr_search-y-index.c_cmp_pair |
; ModuleID = 'AnghaBench/freebsd/lib/libpmc/extr_libpmc.c_pmc_mdep_is_compatible_class.c'
source_filename = "AnghaBench/freebsd/lib/libpmc/extr_libpmc.c_pmc_mdep_is_compatible_class.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@pmc_mdep_class_list_size = dso_local local_unnamed_addr global i64 0, align 8
@pmc_mdep_class_list = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @pmc_mdep_is_compatible_class], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define internal noundef i32 @pmc_mdep_is_compatible_class(i32 noundef %0) #0 {
%2 = load i64, ptr @pmc_mdep_class_list_size, align 8, !tbaa !5
%3 = icmp eq i64 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1
%5 = load ptr, ptr @pmc_mdep_class_list, align 8, !tbaa !9
br label %9
6: ; preds = %9
%7 = add nuw i64 %10, 1
%8 = icmp eq i64 %7, %2
br i1 %8, label %14, label %9, !llvm.loop !11
9: ; preds = %4, %6
%10 = phi i64 [ 0, %4 ], [ %7, %6 ]
%11 = getelementptr inbounds i32, ptr %5, i64 %10
%12 = load i32, ptr %11, align 4, !tbaa !13
%13 = icmp eq i32 %12, %0
br i1 %13, label %14, label %6
14: ; preds = %9, %6, %1
%15 = phi i32 [ 0, %1 ], [ 0, %6 ], [ 1, %9 ]
ret i32 %15
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/lib/libpmc/extr_libpmc.c_pmc_mdep_is_compatible_class.c'
source_filename = "AnghaBench/freebsd/lib/libpmc/extr_libpmc.c_pmc_mdep_is_compatible_class.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@pmc_mdep_class_list_size = common local_unnamed_addr global i64 0, align 8
@pmc_mdep_class_list = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @pmc_mdep_is_compatible_class], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 2) i32 @pmc_mdep_is_compatible_class(i32 noundef %0) #0 {
%2 = load i64, ptr @pmc_mdep_class_list_size, align 8, !tbaa !6
%3 = icmp eq i64 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1
%5 = load ptr, ptr @pmc_mdep_class_list, align 8, !tbaa !10
br label %9
6: ; preds = %9
%7 = add nuw i64 %10, 1
%8 = icmp eq i64 %7, %2
br i1 %8, label %14, label %9, !llvm.loop !12
9: ; preds = %4, %6
%10 = phi i64 [ 0, %4 ], [ %7, %6 ]
%11 = getelementptr inbounds i32, ptr %5, i64 %10
%12 = load i32, ptr %11, align 4, !tbaa !14
%13 = icmp eq i32 %12, %0
br i1 %13, label %14, label %6
14: ; preds = %9, %6, %1
%15 = phi i32 [ 0, %1 ], [ 0, %6 ], [ 1, %9 ]
ret i32 %15
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
| freebsd_lib_libpmc_extr_libpmc.c_pmc_mdep_is_compatible_class |
; ModuleID = 'AnghaBench/linux/drivers/usb/c67x00/extr_c67x00-drv.c_c67x00_irq.c'
source_filename = "AnghaBench/linux/drivers/usb/c67x00/extr_c67x00-drv.c_c67x00_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.c67x00_device = type { ptr, ptr }
%struct.c67x00_sie = type { ptr }
@IRQ_NONE = dso_local local_unnamed_addr global i32 0, align 4
@C67X00_SIES = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"Not all interrupts handled! status = 0x%04x\0A\00", align 1
@IRQ_HANDLED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @c67x00_irq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @c67x00_irq(i32 %0, ptr noundef %1) #0 {
%3 = tail call i32 @c67x00_ll_hpi_status(ptr noundef %1) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %43, label %5
5: ; preds = %2
%6 = getelementptr inbounds %struct.c67x00_device, ptr %1, i64 0, i32 1
br label %7
7: ; preds = %5, %37
%8 = phi i32 [ 8, %5 ], [ %10, %37 ]
%9 = phi i32 [ %3, %5 ], [ %38, %37 ]
%10 = add nsw i32 %8, -1
%11 = icmp sgt i32 %8, -1
br i1 %11, label %12, label %40
12: ; preds = %7
%13 = tail call i32 @c67x00_ll_irq(ptr noundef %1, i32 noundef %9) #2
%14 = load i32, ptr @C67X00_SIES, align 4, !tbaa !5
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %37
16: ; preds = %12, %32
%17 = phi i64 [ %33, %32 ], [ 0, %12 ]
%18 = load ptr, ptr %6, align 8, !tbaa !9
%19 = getelementptr inbounds %struct.c67x00_sie, ptr %18, i64 %17
%20 = trunc i64 %17 to i32
%21 = tail call i32 @SIEMSG_FLG(i32 noundef %20) #2
%22 = and i32 %21, %9
%23 = icmp eq i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %16
%25 = tail call i32 @c67x00_ll_fetch_siemsg(ptr noundef nonnull %1, i32 noundef %20) #2
br label %26
26: ; preds = %24, %16
%27 = phi i32 [ %25, %24 ], [ 0, %16 ]
%28 = load ptr, ptr %19, align 8, !tbaa !12
%29 = icmp eq ptr %28, null
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = tail call i32 %28(ptr noundef nonnull %19, i32 noundef %9, i32 noundef %27) #2
br label %32
32: ; preds = %26, %30
%33 = add nuw nsw i64 %17, 1
%34 = load i32, ptr @C67X00_SIES, align 4, !tbaa !5
%35 = sext i32 %34 to i64
%36 = icmp slt i64 %33, %35
br i1 %36, label %16, label %37, !llvm.loop !14
37: ; preds = %32, %12
%38 = tail call i32 @c67x00_ll_hpi_status(ptr noundef %1) #2
%39 = icmp eq i32 %38, 0
br i1 %39, label %43, label %7, !llvm.loop !16
40: ; preds = %7
%41 = load ptr, ptr %1, align 8, !tbaa !17
%42 = tail call i32 @dev_warn(ptr noundef %41, ptr noundef nonnull @.str, i32 noundef %9) #2
br label %43
43: ; preds = %37, %40, %2
%44 = phi ptr [ @IRQ_NONE, %2 ], [ @IRQ_HANDLED, %40 ], [ @IRQ_HANDLED, %37 ]
%45 = load i32, ptr %44, align 4, !tbaa !5
ret i32 %45
}
declare i32 @c67x00_ll_hpi_status(ptr noundef) local_unnamed_addr #1
declare i32 @c67x00_ll_irq(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SIEMSG_FLG(i32 noundef) local_unnamed_addr #1
declare i32 @c67x00_ll_fetch_siemsg(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_warn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"c67x00_device", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"c67x00_sie", !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/c67x00/extr_c67x00-drv.c_c67x00_irq.c'
source_filename = "AnghaBench/linux/drivers/usb/c67x00/extr_c67x00-drv.c_c67x00_irq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.c67x00_sie = type { ptr }
@IRQ_NONE = common local_unnamed_addr global i32 0, align 4
@C67X00_SIES = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"Not all interrupts handled! status = 0x%04x\0A\00", align 1
@IRQ_HANDLED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @c67x00_irq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @c67x00_irq(i32 %0, ptr noundef %1) #0 {
%3 = tail call i32 @c67x00_ll_hpi_status(ptr noundef %1) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %43, label %5
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %1, i64 8
br label %7
7: ; preds = %5, %37
%8 = phi i32 [ 8, %5 ], [ %10, %37 ]
%9 = phi i32 [ %3, %5 ], [ %38, %37 ]
%10 = add nsw i32 %8, -1
%11 = icmp sgt i32 %8, -1
br i1 %11, label %12, label %40
12: ; preds = %7
%13 = tail call i32 @c67x00_ll_irq(ptr noundef %1, i32 noundef %9) #2
%14 = load i32, ptr @C67X00_SIES, align 4, !tbaa !6
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %37
16: ; preds = %12, %32
%17 = phi i64 [ %33, %32 ], [ 0, %12 ]
%18 = load ptr, ptr %6, align 8, !tbaa !10
%19 = getelementptr inbounds %struct.c67x00_sie, ptr %18, i64 %17
%20 = trunc nuw nsw i64 %17 to i32
%21 = tail call i32 @SIEMSG_FLG(i32 noundef %20) #2
%22 = and i32 %21, %9
%23 = icmp eq i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %16
%25 = tail call i32 @c67x00_ll_fetch_siemsg(ptr noundef nonnull %1, i32 noundef %20) #2
br label %26
26: ; preds = %24, %16
%27 = phi i32 [ %25, %24 ], [ 0, %16 ]
%28 = load ptr, ptr %19, align 8, !tbaa !13
%29 = icmp eq ptr %28, null
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = tail call i32 %28(ptr noundef nonnull %19, i32 noundef %9, i32 noundef %27) #2
br label %32
32: ; preds = %26, %30
%33 = add nuw nsw i64 %17, 1
%34 = load i32, ptr @C67X00_SIES, align 4, !tbaa !6
%35 = sext i32 %34 to i64
%36 = icmp slt i64 %33, %35
br i1 %36, label %16, label %37, !llvm.loop !15
37: ; preds = %32, %12
%38 = tail call i32 @c67x00_ll_hpi_status(ptr noundef %1) #2
%39 = icmp eq i32 %38, 0
br i1 %39, label %43, label %7, !llvm.loop !17
40: ; preds = %7
%41 = load ptr, ptr %1, align 8, !tbaa !18
%42 = tail call i32 @dev_warn(ptr noundef %41, ptr noundef nonnull @.str, i32 noundef %9) #2
br label %43
43: ; preds = %37, %40, %2
%44 = phi ptr [ @IRQ_NONE, %2 ], [ @IRQ_HANDLED, %40 ], [ @IRQ_HANDLED, %37 ]
%45 = load i32, ptr %44, align 4, !tbaa !6
ret i32 %45
}
declare i32 @c67x00_ll_hpi_status(ptr noundef) local_unnamed_addr #1
declare i32 @c67x00_ll_irq(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SIEMSG_FLG(i32 noundef) local_unnamed_addr #1
declare i32 @c67x00_ll_fetch_siemsg(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_warn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"c67x00_device", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"c67x00_sie", !12, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!11, !12, i64 0}
| linux_drivers_usb_c67x00_extr_c67x00-drv.c_c67x00_irq |
; ModuleID = 'AnghaBench/fastsocket/kernel/mm/extr_mincore.c_mincore_pte_range.c'
source_filename = "AnghaBench/fastsocket/kernel/mm/extr_mincore.c_mincore_pte_range.c"
target datalayout = "e-m:e-p270:32:32-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.vm_area_struct = type { ptr, i32 }
@PAGE_SIZE = dso_local local_unnamed_addr global i64 0, align 8
@swapper_space = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mincore_pte_range], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mincore_pte_range(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%7 = getelementptr inbounds %struct.vm_area_struct, ptr %0, i64 0, i32 1
%8 = load i32, ptr %7, align 8, !tbaa !5
%9 = call ptr @pte_offset_map_lock(i32 noundef %8, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %6) #3
br label %10
10: ; preds = %40, %5
%11 = phi ptr [ %9, %5 ], [ %42, %40 ]
%12 = phi ptr [ %4, %5 ], [ %41, %40 ]
%13 = phi i64 [ %2, %5 ], [ %16, %40 ]
%14 = load i32, ptr %11, align 4, !tbaa !11
%15 = load i64, ptr @PAGE_SIZE, align 8, !tbaa !12
%16 = add i64 %15, %13
%17 = call i64 @pte_none(i32 noundef %14) #3
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %10
%20 = call i32 @mincore_unmapped_range(ptr noundef %0, i64 noundef %13, i64 noundef %16, ptr noundef %12) #3
br label %40
21: ; preds = %10
%22 = call i64 @pte_present(i32 noundef %14) #3
%23 = icmp eq i64 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %21
store i8 1, ptr %12, align 1, !tbaa !14
br label %40
25: ; preds = %21
%26 = call i64 @pte_file(i32 noundef %14) #3
%27 = icmp eq i64 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %25
%29 = call i32 @pte_to_pgoff(i32 noundef %14) #3
%30 = load ptr, ptr %0, align 8, !tbaa !15
%31 = load ptr, ptr %30, align 8, !tbaa !16
%32 = call zeroext i8 @mincore_page(ptr noundef %31, i32 noundef %29) #3
store i8 %32, ptr %12, align 1, !tbaa !14
br label %40
33: ; preds = %25
%34 = call i32 @pte_to_swp_entry(i32 noundef %14) #3
%35 = call i64 @is_migration_entry(i32 %34) #3
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @WARN_ON(i32 noundef 1) #3
br label %39
39: ; preds = %33, %37
store i8 1, ptr %12, align 1, !tbaa !14
br label %40
40: ; preds = %24, %39, %28, %19
%41 = getelementptr inbounds i8, ptr %12, i64 1
%42 = getelementptr inbounds i32, ptr %11, i64 1
%43 = icmp eq i64 %16, %3
br i1 %43, label %44, label %10, !llvm.loop !18
44: ; preds = %40
%45 = load ptr, ptr %6, align 8, !tbaa !20
%46 = call i32 @pte_unmap_unlock(ptr noundef nonnull %11, ptr noundef %45) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @pte_offset_map_lock(i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @pte_none(i32 noundef) local_unnamed_addr #2
declare i32 @mincore_unmapped_range(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @pte_present(i32 noundef) local_unnamed_addr #2
declare i64 @pte_file(i32 noundef) local_unnamed_addr #2
declare i32 @pte_to_pgoff(i32 noundef) local_unnamed_addr #2
declare zeroext i8 @mincore_page(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @pte_to_swp_entry(i32 noundef) local_unnamed_addr #2
declare i64 @is_migration_entry(i32) local_unnamed_addr #2
declare i32 @WARN_ON(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 @pte_unmap_unlock(ptr noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"vm_area_struct", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"TYPE_5__", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/mm/extr_mincore.c_mincore_pte_range.c'
source_filename = "AnghaBench/fastsocket/kernel/mm/extr_mincore.c_mincore_pte_range.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_SIZE = common local_unnamed_addr global i64 0, align 8
@swapper_space = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mincore_pte_range], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mincore_pte_range(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
%7 = getelementptr inbounds i8, ptr %0, i64 8
%8 = load i32, ptr %7, align 8, !tbaa !6
%9 = call ptr @pte_offset_map_lock(i32 noundef %8, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %6) #3
br label %10
10: ; preds = %41, %5
%11 = phi ptr [ %9, %5 ], [ %43, %41 ]
%12 = phi ptr [ %4, %5 ], [ %42, %41 ]
%13 = phi i64 [ %2, %5 ], [ %16, %41 ]
%14 = load i32, ptr %11, align 4, !tbaa !12
%15 = load i64, ptr @PAGE_SIZE, align 8, !tbaa !13
%16 = add i64 %15, %13
%17 = call i64 @pte_none(i32 noundef %14) #3
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %10
%20 = call i32 @mincore_unmapped_range(ptr noundef %0, i64 noundef %13, i64 noundef %16, ptr noundef %12) #3
br label %41
21: ; preds = %10
%22 = call i64 @pte_present(i32 noundef %14) #3
%23 = icmp eq i64 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %21
store i8 1, ptr %12, align 1, !tbaa !15
br label %41
25: ; preds = %21
%26 = call i64 @pte_file(i32 noundef %14) #3
%27 = icmp eq i64 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %25
%29 = call i32 @pte_to_pgoff(i32 noundef %14) #3
%30 = load ptr, ptr %0, align 8, !tbaa !16
%31 = load ptr, ptr %30, align 8, !tbaa !17
%32 = call zeroext i8 @mincore_page(ptr noundef %31, i32 noundef %29) #3
store i8 %32, ptr %12, align 1, !tbaa !15
br label %41
33: ; preds = %25
%34 = call i32 @pte_to_swp_entry(i32 noundef %14) #3
%35 = zext i32 %34 to i64
%36 = call i64 @is_migration_entry(i64 %35) #3
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 @WARN_ON(i32 noundef 1) #3
br label %40
40: ; preds = %33, %38
store i8 1, ptr %12, align 1, !tbaa !15
br label %41
41: ; preds = %24, %40, %28, %19
%42 = getelementptr inbounds i8, ptr %12, i64 1
%43 = getelementptr inbounds i8, ptr %11, i64 4
%44 = icmp eq i64 %16, %3
br i1 %44, label %45, label %10, !llvm.loop !19
45: ; preds = %41
%46 = load ptr, ptr %6, align 8, !tbaa !21
%47 = call i32 @pte_unmap_unlock(ptr noundef nonnull %11, ptr noundef %46) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @pte_offset_map_lock(i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @pte_none(i32 noundef) local_unnamed_addr #2
declare i32 @mincore_unmapped_range(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @pte_present(i32 noundef) local_unnamed_addr #2
declare i64 @pte_file(i32 noundef) local_unnamed_addr #2
declare i32 @pte_to_pgoff(i32 noundef) local_unnamed_addr #2
declare zeroext i8 @mincore_page(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @pte_to_swp_entry(i32 noundef) local_unnamed_addr #2
declare i64 @is_migration_entry(i64) local_unnamed_addr #2
declare i32 @WARN_ON(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 @pte_unmap_unlock(ptr noundef, ptr noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"vm_area_struct", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!9, !9, i64 0}
!16 = !{!7, !8, i64 0}
!17 = !{!18, !8, i64 0}
!18 = !{!"TYPE_5__", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!8, !8, i64 0}
| fastsocket_kernel_mm_extr_mincore.c_mincore_pte_range |
; ModuleID = 'AnghaBench/postgres/src/backend/catalog/extr_aclchk.c_pg_foreign_server_aclmask.c'
source_filename = "AnghaBench/postgres/src/backend/catalog/extr_aclchk.c_pg_foreign_server_aclmask.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FOREIGNSERVEROID = dso_local local_unnamed_addr global i32 0, align 4
@ERROR = dso_local local_unnamed_addr global i32 0, align 4
@ERRCODE_UNDEFINED_OBJECT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"foreign server with OID %u does not exist\00", align 1
@Anum_pg_foreign_server_srvacl = dso_local local_unnamed_addr global i32 0, align 4
@OBJECT_FOREIGN_SERVER = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @pg_foreign_server_aclmask(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = tail call i64 @superuser_arg(i32 noundef %1) #3
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %47
8: ; preds = %4
%9 = load i32, ptr @FOREIGNSERVEROID, align 4, !tbaa !5
%10 = tail call i32 @ObjectIdGetDatum(i32 noundef %0) #3
%11 = tail call i32 @SearchSysCache1(i32 noundef %9, i32 noundef %10) #3
%12 = tail call i32 @HeapTupleIsValid(i32 noundef %11) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = load i32, ptr @ERROR, align 4, !tbaa !5
%16 = load i32, ptr @ERRCODE_UNDEFINED_OBJECT, align 4, !tbaa !5
%17 = tail call i32 @errcode(i32 noundef %16) #3
%18 = tail call i32 @errmsg(ptr noundef nonnull @.str, i32 noundef %0) #3
%19 = tail call i32 @ereport(i32 noundef %15, i32 noundef %18) #3
br label %20
20: ; preds = %14, %8
%21 = tail call i64 @GETSTRUCT(i32 noundef %11) #3
%22 = inttoptr i64 %21 to ptr
%23 = load i32, ptr %22, align 4, !tbaa !9
%24 = load i32, ptr @FOREIGNSERVEROID, align 4, !tbaa !5
%25 = load i32, ptr @Anum_pg_foreign_server_srvacl, align 4, !tbaa !5
%26 = call i64 @SysCacheGetAttr(i32 noundef %24, i32 noundef %11, i32 noundef %25, ptr noundef nonnull %5) #3
%27 = load i32, ptr %5, align 4, !tbaa !5
%28 = icmp eq i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %20
%30 = load i32, ptr @OBJECT_FOREIGN_SERVER, align 4, !tbaa !5
%31 = call ptr @acldefault(i32 noundef %30, i32 noundef %23) #3
br label %34
32: ; preds = %20
%33 = call ptr @DatumGetAclP(i64 noundef %26) #3
br label %34
34: ; preds = %32, %29
%35 = phi ptr [ %31, %29 ], [ %33, %32 ]
%36 = phi i64 [ 0, %29 ], [ %26, %32 ]
%37 = call i32 @aclmask(ptr noundef %35, i32 noundef %1, i32 noundef %23, i32 noundef %2, i32 noundef %3) #3
%38 = icmp eq ptr %35, null
br i1 %38, label %45, label %39
39: ; preds = %34
%40 = ptrtoint ptr %35 to i64
%41 = call i64 @DatumGetPointer(i64 noundef %36) #3
%42 = icmp eq i64 %41, %40
br i1 %42, label %45, label %43
43: ; preds = %39
%44 = call i32 @pfree(ptr noundef nonnull %35) #3
br label %45
45: ; preds = %43, %39, %34
%46 = call i32 @ReleaseSysCache(i32 noundef %11) #3
br label %47
47: ; preds = %4, %45
%48 = phi i32 [ %37, %45 ], [ %2, %4 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %48
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @superuser_arg(i32 noundef) local_unnamed_addr #2
declare i32 @SearchSysCache1(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ObjectIdGetDatum(i32 noundef) local_unnamed_addr #2
declare i32 @HeapTupleIsValid(i32 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, i32 noundef) local_unnamed_addr #2
declare i64 @GETSTRUCT(i32 noundef) local_unnamed_addr #2
declare i64 @SysCacheGetAttr(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @acldefault(i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @DatumGetAclP(i64 noundef) local_unnamed_addr #2
declare i32 @aclmask(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @DatumGetPointer(i64 noundef) local_unnamed_addr #2
declare i32 @pfree(ptr noundef) local_unnamed_addr #2
declare i32 @ReleaseSysCache(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/catalog/extr_aclchk.c_pg_foreign_server_aclmask.c'
source_filename = "AnghaBench/postgres/src/backend/catalog/extr_aclchk.c_pg_foreign_server_aclmask.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FOREIGNSERVEROID = common local_unnamed_addr global i32 0, align 4
@ERROR = common local_unnamed_addr global i32 0, align 4
@ERRCODE_UNDEFINED_OBJECT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"foreign server with OID %u does not exist\00", align 1
@Anum_pg_foreign_server_srvacl = common local_unnamed_addr global i32 0, align 4
@OBJECT_FOREIGN_SERVER = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @pg_foreign_server_aclmask(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
%6 = tail call i64 @superuser_arg(i32 noundef %1) #3
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %47
8: ; preds = %4
%9 = load i32, ptr @FOREIGNSERVEROID, align 4, !tbaa !6
%10 = tail call i32 @ObjectIdGetDatum(i32 noundef %0) #3
%11 = tail call i32 @SearchSysCache1(i32 noundef %9, i32 noundef %10) #3
%12 = tail call i32 @HeapTupleIsValid(i32 noundef %11) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = load i32, ptr @ERROR, align 4, !tbaa !6
%16 = load i32, ptr @ERRCODE_UNDEFINED_OBJECT, align 4, !tbaa !6
%17 = tail call i32 @errcode(i32 noundef %16) #3
%18 = tail call i32 @errmsg(ptr noundef nonnull @.str, i32 noundef %0) #3
%19 = tail call i32 @ereport(i32 noundef %15, i32 noundef %18) #3
br label %20
20: ; preds = %14, %8
%21 = tail call i64 @GETSTRUCT(i32 noundef %11) #3
%22 = inttoptr i64 %21 to ptr
%23 = load i32, ptr %22, align 4, !tbaa !10
%24 = load i32, ptr @FOREIGNSERVEROID, align 4, !tbaa !6
%25 = load i32, ptr @Anum_pg_foreign_server_srvacl, align 4, !tbaa !6
%26 = call i64 @SysCacheGetAttr(i32 noundef %24, i32 noundef %11, i32 noundef %25, ptr noundef nonnull %5) #3
%27 = load i32, ptr %5, align 4, !tbaa !6
%28 = icmp eq i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %20
%30 = load i32, ptr @OBJECT_FOREIGN_SERVER, align 4, !tbaa !6
%31 = call ptr @acldefault(i32 noundef %30, i32 noundef %23) #3
br label %34
32: ; preds = %20
%33 = call ptr @DatumGetAclP(i64 noundef %26) #3
br label %34
34: ; preds = %32, %29
%35 = phi ptr [ %31, %29 ], [ %33, %32 ]
%36 = phi i64 [ 0, %29 ], [ %26, %32 ]
%37 = call i32 @aclmask(ptr noundef %35, i32 noundef %1, i32 noundef %23, i32 noundef %2, i32 noundef %3) #3
%38 = icmp eq ptr %35, null
br i1 %38, label %45, label %39
39: ; preds = %34
%40 = ptrtoint ptr %35 to i64
%41 = call i64 @DatumGetPointer(i64 noundef %36) #3
%42 = icmp eq i64 %41, %40
br i1 %42, label %45, label %43
43: ; preds = %39
%44 = call i32 @pfree(ptr noundef nonnull %35) #3
br label %45
45: ; preds = %43, %39, %34
%46 = call i32 @ReleaseSysCache(i32 noundef %11) #3
br label %47
47: ; preds = %4, %45
%48 = phi i32 [ %37, %45 ], [ %2, %4 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
ret i32 %48
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @superuser_arg(i32 noundef) local_unnamed_addr #2
declare i32 @SearchSysCache1(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ObjectIdGetDatum(i32 noundef) local_unnamed_addr #2
declare i32 @HeapTupleIsValid(i32 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, i32 noundef) local_unnamed_addr #2
declare i64 @GETSTRUCT(i32 noundef) local_unnamed_addr #2
declare i64 @SysCacheGetAttr(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @acldefault(i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @DatumGetAclP(i64 noundef) local_unnamed_addr #2
declare i32 @aclmask(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @DatumGetPointer(i64 noundef) local_unnamed_addr #2
declare i32 @pfree(ptr noundef) local_unnamed_addr #2
declare i32 @ReleaseSysCache(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_2__", !7, i64 0}
| postgres_src_backend_catalog_extr_aclchk.c_pg_foreign_server_aclmask |
; ModuleID = 'AnghaBench/linux/drivers/macintosh/extr_via-macii.c_macii_write.c'
source_filename = "AnghaBench/linux/drivers/macintosh/extr_via-macii.c_macii_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.adb_request = type { i32, ptr, i32, ptr, i64, i64 }
@ADB_PACKET = dso_local local_unnamed_addr global i64 0, align 8
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@current_req = dso_local local_unnamed_addr global ptr null, align 8
@last_req = dso_local local_unnamed_addr global ptr null, align 8
@macii_state = dso_local local_unnamed_addr global i64 0, align 8
@idle = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @macii_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @macii_write(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = icmp slt i32 %2, 2
br i1 %3, label %12, label %4
4: ; preds = %1
%5 = getelementptr inbounds %struct.adb_request, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = load i64, ptr @ADB_PACKET, align 8, !tbaa !13
%9 = icmp ne i64 %7, %8
%10 = icmp ugt i32 %2, 15
%11 = or i1 %10, %9
br i1 %11, label %12, label %16
12: ; preds = %4, %1
%13 = getelementptr inbounds %struct.adb_request, ptr %0, i64 0, i32 2
store i32 1, ptr %13, align 8, !tbaa !14
%14 = load i32, ptr @EINVAL, align 4, !tbaa !15
%15 = sub nsw i32 0, %14
br label %33
16: ; preds = %4
%17 = getelementptr inbounds %struct.adb_request, ptr %0, i64 0, i32 3
%18 = getelementptr inbounds %struct.adb_request, ptr %0, i64 0, i32 2
store i32 0, ptr %18, align 8, !tbaa !14
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %17, i8 0, i64 24, i1 false)
%19 = tail call i32 @local_irq_save(i64 noundef undef) #3
%20 = load ptr, ptr @current_req, align 8, !tbaa !16
%21 = icmp eq ptr %20, null
br i1 %21, label %25, label %22
22: ; preds = %16
%23 = load ptr, ptr @last_req, align 8, !tbaa !16
%24 = getelementptr inbounds %struct.adb_request, ptr %23, i64 0, i32 3
store ptr %0, ptr %24, align 8, !tbaa !17
store ptr %0, ptr @last_req, align 8, !tbaa !16
br label %31
25: ; preds = %16
store ptr %0, ptr @current_req, align 8, !tbaa !16
store ptr %0, ptr @last_req, align 8, !tbaa !16
%26 = load i64, ptr @macii_state, align 8, !tbaa !13
%27 = load i64, ptr @idle, align 8, !tbaa !13
%28 = icmp eq i64 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = tail call i32 (...) @macii_start() #3
br label %31
31: ; preds = %25, %29, %22
%32 = tail call i32 @local_irq_restore(i64 noundef undef) #3
br label %33
33: ; preds = %31, %12
%34 = phi i32 [ %15, %12 ], [ 0, %31 ]
ret i32 %34
}
declare i32 @local_irq_save(i64 noundef) local_unnamed_addr #1
declare i32 @macii_start(...) local_unnamed_addr #1
declare i32 @local_irq_restore(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"adb_request", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !11, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !10, i64 24}
| ; ModuleID = 'AnghaBench/linux/drivers/macintosh/extr_via-macii.c_macii_write.c'
source_filename = "AnghaBench/linux/drivers/macintosh/extr_via-macii.c_macii_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ADB_PACKET = common local_unnamed_addr global i64 0, align 8
@EINVAL = common local_unnamed_addr global i32 0, align 4
@current_req = common local_unnamed_addr global ptr null, align 8
@last_req = common local_unnamed_addr global ptr null, align 8
@macii_state = common local_unnamed_addr global i64 0, align 8
@idle = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @macii_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @macii_write(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = icmp slt i32 %2, 2
br i1 %3, label %12, label %4
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !13
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = load i64, ptr @ADB_PACKET, align 8, !tbaa !14
%9 = icmp ne i64 %7, %8
%10 = icmp ugt i32 %2, 15
%11 = or i1 %10, %9
br i1 %11, label %12, label %16
12: ; preds = %4, %1
%13 = getelementptr inbounds i8, ptr %0, i64 16
store i32 1, ptr %13, align 8, !tbaa !15
%14 = load i32, ptr @EINVAL, align 4, !tbaa !16
%15 = sub nsw i32 0, %14
br label %33
16: ; preds = %4
%17 = getelementptr inbounds i8, ptr %0, i64 24
%18 = getelementptr inbounds i8, ptr %0, i64 16
store i32 0, ptr %18, align 8, !tbaa !15
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %17, i8 0, i64 24, i1 false)
%19 = tail call i32 @local_irq_save(i64 noundef undef) #3
%20 = load ptr, ptr @current_req, align 8, !tbaa !17
%21 = icmp eq ptr %20, null
br i1 %21, label %25, label %22
22: ; preds = %16
%23 = load ptr, ptr @last_req, align 8, !tbaa !17
%24 = getelementptr inbounds i8, ptr %23, i64 24
store ptr %0, ptr %24, align 8, !tbaa !18
store ptr %0, ptr @last_req, align 8, !tbaa !17
br label %31
25: ; preds = %16
store ptr %0, ptr @current_req, align 8, !tbaa !17
store ptr %0, ptr @last_req, align 8, !tbaa !17
%26 = load i64, ptr @macii_state, align 8, !tbaa !14
%27 = load i64, ptr @idle, align 8, !tbaa !14
%28 = icmp eq i64 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = tail call i32 @macii_start() #3
br label %31
31: ; preds = %25, %29, %22
%32 = tail call i32 @local_irq_restore(i64 noundef undef) #3
br label %33
33: ; preds = %31, %12
%34 = phi i32 [ %15, %12 ], [ 0, %31 ]
ret i32 %34
}
declare i32 @local_irq_save(i64 noundef) local_unnamed_addr #1
declare i32 @macii_start(...) local_unnamed_addr #1
declare i32 @local_irq_restore(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"adb_request", !8, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !12, i64 32, !12, i64 40}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!12, !12, i64 0}
!15 = !{!7, !8, i64 16}
!16 = !{!8, !8, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!7, !11, i64 24}
| linux_drivers_macintosh_extr_via-macii.c_macii_write |
; ModuleID = 'AnghaBench/linux/drivers/iio/light/extr_tcs3472.c_tcs3472_read_event_config.c'
source_filename = "AnghaBench/linux/drivers/iio/light/extr_tcs3472.c_tcs3472_read_event_config.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.tcs3472_data = type { i32, i32 }
@TCS3472_ENABLE_AIEN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @tcs3472_read_event_config], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tcs3472_read_event_config(ptr noundef %0, ptr nocapture readnone %1, i32 %2, i32 %3) #0 {
%5 = tail call ptr @iio_priv(ptr noundef %0) #2
%6 = getelementptr inbounds %struct.tcs3472_data, ptr %5, i64 0, i32 1
%7 = tail call i32 @mutex_lock(ptr noundef nonnull %6) #2
%8 = load i32, ptr %5, align 4, !tbaa !5
%9 = load i32, ptr @TCS3472_ENABLE_AIEN, align 4, !tbaa !10
%10 = and i32 %9, %8
%11 = icmp ne i32 %10, 0
%12 = zext i1 %11 to i32
%13 = tail call i32 @mutex_unlock(ptr noundef nonnull %6) #2
ret i32 %12
}
declare ptr @iio_priv(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"tcs3472_data", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/iio/light/extr_tcs3472.c_tcs3472_read_event_config.c'
source_filename = "AnghaBench/linux/drivers/iio/light/extr_tcs3472.c_tcs3472_read_event_config.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TCS3472_ENABLE_AIEN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @tcs3472_read_event_config], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @tcs3472_read_event_config(ptr noundef %0, ptr nocapture readnone %1, i32 %2, i32 %3) #0 {
%5 = tail call ptr @iio_priv(ptr noundef %0) #2
%6 = getelementptr inbounds i8, ptr %5, i64 4
%7 = tail call i32 @mutex_lock(ptr noundef nonnull %6) #2
%8 = load i32, ptr %5, align 4, !tbaa !6
%9 = load i32, ptr @TCS3472_ENABLE_AIEN, align 4, !tbaa !11
%10 = and i32 %9, %8
%11 = icmp ne i32 %10, 0
%12 = zext i1 %11 to i32
%13 = tail call i32 @mutex_unlock(ptr noundef nonnull %6) #2
ret i32 %12
}
declare ptr @iio_priv(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"tcs3472_data", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_drivers_iio_light_extr_tcs3472.c_tcs3472_read_event_config |
; ModuleID = 'AnghaBench/xLua/WebGLPlugins/extr_lbaselib.c_b_str2int.c'
source_filename = "AnghaBench/xLua/WebGLPlugins/extr_lbaselib.c_b_str2int.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SPACECHARS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @b_str2int], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @b_str2int(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = load i32, ptr @SPACECHARS, align 4, !tbaa !5
%5 = tail call i32 @strspn(ptr noundef %0, i32 noundef %4) #2
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %0, i64 %6
%8 = load i8, ptr %7, align 1, !tbaa !9
%9 = icmp eq i8 %8, 45
%10 = icmp eq i8 %8, 43
%11 = or i1 %9, %10
%12 = zext i1 %11 to i64
%13 = getelementptr inbounds i8, ptr %7, i64 %12
%14 = load i8, ptr %13, align 1, !tbaa !9
%15 = tail call i64 @isalnum(i8 noundef zeroext %14) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %47, label %17
17: ; preds = %3, %32
%18 = phi ptr [ %33, %32 ], [ %13, %3 ]
%19 = phi i32 [ %35, %32 ], [ 0, %3 ]
%20 = load i8, ptr %18, align 1, !tbaa !9
%21 = tail call i64 @isdigit(i8 noundef zeroext %20) #2
%22 = icmp eq i64 %21, 0
%23 = load i8, ptr %18, align 1, !tbaa !9
br i1 %22, label %24, label %26
24: ; preds = %17
%25 = tail call signext i8 @toupper(i8 noundef zeroext %23) #2
br label %26
26: ; preds = %17, %24
%27 = phi i8 [ %25, %24 ], [ %23, %17 ]
%28 = phi i32 [ -55, %24 ], [ -48, %17 ]
%29 = sext i8 %27 to i32
%30 = add nsw i32 %28, %29
%31 = icmp slt i32 %30, %1
br i1 %31, label %32, label %47
32: ; preds = %26
%33 = getelementptr inbounds i8, ptr %18, i64 1
%34 = mul nsw i32 %19, %1
%35 = add nsw i32 %30, %34
%36 = load i8, ptr %33, align 1, !tbaa !9
%37 = tail call i64 @isalnum(i8 noundef zeroext %36) #2
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %17, !llvm.loop !10
39: ; preds = %32
%40 = load i32, ptr @SPACECHARS, align 4, !tbaa !5
%41 = tail call i32 @strspn(ptr noundef nonnull %33, i32 noundef %40) #2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %33, i64 %42
%44 = sub i32 0, %35
%45 = select i1 %9, i32 %44, i32 %35
%46 = zext i32 %45 to i64
store i64 %46, ptr %2, align 8, !tbaa !12
br label %47
47: ; preds = %26, %3, %39
%48 = phi ptr [ %43, %39 ], [ null, %3 ], [ null, %26 ]
ret ptr %48
}
declare i32 @strspn(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @isalnum(i8 noundef zeroext) local_unnamed_addr #1
declare i64 @isdigit(i8 noundef zeroext) local_unnamed_addr #1
declare signext i8 @toupper(i8 noundef zeroext) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/xLua/WebGLPlugins/extr_lbaselib.c_b_str2int.c'
source_filename = "AnghaBench/xLua/WebGLPlugins/extr_lbaselib.c_b_str2int.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SPACECHARS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @b_str2int], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @b_str2int(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = load i32, ptr @SPACECHARS, align 4, !tbaa !6
%5 = tail call i32 @strspn(ptr noundef %0, i32 noundef %4) #2
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %0, i64 %6
%8 = load i8, ptr %7, align 1, !tbaa !10
%9 = icmp eq i8 %8, 45
%10 = icmp eq i8 %8, 43
%11 = or i1 %9, %10
%12 = zext i1 %11 to i64
%13 = getelementptr inbounds i8, ptr %7, i64 %12
%14 = load i8, ptr %13, align 1, !tbaa !10
%15 = tail call i64 @isalnum(i8 noundef zeroext %14) #2
%16 = icmp eq i64 %15, 0
br i1 %16, label %47, label %17
17: ; preds = %3, %32
%18 = phi ptr [ %33, %32 ], [ %13, %3 ]
%19 = phi i32 [ %35, %32 ], [ 0, %3 ]
%20 = load i8, ptr %18, align 1, !tbaa !10
%21 = tail call i64 @isdigit(i8 noundef zeroext %20) #2
%22 = icmp eq i64 %21, 0
%23 = load i8, ptr %18, align 1, !tbaa !10
br i1 %22, label %24, label %26
24: ; preds = %17
%25 = tail call signext i8 @toupper(i8 noundef zeroext %23) #2
br label %26
26: ; preds = %17, %24
%27 = phi i8 [ %25, %24 ], [ %23, %17 ]
%28 = phi i32 [ -55, %24 ], [ -48, %17 ]
%29 = sext i8 %27 to i32
%30 = add nsw i32 %28, %29
%31 = icmp slt i32 %30, %1
br i1 %31, label %32, label %47
32: ; preds = %26
%33 = getelementptr inbounds i8, ptr %18, i64 1
%34 = mul nsw i32 %19, %1
%35 = add nsw i32 %30, %34
%36 = load i8, ptr %33, align 1, !tbaa !10
%37 = tail call i64 @isalnum(i8 noundef zeroext %36) #2
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %17, !llvm.loop !11
39: ; preds = %32
%40 = load i32, ptr @SPACECHARS, align 4, !tbaa !6
%41 = tail call i32 @strspn(ptr noundef nonnull %33, i32 noundef %40) #2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %33, i64 %42
%44 = sub i32 0, %35
%45 = select i1 %9, i32 %44, i32 %35
%46 = zext i32 %45 to i64
store i64 %46, ptr %2, align 8, !tbaa !13
br label %47
47: ; preds = %26, %3, %39
%48 = phi ptr [ %43, %39 ], [ null, %3 ], [ null, %26 ]
ret ptr %48
}
declare i32 @strspn(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @isalnum(i8 noundef zeroext) local_unnamed_addr #1
declare i64 @isdigit(i8 noundef zeroext) local_unnamed_addr #1
declare signext i8 @toupper(i8 noundef zeroext) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
| xLua_WebGLPlugins_extr_lbaselib.c_b_str2int |
; ModuleID = 'AnghaBench/freebsd/tools/tools/ath/ath_ee_v14_print/extr_ath_ee_v14_print.c_load_eeprom_dump.c'
source_filename = "AnghaBench/freebsd/tools/tools/ath/ath_ee_v14_print/extr_ath_ee_v14_print.c_load_eeprom_dump.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"%x: %x %x %x %x %x %x %x %x\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @load_eeprom_dump(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
%3 = alloca [8 x i32], align 16
%4 = alloca [1024 x i8], align 16
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
%6 = tail call ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @err(i32 noundef 1, ptr noundef nonnull @.str.1) #4
br label %10
10: ; preds = %8, %2
%11 = tail call i64 @feof(ptr noundef %6) #4
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %51
13: ; preds = %10
%14 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 1
%15 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 2
%16 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 3
%17 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 4
%18 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 5
%19 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 6
%20 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 7
%21 = getelementptr i32, ptr %1, i64 4
br label %22
22: ; preds = %13, %39
%23 = call ptr @fgets(ptr noundef nonnull %4, i32 noundef 1024, ptr noundef %6)
%24 = icmp eq ptr %23, null
br i1 %24, label %51, label %25
25: ; preds = %22
%26 = call i64 @feof(ptr noundef %6) #4
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %51
28: ; preds = %25
%29 = call i32 @strlen(ptr noundef nonnull %4) #4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = call i32 @strlen(ptr noundef nonnull %4) #4
%33 = add nsw i32 %32, -1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 %34
store i8 0, ptr %35, align 1, !tbaa !5
br label %36
36: ; preds = %31, %28
%37 = call i32 @strlen(ptr noundef nonnull %4) #4
%38 = icmp eq i32 %37, 0
br i1 %38, label %51, label %39
39: ; preds = %36
%40 = call i32 @sscanf(ptr noundef nonnull %4, ptr noundef nonnull @.str.2, ptr noundef nonnull %5, ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20) #4
%41 = load i32, ptr %5, align 4, !tbaa !8
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %1, i64 %42
%44 = load <4 x i32>, ptr %3, align 16, !tbaa !8
store <4 x i32> %44, ptr %43, align 4, !tbaa !8
%45 = sext i32 %41 to i64
%46 = getelementptr i32, ptr %21, i64 %45
%47 = add nsw i32 %41, 8
store i32 %47, ptr %5, align 4, !tbaa !8
%48 = load <4 x i32>, ptr %17, align 16, !tbaa !8
store <4 x i32> %48, ptr %46, align 4, !tbaa !8
%49 = call i64 @feof(ptr noundef %6) #4
%50 = icmp eq i64 %49, 0
br i1 %50, label %22, label %51, !llvm.loop !10
51: ; preds = %39, %22, %25, %36, %10
%52 = call i32 @fclose(ptr noundef %6)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2
declare i32 @err(i32 noundef, ptr noundef) local_unnamed_addr #3
declare i64 @feof(ptr noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2
declare i32 @strlen(ptr noundef) local_unnamed_addr #3
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture 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 = { 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 = { "no-trapping-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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/tools/tools/ath/ath_ee_v14_print/extr_ath_ee_v14_print.c_load_eeprom_dump.c'
source_filename = "AnghaBench/freebsd/tools/tools/ath/ath_ee_v14_print/extr_ath_ee_v14_print.c_load_eeprom_dump.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"%x: %x %x %x %x %x %x %x %x\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @load_eeprom_dump(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
%3 = alloca [8 x i32], align 16
%4 = alloca [1024 x i8], align 1
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
%6 = tail call ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @err(i32 noundef 1, ptr noundef nonnull @.str.1) #4
br label %10
10: ; preds = %8, %2
%11 = tail call i64 @feof(ptr noundef %6) #4
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %49
13: ; preds = %10
%14 = getelementptr inbounds i8, ptr %3, i64 4
%15 = getelementptr inbounds i8, ptr %3, i64 8
%16 = getelementptr inbounds i8, ptr %3, i64 12
%17 = getelementptr inbounds i8, ptr %3, i64 16
%18 = getelementptr inbounds i8, ptr %3, i64 20
%19 = getelementptr inbounds i8, ptr %3, i64 24
%20 = getelementptr inbounds i8, ptr %3, i64 28
br label %21
21: ; preds = %13, %38
%22 = call ptr @fgets(ptr noundef nonnull %4, i32 noundef 1024, ptr noundef %6)
%23 = icmp eq ptr %22, null
br i1 %23, label %49, label %24
24: ; preds = %21
%25 = call i64 @feof(ptr noundef %6) #4
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %49
27: ; preds = %24
%28 = call i32 @strlen(ptr noundef nonnull %4) #4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = call i32 @strlen(ptr noundef nonnull %4) #4
%32 = add nsw i32 %31, -1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 %33
store i8 0, ptr %34, align 1, !tbaa !6
br label %35
35: ; preds = %30, %27
%36 = call i32 @strlen(ptr noundef nonnull %4) #4
%37 = icmp eq i32 %36, 0
br i1 %37, label %49, label %38
38: ; preds = %35
%39 = call i32 @sscanf(ptr noundef nonnull %4, ptr noundef nonnull @.str.2, ptr noundef nonnull %5, ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20) #4
%40 = load i32, ptr %5, align 4, !tbaa !9
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %1, i64 %41
%43 = load <4 x i32>, ptr %3, align 16, !tbaa !9
store <4 x i32> %43, ptr %42, align 4, !tbaa !9
%44 = getelementptr i8, ptr %42, i64 16
%45 = add nsw i32 %40, 8
store i32 %45, ptr %5, align 4, !tbaa !9
%46 = load <4 x i32>, ptr %17, align 16, !tbaa !9
store <4 x i32> %46, ptr %44, align 4, !tbaa !9
%47 = call i64 @feof(ptr noundef %6) #4
%48 = icmp eq i64 %47, 0
br i1 %48, label %21, label %49, !llvm.loop !11
49: ; preds = %38, %21, %24, %35, %10
%50 = call i32 @fclose(ptr noundef %6)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2
declare i32 @err(i32 noundef, ptr noundef) local_unnamed_addr #3
declare i64 @feof(ptr noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2
declare i32 @strlen(ptr noundef) local_unnamed_addr #3
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture 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 = { 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 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+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 = !{!"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"}
| freebsd_tools_tools_ath_ath_ee_v14_print_extr_ath_ee_v14_print.c_load_eeprom_dump |
; ModuleID = 'AnghaBench/Quake-III-Arena/code/renderer/extr_tr_image.c_R_GammaCorrect.c'
source_filename = "AnghaBench/Quake-III-Arena/code/renderer/extr_tr_image.c_R_GammaCorrect.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@s_gammatable = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @R_GammaCorrect(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %49
4: ; preds = %2
%5 = load ptr, ptr @s_gammatable, align 8, !tbaa !5
%6 = zext nneg i32 %1 to i64
%7 = and i64 %6, 3
%8 = icmp ult i32 %1, 4
br i1 %8, label %36, label %9
9: ; preds = %4
%10 = and i64 %6, 2147483644
br label %11
11: ; preds = %11, %9
%12 = phi i64 [ 0, %9 ], [ %33, %11 ]
%13 = phi i64 [ 0, %9 ], [ %34, %11 ]
%14 = getelementptr inbounds i64, ptr %0, i64 %12
%15 = load i64, ptr %14, align 8, !tbaa !9
%16 = getelementptr inbounds i64, ptr %5, i64 %15
%17 = load i64, ptr %16, align 8, !tbaa !9
store i64 %17, ptr %14, align 8, !tbaa !9
%18 = or disjoint i64 %12, 1
%19 = getelementptr inbounds i64, ptr %0, i64 %18
%20 = load i64, ptr %19, align 8, !tbaa !9
%21 = getelementptr inbounds i64, ptr %5, i64 %20
%22 = load i64, ptr %21, align 8, !tbaa !9
store i64 %22, ptr %19, align 8, !tbaa !9
%23 = or disjoint i64 %12, 2
%24 = getelementptr inbounds i64, ptr %0, i64 %23
%25 = load i64, ptr %24, align 8, !tbaa !9
%26 = getelementptr inbounds i64, ptr %5, i64 %25
%27 = load i64, ptr %26, align 8, !tbaa !9
store i64 %27, ptr %24, align 8, !tbaa !9
%28 = or disjoint i64 %12, 3
%29 = getelementptr inbounds i64, ptr %0, i64 %28
%30 = load i64, ptr %29, align 8, !tbaa !9
%31 = getelementptr inbounds i64, ptr %5, i64 %30
%32 = load i64, ptr %31, align 8, !tbaa !9
store i64 %32, ptr %29, align 8, !tbaa !9
%33 = add nuw nsw i64 %12, 4
%34 = add i64 %13, 4
%35 = icmp eq i64 %34, %10
br i1 %35, label %36, label %11, !llvm.loop !11
36: ; preds = %11, %4
%37 = phi i64 [ 0, %4 ], [ %33, %11 ]
%38 = icmp eq i64 %7, 0
br i1 %38, label %49, label %39
39: ; preds = %36, %39
%40 = phi i64 [ %46, %39 ], [ %37, %36 ]
%41 = phi i64 [ %47, %39 ], [ 0, %36 ]
%42 = getelementptr inbounds i64, ptr %0, i64 %40
%43 = load i64, ptr %42, align 8, !tbaa !9
%44 = getelementptr inbounds i64, ptr %5, i64 %43
%45 = load i64, ptr %44, align 8, !tbaa !9
store i64 %45, ptr %42, align 8, !tbaa !9
%46 = add nuw nsw i64 %40, 1
%47 = add i64 %41, 1
%48 = icmp eq i64 %47, %7
br i1 %48, label %49, label %39, !llvm.loop !13
49: ; preds = %36, %39, %2
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, !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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
| ; ModuleID = 'AnghaBench/Quake-III-Arena/code/renderer/extr_tr_image.c_R_GammaCorrect.c'
source_filename = "AnghaBench/Quake-III-Arena/code/renderer/extr_tr_image.c_R_GammaCorrect.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@s_gammatable = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define void @R_GammaCorrect(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %15
4: ; preds = %2
%5 = load ptr, ptr @s_gammatable, align 8, !tbaa !6
%6 = zext nneg i32 %1 to i64
br label %7
7: ; preds = %4, %7
%8 = phi i64 [ 0, %4 ], [ %13, %7 ]
%9 = getelementptr inbounds i64, ptr %0, i64 %8
%10 = load i64, ptr %9, align 8, !tbaa !10
%11 = getelementptr inbounds i64, ptr %5, i64 %10
%12 = load i64, ptr %11, align 8, !tbaa !10
store i64 %12, ptr %9, align 8, !tbaa !10
%13 = add nuw nsw i64 %8, 1
%14 = icmp eq i64 %13, %6
br i1 %14, label %15, label %7, !llvm.loop !12
15: ; preds = %7, %2
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, !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}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| Quake-III-Arena_code_renderer_extr_tr_image.c_R_GammaCorrect |
; ModuleID = 'AnghaBench/exploitdb/exploits/windows/local/extr_43929.c_TakeOwnership.c'
source_filename = "AnghaBench/exploitdb/exploits/windows/local/extr_43929.c_TakeOwnership.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_11__ = type { %struct.TYPE_8__, i32, i32, i32 }
%struct.TYPE_8__ = type { i64, i32, i32 }
@TOKEN_ALL_ACCESS = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"\0A[-] OpenProcessToken failed %d\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"\0A[+] OpenProcessToken successful\00", align 1
@TokenUser = dso_local local_unnamed_addr global i32 0, align 4
@ERROR_INSUFFICIENT_BUFFER = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [51 x i8] c"\0A[-] Failed to initialize GetTokenInformation %d\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"\0A[-] GetTokenInformation failed %d\0A\0A\00", align 1
@KEY_ALL_ACCESS = dso_local local_unnamed_addr global i32 0, align 4
@GRANT_ACCESS = dso_local local_unnamed_addr global i32 0, align 4
@SUB_CONTAINERS_AND_OBJECTS_INHERIT = dso_local local_unnamed_addr global i32 0, align 4
@TRUSTEE_IS_SID = dso_local local_unnamed_addr global i32 0, align 4
@TRUSTEE_IS_USER = dso_local local_unnamed_addr global i32 0, align 4
@ERROR_SUCCESS = dso_local local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [32 x i8] c"\0A[+] SetEntriesInAcl successful\00", align 1
@MSIEXECKEY = dso_local local_unnamed_addr global ptr null, align 8
@SE_REGISTRY_KEY = dso_local local_unnamed_addr global i32 0, align 4
@OWNER_SECURITY_INFORMATION = dso_local local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [50 x i8] c"\0A[-] Failed to obtain the object's ownership %d\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"\0A[+] Ownership '%s' successful\00", align 1
@DACL_SECURITY_INFORMATION = dso_local local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [45 x i8] c"\0A[-] Failed to modify the object's DACL %d\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c"\0A[+] Object's DACL successfully modified\00", align 1
@str = private unnamed_addr constant [30 x i8] c"\0A[-] SetEntriesInAcl failure\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @TakeOwnership() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca %struct.TYPE_11__, align 8
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
store ptr null, ptr %2, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
%5 = tail call i32 (...) @GetCurrentProcess() #5
%6 = load i32, ptr @TOKEN_ALL_ACCESS, align 4, !tbaa !9
%7 = call i32 @OpenProcessToken(i32 noundef %5, i32 noundef %6, ptr noundef nonnull %1) #5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = call i32 (...) @GetLastError() #5
%11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %10)
%12 = call i32 @ExitProcess(i32 noundef 1) #5
br label %13
13: ; preds = %9, %0
%14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
%15 = load i32, ptr %1, align 4, !tbaa !9
%16 = load i32, ptr @TokenUser, align 4, !tbaa !9
%17 = call i32 @GetTokenInformation(i32 noundef %15, i32 noundef %16, ptr noundef null, i32 noundef 0, ptr noundef nonnull %4) #5
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %13
%20 = call i32 (...) @GetLastError() #5
%21 = sext i32 %20 to i64
%22 = load i64, ptr @ERROR_INSUFFICIENT_BUFFER, align 8, !tbaa !11
%23 = icmp eq i64 %22, %21
br i1 %23, label %28, label %24
24: ; preds = %19
%25 = call i32 (...) @GetLastError() #5
%26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %25)
%27 = call i32 @ExitProcess(i32 noundef 1) #5
br label %28
28: ; preds = %24, %19, %13
%29 = load i32, ptr %4, align 4, !tbaa !9
%30 = call i64 @LocalAlloc(i32 noundef 0, i32 noundef %29) #5
%31 = inttoptr i64 %30 to ptr
%32 = load i32, ptr %1, align 4, !tbaa !9
%33 = load i32, ptr @TokenUser, align 4, !tbaa !9
%34 = load i32, ptr %4, align 4, !tbaa !9
%35 = call i32 @GetTokenInformation(i32 noundef %32, i32 noundef %33, ptr noundef %31, i32 noundef %34, ptr noundef nonnull %4) #5
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %28
%38 = call i32 (...) @GetLastError() #5
%39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %38)
%40 = call i32 @ExitProcess(i32 noundef 1) #5
br label %41
41: ; preds = %37, %28
%42 = call i32 @ZeroMemory(ptr noundef nonnull %3, i32 noundef 32) #5
%43 = load i32, ptr @KEY_ALL_ACCESS, align 4, !tbaa !9
%44 = getelementptr inbounds %struct.TYPE_11__, ptr %3, i64 0, i32 3
store i32 %43, ptr %44, align 8, !tbaa !13
%45 = load i32, ptr @GRANT_ACCESS, align 4, !tbaa !9
%46 = getelementptr inbounds %struct.TYPE_11__, ptr %3, i64 0, i32 2
store i32 %45, ptr %46, align 4, !tbaa !16
%47 = load i32, ptr @SUB_CONTAINERS_AND_OBJECTS_INHERIT, align 4, !tbaa !9
%48 = getelementptr inbounds %struct.TYPE_11__, ptr %3, i64 0, i32 1
store i32 %47, ptr %48, align 8, !tbaa !17
%49 = load i32, ptr @TRUSTEE_IS_SID, align 4, !tbaa !9
%50 = getelementptr inbounds %struct.TYPE_8__, ptr %3, i64 0, i32 2
store i32 %49, ptr %50, align 4, !tbaa !18
%51 = load i32, ptr @TRUSTEE_IS_USER, align 4, !tbaa !9
%52 = getelementptr inbounds %struct.TYPE_8__, ptr %3, i64 0, i32 1
store i32 %51, ptr %52, align 8, !tbaa !19
%53 = load ptr, ptr %31, align 8, !tbaa !20
%54 = ptrtoint ptr %53 to i64
store i64 %54, ptr %3, align 8, !tbaa !23
%55 = call i64 @SetEntriesInAcl(i32 noundef 1, ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %2) #5
%56 = load i64, ptr @ERROR_SUCCESS, align 8, !tbaa !11
%57 = icmp eq i64 %55, %56
br i1 %57, label %61, label %58
58: ; preds = %41
%59 = call i32 @puts(ptr nonnull dereferenceable(1) @str)
%60 = call i32 @ExitProcess(i32 noundef 1) #5
br label %61
61: ; preds = %58, %41
%62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
%63 = load ptr, ptr @MSIEXECKEY, align 8, !tbaa !5
%64 = load i32, ptr @SE_REGISTRY_KEY, align 4, !tbaa !9
%65 = load i32, ptr @OWNER_SECURITY_INFORMATION, align 4, !tbaa !9
%66 = load ptr, ptr %31, align 8, !tbaa !20
%67 = call i64 @SetNamedSecurityInfo(ptr noundef %63, i32 noundef %64, i32 noundef %65, ptr noundef %66, ptr noundef null, ptr noundef null, ptr noundef null) #5
%68 = load i64, ptr @ERROR_SUCCESS, align 8, !tbaa !11
%69 = icmp eq i64 %67, %68
br i1 %69, label %74, label %70
70: ; preds = %61
%71 = call i32 (...) @GetLastError() #5
%72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %71)
%73 = call i32 @ExitProcess(i32 noundef 1) #5
br label %74
74: ; preds = %70, %61
%75 = load ptr, ptr @MSIEXECKEY, align 8, !tbaa !5
%76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %75)
%77 = load ptr, ptr @MSIEXECKEY, align 8, !tbaa !5
%78 = load i32, ptr @SE_REGISTRY_KEY, align 4, !tbaa !9
%79 = load i32, ptr @DACL_SECURITY_INFORMATION, align 4, !tbaa !9
%80 = load ptr, ptr %2, align 8, !tbaa !5
%81 = call i64 @SetNamedSecurityInfo(ptr noundef %77, i32 noundef %78, i32 noundef %79, ptr noundef null, ptr noundef null, ptr noundef %80, ptr noundef null) #5
%82 = load i64, ptr @ERROR_SUCCESS, align 8, !tbaa !11
%83 = icmp eq i64 %81, %82
br i1 %83, label %88, label %84
84: ; preds = %74
%85 = call i32 (...) @GetLastError() #5
%86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %85)
%87 = call i32 @ExitProcess(i32 noundef 1) #5
br label %88
88: ; preds = %84, %74
%89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
%90 = load ptr, ptr %2, align 8, !tbaa !5
%91 = call i32 @LocalFree(ptr noundef %90) #5
%92 = load i32, ptr %1, align 4, !tbaa !9
%93 = call i32 @CloseHandle(i32 noundef %92) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @OpenProcessToken(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GetCurrentProcess(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare i32 @GetLastError(...) local_unnamed_addr #2
declare i32 @ExitProcess(i32 noundef) local_unnamed_addr #2
declare i32 @GetTokenInformation(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @LocalAlloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ZeroMemory(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @SetEntriesInAcl(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @SetNamedSecurityInfo(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @LocalFree(ptr noundef) local_unnamed_addr #2
declare i32 @CloseHandle(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"TYPE_11__", !15, i64 0, !10, i64 16, !10, i64 20, !10, i64 24}
!15 = !{!"TYPE_8__", !12, i64 0, !10, i64 8, !10, i64 12}
!16 = !{!14, !10, i64 20}
!17 = !{!14, !10, i64 16}
!18 = !{!14, !10, i64 12}
!19 = !{!14, !10, i64 8}
!20 = !{!21, !6, i64 0}
!21 = !{!"TYPE_10__", !22, i64 0}
!22 = !{!"TYPE_9__", !6, i64 0}
!23 = !{!14, !12, i64 0}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/windows/local/extr_43929.c_TakeOwnership.c'
source_filename = "AnghaBench/exploitdb/exploits/windows/local/extr_43929.c_TakeOwnership.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_11__ = type { %struct.TYPE_8__, i32, i32, i32 }
%struct.TYPE_8__ = type { i64, i32, i32 }
@TOKEN_ALL_ACCESS = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c"\0A[-] OpenProcessToken failed %d\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"\0A[+] OpenProcessToken successful\00", align 1
@TokenUser = common local_unnamed_addr global i32 0, align 4
@ERROR_INSUFFICIENT_BUFFER = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [51 x i8] c"\0A[-] Failed to initialize GetTokenInformation %d\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"\0A[-] GetTokenInformation failed %d\0A\0A\00", align 1
@KEY_ALL_ACCESS = common local_unnamed_addr global i32 0, align 4
@GRANT_ACCESS = common local_unnamed_addr global i32 0, align 4
@SUB_CONTAINERS_AND_OBJECTS_INHERIT = common local_unnamed_addr global i32 0, align 4
@TRUSTEE_IS_SID = common local_unnamed_addr global i32 0, align 4
@TRUSTEE_IS_USER = common local_unnamed_addr global i32 0, align 4
@ERROR_SUCCESS = common local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [32 x i8] c"\0A[+] SetEntriesInAcl successful\00", align 1
@MSIEXECKEY = common local_unnamed_addr global ptr null, align 8
@SE_REGISTRY_KEY = common local_unnamed_addr global i32 0, align 4
@OWNER_SECURITY_INFORMATION = common local_unnamed_addr global i32 0, align 4
@.str.6 = private unnamed_addr constant [50 x i8] c"\0A[-] Failed to obtain the object's ownership %d\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"\0A[+] Ownership '%s' successful\00", align 1
@DACL_SECURITY_INFORMATION = common local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [45 x i8] c"\0A[-] Failed to modify the object's DACL %d\0A\0A\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c"\0A[+] Object's DACL successfully modified\00", align 1
@str = private unnamed_addr constant [30 x i8] c"\0A[-] SetEntriesInAcl failure\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @TakeOwnership() local_unnamed_addr #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca %struct.TYPE_11__, align 8
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
store ptr null, ptr %2, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
%5 = tail call i32 @GetCurrentProcess() #5
%6 = load i32, ptr @TOKEN_ALL_ACCESS, align 4, !tbaa !10
%7 = call i32 @OpenProcessToken(i32 noundef %5, i32 noundef %6, ptr noundef nonnull %1) #5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = call i32 @GetLastError() #5
%11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %10)
%12 = call i32 @ExitProcess(i32 noundef 1) #5
br label %13
13: ; preds = %9, %0
%14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
%15 = load i32, ptr %1, align 4, !tbaa !10
%16 = load i32, ptr @TokenUser, align 4, !tbaa !10
%17 = call i32 @GetTokenInformation(i32 noundef %15, i32 noundef %16, ptr noundef null, i32 noundef 0, ptr noundef nonnull %4) #5
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %13
%20 = call i32 @GetLastError() #5
%21 = sext i32 %20 to i64
%22 = load i64, ptr @ERROR_INSUFFICIENT_BUFFER, align 8, !tbaa !12
%23 = icmp eq i64 %22, %21
br i1 %23, label %28, label %24
24: ; preds = %19
%25 = call i32 @GetLastError() #5
%26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %25)
%27 = call i32 @ExitProcess(i32 noundef 1) #5
br label %28
28: ; preds = %24, %19, %13
%29 = load i32, ptr %4, align 4, !tbaa !10
%30 = call i64 @LocalAlloc(i32 noundef 0, i32 noundef %29) #5
%31 = inttoptr i64 %30 to ptr
%32 = load i32, ptr %1, align 4, !tbaa !10
%33 = load i32, ptr @TokenUser, align 4, !tbaa !10
%34 = load i32, ptr %4, align 4, !tbaa !10
%35 = call i32 @GetTokenInformation(i32 noundef %32, i32 noundef %33, ptr noundef %31, i32 noundef %34, ptr noundef nonnull %4) #5
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %28
%38 = call i32 @GetLastError() #5
%39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %38)
%40 = call i32 @ExitProcess(i32 noundef 1) #5
br label %41
41: ; preds = %37, %28
%42 = call i32 @ZeroMemory(ptr noundef nonnull %3, i32 noundef 32) #5
%43 = load i32, ptr @KEY_ALL_ACCESS, align 4, !tbaa !10
%44 = getelementptr inbounds i8, ptr %3, i64 24
store i32 %43, ptr %44, align 8, !tbaa !14
%45 = load i32, ptr @GRANT_ACCESS, align 4, !tbaa !10
%46 = getelementptr inbounds i8, ptr %3, i64 20
store i32 %45, ptr %46, align 4, !tbaa !17
%47 = load i32, ptr @SUB_CONTAINERS_AND_OBJECTS_INHERIT, align 4, !tbaa !10
%48 = getelementptr inbounds i8, ptr %3, i64 16
store i32 %47, ptr %48, align 8, !tbaa !18
%49 = load i32, ptr @TRUSTEE_IS_SID, align 4, !tbaa !10
%50 = getelementptr inbounds i8, ptr %3, i64 12
store i32 %49, ptr %50, align 4, !tbaa !19
%51 = load i32, ptr @TRUSTEE_IS_USER, align 4, !tbaa !10
%52 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %51, ptr %52, align 8, !tbaa !20
%53 = load ptr, ptr %31, align 8, !tbaa !21
%54 = ptrtoint ptr %53 to i64
store i64 %54, ptr %3, align 8, !tbaa !24
%55 = call i64 @SetEntriesInAcl(i32 noundef 1, ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %2) #5
%56 = load i64, ptr @ERROR_SUCCESS, align 8, !tbaa !12
%57 = icmp eq i64 %55, %56
br i1 %57, label %61, label %58
58: ; preds = %41
%59 = call i32 @puts(ptr nonnull dereferenceable(1) @str)
%60 = call i32 @ExitProcess(i32 noundef 1) #5
br label %61
61: ; preds = %58, %41
%62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
%63 = load ptr, ptr @MSIEXECKEY, align 8, !tbaa !6
%64 = load i32, ptr @SE_REGISTRY_KEY, align 4, !tbaa !10
%65 = load i32, ptr @OWNER_SECURITY_INFORMATION, align 4, !tbaa !10
%66 = load ptr, ptr %31, align 8, !tbaa !21
%67 = call i64 @SetNamedSecurityInfo(ptr noundef %63, i32 noundef %64, i32 noundef %65, ptr noundef %66, ptr noundef null, ptr noundef null, ptr noundef null) #5
%68 = load i64, ptr @ERROR_SUCCESS, align 8, !tbaa !12
%69 = icmp eq i64 %67, %68
br i1 %69, label %74, label %70
70: ; preds = %61
%71 = call i32 @GetLastError() #5
%72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %71)
%73 = call i32 @ExitProcess(i32 noundef 1) #5
br label %74
74: ; preds = %70, %61
%75 = load ptr, ptr @MSIEXECKEY, align 8, !tbaa !6
%76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %75)
%77 = load ptr, ptr @MSIEXECKEY, align 8, !tbaa !6
%78 = load i32, ptr @SE_REGISTRY_KEY, align 4, !tbaa !10
%79 = load i32, ptr @DACL_SECURITY_INFORMATION, align 4, !tbaa !10
%80 = load ptr, ptr %2, align 8, !tbaa !6
%81 = call i64 @SetNamedSecurityInfo(ptr noundef %77, i32 noundef %78, i32 noundef %79, ptr noundef null, ptr noundef null, ptr noundef %80, ptr noundef null) #5
%82 = load i64, ptr @ERROR_SUCCESS, align 8, !tbaa !12
%83 = icmp eq i64 %81, %82
br i1 %83, label %88, label %84
84: ; preds = %74
%85 = call i32 @GetLastError() #5
%86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %85)
%87 = call i32 @ExitProcess(i32 noundef 1) #5
br label %88
88: ; preds = %84, %74
%89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
%90 = load ptr, ptr %2, align 8, !tbaa !6
%91 = call i32 @LocalFree(ptr noundef %90) #5
%92 = load i32, ptr %1, align 4, !tbaa !10
%93 = call i32 @CloseHandle(i32 noundef %92) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @OpenProcessToken(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GetCurrentProcess(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare i32 @GetLastError(...) local_unnamed_addr #2
declare i32 @ExitProcess(i32 noundef) local_unnamed_addr #2
declare i32 @GetTokenInformation(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @LocalAlloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ZeroMemory(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @SetEntriesInAcl(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @SetNamedSecurityInfo(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @LocalFree(ptr noundef) local_unnamed_addr #2
declare i32 @CloseHandle(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nofree nounwind }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !11, i64 24}
!15 = !{!"TYPE_11__", !16, i64 0, !11, i64 16, !11, i64 20, !11, i64 24}
!16 = !{!"TYPE_8__", !13, i64 0, !11, i64 8, !11, i64 12}
!17 = !{!15, !11, i64 20}
!18 = !{!15, !11, i64 16}
!19 = !{!15, !11, i64 12}
!20 = !{!15, !11, i64 8}
!21 = !{!22, !7, i64 0}
!22 = !{!"TYPE_10__", !23, i64 0}
!23 = !{!"TYPE_9__", !7, i64 0}
!24 = !{!15, !13, i64 0}
| exploitdb_exploits_windows_local_extr_43929.c_TakeOwnership |
; ModuleID = 'AnghaBench/linux/drivers/crypto/extr_atmel-sha.c_atmel_sha_append_sg.c'
source_filename = "AnghaBench/linux/drivers/crypto/extr_atmel-sha.c_atmel_sha_append_sg.c"
target datalayout = "e-m:e-p270:32:32-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.atmel_sha_reqctx = type { i64, i64, i64, i64, i64, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @atmel_sha_append_sg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i64 @atmel_sha_append_sg(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds %struct.atmel_sha_reqctx, ptr %0, i64 0, i32 2
%3 = getelementptr inbounds %struct.atmel_sha_reqctx, ptr %0, i64 0, i32 1
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = load i64, ptr %3, align 8, !tbaa !11
%6 = icmp slt i64 %4, %5
br i1 %6, label %7, label %60
7: ; preds = %1
%8 = getelementptr inbounds %struct.atmel_sha_reqctx, ptr %0, i64 0, i32 5
%9 = getelementptr inbounds %struct.atmel_sha_reqctx, ptr %0, i64 0, i32 3
%10 = getelementptr inbounds %struct.atmel_sha_reqctx, ptr %0, i64 0, i32 4
br label %11
11: ; preds = %7, %35
%12 = load i64, ptr %2, align 8, !tbaa !12
%13 = icmp eq i64 %12, 0
br i1 %13, label %60, label %14
14: ; preds = %11
%15 = load ptr, ptr %8, align 8, !tbaa !13
%16 = load i64, ptr %15, align 8, !tbaa !14
%17 = load i64, ptr %9, align 8, !tbaa !16
%18 = sub i64 %16, %17
%19 = tail call i64 @min(i64 noundef %18, i64 noundef %12) #2
%20 = load i64, ptr %3, align 8, !tbaa !11
%21 = load i64, ptr %0, align 8, !tbaa !5
%22 = sub nsw i64 %20, %21
%23 = tail call i64 @min(i64 noundef %19, i64 noundef %22) #2
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %14
%26 = load ptr, ptr %8, align 8, !tbaa !13
%27 = load i64, ptr %26, align 8, !tbaa !14
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %60
29: ; preds = %25
%30 = tail call i32 @sg_is_last(ptr noundef nonnull %26) #2
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %60
32: ; preds = %29
%33 = load ptr, ptr %8, align 8, !tbaa !13
%34 = tail call ptr @sg_next(ptr noundef %33) #2
store ptr %34, ptr %8, align 8, !tbaa !13
br label %35
35: ; preds = %39, %59, %58, %32
%36 = load i64, ptr %0, align 8, !tbaa !5
%37 = load i64, ptr %3, align 8, !tbaa !11
%38 = icmp slt i64 %36, %37
br i1 %38, label %11, label %60, !llvm.loop !17
39: ; preds = %14
%40 = load i64, ptr %10, align 8, !tbaa !19
%41 = load i64, ptr %0, align 8, !tbaa !5
%42 = add nsw i64 %41, %40
%43 = load ptr, ptr %8, align 8, !tbaa !13
%44 = load i64, ptr %9, align 8, !tbaa !16
%45 = tail call i32 @scatterwalk_map_and_copy(i64 noundef %42, ptr noundef %43, i64 noundef %44, i64 noundef %23, i32 noundef 0) #2
%46 = load i64, ptr %0, align 8, !tbaa !5
%47 = add i64 %46, %23
store i64 %47, ptr %0, align 8, !tbaa !5
%48 = load i64, ptr %9, align 8, !tbaa !16
%49 = add i64 %48, %23
store i64 %49, ptr %9, align 8, !tbaa !16
%50 = load i64, ptr %2, align 8, !tbaa !12
%51 = sub i64 %50, %23
store i64 %51, ptr %2, align 8, !tbaa !12
%52 = load ptr, ptr %8, align 8, !tbaa !13
%53 = load i64, ptr %52, align 8, !tbaa !14
%54 = icmp eq i64 %49, %53
br i1 %54, label %55, label %35
55: ; preds = %39
%56 = tail call ptr @sg_next(ptr noundef nonnull %52) #2
store ptr %56, ptr %8, align 8, !tbaa !13
%57 = icmp eq ptr %56, null
br i1 %57, label %59, label %58
58: ; preds = %55
store i64 0, ptr %9, align 8, !tbaa !16
br label %35
59: ; preds = %55
store i64 0, ptr %2, align 8, !tbaa !12
br label %35
60: ; preds = %11, %29, %25, %35, %1
ret i64 0
}
declare i64 @min(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sg_is_last(ptr noundef) local_unnamed_addr #1
declare ptr @sg_next(ptr noundef) local_unnamed_addr #1
declare i32 @scatterwalk_map_and_copy(i64 noundef, 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, !7, i64 0}
!6 = !{!"atmel_sha_reqctx", !7, i64 0, !7, i64 8, !7, 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 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !10, i64 40}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_4__", !7, i64 0}
!16 = !{!6, !7, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !7, i64 32}
| ; ModuleID = 'AnghaBench/linux/drivers/crypto/extr_atmel-sha.c_atmel_sha_append_sg.c'
source_filename = "AnghaBench/linux/drivers/crypto/extr_atmel-sha.c_atmel_sha_append_sg.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 @atmel_sha_append_sg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i64 @atmel_sha_append_sg(ptr nocapture noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = load i64, ptr %3, align 8, !tbaa !12
%6 = icmp slt i64 %4, %5
br i1 %6, label %7, label %60
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %0, i64 40
%9 = getelementptr inbounds i8, ptr %0, i64 24
%10 = getelementptr inbounds i8, ptr %0, i64 32
br label %11
11: ; preds = %7, %35
%12 = load i64, ptr %2, align 8, !tbaa !13
%13 = icmp eq i64 %12, 0
br i1 %13, label %60, label %14
14: ; preds = %11
%15 = load ptr, ptr %8, align 8, !tbaa !14
%16 = load i64, ptr %15, align 8, !tbaa !15
%17 = load i64, ptr %9, align 8, !tbaa !17
%18 = sub i64 %16, %17
%19 = tail call i64 @min(i64 noundef %18, i64 noundef %12) #2
%20 = load i64, ptr %3, align 8, !tbaa !12
%21 = load i64, ptr %0, align 8, !tbaa !6
%22 = sub nsw i64 %20, %21
%23 = tail call i64 @min(i64 noundef %19, i64 noundef %22) #2
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %14
%26 = load ptr, ptr %8, align 8, !tbaa !14
%27 = load i64, ptr %26, align 8, !tbaa !15
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %60
29: ; preds = %25
%30 = tail call i32 @sg_is_last(ptr noundef nonnull %26) #2
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %60
32: ; preds = %29
%33 = load ptr, ptr %8, align 8, !tbaa !14
%34 = tail call ptr @sg_next(ptr noundef %33) #2
store ptr %34, ptr %8, align 8, !tbaa !14
br label %35
35: ; preds = %39, %59, %58, %32
%36 = load i64, ptr %0, align 8, !tbaa !6
%37 = load i64, ptr %3, align 8, !tbaa !12
%38 = icmp slt i64 %36, %37
br i1 %38, label %11, label %60, !llvm.loop !18
39: ; preds = %14
%40 = load i64, ptr %10, align 8, !tbaa !20
%41 = load i64, ptr %0, align 8, !tbaa !6
%42 = add nsw i64 %41, %40
%43 = load ptr, ptr %8, align 8, !tbaa !14
%44 = load i64, ptr %9, align 8, !tbaa !17
%45 = tail call i32 @scatterwalk_map_and_copy(i64 noundef %42, ptr noundef %43, i64 noundef %44, i64 noundef %23, i32 noundef 0) #2
%46 = load i64, ptr %0, align 8, !tbaa !6
%47 = add i64 %46, %23
store i64 %47, ptr %0, align 8, !tbaa !6
%48 = load i64, ptr %9, align 8, !tbaa !17
%49 = add i64 %48, %23
store i64 %49, ptr %9, align 8, !tbaa !17
%50 = load i64, ptr %2, align 8, !tbaa !13
%51 = sub i64 %50, %23
store i64 %51, ptr %2, align 8, !tbaa !13
%52 = load ptr, ptr %8, align 8, !tbaa !14
%53 = load i64, ptr %52, align 8, !tbaa !15
%54 = icmp eq i64 %49, %53
br i1 %54, label %55, label %35
55: ; preds = %39
%56 = tail call ptr @sg_next(ptr noundef nonnull %52) #2
store ptr %56, ptr %8, align 8, !tbaa !14
%57 = icmp eq ptr %56, null
br i1 %57, label %59, label %58
58: ; preds = %55
store i64 0, ptr %9, align 8, !tbaa !17
br label %35
59: ; preds = %55
store i64 0, ptr %2, align 8, !tbaa !13
br label %35
60: ; preds = %11, %29, %25, %35, %1
ret i64 0
}
declare i64 @min(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sg_is_last(ptr noundef) local_unnamed_addr #1
declare ptr @sg_next(ptr noundef) local_unnamed_addr #1
declare i32 @scatterwalk_map_and_copy(i64 noundef, 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, !8, i64 0}
!7 = !{!"atmel_sha_reqctx", !8, i64 0, !8, i64 8, !8, 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 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 8}
!13 = !{!7, !8, i64 16}
!14 = !{!7, !11, i64 40}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_4__", !8, i64 0}
!17 = !{!7, !8, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !8, i64 32}
| linux_drivers_crypto_extr_atmel-sha.c_atmel_sha_append_sg |
; ModuleID = 'AnghaBench/linux/fs/gfs2/extr_dir.c_dir_e_read.c'
source_filename = "AnghaBench/linux/fs/gfs2/extr_dir.c_dir_e_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.gfs2_inode = type { i32, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @dir_e_read], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @dir_e_read(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = tail call ptr @GFS2_I(ptr noundef %0) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
store i32 0, ptr %4, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
store i32 0, ptr %5, align 4, !tbaa !5
%7 = load i32, ptr %6, align 8, !tbaa !9
%8 = tail call i32 @BIT(i32 noundef %7) #4
%9 = load i32, ptr %1, align 4, !tbaa !12
%10 = tail call i32 @gfs2_dir_offset2hash(i32 noundef %9) #4
%11 = load i32, ptr %6, align 8, !tbaa !9
%12 = sub i32 32, %11
%13 = ashr i32 %10, %12
%14 = getelementptr inbounds %struct.gfs2_inode, ptr %6, i64 0, i32 1
%15 = load ptr, ptr %14, align 8, !tbaa !14
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store i64 0, ptr %2, align 8, !tbaa !15
br label %18
18: ; preds = %17, %3
%19 = tail call ptr @gfs2_dir_get_hash_table(ptr noundef nonnull %6) #4
%20 = tail call i64 @IS_ERR(ptr noundef %19) #4
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %18
%23 = tail call i32 @PTR_ERR(ptr noundef %19) #4
br label %47
24: ; preds = %18
%25 = tail call i32 @gfs2_dir_readahead(ptr noundef %0, i32 noundef %8, i32 noundef %13, ptr noundef %2) #4
%26 = icmp slt i32 %13, %8
br i1 %26, label %27, label %44
27: ; preds = %24, %35
%28 = phi i32 [ %42, %35 ], [ %13, %24 ]
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %19, i64 %29
%31 = load i32, ptr %30, align 4, !tbaa !5
%32 = call i32 @be64_to_cpu(i32 noundef %31) #4
%33 = call i32 @gfs2_dir_read_leaf(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef %32) #4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %44
35: ; preds = %27
%36 = load i32, ptr %6, align 8, !tbaa !9
%37 = load i32, ptr %5, align 4, !tbaa !5
%38 = sub i32 %36, %37
%39 = call i32 @BIT(i32 noundef %38) #4
%40 = sub i32 0, %39
%41 = and i32 %28, %40
%42 = add nsw i32 %41, %39
%43 = icmp slt i32 %42, %8
br i1 %43, label %27, label %44, !llvm.loop !18
44: ; preds = %35, %27, %24
%45 = phi i32 [ 0, %24 ], [ %33, %27 ], [ 0, %35 ]
%46 = call i32 @llvm.smin.i32(i32 %45, i32 0)
br label %47
47: ; preds = %44, %22
%48 = phi i32 [ %23, %22 ], [ %46, %44 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
ret i32 %48
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @GFS2_I(ptr noundef) local_unnamed_addr #2
declare i32 @BIT(i32 noundef) local_unnamed_addr #2
declare i32 @gfs2_dir_offset2hash(i32 noundef) local_unnamed_addr #2
declare ptr @gfs2_dir_get_hash_table(ptr noundef) local_unnamed_addr #2
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #2
declare i32 @gfs2_dir_readahead(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @gfs2_dir_read_leaf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @be64_to_cpu(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"gfs2_inode", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"dir_context", !6, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!16, !17, i64 0}
!16 = !{!"file_ra_state", !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/fs/gfs2/extr_dir.c_dir_e_read.c'
source_filename = "AnghaBench/linux/fs/gfs2/extr_dir.c_dir_e_read.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 @dir_e_read], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @dir_e_read(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = tail call ptr @GFS2_I(ptr noundef %0) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
store i32 0, ptr %4, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
store i32 0, ptr %5, align 4, !tbaa !6
%7 = load i32, ptr %6, align 8, !tbaa !10
%8 = tail call i32 @BIT(i32 noundef %7) #4
%9 = load i32, ptr %1, align 4, !tbaa !13
%10 = tail call i32 @gfs2_dir_offset2hash(i32 noundef %9) #4
%11 = load i32, ptr %6, align 8, !tbaa !10
%12 = sub i32 32, %11
%13 = ashr i32 %10, %12
%14 = getelementptr inbounds i8, ptr %6, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !15
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %3
store i64 0, ptr %2, align 8, !tbaa !16
br label %18
18: ; preds = %17, %3
%19 = tail call ptr @gfs2_dir_get_hash_table(ptr noundef nonnull %6) #4
%20 = tail call i64 @IS_ERR(ptr noundef %19) #4
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %18
%23 = tail call i32 @PTR_ERR(ptr noundef %19) #4
br label %47
24: ; preds = %18
%25 = tail call i32 @gfs2_dir_readahead(ptr noundef %0, i32 noundef %8, i32 noundef %13, ptr noundef %2) #4
%26 = icmp slt i32 %13, %8
br i1 %26, label %27, label %44
27: ; preds = %24, %35
%28 = phi i32 [ %42, %35 ], [ %13, %24 ]
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %19, i64 %29
%31 = load i32, ptr %30, align 4, !tbaa !6
%32 = call i32 @be64_to_cpu(i32 noundef %31) #4
%33 = call i32 @gfs2_dir_read_leaf(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef %32) #4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %44
35: ; preds = %27
%36 = load i32, ptr %6, align 8, !tbaa !10
%37 = load i32, ptr %5, align 4, !tbaa !6
%38 = sub i32 %36, %37
%39 = call i32 @BIT(i32 noundef %38) #4
%40 = sub i32 0, %39
%41 = and i32 %28, %40
%42 = add nsw i32 %41, %39
%43 = icmp slt i32 %42, %8
br i1 %43, label %27, label %44, !llvm.loop !19
44: ; preds = %35, %27, %24
%45 = phi i32 [ 0, %24 ], [ %33, %27 ], [ 0, %35 ]
%46 = call i32 @llvm.smin.i32(i32 %45, i32 0)
br label %47
47: ; preds = %44, %22
%48 = phi i32 [ %23, %22 ], [ %46, %44 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
ret i32 %48
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @GFS2_I(ptr noundef) local_unnamed_addr #2
declare i32 @BIT(i32 noundef) local_unnamed_addr #2
declare i32 @gfs2_dir_offset2hash(i32 noundef) local_unnamed_addr #2
declare ptr @gfs2_dir_get_hash_table(ptr noundef) local_unnamed_addr #2
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #2
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #2
declare i32 @gfs2_dir_readahead(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @gfs2_dir_read_leaf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @be64_to_cpu(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"gfs2_inode", !7, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"dir_context", !7, i64 0}
!15 = !{!11, !12, i64 8}
!16 = !{!17, !18, i64 0}
!17 = !{!"file_ra_state", !18, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| linux_fs_gfs2_extr_dir.c_dir_e_read |
; ModuleID = 'AnghaBench/systemd/src/network/extr_networkd-neighbor.c_neighbor_add_foreign.c'
source_filename = "AnghaBench/systemd/src/network/extr_networkd-neighbor.c_neighbor_add_foreign.c"
target datalayout = "e-m:e-p270:32:32-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 @neighbor_add_foreign(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = tail call i32 @neighbor_add_internal(ptr noundef %0, ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #2
ret i32 %7
}
declare i32 @neighbor_add_internal(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/systemd/src/network/extr_networkd-neighbor.c_neighbor_add_foreign.c'
source_filename = "AnghaBench/systemd/src/network/extr_networkd-neighbor.c_neighbor_add_foreign.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 @neighbor_add_foreign(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = tail call i32 @neighbor_add_internal(ptr noundef %0, ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #2
ret i32 %7
}
declare i32 @neighbor_add_internal(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| systemd_src_network_extr_networkd-neighbor.c_neighbor_add_foreign |
; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_jump.c_condjump_in_parallel_p.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_jump.c_condjump_in_parallel_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"
@PARALLEL = dso_local local_unnamed_addr global i64 0, align 8
@SET = dso_local local_unnamed_addr global i64 0, align 8
@PC = dso_local local_unnamed_addr global i64 0, align 8
@LABEL_REF = dso_local local_unnamed_addr global i64 0, align 8
@IF_THEN_ELSE = dso_local local_unnamed_addr global i64 0, align 8
@pc_rtx = dso_local local_unnamed_addr global i64 0, align 8
@RETURN = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @condjump_in_parallel_p(i64 noundef %0) local_unnamed_addr #0 {
%2 = tail call i64 @PATTERN(i64 noundef %0) #2
%3 = tail call i64 @GET_CODE(i64 noundef %2) #2
%4 = load i64, ptr @PARALLEL, align 8, !tbaa !5
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %61
6: ; preds = %1
%7 = tail call i64 @XVECEXP(i64 noundef %2, i32 noundef 0, i32 noundef 0) #2
%8 = tail call i64 @GET_CODE(i64 noundef %7) #2
%9 = load i64, ptr @SET, align 8, !tbaa !5
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %61
11: ; preds = %6
%12 = tail call i64 @SET_DEST(i64 noundef %7) #2
%13 = tail call i64 @GET_CODE(i64 noundef %12) #2
%14 = load i64, ptr @PC, align 8, !tbaa !5
%15 = icmp eq i64 %13, %14
br i1 %15, label %16, label %61
16: ; preds = %11
%17 = tail call i64 @SET_SRC(i64 noundef %7) #2
%18 = tail call i64 @GET_CODE(i64 noundef %17) #2
%19 = load i64, ptr @LABEL_REF, align 8, !tbaa !5
%20 = icmp eq i64 %18, %19
br i1 %20, label %61, label %21
21: ; preds = %16
%22 = tail call i64 @SET_SRC(i64 noundef %7) #2
%23 = tail call i64 @GET_CODE(i64 noundef %22) #2
%24 = load i64, ptr @IF_THEN_ELSE, align 8, !tbaa !5
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %61
26: ; preds = %21
%27 = tail call i64 @SET_SRC(i64 noundef %7) #2
%28 = tail call i64 @XEXP(i64 noundef %27, i32 noundef 2) #2
%29 = load i64, ptr @pc_rtx, align 8, !tbaa !5
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %43
31: ; preds = %26
%32 = tail call i64 @SET_SRC(i64 noundef %7) #2
%33 = tail call i64 @XEXP(i64 noundef %32, i32 noundef 1) #2
%34 = tail call i64 @GET_CODE(i64 noundef %33) #2
%35 = load i64, ptr @LABEL_REF, align 8, !tbaa !5
%36 = icmp eq i64 %34, %35
br i1 %36, label %61, label %37
37: ; preds = %31
%38 = tail call i64 @SET_SRC(i64 noundef %7) #2
%39 = tail call i64 @XEXP(i64 noundef %38, i32 noundef 1) #2
%40 = tail call i64 @GET_CODE(i64 noundef %39) #2
%41 = load i64, ptr @RETURN, align 8, !tbaa !5
%42 = icmp eq i64 %40, %41
br i1 %42, label %61, label %43
43: ; preds = %37, %26
%44 = tail call i64 @SET_SRC(i64 noundef %7) #2
%45 = tail call i64 @XEXP(i64 noundef %44, i32 noundef 1) #2
%46 = load i64, ptr @pc_rtx, align 8, !tbaa !5
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %60
48: ; preds = %43
%49 = tail call i64 @SET_SRC(i64 noundef %7) #2
%50 = tail call i64 @XEXP(i64 noundef %49, i32 noundef 2) #2
%51 = tail call i64 @GET_CODE(i64 noundef %50) #2
%52 = load i64, ptr @LABEL_REF, align 8, !tbaa !5
%53 = icmp eq i64 %51, %52
br i1 %53, label %61, label %54
54: ; preds = %48
%55 = tail call i64 @SET_SRC(i64 noundef %7) #2
%56 = tail call i64 @XEXP(i64 noundef %55, i32 noundef 2) #2
%57 = tail call i64 @GET_CODE(i64 noundef %56) #2
%58 = load i64, ptr @RETURN, align 8, !tbaa !5
%59 = icmp eq i64 %57, %58
br i1 %59, label %61, label %60
60: ; preds = %54, %43
br label %61
61: ; preds = %48, %54, %31, %37, %21, %16, %11, %6, %1, %60
%62 = phi i32 [ 0, %60 ], [ 0, %1 ], [ 0, %6 ], [ 0, %11 ], [ 1, %16 ], [ 0, %21 ], [ 1, %37 ], [ 1, %31 ], [ 1, %54 ], [ 1, %48 ]
ret i32 %62
}
declare i64 @PATTERN(i64 noundef) local_unnamed_addr #1
declare i64 @GET_CODE(i64 noundef) local_unnamed_addr #1
declare i64 @XVECEXP(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @SET_DEST(i64 noundef) local_unnamed_addr #1
declare i64 @SET_SRC(i64 noundef) local_unnamed_addr #1
declare i64 @XEXP(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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gcc/extr_jump.c_condjump_in_parallel_p.c'
source_filename = "AnghaBench/freebsd/contrib/gcc/extr_jump.c_condjump_in_parallel_p.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PARALLEL = common local_unnamed_addr global i64 0, align 8
@SET = common local_unnamed_addr global i64 0, align 8
@PC = common local_unnamed_addr global i64 0, align 8
@LABEL_REF = common local_unnamed_addr global i64 0, align 8
@IF_THEN_ELSE = common local_unnamed_addr global i64 0, align 8
@pc_rtx = common local_unnamed_addr global i64 0, align 8
@RETURN = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @condjump_in_parallel_p(i64 noundef %0) local_unnamed_addr #0 {
%2 = tail call i64 @PATTERN(i64 noundef %0) #2
%3 = tail call i64 @GET_CODE(i64 noundef %2) #2
%4 = load i64, ptr @PARALLEL, align 8, !tbaa !6
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %61
6: ; preds = %1
%7 = tail call i64 @XVECEXP(i64 noundef %2, i32 noundef 0, i32 noundef 0) #2
%8 = tail call i64 @GET_CODE(i64 noundef %7) #2
%9 = load i64, ptr @SET, align 8, !tbaa !6
%10 = icmp eq i64 %8, %9
br i1 %10, label %11, label %61
11: ; preds = %6
%12 = tail call i64 @SET_DEST(i64 noundef %7) #2
%13 = tail call i64 @GET_CODE(i64 noundef %12) #2
%14 = load i64, ptr @PC, align 8, !tbaa !6
%15 = icmp eq i64 %13, %14
br i1 %15, label %16, label %61
16: ; preds = %11
%17 = tail call i64 @SET_SRC(i64 noundef %7) #2
%18 = tail call i64 @GET_CODE(i64 noundef %17) #2
%19 = load i64, ptr @LABEL_REF, align 8, !tbaa !6
%20 = icmp eq i64 %18, %19
br i1 %20, label %61, label %21
21: ; preds = %16
%22 = tail call i64 @SET_SRC(i64 noundef %7) #2
%23 = tail call i64 @GET_CODE(i64 noundef %22) #2
%24 = load i64, ptr @IF_THEN_ELSE, align 8, !tbaa !6
%25 = icmp eq i64 %23, %24
br i1 %25, label %26, label %61
26: ; preds = %21
%27 = tail call i64 @SET_SRC(i64 noundef %7) #2
%28 = tail call i64 @XEXP(i64 noundef %27, i32 noundef 2) #2
%29 = load i64, ptr @pc_rtx, align 8, !tbaa !6
%30 = icmp eq i64 %28, %29
br i1 %30, label %31, label %43
31: ; preds = %26
%32 = tail call i64 @SET_SRC(i64 noundef %7) #2
%33 = tail call i64 @XEXP(i64 noundef %32, i32 noundef 1) #2
%34 = tail call i64 @GET_CODE(i64 noundef %33) #2
%35 = load i64, ptr @LABEL_REF, align 8, !tbaa !6
%36 = icmp eq i64 %34, %35
br i1 %36, label %61, label %37
37: ; preds = %31
%38 = tail call i64 @SET_SRC(i64 noundef %7) #2
%39 = tail call i64 @XEXP(i64 noundef %38, i32 noundef 1) #2
%40 = tail call i64 @GET_CODE(i64 noundef %39) #2
%41 = load i64, ptr @RETURN, align 8, !tbaa !6
%42 = icmp eq i64 %40, %41
br i1 %42, label %61, label %43
43: ; preds = %37, %26
%44 = tail call i64 @SET_SRC(i64 noundef %7) #2
%45 = tail call i64 @XEXP(i64 noundef %44, i32 noundef 1) #2
%46 = load i64, ptr @pc_rtx, align 8, !tbaa !6
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %60
48: ; preds = %43
%49 = tail call i64 @SET_SRC(i64 noundef %7) #2
%50 = tail call i64 @XEXP(i64 noundef %49, i32 noundef 2) #2
%51 = tail call i64 @GET_CODE(i64 noundef %50) #2
%52 = load i64, ptr @LABEL_REF, align 8, !tbaa !6
%53 = icmp eq i64 %51, %52
br i1 %53, label %61, label %54
54: ; preds = %48
%55 = tail call i64 @SET_SRC(i64 noundef %7) #2
%56 = tail call i64 @XEXP(i64 noundef %55, i32 noundef 2) #2
%57 = tail call i64 @GET_CODE(i64 noundef %56) #2
%58 = load i64, ptr @RETURN, align 8, !tbaa !6
%59 = icmp eq i64 %57, %58
br i1 %59, label %61, label %60
60: ; preds = %54, %43
br label %61
61: ; preds = %48, %54, %31, %37, %21, %16, %11, %6, %1, %60
%62 = phi i32 [ 0, %60 ], [ 0, %1 ], [ 0, %6 ], [ 0, %11 ], [ 1, %16 ], [ 0, %21 ], [ 1, %37 ], [ 1, %31 ], [ 1, %54 ], [ 1, %48 ]
ret i32 %62
}
declare i64 @PATTERN(i64 noundef) local_unnamed_addr #1
declare i64 @GET_CODE(i64 noundef) local_unnamed_addr #1
declare i64 @XVECEXP(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @SET_DEST(i64 noundef) local_unnamed_addr #1
declare i64 @SET_SRC(i64 noundef) local_unnamed_addr #1
declare i64 @XEXP(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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gcc_extr_jump.c_condjump_in_parallel_p |
; ModuleID = 'AnghaBench/RetroArch/gfx/include/userland/interface/mmal/components/extr_sdl_audio_render.c_sdl_component_destroy.c'
source_filename = "AnghaBench/RetroArch/gfx/include/userland/interface/mmal/components/extr_sdl_audio_render.c_sdl_component_destroy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_7__ = type { i32, i64, ptr }
%struct.TYPE_8__ = type { i64, i64 }
@SDL_INIT_AUDIO = dso_local local_unnamed_addr global i32 0, align 4
@MMAL_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sdl_component_destroy], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sdl_component_destroy(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = getelementptr inbounds %struct.TYPE_8__, ptr %4, i64 0, i32 1
%6 = load i64, ptr %5, align 8, !tbaa !14
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 (...) @SDL_CloseAudio() #2
br label %10
10: ; preds = %8, %1
%11 = load i32, ptr @SDL_INIT_AUDIO, align 4, !tbaa !16
%12 = tail call i32 @SDL_QuitSubSystem(i32 noundef %11) #2
%13 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
%14 = load i64, ptr %13, align 8, !tbaa !17
%15 = icmp eq i64 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %10
%17 = load i32, ptr %0, align 8, !tbaa !18
%18 = tail call i32 @mmal_ports_free(i32 noundef %17, i32 noundef 1) #2
br label %19
19: ; preds = %16, %10
%20 = load i64, ptr %4, align 8, !tbaa !19
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @mmal_queue_destroy(i64 noundef %20) #2
br label %24
24: ; preds = %22, %19
%25 = tail call i32 @vcos_free(ptr noundef nonnull %4) #2
%26 = load i32, ptr @MMAL_SUCCESS, align 4, !tbaa !16
ret i32 %26
}
declare i32 @SDL_CloseAudio(...) local_unnamed_addr #1
declare i32 @SDL_QuitSubSystem(i32 noundef) local_unnamed_addr #1
declare i32 @mmal_ports_free(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmal_queue_destroy(i64 noundef) local_unnamed_addr #1
declare i32 @vcos_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"TYPE_7__", !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 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_6__", !11, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"TYPE_8__", !10, i64 0, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !10, i64 8}
!18 = !{!6, !7, i64 0}
!19 = !{!15, !10, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/gfx/include/userland/interface/mmal/components/extr_sdl_audio_render.c_sdl_component_destroy.c'
source_filename = "AnghaBench/RetroArch/gfx/include/userland/interface/mmal/components/extr_sdl_audio_render.c_sdl_component_destroy.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SDL_INIT_AUDIO = common local_unnamed_addr global i32 0, align 4
@MMAL_SUCCESS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sdl_component_destroy], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @sdl_component_destroy(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !13
%5 = getelementptr inbounds i8, ptr %4, i64 8
%6 = load i64, ptr %5, align 8, !tbaa !15
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = tail call i32 @SDL_CloseAudio() #2
br label %10
10: ; preds = %8, %1
%11 = load i32, ptr @SDL_INIT_AUDIO, align 4, !tbaa !17
%12 = tail call i32 @SDL_QuitSubSystem(i32 noundef %11) #2
%13 = getelementptr inbounds i8, ptr %0, i64 8
%14 = load i64, ptr %13, align 8, !tbaa !18
%15 = icmp eq i64 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %10
%17 = load i32, ptr %0, align 8, !tbaa !19
%18 = tail call i32 @mmal_ports_free(i32 noundef %17, i32 noundef 1) #2
br label %19
19: ; preds = %16, %10
%20 = load i64, ptr %4, align 8, !tbaa !20
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @mmal_queue_destroy(i64 noundef %20) #2
br label %24
24: ; preds = %22, %19
%25 = tail call i32 @vcos_free(ptr noundef nonnull %4) #2
%26 = load i32, ptr @MMAL_SUCCESS, align 4, !tbaa !17
ret i32 %26
}
declare i32 @SDL_CloseAudio(...) local_unnamed_addr #1
declare i32 @SDL_QuitSubSystem(i32 noundef) local_unnamed_addr #1
declare i32 @mmal_ports_free(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mmal_queue_destroy(i64 noundef) local_unnamed_addr #1
declare i32 @vcos_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 16}
!7 = !{!"TYPE_7__", !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 = !{!"long", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_6__", !12, i64 0}
!15 = !{!16, !11, i64 8}
!16 = !{!"TYPE_8__", !11, i64 0, !11, i64 8}
!17 = !{!8, !8, i64 0}
!18 = !{!7, !11, i64 8}
!19 = !{!7, !8, i64 0}
!20 = !{!16, !11, i64 0}
| RetroArch_gfx_include_userland_interface_mmal_components_extr_sdl_audio_render.c_sdl_component_destroy |
; ModuleID = 'AnghaBench/linux/tools/lib/traceevent/extr_kbuffer-parse.c___read_long_8.c'
source_filename = "AnghaBench/linux/tools/lib/traceevent/extr_kbuffer-parse.c___read_long_8.c"
target datalayout = "e-m:e-p270:32:32-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 @__read_long_8], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @__read_long_8(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !5
%4 = tail call i64 %3(ptr noundef %1) #1
ret i64 %4
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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 = !{!"kbuffer", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/tools/lib/traceevent/extr_kbuffer-parse.c___read_long_8.c'
source_filename = "AnghaBench/linux/tools/lib/traceevent/extr_kbuffer-parse.c___read_long_8.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 @__read_long_8], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @__read_long_8(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = load ptr, ptr %0, align 8, !tbaa !6
%4 = tail call i64 %3(ptr noundef %1) #1
ret i64 %4
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"kbuffer", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_tools_lib_traceevent_extr_kbuffer-parse.c___read_long_8 |
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/tests/extr_ktest.c_ktest_testend.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/tests/extr_ktest.c_ktest_testend.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ktest_current_time = dso_local local_unnamed_addr global i32 0, align 4
@ktest_test_index = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @ktest_testend() local_unnamed_addr #0 {
%1 = tail call i32 (...) @mach_absolute_time() #2
store i32 %1, ptr @ktest_current_time, align 4, !tbaa !5
%2 = tail call i32 (...) @ktest_emit_testend() #2
%3 = load i32, ptr @ktest_test_index, align 4, !tbaa !5
%4 = add nsw i32 %3, 1
store i32 %4, ptr @ktest_test_index, align 4, !tbaa !5
ret void
}
declare i32 @mach_absolute_time(...) local_unnamed_addr #1
declare i32 @ktest_emit_testend(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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/darwin-xnu/osfmk/tests/extr_ktest.c_ktest_testend.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/tests/extr_ktest.c_ktest_testend.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ktest_current_time = common local_unnamed_addr global i32 0, align 4
@ktest_test_index = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @ktest_testend() local_unnamed_addr #0 {
%1 = tail call i32 @mach_absolute_time() #2
store i32 %1, ptr @ktest_current_time, align 4, !tbaa !6
%2 = tail call i32 @ktest_emit_testend() #2
%3 = load i32, ptr @ktest_test_index, align 4, !tbaa !6
%4 = add nsw i32 %3, 1
store i32 %4, ptr @ktest_test_index, align 4, !tbaa !6
ret void
}
declare i32 @mach_absolute_time(...) local_unnamed_addr #1
declare i32 @ktest_emit_testend(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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"}
| darwin-xnu_osfmk_tests_extr_ktest.c_ktest_testend |
; ModuleID = 'AnghaBench/linux/sound/i2c/extr_tea6330t.c_snd_tea6330t_info_bass.c'
source_filename = "AnghaBench/linux/sound/i2c/extr_tea6330t.c_snd_tea6330t_info_bass.c"
target datalayout = "e-m:e-p270:32:32-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_ctl_elem_info = type { i32, %struct.TYPE_4__, i32 }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32, i64 }
@SNDRV_CTL_ELEM_TYPE_INTEGER = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_tea6330t_info_bass], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @snd_tea6330t_info_bass(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = load i32, ptr @SNDRV_CTL_ELEM_TYPE_INTEGER, align 4, !tbaa !5
%5 = getelementptr inbounds %struct.snd_ctl_elem_info, ptr %1, i64 0, i32 2
store i32 %4, ptr %5, align 8, !tbaa !9
store i32 1, ptr %1, align 8, !tbaa !14
%6 = getelementptr inbounds %struct.snd_ctl_elem_info, ptr %1, i64 0, i32 1
%7 = getelementptr inbounds %struct.snd_ctl_elem_info, ptr %1, i64 0, i32 1, i32 0, i32 1
store i64 0, ptr %7, align 8, !tbaa !15
%8 = load i32, ptr %3, align 4, !tbaa !16
store i32 %8, ptr %6, align 8, !tbaa !18
ret i32 0
}
declare ptr @snd_kcontrol_chip(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 24}
!10 = !{!"snd_ctl_elem_info", !6, i64 0, !11, i64 8, !6, i64 24}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 0}
!15 = !{!10, !13, i64 16}
!16 = !{!17, !6, i64 0}
!17 = !{!"tea6330t", !6, i64 0}
!18 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/linux/sound/i2c/extr_tea6330t.c_snd_tea6330t_info_bass.c'
source_filename = "AnghaBench/linux/sound/i2c/extr_tea6330t.c_snd_tea6330t_info_bass.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SNDRV_CTL_ELEM_TYPE_INTEGER = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @snd_tea6330t_info_bass], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @snd_tea6330t_info_bass(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = load i32, ptr @SNDRV_CTL_ELEM_TYPE_INTEGER, align 4, !tbaa !6
%5 = getelementptr inbounds i8, ptr %1, i64 24
store i32 %4, ptr %5, align 8, !tbaa !10
store i32 1, ptr %1, align 8, !tbaa !15
%6 = getelementptr inbounds i8, ptr %1, i64 8
%7 = getelementptr inbounds i8, ptr %1, i64 16
store i64 0, ptr %7, align 8, !tbaa !16
%8 = load i32, ptr %3, align 4, !tbaa !17
store i32 %8, ptr %6, align 8, !tbaa !19
ret i32 0
}
declare ptr @snd_kcontrol_chip(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 24}
!11 = !{!"snd_ctl_elem_info", !7, i64 0, !12, i64 8, !7, i64 24}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0, !14, i64 8}
!14 = !{!"long", !8, i64 0}
!15 = !{!11, !7, i64 0}
!16 = !{!11, !14, i64 16}
!17 = !{!18, !7, i64 0}
!18 = !{!"tea6330t", !7, i64 0}
!19 = !{!11, !7, i64 8}
| linux_sound_i2c_extr_tea6330t.c_snd_tea6330t_info_bass |
; ModuleID = 'AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_xferq_drain.c'
source_filename = "AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_xferq_drain.c"
target datalayout = "e-m:e-p270:32:32-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.fw_xferq = type { i32, i32 }
%struct.fw_xfer = type { i32, i32 }
@link = dso_local local_unnamed_addr global i32 0, align 4
@EAGAIN = dso_local local_unnamed_addr global i32 0, align 4
@FWXF_SENTERR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @fw_xferq_drain], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @fw_xferq_drain(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.fw_xferq, ptr %0, i64 0, i32 1
%3 = tail call ptr @STAILQ_FIRST(ptr noundef nonnull %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %15, label %5
5: ; preds = %1, %5
%6 = phi ptr [ %13, %5 ], [ %3, %1 ]
%7 = load i32, ptr @link, align 4, !tbaa !5
%8 = tail call i32 @STAILQ_REMOVE_HEAD(ptr noundef nonnull %2, i32 noundef %7) #2
%9 = load i32, ptr @EAGAIN, align 4, !tbaa !5
%10 = getelementptr inbounds %struct.fw_xfer, ptr %6, i64 0, i32 1
store i32 %9, ptr %10, align 4, !tbaa !9
%11 = load i32, ptr @FWXF_SENTERR, align 4, !tbaa !5
store i32 %11, ptr %6, align 4, !tbaa !11
%12 = tail call i32 @fw_xfer_done(ptr noundef nonnull %6) #2
%13 = tail call ptr @STAILQ_FIRST(ptr noundef nonnull %2) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %5, !llvm.loop !12
15: ; preds = %5, %1
ret void
}
declare ptr @STAILQ_FIRST(ptr noundef) local_unnamed_addr #1
declare i32 @STAILQ_REMOVE_HEAD(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fw_xfer_done(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 = !{!"fw_xfer", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_xferq_drain.c'
source_filename = "AnghaBench/freebsd/sys/dev/firewire/extr_firewire.c_fw_xferq_drain.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@link = common local_unnamed_addr global i32 0, align 4
@EAGAIN = common local_unnamed_addr global i32 0, align 4
@FWXF_SENTERR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @fw_xferq_drain], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @fw_xferq_drain(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = tail call ptr @STAILQ_FIRST(ptr noundef nonnull %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %15, label %5
5: ; preds = %1, %5
%6 = phi ptr [ %13, %5 ], [ %3, %1 ]
%7 = load i32, ptr @link, align 4, !tbaa !6
%8 = tail call i32 @STAILQ_REMOVE_HEAD(ptr noundef nonnull %2, i32 noundef %7) #2
%9 = load i32, ptr @EAGAIN, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %6, i64 4
store i32 %9, ptr %10, align 4, !tbaa !10
%11 = load i32, ptr @FWXF_SENTERR, align 4, !tbaa !6
store i32 %11, ptr %6, align 4, !tbaa !12
%12 = tail call i32 @fw_xfer_done(ptr noundef nonnull %6) #2
%13 = tail call ptr @STAILQ_FIRST(ptr noundef nonnull %2) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %5, !llvm.loop !13
15: ; preds = %5, %1
ret void
}
declare ptr @STAILQ_FIRST(ptr noundef) local_unnamed_addr #1
declare i32 @STAILQ_REMOVE_HEAD(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fw_xfer_done(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 = !{!"fw_xfer", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_dev_firewire_extr_firewire.c_fw_xferq_drain |
; ModuleID = 'AnghaBench/freebsd/contrib/bsnmp/snmp_mibII/extr_mibII.c_mib_first_if.c'
source_filename = "AnghaBench/freebsd/contrib/bsnmp/snmp_mibII/extr_mibII.c_mib_first_if.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@mibif_list = dso_local global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @mib_first_if() local_unnamed_addr #0 {
%1 = tail call ptr @TAILQ_FIRST(ptr noundef nonnull @mibif_list) #2
ret ptr %1
}
declare ptr @TAILQ_FIRST(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/bsnmp/snmp_mibII/extr_mibII.c_mib_first_if.c'
source_filename = "AnghaBench/freebsd/contrib/bsnmp/snmp_mibII/extr_mibII.c_mib_first_if.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mibif_list = common global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @mib_first_if() local_unnamed_addr #0 {
%1 = tail call ptr @TAILQ_FIRST(ptr noundef nonnull @mibif_list) #2
ret ptr %1
}
declare ptr @TAILQ_FIRST(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_contrib_bsnmp_snmp_mibII_extr_mibII.c_mib_first_if |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hwmon/extr_w83627ehf.c_fan_from_reg.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hwmon/extr_w83627ehf.c_fan_from_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @fan_from_reg], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @fan_from_reg(i32 noundef %0, i32 noundef %1) #0 {
switch i32 %0, label %3 [
i32 255, label %6
i32 0, label %6
]
3: ; preds = %2
%4 = mul i32 %1, %0
%5 = udiv i32 1350000, %4
br label %6
6: ; preds = %2, %2, %3
%7 = phi i32 [ %5, %3 ], [ 0, %2 ], [ 0, %2 ]
ret i32 %7
}
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/fastsocket/kernel/drivers/hwmon/extr_w83627ehf.c_fan_from_reg.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hwmon/extr_w83627ehf.c_fan_from_reg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @fan_from_reg], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal range(i32 0, 1350001) i32 @fan_from_reg(i32 noundef %0, i32 noundef %1) #0 {
switch i32 %0, label %3 [
i32 255, label %6
i32 0, label %6
]
3: ; preds = %2
%4 = mul i32 %1, %0
%5 = udiv i32 1350000, %4
br label %6
6: ; preds = %2, %2, %3
%7 = phi i32 [ %5, %3 ], [ 0, %2 ], [ 0, %2 ]
ret i32 %7
}
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)"}
| fastsocket_kernel_drivers_hwmon_extr_w83627ehf.c_fan_from_reg |
; ModuleID = 'AnghaBench/postgres/src/backend/storage/lmgr/extr_proc.c_BecomeLockGroupMember.c'
source_filename = "AnghaBench/postgres/src/backend/storage/lmgr/extr_proc.c_BecomeLockGroupMember.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i32, i32, i32, ptr }
@MyProc = dso_local local_unnamed_addr global ptr null, align 8
@LW_EXCLUSIVE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @BecomeLockGroupMember(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @MyProc, align 8, !tbaa !5
%4 = icmp ne ptr %3, %0
%5 = zext i1 %4 to i32
%6 = tail call i32 @Assert(i32 noundef %5) #2
%7 = load ptr, ptr @MyProc, align 8, !tbaa !5
%8 = getelementptr inbounds %struct.TYPE_5__, ptr %7, i64 0, i32 3
%9 = load ptr, ptr %8, align 8, !tbaa !9
%10 = icmp eq ptr %9, null
%11 = zext i1 %10 to i32
%12 = tail call i32 @Assert(i32 noundef %11) #2
%13 = icmp ne i32 %1, 0
%14 = zext i1 %13 to i32
%15 = tail call i32 @Assert(i32 noundef %14) #2
%16 = tail call ptr @LockHashPartitionLockByProc(ptr noundef %0) #2
%17 = load i32, ptr @LW_EXCLUSIVE, align 4, !tbaa !12
%18 = tail call i32 @LWLockAcquire(ptr noundef %16, i32 noundef %17) #2
%19 = load i32, ptr %0, align 8, !tbaa !13
%20 = icmp eq i32 %19, %1
br i1 %20, label %21, label %31
21: ; preds = %2
%22 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 3
%23 = load ptr, ptr %22, align 8, !tbaa !9
%24 = icmp eq ptr %23, %0
br i1 %24, label %25, label %31
25: ; preds = %21
%26 = load ptr, ptr @MyProc, align 8, !tbaa !5
%27 = getelementptr inbounds %struct.TYPE_5__, ptr %26, i64 0, i32 3
store ptr %0, ptr %27, align 8, !tbaa !9
%28 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%29 = getelementptr inbounds %struct.TYPE_5__, ptr %26, i64 0, i32 1
%30 = tail call i32 @dlist_push_tail(ptr noundef nonnull %28, ptr noundef nonnull %29) #2
br label %31
31: ; preds = %25, %21, %2
%32 = phi i32 [ 1, %25 ], [ 0, %21 ], [ 0, %2 ]
%33 = tail call i32 @LWLockRelease(ptr noundef %16) #2
ret i32 %32
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare ptr @LockHashPartitionLockByProc(ptr noundef) local_unnamed_addr #1
declare i32 @LWLockAcquire(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dlist_push_tail(ptr noundef, ptr 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, !6, i64 16}
!10 = !{!"TYPE_5__", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/postgres/src/backend/storage/lmgr/extr_proc.c_BecomeLockGroupMember.c'
source_filename = "AnghaBench/postgres/src/backend/storage/lmgr/extr_proc.c_BecomeLockGroupMember.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
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @BecomeLockGroupMember(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @MyProc, align 8, !tbaa !6
%4 = icmp ne ptr %3, %0
%5 = zext i1 %4 to i32
%6 = tail call i32 @Assert(i32 noundef %5) #2
%7 = load ptr, ptr @MyProc, align 8, !tbaa !6
%8 = getelementptr inbounds i8, ptr %7, i64 16
%9 = load ptr, ptr %8, align 8, !tbaa !10
%10 = icmp eq ptr %9, null
%11 = zext i1 %10 to i32
%12 = tail call i32 @Assert(i32 noundef %11) #2
%13 = icmp ne i32 %1, 0
%14 = zext i1 %13 to i32
%15 = tail call i32 @Assert(i32 noundef %14) #2
%16 = tail call ptr @LockHashPartitionLockByProc(ptr noundef %0) #2
%17 = load i32, ptr @LW_EXCLUSIVE, align 4, !tbaa !13
%18 = tail call i32 @LWLockAcquire(ptr noundef %16, i32 noundef %17) #2
%19 = load i32, ptr %0, align 8, !tbaa !14
%20 = icmp eq i32 %19, %1
br i1 %20, label %21, label %31
21: ; preds = %2
%22 = getelementptr inbounds i8, ptr %0, i64 16
%23 = load ptr, ptr %22, align 8, !tbaa !10
%24 = icmp eq ptr %23, %0
br i1 %24, label %25, label %31
25: ; preds = %21
%26 = load ptr, ptr @MyProc, align 8, !tbaa !6
%27 = getelementptr inbounds i8, ptr %26, i64 16
store ptr %0, ptr %27, align 8, !tbaa !10
%28 = getelementptr inbounds i8, ptr %0, i64 8
%29 = getelementptr inbounds i8, ptr %26, i64 4
%30 = tail call i32 @dlist_push_tail(ptr noundef nonnull %28, ptr noundef nonnull %29) #2
br label %31
31: ; preds = %25, %21, %2
%32 = phi i32 [ 1, %25 ], [ 0, %21 ], [ 0, %2 ]
%33 = tail call i32 @LWLockRelease(ptr noundef %16) #2
ret i32 %32
}
declare i32 @Assert(i32 noundef) local_unnamed_addr #1
declare ptr @LockHashPartitionLockByProc(ptr noundef) local_unnamed_addr #1
declare i32 @LWLockAcquire(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dlist_push_tail(ptr noundef, ptr 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, !7, i64 16}
!11 = !{!"TYPE_5__", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 16}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!11, !12, i64 0}
| postgres_src_backend_storage_lmgr_extr_proc.c_BecomeLockGroupMember |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_entxrx.h_mlx5e_fill_sq_frag_edge.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_entxrx.h_mlx5e_fill_sq_frag_edge.c"
target datalayout = "e-m:e-p270:32:32-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.mlx5e_txqsq = type { ptr, i32, i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { ptr }
%struct.mlx5e_tx_wqe_info = type { i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @mlx5e_fill_sq_frag_edge], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @mlx5e_fill_sq_frag_edge(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = getelementptr inbounds %struct.mlx5e_txqsq, ptr %0, i64 0, i32 3
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.mlx5e_tx_wqe_info, ptr %6, i64 %2
%8 = getelementptr inbounds %struct.mlx5e_tx_wqe_info, ptr %7, i64 %3
%9 = icmp sgt i64 %3, 0
br i1 %9, label %10, label %20
10: ; preds = %4
%11 = getelementptr inbounds %struct.mlx5e_txqsq, ptr %0, i64 0, i32 2
%12 = getelementptr inbounds %struct.mlx5e_txqsq, ptr %0, i64 0, i32 1
br label %13
13: ; preds = %10, %13
%14 = phi ptr [ %7, %10 ], [ %18, %13 ]
%15 = tail call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 4) #2
store i32 1, ptr %14, align 4, !tbaa !12
%16 = load i32, ptr %11, align 4, !tbaa !14
%17 = tail call i32 @mlx5e_post_nop(ptr noundef %1, i32 noundef %16, ptr noundef nonnull %12) #2
%18 = getelementptr inbounds %struct.mlx5e_tx_wqe_info, ptr %14, i64 1
%19 = icmp ult ptr %18, %8
br i1 %19, label %13, label %20, !llvm.loop !15
20: ; preds = %13, %4
%21 = load ptr, ptr %0, align 8, !tbaa !17
%22 = load i32, ptr %21, align 4, !tbaa !18
%23 = trunc i64 %3 to i32
%24 = add i32 %22, %23
store i32 %24, ptr %21, align 4, !tbaa !18
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlx5e_post_nop(ptr noundef, 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, !7, i64 16}
!6 = !{!"mlx5e_txqsq", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"mlx5e_tx_wqe_info", !10, i64 0}
!14 = !{!6, !10, i64 12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !7, i64 0}
!18 = !{!19, !10, i64 0}
!19 = !{!"TYPE_3__", !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_entxrx.h_mlx5e_fill_sq_frag_edge.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_entxrx.h_mlx5e_fill_sq_frag_edge.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.mlx5e_tx_wqe_info = type { i32 }
@llvm.used = appending global [1 x ptr] [ptr @mlx5e_fill_sq_frag_edge], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @mlx5e_fill_sq_frag_edge(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = getelementptr inbounds i8, ptr %0, i64 16
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = getelementptr inbounds %struct.mlx5e_tx_wqe_info, ptr %6, i64 %2
%8 = getelementptr inbounds %struct.mlx5e_tx_wqe_info, ptr %7, i64 %3
%9 = icmp sgt i64 %3, 0
br i1 %9, label %10, label %20
10: ; preds = %4
%11 = getelementptr inbounds i8, ptr %0, i64 12
%12 = getelementptr inbounds i8, ptr %0, i64 8
br label %13
13: ; preds = %10, %13
%14 = phi ptr [ %7, %10 ], [ %18, %13 ]
%15 = tail call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 4) #2
store i32 1, ptr %14, align 4, !tbaa !13
%16 = load i32, ptr %11, align 4, !tbaa !15
%17 = tail call i32 @mlx5e_post_nop(ptr noundef %1, i32 noundef %16, ptr noundef nonnull %12) #2
%18 = getelementptr inbounds i8, ptr %14, i64 4
%19 = icmp ult ptr %18, %8
br i1 %19, label %13, label %20, !llvm.loop !16
20: ; preds = %13, %4
%21 = load ptr, ptr %0, align 8, !tbaa !18
%22 = load i32, ptr %21, align 4, !tbaa !19
%23 = trunc i64 %3 to i32
%24 = add i32 %22, %23
store i32 %24, ptr %21, align 4, !tbaa !19
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlx5e_post_nop(ptr noundef, 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, !8, i64 16}
!7 = !{!"mlx5e_txqsq", !8, i64 0, !11, i64 8, !11, i64 12, !12, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"TYPE_4__", !8, i64 0}
!13 = !{!14, !11, i64 0}
!14 = !{!"mlx5e_tx_wqe_info", !11, i64 0}
!15 = !{!7, !11, i64 12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!7, !8, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"TYPE_3__", !11, i64 0}
| linux_drivers_net_ethernet_mellanox_mlx5_core_extr_entxrx.h_mlx5e_fill_sq_frag_edge |
; ModuleID = 'AnghaBench/tmux/extr_window-copy.c_window_copy_cmd_top_line.c'
source_filename = "AnghaBench/tmux/extr_window-copy.c_window_copy_cmd_top_line.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@WINDOW_COPY_CMD_REDRAW = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @window_copy_cmd_top_line], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @window_copy_cmd_top_line(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8, !tbaa !10
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
%4 = tail call i32 @window_copy_update_selection(ptr noundef nonnull %2, i32 noundef 1) #3
%5 = load i32, ptr @WINDOW_COPY_CMD_REDRAW, align 4, !tbaa !12
ret i32 %5
}
declare i32 @window_copy_update_selection(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"window_copy_cmd_state", !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 = !{!"window_mode_entry", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/tmux/extr_window-copy.c_window_copy_cmd_top_line.c'
source_filename = "AnghaBench/tmux/extr_window-copy.c_window_copy_cmd_top_line.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WINDOW_COPY_CMD_REDRAW = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @window_copy_cmd_top_line], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @window_copy_cmd_top_line(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load ptr, ptr %2, align 8, !tbaa !11
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
%4 = tail call i32 @window_copy_update_selection(ptr noundef nonnull %2, i32 noundef 1) #3
%5 = load i32, ptr @WINDOW_COPY_CMD_REDRAW, align 4, !tbaa !13
ret i32 %5
}
declare i32 @window_copy_update_selection(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"window_copy_cmd_state", !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 = !{!"window_mode_entry", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
| tmux_extr_window-copy.c_window_copy_cmd_top_line |
; ModuleID = 'AnghaBench/linux/drivers/nvme/target/extr_..targetnvmet.h_nvmet_host_name.c'
source_filename = "AnghaBench/linux/drivers/nvme/target/extr_..targetnvmet.h_nvmet_host_name.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @nvmet_host_name], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal ptr @nvmet_host_name(ptr noundef %0) #0 {
%2 = tail call ptr @config_item_name(ptr noundef %0) #2
ret ptr %2
}
declare ptr @config_item_name(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/nvme/target/extr_..targetnvmet.h_nvmet_host_name.c'
source_filename = "AnghaBench/linux/drivers/nvme/target/extr_..targetnvmet.h_nvmet_host_name.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @nvmet_host_name], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal ptr @nvmet_host_name(ptr noundef %0) #0 {
%2 = tail call ptr @config_item_name(ptr noundef %0) #2
ret ptr %2
}
declare ptr @config_item_name(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_nvme_target_extr_..targetnvmet.h_nvmet_host_name |
; ModuleID = 'AnghaBench/freebsd/usr.bin/tip/tip/extr_cmds.c_pipeout.c'
source_filename = "AnghaBench/freebsd/usr.bin/tip/tip/extr_cmds.c_pipeout.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Local command? \00", align 1
@tipout_pid = dso_local local_unnamed_addr global i32 0, align 4
@SIGIOT = dso_local local_unnamed_addr global i32 0, align 4
@SIGINT = dso_local local_unnamed_addr global i32 0, align 4
@SIG_IGN = dso_local local_unnamed_addr global i32 0, align 4
@SIGQUIT = dso_local local_unnamed_addr global i32 0, align 4
@TCSAFLUSH = dso_local local_unnamed_addr global i32 0, align 4
@defchars = dso_local global i32 0, align 4
@repdes = dso_local local_unnamed_addr global ptr null, align 8
@ccc = dso_local global i32 0, align 4
@FD = dso_local local_unnamed_addr global i32 0, align 4
@SIG_DFL = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"can't find `%s'\0D\0A\00", align 1
@VERBOSE = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [10 x i8] c"away for \00", align 1
@fildes = dso_local local_unnamed_addr global ptr null, align 8
@term = dso_local global i32 0, align 4
@str = private unnamed_addr constant [13 x i8] c"can't fork!\0D\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @pipeout(i32 noundef %0) local_unnamed_addr #0 {
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
%4 = tail call i64 @time(ptr noundef null) #6
%5 = tail call i32 @putchar(i32 noundef %0)
%6 = call i64 @prompt(ptr noundef nonnull @.str, ptr noundef nonnull %2, i32 noundef 256) #6
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %88
8: ; preds = %1
%9 = load i32, ptr @tipout_pid, align 4, !tbaa !5
%10 = load i32, ptr @SIGIOT, align 4, !tbaa !5
%11 = call i32 @kill(i32 noundef %9, i32 noundef %10) #6
%12 = load i32, ptr @SIGINT, align 4, !tbaa !5
%13 = load i32, ptr @SIG_IGN, align 4, !tbaa !5
%14 = call i32 @signal(i32 noundef %12, i32 noundef %13) #6
%15 = load i32, ptr @SIGQUIT, align 4, !tbaa !5
%16 = load i32, ptr @SIG_IGN, align 4, !tbaa !5
%17 = call i32 @signal(i32 noundef %15, i32 noundef %16) #6
%18 = load i32, ptr @TCSAFLUSH, align 4, !tbaa !5
%19 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %18, ptr noundef nonnull @defchars) #6
%20 = load ptr, ptr @repdes, align 8, !tbaa !9
%21 = load i32, ptr %20, align 4, !tbaa !5
%22 = call i32 @read(i32 noundef %21, ptr noundef nonnull @ccc, i32 noundef 1) #6
%23 = call i32 (...) @fork() #6
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %8
%26 = call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %65
27: ; preds = %8
%28 = icmp eq i32 %23, 0
br i1 %28, label %36, label %29
29: ; preds = %27
%30 = call i64 @time(ptr noundef null) #6
br label %31
31: ; preds = %31, %29
%32 = call i32 @wait(ptr noundef nonnull %3) #6
%33 = icmp sgt i32 %32, 0
%34 = icmp ne i32 %32, %23
%35 = and i1 %33, %34
br i1 %35, label %31, label %65, !llvm.loop !11
36: ; preds = %27
%37 = load i32, ptr @FD, align 4, !tbaa !5
%38 = call i32 @dup2(i32 noundef %37, i32 noundef 1) #6
%39 = call i32 @close(i32 noundef 3) #6
%40 = call i32 @close(i32 noundef 4) #6
%41 = call i32 @close(i32 noundef 5) #6
%42 = call i32 @close(i32 noundef 6) #6
%43 = call i32 @close(i32 noundef 7) #6
%44 = call i32 @close(i32 noundef 8) #6
%45 = call i32 @close(i32 noundef 9) #6
%46 = call i32 @close(i32 noundef 10) #6
%47 = call i32 @close(i32 noundef 11) #6
%48 = call i32 @close(i32 noundef 12) #6
%49 = call i32 @close(i32 noundef 13) #6
%50 = call i32 @close(i32 noundef 14) #6
%51 = call i32 @close(i32 noundef 15) #6
%52 = call i32 @close(i32 noundef 16) #6
%53 = call i32 @close(i32 noundef 17) #6
%54 = call i32 @close(i32 noundef 18) #6
%55 = call i32 @close(i32 noundef 19) #6
%56 = load i32, ptr @SIGINT, align 4, !tbaa !5
%57 = load i32, ptr @SIG_DFL, align 4, !tbaa !5
%58 = call i32 @signal(i32 noundef %56, i32 noundef %57) #6
%59 = load i32, ptr @SIGQUIT, align 4, !tbaa !5
%60 = load i32, ptr @SIG_DFL, align 4, !tbaa !5
%61 = call i32 @signal(i32 noundef %59, i32 noundef %60) #6
%62 = call i32 @execute(ptr noundef nonnull %2) #6
%63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull %2)
%64 = call i32 @exit(i32 noundef 0) #7
unreachable
65: ; preds = %31, %25
%66 = phi i64 [ %4, %25 ], [ %30, %31 ]
%67 = load i32, ptr @VERBOSE, align 4, !tbaa !5
%68 = call i32 @value(i32 noundef %67) #6
%69 = call i64 @boolean(i32 noundef %68) #6
%70 = icmp eq i64 %69, 0
br i1 %70, label %75, label %71
71: ; preds = %65
%72 = call i64 @time(ptr noundef null) #6
%73 = sub nsw i64 %72, %66
%74 = call i32 @prtime(ptr noundef nonnull @.str.3, i64 noundef %73) #6
br label %75
75: ; preds = %71, %65
%76 = load ptr, ptr @fildes, align 8, !tbaa !9
%77 = getelementptr inbounds i32, ptr %76, i64 1
%78 = load i32, ptr %77, align 4, !tbaa !5
%79 = call i32 @write(i32 noundef %78, ptr noundef nonnull @ccc, i32 noundef 1) #6
%80 = load i32, ptr @TCSAFLUSH, align 4, !tbaa !5
%81 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %80, ptr noundef nonnull @term) #6
%82 = load i32, ptr @SIGINT, align 4, !tbaa !5
%83 = load i32, ptr @SIG_DFL, align 4, !tbaa !5
%84 = call i32 @signal(i32 noundef %82, i32 noundef %83) #6
%85 = load i32, ptr @SIGQUIT, align 4, !tbaa !5
%86 = load i32, ptr @SIG_DFL, align 4, !tbaa !5
%87 = call i32 @signal(i32 noundef %85, i32 noundef %86) #6
br label %88
88: ; preds = %1, %75
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #6
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @time(ptr noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3
declare i64 @prompt(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kill(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @signal(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fork(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare i32 @wait(ptr noundef) local_unnamed_addr #2
declare i32 @dup2(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
declare i32 @execute(ptr noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i64 @boolean(i32 noundef) local_unnamed_addr #2
declare i32 @value(i32 noundef) local_unnamed_addr #2
declare i32 @prtime(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/usr.bin/tip/tip/extr_cmds.c_pipeout.c'
source_filename = "AnghaBench/freebsd/usr.bin/tip/tip/extr_cmds.c_pipeout.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [16 x i8] c"Local command? \00", align 1
@tipout_pid = common local_unnamed_addr global i32 0, align 4
@SIGIOT = common local_unnamed_addr global i32 0, align 4
@SIGINT = common local_unnamed_addr global i32 0, align 4
@SIG_IGN = common local_unnamed_addr global i32 0, align 4
@SIGQUIT = common local_unnamed_addr global i32 0, align 4
@TCSAFLUSH = common local_unnamed_addr global i32 0, align 4
@defchars = common global i32 0, align 4
@repdes = common local_unnamed_addr global ptr null, align 8
@ccc = common global i32 0, align 4
@FD = common local_unnamed_addr global i32 0, align 4
@SIG_DFL = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"can't find `%s'\0D\0A\00", align 1
@VERBOSE = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [10 x i8] c"away for \00", align 1
@fildes = common local_unnamed_addr global ptr null, align 8
@term = common global i32 0, align 4
@str = private unnamed_addr constant [13 x i8] c"can't fork!\0D\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @pipeout(i32 noundef %0) local_unnamed_addr #0 {
%2 = alloca [256 x i8], align 1
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
%4 = tail call i64 @time(ptr noundef null) #6
%5 = tail call i32 @putchar(i32 noundef %0)
%6 = call i64 @prompt(ptr noundef nonnull @.str, ptr noundef nonnull %2, i32 noundef 256) #6
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %88
8: ; preds = %1
%9 = load i32, ptr @tipout_pid, align 4, !tbaa !6
%10 = load i32, ptr @SIGIOT, align 4, !tbaa !6
%11 = call i32 @kill(i32 noundef %9, i32 noundef %10) #6
%12 = load i32, ptr @SIGINT, align 4, !tbaa !6
%13 = load i32, ptr @SIG_IGN, align 4, !tbaa !6
%14 = call i32 @signal(i32 noundef %12, i32 noundef %13) #6
%15 = load i32, ptr @SIGQUIT, align 4, !tbaa !6
%16 = load i32, ptr @SIG_IGN, align 4, !tbaa !6
%17 = call i32 @signal(i32 noundef %15, i32 noundef %16) #6
%18 = load i32, ptr @TCSAFLUSH, align 4, !tbaa !6
%19 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %18, ptr noundef nonnull @defchars) #6
%20 = load ptr, ptr @repdes, align 8, !tbaa !10
%21 = load i32, ptr %20, align 4, !tbaa !6
%22 = call i32 @read(i32 noundef %21, ptr noundef nonnull @ccc, i32 noundef 1) #6
%23 = call i32 @fork() #6
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %8
%26 = call i32 @puts(ptr nonnull dereferenceable(1) @str)
br label %65
27: ; preds = %8
%28 = icmp eq i32 %23, 0
br i1 %28, label %36, label %29
29: ; preds = %27
%30 = call i64 @time(ptr noundef null) #6
br label %31
31: ; preds = %31, %29
%32 = call i32 @wait(ptr noundef nonnull %3) #6
%33 = icmp sgt i32 %32, 0
%34 = icmp ne i32 %32, %23
%35 = and i1 %33, %34
br i1 %35, label %31, label %65, !llvm.loop !12
36: ; preds = %27
%37 = load i32, ptr @FD, align 4, !tbaa !6
%38 = call i32 @dup2(i32 noundef %37, i32 noundef 1) #6
%39 = call i32 @close(i32 noundef 3) #6
%40 = call i32 @close(i32 noundef 4) #6
%41 = call i32 @close(i32 noundef 5) #6
%42 = call i32 @close(i32 noundef 6) #6
%43 = call i32 @close(i32 noundef 7) #6
%44 = call i32 @close(i32 noundef 8) #6
%45 = call i32 @close(i32 noundef 9) #6
%46 = call i32 @close(i32 noundef 10) #6
%47 = call i32 @close(i32 noundef 11) #6
%48 = call i32 @close(i32 noundef 12) #6
%49 = call i32 @close(i32 noundef 13) #6
%50 = call i32 @close(i32 noundef 14) #6
%51 = call i32 @close(i32 noundef 15) #6
%52 = call i32 @close(i32 noundef 16) #6
%53 = call i32 @close(i32 noundef 17) #6
%54 = call i32 @close(i32 noundef 18) #6
%55 = call i32 @close(i32 noundef 19) #6
%56 = load i32, ptr @SIGINT, align 4, !tbaa !6
%57 = load i32, ptr @SIG_DFL, align 4, !tbaa !6
%58 = call i32 @signal(i32 noundef %56, i32 noundef %57) #6
%59 = load i32, ptr @SIGQUIT, align 4, !tbaa !6
%60 = load i32, ptr @SIG_DFL, align 4, !tbaa !6
%61 = call i32 @signal(i32 noundef %59, i32 noundef %60) #6
%62 = call i32 @execute(ptr noundef nonnull %2) #6
%63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull %2)
%64 = call i32 @exit(i32 noundef 0) #7
unreachable
65: ; preds = %31, %25
%66 = phi i64 [ %4, %25 ], [ %30, %31 ]
%67 = load i32, ptr @VERBOSE, align 4, !tbaa !6
%68 = call i32 @value(i32 noundef %67) #6
%69 = call i64 @boolean(i32 noundef %68) #6
%70 = icmp eq i64 %69, 0
br i1 %70, label %75, label %71
71: ; preds = %65
%72 = call i64 @time(ptr noundef null) #6
%73 = sub nsw i64 %72, %66
%74 = call i32 @prtime(ptr noundef nonnull @.str.3, i64 noundef %73) #6
br label %75
75: ; preds = %71, %65
%76 = load ptr, ptr @fildes, align 8, !tbaa !10
%77 = getelementptr inbounds i8, ptr %76, i64 4
%78 = load i32, ptr %77, align 4, !tbaa !6
%79 = call i32 @write(i32 noundef %78, ptr noundef nonnull @ccc, i32 noundef 1) #6
%80 = load i32, ptr @TCSAFLUSH, align 4, !tbaa !6
%81 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %80, ptr noundef nonnull @term) #6
%82 = load i32, ptr @SIGINT, align 4, !tbaa !6
%83 = load i32, ptr @SIG_DFL, align 4, !tbaa !6
%84 = call i32 @signal(i32 noundef %82, i32 noundef %83) #6
%85 = load i32, ptr @SIGQUIT, align 4, !tbaa !6
%86 = load i32, ptr @SIG_DFL, align 4, !tbaa !6
%87 = call i32 @signal(i32 noundef %85, i32 noundef %86) #6
br label %88
88: ; preds = %1, %75
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #6
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @time(ptr noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3
declare i64 @prompt(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @kill(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @signal(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fork(...) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3
declare i32 @wait(ptr noundef) local_unnamed_addr #2
declare i32 @dup2(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
declare i32 @execute(ptr noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i64 @boolean(i32 noundef) local_unnamed_addr #2
declare i32 @value(i32 noundef) local_unnamed_addr #2
declare i32 @prtime(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #5
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { noreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #5 = { nofree nounwind }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| freebsd_usr.bin_tip_tip_extr_cmds.c_pipeout |
; ModuleID = 'AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_get_memory_size.c'
source_filename = "AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_get_memory_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.TYPE_6__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
%struct.TYPE_5__ = type { i64, ptr }
@RETRO_MEMORY_SAVE_RAM = dso_local local_unnamed_addr global i32 0, align 4
@PicoAHW = dso_local local_unnamed_addr global i32 0, align 4
@PAHW_MCD = dso_local local_unnamed_addr global i32 0, align 4
@Pico = dso_local local_unnamed_addr global %struct.TYPE_6__ zeroinitializer, align 8
@SRam = dso_local local_unnamed_addr global %struct.TYPE_5__ zeroinitializer, align 8
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i64 @retro_get_memory_size(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @RETRO_MEMORY_SAVE_RAM, align 4, !tbaa !5
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %61
4: ; preds = %1
%5 = load i32, ptr @PicoAHW, align 4, !tbaa !5
%6 = load i32, ptr @PAHW_MCD, align 4, !tbaa !5
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %61
9: ; preds = %4
%10 = load i64, ptr @Pico, align 8, !tbaa !9
%11 = icmp eq i64 %10, 0
%12 = load i64, ptr @SRam, align 8
br i1 %11, label %61, label %13
13: ; preds = %9
%14 = icmp eq i64 %12, 0
br i1 %14, label %61, label %15
15: ; preds = %13
%16 = load ptr, ptr getelementptr inbounds (%struct.TYPE_5__, ptr @SRam, i64 0, i32 1), align 8, !tbaa !13
%17 = icmp ult i64 %12, 16
br i1 %17, label %43, label %18
18: ; preds = %15
%19 = add i64 %12, -1
%20 = and i64 %19, 4294967295
%21 = icmp eq i64 %20, 4294967295
%22 = icmp ugt i64 %19, 4294967295
%23 = or i1 %21, %22
br i1 %23, label %43, label %24
24: ; preds = %18
%25 = and i64 %12, -8
%26 = trunc i64 %25 to i32
br label %27
27: ; preds = %27, %24
%28 = phi i64 [ 0, %24 ], [ %37, %27 ]
%29 = phi <4 x i32> [ zeroinitializer, %24 ], [ %35, %27 ]
%30 = phi <4 x i32> [ zeroinitializer, %24 ], [ %36, %27 ]
%31 = getelementptr inbounds i32, ptr %16, i64 %28
%32 = getelementptr inbounds i32, ptr %31, i64 4
%33 = load <4 x i32>, ptr %31, align 4, !tbaa !5
%34 = load <4 x i32>, ptr %32, align 4, !tbaa !5
%35 = or <4 x i32> %33, %29
%36 = or <4 x i32> %34, %30
%37 = add nuw i64 %28, 8
%38 = icmp eq i64 %37, %25
br i1 %38, label %39, label %27, !llvm.loop !16
39: ; preds = %27
%40 = or <4 x i32> %36, %35
%41 = tail call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %40)
%42 = icmp eq i64 %12, %25
br i1 %42, label %57, label %43
43: ; preds = %18, %15, %39
%44 = phi i64 [ 0, %18 ], [ 0, %15 ], [ %25, %39 ]
%45 = phi i32 [ 0, %18 ], [ 0, %15 ], [ %41, %39 ]
%46 = phi i32 [ 0, %18 ], [ 0, %15 ], [ %26, %39 ]
br label %47
47: ; preds = %43, %47
%48 = phi i64 [ %55, %47 ], [ %44, %43 ]
%49 = phi i32 [ %53, %47 ], [ %45, %43 ]
%50 = phi i32 [ %54, %47 ], [ %46, %43 ]
%51 = getelementptr inbounds i32, ptr %16, i64 %48
%52 = load i32, ptr %51, align 4, !tbaa !5
%53 = or i32 %52, %49
%54 = add i32 %50, 1
%55 = zext i32 %54 to i64
%56 = icmp ugt i64 %12, %55
br i1 %56, label %47, label %57, !llvm.loop !20
57: ; preds = %47, %39
%58 = phi i32 [ %41, %39 ], [ %53, %47 ]
%59 = icmp eq i32 %58, 0
%60 = select i1 %59, i64 0, i64 %12
br label %61
61: ; preds = %9, %13, %57, %4, %1
%62 = phi i64 [ 0, %1 ], [ 8192, %4 ], [ 0, %13 ], [ %60, %57 ], [ %12, %9 ]
ret i64 %62
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.or.v4i32(<4 x i32>) #1
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" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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 = !{!"TYPE_6__", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"TYPE_5__", !12, i64 0, !15, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18}
| ; ModuleID = 'AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_get_memory_size.c'
source_filename = "AnghaBench/Provenance/Cores/PicoDrive/platform/extr_libretro.c_retro_get_memory_size.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
%struct.TYPE_5__ = type { i64, ptr }
@RETRO_MEMORY_SAVE_RAM = common local_unnamed_addr global i32 0, align 4
@PicoAHW = common local_unnamed_addr global i32 0, align 4
@PAHW_MCD = common local_unnamed_addr global i32 0, align 4
@Pico = common local_unnamed_addr global %struct.TYPE_6__ zeroinitializer, align 8
@SRam = common local_unnamed_addr global %struct.TYPE_5__ zeroinitializer, align 8
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define i64 @retro_get_memory_size(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @RETRO_MEMORY_SAVE_RAM, align 4, !tbaa !6
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %71
4: ; preds = %1
%5 = load i32, ptr @PicoAHW, align 4, !tbaa !6
%6 = load i32, ptr @PAHW_MCD, align 4, !tbaa !6
%7 = and i32 %6, %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %71
9: ; preds = %4
%10 = load i64, ptr @Pico, align 8, !tbaa !10
%11 = icmp eq i64 %10, 0
%12 = load i64, ptr @SRam, align 8
br i1 %11, label %71, label %13
13: ; preds = %9
%14 = icmp eq i64 %12, 0
br i1 %14, label %71, label %15
15: ; preds = %13
%16 = load ptr, ptr getelementptr inbounds (i8, ptr @SRam, i64 8), align 8, !tbaa !14
%17 = icmp ult i64 %12, 16
br i1 %17, label %53, label %18
18: ; preds = %15
%19 = add i64 %12, -1
%20 = and i64 %19, 4294967295
%21 = icmp eq i64 %20, 4294967295
%22 = icmp ugt i64 %19, 4294967295
%23 = or i1 %21, %22
br i1 %23, label %53, label %24
24: ; preds = %18
%25 = and i64 %12, 8589934576
%26 = trunc i64 %25 to i32
br label %27
27: ; preds = %27, %24
%28 = phi i64 [ 0, %24 ], [ %45, %27 ]
%29 = phi <4 x i32> [ zeroinitializer, %24 ], [ %41, %27 ]
%30 = phi <4 x i32> [ zeroinitializer, %24 ], [ %42, %27 ]
%31 = phi <4 x i32> [ zeroinitializer, %24 ], [ %43, %27 ]
%32 = phi <4 x i32> [ zeroinitializer, %24 ], [ %44, %27 ]
%33 = getelementptr inbounds i32, ptr %16, i64 %28
%34 = getelementptr inbounds i8, ptr %33, i64 16
%35 = getelementptr inbounds i8, ptr %33, i64 32
%36 = getelementptr inbounds i8, ptr %33, i64 48
%37 = load <4 x i32>, ptr %33, align 4, !tbaa !6
%38 = load <4 x i32>, ptr %34, align 4, !tbaa !6
%39 = load <4 x i32>, ptr %35, align 4, !tbaa !6
%40 = load <4 x i32>, ptr %36, align 4, !tbaa !6
%41 = or <4 x i32> %37, %29
%42 = or <4 x i32> %38, %30
%43 = or <4 x i32> %39, %31
%44 = or <4 x i32> %40, %32
%45 = add nuw i64 %28, 16
%46 = icmp eq i64 %45, %25
br i1 %46, label %47, label %27, !llvm.loop !17
47: ; preds = %27
%48 = or <4 x i32> %42, %41
%49 = or <4 x i32> %43, %48
%50 = or <4 x i32> %44, %49
%51 = tail call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %50)
%52 = icmp eq i64 %12, %25
br i1 %52, label %67, label %53
53: ; preds = %47, %18, %15
%54 = phi i64 [ 0, %18 ], [ 0, %15 ], [ %25, %47 ]
%55 = phi i32 [ 0, %18 ], [ 0, %15 ], [ %51, %47 ]
%56 = phi i32 [ 0, %18 ], [ 0, %15 ], [ %26, %47 ]
br label %57
57: ; preds = %53, %57
%58 = phi i64 [ %65, %57 ], [ %54, %53 ]
%59 = phi i32 [ %63, %57 ], [ %55, %53 ]
%60 = phi i32 [ %64, %57 ], [ %56, %53 ]
%61 = getelementptr inbounds i32, ptr %16, i64 %58
%62 = load i32, ptr %61, align 4, !tbaa !6
%63 = or i32 %62, %59
%64 = add i32 %60, 1
%65 = zext i32 %64 to i64
%66 = icmp ugt i64 %12, %65
br i1 %66, label %57, label %67, !llvm.loop !21
67: ; preds = %57, %47
%68 = phi i32 [ %51, %47 ], [ %63, %57 ]
%69 = icmp eq i32 %68, 0
%70 = select i1 %69, i64 0, i64 %12
br label %71
71: ; preds = %9, %13, %67, %4, %1
%72 = phi i64 [ 0, %1 ], [ 8192, %4 ], [ 0, %13 ], [ %70, %67 ], [ %12, %9 ]
ret i64 %72
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.or.v4i32(<4 x i32>) #1
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" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"TYPE_6__", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"TYPE_5__", !13, i64 0, !16, i64 8}
!16 = !{!"any pointer", !8, i64 0}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19}
| Provenance_Cores_PicoDrive_platform_extr_libretro.c_retro_get_memory_size |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/ipv6/extr_anycast.c_ipv6_sock_ac_close.c'
source_filename = "AnghaBench/fastsocket/kernel/net/ipv6/extr_anycast.c_ipv6_sock_ac_close.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ipv6_ac_socklist = type { i32, i32, ptr }
@ipv6_sk_ac_lock = dso_local global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @ipv6_sock_ac_close(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @inet6_sk(ptr noundef %0) #2
%3 = tail call ptr @sock_net(ptr noundef %0) #2
%4 = tail call i32 @write_lock_bh(ptr noundef nonnull @ipv6_sk_ac_lock) #2
%5 = load ptr, ptr %2, align 8, !tbaa !5
store ptr null, ptr %2, align 8, !tbaa !5
%6 = tail call i32 @write_unlock_bh(ptr noundef nonnull @ipv6_sk_ac_lock) #2
%7 = icmp eq ptr %5, null
br i1 %7, label %39, label %8
8: ; preds = %1, %32
%9 = phi ptr [ %27, %32 ], [ null, %1 ]
%10 = phi i32 [ %26, %32 ], [ 0, %1 ]
%11 = phi ptr [ %13, %32 ], [ %5, %1 ]
%12 = getelementptr inbounds %struct.ipv6_ac_socklist, ptr %11, i64 0, i32 2
%13 = load ptr, ptr %12, align 8, !tbaa !10
%14 = load i32, ptr %11, align 8, !tbaa !13
%15 = icmp eq i32 %14, %10
br i1 %15, label %25, label %16
16: ; preds = %8
%17 = icmp eq ptr %9, null
br i1 %17, label %21, label %18
18: ; preds = %16
%19 = tail call i32 @dev_put(ptr noundef nonnull %9) #2
%20 = load i32, ptr %11, align 8, !tbaa !13
br label %21
21: ; preds = %18, %16
%22 = phi i32 [ %20, %18 ], [ %14, %16 ]
%23 = tail call ptr @dev_get_by_index(ptr noundef %3, i32 noundef %22) #2
%24 = load i32, ptr %11, align 8, !tbaa !13
br label %25
25: ; preds = %21, %8
%26 = phi i32 [ %24, %21 ], [ %10, %8 ]
%27 = phi ptr [ %23, %21 ], [ %9, %8 ]
%28 = icmp eq ptr %27, null
br i1 %28, label %32, label %29
29: ; preds = %25
%30 = getelementptr inbounds %struct.ipv6_ac_socklist, ptr %11, i64 0, i32 1
%31 = tail call i32 @ipv6_dev_ac_dec(ptr noundef nonnull %27, ptr noundef nonnull %30) #2
br label %32
32: ; preds = %29, %25
%33 = tail call i32 @sock_kfree_s(ptr noundef %0, ptr noundef nonnull %11, i32 noundef 16) #2
%34 = icmp eq ptr %13, null
br i1 %34, label %35, label %8, !llvm.loop !14
35: ; preds = %32
%36 = icmp eq ptr %27, null
br i1 %36, label %39, label %37
37: ; preds = %35
%38 = tail call i32 @dev_put(ptr noundef nonnull %27) #2
br label %39
39: ; preds = %1, %37, %35
ret void
}
declare ptr @inet6_sk(ptr noundef) local_unnamed_addr #1
declare ptr @sock_net(ptr noundef) local_unnamed_addr #1
declare i32 @write_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @write_unlock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @dev_put(ptr noundef) local_unnamed_addr #1
declare ptr @dev_get_by_index(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ipv6_dev_ac_dec(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sock_kfree_s(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ipv6_pinfo", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"ipv6_ac_socklist", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !12, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/ipv6/extr_anycast.c_ipv6_sock_ac_close.c'
source_filename = "AnghaBench/fastsocket/kernel/net/ipv6/extr_anycast.c_ipv6_sock_ac_close.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ipv6_sk_ac_lock = common global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @ipv6_sock_ac_close(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @inet6_sk(ptr noundef %0) #2
%3 = tail call ptr @sock_net(ptr noundef %0) #2
%4 = tail call i32 @write_lock_bh(ptr noundef nonnull @ipv6_sk_ac_lock) #2
%5 = load ptr, ptr %2, align 8, !tbaa !6
store ptr null, ptr %2, align 8, !tbaa !6
%6 = tail call i32 @write_unlock_bh(ptr noundef nonnull @ipv6_sk_ac_lock) #2
%7 = icmp eq ptr %5, null
br i1 %7, label %38, label %8
8: ; preds = %1, %32
%9 = phi ptr [ %27, %32 ], [ null, %1 ]
%10 = phi i32 [ %26, %32 ], [ 0, %1 ]
%11 = phi ptr [ %13, %32 ], [ %5, %1 ]
%12 = getelementptr inbounds i8, ptr %11, i64 8
%13 = load ptr, ptr %12, align 8, !tbaa !11
%14 = load i32, ptr %11, align 8, !tbaa !14
%15 = icmp eq i32 %14, %10
br i1 %15, label %25, label %16
16: ; preds = %8
%17 = icmp eq ptr %9, null
br i1 %17, label %21, label %18
18: ; preds = %16
%19 = tail call i32 @dev_put(ptr noundef nonnull %9) #2
%20 = load i32, ptr %11, align 8, !tbaa !14
br label %21
21: ; preds = %18, %16
%22 = phi i32 [ %20, %18 ], [ %14, %16 ]
%23 = tail call ptr @dev_get_by_index(ptr noundef %3, i32 noundef %22) #2
%24 = load i32, ptr %11, align 8, !tbaa !14
br label %25
25: ; preds = %21, %8
%26 = phi i32 [ %24, %21 ], [ %10, %8 ]
%27 = phi ptr [ %23, %21 ], [ %9, %8 ]
%28 = icmp eq ptr %27, null
br i1 %28, label %32, label %29
29: ; preds = %25
%30 = getelementptr inbounds i8, ptr %11, i64 4
%31 = tail call i32 @ipv6_dev_ac_dec(ptr noundef nonnull %27, ptr noundef nonnull %30) #2
br label %32
32: ; preds = %29, %25
%33 = tail call i32 @sock_kfree_s(ptr noundef %0, ptr noundef nonnull %11, i32 noundef 16) #2
%34 = icmp eq ptr %13, null
br i1 %34, label %35, label %8, !llvm.loop !15
35: ; preds = %32
br i1 %28, label %38, label %36
36: ; preds = %35
%37 = tail call i32 @dev_put(ptr noundef nonnull %27) #2
br label %38
38: ; preds = %1, %36, %35
ret void
}
declare ptr @inet6_sk(ptr noundef) local_unnamed_addr #1
declare ptr @sock_net(ptr noundef) local_unnamed_addr #1
declare i32 @write_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @write_unlock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @dev_put(ptr noundef) local_unnamed_addr #1
declare ptr @dev_get_by_index(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ipv6_dev_ac_dec(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sock_kfree_s(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ipv6_pinfo", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"ipv6_ac_socklist", !13, i64 0, !13, i64 4, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_net_ipv6_extr_anycast.c_ipv6_sock_ac_close |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_ntstat.c_nstat_tcp_lookup.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_ntstat.c_nstat_tcp_lookup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@tcbinfo = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @nstat_tcp_lookup], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @nstat_tcp_lookup(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @nstat_tcpudp_lookup(ptr noundef nonnull @tcbinfo, ptr noundef %0, i32 noundef %1, ptr noundef %2) #2
ret i32 %4
}
declare i32 @nstat_tcpudp_lookup(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_ntstat.c_nstat_tcp_lookup.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_ntstat.c_nstat_tcp_lookup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@tcbinfo = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @nstat_tcp_lookup], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @nstat_tcp_lookup(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = tail call i32 @nstat_tcpudp_lookup(ptr noundef nonnull @tcbinfo, ptr noundef %0, i32 noundef %1, ptr noundef %2) #2
ret i32 %4
}
declare i32 @nstat_tcpudp_lookup(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| darwin-xnu_bsd_net_extr_ntstat.c_nstat_tcp_lookup |
; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_vfs_default.c_vop_stdaccess.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_vfs_default.c_vop_stdaccess.c"
target datalayout = "e-m:e-p270:32:32-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.vop_access_args = type { i32, i32, i32, i32 }
@VEXEC = dso_local local_unnamed_addr global i32 0, align 4
@VWRITE = dso_local local_unnamed_addr global i32 0, align 4
@VREAD = dso_local local_unnamed_addr global i32 0, align 4
@VADMIN = dso_local local_unnamed_addr global i32 0, align 4
@VAPPEND = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"invalid bit in accmode\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @vop_stdaccess(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = load i32, ptr @VEXEC, align 4, !tbaa !10
%4 = load i32, ptr @VWRITE, align 4, !tbaa !10
%5 = or i32 %4, %3
%6 = load i32, ptr @VREAD, align 4, !tbaa !10
%7 = or i32 %5, %6
%8 = load i32, ptr @VADMIN, align 4, !tbaa !10
%9 = or i32 %7, %8
%10 = load i32, ptr @VAPPEND, align 4, !tbaa !10
%11 = or i32 %9, %10
%12 = xor i32 %11, -1
%13 = and i32 %2, %12
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @KASSERT(i32 noundef %15, ptr noundef nonnull @.str) #2
%17 = getelementptr inbounds %struct.vop_access_args, ptr %0, i64 0, i32 3
%18 = load i32, ptr %17, align 4, !tbaa !11
%19 = load i32, ptr %0, align 4, !tbaa !5
%20 = getelementptr inbounds %struct.vop_access_args, ptr %0, i64 0, i32 2
%21 = load i32, ptr %20, align 4, !tbaa !12
%22 = getelementptr inbounds %struct.vop_access_args, ptr %0, i64 0, i32 1
%23 = load i32, ptr %22, align 4, !tbaa !13
%24 = tail call i32 @VOP_ACCESSX(i32 noundef %18, i32 noundef %19, i32 noundef %21, i32 noundef %23) #2
ret i32 %24
}
declare i32 @KASSERT(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @VOP_ACCESSX(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"vop_access_args", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 12}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/sys/kern/extr_vfs_default.c_vop_stdaccess.c'
source_filename = "AnghaBench/freebsd/sys/kern/extr_vfs_default.c_vop_stdaccess.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VEXEC = common local_unnamed_addr global i32 0, align 4
@VWRITE = common local_unnamed_addr global i32 0, align 4
@VREAD = common local_unnamed_addr global i32 0, align 4
@VADMIN = common local_unnamed_addr global i32 0, align 4
@VAPPEND = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"invalid bit in accmode\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @vop_stdaccess(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = load i32, ptr @VEXEC, align 4, !tbaa !11
%4 = load i32, ptr @VWRITE, align 4, !tbaa !11
%5 = or i32 %4, %3
%6 = load i32, ptr @VREAD, align 4, !tbaa !11
%7 = or i32 %5, %6
%8 = load i32, ptr @VADMIN, align 4, !tbaa !11
%9 = or i32 %7, %8
%10 = load i32, ptr @VAPPEND, align 4, !tbaa !11
%11 = or i32 %9, %10
%12 = xor i32 %11, -1
%13 = and i32 %2, %12
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @KASSERT(i32 noundef %15, ptr noundef nonnull @.str) #2
%17 = getelementptr inbounds i8, ptr %0, i64 12
%18 = load i32, ptr %17, align 4, !tbaa !12
%19 = load i32, ptr %0, align 4, !tbaa !6
%20 = getelementptr inbounds i8, ptr %0, i64 8
%21 = load i32, ptr %20, align 4, !tbaa !13
%22 = getelementptr inbounds i8, ptr %0, i64 4
%23 = load i32, ptr %22, align 4, !tbaa !14
%24 = tail call i32 @VOP_ACCESSX(i32 noundef %18, i32 noundef %19, i32 noundef %21, i32 noundef %23) #2
ret i32 %24
}
declare i32 @KASSERT(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @VOP_ACCESSX(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"vop_access_args", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !8, i64 12}
!13 = !{!7, !8, i64 8}
!14 = !{!7, !8, i64 4}
| freebsd_sys_kern_extr_vfs_default.c_vop_stdaccess |
; ModuleID = 'AnghaBench/linux/drivers/net/usb/extr_sierra_net.c_sierra_net_handle_lsi.c'
source_filename = "AnghaBench/linux/drivers/net/usb/extr_sierra_net.c_sierra_net_handle_lsi.c"
target datalayout = "e-m:e-p270:32:32-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.hip_hdr = type { i32, %struct.TYPE_3__, %struct.TYPE_4__ }
%struct.TYPE_3__ = type { i32 }
%struct.TYPE_4__ = type { i32 }
@.str = private unnamed_addr constant [13 x i8] c"Invalid LSI\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @sierra_net_handle_lsi], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @sierra_net_handle_lsi(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = tail call ptr @sierra_net_get_private(ptr noundef %0) #2
%5 = load i32, ptr %2, align 4, !tbaa !5
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %1, i64 %6
%8 = getelementptr inbounds %struct.hip_hdr, ptr %2, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = tail call i32 @sierra_net_parse_lsi(ptr noundef %0, ptr noundef %7, i32 noundef %9) #2
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, ptr %0, align 4, !tbaa !13
%14 = tail call i32 @netdev_err(i32 noundef %13, ptr noundef nonnull @.str) #2
br label %24
15: ; preds = %3
%16 = icmp eq i32 %10, 0
br i1 %16, label %21, label %17
17: ; preds = %15
%18 = getelementptr inbounds %struct.hip_hdr, ptr %2, i64 0, i32 1
%19 = load i32, ptr %18, align 4, !tbaa !15
%20 = tail call i32 @sierra_net_set_ctx_index(ptr noundef %4, i32 noundef %19) #2
br label %21
21: ; preds = %15, %17
%22 = phi i32 [ 1, %17 ], [ 0, %15 ]
store i32 %22, ptr %4, align 4, !tbaa !16
%23 = tail call i32 @usbnet_link_change(ptr noundef %0, i32 noundef %10, i32 noundef 0) #2
br label %24
24: ; preds = %21, %12
ret void
}
declare ptr @sierra_net_get_private(ptr noundef) local_unnamed_addr #1
declare i32 @sierra_net_parse_lsi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @netdev_err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sierra_net_set_ctx_index(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @usbnet_link_change(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"hip_hdr", !7, i64 0, !10, i64 4, !11, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_3__", !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"usbnet", !7, i64 0}
!15 = !{!6, !7, i64 4}
!16 = !{!17, !7, i64 0}
!17 = !{!"sierra_net_data", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/usb/extr_sierra_net.c_sierra_net_handle_lsi.c'
source_filename = "AnghaBench/linux/drivers/net/usb/extr_sierra_net.c_sierra_net_handle_lsi.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"Invalid LSI\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @sierra_net_handle_lsi], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @sierra_net_handle_lsi(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = tail call ptr @sierra_net_get_private(ptr noundef %0) #2
%5 = load i32, ptr %2, align 4, !tbaa !6
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, ptr %1, i64 %6
%8 = getelementptr inbounds i8, ptr %2, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !13
%10 = tail call i32 @sierra_net_parse_lsi(ptr noundef %0, ptr noundef %7, i32 noundef %9) #2
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, ptr %0, align 4, !tbaa !14
%14 = tail call i32 @netdev_err(i32 noundef %13, ptr noundef nonnull @.str) #2
br label %24
15: ; preds = %3
%16 = icmp eq i32 %10, 0
br i1 %16, label %21, label %17
17: ; preds = %15
%18 = getelementptr inbounds i8, ptr %2, i64 4
%19 = load i32, ptr %18, align 4, !tbaa !16
%20 = tail call i32 @sierra_net_set_ctx_index(ptr noundef %4, i32 noundef %19) #2
br label %21
21: ; preds = %15, %17
%22 = phi i32 [ 1, %17 ], [ 0, %15 ]
store i32 %22, ptr %4, align 4, !tbaa !17
%23 = tail call i32 @usbnet_link_change(ptr noundef %0, i32 noundef %10, i32 noundef 0) #2
br label %24
24: ; preds = %21, %12
ret void
}
declare ptr @sierra_net_get_private(ptr noundef) local_unnamed_addr #1
declare i32 @sierra_net_parse_lsi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @netdev_err(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sierra_net_set_ctx_index(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @usbnet_link_change(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"hip_hdr", !8, i64 0, !11, i64 4, !12, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_3__", !8, i64 0}
!12 = !{!"TYPE_4__", !8, i64 0}
!13 = !{!7, !8, i64 8}
!14 = !{!15, !8, i64 0}
!15 = !{!"usbnet", !8, i64 0}
!16 = !{!7, !8, i64 4}
!17 = !{!18, !8, i64 0}
!18 = !{!"sierra_net_data", !8, i64 0}
| linux_drivers_net_usb_extr_sierra_net.c_sierra_net_handle_lsi |
; ModuleID = 'AnghaBench/freebsd/sys/dev/bhnd/bhndb/extr_bhndb_pci.c_bhndb_pci_resume.c'
source_filename = "AnghaBench/freebsd/sys/dev/bhnd/bhndb/extr_bhndb_pci.c_bhndb_pci_resume.c"
target datalayout = "e-m:e-p270:32:32-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 @bhndb_pci_resume], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @bhndb_pci_resume(i32 noundef %0) #0 {
%2 = tail call ptr @device_get_softc(i32 noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = tail call i32 @bhndb_enable_pci_clocks(i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 @bhndb_generic_resume(i32 noundef %0) #2
br label %8
8: ; preds = %1, %6
%9 = phi i32 [ %7, %6 ], [ %4, %1 ]
ret i32 %9
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @bhndb_enable_pci_clocks(i32 noundef) local_unnamed_addr #1
declare i32 @bhndb_generic_resume(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"bhndb_pci_softc", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/bhnd/bhndb/extr_bhndb_pci.c_bhndb_pci_resume.c'
source_filename = "AnghaBench/freebsd/sys/dev/bhnd/bhndb/extr_bhndb_pci.c_bhndb_pci_resume.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 @bhndb_pci_resume], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @bhndb_pci_resume(i32 noundef %0) #0 {
%2 = tail call ptr @device_get_softc(i32 noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = tail call i32 @bhndb_enable_pci_clocks(i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 @bhndb_generic_resume(i32 noundef %0) #2
br label %8
8: ; preds = %1, %6
%9 = phi i32 [ %7, %6 ], [ %4, %1 ]
ret i32 %9
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @bhndb_enable_pci_clocks(i32 noundef) local_unnamed_addr #1
declare i32 @bhndb_generic_resume(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"bhndb_pci_softc", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_dev_bhnd_bhndb_extr_bhndb_pci.c_bhndb_pci_resume |
; ModuleID = 'AnghaBench/linux/drivers/scsi/aic7xxx/aicasm/extr_aicasm_symbol.c_aic_print_file_prologue.c'
source_filename = "AnghaBench/linux/drivers/scsi/aic7xxx/aicasm/extr_aicasm_symbol.c_aic_print_file_prologue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [105 x i8] c"/*\0A * DO NOT EDIT - This file is automatically generated\0A *\09\09 from the following source files:\0A *\0A%s */\0A\00", align 1
@versions = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @aic_print_file_prologue(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load ptr, ptr @versions, align 8, !tbaa !5
%5 = tail call i32 @fprintf(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef %4) #2
br label %6
6: ; preds = %1, %3
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/aic7xxx/aicasm/extr_aicasm_symbol.c_aic_print_file_prologue.c'
source_filename = "AnghaBench/linux/drivers/scsi/aic7xxx/aicasm/extr_aicasm_symbol.c_aic_print_file_prologue.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 [105 x i8] c"/*\0A * DO NOT EDIT - This file is automatically generated\0A *\09\09 from the following source files:\0A *\0A%s */\0A\00", align 1
@versions = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @aic_print_file_prologue(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load ptr, ptr @versions, align 8, !tbaa !6
%5 = tail call i32 @fprintf(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef %4) #2
br label %6
6: ; preds = %1, %3
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_scsi_aic7xxx_aicasm_extr_aicasm_symbol.c_aic_print_file_prologue |
; ModuleID = 'AnghaBench/Cello/src/extr_Get.c_key_type.c'
source_filename = "AnghaBench/Cello/src/extr_Get.c_key_type.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@Get = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @key_type(i32 noundef %0) #0 {
%2 = load i32, ptr @Get, align 4, !tbaa !5
%3 = tail call i32 @method(i32 noundef %0, i32 noundef %2, ptr noundef nonnull @key_type) #2
ret i32 %3
}
declare i32 @method(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Cello/src/extr_Get.c_key_type.c'
source_filename = "AnghaBench/Cello/src/extr_Get.c_key_type.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@Get = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @key_type(i32 noundef %0) #0 {
%2 = load i32, ptr @Get, align 4, !tbaa !6
%3 = tail call i32 @method(i32 noundef %0, i32 noundef %2, ptr noundef nonnull @key_type) #2
ret i32 %3
}
declare i32 @method(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Cello_src_extr_Get.c_key_type |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/exynos/extr_exynos_dp.c_exynos_dp_get_modes.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/exynos/extr_exynos_dp.c_exynos_dp_get_modes.c"
target datalayout = "e-m:e-p270:32:32-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.exynos_dp_device = type { i32, i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64 }
%struct.drm_connector = type { %struct.TYPE_3__, i32 }
%struct.TYPE_3__ = type { i32, i32 }
%struct.drm_display_mode = type { i32, i32, i32 }
@.str = private unnamed_addr constant [38 x i8] c"failed to create a new display mode.\0A\00", align 1
@DRM_MODE_TYPE_DRIVER = dso_local local_unnamed_addr global i32 0, align 4
@DRM_MODE_TYPE_PREFERRED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @exynos_dp_get_modes], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @exynos_dp_get_modes(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @to_dp(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.exynos_dp_device, ptr %3, i64 0, i32 2
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %25
7: ; preds = %2
%8 = getelementptr inbounds %struct.drm_connector, ptr %1, i64 0, i32 1
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = tail call ptr @drm_mode_create(i32 noundef %9) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = getelementptr inbounds %struct.exynos_dp_device, ptr %3, i64 0, i32 1
%14 = load i32, ptr %13, align 4, !tbaa !15
%15 = tail call i32 @DRM_DEV_ERROR(i32 noundef %14, ptr noundef nonnull @.str) #2
br label %25
16: ; preds = %7
%17 = tail call i32 @drm_display_mode_from_videomode(ptr noundef nonnull %3, ptr noundef nonnull %10) #2
%18 = getelementptr inbounds %struct.drm_display_mode, ptr %10, i64 0, i32 1
%19 = load <2 x i32>, ptr %18, align 4, !tbaa !16
store <2 x i32> %19, ptr %1, align 4, !tbaa !16
%20 = load i32, ptr @DRM_MODE_TYPE_DRIVER, align 4, !tbaa !16
%21 = load i32, ptr @DRM_MODE_TYPE_PREFERRED, align 4, !tbaa !16
%22 = or i32 %21, %20
store i32 %22, ptr %10, align 4, !tbaa !17
%23 = tail call i32 @drm_mode_set_name(ptr noundef nonnull %10) #2
%24 = tail call i32 @drm_mode_probed_add(ptr noundef nonnull %1, ptr noundef nonnull %10) #2
br label %25
25: ; preds = %2, %16, %12
%26 = phi i32 [ 1, %16 ], [ 0, %12 ], [ 0, %2 ]
ret i32 %26
}
declare ptr @to_dp(ptr noundef) local_unnamed_addr #1
declare ptr @drm_mode_create(i32 noundef) local_unnamed_addr #1
declare i32 @DRM_DEV_ERROR(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @drm_display_mode_from_videomode(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @drm_mode_set_name(ptr noundef) local_unnamed_addr #1
declare i32 @drm_mode_probed_add(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 8}
!6 = !{!"exynos_dp_device", !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 = !{!"TYPE_4__", !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"drm_connector", !14, i64 0, !7, i64 8}
!14 = !{!"TYPE_3__", !7, i64 0, !7, i64 4}
!15 = !{!6, !7, i64 4}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"drm_display_mode", !7, i64 0, !7, i64 4, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/exynos/extr_exynos_dp.c_exynos_dp_get_modes.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/exynos/extr_exynos_dp.c_exynos_dp_get_modes.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 [38 x i8] c"failed to create a new display mode.\0A\00", align 1
@DRM_MODE_TYPE_DRIVER = common local_unnamed_addr global i32 0, align 4
@DRM_MODE_TYPE_PREFERRED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @exynos_dp_get_modes], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @exynos_dp_get_modes(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @to_dp(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %3, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %25
7: ; preds = %2
%8 = getelementptr inbounds i8, ptr %1, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !13
%10 = tail call ptr @drm_mode_create(i32 noundef %9) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = getelementptr inbounds i8, ptr %3, i64 4
%14 = load i32, ptr %13, align 4, !tbaa !16
%15 = tail call i32 @DRM_DEV_ERROR(i32 noundef %14, ptr noundef nonnull @.str) #2
br label %25
16: ; preds = %7
%17 = tail call i32 @drm_display_mode_from_videomode(ptr noundef nonnull %3, ptr noundef nonnull %10) #2
%18 = getelementptr inbounds i8, ptr %10, i64 4
%19 = load <2 x i32>, ptr %18, align 4, !tbaa !17
store <2 x i32> %19, ptr %1, align 4, !tbaa !17
%20 = load i32, ptr @DRM_MODE_TYPE_DRIVER, align 4, !tbaa !17
%21 = load i32, ptr @DRM_MODE_TYPE_PREFERRED, align 4, !tbaa !17
%22 = or i32 %21, %20
store i32 %22, ptr %10, align 4, !tbaa !18
%23 = tail call i32 @drm_mode_set_name(ptr noundef nonnull %10) #2
%24 = tail call i32 @drm_mode_probed_add(ptr noundef nonnull %1, ptr noundef nonnull %10) #2
br label %25
25: ; preds = %2, %16, %12
%26 = phi i32 [ 1, %16 ], [ 0, %12 ], [ 0, %2 ]
ret i32 %26
}
declare ptr @to_dp(ptr noundef) local_unnamed_addr #1
declare ptr @drm_mode_create(i32 noundef) local_unnamed_addr #1
declare i32 @DRM_DEV_ERROR(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @drm_display_mode_from_videomode(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @drm_mode_set_name(ptr noundef) local_unnamed_addr #1
declare i32 @drm_mode_probed_add(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 8}
!7 = !{!"exynos_dp_device", !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 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!14, !8, i64 8}
!14 = !{!"drm_connector", !15, i64 0, !8, i64 8}
!15 = !{!"TYPE_3__", !8, i64 0, !8, i64 4}
!16 = !{!7, !8, i64 4}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !8, i64 0}
!19 = !{!"drm_display_mode", !8, i64 0, !8, i64 4, !8, i64 8}
| linux_drivers_gpu_drm_exynos_extr_exynos_dp.c_exynos_dp_get_modes |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopdm.c_m68k_op_move_16_pi_pi.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopdm.c_m68k_op_move_16_pi_pi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FLAG_N = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_Z = dso_local local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_V = dso_local local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_C = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @m68k_op_move_16_pi_pi() local_unnamed_addr #0 {
%1 = tail call i32 (...) @OPER_AY_PI_16() #2
%2 = tail call i32 (...) @EA_AX_PI_16() #2
%3 = tail call i32 @m68ki_write_16(i32 noundef %2, i32 noundef %1) #2
%4 = tail call i32 @NFLAG_16(i32 noundef %1) #2
store i32 %4, ptr @FLAG_N, align 4, !tbaa !5
store i32 %1, ptr @FLAG_Z, align 4, !tbaa !5
%5 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !5
store i32 %5, ptr @FLAG_V, align 4, !tbaa !5
%6 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !5
store i32 %6, ptr @FLAG_C, align 4, !tbaa !5
ret void
}
declare i32 @OPER_AY_PI_16(...) local_unnamed_addr #1
declare i32 @EA_AX_PI_16(...) local_unnamed_addr #1
declare i32 @m68ki_write_16(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @NFLAG_16(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopdm.c_m68k_op_move_16_pi_pi.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopdm.c_m68k_op_move_16_pi_pi.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FLAG_N = common local_unnamed_addr global i32 0, align 4
@FLAG_Z = common local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_V = common local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_C = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @m68k_op_move_16_pi_pi() local_unnamed_addr #0 {
%1 = tail call i32 @OPER_AY_PI_16() #2
%2 = tail call i32 @EA_AX_PI_16() #2
%3 = tail call i32 @m68ki_write_16(i32 noundef %2, i32 noundef %1) #2
%4 = tail call i32 @NFLAG_16(i32 noundef %1) #2
store i32 %4, ptr @FLAG_N, align 4, !tbaa !6
store i32 %1, ptr @FLAG_Z, align 4, !tbaa !6
%5 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !6
store i32 %5, ptr @FLAG_V, align 4, !tbaa !6
%6 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !6
store i32 %6, ptr @FLAG_C, align 4, !tbaa !6
ret void
}
declare i32 @OPER_AY_PI_16(...) local_unnamed_addr #1
declare i32 @EA_AX_PI_16(...) local_unnamed_addr #1
declare i32 @m68ki_write_16(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @NFLAG_16(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_Yabause_yabause_src_musashi_extr_m68kopdm.c_m68k_op_move_16_pi_pi |
; ModuleID = 'AnghaBench/freebsd/lib/libthread_db/extr_thread_db.c_td_ta_map_lwp2thr.c'
source_filename = "AnghaBench/freebsd/lib/libthread_db/extr_thread_db.c_td_ta_map_lwp2thr.c"
target datalayout = "e-m:e-p270:32:32-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 @td_ta_map_lwp2thr(ptr noundef %0, i32 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 = tail call i32 %5(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #1
ret i32 %6
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_6__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_5__", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/lib/libthread_db/extr_thread_db.c_td_ta_map_lwp2thr.c'
source_filename = "AnghaBench/freebsd/lib/libthread_db/extr_thread_db.c_td_ta_map_lwp2thr.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 @td_ta_map_lwp2thr(ptr noundef %0, i32 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 = tail call i32 %5(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #1
ret i32 %6
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_6__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_5__", !8, i64 0}
| freebsd_lib_libthread_db_extr_thread_db.c_td_ta_map_lwp2thr |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/mmc/host/extr_sdhci.h_sdhci_writeb.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/mmc/host/extr_sdhci.h_sdhci_writeb.c"
target datalayout = "e-m:e-p270:32:32-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 @sdhci_writeb], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @sdhci_writeb(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = sext i32 %2 to i64
%6 = add nsw i64 %4, %5
%7 = tail call i32 @writeb(i32 noundef %1, i64 noundef %6) #2
ret void
}
declare i32 @writeb(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"sdhci_host", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/mmc/host/extr_sdhci.h_sdhci_writeb.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/mmc/host/extr_sdhci.h_sdhci_writeb.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 @sdhci_writeb], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @sdhci_writeb(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = sext i32 %2 to i64
%6 = add nsw i64 %4, %5
%7 = tail call i32 @writeb(i32 noundef %1, i64 noundef %6) #2
ret void
}
declare i32 @writeb(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"sdhci_host", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_mmc_host_extr_sdhci.h_sdhci_writeb |
; ModuleID = 'AnghaBench/fastsocket/kernel/crypto/extr_ahash.c_crypto_ahash_setkey.c'
source_filename = "AnghaBench/fastsocket/kernel/crypto/extr_ahash.c_crypto_ahash_setkey.c"
target datalayout = "e-m:e-p270:32:32-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 @crypto_ahash_setkey(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i64 @crypto_ahash_alignmask(ptr noundef %0) #2
%5 = ptrtoint ptr %1 to i64
%6 = and i64 %4, %5
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 @ahash_setkey_unaligned(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2
br label %13
10: ; preds = %3
%11 = load ptr, ptr %0, align 8, !tbaa !5
%12 = tail call i32 %11(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2) #2
br label %13
13: ; preds = %10, %8
%14 = phi i32 [ %9, %8 ], [ %12, %10 ]
ret i32 %14
}
declare i64 @crypto_ahash_alignmask(ptr noundef) local_unnamed_addr #1
declare i32 @ahash_setkey_unaligned(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"crypto_ahash", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/crypto/extr_ahash.c_crypto_ahash_setkey.c'
source_filename = "AnghaBench/fastsocket/kernel/crypto/extr_ahash.c_crypto_ahash_setkey.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 @crypto_ahash_setkey(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i64 @crypto_ahash_alignmask(ptr noundef %0) #2
%5 = ptrtoint ptr %1 to i64
%6 = and i64 %4, %5
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = tail call i32 @ahash_setkey_unaligned(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2
br label %13
10: ; preds = %3
%11 = load ptr, ptr %0, align 8, !tbaa !6
%12 = tail call i32 %11(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2) #2
br label %13
13: ; preds = %10, %8
%14 = phi i32 [ %9, %8 ], [ %12, %10 ]
ret i32 %14
}
declare i64 @crypto_ahash_alignmask(ptr noundef) local_unnamed_addr #1
declare i32 @ahash_setkey_unaligned(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"crypto_ahash", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_crypto_extr_ahash.c_crypto_ahash_setkey |
; ModuleID = 'AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c_tl_update_next_binlog_wait_time.c'
source_filename = "AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c_tl_update_next_binlog_wait_time.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@binlog_wait_time_tree = dso_local local_unnamed_addr global i32 0, align 4
@next_binlog_wait_time = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @tl_update_next_binlog_wait_time() local_unnamed_addr #0 {
%1 = load i32, ptr @binlog_wait_time_tree, align 4, !tbaa !5
%2 = tail call ptr @tree_get_min_binlog_wait(i32 noundef %1) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %7, label %4
4: ; preds = %0
%5 = load ptr, ptr %2, align 8, !tbaa !9
%6 = load i32, ptr %5, align 4, !tbaa !12
br label %7
7: ; preds = %0, %4
%8 = phi i32 [ %6, %4 ], [ -1, %0 ]
store i32 %8, ptr @next_binlog_wait_time, align 4, !tbaa !5
ret void
}
declare ptr @tree_get_min_binlog_wait(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_5__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TYPE_4__", !6, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c_tl_update_next_binlog_wait_time.c'
source_filename = "AnghaBench/kphp-kdb/vv/extr_vv-tl-parse.c_tl_update_next_binlog_wait_time.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@binlog_wait_time_tree = common local_unnamed_addr global i32 0, align 4
@next_binlog_wait_time = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @tl_update_next_binlog_wait_time() local_unnamed_addr #0 {
%1 = load i32, ptr @binlog_wait_time_tree, align 4, !tbaa !6
%2 = tail call ptr @tree_get_min_binlog_wait(i32 noundef %1) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %7, label %4
4: ; preds = %0
%5 = load ptr, ptr %2, align 8, !tbaa !10
%6 = load i32, ptr %5, align 4, !tbaa !13
br label %7
7: ; preds = %0, %4
%8 = phi i32 [ %6, %4 ], [ -1, %0 ]
store i32 %8, ptr @next_binlog_wait_time, align 4, !tbaa !6
ret void
}
declare ptr @tree_get_min_binlog_wait(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_4__", !7, i64 0}
| kphp-kdb_vv_extr_vv-tl-parse.c_tl_update_next_binlog_wait_time |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_or_32_er_pcix.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_or_32_er_pcix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DX = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_N = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_Z = dso_local local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_C = dso_local local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = dso_local local_unnamed_addr global i32 0, align 4
@FLAG_V = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @m68k_op_or_32_er_pcix() local_unnamed_addr #0 {
%1 = tail call i32 (...) @OPER_PCIX_32() #2
%2 = load i32, ptr @DX, align 4, !tbaa !5
%3 = or i32 %2, %1
store i32 %3, ptr @DX, align 4, !tbaa !5
%4 = tail call i32 @NFLAG_32(i32 noundef %3) #2
store i32 %4, ptr @FLAG_N, align 4, !tbaa !5
store i32 %3, ptr @FLAG_Z, align 4, !tbaa !5
%5 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !5
store i32 %5, ptr @FLAG_C, align 4, !tbaa !5
%6 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !5
store i32 %6, ptr @FLAG_V, align 4, !tbaa !5
ret void
}
declare i32 @OPER_PCIX_32(...) local_unnamed_addr #1
declare i32 @NFLAG_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_or_32_er_pcix.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/musashi/extr_m68kopnz.c_m68k_op_or_32_er_pcix.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DX = common local_unnamed_addr global i32 0, align 4
@FLAG_N = common local_unnamed_addr global i32 0, align 4
@FLAG_Z = common local_unnamed_addr global i32 0, align 4
@CFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_C = common local_unnamed_addr global i32 0, align 4
@VFLAG_CLEAR = common local_unnamed_addr global i32 0, align 4
@FLAG_V = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @m68k_op_or_32_er_pcix() local_unnamed_addr #0 {
%1 = tail call i32 @OPER_PCIX_32() #2
%2 = load i32, ptr @DX, align 4, !tbaa !6
%3 = or i32 %2, %1
store i32 %3, ptr @DX, align 4, !tbaa !6
%4 = tail call i32 @NFLAG_32(i32 noundef %3) #2
store i32 %4, ptr @FLAG_N, align 4, !tbaa !6
store i32 %3, ptr @FLAG_Z, align 4, !tbaa !6
%5 = load i32, ptr @CFLAG_CLEAR, align 4, !tbaa !6
store i32 %5, ptr @FLAG_C, align 4, !tbaa !6
%6 = load i32, ptr @VFLAG_CLEAR, align 4, !tbaa !6
store i32 %6, ptr @FLAG_V, align 4, !tbaa !6
ret void
}
declare i32 @OPER_PCIX_32(...) local_unnamed_addr #1
declare i32 @NFLAG_32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| Provenance_Cores_Yabause_yabause_src_musashi_extr_m68kopnz.c_m68k_op_or_32_er_pcix |
; ModuleID = 'AnghaBench/lab/engine/code/client/extr_cl_keys.c_CL_SaveConsoleHistory.c'
source_filename = "AnghaBench/lab/engine/code/client/extr_cl_keys.c_CL_SaveConsoleHistory.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 { i8*, i32, i32 }
@consoleSaveBuffer = dso_local local_unnamed_addr global i8* null, align 8
@nextHistoryLine = dso_local local_unnamed_addr global i32 0, align 4
@COMMAND_HISTORY = dso_local local_unnamed_addr global i32 0, align 4
@historyEditLines = dso_local local_unnamed_addr global %struct.TYPE_2__* null, align 8
@.str = private unnamed_addr constant [14 x i8] c"999 999 999 \00", align 1
@MAX_CONSOLE_SAVE_BUFFER = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"%d %d %d %s \00", align 1
@consoleSaveBufferSize = dso_local local_unnamed_addr global i32 0, align 4
@CONSOLE_HISTORY_FILE = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Couldn't write %s.\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @CL_SaveConsoleHistory() local_unnamed_addr #0 {
%1 = load i8*, i8** @consoleSaveBuffer, align 8, !tbaa !5
store i8 0, i8* %1, align 1, !tbaa !9
%2 = load i32, i32* @nextHistoryLine, align 4, !tbaa !10
%3 = add nsw i32 %2, -1
%4 = load i32, i32* @COMMAND_HISTORY, align 4, !tbaa !10
%5 = srem i32 %3, %4
%6 = load %struct.TYPE_2__*, %struct.TYPE_2__** @historyEditLines, align 8, !tbaa !5
br label %7
7: ; preds = %40, %0
%8 = phi i32 [ %2, %0 ], [ %41, %40 ]
%9 = phi i32 [ %4, %0 ], [ %42, %40 ]
%10 = phi %struct.TYPE_2__* [ %6, %0 ], [ %43, %40 ]
%11 = phi i32 [ %5, %0 ], [ %46, %40 ]
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %10, i64 %12, i32 0
%14 = load i8*, i8** %13, align 8, !tbaa !12
%15 = load i8, i8* %14, align 1, !tbaa !9
%16 = icmp eq i8 %15, 0
br i1 %16, label %40, label %17
17: ; preds = %7
%18 = tail call i32 @strlen(i8* noundef nonnull %14) #2
%19 = load i8*, i8** @consoleSaveBuffer, align 8, !tbaa !5
%20 = tail call i32 @strlen(i8* noundef %19) #2
%21 = tail call i32 @strlen(i8* noundef getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0)) #2
%22 = add i32 %20, %18
%23 = add i32 %22, %21
%24 = load i32, i32* @MAX_CONSOLE_SAVE_BUFFER, align 4, !tbaa !10
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %50
26: ; preds = %17
%27 = load i8*, i8** @consoleSaveBuffer, align 8, !tbaa !5
%28 = load %struct.TYPE_2__*, %struct.TYPE_2__** @historyEditLines, align 8, !tbaa !5
%29 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %28, i64 %12, i32 2
%30 = load i32, i32* %29, align 4, !tbaa !14
%31 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %28, i64 %12, i32 1
%32 = load i32, i32* %31, align 8, !tbaa !15
%33 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %28, i64 %12, i32 0
%34 = load i8*, i8** %33, align 8, !tbaa !12
%35 = tail call i32 @va(i8* noundef getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 noundef %30, i32 noundef %32, i32 noundef %18, i8* noundef %34) #2
%36 = tail call i32 @Q_strcat(i8* noundef %27, i32 noundef %24, i32 noundef %35) #2
%37 = load %struct.TYPE_2__*, %struct.TYPE_2__** @historyEditLines, align 8, !tbaa !5
%38 = load i32, i32* @COMMAND_HISTORY, align 4, !tbaa !10
%39 = load i32, i32* @nextHistoryLine, align 4, !tbaa !10
br label %40
40: ; preds = %26, %7
%41 = phi i32 [ %39, %26 ], [ %8, %7 ]
%42 = phi i32 [ %38, %26 ], [ %9, %7 ]
%43 = phi %struct.TYPE_2__* [ %37, %26 ], [ %10, %7 ]
%44 = add nsw i32 %11, -1
%45 = add nsw i32 %44, %42
%46 = srem i32 %45, %42
%47 = add nsw i32 %41, -1
%48 = srem i32 %47, %42
%49 = icmp eq i32 %46, %48
br i1 %49, label %50, label %7, !llvm.loop !16
50: ; preds = %17, %40
%51 = load i8*, i8** @consoleSaveBuffer, align 8, !tbaa !5
%52 = tail call i32 @strlen(i8* noundef %51) #2
store i32 %52, i32* @consoleSaveBufferSize, align 4, !tbaa !10
%53 = load i32, i32* @CONSOLE_HISTORY_FILE, align 4, !tbaa !10
%54 = tail call i32 @FS_FOpenFileWrite(i32 noundef %53) #2
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %50
%57 = load i32, i32* @CONSOLE_HISTORY_FILE, align 4, !tbaa !10
%58 = tail call i32 @Com_Printf(i8* noundef getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 noundef %57) #2
br label %70
59: ; preds = %50
%60 = load i8*, i8** @consoleSaveBuffer, align 8, !tbaa !5
%61 = load i32, i32* @consoleSaveBufferSize, align 4, !tbaa !10
%62 = tail call i32 @FS_Write(i8* noundef %60, i32 noundef %61, i32 noundef %54) #2
%63 = load i32, i32* @consoleSaveBufferSize, align 4, !tbaa !10
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = load i32, i32* @CONSOLE_HISTORY_FILE, align 4, !tbaa !10
%67 = tail call i32 @Com_Printf(i8* noundef getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 noundef %66) #2
br label %68
68: ; preds = %65, %59
%69 = tail call i32 @FS_FCloseFile(i32 noundef %54) #2
br label %70
70: ; preds = %68, %56
ret void
}
declare i32 @strlen(i8* noundef) local_unnamed_addr #1
declare i32 @Q_strcat(i8* noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @va(i8* noundef, i32 noundef, i32 noundef, i32 noundef, i8* noundef) local_unnamed_addr #1
declare i32 @FS_FOpenFileWrite(i32 noundef) local_unnamed_addr #1
declare i32 @Com_Printf(i8* noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FS_Write(i8* noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FS_FCloseFile(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{!"Ubuntu clang version 14.0.0-1ubuntu1.1"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TYPE_2__", !6, i64 0, !11, i64 8, !11, i64 12}
!14 = !{!13, !11, i64 12}
!15 = !{!13, !11, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/lab/engine/code/client/extr_cl_keys.c_CL_SaveConsoleHistory.c'
source_filename = "AnghaBench/lab/engine/code/client/extr_cl_keys.c_CL_SaveConsoleHistory.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, i32, i32 }
@consoleSaveBuffer = common local_unnamed_addr global ptr null, align 8
@nextHistoryLine = common local_unnamed_addr global i32 0, align 4
@COMMAND_HISTORY = common local_unnamed_addr global i32 0, align 4
@historyEditLines = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [14 x i8] c"999 999 999 \00", align 1
@MAX_CONSOLE_SAVE_BUFFER = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"%d %d %d %s \00", align 1
@consoleSaveBufferSize = common local_unnamed_addr global i32 0, align 4
@CONSOLE_HISTORY_FILE = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"Couldn't write %s.\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @CL_SaveConsoleHistory() local_unnamed_addr #0 {
%1 = load ptr, ptr @consoleSaveBuffer, align 8, !tbaa !6
store i8 0, ptr %1, align 1, !tbaa !10
%2 = load i32, ptr @nextHistoryLine, align 4, !tbaa !11
%3 = add nsw i32 %2, -1
%4 = load i32, ptr @COMMAND_HISTORY, align 4, !tbaa !11
%5 = srem i32 %3, %4
%6 = load ptr, ptr @historyEditLines, align 8, !tbaa !6
br label %7
7: ; preds = %40, %0
%8 = phi i32 [ %2, %0 ], [ %41, %40 ]
%9 = phi i32 [ %4, %0 ], [ %42, %40 ]
%10 = phi ptr [ %6, %0 ], [ %43, %40 ]
%11 = phi i32 [ %5, %0 ], [ %46, %40 ]
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %10, i64 %12
%14 = load ptr, ptr %13, align 8, !tbaa !13
%15 = load i8, ptr %14, align 1, !tbaa !10
%16 = icmp eq i8 %15, 0
br i1 %16, label %40, label %17
17: ; preds = %7
%18 = tail call i32 @strlen(ptr noundef nonnull %14) #2
%19 = load ptr, ptr @consoleSaveBuffer, align 8, !tbaa !6
%20 = tail call i32 @strlen(ptr noundef %19) #2
%21 = tail call i32 @strlen(ptr noundef nonnull @.str) #2
%22 = add i32 %20, %18
%23 = add i32 %22, %21
%24 = load i32, ptr @MAX_CONSOLE_SAVE_BUFFER, align 4, !tbaa !11
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %50
26: ; preds = %17
%27 = load ptr, ptr @consoleSaveBuffer, align 8, !tbaa !6
%28 = load ptr, ptr @historyEditLines, align 8, !tbaa !6
%29 = getelementptr inbounds %struct.TYPE_2__, ptr %28, i64 %12
%30 = getelementptr inbounds i8, ptr %29, i64 12
%31 = load i32, ptr %30, align 4, !tbaa !15
%32 = getelementptr inbounds i8, ptr %29, i64 8
%33 = load i32, ptr %32, align 8, !tbaa !16
%34 = load ptr, ptr %29, align 8, !tbaa !13
%35 = tail call i32 @va(ptr noundef nonnull @.str.1, i32 noundef %31, i32 noundef %33, i32 noundef %18, ptr noundef %34) #2
%36 = tail call i32 @Q_strcat(ptr noundef %27, i32 noundef %24, i32 noundef %35) #2
%37 = load ptr, ptr @historyEditLines, align 8, !tbaa !6
%38 = load i32, ptr @COMMAND_HISTORY, align 4, !tbaa !11
%39 = load i32, ptr @nextHistoryLine, align 4, !tbaa !11
br label %40
40: ; preds = %26, %7
%41 = phi i32 [ %39, %26 ], [ %8, %7 ]
%42 = phi i32 [ %38, %26 ], [ %9, %7 ]
%43 = phi ptr [ %37, %26 ], [ %10, %7 ]
%44 = add nsw i32 %11, -1
%45 = add nsw i32 %44, %42
%46 = srem i32 %45, %42
%47 = add nsw i32 %41, -1
%48 = srem i32 %47, %42
%49 = icmp eq i32 %46, %48
br i1 %49, label %50, label %7, !llvm.loop !17
50: ; preds = %17, %40
%51 = load ptr, ptr @consoleSaveBuffer, align 8, !tbaa !6
%52 = tail call i32 @strlen(ptr noundef %51) #2
store i32 %52, ptr @consoleSaveBufferSize, align 4, !tbaa !11
%53 = load i32, ptr @CONSOLE_HISTORY_FILE, align 4, !tbaa !11
%54 = tail call i32 @FS_FOpenFileWrite(i32 noundef %53) #2
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %50
%57 = load i32, ptr @CONSOLE_HISTORY_FILE, align 4, !tbaa !11
%58 = tail call i32 @Com_Printf(ptr noundef nonnull @.str.2, i32 noundef %57) #2
br label %70
59: ; preds = %50
%60 = load ptr, ptr @consoleSaveBuffer, align 8, !tbaa !6
%61 = load i32, ptr @consoleSaveBufferSize, align 4, !tbaa !11
%62 = tail call i32 @FS_Write(ptr noundef %60, i32 noundef %61, i32 noundef %54) #2
%63 = load i32, ptr @consoleSaveBufferSize, align 4, !tbaa !11
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = load i32, ptr @CONSOLE_HISTORY_FILE, align 4, !tbaa !11
%67 = tail call i32 @Com_Printf(ptr noundef nonnull @.str.2, i32 noundef %66) #2
br label %68
68: ; preds = %65, %59
%69 = tail call i32 @FS_FCloseFile(i32 noundef %54) #2
br label %70
70: ; preds = %68, %56
ret void
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare i32 @Q_strcat(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @va(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @FS_FOpenFileWrite(i32 noundef) local_unnamed_addr #1
declare i32 @Com_Printf(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FS_Write(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @FS_FCloseFile(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 = !{!8, !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_2__", !7, i64 0, !12, i64 8, !12, i64 12}
!15 = !{!14, !12, i64 12}
!16 = !{!14, !12, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| lab_engine_code_client_extr_cl_keys.c_CL_SaveConsoleHistory |
; ModuleID = 'AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic79xx_reg_print.c_ahd_statlenptr_print.c'
source_filename = "AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic79xx_reg_print.c_ahd_statlenptr_print.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"STATLENPTR\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @ahd_statlenptr_print(i32 noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @ahd_print_register(ptr noundef null, i32 noundef 0, ptr noundef nonnull @.str, i32 noundef 36, i32 noundef %0, ptr noundef %1, i32 noundef %2) #2
ret i32 %4
}
declare i32 @ahd_print_register(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic79xx_reg_print.c_ahd_statlenptr_print.c'
source_filename = "AnghaBench/freebsd/sys/dev/aic7xxx/extr_aic79xx_reg_print.c_ahd_statlenptr_print.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [11 x i8] c"STATLENPTR\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ahd_statlenptr_print(i32 noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call i32 @ahd_print_register(ptr noundef null, i32 noundef 0, ptr noundef nonnull @.str, i32 noundef 36, i32 noundef %0, ptr noundef %1, i32 noundef %2) #2
ret i32 %4
}
declare i32 @ahd_print_register(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_sys_dev_aic7xxx_extr_aic79xx_reg_print.c_ahd_statlenptr_print |
; ModuleID = 'AnghaBench/jemalloc/src/extr_tcache.c_tcaches_create_prep.c'
source_filename = "AnghaBench/jemalloc/src/extr_tcache.c_tcaches_create_prep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@tcaches_mtx = dso_local global i32 0, align 4
@tcaches = dso_local local_unnamed_addr global ptr null, align 8
@MALLOCX_TCACHE_MAX = dso_local local_unnamed_addr global i32 0, align 4
@CACHELINE = dso_local local_unnamed_addr global i32 0, align 4
@tcaches_avail = dso_local local_unnamed_addr global ptr null, align 8
@tcaches_past = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @tcaches_create_prep], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @tcaches_create_prep(ptr noundef %0) #0 {
%2 = tail call i32 @tsd_tsdn(ptr noundef %0) #2
%3 = tail call i32 @malloc_mutex_lock(i32 noundef %2, ptr noundef nonnull @tcaches_mtx) #2
%4 = load ptr, ptr @tcaches, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = tail call i32 @tsd_tsdn(ptr noundef %0) #2
%8 = tail call i32 (...) @b0get() #2
%9 = load i32, ptr @MALLOCX_TCACHE_MAX, align 4, !tbaa !9
%10 = shl i32 %9, 3
%11 = add i32 %10, 8
%12 = load i32, ptr @CACHELINE, align 4, !tbaa !9
%13 = tail call ptr @base_alloc(i32 noundef %7, i32 noundef %8, i32 noundef %11, i32 noundef %12) #2
store ptr %13, ptr @tcaches, align 8, !tbaa !5
%14 = icmp eq ptr %13, null
br i1 %14, label %23, label %15
15: ; preds = %6, %1
%16 = load ptr, ptr @tcaches_avail, align 8, !tbaa !5
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = load i32, ptr @tcaches_past, align 4, !tbaa !9
%20 = load i32, ptr @MALLOCX_TCACHE_MAX, align 4, !tbaa !9
%21 = icmp sgt i32 %19, %20
br i1 %21, label %23, label %22
22: ; preds = %18, %15
br label %23
23: ; preds = %18, %6, %22
%24 = phi i32 [ 0, %22 ], [ 1, %6 ], [ 1, %18 ]
%25 = tail call i32 @tsd_tsdn(ptr noundef %0) #2
%26 = tail call i32 @malloc_mutex_unlock(i32 noundef %25, ptr noundef nonnull @tcaches_mtx) #2
ret i32 %24
}
declare i32 @malloc_mutex_lock(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tsd_tsdn(ptr noundef) local_unnamed_addr #1
declare ptr @base_alloc(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b0get(...) local_unnamed_addr #1
declare i32 @malloc_mutex_unlock(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/jemalloc/src/extr_tcache.c_tcaches_create_prep.c'
source_filename = "AnghaBench/jemalloc/src/extr_tcache.c_tcaches_create_prep.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@tcaches_mtx = common global i32 0, align 4
@tcaches = common local_unnamed_addr global ptr null, align 8
@MALLOCX_TCACHE_MAX = common local_unnamed_addr global i32 0, align 4
@CACHELINE = common local_unnamed_addr global i32 0, align 4
@tcaches_avail = common local_unnamed_addr global ptr null, align 8
@tcaches_past = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @tcaches_create_prep], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @tcaches_create_prep(ptr noundef %0) #0 {
%2 = tail call i32 @tsd_tsdn(ptr noundef %0) #2
%3 = tail call i32 @malloc_mutex_lock(i32 noundef %2, ptr noundef nonnull @tcaches_mtx) #2
%4 = load ptr, ptr @tcaches, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = tail call i32 @tsd_tsdn(ptr noundef %0) #2
%8 = tail call i32 @b0get() #2
%9 = load i32, ptr @MALLOCX_TCACHE_MAX, align 4, !tbaa !10
%10 = shl i32 %9, 3
%11 = add i32 %10, 8
%12 = load i32, ptr @CACHELINE, align 4, !tbaa !10
%13 = tail call ptr @base_alloc(i32 noundef %7, i32 noundef %8, i32 noundef %11, i32 noundef %12) #2
store ptr %13, ptr @tcaches, align 8, !tbaa !6
%14 = icmp eq ptr %13, null
br i1 %14, label %23, label %15
15: ; preds = %6, %1
%16 = load ptr, ptr @tcaches_avail, align 8, !tbaa !6
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = load i32, ptr @tcaches_past, align 4, !tbaa !10
%20 = load i32, ptr @MALLOCX_TCACHE_MAX, align 4, !tbaa !10
%21 = icmp sgt i32 %19, %20
br i1 %21, label %23, label %22
22: ; preds = %18, %15
br label %23
23: ; preds = %18, %6, %22
%24 = phi i32 [ 0, %22 ], [ 1, %6 ], [ 1, %18 ]
%25 = tail call i32 @tsd_tsdn(ptr noundef %0) #2
%26 = tail call i32 @malloc_mutex_unlock(i32 noundef %25, ptr noundef nonnull @tcaches_mtx) #2
ret i32 %24
}
declare i32 @malloc_mutex_lock(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tsd_tsdn(ptr noundef) local_unnamed_addr #1
declare ptr @base_alloc(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b0get(...) local_unnamed_addr #1
declare i32 @malloc_mutex_unlock(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| jemalloc_src_extr_tcache.c_tcaches_create_prep |
; ModuleID = 'AnghaBench/freebsd/sys/dev/usb/serial/extr_uipaq.c_uipaq_cfg_set_break.c'
source_filename = "AnghaBench/freebsd/sys/dev/usb/serial/extr_uipaq.c_uipaq_cfg_set_break.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@UCDC_BREAK_ON = dso_local local_unnamed_addr global i32 0, align 4
@UCDC_BREAK_OFF = dso_local local_unnamed_addr global i32 0, align 4
@UT_WRITE_CLASS_INTERFACE = dso_local local_unnamed_addr global i32 0, align 4
@UCDC_SEND_BREAK = dso_local local_unnamed_addr global i32 0, align 4
@UIPAQ_IFACE_INDEX = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @uipaq_cfg_set_break], section "llvm.metadata"
; Function Attrs: noreturn nounwind uwtable
define internal void @uipaq_cfg_set_break(ptr nocapture readonly %0, i64 noundef %1) #0 {
%3 = icmp eq i64 %1, 0
%4 = load i32, ptr @UCDC_BREAK_ON, align 4
%5 = load i32, ptr @UCDC_BREAK_OFF, align 4
%6 = select i1 %3, i32 %5, i32 %4
%7 = tail call i32 @USETW(i32 noundef undef, i32 noundef %6) #2
unreachable
}
declare i32 @USETW(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/usb/serial/extr_uipaq.c_uipaq_cfg_set_break.c'
source_filename = "AnghaBench/freebsd/sys/dev/usb/serial/extr_uipaq.c_uipaq_cfg_set_break.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UCDC_BREAK_ON = common local_unnamed_addr global i32 0, align 4
@UCDC_BREAK_OFF = common local_unnamed_addr global i32 0, align 4
@UT_WRITE_CLASS_INTERFACE = common local_unnamed_addr global i32 0, align 4
@UCDC_SEND_BREAK = common local_unnamed_addr global i32 0, align 4
@UIPAQ_IFACE_INDEX = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @uipaq_cfg_set_break], section "llvm.metadata"
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define internal void @uipaq_cfg_set_break(ptr nocapture readonly %0, i64 noundef %1) #0 {
%3 = icmp eq i64 %1, 0
%4 = load i32, ptr @UCDC_BREAK_ON, align 4
%5 = load i32, ptr @UCDC_BREAK_OFF, align 4
%6 = select i1 %3, i32 %5, i32 %4
%7 = tail call i32 @USETW(i32 noundef undef, i32 noundef %6) #2
unreachable
}
declare i32 @USETW(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { noreturn nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_sys_dev_usb_serial_extr_uipaq.c_uipaq_cfg_set_break |
; ModuleID = 'AnghaBench/linux/sound/pci/ctxfi/extr_cthw20k1.c_hw_pll_init.c'
source_filename = "AnghaBench/linux/sound/pci/ctxfi/extr_cthw20k1.c_hw_pll_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"
@PLLCTL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"PLL initialization failed!!!\0A\00", align 1
@EBUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hw_pll_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hw_pll_init(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 48000
%4 = select i1 %3, i32 343973889, i32 343975729
%5 = load i32, ptr @PLLCTL, align 4, !tbaa !5
%6 = tail call i32 @hw_read_20kx(ptr noundef %0, i32 noundef %5) #2
%7 = icmp eq i32 %6, %4
br i1 %7, label %31, label %8
8: ; preds = %2
%9 = load i32, ptr @PLLCTL, align 4, !tbaa !5
%10 = tail call i32 @hw_write_20kx(ptr noundef %0, i32 noundef %9, i32 noundef %4) #2
%11 = tail call i32 @msleep(i32 noundef 40) #2
%12 = load i32, ptr @PLLCTL, align 4, !tbaa !5
%13 = tail call i32 @hw_read_20kx(ptr noundef %0, i32 noundef %12) #2
%14 = icmp eq i32 %13, %4
br i1 %14, label %31, label %15
15: ; preds = %8
%16 = load i32, ptr @PLLCTL, align 4, !tbaa !5
%17 = tail call i32 @hw_write_20kx(ptr noundef %0, i32 noundef %16, i32 noundef %4) #2
%18 = tail call i32 @msleep(i32 noundef 40) #2
%19 = load i32, ptr @PLLCTL, align 4, !tbaa !5
%20 = tail call i32 @hw_read_20kx(ptr noundef %0, i32 noundef %19) #2
%21 = icmp eq i32 %20, %4
br i1 %21, label %31, label %22
22: ; preds = %15
%23 = load i32, ptr @PLLCTL, align 4, !tbaa !5
%24 = tail call i32 @hw_write_20kx(ptr noundef %0, i32 noundef %23, i32 noundef %4) #2
%25 = tail call i32 @msleep(i32 noundef 40) #2
%26 = load ptr, ptr %0, align 8, !tbaa !9
%27 = load i32, ptr %26, align 4, !tbaa !12
%28 = tail call i32 @dev_alert(i32 noundef %27, ptr noundef nonnull @.str) #2
%29 = load i32, ptr @EBUSY, align 4, !tbaa !5
%30 = sub nsw i32 0, %29
br label %31
31: ; preds = %2, %8, %15, %22
%32 = phi i32 [ %30, %22 ], [ 0, %15 ], [ 0, %8 ], [ 0, %2 ]
ret i32 %32
}
declare i32 @hw_read_20kx(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hw_write_20kx(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @dev_alert(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"hw", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/pci/ctxfi/extr_cthw20k1.c_hw_pll_init.c'
source_filename = "AnghaBench/linux/sound/pci/ctxfi/extr_cthw20k1.c_hw_pll_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PLLCTL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"PLL initialization failed!!!\0A\00", align 1
@EBUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hw_pll_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @hw_pll_init(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 48000
%4 = select i1 %3, i32 343973889, i32 343975729
%5 = load i32, ptr @PLLCTL, align 4, !tbaa !6
%6 = tail call i32 @hw_read_20kx(ptr noundef %0, i32 noundef %5) #2
%7 = icmp eq i32 %6, %4
br i1 %7, label %31, label %8
8: ; preds = %2
%9 = load i32, ptr @PLLCTL, align 4, !tbaa !6
%10 = tail call i32 @hw_write_20kx(ptr noundef %0, i32 noundef %9, i32 noundef %4) #2
%11 = tail call i32 @msleep(i32 noundef 40) #2
%12 = load i32, ptr @PLLCTL, align 4, !tbaa !6
%13 = tail call i32 @hw_read_20kx(ptr noundef %0, i32 noundef %12) #2
%14 = icmp eq i32 %13, %4
br i1 %14, label %31, label %15
15: ; preds = %8
%16 = load i32, ptr @PLLCTL, align 4, !tbaa !6
%17 = tail call i32 @hw_write_20kx(ptr noundef %0, i32 noundef %16, i32 noundef %4) #2
%18 = tail call i32 @msleep(i32 noundef 40) #2
%19 = load i32, ptr @PLLCTL, align 4, !tbaa !6
%20 = tail call i32 @hw_read_20kx(ptr noundef %0, i32 noundef %19) #2
%21 = icmp eq i32 %20, %4
br i1 %21, label %31, label %22
22: ; preds = %15
%23 = load i32, ptr @PLLCTL, align 4, !tbaa !6
%24 = tail call i32 @hw_write_20kx(ptr noundef %0, i32 noundef %23, i32 noundef %4) #2
%25 = tail call i32 @msleep(i32 noundef 40) #2
%26 = load ptr, ptr %0, align 8, !tbaa !10
%27 = load i32, ptr %26, align 4, !tbaa !13
%28 = tail call i32 @dev_alert(i32 noundef %27, ptr noundef nonnull @.str) #2
%29 = load i32, ptr @EBUSY, align 4, !tbaa !6
%30 = sub nsw i32 0, %29
br label %31
31: ; preds = %2, %8, %15, %22
%32 = phi i32 [ %30, %22 ], [ 0, %15 ], [ 0, %8 ], [ 0, %2 ]
ret i32 %32
}
declare i32 @hw_read_20kx(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hw_write_20kx(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @dev_alert(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"hw", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_2__", !7, i64 0}
| linux_sound_pci_ctxfi_extr_cthw20k1.c_hw_pll_init |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/brocade/bna/extr_bnad.c_bnad_netif_rx_schedule_poll.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/brocade/bna/extr_bnad.c_bnad_netif_rx_schedule_poll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.bnad_rx_ctrl = type { i32, %struct.napi_struct }
%struct.napi_struct = type { i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @bnad_netif_rx_schedule_poll], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bnad_netif_rx_schedule_poll(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %1, align 8, !tbaa !5
%4 = inttoptr i64 %3 to ptr
%5 = getelementptr inbounds %struct.bnad_rx_ctrl, ptr %4, i64 0, i32 1
%6 = tail call i32 @napi_schedule_prep(ptr noundef nonnull %5) #2
%7 = tail call i64 @likely(i32 noundef %6) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = tail call i32 @__napi_schedule(ptr noundef nonnull %5) #2
%11 = load i32, ptr %4, align 4, !tbaa !10
%12 = add nsw i32 %11, 1
store i32 %12, ptr %4, align 4, !tbaa !10
br label %13
13: ; preds = %9, %2
ret void
}
declare i64 @likely(i32 noundef) local_unnamed_addr #1
declare i32 @napi_schedule_prep(ptr noundef) local_unnamed_addr #1
declare i32 @__napi_schedule(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 = !{!"bna_ccb", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"bnad_rx_ctrl", !12, i64 0, !13, i64 4}
!12 = !{!"int", !8, i64 0}
!13 = !{!"napi_struct", !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/brocade/bna/extr_bnad.c_bnad_netif_rx_schedule_poll.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/brocade/bna/extr_bnad.c_bnad_netif_rx_schedule_poll.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 @bnad_netif_rx_schedule_poll], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bnad_netif_rx_schedule_poll(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %1, align 8, !tbaa !6
%4 = inttoptr i64 %3 to ptr
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = tail call i32 @napi_schedule_prep(ptr noundef nonnull %5) #2
%7 = tail call i64 @likely(i32 noundef %6) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = tail call i32 @__napi_schedule(ptr noundef nonnull %5) #2
%11 = load i32, ptr %4, align 4, !tbaa !11
%12 = add nsw i32 %11, 1
store i32 %12, ptr %4, align 4, !tbaa !11
br label %13
13: ; preds = %9, %2
ret void
}
declare i64 @likely(i32 noundef) local_unnamed_addr #1
declare i32 @napi_schedule_prep(ptr noundef) local_unnamed_addr #1
declare i32 @__napi_schedule(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 = !{!"bna_ccb", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"bnad_rx_ctrl", !13, i64 0, !14, i64 4}
!13 = !{!"int", !9, i64 0}
!14 = !{!"napi_struct", !13, i64 0}
| linux_drivers_net_ethernet_brocade_bna_extr_bnad.c_bnad_netif_rx_schedule_poll |
; ModuleID = 'AnghaBench/linux/drivers/irqchip/extr_irq-ftintc010.c_ft010_irqdomain_map.c'
source_filename = "AnghaBench/linux/drivers/irqchip/extr_irq-ftintc010.c_ft010_irqdomain_map.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ft010_irq_chip = dso_local global i32 0, align 4
@handle_bad_irq = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ft010_irqdomain_map], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @ft010_irqdomain_map(ptr nocapture noundef readonly %0, i32 noundef %1, i32 %2) #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = tail call i32 @irq_set_chip_data(i32 noundef %1, ptr noundef %4) #2
%6 = load i32, ptr @handle_bad_irq, align 4, !tbaa !10
%7 = tail call i32 @irq_set_chip_and_handler(i32 noundef %1, ptr noundef nonnull @ft010_irq_chip, i32 noundef %6) #2
%8 = tail call i32 @irq_set_probe(i32 noundef %1) #2
ret i32 0
}
declare i32 @irq_set_chip_data(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @irq_set_chip_and_handler(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @irq_set_probe(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"irq_domain", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/irqchip/extr_irq-ftintc010.c_ft010_irqdomain_map.c'
source_filename = "AnghaBench/linux/drivers/irqchip/extr_irq-ftintc010.c_ft010_irqdomain_map.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ft010_irq_chip = common global i32 0, align 4
@handle_bad_irq = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ft010_irqdomain_map], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @ft010_irqdomain_map(ptr nocapture noundef readonly %0, i32 noundef %1, i32 %2) #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = tail call i32 @irq_set_chip_data(i32 noundef %1, ptr noundef %4) #2
%6 = load i32, ptr @handle_bad_irq, align 4, !tbaa !11
%7 = tail call i32 @irq_set_chip_and_handler(i32 noundef %1, ptr noundef nonnull @ft010_irq_chip, i32 noundef %6) #2
%8 = tail call i32 @irq_set_probe(i32 noundef %1) #2
ret i32 0
}
declare i32 @irq_set_chip_data(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @irq_set_chip_and_handler(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @irq_set_probe(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"irq_domain", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| linux_drivers_irqchip_extr_irq-ftintc010.c_ft010_irqdomain_map |
; ModuleID = 'AnghaBench/systemd/src/shared/extr_serialize.h_serialize_bool.c'
source_filename = "AnghaBench/systemd/src/shared/extr_serialize.h_serialize_bool.c"
target datalayout = "e-m:e-p270:32:32-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 @serialize_bool], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @serialize_bool(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @yes_no(i32 noundef %2) #2
%5 = tail call i32 @serialize_item(ptr noundef %0, ptr noundef %1, i32 noundef %4) #2
ret i32 %5
}
declare i32 @serialize_item(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @yes_no(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/systemd/src/shared/extr_serialize.h_serialize_bool.c'
source_filename = "AnghaBench/systemd/src/shared/extr_serialize.h_serialize_bool.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 @serialize_bool], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @serialize_bool(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @yes_no(i32 noundef %2) #2
%5 = tail call i32 @serialize_item(ptr noundef %0, ptr noundef %1, i32 noundef %4) #2
ret i32 %5
}
declare i32 @serialize_item(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @yes_no(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)"}
| systemd_src_shared_extr_serialize.h_serialize_bool |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_pio.h_b43legacy_pio_tx.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_pio.h_b43legacy_pio_tx.c"
target datalayout = "e-m:e-p270:32:32-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_pio_tx], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @b43legacy_pio_tx(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_pio.h_b43legacy_pio_tx.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/b43legacy/extr_pio.h_b43legacy_pio_tx.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_pio_tx], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @b43legacy_pio_tx(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_drivers_net_wireless_b43legacy_extr_pio.h_b43legacy_pio_tx |
; ModuleID = 'AnghaBench/linux/net/netlink/extr_af_netlink.c_netlink_deliver_tap_kernel.c'
source_filename = "AnghaBench/linux/net/netlink/extr_af_netlink.c_netlink_deliver_tap_kernel.c"
target datalayout = "e-m:e-p270:32:32-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 @netlink_deliver_tap_kernel], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @netlink_deliver_tap_kernel(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i64 @netlink_is_kernel(ptr noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call i64 @netlink_is_kernel(ptr noundef %1) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6, %3
%10 = tail call i32 @sock_net(ptr noundef %0) #2
%11 = tail call i32 @netlink_deliver_tap(i32 noundef %10, ptr noundef %2) #2
br label %12
12: ; preds = %9, %6
ret void
}
declare i64 @netlink_is_kernel(ptr noundef) local_unnamed_addr #1
declare i32 @netlink_deliver_tap(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sock_net(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/net/netlink/extr_af_netlink.c_netlink_deliver_tap_kernel.c'
source_filename = "AnghaBench/linux/net/netlink/extr_af_netlink.c_netlink_deliver_tap_kernel.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 @netlink_deliver_tap_kernel], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @netlink_deliver_tap_kernel(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = tail call i64 @netlink_is_kernel(ptr noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call i64 @netlink_is_kernel(ptr noundef %1) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6, %3
%10 = tail call i32 @sock_net(ptr noundef %0) #2
%11 = tail call i32 @netlink_deliver_tap(i32 noundef %10, ptr noundef %2) #2
br label %12
12: ; preds = %9, %6
ret void
}
declare i64 @netlink_is_kernel(ptr noundef) local_unnamed_addr #1
declare i32 @netlink_deliver_tap(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @sock_net(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_net_netlink_extr_af_netlink.c_netlink_deliver_tap_kernel |
; ModuleID = 'AnghaBench/openssl/crypto/cmp/extr_cmp_util.c_put_error.c'
source_filename = "AnghaBench/openssl/crypto/cmp/extr_cmp_util.c_put_error.c"
target datalayout = "e-m:e-p270:32:32-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 @put_error], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @put_error(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = tail call i32 (...) @ERR_new() #2
%7 = tail call i32 @ERR_set_debug(ptr noundef %3, i32 noundef %4, ptr noundef %1) #2
%8 = tail call i32 @ERR_set_error(i32 noundef %0, i32 noundef %2, ptr noundef null) #2
ret void
}
declare i32 @ERR_new(...) local_unnamed_addr #1
declare i32 @ERR_set_debug(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ERR_set_error(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)"}
| ; ModuleID = 'AnghaBench/openssl/crypto/cmp/extr_cmp_util.c_put_error.c'
source_filename = "AnghaBench/openssl/crypto/cmp/extr_cmp_util.c_put_error.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_error], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @put_error(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = tail call i32 @ERR_new() #2
%7 = tail call i32 @ERR_set_debug(ptr noundef %3, i32 noundef %4, ptr noundef %1) #2
%8 = tail call i32 @ERR_set_error(i32 noundef %0, i32 noundef %2, ptr noundef null) #2
ret void
}
declare i32 @ERR_new(...) local_unnamed_addr #1
declare i32 @ERR_set_debug(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ERR_set_error(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)"}
| openssl_crypto_cmp_extr_cmp_util.c_put_error |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/otus/extr_ioctl.c_usbdrvwext_giwsens.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/otus/extr_ioctl.c_usbdrvwext_giwsens.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.iw_param = type { i32, i64 }
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local noundef i32 @usbdrvwext_giwsens(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
%5 = getelementptr inbounds %struct.iw_param, ptr %2, i64 0, i32 1
store i64 0, ptr %5, align 8, !tbaa !5
store i32 1, ptr %2, align 8, !tbaa !11
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"iw_param", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/otus/extr_ioctl.c_usbdrvwext_giwsens.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/otus/extr_ioctl.c_usbdrvwext_giwsens.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define noundef i32 @usbdrvwext_giwsens(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
%5 = getelementptr inbounds i8, ptr %2, i64 8
store i64 0, ptr %5, align 8, !tbaa !6
store i32 1, ptr %2, align 8, !tbaa !12
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"iw_param", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!7, !8, i64 0}
| fastsocket_kernel_drivers_staging_otus_extr_ioctl.c_usbdrvwext_giwsens |
; ModuleID = 'AnghaBench/linux/arch/xtensa/kernel/extr_hw_breakpoint.c_arch_uninstall_hw_breakpoint.c'
source_filename = "AnghaBench/linux/arch/xtensa/kernel/extr_hw_breakpoint.c_arch_uninstall_hw_breakpoint.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@XTENSA_BREAKPOINT_EXECUTE = dso_local local_unnamed_addr global i64 0, align 8
@bp_on_reg = dso_local local_unnamed_addr global i32 0, align 4
@XCHAL_NUM_IBREAK = dso_local local_unnamed_addr global i32 0, align 4
@SREG_IBREAKENABLE = dso_local local_unnamed_addr global i32 0, align 4
@wp_on_reg = dso_local local_unnamed_addr global i32 0, align 4
@XCHAL_NUM_DBREAK = dso_local local_unnamed_addr global i32 0, align 4
@SREG_DBREAKC = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local void @arch_uninstall_hw_breakpoint(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @counter_arch_bp(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = load i64, ptr @XTENSA_BREAKPOINT_EXECUTE, align 8, !tbaa !10
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = load i32, ptr @bp_on_reg, align 4, !tbaa !11
%8 = tail call i32 @this_cpu_ptr(i32 noundef %7) #2
%9 = load i32, ptr @XCHAL_NUM_IBREAK, align 4, !tbaa !11
%10 = tail call i32 @free_slot(i32 noundef %8, i32 noundef %9, ptr noundef %0) #2
%11 = icmp sgt i32 %10, -1
br i1 %11, label %12, label %32
12: ; preds = %6
%13 = load i32, ptr @SREG_IBREAKENABLE, align 4, !tbaa !11
%14 = tail call i64 @xtensa_get_sr(i32 noundef %13) #2
%15 = shl nuw i32 1, %10
%16 = xor i32 %15, -1
%17 = sext i32 %16 to i64
%18 = and i64 %14, %17
%19 = load i32, ptr @SREG_IBREAKENABLE, align 4, !tbaa !11
%20 = tail call i32 @xtensa_set_sr(i64 noundef %18, i32 noundef %19) #2
br label %32
21: ; preds = %1
%22 = load i32, ptr @wp_on_reg, align 4, !tbaa !11
%23 = tail call i32 @this_cpu_ptr(i32 noundef %22) #2
%24 = load i32, ptr @XCHAL_NUM_DBREAK, align 4, !tbaa !11
%25 = tail call i32 @free_slot(i32 noundef %23, i32 noundef %24, ptr noundef %0) #2
%26 = icmp sgt i32 %25, -1
br i1 %26, label %27, label %32
27: ; preds = %21
%28 = load i64, ptr @SREG_DBREAKC, align 8, !tbaa !10
%29 = zext nneg i32 %25 to i64
%30 = add nsw i64 %28, %29
%31 = tail call i32 @xtensa_wsr(i32 noundef 0, i64 noundef %30) #2
br label %32
32: ; preds = %6, %12, %21, %27
ret void
}
declare ptr @counter_arch_bp(ptr noundef) local_unnamed_addr #1
declare i32 @free_slot(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @this_cpu_ptr(i32 noundef) local_unnamed_addr #1
declare i64 @xtensa_get_sr(i32 noundef) local_unnamed_addr #1
declare i32 @xtensa_set_sr(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @xtensa_wsr(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"arch_hw_breakpoint", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/arch/xtensa/kernel/extr_hw_breakpoint.c_arch_uninstall_hw_breakpoint.c'
source_filename = "AnghaBench/linux/arch/xtensa/kernel/extr_hw_breakpoint.c_arch_uninstall_hw_breakpoint.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@XTENSA_BREAKPOINT_EXECUTE = common local_unnamed_addr global i64 0, align 8
@bp_on_reg = common local_unnamed_addr global i32 0, align 4
@XCHAL_NUM_IBREAK = common local_unnamed_addr global i32 0, align 4
@SREG_IBREAKENABLE = common local_unnamed_addr global i32 0, align 4
@wp_on_reg = common local_unnamed_addr global i32 0, align 4
@XCHAL_NUM_DBREAK = common local_unnamed_addr global i32 0, align 4
@SREG_DBREAKC = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @arch_uninstall_hw_breakpoint(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @counter_arch_bp(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = load i64, ptr @XTENSA_BREAKPOINT_EXECUTE, align 8, !tbaa !11
%5 = icmp eq i64 %3, %4
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = load i32, ptr @bp_on_reg, align 4, !tbaa !12
%8 = tail call i32 @this_cpu_ptr(i32 noundef %7) #2
%9 = load i32, ptr @XCHAL_NUM_IBREAK, align 4, !tbaa !12
%10 = tail call i32 @free_slot(i32 noundef %8, i32 noundef %9, ptr noundef %0) #2
%11 = icmp sgt i32 %10, -1
br i1 %11, label %12, label %32
12: ; preds = %6
%13 = load i32, ptr @SREG_IBREAKENABLE, align 4, !tbaa !12
%14 = tail call i64 @xtensa_get_sr(i32 noundef %13) #2
%15 = shl nuw i32 1, %10
%16 = xor i32 %15, -1
%17 = sext i32 %16 to i64
%18 = and i64 %14, %17
%19 = load i32, ptr @SREG_IBREAKENABLE, align 4, !tbaa !12
%20 = tail call i32 @xtensa_set_sr(i64 noundef %18, i32 noundef %19) #2
br label %32
21: ; preds = %1
%22 = load i32, ptr @wp_on_reg, align 4, !tbaa !12
%23 = tail call i32 @this_cpu_ptr(i32 noundef %22) #2
%24 = load i32, ptr @XCHAL_NUM_DBREAK, align 4, !tbaa !12
%25 = tail call i32 @free_slot(i32 noundef %23, i32 noundef %24, ptr noundef %0) #2
%26 = icmp sgt i32 %25, -1
br i1 %26, label %27, label %32
27: ; preds = %21
%28 = load i64, ptr @SREG_DBREAKC, align 8, !tbaa !11
%29 = zext nneg i32 %25 to i64
%30 = add nsw i64 %28, %29
%31 = tail call i32 @xtensa_wsr(i32 noundef 0, i64 noundef %30) #2
br label %32
32: ; preds = %6, %12, %21, %27
ret void
}
declare ptr @counter_arch_bp(ptr noundef) local_unnamed_addr #1
declare i32 @free_slot(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @this_cpu_ptr(i32 noundef) local_unnamed_addr #1
declare i64 @xtensa_get_sr(i32 noundef) local_unnamed_addr #1
declare i32 @xtensa_set_sr(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @xtensa_wsr(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"arch_hw_breakpoint", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
| linux_arch_xtensa_kernel_extr_hw_breakpoint.c_arch_uninstall_hw_breakpoint |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/sn9c102/extr_sn9c102_mi0343.c_mi0343_get_ctrl.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/sn9c102/extr_sn9c102_mi0343.c_mi0343_get_ctrl.c"
target datalayout = "e-m:e-p270:32:32-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.v4l2_control = type { i32, i32 }
@EIO = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mi0343_get_ctrl], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mi0343_get_ctrl(ptr noundef %0, ptr nocapture noundef %1) #0 {
%3 = alloca [2 x i32], align 4
%4 = tail call ptr @sn9c102_get_sensor(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%5 = load i32, ptr %1, align 4, !tbaa !5
switch i32 %5, label %70 [
i32 132, label %6
i32 131, label %16
i32 130, label %23
i32 128, label %36
i32 129, label %49
i32 133, label %56
i32 134, label %63
]
6: ; preds = %2
%7 = load i32, ptr %4, align 4, !tbaa !10
%8 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %7, i32 noundef 9, i32 noundef 2, ptr noundef nonnull %3) #3
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr @EIO, align 4, !tbaa !12
%12 = sub nsw i32 0, %11
br label %91
13: ; preds = %6
%14 = load i32, ptr %3, align 4, !tbaa !12
%15 = getelementptr inbounds %struct.v4l2_control, ptr %1, i64 0, i32 1
store i32 %14, ptr %15, align 4, !tbaa !13
br label %91
16: ; preds = %2
%17 = load i32, ptr %4, align 4, !tbaa !10
%18 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %17, i32 noundef 53, i32 noundef 2, ptr noundef nonnull %3) #3
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %73
20: ; preds = %16
%21 = load i32, ptr @EIO, align 4, !tbaa !12
%22 = sub nsw i32 0, %21
br label %91
23: ; preds = %2
%24 = load i32, ptr %4, align 4, !tbaa !10
%25 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %24, i32 noundef 32, i32 noundef 2, ptr noundef nonnull %3) #3
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr @EIO, align 4, !tbaa !12
%29 = sub nsw i32 0, %28
br label %91
30: ; preds = %23
%31 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%32 = load i32, ptr %31, align 4, !tbaa !12
%33 = lshr i32 %32, 5
%34 = and i32 %33, 1
%35 = getelementptr inbounds %struct.v4l2_control, ptr %1, i64 0, i32 1
store i32 %34, ptr %35, align 4, !tbaa !13
br label %91
36: ; preds = %2
%37 = load i32, ptr %4, align 4, !tbaa !10
%38 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %37, i32 noundef 32, i32 noundef 2, ptr noundef nonnull %3) #3
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr @EIO, align 4, !tbaa !12
%42 = sub nsw i32 0, %41
br label %91
43: ; preds = %36
%44 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%45 = load i32, ptr %44, align 4, !tbaa !12
%46 = lshr i32 %45, 7
%47 = and i32 %46, 1
%48 = getelementptr inbounds %struct.v4l2_control, ptr %1, i64 0, i32 1
store i32 %47, ptr %48, align 4, !tbaa !13
br label %91
49: ; preds = %2
%50 = load i32, ptr %4, align 4, !tbaa !10
%51 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %50, i32 noundef 45, i32 noundef 2, ptr noundef nonnull %3) #3
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %73
53: ; preds = %49
%54 = load i32, ptr @EIO, align 4, !tbaa !12
%55 = sub nsw i32 0, %54
br label %91
56: ; preds = %2
%57 = load i32, ptr %4, align 4, !tbaa !10
%58 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %57, i32 noundef 44, i32 noundef 2, ptr noundef nonnull %3) #3
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %73
60: ; preds = %56
%61 = load i32, ptr @EIO, align 4, !tbaa !12
%62 = sub nsw i32 0, %61
br label %91
63: ; preds = %2
%64 = load i32, ptr %4, align 4, !tbaa !10
%65 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %64, i32 noundef 46, i32 noundef 2, ptr noundef nonnull %3) #3
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %73
67: ; preds = %63
%68 = load i32, ptr @EIO, align 4, !tbaa !12
%69 = sub nsw i32 0, %68
br label %91
70: ; preds = %2
%71 = load i32, ptr @EINVAL, align 4, !tbaa !12
%72 = sub nsw i32 0, %71
br label %91
73: ; preds = %63, %56, %49, %16
%74 = load i32, ptr %1, align 4, !tbaa !5
switch i32 %74, label %91 [
i32 131, label %75
i32 129, label %75
i32 133, label %75
i32 134, label %75
]
75: ; preds = %73, %73, %73, %73
%76 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%77 = load i32, ptr %76, align 4, !tbaa !12
%78 = load i32, ptr %3, align 4, !tbaa !12
%79 = shl i32 %78, 8
%80 = or i32 %79, %77
%81 = getelementptr inbounds %struct.v4l2_control, ptr %1, i64 0, i32 1
store i32 %80, ptr %81, align 4, !tbaa !13
%82 = add i32 %80, -16
%83 = icmp ult i32 %82, 48
br i1 %83, label %84, label %85
84: ; preds = %75
store i32 %82, ptr %81, align 4, !tbaa !13
br label %91
85: ; preds = %75
%86 = and i32 %80, -32
switch i32 %86, label %91 [
i32 96, label %87
i32 224, label %89
]
87: ; preds = %85
%88 = add nsw i32 %80, -96
store i32 %88, ptr %81, align 4, !tbaa !13
br label %91
89: ; preds = %85
%90 = add nsw i32 %80, -224
store i32 %90, ptr %81, align 4, !tbaa !13
br label %91
91: ; preds = %85, %73, %87, %89, %84, %70, %67, %60, %53, %43, %40, %30, %27, %20, %13, %10
%92 = phi i32 [ %72, %70 ], [ %69, %67 ], [ %62, %60 ], [ %55, %53 ], [ %42, %40 ], [ 0, %43 ], [ %29, %27 ], [ 0, %30 ], [ %22, %20 ], [ %12, %10 ], [ 0, %13 ], [ 0, %84 ], [ 0, %89 ], [ 0, %87 ], [ 0, %73 ], [ 0, %85 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %92
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sn9c102_get_sensor(ptr noundef) local_unnamed_addr #2
declare i32 @sn9c102_i2c_try_raw_read(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, !7, i64 0}
!6 = !{!"v4l2_control", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"sn9c102_sensor", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/sn9c102/extr_sn9c102_mi0343.c_mi0343_get_ctrl.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/sn9c102/extr_sn9c102_mi0343.c_mi0343_get_ctrl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EIO = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mi0343_get_ctrl], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @mi0343_get_ctrl(ptr noundef %0, ptr nocapture noundef %1) #0 {
%3 = alloca [2 x i32], align 4
%4 = tail call ptr @sn9c102_get_sensor(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%5 = load i32, ptr %1, align 4, !tbaa !6
switch i32 %5, label %70 [
i32 132, label %6
i32 131, label %16
i32 130, label %23
i32 128, label %36
i32 129, label %49
i32 133, label %56
i32 134, label %63
]
6: ; preds = %2
%7 = load i32, ptr %4, align 4, !tbaa !11
%8 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %7, i32 noundef 9, i32 noundef 2, ptr noundef nonnull %3) #3
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr @EIO, align 4, !tbaa !13
%12 = sub nsw i32 0, %11
br label %91
13: ; preds = %6
%14 = load i32, ptr %3, align 4, !tbaa !13
%15 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %14, ptr %15, align 4, !tbaa !14
br label %91
16: ; preds = %2
%17 = load i32, ptr %4, align 4, !tbaa !11
%18 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %17, i32 noundef 53, i32 noundef 2, ptr noundef nonnull %3) #3
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %73
20: ; preds = %16
%21 = load i32, ptr @EIO, align 4, !tbaa !13
%22 = sub nsw i32 0, %21
br label %91
23: ; preds = %2
%24 = load i32, ptr %4, align 4, !tbaa !11
%25 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %24, i32 noundef 32, i32 noundef 2, ptr noundef nonnull %3) #3
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr @EIO, align 4, !tbaa !13
%29 = sub nsw i32 0, %28
br label %91
30: ; preds = %23
%31 = getelementptr inbounds i8, ptr %3, i64 4
%32 = load i32, ptr %31, align 4, !tbaa !13
%33 = lshr i32 %32, 5
%34 = and i32 %33, 1
%35 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %34, ptr %35, align 4, !tbaa !14
br label %91
36: ; preds = %2
%37 = load i32, ptr %4, align 4, !tbaa !11
%38 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %37, i32 noundef 32, i32 noundef 2, ptr noundef nonnull %3) #3
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr @EIO, align 4, !tbaa !13
%42 = sub nsw i32 0, %41
br label %91
43: ; preds = %36
%44 = getelementptr inbounds i8, ptr %3, i64 4
%45 = load i32, ptr %44, align 4, !tbaa !13
%46 = lshr i32 %45, 7
%47 = and i32 %46, 1
%48 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %47, ptr %48, align 4, !tbaa !14
br label %91
49: ; preds = %2
%50 = load i32, ptr %4, align 4, !tbaa !11
%51 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %50, i32 noundef 45, i32 noundef 2, ptr noundef nonnull %3) #3
%52 = icmp slt i32 %51, 0
br i1 %52, label %53, label %73
53: ; preds = %49
%54 = load i32, ptr @EIO, align 4, !tbaa !13
%55 = sub nsw i32 0, %54
br label %91
56: ; preds = %2
%57 = load i32, ptr %4, align 4, !tbaa !11
%58 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %57, i32 noundef 44, i32 noundef 2, ptr noundef nonnull %3) #3
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %73
60: ; preds = %56
%61 = load i32, ptr @EIO, align 4, !tbaa !13
%62 = sub nsw i32 0, %61
br label %91
63: ; preds = %2
%64 = load i32, ptr %4, align 4, !tbaa !11
%65 = call i32 @sn9c102_i2c_try_raw_read(ptr noundef %0, ptr noundef nonnull %4, i32 noundef %64, i32 noundef 46, i32 noundef 2, ptr noundef nonnull %3) #3
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %73
67: ; preds = %63
%68 = load i32, ptr @EIO, align 4, !tbaa !13
%69 = sub nsw i32 0, %68
br label %91
70: ; preds = %2
%71 = load i32, ptr @EINVAL, align 4, !tbaa !13
%72 = sub nsw i32 0, %71
br label %91
73: ; preds = %63, %56, %49, %16
%74 = load i32, ptr %1, align 4, !tbaa !6
switch i32 %74, label %91 [
i32 131, label %75
i32 129, label %75
i32 133, label %75
i32 134, label %75
]
75: ; preds = %73, %73, %73, %73
%76 = getelementptr inbounds i8, ptr %3, i64 4
%77 = load i32, ptr %76, align 4, !tbaa !13
%78 = load i32, ptr %3, align 4, !tbaa !13
%79 = shl i32 %78, 8
%80 = or i32 %79, %77
%81 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %80, ptr %81, align 4, !tbaa !14
%82 = add i32 %80, -16
%83 = icmp ult i32 %82, 48
br i1 %83, label %84, label %85
84: ; preds = %75
store i32 %82, ptr %81, align 4, !tbaa !14
br label %91
85: ; preds = %75
%86 = and i32 %80, -32
switch i32 %86, label %91 [
i32 96, label %87
i32 224, label %89
]
87: ; preds = %85
%88 = add nsw i32 %80, -96
store i32 %88, ptr %81, align 4, !tbaa !14
br label %91
89: ; preds = %85
%90 = add nsw i32 %80, -224
store i32 %90, ptr %81, align 4, !tbaa !14
br label %91
91: ; preds = %85, %73, %87, %89, %84, %70, %67, %60, %53, %43, %40, %30, %27, %20, %13, %10
%92 = phi i32 [ %72, %70 ], [ %69, %67 ], [ %62, %60 ], [ %55, %53 ], [ %42, %40 ], [ 0, %43 ], [ %29, %27 ], [ 0, %30 ], [ %22, %20 ], [ %12, %10 ], [ 0, %13 ], [ 0, %84 ], [ 0, %89 ], [ 0, %87 ], [ 0, %73 ], [ 0, %85 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %92
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sn9c102_get_sensor(ptr noundef) local_unnamed_addr #2
declare i32 @sn9c102_i2c_try_raw_read(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, !8, i64 0}
!7 = !{!"v4l2_control", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"sn9c102_sensor", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !8, i64 4}
| fastsocket_kernel_drivers_media_video_sn9c102_extr_sn9c102_mi0343.c_mi0343_get_ctrl |
; ModuleID = 'AnghaBench/linux/drivers/scsi/bfa/extr_bfa_ioc.c_bfa_ioc_fw_ver_patch_cmp.c'
source_filename = "AnghaBench/linux/drivers/scsi/bfa/extr_bfa_ioc.c_bfa_ioc_fw_ver_patch_cmp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i64, i64 }
@BFA_FALSE = dso_local local_unnamed_addr global i64 0, align 8
@BFI_IOC_IMG_VER_INCOMP = dso_local local_unnamed_addr global i32 0, align 4
@BFI_IOC_IMG_VER_BETTER = dso_local local_unnamed_addr global i32 0, align 4
@BFI_IOC_IMG_VER_OLD = dso_local local_unnamed_addr global i32 0, align 4
@BFA_TRUE = dso_local local_unnamed_addr global i64 0, align 8
@BFI_IOC_IMG_VER_SAME = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bfa_ioc_fw_ver_patch_cmp], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @bfa_ioc_fw_ver_patch_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i64 @bfa_ioc_fw_ver_compatible(ptr noundef %0, ptr noundef %1) #2
%4 = load i64, ptr @BFA_FALSE, align 8, !tbaa !5
%5 = icmp eq i64 %3, %4
br i1 %5, label %38, label %6
6: ; preds = %2
%7 = load i64, ptr %1, align 8, !tbaa !9
%8 = load i64, ptr %0, align 8, !tbaa !9
%9 = icmp sgt i64 %7, %8
br i1 %9, label %38, label %10
10: ; preds = %6
%11 = icmp slt i64 %7, %8
br i1 %11, label %38, label %12
12: ; preds = %10
%13 = tail call i64 @fwhdr_is_ga(ptr noundef nonnull %0) #2
%14 = load i64, ptr @BFA_TRUE, align 8, !tbaa !5
%15 = icmp eq i64 %13, %14
%16 = tail call i64 @fwhdr_is_ga(ptr noundef nonnull %1) #2
%17 = icmp eq i64 %16, 0
br i1 %15, label %18, label %20
18: ; preds = %12
%19 = select i1 %17, ptr @BFI_IOC_IMG_VER_OLD, ptr @BFI_IOC_IMG_VER_SAME
br label %38
20: ; preds = %12
br i1 %17, label %21, label %38
21: ; preds = %20
%22 = getelementptr inbounds %struct.TYPE_2__, ptr %1, i64 0, i32 1
%23 = load i64, ptr %22, align 8, !tbaa !12
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%25 = load i64, ptr %24, align 8, !tbaa !12
%26 = icmp sgt i64 %23, %25
br i1 %26, label %38, label %27
27: ; preds = %21
%28 = icmp slt i64 %23, %25
br i1 %28, label %38, label %29
29: ; preds = %27
%30 = getelementptr inbounds %struct.TYPE_2__, ptr %1, i64 0, i32 2
%31 = load i64, ptr %30, align 8, !tbaa !13
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 2
%33 = load i64, ptr %32, align 8, !tbaa !13
%34 = icmp sgt i64 %31, %33
br i1 %34, label %38, label %35
35: ; preds = %29
%36 = icmp slt i64 %31, %33
%37 = select i1 %36, ptr @BFI_IOC_IMG_VER_OLD, ptr @BFI_IOC_IMG_VER_SAME
br label %38
38: ; preds = %35, %29, %27, %21, %20, %18, %10, %6, %2
%39 = phi ptr [ @BFI_IOC_IMG_VER_INCOMP, %2 ], [ @BFI_IOC_IMG_VER_BETTER, %6 ], [ @BFI_IOC_IMG_VER_OLD, %10 ], [ %19, %18 ], [ @BFI_IOC_IMG_VER_BETTER, %20 ], [ @BFI_IOC_IMG_VER_BETTER, %21 ], [ @BFI_IOC_IMG_VER_OLD, %27 ], [ @BFI_IOC_IMG_VER_BETTER, %29 ], [ %37, %35 ]
%40 = load i32, ptr %39, align 4, !tbaa !14
ret i32 %40
}
declare i64 @bfa_ioc_fw_ver_compatible(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @fwhdr_is_ga(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"bfi_ioc_image_hdr_s", !11, i64 0}
!11 = !{!"TYPE_2__", !6, i64 0, !6, i64 8, !6, i64 16}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/bfa/extr_bfa_ioc.c_bfa_ioc_fw_ver_patch_cmp.c'
source_filename = "AnghaBench/linux/drivers/scsi/bfa/extr_bfa_ioc.c_bfa_ioc_fw_ver_patch_cmp.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BFA_FALSE = common local_unnamed_addr global i64 0, align 8
@BFI_IOC_IMG_VER_INCOMP = common local_unnamed_addr global i32 0, align 4
@BFI_IOC_IMG_VER_BETTER = common local_unnamed_addr global i32 0, align 4
@BFI_IOC_IMG_VER_OLD = common local_unnamed_addr global i32 0, align 4
@BFA_TRUE = common local_unnamed_addr global i64 0, align 8
@BFI_IOC_IMG_VER_SAME = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bfa_ioc_fw_ver_patch_cmp], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @bfa_ioc_fw_ver_patch_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i64 @bfa_ioc_fw_ver_compatible(ptr noundef %0, ptr noundef %1) #2
%4 = load i64, ptr @BFA_FALSE, align 8, !tbaa !6
%5 = icmp eq i64 %3, %4
br i1 %5, label %38, label %6
6: ; preds = %2
%7 = load i64, ptr %1, align 8, !tbaa !10
%8 = load i64, ptr %0, align 8, !tbaa !10
%9 = icmp sgt i64 %7, %8
br i1 %9, label %38, label %10
10: ; preds = %6
%11 = icmp slt i64 %7, %8
br i1 %11, label %38, label %12
12: ; preds = %10
%13 = tail call i64 @fwhdr_is_ga(ptr noundef nonnull %0) #2
%14 = load i64, ptr @BFA_TRUE, align 8, !tbaa !6
%15 = icmp eq i64 %13, %14
%16 = tail call i64 @fwhdr_is_ga(ptr noundef nonnull %1) #2
%17 = icmp eq i64 %16, 0
br i1 %15, label %18, label %20
18: ; preds = %12
%19 = select i1 %17, ptr @BFI_IOC_IMG_VER_OLD, ptr @BFI_IOC_IMG_VER_SAME
br label %38
20: ; preds = %12
br i1 %17, label %21, label %38
21: ; preds = %20
%22 = getelementptr inbounds i8, ptr %1, i64 8
%23 = load i64, ptr %22, align 8, !tbaa !13
%24 = getelementptr inbounds i8, ptr %0, i64 8
%25 = load i64, ptr %24, align 8, !tbaa !13
%26 = icmp sgt i64 %23, %25
br i1 %26, label %38, label %27
27: ; preds = %21
%28 = icmp slt i64 %23, %25
br i1 %28, label %38, label %29
29: ; preds = %27
%30 = getelementptr inbounds i8, ptr %1, i64 16
%31 = load i64, ptr %30, align 8, !tbaa !14
%32 = getelementptr inbounds i8, ptr %0, i64 16
%33 = load i64, ptr %32, align 8, !tbaa !14
%34 = icmp sgt i64 %31, %33
br i1 %34, label %38, label %35
35: ; preds = %29
%36 = icmp slt i64 %31, %33
%37 = select i1 %36, ptr @BFI_IOC_IMG_VER_OLD, ptr @BFI_IOC_IMG_VER_SAME
br label %38
38: ; preds = %35, %29, %27, %21, %20, %18, %10, %6, %2
%39 = phi ptr [ @BFI_IOC_IMG_VER_INCOMP, %2 ], [ @BFI_IOC_IMG_VER_BETTER, %6 ], [ @BFI_IOC_IMG_VER_OLD, %10 ], [ %19, %18 ], [ @BFI_IOC_IMG_VER_BETTER, %20 ], [ @BFI_IOC_IMG_VER_BETTER, %21 ], [ @BFI_IOC_IMG_VER_OLD, %27 ], [ @BFI_IOC_IMG_VER_BETTER, %29 ], [ %37, %35 ]
%40 = load i32, ptr %39, align 4, !tbaa !15
ret i32 %40
}
declare i64 @bfa_ioc_fw_ver_compatible(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @fwhdr_is_ga(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"bfi_ioc_image_hdr_s", !12, i64 0}
!12 = !{!"TYPE_2__", !7, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!11, !7, i64 8}
!14 = !{!11, !7, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !8, i64 0}
| linux_drivers_scsi_bfa_extr_bfa_ioc.c_bfa_ioc_fw_ver_patch_cmp |
; ModuleID = 'AnghaBench/linux/net/sctp/extr_stream_sched_prio.c_sctp_sched_prio_get.c'
source_filename = "AnghaBench/linux/net/sctp/extr_stream_sched_prio.c_sctp_sched_prio_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @sctp_sched_prio_get], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sctp_sched_prio_get(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = tail call ptr @SCTP_SO(ptr noundef %0, i32 noundef %1) #2
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = load i32, ptr %6, align 4, !tbaa !12
store i32 %7, ptr %2, align 4, !tbaa !15
ret i32 0
}
declare ptr @SCTP_SO(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_6__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_5__", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/sctp/extr_stream_sched_prio.c_sctp_sched_prio_get.c'
source_filename = "AnghaBench/linux/net/sctp/extr_stream_sched_prio.c_sctp_sched_prio_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @sctp_sched_prio_get], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @sctp_sched_prio_get(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = tail call ptr @SCTP_SO(ptr noundef %0, i32 noundef %1) #2
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load i32, ptr %6, align 4, !tbaa !13
store i32 %7, ptr %2, align 4, !tbaa !16
ret i32 0
}
declare ptr @SCTP_SO(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_6__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_5__", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_4__", !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!15, !15, i64 0}
| linux_net_sctp_extr_stream_sched_prio.c_sctp_sched_prio_get |
; ModuleID = 'AnghaBench/libuv/src/extr_fs-poll.c_uv_fs_poll_init.c'
source_filename = "AnghaBench/libuv/src/extr_fs-poll.c_uv_fs_poll_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"
@UV_FS_POLL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @uv_fs_poll_init(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @UV_FS_POLL, align 4, !tbaa !5
%4 = tail call i32 @uv__handle_init(ptr noundef %0, ptr noundef %1, i32 noundef %3) #2
store ptr null, ptr %1, align 8, !tbaa !9
ret i32 0
}
declare i32 @uv__handle_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/libuv/src/extr_fs-poll.c_uv_fs_poll_init.c'
source_filename = "AnghaBench/libuv/src/extr_fs-poll.c_uv_fs_poll_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UV_FS_POLL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @uv_fs_poll_init(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @UV_FS_POLL, align 4, !tbaa !6
%4 = tail call i32 @uv__handle_init(ptr noundef %0, ptr noundef %1, i32 noundef %3) #2
store ptr null, ptr %1, align 8, !tbaa !10
ret i32 0
}
declare i32 @uv__handle_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| libuv_src_extr_fs-poll.c_uv_fs_poll_init |
; ModuleID = 'AnghaBench/linux/drivers/clocksource/extr_timer-ti-dm.c_omap_dm_timer_free.c'
source_filename = "AnghaBench/linux/drivers/clocksource/extr_timer-ti-dm.c_omap_dm_timer_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.omap_dm_timer = type { i64, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @omap_dm_timer_free], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @omap_dm_timer_free(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
%3 = zext i1 %2 to i32
%4 = tail call i64 @unlikely(i32 noundef %3) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
br label %17
9: ; preds = %1
%10 = getelementptr inbounds %struct.omap_dm_timer, ptr %0, i64 0, i32 1
%11 = load i32, ptr %10, align 8, !tbaa !9
%12 = tail call i32 @clk_put(i32 noundef %11) #2
%13 = load i64, ptr %0, align 8, !tbaa !12
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @WARN_ON(i32 noundef %15) #2
store i64 0, ptr %0, align 8, !tbaa !12
br label %17
17: ; preds = %9, %6
%18 = phi i32 [ %8, %6 ], [ 0, %9 ]
ret i32 %18
}
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @clk_put(i32 noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"omap_dm_timer", !11, i64 0, !6, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/clocksource/extr_timer-ti-dm.c_omap_dm_timer_free.c'
source_filename = "AnghaBench/linux/drivers/clocksource/extr_timer-ti-dm.c_omap_dm_timer_free.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @omap_dm_timer_free], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @omap_dm_timer_free(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
%3 = zext i1 %2 to i32
%4 = tail call i64 @unlikely(i32 noundef %3) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
br label %17
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = load i32, ptr %10, align 8, !tbaa !10
%12 = tail call i32 @clk_put(i32 noundef %11) #2
%13 = load i64, ptr %0, align 8, !tbaa !13
%14 = icmp eq i64 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @WARN_ON(i32 noundef %15) #2
store i64 0, ptr %0, align 8, !tbaa !13
br label %17
17: ; preds = %9, %6
%18 = phi i32 [ %8, %6 ], [ 0, %9 ]
ret i32 %18
}
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare i32 @clk_put(i32 noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"omap_dm_timer", !12, i64 0, !7, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 0}
| linux_drivers_clocksource_extr_timer-ti-dm.c_omap_dm_timer_free |
; ModuleID = 'AnghaBench/freebsd/sys/dev/scc/extr_scc_core.c_scc_bus_read_ivar.c'
source_filename = "AnghaBench/freebsd/sys/dev/scc/extr_scc_core.c_scc_bus_read_ivar.c"
target datalayout = "e-m:e-p270:32:32-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.scc_softc = type { i32, %struct.TYPE_2__, ptr }
%struct.TYPE_2__ = type { i64, i64 }
%struct.scc_mode = type { i64, ptr }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @scc_bus_read_ivar(i64 noundef %0, i64 noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
%5 = tail call i64 @device_get_parent(i64 noundef %1) #2
%6 = icmp eq i64 %5, %0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = load i32, ptr @EINVAL, align 4, !tbaa !5
br label %32
9: ; preds = %4
%10 = tail call ptr @device_get_softc(i64 noundef %0) #2
%11 = getelementptr inbounds %struct.scc_softc, ptr %10, i64 0, i32 2
%12 = load ptr, ptr %11, align 8, !tbaa !9
%13 = tail call ptr @device_get_ivars(i64 noundef %1) #2
switch i32 %2, label %30 [
i32 133, label %14
i32 132, label %18
i32 131, label %20
i32 129, label %23
i32 128, label %25
i32 130, label %28
]
14: ; preds = %9
%15 = getelementptr inbounds %struct.scc_mode, ptr %13, i64 0, i32 1
%16 = load ptr, ptr %15, align 8, !tbaa !14
%17 = load i64, ptr %16, align 8, !tbaa !16
store i64 %17, ptr %3, align 8, !tbaa !18
br label %32
18: ; preds = %9
%19 = load i64, ptr %12, align 8, !tbaa !19
store i64 %19, ptr %3, align 8, !tbaa !18
br label %32
20: ; preds = %9
%21 = getelementptr inbounds %struct.scc_softc, ptr %10, i64 0, i32 1
%22 = load i64, ptr %21, align 8, !tbaa !21
store i64 %22, ptr %3, align 8, !tbaa !18
br label %32
23: ; preds = %9
%24 = load i64, ptr %13, align 8, !tbaa !22
store i64 %24, ptr %3, align 8, !tbaa !18
br label %32
25: ; preds = %9
%26 = getelementptr inbounds %struct.scc_softc, ptr %10, i64 0, i32 1, i32 1
%27 = load i64, ptr %26, align 8, !tbaa !23
store i64 %27, ptr %3, align 8, !tbaa !18
br label %32
28: ; preds = %9
%29 = ptrtoint ptr %10 to i64
store i64 %29, ptr %3, align 8, !tbaa !18
br label %32
30: ; preds = %9
%31 = load i32, ptr @EINVAL, align 4, !tbaa !5
br label %32
32: ; preds = %14, %18, %20, %23, %25, %28, %30, %7
%33 = phi i32 [ %8, %7 ], [ %31, %30 ], [ 0, %28 ], [ 0, %25 ], [ 0, %23 ], [ 0, %20 ], [ 0, %18 ], [ 0, %14 ]
ret i32 %33
}
declare i64 @device_get_parent(i64 noundef) local_unnamed_addr #1
declare ptr @device_get_softc(i64 noundef) local_unnamed_addr #1
declare ptr @device_get_ivars(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, !13, i64 24}
!10 = !{!"scc_softc", !6, i64 0, !11, i64 8, !13, i64 24}
!11 = !{!"TYPE_2__", !12, i64 0, !12, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"scc_mode", !12, i64 0, !13, i64 8}
!16 = !{!17, !12, i64 0}
!17 = !{!"scc_chan", !12, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !12, i64 0}
!20 = !{!"scc_class", !12, i64 0}
!21 = !{!10, !12, i64 8}
!22 = !{!15, !12, i64 0}
!23 = !{!10, !12, i64 16}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/scc/extr_scc_core.c_scc_bus_read_ivar.c'
source_filename = "AnghaBench/freebsd/sys/dev/scc/extr_scc_core.c_scc_bus_read_ivar.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 @scc_bus_read_ivar(i64 noundef %0, i64 noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
%5 = tail call i64 @device_get_parent(i64 noundef %1) #2
%6 = icmp eq i64 %5, %0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = load i32, ptr @EINVAL, align 4, !tbaa !6
br label %32
9: ; preds = %4
%10 = tail call ptr @device_get_softc(i64 noundef %0) #2
%11 = getelementptr inbounds i8, ptr %10, i64 24
%12 = load ptr, ptr %11, align 8, !tbaa !10
%13 = tail call ptr @device_get_ivars(i64 noundef %1) #2
switch i32 %2, label %30 [
i32 133, label %14
i32 132, label %18
i32 131, label %20
i32 129, label %23
i32 128, label %25
i32 130, label %28
]
14: ; preds = %9
%15 = getelementptr inbounds i8, ptr %13, i64 8
%16 = load ptr, ptr %15, align 8, !tbaa !15
%17 = load i64, ptr %16, align 8, !tbaa !17
store i64 %17, ptr %3, align 8, !tbaa !19
br label %32
18: ; preds = %9
%19 = load i64, ptr %12, align 8, !tbaa !20
store i64 %19, ptr %3, align 8, !tbaa !19
br label %32
20: ; preds = %9
%21 = getelementptr inbounds i8, ptr %10, i64 8
%22 = load i64, ptr %21, align 8, !tbaa !22
store i64 %22, ptr %3, align 8, !tbaa !19
br label %32
23: ; preds = %9
%24 = load i64, ptr %13, align 8, !tbaa !23
store i64 %24, ptr %3, align 8, !tbaa !19
br label %32
25: ; preds = %9
%26 = getelementptr inbounds i8, ptr %10, i64 16
%27 = load i64, ptr %26, align 8, !tbaa !24
store i64 %27, ptr %3, align 8, !tbaa !19
br label %32
28: ; preds = %9
%29 = ptrtoint ptr %10 to i64
store i64 %29, ptr %3, align 8, !tbaa !19
br label %32
30: ; preds = %9
%31 = load i32, ptr @EINVAL, align 4, !tbaa !6
br label %32
32: ; preds = %14, %18, %20, %23, %25, %28, %30, %7
%33 = phi i32 [ %8, %7 ], [ %31, %30 ], [ 0, %28 ], [ 0, %25 ], [ 0, %23 ], [ 0, %20 ], [ 0, %18 ], [ 0, %14 ]
ret i32 %33
}
declare i64 @device_get_parent(i64 noundef) local_unnamed_addr #1
declare ptr @device_get_softc(i64 noundef) local_unnamed_addr #1
declare ptr @device_get_ivars(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, !14, i64 24}
!11 = !{!"scc_softc", !7, i64 0, !12, i64 8, !14, i64 24}
!12 = !{!"TYPE_2__", !13, i64 0, !13, i64 8}
!13 = !{!"long", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"scc_mode", !13, i64 0, !14, i64 8}
!17 = !{!18, !13, i64 0}
!18 = !{!"scc_chan", !13, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !13, i64 0}
!21 = !{!"scc_class", !13, i64 0}
!22 = !{!11, !13, i64 8}
!23 = !{!16, !13, i64 0}
!24 = !{!11, !13, i64 16}
| freebsd_sys_dev_scc_extr_scc_core.c_scc_bus_read_ivar |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/extr_ps3_gelic_wireless.c_cmdstr.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_ps3_gelic_wireless.c_cmdstr.c"
target datalayout = "e-m:e-p270:32:32-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 [1 x i8] zeroinitializer, align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @cmdstr], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef nonnull ptr @cmdstr(i32 %0) #0 {
ret ptr @.str
}
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/fastsocket/kernel/drivers/net/extr_ps3_gelic_wireless.c_cmdstr.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/extr_ps3_gelic_wireless.c_cmdstr.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 [1 x i8] zeroinitializer, align 1
@llvm.used = appending global [1 x ptr] [ptr @cmdstr], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef nonnull ptr @cmdstr(i32 %0) #0 {
ret ptr @.str
}
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)"}
| fastsocket_kernel_drivers_net_extr_ps3_gelic_wireless.c_cmdstr |
; ModuleID = 'AnghaBench/linux/drivers/net/dsa/b53/extr_b53_serdes.c_b53_serdes_link_state.c'
source_filename = "AnghaBench/linux/drivers/net/dsa/b53/extr_b53_serdes.c_b53_serdes_link_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.phylink_link_state = type { i32, i32, i32, i32, i32 }
@B53_INVALID_LANE = dso_local local_unnamed_addr global i64 0, align 8
@B53_SERDES_DIGITAL_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@SERDES_DIGITAL_BLK = dso_local local_unnamed_addr global i32 0, align 4
@MII_BMSR = dso_local local_unnamed_addr global i32 0, align 4
@SERDES_MII_BLK = dso_local local_unnamed_addr global i32 0, align 4
@SPEED_STATUS_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@SPEED_STATUS_MASK = dso_local local_unnamed_addr global i32 0, align 4
@SPEED_10 = dso_local local_unnamed_addr global i32 0, align 4
@SPEED_100 = dso_local local_unnamed_addr global i32 0, align 4
@SPEED_1000 = dso_local local_unnamed_addr global i32 0, align 4
@SPEED_2500 = dso_local local_unnamed_addr global i32 0, align 4
@DUPLEX_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@DUPLEX_FULL = dso_local local_unnamed_addr global i32 0, align 4
@DUPLEX_HALF = dso_local local_unnamed_addr global i32 0, align 4
@BMSR_ANEGCOMPLETE = dso_local local_unnamed_addr global i32 0, align 4
@LINK_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@PAUSE_RESOLUTION_RX_SIDE = dso_local local_unnamed_addr global i32 0, align 4
@MLO_PAUSE_RX = dso_local local_unnamed_addr global i32 0, align 4
@PAUSE_RESOLUTION_TX_SIDE = dso_local local_unnamed_addr global i32 0, align 4
@MLO_PAUSE_TX = dso_local local_unnamed_addr global i32 0, align 4
@switch.table.b53_serdes_link_state = private unnamed_addr constant [3 x ptr] [ptr @SPEED_1000, ptr @SPEED_100, ptr @SPEED_10], align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @b53_serdes_link_state(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
%4 = tail call i64 @b53_serdes_map_lane(ptr noundef %0, i32 noundef %1) #2
%5 = load i64, ptr @B53_INVALID_LANE, align 8, !tbaa !5
%6 = icmp eq i64 %4, %5
br i1 %6, label %62, label %7
7: ; preds = %3
%8 = load i32, ptr @B53_SERDES_DIGITAL_STATUS, align 4, !tbaa !9
%9 = load i32, ptr @SERDES_DIGITAL_BLK, align 4, !tbaa !9
%10 = tail call i32 @b53_serdes_read(ptr noundef %0, i64 noundef %4, i32 noundef %8, i32 noundef %9) #2
%11 = load i32, ptr @MII_BMSR, align 4, !tbaa !9
%12 = tail call i32 @B53_SERDES_MII_REG(i32 noundef %11) #2
%13 = load i32, ptr @SERDES_MII_BLK, align 4, !tbaa !9
%14 = tail call i32 @b53_serdes_read(ptr noundef %0, i64 noundef %4, i32 noundef %12, i32 noundef %13) #2
%15 = load i32, ptr @SPEED_STATUS_SHIFT, align 4, !tbaa !9
%16 = ashr i32 %10, %15
%17 = load i32, ptr @SPEED_STATUS_MASK, align 4, !tbaa !9
%18 = and i32 %16, %17
%19 = getelementptr inbounds %struct.phylink_link_state, ptr %2, i64 0, i32 4
%20 = add i32 %18, -129
%21 = icmp ult i32 %20, 3
br i1 %21, label %22, label %26
22: ; preds = %7
%23 = zext nneg i32 %20 to i64
%24 = getelementptr inbounds [3 x ptr], ptr @switch.table.b53_serdes_link_state, i64 0, i64 %23
%25 = load ptr, ptr %24, align 8
br label %26
26: ; preds = %7, %22
%27 = phi ptr [ %25, %22 ], [ @SPEED_2500, %7 ]
%28 = load i32, ptr %27, align 4, !tbaa !9
store i32 %28, ptr %19, align 4, !tbaa !11
%29 = load i32, ptr @DUPLEX_STATUS, align 4, !tbaa !9
%30 = and i32 %29, %10
%31 = icmp eq i32 %30, 0
%32 = load i32, ptr @DUPLEX_FULL, align 4
%33 = load i32, ptr @DUPLEX_HALF, align 4
%34 = select i1 %31, i32 %33, i32 %32
%35 = getelementptr inbounds %struct.phylink_link_state, ptr %2, i64 0, i32 3
store i32 %34, ptr %35, align 4, !tbaa !13
%36 = load i32, ptr @BMSR_ANEGCOMPLETE, align 4, !tbaa !9
%37 = and i32 %36, %14
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i32
store i32 %39, ptr %2, align 4, !tbaa !14
%40 = load i32, ptr @LINK_STATUS, align 4, !tbaa !9
%41 = and i32 %40, %10
%42 = icmp ne i32 %41, 0
%43 = zext i1 %42 to i32
%44 = getelementptr inbounds %struct.phylink_link_state, ptr %2, i64 0, i32 1
store i32 %43, ptr %44, align 4, !tbaa !15
%45 = load i32, ptr @PAUSE_RESOLUTION_RX_SIDE, align 4, !tbaa !9
%46 = and i32 %45, %10
%47 = icmp eq i32 %46, 0
br i1 %47, label %53, label %48
48: ; preds = %26
%49 = load i32, ptr @MLO_PAUSE_RX, align 4, !tbaa !9
%50 = getelementptr inbounds %struct.phylink_link_state, ptr %2, i64 0, i32 2
%51 = load i32, ptr %50, align 4, !tbaa !16
%52 = or i32 %51, %49
store i32 %52, ptr %50, align 4, !tbaa !16
br label %53
53: ; preds = %48, %26
%54 = load i32, ptr @PAUSE_RESOLUTION_TX_SIDE, align 4, !tbaa !9
%55 = and i32 %54, %10
%56 = icmp eq i32 %55, 0
br i1 %56, label %62, label %57
57: ; preds = %53
%58 = load i32, ptr @MLO_PAUSE_TX, align 4, !tbaa !9
%59 = getelementptr inbounds %struct.phylink_link_state, ptr %2, i64 0, i32 2
%60 = load i32, ptr %59, align 4, !tbaa !16
%61 = or i32 %60, %58
store i32 %61, ptr %59, align 4, !tbaa !16
br label %62
62: ; preds = %53, %57, %3
%63 = phi i32 [ 1, %3 ], [ 0, %57 ], [ 0, %53 ]
ret i32 %63
}
declare i64 @b53_serdes_map_lane(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b53_serdes_read(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @B53_SERDES_MII_REG(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"phylink_link_state", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!13 = !{!12, !10, i64 12}
!14 = !{!12, !10, i64 0}
!15 = !{!12, !10, i64 4}
!16 = !{!12, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/dsa/b53/extr_b53_serdes.c_b53_serdes_link_state.c'
source_filename = "AnghaBench/linux/drivers/net/dsa/b53/extr_b53_serdes.c_b53_serdes_link_state.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@B53_INVALID_LANE = common local_unnamed_addr global i64 0, align 8
@B53_SERDES_DIGITAL_STATUS = common local_unnamed_addr global i32 0, align 4
@SERDES_DIGITAL_BLK = common local_unnamed_addr global i32 0, align 4
@MII_BMSR = common local_unnamed_addr global i32 0, align 4
@SERDES_MII_BLK = common local_unnamed_addr global i32 0, align 4
@SPEED_STATUS_SHIFT = common local_unnamed_addr global i32 0, align 4
@SPEED_STATUS_MASK = common local_unnamed_addr global i32 0, align 4
@SPEED_10 = common local_unnamed_addr global i32 0, align 4
@SPEED_100 = common local_unnamed_addr global i32 0, align 4
@SPEED_1000 = common local_unnamed_addr global i32 0, align 4
@SPEED_2500 = common local_unnamed_addr global i32 0, align 4
@DUPLEX_STATUS = common local_unnamed_addr global i32 0, align 4
@DUPLEX_FULL = common local_unnamed_addr global i32 0, align 4
@DUPLEX_HALF = common local_unnamed_addr global i32 0, align 4
@BMSR_ANEGCOMPLETE = common local_unnamed_addr global i32 0, align 4
@LINK_STATUS = common local_unnamed_addr global i32 0, align 4
@PAUSE_RESOLUTION_RX_SIDE = common local_unnamed_addr global i32 0, align 4
@MLO_PAUSE_RX = common local_unnamed_addr global i32 0, align 4
@PAUSE_RESOLUTION_TX_SIDE = common local_unnamed_addr global i32 0, align 4
@MLO_PAUSE_TX = common local_unnamed_addr global i32 0, align 4
@switch.table.b53_serdes_link_state = private unnamed_addr constant [3 x ptr] [ptr @SPEED_1000, ptr @SPEED_100, ptr @SPEED_10], align 8
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @b53_serdes_link_state(ptr noundef %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
%4 = tail call i64 @b53_serdes_map_lane(ptr noundef %0, i32 noundef %1) #2
%5 = load i64, ptr @B53_INVALID_LANE, align 8, !tbaa !6
%6 = icmp eq i64 %4, %5
br i1 %6, label %62, label %7
7: ; preds = %3
%8 = load i32, ptr @B53_SERDES_DIGITAL_STATUS, align 4, !tbaa !10
%9 = load i32, ptr @SERDES_DIGITAL_BLK, align 4, !tbaa !10
%10 = tail call i32 @b53_serdes_read(ptr noundef %0, i64 noundef %4, i32 noundef %8, i32 noundef %9) #2
%11 = load i32, ptr @MII_BMSR, align 4, !tbaa !10
%12 = tail call i32 @B53_SERDES_MII_REG(i32 noundef %11) #2
%13 = load i32, ptr @SERDES_MII_BLK, align 4, !tbaa !10
%14 = tail call i32 @b53_serdes_read(ptr noundef %0, i64 noundef %4, i32 noundef %12, i32 noundef %13) #2
%15 = load i32, ptr @SPEED_STATUS_SHIFT, align 4, !tbaa !10
%16 = ashr i32 %10, %15
%17 = load i32, ptr @SPEED_STATUS_MASK, align 4, !tbaa !10
%18 = and i32 %16, %17
%19 = getelementptr inbounds i8, ptr %2, i64 16
%20 = add i32 %18, -129
%21 = icmp ult i32 %20, 3
br i1 %21, label %22, label %26
22: ; preds = %7
%23 = zext nneg i32 %20 to i64
%24 = getelementptr inbounds [3 x ptr], ptr @switch.table.b53_serdes_link_state, i64 0, i64 %23
%25 = load ptr, ptr %24, align 8
br label %26
26: ; preds = %7, %22
%27 = phi ptr [ %25, %22 ], [ @SPEED_2500, %7 ]
%28 = load i32, ptr %27, align 4, !tbaa !10
store i32 %28, ptr %19, align 4, !tbaa !12
%29 = load i32, ptr @DUPLEX_STATUS, align 4, !tbaa !10
%30 = and i32 %29, %10
%31 = icmp eq i32 %30, 0
%32 = load i32, ptr @DUPLEX_FULL, align 4
%33 = load i32, ptr @DUPLEX_HALF, align 4
%34 = select i1 %31, i32 %33, i32 %32
%35 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %34, ptr %35, align 4, !tbaa !14
%36 = load i32, ptr @BMSR_ANEGCOMPLETE, align 4, !tbaa !10
%37 = and i32 %36, %14
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i32
store i32 %39, ptr %2, align 4, !tbaa !15
%40 = load i32, ptr @LINK_STATUS, align 4, !tbaa !10
%41 = and i32 %40, %10
%42 = icmp ne i32 %41, 0
%43 = zext i1 %42 to i32
%44 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %43, ptr %44, align 4, !tbaa !16
%45 = load i32, ptr @PAUSE_RESOLUTION_RX_SIDE, align 4, !tbaa !10
%46 = and i32 %45, %10
%47 = icmp eq i32 %46, 0
br i1 %47, label %53, label %48
48: ; preds = %26
%49 = load i32, ptr @MLO_PAUSE_RX, align 4, !tbaa !10
%50 = getelementptr inbounds i8, ptr %2, i64 8
%51 = load i32, ptr %50, align 4, !tbaa !17
%52 = or i32 %51, %49
store i32 %52, ptr %50, align 4, !tbaa !17
br label %53
53: ; preds = %48, %26
%54 = load i32, ptr @PAUSE_RESOLUTION_TX_SIDE, align 4, !tbaa !10
%55 = and i32 %54, %10
%56 = icmp eq i32 %55, 0
br i1 %56, label %62, label %57
57: ; preds = %53
%58 = load i32, ptr @MLO_PAUSE_TX, align 4, !tbaa !10
%59 = getelementptr inbounds i8, ptr %2, i64 8
%60 = load i32, ptr %59, align 4, !tbaa !17
%61 = or i32 %60, %58
store i32 %61, ptr %59, align 4, !tbaa !17
br label %62
62: ; preds = %53, %57, %3
%63 = phi i32 [ 1, %3 ], [ 0, %57 ], [ 0, %53 ]
ret i32 %63
}
declare i64 @b53_serdes_map_lane(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @b53_serdes_read(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @B53_SERDES_MII_REG(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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, !11, i64 16}
!13 = !{!"phylink_link_state", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!14 = !{!13, !11, i64 12}
!15 = !{!13, !11, i64 0}
!16 = !{!13, !11, i64 4}
!17 = !{!13, !11, i64 8}
| linux_drivers_net_dsa_b53_extr_b53_serdes.c_b53_serdes_link_state |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_cxgb2.c_t1_change_mtu.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_cxgb2.c_t1_change_mtu.c"
target datalayout = "e-m:e-p270:32:32-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.net_device = type { i64, i32, ptr }
%struct.TYPE_3__ = type { ptr }
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @t1_change_mtu], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @t1_change_mtu(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.net_device, ptr %0, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = load i64, ptr %0, align 8, !tbaa !14
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 %6
%8 = load ptr, ptr %7, align 8, !tbaa !15
%9 = load ptr, ptr %8, align 8, !tbaa !17
%10 = load ptr, ptr %9, align 8, !tbaa !19
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !21
%14 = sub nsw i32 0, %13
br label %20
15: ; preds = %2
%16 = tail call i32 %10(ptr noundef nonnull %8, i32 noundef %1) #1
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = getelementptr inbounds %struct.net_device, ptr %0, i64 0, i32 1
store i32 %1, ptr %19, align 8, !tbaa !22
br label %20
20: ; preds = %15, %18, %12
%21 = phi i32 [ 0, %18 ], [ %14, %12 ], [ %16, %15 ]
ret i32 %21
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="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, !11, i64 16}
!6 = !{!"net_device", !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, !11, i64 0}
!13 = !{!"adapter", !11, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !11, i64 0}
!16 = !{!"TYPE_3__", !11, i64 0}
!17 = !{!18, !11, i64 0}
!18 = !{!"cmac", !11, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"TYPE_4__", !11, i64 0}
!21 = !{!10, !10, i64 0}
!22 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_cxgb2.c_t1_change_mtu.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_cxgb2.c_t1_change_mtu.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 }
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @t1_change_mtu], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @t1_change_mtu(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 16
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !13
%6 = load i64, ptr %0, align 8, !tbaa !15
%7 = getelementptr inbounds %struct.TYPE_3__, ptr %5, i64 %6
%8 = load ptr, ptr %7, align 8, !tbaa !16
%9 = load ptr, ptr %8, align 8, !tbaa !18
%10 = load ptr, ptr %9, align 8, !tbaa !20
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !22
%14 = sub nsw i32 0, %13
br label %20
15: ; preds = %2
%16 = tail call i32 %10(ptr noundef nonnull %8, i32 noundef %1) #1
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %1, ptr %19, align 8, !tbaa !23
br label %20
20: ; preds = %15, %18, %12
%21 = phi i32 [ 0, %18 ], [ %14, %12 ], [ %16, %15 ]
ret i32 %21
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+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, !12, i64 16}
!7 = !{!"net_device", !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, !12, i64 0}
!14 = !{!"adapter", !12, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!17, !12, i64 0}
!17 = !{!"TYPE_3__", !12, i64 0}
!18 = !{!19, !12, i64 0}
!19 = !{!"cmac", !12, i64 0}
!20 = !{!21, !12, i64 0}
!21 = !{!"TYPE_4__", !12, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!7, !11, i64 8}
| linux_drivers_net_ethernet_chelsio_cxgb_extr_cxgb2.c_t1_change_mtu |
; ModuleID = 'AnghaBench/darwin-xnu/tools/tests/perf_index/extr_perf_index.c_thread_setup.c'
source_filename = "AnghaBench/darwin-xnu/tools/tests/perf_index/extr_perf_index.c_thread_setup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i64, i64, i32, i32 }
%struct.TYPE_3__ = type { ptr }
@args = dso_local local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 8
@ready_thread_count_lock = dso_local global i32 0, align 4
@ready_thread_count = dso_local local_unnamed_addr global i32 0, align 4
@threads_ready_cvar = dso_local global i32 0, align 4
@start_cvar = dso_local global i32 0, align 4
@test = dso_local local_unnamed_addr global %struct.TYPE_3__ zeroinitializer, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @thread_setup], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @thread_setup(ptr noundef %0) #0 {
%2 = load i64, ptr @args, align 8, !tbaa !5
%3 = load i64, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @args, i64 0, i32 1), align 8, !tbaa !11
%4 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull @ready_thread_count_lock) #2
%5 = load i32, ptr @ready_thread_count, align 4, !tbaa !12
%6 = add nsw i32 %5, 1
store i32 %6, ptr @ready_thread_count, align 4, !tbaa !12
%7 = sext i32 %6 to i64
%8 = load i64, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @args, i64 0, i32 1), align 8, !tbaa !11
%9 = icmp eq i64 %8, %7
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @pthread_cond_signal(ptr noundef nonnull @threads_ready_cvar) #2
br label %12
12: ; preds = %10, %1
%13 = srem i64 %2, %3
%14 = trunc i64 %13 to i32
%15 = ptrtoint ptr %0 to i64
%16 = trunc i64 %15 to i32
%17 = icmp sgt i32 %14, %16
%18 = sdiv i64 %2, %3
%19 = zext i1 %17 to i64
%20 = add nsw i64 %18, %19
%21 = tail call i32 @pthread_cond_wait(ptr noundef nonnull @start_cvar, ptr noundef nonnull @ready_thread_count_lock) #2
%22 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull @ready_thread_count_lock) #2
%23 = load ptr, ptr @test, align 8, !tbaa !13
%24 = load i64, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @args, i64 0, i32 1), align 8, !tbaa !11
%25 = trunc i64 %24 to i32
%26 = load i32, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @args, i64 0, i32 3), align 4, !tbaa !16
%27 = load i32, ptr getelementptr inbounds (%struct.TYPE_4__, ptr @args, i64 0, i32 2), align 8, !tbaa !17
%28 = tail call i32 %23(i32 noundef %16, i32 noundef %25, i64 noundef %20, i32 noundef %26, i32 noundef %27) #2
ret ptr null
}
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @pthread_cond_signal(ptr noundef) local_unnamed_addr #1
declare i32 @pthread_cond_wait(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!7 = !{!"long 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 = !{!14, !15, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!6, !10, i64 20}
!17 = !{!6, !10, i64 16}
| ; ModuleID = 'AnghaBench/darwin-xnu/tools/tests/perf_index/extr_perf_index.c_thread_setup.c'
source_filename = "AnghaBench/darwin-xnu/tools/tests/perf_index/extr_perf_index.c_thread_setup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i64, i64, i32, i32 }
%struct.TYPE_3__ = type { ptr }
@args = common local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 8
@ready_thread_count_lock = common global i32 0, align 4
@ready_thread_count = common local_unnamed_addr global i32 0, align 4
@threads_ready_cvar = common global i32 0, align 4
@start_cvar = common global i32 0, align 4
@test = common local_unnamed_addr global %struct.TYPE_3__ zeroinitializer, align 8
@llvm.used = appending global [1 x ptr] [ptr @thread_setup], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @thread_setup(ptr noundef %0) #0 {
%2 = load i64, ptr @args, align 8, !tbaa !6
%3 = load i64, ptr getelementptr inbounds (i8, ptr @args, i64 8), align 8, !tbaa !12
%4 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull @ready_thread_count_lock) #2
%5 = load i32, ptr @ready_thread_count, align 4, !tbaa !13
%6 = add nsw i32 %5, 1
store i32 %6, ptr @ready_thread_count, align 4, !tbaa !13
%7 = sext i32 %6 to i64
%8 = load i64, ptr getelementptr inbounds (i8, ptr @args, i64 8), align 8, !tbaa !12
%9 = icmp eq i64 %8, %7
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = tail call i32 @pthread_cond_signal(ptr noundef nonnull @threads_ready_cvar) #2
br label %12
12: ; preds = %10, %1
%13 = freeze i64 %2
%14 = freeze i64 %3
%15 = sdiv i64 %13, %14
%16 = mul i64 %15, %14
%17 = sub i64 %13, %16
%18 = trunc i64 %17 to i32
%19 = ptrtoint ptr %0 to i64
%20 = trunc i64 %19 to i32
%21 = icmp sgt i32 %18, %20
%22 = zext i1 %21 to i64
%23 = add nsw i64 %15, %22
%24 = tail call i32 @pthread_cond_wait(ptr noundef nonnull @start_cvar, ptr noundef nonnull @ready_thread_count_lock) #2
%25 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull @ready_thread_count_lock) #2
%26 = load ptr, ptr @test, align 8, !tbaa !14
%27 = load i64, ptr getelementptr inbounds (i8, ptr @args, i64 8), align 8, !tbaa !12
%28 = trunc i64 %27 to i32
%29 = load i32, ptr getelementptr inbounds (i8, ptr @args, i64 20), align 4, !tbaa !17
%30 = load i32, ptr getelementptr inbounds (i8, ptr @args, i64 16), align 8, !tbaa !18
%31 = tail call i32 %26(i32 noundef %20, i32 noundef %28, i64 noundef %23, i32 noundef %29, i32 noundef %30) #2
ret ptr null
}
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @pthread_cond_signal(ptr noundef) local_unnamed_addr #1
declare i32 @pthread_cond_wait(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20}
!8 = !{!"long 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 = !{!15, !16, i64 0}
!15 = !{!"TYPE_3__", !16, i64 0}
!16 = !{!"any pointer", !9, i64 0}
!17 = !{!7, !11, i64 20}
!18 = !{!7, !11, i64 16}
| darwin-xnu_tools_tests_perf_index_extr_perf_index.c_thread_setup |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/dvb/ttpci/extr_budget-ci.c_budget_ci_detach.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/dvb/ttpci/extr_budget-ci.c_budget_ci_detach.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i64, ptr }
@SAA7146_GPIO_INPUT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @budget_ci_detach], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @budget_ci_detach(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = inttoptr i64 %2 to ptr
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = tail call i32 @ciintf_deinit(ptr noundef nonnull %3) #2
br label %11
11: ; preds = %9, %1
%12 = tail call i32 @msp430_ir_deinit(ptr noundef nonnull %3) #2
%13 = load i64, ptr %3, align 8, !tbaa !15
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = tail call i32 @dvb_unregister_frontend(i64 noundef %13) #2
%17 = load i64, ptr %3, align 8, !tbaa !15
%18 = tail call i32 @dvb_frontend_detach(i64 noundef %17) #2
br label %19
19: ; preds = %15, %11
%20 = tail call i32 @ttpci_budget_deinit(ptr noundef nonnull %3) #2
%21 = load i32, ptr @SAA7146_GPIO_INPUT, align 4, !tbaa !16
%22 = tail call i32 @saa7146_setgpio(ptr noundef %5, i32 noundef 2, i32 noundef %21) #2
%23 = tail call i32 @kfree(ptr noundef nonnull %3) #2
ret i32 %20
}
declare i32 @ciintf_deinit(ptr noundef) local_unnamed_addr #1
declare i32 @msp430_ir_deinit(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_unregister_frontend(i64 noundef) local_unnamed_addr #1
declare i32 @dvb_frontend_detach(i64 noundef) local_unnamed_addr #1
declare i32 @ttpci_budget_deinit(ptr noundef) local_unnamed_addr #1
declare i32 @saa7146_setgpio(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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 = !{!"saa7146_dev", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 16}
!11 = !{!"budget_ci", !12, i64 0}
!12 = !{!"TYPE_2__", !7, i64 0, !7, i64 8, !13, i64 16}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !7, i64 8}
!15 = !{!11, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/dvb/ttpci/extr_budget-ci.c_budget_ci_detach.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/dvb/ttpci/extr_budget-ci.c_budget_ci_detach.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SAA7146_GPIO_INPUT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @budget_ci_detach], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @budget_ci_detach(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = inttoptr i64 %2 to ptr
%4 = getelementptr inbounds i8, ptr %3, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = getelementptr inbounds i8, ptr %3, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !15
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = tail call i32 @ciintf_deinit(ptr noundef nonnull %3) #2
br label %11
11: ; preds = %9, %1
%12 = tail call i32 @msp430_ir_deinit(ptr noundef nonnull %3) #2
%13 = load i64, ptr %3, align 8, !tbaa !16
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = tail call i32 @dvb_unregister_frontend(i64 noundef %13) #2
%17 = load i64, ptr %3, align 8, !tbaa !16
%18 = tail call i32 @dvb_frontend_detach(i64 noundef %17) #2
br label %19
19: ; preds = %15, %11
%20 = tail call i32 @ttpci_budget_deinit(ptr noundef nonnull %3) #2
%21 = load i32, ptr @SAA7146_GPIO_INPUT, align 4, !tbaa !17
%22 = tail call i32 @saa7146_setgpio(ptr noundef %5, i32 noundef 2, i32 noundef %21) #2
%23 = tail call i32 @kfree(ptr noundef nonnull %3) #2
ret i32 %20
}
declare i32 @ciintf_deinit(ptr noundef) local_unnamed_addr #1
declare i32 @msp430_ir_deinit(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_unregister_frontend(i64 noundef) local_unnamed_addr #1
declare i32 @dvb_frontend_detach(i64 noundef) local_unnamed_addr #1
declare i32 @ttpci_budget_deinit(ptr noundef) local_unnamed_addr #1
declare i32 @saa7146_setgpio(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"saa7146_dev", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 16}
!12 = !{!"budget_ci", !13, i64 0}
!13 = !{!"TYPE_2__", !8, i64 0, !8, i64 8, !14, i64 16}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!12, !8, i64 8}
!16 = !{!12, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !9, i64 0}
| fastsocket_kernel_drivers_media_dvb_ttpci_extr_budget-ci.c_budget_ci_detach |
; ModuleID = 'AnghaBench/freebsd/sys/dev/cxgbe/extr_commoncommon.h_is_offload.c'
source_filename = "AnghaBench/freebsd/sys/dev/cxgbe/extr_commoncommon.h_is_offload.c"
target datalayout = "e-m:e-p270:32:32-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 @is_offload], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal i32 @is_offload(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
ret i32 %2
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"adapter", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/cxgbe/extr_commoncommon.h_is_offload.c'
source_filename = "AnghaBench/freebsd/sys/dev/cxgbe/extr_commoncommon.h_is_offload.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 @is_offload], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal i32 @is_offload(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
ret i32 %2
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"adapter", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_dev_cxgbe_extr_commoncommon.h_is_offload |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_int.c_qed_attn_update_idx.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_int.c_qed_attn_update_idx.c"
target datalayout = "e-m:e-p270:32:32-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.qed_sb_attn_info = type { i64, ptr }
@QED_SB_ATT_IDX = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @qed_attn_update_idx], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i64 @qed_attn_update_idx(ptr nocapture readnone %0, ptr nocapture noundef %1) #0 {
%3 = getelementptr inbounds %struct.qed_sb_attn_info, ptr %1, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %4, align 4, !tbaa !11
%6 = tail call i64 @le16_to_cpu(i32 noundef %5) #2
%7 = load i64, ptr %1, align 8, !tbaa !14
%8 = icmp eq i64 %7, %6
br i1 %8, label %11, label %9
9: ; preds = %2
store i64 %6, ptr %1, align 8, !tbaa !14
%10 = load i64, ptr @QED_SB_ATT_IDX, align 8, !tbaa !15
br label %11
11: ; preds = %9, %2
%12 = phi i64 [ %10, %9 ], [ 0, %2 ]
ret i64 %12
}
declare i64 @le16_to_cpu(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, !10, i64 8}
!6 = !{!"qed_sb_attn_info", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_int.c_qed_attn_update_idx.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/qlogic/qed/extr_qed_int.c_qed_attn_update_idx.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@QED_SB_ATT_IDX = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @qed_attn_update_idx], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i64 @qed_attn_update_idx(ptr nocapture readnone %0, ptr nocapture noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %4, align 4, !tbaa !12
%6 = tail call i64 @le16_to_cpu(i32 noundef %5) #2
%7 = load i64, ptr %1, align 8, !tbaa !15
%8 = icmp eq i64 %7, %6
br i1 %8, label %11, label %9
9: ; preds = %2
store i64 %6, ptr %1, align 8, !tbaa !15
%10 = load i64, ptr @QED_SB_ATT_IDX, align 8, !tbaa !16
br label %11
11: ; preds = %9, %2
%12 = phi i64 [ %10, %9 ], [ 0, %2 ]
ret i64 %12
}
declare i64 @le16_to_cpu(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, !11, i64 8}
!7 = !{!"qed_sb_attn_info", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!8, !8, i64 0}
| linux_drivers_net_ethernet_qlogic_qed_extr_qed_int.c_qed_attn_update_idx |
; ModuleID = 'AnghaBench/linux/drivers/watchdog/extr_sprd_wdt.c_sprd_wdt_enable.c'
source_filename = "AnghaBench/linux/drivers/watchdog/extr_sprd_wdt.c_sprd_wdt_enable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.sprd_wdt = type { i64, i32, i32 }
@SPRD_WDT_CTRL = dso_local local_unnamed_addr global i64 0, align 8
@SPRD_WDT_NEW_VER_EN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sprd_wdt_enable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sprd_wdt_enable(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.sprd_wdt, ptr %0, i64 0, i32 1
%3 = load i32, ptr %2, align 8, !tbaa !5
%4 = tail call i32 @clk_prepare_enable(i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %29
6: ; preds = %1
%7 = getelementptr inbounds %struct.sprd_wdt, ptr %0, i64 0, i32 2
%8 = load i32, ptr %7, align 4, !tbaa !11
%9 = tail call i32 @clk_prepare_enable(i32 noundef %8) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 8, !tbaa !5
%13 = tail call i32 @clk_disable_unprepare(i32 noundef %12) #2
br label %29
14: ; preds = %6
%15 = load i64, ptr %0, align 8, !tbaa !12
%16 = tail call i32 @sprd_wdt_unlock(i64 noundef %15) #2
%17 = load i64, ptr %0, align 8, !tbaa !12
%18 = load i64, ptr @SPRD_WDT_CTRL, align 8, !tbaa !13
%19 = add nsw i64 %18, %17
%20 = tail call i32 @readl_relaxed(i64 noundef %19) #2
%21 = load i32, ptr @SPRD_WDT_NEW_VER_EN, align 4, !tbaa !14
%22 = or i32 %21, %20
%23 = load i64, ptr %0, align 8, !tbaa !12
%24 = load i64, ptr @SPRD_WDT_CTRL, align 8, !tbaa !13
%25 = add nsw i64 %24, %23
%26 = tail call i32 @writel_relaxed(i32 noundef %22, i64 noundef %25) #2
%27 = load i64, ptr %0, align 8, !tbaa !12
%28 = tail call i32 @sprd_wdt_lock(i64 noundef %27) #2
br label %29
29: ; preds = %1, %14, %11
%30 = phi i32 [ %9, %11 ], [ 0, %14 ], [ %4, %1 ]
ret i32 %30
}
declare i32 @clk_prepare_enable(i32 noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(i32 noundef) local_unnamed_addr #1
declare i32 @sprd_wdt_unlock(i64 noundef) local_unnamed_addr #1
declare i32 @readl_relaxed(i64 noundef) local_unnamed_addr #1
declare i32 @writel_relaxed(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sprd_wdt_lock(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 = !{!"sprd_wdt", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 12}
!12 = !{!6, !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/watchdog/extr_sprd_wdt.c_sprd_wdt_enable.c'
source_filename = "AnghaBench/linux/drivers/watchdog/extr_sprd_wdt.c_sprd_wdt_enable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SPRD_WDT_CTRL = common local_unnamed_addr global i64 0, align 8
@SPRD_WDT_NEW_VER_EN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sprd_wdt_enable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @sprd_wdt_enable(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load i32, ptr %2, align 8, !tbaa !6
%4 = tail call i32 @clk_prepare_enable(i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %29
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %0, i64 12
%8 = load i32, ptr %7, align 4, !tbaa !12
%9 = tail call i32 @clk_prepare_enable(i32 noundef %8) #2
%10 = icmp eq i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 8, !tbaa !6
%13 = tail call i32 @clk_disable_unprepare(i32 noundef %12) #2
br label %29
14: ; preds = %6
%15 = load i64, ptr %0, align 8, !tbaa !13
%16 = tail call i32 @sprd_wdt_unlock(i64 noundef %15) #2
%17 = load i64, ptr %0, align 8, !tbaa !13
%18 = load i64, ptr @SPRD_WDT_CTRL, align 8, !tbaa !14
%19 = add nsw i64 %18, %17
%20 = tail call i32 @readl_relaxed(i64 noundef %19) #2
%21 = load i32, ptr @SPRD_WDT_NEW_VER_EN, align 4, !tbaa !15
%22 = or i32 %21, %20
%23 = load i64, ptr %0, align 8, !tbaa !13
%24 = load i64, ptr @SPRD_WDT_CTRL, align 8, !tbaa !14
%25 = add nsw i64 %24, %23
%26 = tail call i32 @writel_relaxed(i32 noundef %22, i64 noundef %25) #2
%27 = load i64, ptr %0, align 8, !tbaa !13
%28 = tail call i32 @sprd_wdt_lock(i64 noundef %27) #2
br label %29
29: ; preds = %1, %14, %11
%30 = phi i32 [ %9, %11 ], [ 0, %14 ], [ %4, %1 ]
ret i32 %30
}
declare i32 @clk_prepare_enable(i32 noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(i32 noundef) local_unnamed_addr #1
declare i32 @sprd_wdt_unlock(i64 noundef) local_unnamed_addr #1
declare i32 @readl_relaxed(i64 noundef) local_unnamed_addr #1
declare i32 @writel_relaxed(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @sprd_wdt_lock(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 = !{!"sprd_wdt", !8, i64 0, !11, i64 8, !11, i64 12}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !11, i64 12}
!13 = !{!7, !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!11, !11, i64 0}
| linux_drivers_watchdog_extr_sprd_wdt.c_sprd_wdt_enable |
; ModuleID = 'AnghaBench/borg/src/borg/algorithms/zstd/lib/legacy/extr_zstd_v07.c_HUFv07_decompress1X2_usingDTable_internal.c'
source_filename = "AnghaBench/borg/src/borg/algorithms/zstd/lib/legacy/extr_zstd_v07.c_HUFv07_decompress1X2_usingDTable_internal.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@corruption_detected = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @HUFv07_decompress1X2_usingDTable_internal], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @HUFv07_decompress1X2_usingDTable_internal(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%7 = tail call i32 @HUFv07_getDTableDesc(ptr noundef %4) #3
%8 = call i64 @BITv07_initDStream(ptr noundef nonnull %6, ptr noundef %2, i64 noundef %3) #3
%9 = call i64 @HUFv07_isError(i64 noundef %8) #3
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %5
%12 = getelementptr inbounds i32, ptr %4, i64 1
%13 = getelementptr inbounds i32, ptr %0, i64 %1
%14 = call i32 @HUFv07_decodeStreamX2(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %13, ptr noundef nonnull %12, i32 noundef %7) #3
%15 = call i32 @BITv07_endOfDStream(ptr noundef nonnull %6) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, ptr @corruption_detected, align 4, !tbaa !5
%19 = call i64 @ERROR(i32 noundef %18) #3
br label %20
20: ; preds = %11, %5, %17
%21 = phi i64 [ %19, %17 ], [ %8, %5 ], [ %1, %11 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
ret i64 %21
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @HUFv07_getDTableDesc(ptr noundef) local_unnamed_addr #2
declare i64 @BITv07_initDStream(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i64 @HUFv07_isError(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
declare i32 @HUFv07_decodeStreamX2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @BITv07_endOfDStream(ptr noundef) local_unnamed_addr #2
declare i64 @ERROR(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"}
| ; ModuleID = 'AnghaBench/borg/src/borg/algorithms/zstd/lib/legacy/extr_zstd_v07.c_HUFv07_decompress1X2_usingDTable_internal.c'
source_filename = "AnghaBench/borg/src/borg/algorithms/zstd/lib/legacy/extr_zstd_v07.c_HUFv07_decompress1X2_usingDTable_internal.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@corruption_detected = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @HUFv07_decompress1X2_usingDTable_internal], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @HUFv07_decompress1X2_usingDTable_internal(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%7 = tail call i32 @HUFv07_getDTableDesc(ptr noundef %4) #3
%8 = call i64 @BITv07_initDStream(ptr noundef nonnull %6, ptr noundef %2, i64 noundef %3) #3
%9 = call i64 @HUFv07_isError(i64 noundef %8) #3
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %5
%12 = getelementptr inbounds i8, ptr %4, i64 4
%13 = getelementptr inbounds i32, ptr %0, i64 %1
%14 = call i32 @HUFv07_decodeStreamX2(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %13, ptr noundef nonnull %12, i32 noundef %7) #3
%15 = call i32 @BITv07_endOfDStream(ptr noundef nonnull %6) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, ptr @corruption_detected, align 4, !tbaa !6
%19 = call i64 @ERROR(i32 noundef %18) #3
br label %20
20: ; preds = %11, %5, %17
%21 = phi i64 [ %19, %17 ], [ %8, %5 ], [ %1, %11 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
ret i64 %21
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @HUFv07_getDTableDesc(ptr noundef) local_unnamed_addr #2
declare i64 @BITv07_initDStream(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i64 @HUFv07_isError(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
declare i32 @HUFv07_decodeStreamX2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @BITv07_endOfDStream(ptr noundef) local_unnamed_addr #2
declare i64 @ERROR(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"}
| borg_src_borg_algorithms_zstd_lib_legacy_extr_zstd_v07.c_HUFv07_decompress1X2_usingDTable_internal |
; ModuleID = 'AnghaBench/linux/fs/ubifs/extr_dir.c_inherit_flags.c'
source_filename = "AnghaBench/linux/fs/ubifs/extr_dir.c_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"
@UBIFS_COMPR_FL = dso_local local_unnamed_addr global i32 0, align 4
@UBIFS_SYNC_FL = dso_local local_unnamed_addr global i32 0, align 4
@UBIFS_DIRSYNC_FL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @inherit_flags], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @inherit_flags(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @ubifs_inode(ptr noundef %0) #2
%4 = load i32, ptr %0, align 4, !tbaa !5
%5 = tail call i32 @S_ISDIR(i32 noundef %4) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %21, label %7
7: ; preds = %2
%8 = load i32, ptr %3, align 4, !tbaa !10
%9 = load i32, ptr @UBIFS_COMPR_FL, align 4, !tbaa !12
%10 = load i32, ptr @UBIFS_SYNC_FL, align 4, !tbaa !12
%11 = or i32 %10, %9
%12 = load i32, ptr @UBIFS_DIRSYNC_FL, align 4, !tbaa !12
%13 = or i32 %11, %12
%14 = and i32 %13, %8
%15 = tail call i32 @S_ISDIR(i32 noundef %1) #2
%16 = icmp eq i32 %15, 0
%17 = load i32, ptr @UBIFS_DIRSYNC_FL, align 4
%18 = xor i32 %17, -1
%19 = select i1 %16, i32 %18, i32 -1
%20 = and i32 %14, %19
br label %21
21: ; preds = %2, %7
%22 = phi i32 [ %20, %7 ], [ 0, %2 ]
ret i32 %22
}
declare ptr @ubifs_inode(ptr noundef) local_unnamed_addr #1
declare i32 @S_ISDIR(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"inode", !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 = !{!"ubifs_inode", !7, i64 0}
!12 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/ubifs/extr_dir.c_inherit_flags.c'
source_filename = "AnghaBench/linux/fs/ubifs/extr_dir.c_inherit_flags.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UBIFS_COMPR_FL = common local_unnamed_addr global i32 0, align 4
@UBIFS_SYNC_FL = common local_unnamed_addr global i32 0, align 4
@UBIFS_DIRSYNC_FL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @inherit_flags], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @inherit_flags(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @ubifs_inode(ptr noundef %0) #2
%4 = load i32, ptr %0, align 4, !tbaa !6
%5 = tail call i32 @S_ISDIR(i32 noundef %4) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %21, label %7
7: ; preds = %2
%8 = load i32, ptr %3, align 4, !tbaa !11
%9 = load i32, ptr @UBIFS_COMPR_FL, align 4, !tbaa !13
%10 = load i32, ptr @UBIFS_SYNC_FL, align 4, !tbaa !13
%11 = or i32 %10, %9
%12 = load i32, ptr @UBIFS_DIRSYNC_FL, align 4, !tbaa !13
%13 = or i32 %11, %12
%14 = and i32 %13, %8
%15 = tail call i32 @S_ISDIR(i32 noundef %1) #2
%16 = icmp eq i32 %15, 0
%17 = load i32, ptr @UBIFS_DIRSYNC_FL, align 4
%18 = xor i32 %17, -1
%19 = select i1 %16, i32 %18, i32 -1
%20 = and i32 %14, %19
br label %21
21: ; preds = %2, %7
%22 = phi i32 [ %20, %7 ], [ 0, %2 ]
ret i32 %22
}
declare ptr @ubifs_inode(ptr noundef) local_unnamed_addr #1
declare i32 @S_ISDIR(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"inode", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"ubifs_inode", !8, i64 0}
!13 = !{!8, !8, i64 0}
| linux_fs_ubifs_extr_dir.c_inherit_flags |
; ModuleID = 'AnghaBench/linux/drivers/video/fbdev/sis/extr_init301.c_SiS_SetChReg.c'
source_filename = "AnghaBench/linux/drivers/video/fbdev/sis/extr_init301.c_SiS_SetChReg.c"
target datalayout = "e-m:e-p270:32:32-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.SiS_Private = type { i8, i32 }
@SiS_I2CDELAYSHORT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @SiS_SetChReg], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @SiS_SetChReg(ptr noundef %0, i16 noundef zeroext %1, i8 noundef zeroext %2, i16 noundef zeroext %3) #0 {
%5 = or i16 %3, %1
%6 = trunc i16 %5 to i8
%7 = tail call i64 @SiS_SetStart(ptr noundef %0) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %22
9: ; preds = %4
%10 = load i8, ptr %0, align 4, !tbaa !5
%11 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %10) #2
%12 = icmp eq i16 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %6) #2
%15 = icmp eq i16 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %13
%17 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %2) #2
%18 = icmp eq i16 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = tail call i64 @SiS_SetStop(ptr noundef nonnull %0) #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %44, label %22
22: ; preds = %4, %9, %13, %16, %19
br label %23
23: ; preds = %22, %46
%24 = phi i16 [ %47, %46 ], [ 1, %22 ]
%25 = tail call i64 @SiS_SetStop(ptr noundef %0) #2
%26 = load i32, ptr @SiS_I2CDELAYSHORT, align 4, !tbaa !10
%27 = shl nsw i32 %26, 2
%28 = tail call i32 @SiS_DDC2Delay(ptr noundef %0, i32 noundef %27) #2
%29 = tail call i64 @SiS_SetStart(ptr noundef %0) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %46
31: ; preds = %23
%32 = load i8, ptr %0, align 4, !tbaa !5
%33 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %32) #2
%34 = icmp eq i16 %33, 0
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %6) #2
%37 = icmp eq i16 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %2) #2
%40 = icmp eq i16 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = tail call i64 @SiS_SetStop(ptr noundef nonnull %0) #2
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41, %19
%45 = getelementptr inbounds %struct.SiS_Private, ptr %0, i64 0, i32 1
store i32 1, ptr %45, align 4, !tbaa !11
br label %49
46: ; preds = %41, %38, %35, %31, %23
%47 = add nuw nsw i16 %24, 1
%48 = icmp eq i16 %47, 20
br i1 %48, label %49, label %23, !llvm.loop !12
49: ; preds = %46, %44
%50 = phi i32 [ 1, %44 ], [ 0, %46 ]
ret i32 %50
}
declare i64 @SiS_SetStop(ptr noundef) local_unnamed_addr #1
declare i32 @SiS_DDC2Delay(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @SiS_SetStart(ptr noundef) local_unnamed_addr #1
declare zeroext i16 @SiS_WriteDDC2Data(ptr noundef, i8 noundef zeroext) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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 = !{!"SiS_Private", !7, i64 0, !9, i64 4}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!9, !9, i64 0}
!11 = !{!6, !9, i64 4}
!12 = distinct !{!12, !13, !14}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!"llvm.loop.peeled.count", i32 1}
| ; ModuleID = 'AnghaBench/linux/drivers/video/fbdev/sis/extr_init301.c_SiS_SetChReg.c'
source_filename = "AnghaBench/linux/drivers/video/fbdev/sis/extr_init301.c_SiS_SetChReg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SiS_I2CDELAYSHORT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @SiS_SetChReg], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @SiS_SetChReg(ptr noundef %0, i16 noundef zeroext %1, i8 noundef zeroext %2, i16 noundef zeroext %3) #0 {
%5 = or i16 %3, %1
%6 = trunc i16 %5 to i8
%7 = tail call i64 @SiS_SetStart(ptr noundef %0) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %22
9: ; preds = %4
%10 = load i8, ptr %0, align 4, !tbaa !6
%11 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %10) #2
%12 = icmp eq i16 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %6) #2
%15 = icmp eq i16 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %13
%17 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %2) #2
%18 = icmp eq i16 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = tail call i64 @SiS_SetStop(ptr noundef nonnull %0) #2
%21 = icmp eq i64 %20, 0
br i1 %21, label %44, label %22
22: ; preds = %4, %9, %13, %16, %19
br label %23
23: ; preds = %22, %46
%24 = phi i16 [ %47, %46 ], [ 1, %22 ]
%25 = tail call i64 @SiS_SetStop(ptr noundef %0) #2
%26 = load i32, ptr @SiS_I2CDELAYSHORT, align 4, !tbaa !11
%27 = shl nsw i32 %26, 2
%28 = tail call i32 @SiS_DDC2Delay(ptr noundef %0, i32 noundef %27) #2
%29 = tail call i64 @SiS_SetStart(ptr noundef %0) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %46
31: ; preds = %23
%32 = load i8, ptr %0, align 4, !tbaa !6
%33 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %32) #2
%34 = icmp eq i16 %33, 0
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %6) #2
%37 = icmp eq i16 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = tail call zeroext i16 @SiS_WriteDDC2Data(ptr noundef nonnull %0, i8 noundef zeroext %2) #2
%40 = icmp eq i16 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = tail call i64 @SiS_SetStop(ptr noundef nonnull %0) #2
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41, %19
%45 = getelementptr inbounds i8, ptr %0, i64 4
store i32 1, ptr %45, align 4, !tbaa !12
br label %49
46: ; preds = %41, %38, %35, %31, %23
%47 = add nuw nsw i16 %24, 1
%48 = icmp ult i16 %24, 19
br i1 %48, label %23, label %49, !llvm.loop !13
49: ; preds = %46, %44
%50 = phi i32 [ 1, %44 ], [ 0, %46 ]
ret i32 %50
}
declare i64 @SiS_SetStop(ptr noundef) local_unnamed_addr #1
declare i32 @SiS_DDC2Delay(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @SiS_SetStart(ptr noundef) local_unnamed_addr #1
declare zeroext i16 @SiS_WriteDDC2Data(ptr noundef, i8 noundef zeroext) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"SiS_Private", !8, i64 0, !10, i64 4}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!7, !10, i64 4}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.peeled.count", i32 1}
| linux_drivers_video_fbdev_sis_extr_init301.c_SiS_SetChReg |
; ModuleID = 'AnghaBench/linux/drivers/net/can/extr_at91_can.c_at91_set_mode.c'
source_filename = "AnghaBench/linux/drivers/net/can/extr_at91_can.c_at91_set_mode.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EOPNOTSUPP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @at91_set_mode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @at91_set_mode(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 128
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = tail call i32 @at91_chip_start(ptr noundef %0) #2
%6 = tail call i32 @netif_wake_queue(ptr noundef %0) #2
br label %10
7: ; preds = %2
%8 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %10
10: ; preds = %4, %7
%11 = phi i32 [ 0, %4 ], [ %9, %7 ]
ret i32 %11
}
declare i32 @at91_chip_start(ptr noundef) local_unnamed_addr #1
declare i32 @netif_wake_queue(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/can/extr_at91_can.c_at91_set_mode.c'
source_filename = "AnghaBench/linux/drivers/net/can/extr_at91_can.c_at91_set_mode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EOPNOTSUPP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @at91_set_mode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @at91_set_mode(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 128
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = tail call i32 @at91_chip_start(ptr noundef %0) #2
%6 = tail call i32 @netif_wake_queue(ptr noundef %0) #2
br label %10
7: ; preds = %2
%8 = load i32, ptr @EOPNOTSUPP, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %10
10: ; preds = %4, %7
%11 = phi i32 [ 0, %4 ], [ %9, %7 ]
ret i32 %11
}
declare i32 @at91_chip_start(ptr noundef) local_unnamed_addr #1
declare i32 @netif_wake_queue(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_can_extr_at91_can.c_at91_set_mode |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/x86/kernel/acpi/realmode/extr_wakemain.c_udelay.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/x86/kernel/acpi/realmode/extr_wakemain.c_udelay.c"
target datalayout = "e-m:e-p270:32:32-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 @udelay], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @udelay(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 0
br i1 %2, label %8, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %5, %3 ], [ %0, %1 ]
%5 = add nsw i32 %4, -1
%6 = tail call i32 (...) @io_delay() #2
%7 = icmp eq i32 %5, 0
br i1 %7, label %8, label %3, !llvm.loop !5
8: ; preds = %3, %1
ret void
}
declare i32 @io_delay(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/x86/kernel/acpi/realmode/extr_wakemain.c_udelay.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/x86/kernel/acpi/realmode/extr_wakemain.c_udelay.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 @udelay], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @udelay(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 0
br i1 %2, label %8, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %5, %3 ], [ %0, %1 ]
%5 = add nsw i32 %4, -1
%6 = tail call i32 @io_delay() #2
%7 = icmp eq i32 %5, 0
br i1 %7, label %8, label %3, !llvm.loop !6
8: ; preds = %3, %1
ret void
}
declare i32 @io_delay(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_arch_x86_kernel_acpi_realmode_extr_wakemain.c_udelay |
; ModuleID = 'AnghaBench/reactos/dll/win32/jscript/extr_parser.tab.c_new_parameter.c'
source_filename = "AnghaBench/reactos/dll/win32/jscript/extr_parser.tab.c_new_parameter.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @new_parameter], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @new_parameter(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @parser_alloc(ptr noundef %0, i32 noundef 16) #2
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 0, i32 1
store ptr %1, ptr %4, align 8, !tbaa !5
store ptr null, ptr %3, align 8, !tbaa !10
ret ptr %3
}
declare ptr @parser_alloc(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"TYPE_4__", !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 0}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/jscript/extr_parser.tab.c_new_parameter.c'
source_filename = "AnghaBench/reactos/dll/win32/jscript/extr_parser.tab.c_new_parameter.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 @new_parameter], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @new_parameter(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call ptr @parser_alloc(ptr noundef %0, i32 noundef 16) #2
%4 = getelementptr inbounds i8, ptr %3, i64 8
store ptr %1, ptr %4, align 8, !tbaa !6
store ptr null, ptr %3, align 8, !tbaa !11
ret ptr %3
}
declare ptr @parser_alloc(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"TYPE_4__", !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 0}
| reactos_dll_win32_jscript_extr_parser.tab.c_new_parameter |
; ModuleID = 'AnghaBench/linux/drivers/media/pci/tw68/extr_tw68-video.c_format_by_fourcc.c'
source_filename = "AnghaBench/linux/drivers/media/pci/tw68/extr_tw68-video.c_format_by_fourcc.c"
target datalayout = "e-m:e-p270:32:32-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.tw68_format = type { i32 }
@FORMATS = dso_local local_unnamed_addr global i32 0, align 4
@formats = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @format_by_fourcc], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define internal ptr @format_by_fourcc(i32 noundef %0) #0 {
%2 = load i32, ptr @FORMATS, align 4, !tbaa !5
%3 = icmp eq i32 %2, 0
br i1 %3, label %17, label %4
4: ; preds = %1
%5 = load ptr, ptr @formats, align 8, !tbaa !9
%6 = zext i32 %2 to i64
br label %10
7: ; preds = %10
%8 = add nuw nsw i64 %11, 1
%9 = icmp eq i64 %8, %6
br i1 %9, label %17, label %10, !llvm.loop !11
10: ; preds = %4, %7
%11 = phi i64 [ 0, %4 ], [ %8, %7 ]
%12 = getelementptr inbounds %struct.tw68_format, ptr %5, i64 %11
%13 = load i32, ptr %12, align 4, !tbaa !13
%14 = icmp eq i32 %13, %0
br i1 %14, label %15, label %7
15: ; preds = %10
%16 = getelementptr inbounds %struct.tw68_format, ptr %5, i64 %11
br label %17
17: ; preds = %7, %15, %1
%18 = phi ptr [ null, %1 ], [ %16, %15 ], [ null, %7 ]
ret ptr %18
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"tw68_format", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/pci/tw68/extr_tw68-video.c_format_by_fourcc.c'
source_filename = "AnghaBench/linux/drivers/media/pci/tw68/extr_tw68-video.c_format_by_fourcc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.tw68_format = type { i32 }
@FORMATS = common local_unnamed_addr global i32 0, align 4
@formats = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @format_by_fourcc], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define internal ptr @format_by_fourcc(i32 noundef %0) #0 {
%2 = load i32, ptr @FORMATS, align 4, !tbaa !6
%3 = icmp eq i32 %2, 0
br i1 %3, label %17, label %4
4: ; preds = %1
%5 = load ptr, ptr @formats, align 8, !tbaa !10
%6 = zext i32 %2 to i64
br label %10
7: ; preds = %10
%8 = add nuw nsw i64 %11, 1
%9 = icmp eq i64 %8, %6
br i1 %9, label %17, label %10, !llvm.loop !12
10: ; preds = %4, %7
%11 = phi i64 [ 0, %4 ], [ %8, %7 ]
%12 = getelementptr inbounds %struct.tw68_format, ptr %5, i64 %11
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = icmp eq i32 %13, %0
br i1 %14, label %15, label %7
15: ; preds = %10
%16 = getelementptr inbounds %struct.tw68_format, ptr %5, i64 %11
br label %17
17: ; preds = %15, %7, %1
%18 = phi ptr [ null, %1 ], [ %16, %15 ], [ null, %7 ]
ret ptr %18
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !7, i64 0}
!15 = !{!"tw68_format", !7, i64 0}
| linux_drivers_media_pci_tw68_extr_tw68-video.c_format_by_fourcc |
; ModuleID = 'AnghaBench/reactos/drivers/bus/acpi/acpica/dispatcher/extr_dsutils.c_AcpiDsEvaluateNamePath.c'
source_filename = "AnghaBench/reactos/drivers/bus/acpi/acpica/dispatcher/extr_dsutils.c_AcpiDsEvaluateNamePath.c"
target datalayout = "e-m:e-p270:32:32-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_25__ = type { ptr, ptr, ptr }
%struct.TYPE_24__ = type { i32, ptr }
@AE_OK = dso_local local_unnamed_addr global i32 0, align 4
@DsEvaluateNamePath = dso_local local_unnamed_addr global i32 0, align 4
@AML_PACKAGE_OP = dso_local local_unnamed_addr global i64 0, align 8
@AML_VARIABLE_PACKAGE_OP = dso_local local_unnamed_addr global i64 0, align 8
@AML_REF_OF_OP = dso_local local_unnamed_addr global i64 0, align 8
@ACPI_PARSEOP_TARGET = dso_local local_unnamed_addr global i32 0, align 4
@ACPI_TYPE_INTEGER = dso_local local_unnamed_addr global i64 0, align 8
@ACPI_PARSEOP_IN_STACK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @AcpiDsEvaluateNamePath(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca ptr, align 8
%3 = load i32, ptr @AE_OK, align 4, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_25__, ptr %0, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !9
%6 = getelementptr inbounds %struct.TYPE_25__, ptr %0, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !12
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%8 = load i32, ptr @DsEvaluateNamePath, align 4, !tbaa !5
%9 = tail call i32 @ACPI_FUNCTION_TRACE_PTR(i32 noundef %8, ptr noundef %0) #3
%10 = getelementptr inbounds %struct.TYPE_24__, ptr %5, i64 0, i32 1
%11 = load ptr, ptr %10, align 8, !tbaa !13
%12 = icmp eq ptr %11, null
br i1 %12, label %65, label %13
13: ; preds = %1
%14 = load i64, ptr %11, align 8, !tbaa !16
%15 = load i64, ptr @AML_PACKAGE_OP, align 8, !tbaa !20
%16 = icmp eq i64 %14, %15
%17 = load i64, ptr @AML_VARIABLE_PACKAGE_OP, align 8
%18 = icmp eq i64 %14, %17
%19 = select i1 %16, i1 true, i1 %18
%20 = load i64, ptr @AML_REF_OF_OP, align 8
%21 = icmp eq i64 %14, %20
%22 = select i1 %19, i1 true, i1 %21
br i1 %22, label %65, label %23
23: ; preds = %13
%24 = tail call i32 @AcpiDsCreateOperand(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef 0) #3
%25 = tail call i64 @ACPI_FAILURE(i32 noundef %24) #3
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %65
27: ; preds = %23
%28 = load i32, ptr %5, align 8, !tbaa !21
%29 = load i32, ptr @ACPI_PARSEOP_TARGET, align 4, !tbaa !5
%30 = and i32 %29, %28
%31 = icmp eq i32 %30, 0
%32 = load ptr, ptr %7, align 8, !tbaa !22
br i1 %31, label %34, label %33
33: ; preds = %27
store ptr %32, ptr %2, align 8, !tbaa !22
br label %56
34: ; preds = %27
%35 = load i64, ptr %32, align 8, !tbaa !23
%36 = tail call i32 @AcpiExResolveToValue(ptr noundef nonnull %7, ptr noundef nonnull %0) #3
%37 = tail call i64 @ACPI_FAILURE(i32 noundef %36) #3
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %65
39: ; preds = %34
%40 = load i64, ptr @ACPI_TYPE_INTEGER, align 8, !tbaa !20
%41 = icmp eq i64 %35, %40
%42 = load ptr, ptr %7, align 8, !tbaa !22
br i1 %41, label %43, label %49
43: ; preds = %39
%44 = tail call i32 @AcpiUtRemoveReference(ptr noundef %42) #3
%45 = load ptr, ptr %7, align 8, !tbaa !22
%46 = call i32 @AcpiUtCopyIobjectToIobject(ptr noundef %45, ptr noundef nonnull %2, ptr noundef nonnull %0) #3
%47 = call i64 @ACPI_FAILURE(i32 noundef %46) #3
%48 = icmp eq i64 %47, 0
br i1 %48, label %50, label %65
49: ; preds = %39
store ptr %42, ptr %2, align 8, !tbaa !22
br label %50
50: ; preds = %43, %49
%51 = call i32 @AcpiDsObjStackPop(i32 noundef 1, ptr noundef nonnull %0) #3
%52 = call i64 @ACPI_FAILURE(i32 noundef %51) #3
%53 = icmp eq i64 %52, 0
%54 = load ptr, ptr %2, align 8, !tbaa !22
br i1 %53, label %56, label %55
55: ; preds = %50
store ptr %54, ptr %0, align 8, !tbaa !26
br label %65
56: ; preds = %50, %33
%57 = phi ptr [ %54, %50 ], [ %32, %33 ]
store ptr %57, ptr %0, align 8, !tbaa !26
%58 = call i32 @AcpiDsResultPush(ptr noundef %57, ptr noundef nonnull %0) #3
%59 = call i64 @ACPI_SUCCESS(i32 noundef %58) #3
%60 = icmp eq i64 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %56
%62 = load i32, ptr @ACPI_PARSEOP_IN_STACK, align 4, !tbaa !5
%63 = load i32, ptr %5, align 8, !tbaa !21
%64 = or i32 %63, %62
store i32 %64, ptr %5, align 8, !tbaa !21
br label %65
65: ; preds = %56, %61, %43, %34, %23, %13, %1, %55
%66 = phi i32 [ %3, %13 ], [ %24, %23 ], [ %58, %61 ], [ %58, %56 ], [ %36, %34 ], [ %46, %43 ], [ %51, %55 ], [ %3, %1 ]
%67 = call i32 @return_ACPI_STATUS(i32 noundef %66) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
ret i32 undef
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ACPI_FUNCTION_TRACE_PTR(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiDsCreateOperand(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ACPI_FAILURE(i32 noundef) local_unnamed_addr #2
declare i32 @AcpiExResolveToValue(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiUtRemoveReference(ptr noundef) local_unnamed_addr #2
declare i32 @AcpiUtCopyIobjectToIobject(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiDsObjStackPop(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiDsResultPush(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ACPI_SUCCESS(i32 noundef) local_unnamed_addr #2
declare i32 @return_ACPI_STATUS(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"TYPE_25__", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !11, i64 8}
!14 = !{!"TYPE_26__", !15, i64 0}
!15 = !{!"TYPE_24__", !6, i64 0, !11, i64 8}
!16 = !{!17, !19, i64 0}
!17 = !{!"TYPE_22__", !18, i64 0}
!18 = !{!"TYPE_21__", !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!19, !19, i64 0}
!21 = !{!14, !6, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!24, !19, i64 0}
!24 = !{!"TYPE_27__", !25, i64 0}
!25 = !{!"TYPE_23__", !19, i64 0}
!26 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/reactos/drivers/bus/acpi/acpica/dispatcher/extr_dsutils.c_AcpiDsEvaluateNamePath.c'
source_filename = "AnghaBench/reactos/drivers/bus/acpi/acpica/dispatcher/extr_dsutils.c_AcpiDsEvaluateNamePath.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AE_OK = common local_unnamed_addr global i32 0, align 4
@DsEvaluateNamePath = common local_unnamed_addr global i32 0, align 4
@AML_PACKAGE_OP = common local_unnamed_addr global i64 0, align 8
@AML_VARIABLE_PACKAGE_OP = common local_unnamed_addr global i64 0, align 8
@AML_REF_OF_OP = common local_unnamed_addr global i64 0, align 8
@ACPI_PARSEOP_TARGET = common local_unnamed_addr global i32 0, align 4
@ACPI_TYPE_INTEGER = common local_unnamed_addr global i64 0, align 8
@ACPI_PARSEOP_IN_STACK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @AcpiDsEvaluateNamePath(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca ptr, align 8
%3 = load i32, ptr @AE_OK, align 4, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%8 = load i32, ptr @DsEvaluateNamePath, align 4, !tbaa !6
%9 = tail call i32 @ACPI_FUNCTION_TRACE_PTR(i32 noundef %8, ptr noundef %0) #3
%10 = getelementptr inbounds i8, ptr %5, i64 8
%11 = load ptr, ptr %10, align 8, !tbaa !14
%12 = icmp eq ptr %11, null
br i1 %12, label %65, label %13
13: ; preds = %1
%14 = load i64, ptr %11, align 8, !tbaa !17
%15 = load i64, ptr @AML_PACKAGE_OP, align 8, !tbaa !21
%16 = icmp eq i64 %14, %15
%17 = load i64, ptr @AML_VARIABLE_PACKAGE_OP, align 8
%18 = icmp eq i64 %14, %17
%19 = select i1 %16, i1 true, i1 %18
%20 = load i64, ptr @AML_REF_OF_OP, align 8
%21 = icmp eq i64 %14, %20
%22 = select i1 %19, i1 true, i1 %21
br i1 %22, label %65, label %23
23: ; preds = %13
%24 = tail call i32 @AcpiDsCreateOperand(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef 0) #3
%25 = tail call i64 @ACPI_FAILURE(i32 noundef %24) #3
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %65
27: ; preds = %23
%28 = load i32, ptr %5, align 8, !tbaa !22
%29 = load i32, ptr @ACPI_PARSEOP_TARGET, align 4, !tbaa !6
%30 = and i32 %29, %28
%31 = icmp eq i32 %30, 0
%32 = load ptr, ptr %7, align 8, !tbaa !23
br i1 %31, label %34, label %33
33: ; preds = %27
store ptr %32, ptr %2, align 8, !tbaa !23
br label %56
34: ; preds = %27
%35 = load i64, ptr %32, align 8, !tbaa !24
%36 = tail call i32 @AcpiExResolveToValue(ptr noundef nonnull %7, ptr noundef nonnull %0) #3
%37 = tail call i64 @ACPI_FAILURE(i32 noundef %36) #3
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %65
39: ; preds = %34
%40 = load i64, ptr @ACPI_TYPE_INTEGER, align 8, !tbaa !21
%41 = icmp eq i64 %35, %40
%42 = load ptr, ptr %7, align 8, !tbaa !23
br i1 %41, label %43, label %49
43: ; preds = %39
%44 = tail call i32 @AcpiUtRemoveReference(ptr noundef %42) #3
%45 = load ptr, ptr %7, align 8, !tbaa !23
%46 = call i32 @AcpiUtCopyIobjectToIobject(ptr noundef %45, ptr noundef nonnull %2, ptr noundef nonnull %0) #3
%47 = call i64 @ACPI_FAILURE(i32 noundef %46) #3
%48 = icmp eq i64 %47, 0
br i1 %48, label %50, label %65
49: ; preds = %39
store ptr %42, ptr %2, align 8, !tbaa !23
br label %50
50: ; preds = %43, %49
%51 = call i32 @AcpiDsObjStackPop(i32 noundef 1, ptr noundef nonnull %0) #3
%52 = call i64 @ACPI_FAILURE(i32 noundef %51) #3
%53 = icmp eq i64 %52, 0
%54 = load ptr, ptr %2, align 8, !tbaa !23
br i1 %53, label %56, label %55
55: ; preds = %50
store ptr %54, ptr %0, align 8, !tbaa !27
br label %65
56: ; preds = %50, %33
%57 = phi ptr [ %54, %50 ], [ %32, %33 ]
store ptr %57, ptr %0, align 8, !tbaa !27
%58 = call i32 @AcpiDsResultPush(ptr noundef %57, ptr noundef nonnull %0) #3
%59 = call i64 @ACPI_SUCCESS(i32 noundef %58) #3
%60 = icmp eq i64 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %56
%62 = load i32, ptr @ACPI_PARSEOP_IN_STACK, align 4, !tbaa !6
%63 = load i32, ptr %5, align 8, !tbaa !22
%64 = or i32 %63, %62
store i32 %64, ptr %5, align 8, !tbaa !22
br label %65
65: ; preds = %56, %61, %43, %34, %23, %13, %1, %55
%66 = phi i32 [ %3, %13 ], [ %24, %23 ], [ %58, %61 ], [ %58, %56 ], [ %36, %34 ], [ %46, %43 ], [ %51, %55 ], [ %3, %1 ]
%67 = call i32 @return_ACPI_STATUS(i32 noundef %66) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
ret i32 undef
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @ACPI_FUNCTION_TRACE_PTR(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiDsCreateOperand(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ACPI_FAILURE(i32 noundef) local_unnamed_addr #2
declare i32 @AcpiExResolveToValue(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiUtRemoveReference(ptr noundef) local_unnamed_addr #2
declare i32 @AcpiUtCopyIobjectToIobject(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiDsObjStackPop(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @AcpiDsResultPush(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ACPI_SUCCESS(i32 noundef) local_unnamed_addr #2
declare i32 @return_ACPI_STATUS(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"TYPE_25__", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!15, !12, i64 8}
!15 = !{!"TYPE_26__", !16, i64 0}
!16 = !{!"TYPE_24__", !7, i64 0, !12, i64 8}
!17 = !{!18, !20, i64 0}
!18 = !{!"TYPE_22__", !19, i64 0}
!19 = !{!"TYPE_21__", !20, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = !{!20, !20, i64 0}
!22 = !{!15, !7, i64 0}
!23 = !{!12, !12, i64 0}
!24 = !{!25, !20, i64 0}
!25 = !{!"TYPE_27__", !26, i64 0}
!26 = !{!"TYPE_23__", !20, i64 0}
!27 = !{!11, !12, i64 0}
| reactos_drivers_bus_acpi_acpica_dispatcher_extr_dsutils.c_AcpiDsEvaluateNamePath |
; ModuleID = 'AnghaBench/exploitdb/exploits/linux/remote/extr_22454.c_make_shellcode.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/remote/extr_22454.c_make_shellcode.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@sc = dso_local local_unnamed_addr global i64 0, align 8
@BUF_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@shellcode = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"XX\00", align 1
@root_shell_port = dso_local local_unnamed_addr global i32 0, align 4
@RET_ADDR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @make_shellcode(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i64, ptr @sc, align 8, !tbaa !5
%3 = load i32, ptr @BUF_SIZE, align 4, !tbaa !9
%4 = tail call i32 @memset(i64 noundef %2, i32 noundef 144, i32 noundef %3) #2
%5 = load i64, ptr @sc, align 8, !tbaa !5
%6 = load i32, ptr @BUF_SIZE, align 4, !tbaa !9
%7 = sext i32 %6 to i64
%8 = add nsw i64 %5, %7
%9 = load i32, ptr @shellcode, align 4, !tbaa !9
%10 = tail call i64 @strlen(i32 noundef %9) #2
%11 = xor i64 %10, -1
%12 = add i64 %8, %11
%13 = load i32, ptr @shellcode, align 4, !tbaa !9
%14 = tail call i64 @strlen(i32 noundef %13) #2
%15 = tail call i32 @memcpy(i64 noundef %12, i32 noundef %13, i64 noundef %14) #2
%16 = load i64, ptr @sc, align 8, !tbaa !5
%17 = tail call ptr @strstr(i64 noundef %16, ptr noundef nonnull @.str) #2
%18 = load i32, ptr @root_shell_port, align 4, !tbaa !9
%19 = tail call i32 @htons(i32 noundef %18) #2
%20 = trunc i32 %19 to i8
%21 = getelementptr inbounds i8, ptr %17, i64 1
store i8 %20, ptr %17, align 1, !tbaa !11
%22 = load i32, ptr @root_shell_port, align 4, !tbaa !9
%23 = tail call i32 @htons(i32 noundef %22) #2
%24 = lshr i32 %23, 8
%25 = trunc i32 %24 to i8
store i8 %25, ptr %21, align 1, !tbaa !11
%26 = load i64, ptr @sc, align 8, !tbaa !5
%27 = inttoptr i64 %26 to ptr
%28 = load i32, ptr @BUF_SIZE, align 4, !tbaa !9
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = icmp sgt i32 %28, 4
br i1 %31, label %32, label %69
32: ; preds = %1, %63
%33 = phi i32 [ %65, %63 ], [ 0, %1 ]
%34 = phi ptr [ %64, %63 ], [ %30, %1 ]
switch i32 %0, label %63 [
i32 0, label %35
i32 1, label %44
]
35: ; preds = %32
%36 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
%37 = trunc i32 %36 to i8
%38 = getelementptr inbounds i8, ptr %34, i64 1
store i8 %37, ptr %34, align 1, !tbaa !11
%39 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
%40 = lshr i32 %39, 8
%41 = trunc i32 %40 to i8
store i8 %41, ptr %38, align 1, !tbaa !11
%42 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
%43 = lshr i32 %42, 16
br label %53
44: ; preds = %32
%45 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
%46 = lshr i32 %45, 16
%47 = trunc i32 %46 to i8
%48 = getelementptr inbounds i8, ptr %34, i64 1
store i8 %47, ptr %34, align 1, !tbaa !11
%49 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
%50 = lshr i32 %49, 24
%51 = trunc i32 %50 to i8
store i8 %51, ptr %48, align 1, !tbaa !11
%52 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
br label %53
53: ; preds = %44, %35
%54 = phi i32 [ %43, %35 ], [ %52, %44 ]
%55 = phi i32 [ 24, %35 ], [ 8, %44 ]
%56 = getelementptr inbounds i8, ptr %34, i64 2
%57 = trunc i32 %54 to i8
%58 = getelementptr inbounds i8, ptr %34, i64 3
store i8 %57, ptr %56, align 1, !tbaa !11
%59 = load i32, ptr @RET_ADDR, align 4, !tbaa !9
%60 = lshr i32 %59, %55
%61 = trunc i32 %60 to i8
%62 = getelementptr inbounds i8, ptr %34, i64 4
store i8 %61, ptr %58, align 1, !tbaa !11
br label %63
63: ; preds = %53, %32
%64 = phi ptr [ %34, %32 ], [ %62, %53 ]
%65 = add nuw nsw i32 %33, 4
%66 = load i32, ptr @BUF_SIZE, align 4, !tbaa !9
%67 = add nsw i32 %66, -4
%68 = icmp slt i32 %65, %67
br i1 %68, label %32, label %69, !llvm.loop !12
69: ; preds = %63, %1
%70 = phi ptr [ %30, %1 ], [ %64, %63 ]
store i8 0, ptr %70, align 1, !tbaa !11
ret void
}
declare i32 @memset(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i64 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @strlen(i32 noundef) local_unnamed_addr #1
declare ptr @strstr(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @htons(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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/linux/remote/extr_22454.c_make_shellcode.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/remote/extr_22454.c_make_shellcode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@sc = common local_unnamed_addr global i64 0, align 8
@BUF_SIZE = common local_unnamed_addr global i32 0, align 4
@shellcode = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"XX\00", align 1
@root_shell_port = common local_unnamed_addr global i32 0, align 4
@RET_ADDR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @make_shellcode(i32 noundef %0) local_unnamed_addr #0 {
%2 = load i64, ptr @sc, align 8, !tbaa !6
%3 = load i32, ptr @BUF_SIZE, align 4, !tbaa !10
%4 = tail call i32 @memset(i64 noundef %2, i32 noundef 144, i32 noundef %3) #2
%5 = load i64, ptr @sc, align 8, !tbaa !6
%6 = load i32, ptr @BUF_SIZE, align 4, !tbaa !10
%7 = sext i32 %6 to i64
%8 = add nsw i64 %5, %7
%9 = load i32, ptr @shellcode, align 4, !tbaa !10
%10 = tail call i64 @strlen(i32 noundef %9) #2
%11 = xor i64 %10, -1
%12 = add i64 %8, %11
%13 = load i32, ptr @shellcode, align 4, !tbaa !10
%14 = tail call i64 @strlen(i32 noundef %13) #2
%15 = tail call i32 @memcpy(i64 noundef %12, i32 noundef %13, i64 noundef %14) #2
%16 = load i64, ptr @sc, align 8, !tbaa !6
%17 = tail call ptr @strstr(i64 noundef %16, ptr noundef nonnull @.str) #2
%18 = load i32, ptr @root_shell_port, align 4, !tbaa !10
%19 = tail call i32 @htons(i32 noundef %18) #2
%20 = trunc i32 %19 to i8
%21 = getelementptr inbounds i8, ptr %17, i64 1
store i8 %20, ptr %17, align 1, !tbaa !12
%22 = load i32, ptr @root_shell_port, align 4, !tbaa !10
%23 = tail call i32 @htons(i32 noundef %22) #2
%24 = lshr i32 %23, 8
%25 = trunc i32 %24 to i8
store i8 %25, ptr %21, align 1, !tbaa !12
%26 = load i64, ptr @sc, align 8, !tbaa !6
%27 = inttoptr i64 %26 to ptr
%28 = load i32, ptr @BUF_SIZE, align 4, !tbaa !10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = icmp sgt i32 %28, 4
br i1 %31, label %32, label %69
32: ; preds = %1, %63
%33 = phi i32 [ %65, %63 ], [ 0, %1 ]
%34 = phi ptr [ %64, %63 ], [ %30, %1 ]
switch i32 %0, label %63 [
i32 0, label %35
i32 1, label %44
]
35: ; preds = %32
%36 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
%37 = trunc i32 %36 to i8
%38 = getelementptr inbounds i8, ptr %34, i64 1
store i8 %37, ptr %34, align 1, !tbaa !12
%39 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
%40 = lshr i32 %39, 8
%41 = trunc i32 %40 to i8
store i8 %41, ptr %38, align 1, !tbaa !12
%42 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
%43 = lshr i32 %42, 16
br label %53
44: ; preds = %32
%45 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
%46 = lshr i32 %45, 16
%47 = trunc i32 %46 to i8
%48 = getelementptr inbounds i8, ptr %34, i64 1
store i8 %47, ptr %34, align 1, !tbaa !12
%49 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
%50 = lshr i32 %49, 24
%51 = trunc nuw i32 %50 to i8
store i8 %51, ptr %48, align 1, !tbaa !12
%52 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
br label %53
53: ; preds = %44, %35
%54 = phi i32 [ %43, %35 ], [ %52, %44 ]
%55 = phi i32 [ 24, %35 ], [ 8, %44 ]
%56 = getelementptr inbounds i8, ptr %34, i64 2
%57 = trunc i32 %54 to i8
%58 = getelementptr inbounds i8, ptr %34, i64 3
store i8 %57, ptr %56, align 1, !tbaa !12
%59 = load i32, ptr @RET_ADDR, align 4, !tbaa !10
%60 = lshr i32 %59, %55
%61 = trunc i32 %60 to i8
%62 = getelementptr inbounds i8, ptr %34, i64 4
store i8 %61, ptr %58, align 1, !tbaa !12
br label %63
63: ; preds = %53, %32
%64 = phi ptr [ %34, %32 ], [ %62, %53 ]
%65 = add nuw nsw i32 %33, 4
%66 = load i32, ptr @BUF_SIZE, align 4, !tbaa !10
%67 = add nsw i32 %66, -4
%68 = icmp slt i32 %65, %67
br i1 %68, label %32, label %69, !llvm.loop !13
69: ; preds = %63, %1
%70 = phi ptr [ %30, %1 ], [ %64, %63 ]
store i8 0, ptr %70, align 1, !tbaa !12
ret void
}
declare i32 @memset(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i64 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @strlen(i32 noundef) local_unnamed_addr #1
declare ptr @strstr(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @htons(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 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| exploitdb_exploits_linux_remote_extr_22454.c_make_shellcode |
; ModuleID = 'AnghaBench/fastsocket/kernel/block/extr_blk-throttle.c_throtl_schedule_delayed_work.c'
source_filename = "AnghaBench/fastsocket/kernel/block/extr_blk-throttle.c_throtl_schedule_delayed_work.c"
target datalayout = "e-m:e-p270:32:32-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.throtl_data = type { i64, %struct.delayed_work }
%struct.delayed_work = type { i32 }
@kthrotld_workqueue = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"schedule work. delay=%lu jiffies=%lu\00", align 1
@jiffies = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @throtl_schedule_delayed_work], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @throtl_schedule_delayed_work(ptr noundef %0, i64 noundef %1) #0 {
%3 = getelementptr inbounds %struct.throtl_data, ptr %0, i64 0, i32 1
%4 = tail call i64 @total_nr_queued(ptr noundef %0) #2
%5 = icmp sgt i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i64, ptr %0, align 8, !tbaa !5
%8 = icmp eq i64 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %6, %2
%10 = tail call i32 @__cancel_delayed_work(ptr noundef nonnull %3) #2
%11 = load i32, ptr @kthrotld_workqueue, align 4, !tbaa !12
%12 = tail call i32 @queue_delayed_work(i32 noundef %11, ptr noundef nonnull %3, i64 noundef %1) #2
%13 = load i32, ptr @jiffies, align 4, !tbaa !12
%14 = tail call i32 @throtl_log(ptr noundef %0, ptr noundef nonnull @.str, i64 noundef %1, i32 noundef %13) #2
br label %15
15: ; preds = %9, %6
ret void
}
declare i64 @total_nr_queued(ptr noundef) local_unnamed_addr #1
declare i32 @__cancel_delayed_work(ptr noundef) local_unnamed_addr #1
declare i32 @queue_delayed_work(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @throtl_log(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"throtl_data", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"delayed_work", !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/block/extr_blk-throttle.c_throtl_schedule_delayed_work.c'
source_filename = "AnghaBench/fastsocket/kernel/block/extr_blk-throttle.c_throtl_schedule_delayed_work.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@kthrotld_workqueue = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"schedule work. delay=%lu jiffies=%lu\00", align 1
@jiffies = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @throtl_schedule_delayed_work], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @throtl_schedule_delayed_work(ptr noundef %0, i64 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = tail call i64 @total_nr_queued(ptr noundef %0) #2
%5 = icmp sgt i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i64, ptr %0, align 8, !tbaa !6
%8 = icmp eq i64 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %6, %2
%10 = tail call i32 @__cancel_delayed_work(ptr noundef nonnull %3) #2
%11 = load i32, ptr @kthrotld_workqueue, align 4, !tbaa !13
%12 = tail call i32 @queue_delayed_work(i32 noundef %11, ptr noundef nonnull %3, i64 noundef %1) #2
%13 = load i32, ptr @jiffies, align 4, !tbaa !13
%14 = tail call i32 @throtl_log(ptr noundef %0, ptr noundef nonnull @.str, i64 noundef %1, i32 noundef %13) #2
br label %15
15: ; preds = %9, %6
ret void
}
declare i64 @total_nr_queued(ptr noundef) local_unnamed_addr #1
declare i32 @__cancel_delayed_work(ptr noundef) local_unnamed_addr #1
declare i32 @queue_delayed_work(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @throtl_log(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"throtl_data", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"delayed_work", !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!12, !12, i64 0}
| fastsocket_kernel_block_extr_blk-throttle.c_throtl_schedule_delayed_work |
; ModuleID = 'AnghaBench/radare2/shlr/sdb/src/extr_json..types.h_ut32_pack_big.c'
source_filename = "AnghaBench/radare2/shlr/sdb/src/extr_json..types.h_ut32_pack_big.c"
target datalayout = "e-m:e-p270:32:32-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 @ut32_pack_big], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @ut32_pack_big(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = trunc i32 %1 to i8
%4 = getelementptr inbounds i8, ptr %0, i64 3
store i8 %3, ptr %4, align 1, !tbaa !5
%5 = lshr i32 %1, 8
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds i8, ptr %0, i64 2
store i8 %6, ptr %7, align 1, !tbaa !5
%8 = lshr i32 %1, 16
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, ptr %0, i64 1
store i8 %9, ptr %10, align 1, !tbaa !5
%11 = lshr i32 %1, 24
%12 = trunc i32 %11 to i8
store i8 %12, ptr %0, align 1, !tbaa !5
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/radare2/shlr/sdb/src/extr_json..types.h_ut32_pack_big.c'
source_filename = "AnghaBench/radare2/shlr/sdb/src/extr_json..types.h_ut32_pack_big.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 @ut32_pack_big], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @ut32_pack_big(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = trunc i32 %1 to i8
%4 = getelementptr inbounds i8, ptr %0, i64 3
store i8 %3, ptr %4, align 1, !tbaa !6
%5 = lshr i32 %1, 8
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds i8, ptr %0, i64 2
store i8 %6, ptr %7, align 1, !tbaa !6
%8 = lshr i32 %1, 16
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, ptr %0, i64 1
store i8 %9, ptr %10, align 1, !tbaa !6
%11 = lshr i32 %1, 24
%12 = trunc nuw i32 %11 to i8
store i8 %12, ptr %0, align 1, !tbaa !6
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| radare2_shlr_sdb_src_extr_json..types.h_ut32_pack_big |
; ModuleID = 'AnghaBench/esp-idf/components/perfmon/extr_xtensa_perfmon_apis.c_xtensa_perfmon_view_cb.c'
source_filename = "AnghaBench/esp-idf/components/perfmon/extr_xtensa_perfmon_apis.c_xtensa_perfmon_view_cb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i32, ptr }
%struct.TYPE_4__ = type { i32, i32, ptr }
@stdout = dso_local local_unnamed_addr global ptr null, align 8
@xtensa_perfmon_select_table = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [46 x i8] c"Value = %9i, select = %2i, mask = %04x. %s.\0A\00", align 1
@xtensa_perfmon_masks_table = dso_local local_unnamed_addr global ptr null, align 8
@.str.1 = private unnamed_addr constant [22 x i8] c" %s\0A\00", align 1
; Function Attrs: nofree nounwind uwtable
define dso_local void @xtensa_perfmon_view_cb(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = icmp eq ptr %0, null
%6 = load ptr, ptr @stdout, align 8
%7 = select i1 %5, ptr %6, ptr %0
%8 = load ptr, ptr @xtensa_perfmon_select_table, align 8, !tbaa !5
%9 = load i32, ptr %8, align 8, !tbaa !9
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %15
11: ; preds = %25, %4
%12 = load ptr, ptr @xtensa_perfmon_masks_table, align 8, !tbaa !5
%13 = load i32, ptr %12, align 8, !tbaa !12
%14 = icmp eq i32 %13, -1
br i1 %14, label %31, label %32
15: ; preds = %4, %25
%16 = phi ptr [ %26, %25 ], [ %8, %4 ]
%17 = phi i64 [ %27, %25 ], [ 0, %4 ]
%18 = phi i32 [ %29, %25 ], [ %9, %4 ]
%19 = icmp eq i32 %18, %1
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = getelementptr inbounds %struct.TYPE_3__, ptr %16, i64 %17, i32 1
%22 = load ptr, ptr %21, align 8, !tbaa !14
%23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str, i32 noundef %3, i32 noundef %1, i32 noundef %2, ptr noundef %22)
%24 = load ptr, ptr @xtensa_perfmon_select_table, align 8, !tbaa !5
br label %25
25: ; preds = %15, %20
%26 = phi ptr [ %16, %15 ], [ %24, %20 ]
%27 = add nuw i64 %17, 1
%28 = getelementptr inbounds %struct.TYPE_3__, ptr %26, i64 %27
%29 = load i32, ptr %28, align 8, !tbaa !9
%30 = icmp eq i32 %29, -1
br i1 %30, label %11, label %15, !llvm.loop !15
31: ; preds = %47, %11
ret void
32: ; preds = %11, %47
%33 = phi ptr [ %48, %47 ], [ %12, %11 ]
%34 = phi i64 [ %49, %47 ], [ 0, %11 ]
%35 = phi i32 [ %51, %47 ], [ %13, %11 ]
%36 = icmp eq i32 %35, %1
br i1 %36, label %37, label %47
37: ; preds = %32
%38 = getelementptr inbounds %struct.TYPE_4__, ptr %33, i64 %34, i32 1
%39 = load i32, ptr %38, align 4, !tbaa !17
%40 = and i32 %39, %2
%41 = icmp eq i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = getelementptr inbounds %struct.TYPE_4__, ptr %33, i64 %34, i32 2
%44 = load ptr, ptr %43, align 8, !tbaa !18
%45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.1, ptr noundef %44)
%46 = load ptr, ptr @xtensa_perfmon_masks_table, align 8, !tbaa !5
br label %47
47: ; preds = %32, %37, %42
%48 = phi ptr [ %33, %32 ], [ %33, %37 ], [ %46, %42 ]
%49 = add nuw i64 %34, 1
%50 = getelementptr inbounds %struct.TYPE_4__, ptr %48, i64 %49
%51 = load i32, ptr %50, align 8, !tbaa !12
%52 = icmp eq i32 %51, -1
br i1 %52, label %31, label %32, !llvm.loop !19
}
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1
attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_4__", !11, i64 0, !11, i64 4, !6, i64 8}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!13, !11, i64 4}
!18 = !{!13, !6, i64 8}
!19 = distinct !{!19, !16}
| ; ModuleID = 'AnghaBench/esp-idf/components/perfmon/extr_xtensa_perfmon_apis.c_xtensa_perfmon_view_cb.c'
source_filename = "AnghaBench/esp-idf/components/perfmon/extr_xtensa_perfmon_apis.c_xtensa_perfmon_view_cb.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { i32, ptr }
%struct.TYPE_4__ = type { i32, i32, ptr }
@stdout = common local_unnamed_addr global ptr null, align 8
@xtensa_perfmon_select_table = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [46 x i8] c"Value = %9i, select = %2i, mask = %04x. %s.\0A\00", align 1
@xtensa_perfmon_masks_table = common local_unnamed_addr global ptr null, align 8
@.str.1 = private unnamed_addr constant [22 x i8] c" %s\0A\00", align 1
; Function Attrs: nofree nounwind ssp uwtable(sync)
define void @xtensa_perfmon_view_cb(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = icmp eq ptr %0, null
%6 = load ptr, ptr @stdout, align 8
%7 = select i1 %5, ptr %6, ptr %0
%8 = load ptr, ptr @xtensa_perfmon_select_table, align 8, !tbaa !6
%9 = load i32, ptr %8, align 8, !tbaa !10
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %15
11: ; preds = %26, %4
%12 = load ptr, ptr @xtensa_perfmon_masks_table, align 8, !tbaa !6
%13 = load i32, ptr %12, align 8, !tbaa !13
%14 = icmp eq i32 %13, -1
br i1 %14, label %32, label %33
15: ; preds = %4, %26
%16 = phi ptr [ %27, %26 ], [ %8, %4 ]
%17 = phi i64 [ %28, %26 ], [ 0, %4 ]
%18 = phi i32 [ %30, %26 ], [ %9, %4 ]
%19 = phi ptr [ %29, %26 ], [ %8, %4 ]
%20 = icmp eq i32 %18, %1
br i1 %20, label %21, label %26
21: ; preds = %15
%22 = getelementptr inbounds i8, ptr %19, i64 8
%23 = load ptr, ptr %22, align 8, !tbaa !15
%24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str, i32 noundef %3, i32 noundef %1, i32 noundef %2, ptr noundef %23)
%25 = load ptr, ptr @xtensa_perfmon_select_table, align 8, !tbaa !6
br label %26
26: ; preds = %15, %21
%27 = phi ptr [ %16, %15 ], [ %25, %21 ]
%28 = add nuw nsw i64 %17, 1
%29 = getelementptr inbounds %struct.TYPE_3__, ptr %27, i64 %28
%30 = load i32, ptr %29, align 8, !tbaa !10
%31 = icmp eq i32 %30, -1
br i1 %31, label %11, label %15, !llvm.loop !16
32: ; preds = %49, %11
ret void
33: ; preds = %11, %49
%34 = phi ptr [ %50, %49 ], [ %12, %11 ]
%35 = phi i64 [ %51, %49 ], [ 0, %11 ]
%36 = phi i32 [ %53, %49 ], [ %13, %11 ]
%37 = phi ptr [ %52, %49 ], [ %12, %11 ]
%38 = icmp eq i32 %36, %1
br i1 %38, label %39, label %49
39: ; preds = %33
%40 = getelementptr inbounds i8, ptr %37, i64 4
%41 = load i32, ptr %40, align 4, !tbaa !18
%42 = and i32 %41, %2
%43 = icmp eq i32 %42, 0
br i1 %43, label %49, label %44
44: ; preds = %39
%45 = getelementptr inbounds i8, ptr %37, i64 8
%46 = load ptr, ptr %45, align 8, !tbaa !19
%47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.1, ptr noundef %46)
%48 = load ptr, ptr @xtensa_perfmon_masks_table, align 8, !tbaa !6
br label %49
49: ; preds = %33, %39, %44
%50 = phi ptr [ %34, %33 ], [ %34, %39 ], [ %48, %44 ]
%51 = add nuw nsw i64 %35, 1
%52 = getelementptr inbounds %struct.TYPE_4__, ptr %50, i64 %51
%53 = load i32, ptr %52, align 8, !tbaa !13
%54 = icmp eq i32 %53, -1
br i1 %54, label %32, label %33, !llvm.loop !20
}
; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1
attributes #0 = { nofree nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_4__", !12, i64 0, !12, i64 4, !7, i64 8}
!15 = !{!11, !7, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!14, !12, i64 4}
!19 = !{!14, !7, i64 8}
!20 = distinct !{!20, !17}
| esp-idf_components_perfmon_extr_xtensa_perfmon_apis.c_xtensa_perfmon_view_cb |
; ModuleID = 'AnghaBench/h2o/t/00prop/extr_prop.c_prop_inserted_timer_should_not_run_before_expiry.c'
source_filename = "AnghaBench/h2o/t/00prop/extr_prop.c_prop_inserted_timer_should_not_run_before_expiry.c"
target datalayout = "e-m:e-p270:32:32-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.test_timer = type { i64, i32 }
%struct.test_input = type { i32, i32, i32 }
@timer_cb = dso_local local_unnamed_addr global i32 0, align 4
@THEFT_TRIAL_FAIL = dso_local local_unnamed_addr global i32 0, align 4
@UINT64_MAX = dso_local local_unnamed_addr global i64 0, align 8
@THEFT_TRIAL_PASS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @prop_inserted_timer_should_not_run_before_expiry], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @prop_inserted_timer_should_not_run_before_expiry(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = alloca %struct.test_timer, align 8
%4 = getelementptr inbounds %struct.test_input, ptr %1, i64 0, i32 2
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = tail call ptr @h2o_timerwheel_create(i32 noundef 6, i32 noundef %5) #3
%7 = load i32, ptr %4, align 4, !tbaa !5
%8 = tail call i64 @h2o_timerwheel_run(ptr noundef %6, i32 noundef %7) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%9 = getelementptr inbounds %struct.test_timer, ptr %3, i64 0, i32 1
%10 = load i32, ptr @timer_cb, align 4, !tbaa !10
%11 = call i32 @h2o_timerwheel_init_entry(ptr noundef nonnull %9, i32 noundef %10) #3
store i64 0, ptr %3, align 8, !tbaa !11
%12 = getelementptr inbounds %struct.test_input, ptr %1, i64 0, i32 1
%13 = load i32, ptr %12, align 4, !tbaa !14
%14 = call i32 @h2o_timerwheel_link_abs(ptr noundef %6, ptr noundef nonnull %9, i32 noundef %13) #3
%15 = load i32, ptr %1, align 4, !tbaa !15
%16 = call i64 @h2o_timerwheel_run(ptr noundef %6, i32 noundef %15) #3
%17 = icmp eq i64 %16, 0
%18 = load i64, ptr %3, align 8
%19 = icmp eq i64 %18, 0
%20 = select i1 %17, i1 %19, i1 false
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = call i64 @h2o_timerwheel_get_wake_at(ptr noundef %6) #3
%23 = load i64, ptr @UINT64_MAX, align 8, !tbaa !16
%24 = icmp eq i64 %22, %23
br i1 %24, label %27, label %25
25: ; preds = %21
%26 = call i32 @h2o_timerwheel_destroy(ptr noundef %6) #3
br label %27
27: ; preds = %21, %2, %25
%28 = phi ptr [ @THEFT_TRIAL_PASS, %25 ], [ @THEFT_TRIAL_FAIL, %2 ], [ @THEFT_TRIAL_FAIL, %21 ]
%29 = load i32, ptr %28, align 4, !tbaa !10
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @h2o_timerwheel_create(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @h2o_timerwheel_run(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @h2o_timerwheel_init_entry(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @h2o_timerwheel_link_abs(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @h2o_timerwheel_get_wake_at(ptr noundef) local_unnamed_addr #2
declare i32 @h2o_timerwheel_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 8}
!6 = !{!"test_input", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"test_timer", !13, i64 0, !7, i64 8}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 4}
!15 = !{!6, !7, i64 0}
!16 = !{!13, !13, i64 0}
| ; ModuleID = 'AnghaBench/h2o/t/00prop/extr_prop.c_prop_inserted_timer_should_not_run_before_expiry.c'
source_filename = "AnghaBench/h2o/t/00prop/extr_prop.c_prop_inserted_timer_should_not_run_before_expiry.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.test_timer = type { i64, i32 }
@timer_cb = common local_unnamed_addr global i32 0, align 4
@THEFT_TRIAL_FAIL = common local_unnamed_addr global i32 0, align 4
@UINT64_MAX = common local_unnamed_addr global i64 0, align 8
@THEFT_TRIAL_PASS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @prop_inserted_timer_should_not_run_before_expiry], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @prop_inserted_timer_should_not_run_before_expiry(ptr nocapture readnone %0, ptr nocapture noundef readonly %1) #0 {
%3 = alloca %struct.test_timer, align 8
%4 = getelementptr inbounds i8, ptr %1, i64 8
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = tail call ptr @h2o_timerwheel_create(i32 noundef 6, i32 noundef %5) #3
%7 = load i32, ptr %4, align 4, !tbaa !6
%8 = tail call i64 @h2o_timerwheel_run(ptr noundef %6, i32 noundef %7) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
%9 = getelementptr inbounds i8, ptr %3, i64 8
%10 = load i32, ptr @timer_cb, align 4, !tbaa !11
%11 = call i32 @h2o_timerwheel_init_entry(ptr noundef nonnull %9, i32 noundef %10) #3
store i64 0, ptr %3, align 8, !tbaa !12
%12 = getelementptr inbounds i8, ptr %1, i64 4
%13 = load i32, ptr %12, align 4, !tbaa !15
%14 = call i32 @h2o_timerwheel_link_abs(ptr noundef %6, ptr noundef nonnull %9, i32 noundef %13) #3
%15 = load i32, ptr %1, align 4, !tbaa !16
%16 = call i64 @h2o_timerwheel_run(ptr noundef %6, i32 noundef %15) #3
%17 = icmp eq i64 %16, 0
%18 = load i64, ptr %3, align 8
%19 = icmp eq i64 %18, 0
%20 = select i1 %17, i1 %19, i1 false
br i1 %20, label %21, label %27
21: ; preds = %2
%22 = call i64 @h2o_timerwheel_get_wake_at(ptr noundef %6) #3
%23 = load i64, ptr @UINT64_MAX, align 8, !tbaa !17
%24 = icmp eq i64 %22, %23
br i1 %24, label %27, label %25
25: ; preds = %21
%26 = call i32 @h2o_timerwheel_destroy(ptr noundef %6) #3
br label %27
27: ; preds = %21, %2, %25
%28 = phi ptr [ @THEFT_TRIAL_PASS, %25 ], [ @THEFT_TRIAL_FAIL, %2 ], [ @THEFT_TRIAL_FAIL, %21 ]
%29 = load i32, ptr %28, align 4, !tbaa !11
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @h2o_timerwheel_create(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @h2o_timerwheel_run(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @h2o_timerwheel_init_entry(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @h2o_timerwheel_link_abs(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @h2o_timerwheel_get_wake_at(ptr noundef) local_unnamed_addr #2
declare i32 @h2o_timerwheel_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 8}
!7 = !{!"test_input", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"test_timer", !14, i64 0, !8, i64 8}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !8, i64 4}
!16 = !{!7, !8, i64 0}
!17 = !{!14, !14, i64 0}
| h2o_t_00prop_extr_prop.c_prop_inserted_timer_should_not_run_before_expiry |
; ModuleID = 'AnghaBench/linux/arch/x86/kernel/apic/extr_io_apic.c_disable_ioapic_support.c'
source_filename = "AnghaBench/linux/arch/x86/kernel/apic/extr_io_apic.c_disable_ioapic_support.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@skip_ioapic_setup = dso_local local_unnamed_addr global i32 0, align 4
@noioapicquirk = dso_local local_unnamed_addr global i32 0, align 4
@noioapicreroute = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @disable_ioapic_support() local_unnamed_addr #0 {
store i32 1, ptr @skip_ioapic_setup, align 4, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/arch/x86/kernel/apic/extr_io_apic.c_disable_ioapic_support.c'
source_filename = "AnghaBench/linux/arch/x86/kernel/apic/extr_io_apic.c_disable_ioapic_support.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@skip_ioapic_setup = common local_unnamed_addr global i32 0, align 4
@noioapicquirk = common local_unnamed_addr global i32 0, align 4
@noioapicreroute = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync)
define void @disable_ioapic_support() local_unnamed_addr #0 {
store i32 1, ptr @skip_ioapic_setup, align 4, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(write, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_arch_x86_kernel_apic_extr_io_apic.c_disable_ioapic_support |
; ModuleID = 'AnghaBench/linux/arch/mips/emma/markeins/extr_irq.c_emma2rh_irq_init.c'
source_filename = "AnghaBench/linux/arch/mips/emma/markeins/extr_irq.c_emma2rh_irq_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"
@NUM_EMMA2RH_IRQ = dso_local local_unnamed_addr global i64 0, align 8
@EMMA2RH_IRQ_BASE = dso_local local_unnamed_addr global i64 0, align 8
@emma2rh_irq_controller = dso_local global i32 0, align 4
@handle_level_irq = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"level\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @emma2rh_irq_init() local_unnamed_addr #0 {
%1 = load i64, ptr @NUM_EMMA2RH_IRQ, align 8, !tbaa !5
%2 = icmp sgt i64 %1, 0
br i1 %2, label %3, label %12
3: ; preds = %0, %3
%4 = phi i64 [ %9, %3 ], [ 0, %0 ]
%5 = load i64, ptr @EMMA2RH_IRQ_BASE, align 8, !tbaa !5
%6 = add nsw i64 %5, %4
%7 = load i32, ptr @handle_level_irq, align 4, !tbaa !9
%8 = tail call i32 @irq_set_chip_and_handler_name(i64 noundef %6, ptr noundef nonnull @emma2rh_irq_controller, i32 noundef %7, ptr noundef nonnull @.str) #2
%9 = add nuw nsw i64 %4, 1
%10 = load i64, ptr @NUM_EMMA2RH_IRQ, align 8, !tbaa !5
%11 = icmp slt i64 %9, %10
br i1 %11, label %3, label %12, !llvm.loop !11
12: ; preds = %3, %0
ret void
}
declare i32 @irq_set_chip_and_handler_name(i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/arch/mips/emma/markeins/extr_irq.c_emma2rh_irq_init.c'
source_filename = "AnghaBench/linux/arch/mips/emma/markeins/extr_irq.c_emma2rh_irq_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NUM_EMMA2RH_IRQ = common local_unnamed_addr global i64 0, align 8
@EMMA2RH_IRQ_BASE = common local_unnamed_addr global i64 0, align 8
@emma2rh_irq_controller = common global i32 0, align 4
@handle_level_irq = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"level\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @emma2rh_irq_init() local_unnamed_addr #0 {
%1 = load i64, ptr @NUM_EMMA2RH_IRQ, align 8, !tbaa !6
%2 = icmp sgt i64 %1, 0
br i1 %2, label %3, label %12
3: ; preds = %0, %3
%4 = phi i64 [ %9, %3 ], [ 0, %0 ]
%5 = load i64, ptr @EMMA2RH_IRQ_BASE, align 8, !tbaa !6
%6 = add nsw i64 %5, %4
%7 = load i32, ptr @handle_level_irq, align 4, !tbaa !10
%8 = tail call i32 @irq_set_chip_and_handler_name(i64 noundef %6, ptr noundef nonnull @emma2rh_irq_controller, i32 noundef %7, ptr noundef nonnull @.str) #2
%9 = add nuw nsw i64 %4, 1
%10 = load i64, ptr @NUM_EMMA2RH_IRQ, align 8, !tbaa !6
%11 = icmp slt i64 %9, %10
br i1 %11, label %3, label %12, !llvm.loop !12
12: ; preds = %3, %0
ret void
}
declare i32 @irq_set_chip_and_handler_name(i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| linux_arch_mips_emma_markeins_extr_irq.c_emma2rh_irq_init |
; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/utils/extr_xml_libxml2.c_xml_node_deinit_ctx.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/utils/extr_xml_libxml2.c_xml_node_deinit_ctx.c"
target datalayout = "e-m:e-p270:32:32-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 @xml_node_deinit_ctx(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 (...) @xmlSchemaCleanupTypes() #2
%3 = tail call i32 (...) @xmlCleanupParser() #2
%4 = tail call i32 (...) @xmlMemoryDump() #2
%5 = tail call i32 @os_free(ptr noundef %0) #2
ret void
}
declare i32 @xmlSchemaCleanupTypes(...) local_unnamed_addr #1
declare i32 @xmlCleanupParser(...) local_unnamed_addr #1
declare i32 @xmlMemoryDump(...) local_unnamed_addr #1
declare i32 @os_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/wpa/src/utils/extr_xml_libxml2.c_xml_node_deinit_ctx.c'
source_filename = "AnghaBench/freebsd/contrib/wpa/src/utils/extr_xml_libxml2.c_xml_node_deinit_ctx.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 @xml_node_deinit_ctx(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @xmlSchemaCleanupTypes() #2
%3 = tail call i32 @xmlCleanupParser() #2
%4 = tail call i32 @xmlMemoryDump() #2
%5 = tail call i32 @os_free(ptr noundef %0) #2
ret void
}
declare i32 @xmlSchemaCleanupTypes(...) local_unnamed_addr #1
declare i32 @xmlCleanupParser(...) local_unnamed_addr #1
declare i32 @xmlMemoryDump(...) local_unnamed_addr #1
declare i32 @os_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| freebsd_contrib_wpa_src_utils_extr_xml_libxml2.c_xml_node_deinit_ctx |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_read_phy_reg.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_read_phy_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @igc_read_phy_reg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @igc_read_phy_reg(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 %4(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #1
br label %8
8: ; preds = %3, %6
%9 = phi i32 [ %7, %6 ], [ 0, %3 ]
ret i32 %9
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !9, i64 0}
!6 = !{!"igc_hw", !7, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0}
!8 = !{!"TYPE_3__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_read_phy_reg.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/igc/extr_igc.h_igc_read_phy_reg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @igc_read_phy_reg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @igc_read_phy_reg(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 %4(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #1
br label %8
8: ; preds = %3, %6
%9 = phi i32 [ %7, %6 ], [ 0, %3 ]
ret i32 %9
}
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !10, i64 0}
!7 = !{!"igc_hw", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0}
!9 = !{!"TYPE_3__", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_intel_igc_extr_igc.h_igc_read_phy_reg |
; ModuleID = 'AnghaBench/linux/drivers/clk/ingenic/extr_tcu.c_ingenic_tcu_disable.c'
source_filename = "AnghaBench/linux/drivers/clk/ingenic/extr_tcu.c_ingenic_tcu_disable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ingenic_tcu_clk = type { ptr, ptr }
@TCU_REG_TSSR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ingenic_tcu_disable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ingenic_tcu_disable(ptr noundef %0) #0 {
%2 = tail call ptr @to_tcu_clk(ptr noundef %0) #2
%3 = getelementptr inbounds %struct.ingenic_tcu_clk, ptr %2, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load ptr, ptr %2, align 8, !tbaa !10
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = load i32, ptr @TCU_REG_TSSR, align 4, !tbaa !14
%8 = load i32, ptr %4, align 4, !tbaa !15
%9 = tail call i32 @BIT(i32 noundef %8) #2
%10 = tail call i32 @regmap_write(i32 noundef %6, i32 noundef %7, i32 noundef %9) #2
ret void
}
declare ptr @to_tcu_clk(ptr noundef) local_unnamed_addr #1
declare i32 @regmap_write(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BIT(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"ingenic_tcu_clk", !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 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"ingenic_tcu", !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"ingenic_tcu_clk_info", !13, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/clk/ingenic/extr_tcu.c_ingenic_tcu_disable.c'
source_filename = "AnghaBench/linux/drivers/clk/ingenic/extr_tcu.c_ingenic_tcu_disable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@TCU_REG_TSSR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ingenic_tcu_disable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ingenic_tcu_disable(ptr noundef %0) #0 {
%2 = tail call ptr @to_tcu_clk(ptr noundef %0) #2
%3 = getelementptr inbounds i8, ptr %2, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load ptr, ptr %2, align 8, !tbaa !11
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = load i32, ptr @TCU_REG_TSSR, align 4, !tbaa !15
%8 = load i32, ptr %4, align 4, !tbaa !16
%9 = tail call i32 @BIT(i32 noundef %8) #2
%10 = tail call i32 @regmap_write(i32 noundef %6, i32 noundef %7, i32 noundef %9) #2
ret void
}
declare ptr @to_tcu_clk(ptr noundef) local_unnamed_addr #1
declare i32 @regmap_write(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @BIT(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"ingenic_tcu_clk", !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 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"ingenic_tcu", !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"ingenic_tcu_clk_info", !14, i64 0}
| linux_drivers_clk_ingenic_extr_tcu.c_ingenic_tcu_disable |
; ModuleID = 'AnghaBench/linux/fs/dlm/extr_lock.c_do_request.c'
source_filename = "AnghaBench/linux/fs/dlm/extr_lock.c_do_request.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINPROGRESS = dso_local local_unnamed_addr global i32 0, align 4
@DLM_LKSTS_WAITING = dso_local local_unnamed_addr global i32 0, align 4
@EAGAIN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @do_request], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @do_request(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i64 @can_be_granted(ptr noundef %0, ptr noundef %1, i32 noundef 1, i32 noundef 0, ptr noundef null) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @grant_lock(ptr noundef %0, ptr noundef %1) #2
%7 = tail call i32 @queue_cast(ptr noundef %0, ptr noundef %1, i32 noundef 0) #2
br label %21
8: ; preds = %2
%9 = tail call i64 @can_be_queued(ptr noundef %1) #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %8
%12 = load i32, ptr @EINPROGRESS, align 4, !tbaa !5
%13 = sub nsw i32 0, %12
%14 = load i32, ptr @DLM_LKSTS_WAITING, align 4, !tbaa !5
%15 = tail call i32 @add_lkb(ptr noundef %0, ptr noundef %1, i32 noundef %14) #2
%16 = tail call i32 @add_timeout(ptr noundef %1) #2
br label %21
17: ; preds = %8
%18 = load i32, ptr @EAGAIN, align 4, !tbaa !5
%19 = sub nsw i32 0, %18
%20 = tail call i32 @queue_cast(ptr noundef %0, ptr noundef %1, i32 noundef %19) #2
br label %21
21: ; preds = %17, %11, %5
%22 = phi i32 [ 0, %5 ], [ %13, %11 ], [ %19, %17 ]
ret i32 %22
}
declare i64 @can_be_granted(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @grant_lock(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @queue_cast(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @can_be_queued(ptr noundef) local_unnamed_addr #1
declare i32 @add_lkb(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @add_timeout(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/fs/dlm/extr_lock.c_do_request.c'
source_filename = "AnghaBench/linux/fs/dlm/extr_lock.c_do_request.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINPROGRESS = common local_unnamed_addr global i32 0, align 4
@DLM_LKSTS_WAITING = common local_unnamed_addr global i32 0, align 4
@EAGAIN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @do_request], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @do_request(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i64 @can_be_granted(ptr noundef %0, ptr noundef %1, i32 noundef 1, i32 noundef 0, ptr noundef null) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @grant_lock(ptr noundef %0, ptr noundef %1) #2
%7 = tail call i32 @queue_cast(ptr noundef %0, ptr noundef %1, i32 noundef 0) #2
br label %21
8: ; preds = %2
%9 = tail call i64 @can_be_queued(ptr noundef %1) #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %8
%12 = load i32, ptr @EINPROGRESS, align 4, !tbaa !6
%13 = sub nsw i32 0, %12
%14 = load i32, ptr @DLM_LKSTS_WAITING, align 4, !tbaa !6
%15 = tail call i32 @add_lkb(ptr noundef %0, ptr noundef %1, i32 noundef %14) #2
%16 = tail call i32 @add_timeout(ptr noundef %1) #2
br label %21
17: ; preds = %8
%18 = load i32, ptr @EAGAIN, align 4, !tbaa !6
%19 = sub nsw i32 0, %18
%20 = tail call i32 @queue_cast(ptr noundef %0, ptr noundef %1, i32 noundef %19) #2
br label %21
21: ; preds = %17, %11, %5
%22 = phi i32 [ 0, %5 ], [ %13, %11 ], [ %19, %17 ]
ret i32 %22
}
declare i64 @can_be_granted(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @grant_lock(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @queue_cast(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @can_be_queued(ptr noundef) local_unnamed_addr #1
declare i32 @add_lkb(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @add_timeout(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_fs_dlm_extr_lock.c_do_request |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.