IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/fastsocket/kernel/net/netrom/extr_nr_timer.c_nr_t4timer_expiry.c'
source_filename = "AnghaBench/fastsocket/kernel/net/netrom/extr_nr_timer.c_nr_t4timer_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"
@NR_COND_PEER_RX_BUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @nr_t4timer_expiry], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @nr_t4timer_expiry(i64 noundef %0) #0 {
%2 = inttoptr i64 %0 to ptr
%3 = tail call i32 @bh_lock_sock(ptr noundef %2) #2
%4 = load i32, ptr @NR_COND_PEER_RX_BUSY, align 4, !tbaa !5
%5 = xor i32 %4, -1
%6 = tail call ptr @nr_sk(ptr noundef %2) #2
%7 = load i32, ptr %6, align 4, !tbaa !9
%8 = and i32 %7, %5
store i32 %8, ptr %6, align 4, !tbaa !9
%9 = tail call i32 @bh_unlock_sock(ptr noundef %2) #2
ret void
}
declare i32 @bh_lock_sock(ptr noundef) local_unnamed_addr #1
declare ptr @nr_sk(ptr noundef) local_unnamed_addr #1
declare i32 @bh_unlock_sock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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/fastsocket/kernel/net/netrom/extr_nr_timer.c_nr_t4timer_expiry.c'
source_filename = "AnghaBench/fastsocket/kernel/net/netrom/extr_nr_timer.c_nr_t4timer_expiry.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NR_COND_PEER_RX_BUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @nr_t4timer_expiry], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @nr_t4timer_expiry(i64 noundef %0) #0 {
%2 = inttoptr i64 %0 to ptr
%3 = tail call i32 @bh_lock_sock(ptr noundef %2) #2
%4 = load i32, ptr @NR_COND_PEER_RX_BUSY, align 4, !tbaa !6
%5 = xor i32 %4, -1
%6 = tail call ptr @nr_sk(ptr noundef %2) #2
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = and i32 %7, %5
store i32 %8, ptr %6, align 4, !tbaa !10
%9 = tail call i32 @bh_unlock_sock(ptr noundef %2) #2
ret void
}
declare i32 @bh_lock_sock(ptr noundef) local_unnamed_addr #1
declare ptr @nr_sk(ptr noundef) local_unnamed_addr #1
declare i32 @bh_unlock_sock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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}
| fastsocket_kernel_net_netrom_extr_nr_timer.c_nr_t4timer_expiry |
; ModuleID = 'AnghaBench/darknet/examples/extr_classifier.c_gun_classifier.c'
source_filename = "AnghaBench/darknet/examples/extr_classifier.c_gun_classifier.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local void @gun_classifier(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2, i32 noundef %3, ptr nocapture noundef readnone %4) local_unnamed_addr #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/darknet/examples/extr_classifier.c_gun_classifier.c'
source_filename = "AnghaBench/darknet/examples/extr_classifier.c_gun_classifier.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define void @gun_classifier(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readnone %2, i32 noundef %3, ptr nocapture noundef readnone %4) local_unnamed_addr #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| darknet_examples_extr_classifier.c_gun_classifier |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/aspeed/extr_aspeed_gfx_drv.c_aspeed_gfx_irq_handler.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/aspeed/extr_aspeed_gfx_drv.c_aspeed_gfx_irq_handler.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.aspeed_gfx = type { i64, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@CRT_CTRL1 = dso_local local_unnamed_addr global i64 0, align 8
@CRT_CTRL_VERTICAL_INTR_STS = dso_local local_unnamed_addr global i32 0, align 4
@IRQ_HANDLED = dso_local local_unnamed_addr global i32 0, align 4
@IRQ_NONE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @aspeed_gfx_irq_handler], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @aspeed_gfx_irq_handler(i32 %0, ptr nocapture noundef readonly %1) #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !5
%4 = load i64, ptr %3, align 8, !tbaa !10
%5 = load i64, ptr @CRT_CTRL1, align 8, !tbaa !15
%6 = add nsw i64 %5, %4
%7 = tail call i32 @readl(i64 noundef %6) #2
%8 = load i32, ptr @CRT_CTRL_VERTICAL_INTR_STS, align 4, !tbaa !16
%9 = and i32 %8, %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %18, label %11
11: ; preds = %2
%12 = getelementptr inbounds %struct.aspeed_gfx, ptr %3, i64 0, i32 1
%13 = tail call i32 @drm_crtc_handle_vblank(ptr noundef nonnull %12) #2
%14 = load i64, ptr %3, align 8, !tbaa !10
%15 = load i64, ptr @CRT_CTRL1, align 8, !tbaa !15
%16 = add nsw i64 %15, %14
%17 = tail call i32 @writel(i32 noundef %7, i64 noundef %16) #2
br label %18
18: ; preds = %2, %11
%19 = phi ptr [ @IRQ_HANDLED, %11 ], [ @IRQ_NONE, %2 ]
%20 = load i32, ptr %19, align 4, !tbaa !16
ret i32 %20
}
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @drm_crtc_handle_vblank(ptr noundef) local_unnamed_addr #1
declare i32 @writel(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 = !{!"drm_device", !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 = !{!"aspeed_gfx", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/aspeed/extr_aspeed_gfx_drv.c_aspeed_gfx_irq_handler.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/aspeed/extr_aspeed_gfx_drv.c_aspeed_gfx_irq_handler.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CRT_CTRL1 = common local_unnamed_addr global i64 0, align 8
@CRT_CTRL_VERTICAL_INTR_STS = common local_unnamed_addr global i32 0, align 4
@IRQ_HANDLED = common local_unnamed_addr global i32 0, align 4
@IRQ_NONE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @aspeed_gfx_irq_handler], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @aspeed_gfx_irq_handler(i32 %0, ptr nocapture noundef readonly %1) #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !6
%4 = load i64, ptr %3, align 8, !tbaa !11
%5 = load i64, ptr @CRT_CTRL1, align 8, !tbaa !16
%6 = add nsw i64 %5, %4
%7 = tail call i32 @readl(i64 noundef %6) #2
%8 = load i32, ptr @CRT_CTRL_VERTICAL_INTR_STS, align 4, !tbaa !17
%9 = and i32 %8, %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %18, label %11
11: ; preds = %2
%12 = getelementptr inbounds i8, ptr %3, i64 8
%13 = tail call i32 @drm_crtc_handle_vblank(ptr noundef nonnull %12) #2
%14 = load i64, ptr %3, align 8, !tbaa !11
%15 = load i64, ptr @CRT_CTRL1, align 8, !tbaa !16
%16 = add nsw i64 %15, %14
%17 = tail call i32 @writel(i32 noundef %7, i64 noundef %16) #2
br label %18
18: ; preds = %2, %11
%19 = phi ptr [ @IRQ_HANDLED, %11 ], [ @IRQ_NONE, %2 ]
%20 = load i32, ptr %19, align 4, !tbaa !17
ret i32 %20
}
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @drm_crtc_handle_vblank(ptr noundef) local_unnamed_addr #1
declare i32 @writel(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 = !{!"drm_device", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"aspeed_gfx", !13, i64 0, !14, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"TYPE_2__", !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!15, !15, i64 0}
| linux_drivers_gpu_drm_aspeed_extr_aspeed_gfx_drv.c_aspeed_gfx_irq_handler |
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_ra_svn/extr_client.c_path_relative_to_root.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_ra_svn/extr_client.c_path_relative_to_root.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SVN_ERR_RA_ILLEGAL_URL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"'%s' isn't a child of repository root URL '%s'\00", align 1
@SVN_NO_ERROR = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @path_relative_to_root], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @path_relative_to_root(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = call i32 @ra_svn_get_repos_root(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %3) #3
%7 = call i32 @SVN_ERR(i32 noundef %6) #3
%8 = load ptr, ptr %5, align 8, !tbaa !5
%9 = call ptr @svn_uri_skip_ancestor(ptr noundef %8, ptr noundef %2, ptr noundef %3) #3
store ptr %9, ptr %1, align 8, !tbaa !5
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i32, ptr @SVN_ERR_RA_ILLEGAL_URL, align 4, !tbaa !9
%13 = call i32 @_(ptr noundef nonnull @.str) #3
%14 = load ptr, ptr %5, align 8, !tbaa !5
%15 = call ptr @svn_error_createf(i32 noundef %12, ptr noundef null, i32 noundef %13, ptr noundef %2, ptr noundef %14) #3
br label %18
16: ; preds = %4
%17 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !5
br label %18
18: ; preds = %16, %11
%19 = phi ptr [ %17, %16 ], [ %15, %11 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret ptr %19
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @ra_svn_get_repos_root(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_uri_skip_ancestor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_error_createf(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @_(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_ra_svn/extr_client.c_path_relative_to_root.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_ra_svn/extr_client.c_path_relative_to_root.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SVN_ERR_RA_ILLEGAL_URL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"'%s' isn't a child of repository root URL '%s'\00", align 1
@SVN_NO_ERROR = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @path_relative_to_root], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @path_relative_to_root(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = call i32 @ra_svn_get_repos_root(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %3) #3
%7 = call i32 @SVN_ERR(i32 noundef %6) #3
%8 = load ptr, ptr %5, align 8, !tbaa !6
%9 = call ptr @svn_uri_skip_ancestor(ptr noundef %8, ptr noundef %2, ptr noundef %3) #3
store ptr %9, ptr %1, align 8, !tbaa !6
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = load i32, ptr @SVN_ERR_RA_ILLEGAL_URL, align 4, !tbaa !10
%13 = call i32 @_(ptr noundef nonnull @.str) #3
%14 = load ptr, ptr %5, align 8, !tbaa !6
%15 = call ptr @svn_error_createf(i32 noundef %12, ptr noundef null, i32 noundef %13, ptr noundef %2, ptr noundef %14) #3
br label %18
16: ; preds = %4
%17 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !6
br label %18
18: ; preds = %16, %11
%19 = phi ptr [ %17, %16 ], [ %15, %11 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret ptr %19
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @SVN_ERR(i32 noundef) local_unnamed_addr #2
declare i32 @ra_svn_get_repos_root(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_uri_skip_ancestor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @svn_error_createf(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @_(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| freebsd_contrib_subversion_subversion_libsvn_ra_svn_extr_client.c_path_relative_to_root |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_mt9v011.c_calc_speed.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_mt9v011.c_calc_speed.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@R03_MT9V011_HEIGHT = dso_local local_unnamed_addr global i32 0, align 4
@R04_MT9V011_WIDTH = dso_local local_unnamed_addr global i32 0, align 4
@R05_MT9V011_HBLANK = dso_local local_unnamed_addr global i32 0, align 4
@R06_MT9V011_VBLANK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @calc_speed], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @calc_speed(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @to_mt9v011(ptr noundef %0) #3
%5 = icmp ne i32 %1, 0
%6 = icmp ne i32 %2, 0
%7 = and i1 %5, %6
br i1 %7, label %8, label %32
8: ; preds = %3
%9 = load i32, ptr @R03_MT9V011_HEIGHT, align 4, !tbaa !5
%10 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %9) #3
%11 = load i32, ptr @R04_MT9V011_WIDTH, align 4, !tbaa !5
%12 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %11) #3
%13 = load i32, ptr @R05_MT9V011_HBLANK, align 4, !tbaa !5
%14 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %13) #3
%15 = load i32, ptr @R06_MT9V011_VBLANK, align 4, !tbaa !5
%16 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %15) #3
%17 = add i32 %12, 113
%18 = add i32 %17, %14
%19 = add i32 %10, 1
%20 = add i32 %19, %16
%21 = load i32, ptr %4, align 4, !tbaa !9
%22 = mul nsw i32 %21, %1
%23 = sdiv i32 %2, 2
%24 = add nsw i32 %22, %23
%25 = tail call i32 @do_div(i32 noundef %24, i32 noundef %2) #3
%26 = mul i32 %20, %18
%27 = tail call i32 @do_div(i32 noundef %24, i32 noundef %26) #3
%28 = icmp slt i32 %24, 2
%29 = add nsw i32 %24, -2
%30 = tail call i32 @llvm.umin.i32(i32 %29, i32 15)
%31 = select i1 %28, i32 0, i32 %30
br label %32
32: ; preds = %8, %3
%33 = phi i32 [ 0, %3 ], [ %31, %8 ]
ret i32 %33
}
declare ptr @to_mt9v011(ptr noundef) local_unnamed_addr #1
declare i32 @mt9v011_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @do_div(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"mt9v011", !6, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/extr_mt9v011.c_calc_speed.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/extr_mt9v011.c_calc_speed.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@R03_MT9V011_HEIGHT = common local_unnamed_addr global i32 0, align 4
@R04_MT9V011_WIDTH = common local_unnamed_addr global i32 0, align 4
@R05_MT9V011_HBLANK = common local_unnamed_addr global i32 0, align 4
@R06_MT9V011_VBLANK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @calc_speed], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 16) i32 @calc_speed(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @to_mt9v011(ptr noundef %0) #3
%5 = icmp ne i32 %1, 0
%6 = icmp ne i32 %2, 0
%7 = and i1 %5, %6
br i1 %7, label %8, label %32
8: ; preds = %3
%9 = load i32, ptr @R03_MT9V011_HEIGHT, align 4, !tbaa !6
%10 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %9) #3
%11 = load i32, ptr @R04_MT9V011_WIDTH, align 4, !tbaa !6
%12 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %11) #3
%13 = load i32, ptr @R05_MT9V011_HBLANK, align 4, !tbaa !6
%14 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %13) #3
%15 = load i32, ptr @R06_MT9V011_VBLANK, align 4, !tbaa !6
%16 = tail call i32 @mt9v011_read(ptr noundef %0, i32 noundef %15) #3
%17 = add i32 %12, 113
%18 = add i32 %17, %14
%19 = add i32 %10, 1
%20 = add i32 %19, %16
%21 = load i32, ptr %4, align 4, !tbaa !10
%22 = mul nsw i32 %21, %1
%23 = sdiv i32 %2, 2
%24 = add nsw i32 %22, %23
%25 = tail call i32 @do_div(i32 noundef %24, i32 noundef %2) #3
%26 = mul i32 %20, %18
%27 = tail call i32 @do_div(i32 noundef %24, i32 noundef %26) #3
%28 = icmp slt i32 %24, 2
%29 = add nsw i32 %24, -2
%30 = tail call i32 @llvm.umin.i32(i32 %29, i32 15)
%31 = select i1 %28, i32 0, i32 %30
br label %32
32: ; preds = %8, %3
%33 = phi i32 [ 0, %3 ], [ %31, %8 ]
ret i32 %33
}
declare ptr @to_mt9v011(ptr noundef) local_unnamed_addr #1
declare i32 @mt9v011_read(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @do_div(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"mt9v011", !7, i64 0}
| fastsocket_kernel_drivers_media_video_extr_mt9v011.c_calc_speed |
; ModuleID = 'AnghaBench/RetroArch/gfx/drivers/extr_xvideo.c_render16_yuy2.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers/extr_xvideo.c_render16_yuy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i32, ptr, ptr, ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @render16_yuy2], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define internal void @render16_yuy2(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = icmp eq i32 %3, 0
br i1 %6, label %69, label %7
7: ; preds = %5
%8 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 4
%9 = load ptr, ptr %8, align 8, !tbaa !5
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = inttoptr i64 %10 to ptr
%12 = icmp eq i32 %2, 0
%13 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 3
%14 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%15 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%16 = lshr i32 %4, 1
%17 = sub i32 %16, %2
%18 = zext i32 %17 to i64
br label %19
19: ; preds = %7, %58
%20 = phi i32 [ 0, %7 ], [ %67, %58 ]
%21 = phi ptr [ %1, %7 ], [ %61, %58 ]
%22 = phi ptr [ %11, %7 ], [ %66, %58 ]
br i1 %12, label %58, label %23
23: ; preds = %19
%24 = load ptr, ptr %13, align 8, !tbaa !14
%25 = load ptr, ptr %14, align 8, !tbaa !15
%26 = load ptr, ptr %15, align 8, !tbaa !16
br label %27
27: ; preds = %23, %27
%28 = phi i32 [ 0, %23 ], [ %56, %27 ]
%29 = phi ptr [ %21, %23 ], [ %31, %27 ]
%30 = phi ptr [ %22, %23 ], [ %55, %27 ]
%31 = getelementptr inbounds i64, ptr %29, i64 1
%32 = load i64, ptr %29, align 8, !tbaa !17
%33 = getelementptr inbounds i32, ptr %24, i64 %32
%34 = load i32, ptr %33, align 4, !tbaa !18
%35 = getelementptr inbounds i32, ptr %25, i64 %32
%36 = load i32, ptr %35, align 4, !tbaa !18
%37 = getelementptr inbounds i32, ptr %26, i64 %32
%38 = load i32, ptr %37, align 4, !tbaa !18
%39 = load i32, ptr %0, align 8, !tbaa !19
%40 = shl i32 %39, 1
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %30, i64 %41
store i32 %34, ptr %42, align 4, !tbaa !18
store i32 %34, ptr %30, align 4, !tbaa !18
%43 = or disjoint i32 %40, 1
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %30, i64 %44
store i32 %36, ptr %45, align 4, !tbaa !18
%46 = getelementptr inbounds i32, ptr %30, i64 1
store i32 %36, ptr %46, align 4, !tbaa !18
%47 = add i32 %40, 2
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %30, i64 %48
store i32 %34, ptr %49, align 4, !tbaa !18
%50 = getelementptr inbounds i32, ptr %30, i64 2
store i32 %34, ptr %50, align 4, !tbaa !18
%51 = add i32 %40, 3
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %30, i64 %52
store i32 %38, ptr %53, align 4, !tbaa !18
%54 = getelementptr inbounds i32, ptr %30, i64 3
store i32 %38, ptr %54, align 4, !tbaa !18
%55 = getelementptr inbounds i32, ptr %30, i64 4
%56 = add nuw i32 %28, 1
%57 = icmp eq i32 %56, %2
br i1 %57, label %58, label %27, !llvm.loop !20
58: ; preds = %27, %19
%59 = phi ptr [ %22, %19 ], [ %55, %27 ]
%60 = phi ptr [ %21, %19 ], [ %31, %27 ]
%61 = getelementptr inbounds i64, ptr %60, i64 %18
%62 = load i32, ptr %0, align 8, !tbaa !19
%63 = sub i32 %62, %2
%64 = shl i32 %63, 2
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %59, i64 %65
%67 = add nuw i32 %20, 1
%68 = icmp eq i32 %67, %3
br i1 %68, label %69, label %19, !llvm.loop !22
69: ; preds = %58, %5
ret void
}
attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 32}
!6 = !{!"TYPE_5__", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !10, i64 24}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !10, i64 8}
!17 = !{!13, !13, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!6, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
| ; ModuleID = 'AnghaBench/RetroArch/gfx/drivers/extr_xvideo.c_render16_yuy2.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers/extr_xvideo.c_render16_yuy2.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 @render16_yuy2], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync)
define internal void @render16_yuy2(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = icmp eq i32 %3, 0
br i1 %6, label %69, label %7
7: ; preds = %5
%8 = getelementptr inbounds i8, ptr %0, i64 32
%9 = load ptr, ptr %8, align 8, !tbaa !6
%10 = load i64, ptr %9, align 8, !tbaa !12
%11 = inttoptr i64 %10 to ptr
%12 = icmp eq i32 %2, 0
%13 = getelementptr inbounds i8, ptr %0, i64 24
%14 = getelementptr inbounds i8, ptr %0, i64 16
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = lshr i32 %4, 1
%17 = sub i32 %16, %2
%18 = zext i32 %17 to i64
br label %19
19: ; preds = %7, %58
%20 = phi i32 [ 0, %7 ], [ %67, %58 ]
%21 = phi ptr [ %1, %7 ], [ %61, %58 ]
%22 = phi ptr [ %11, %7 ], [ %66, %58 ]
br i1 %12, label %58, label %23
23: ; preds = %19
%24 = load ptr, ptr %13, align 8, !tbaa !15
%25 = load ptr, ptr %14, align 8, !tbaa !16
%26 = load ptr, ptr %15, align 8, !tbaa !17
br label %27
27: ; preds = %23, %27
%28 = phi i32 [ 0, %23 ], [ %56, %27 ]
%29 = phi ptr [ %21, %23 ], [ %31, %27 ]
%30 = phi ptr [ %22, %23 ], [ %55, %27 ]
%31 = getelementptr inbounds i8, ptr %29, i64 8
%32 = load i64, ptr %29, align 8, !tbaa !18
%33 = getelementptr inbounds i32, ptr %24, i64 %32
%34 = load i32, ptr %33, align 4, !tbaa !19
%35 = getelementptr inbounds i32, ptr %25, i64 %32
%36 = load i32, ptr %35, align 4, !tbaa !19
%37 = getelementptr inbounds i32, ptr %26, i64 %32
%38 = load i32, ptr %37, align 4, !tbaa !19
%39 = load i32, ptr %0, align 8, !tbaa !20
%40 = shl i32 %39, 1
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %30, i64 %41
store i32 %34, ptr %42, align 4, !tbaa !19
store i32 %34, ptr %30, align 4, !tbaa !19
%43 = or disjoint i32 %40, 1
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %30, i64 %44
store i32 %36, ptr %45, align 4, !tbaa !19
%46 = getelementptr inbounds i8, ptr %30, i64 4
store i32 %36, ptr %46, align 4, !tbaa !19
%47 = add i32 %40, 2
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %30, i64 %48
store i32 %34, ptr %49, align 4, !tbaa !19
%50 = getelementptr inbounds i8, ptr %30, i64 8
store i32 %34, ptr %50, align 4, !tbaa !19
%51 = add i32 %40, 3
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %30, i64 %52
store i32 %38, ptr %53, align 4, !tbaa !19
%54 = getelementptr inbounds i8, ptr %30, i64 12
store i32 %38, ptr %54, align 4, !tbaa !19
%55 = getelementptr inbounds i8, ptr %30, i64 16
%56 = add nuw i32 %28, 1
%57 = icmp eq i32 %56, %2
br i1 %57, label %58, label %27, !llvm.loop !21
58: ; preds = %27, %19
%59 = phi ptr [ %22, %19 ], [ %55, %27 ]
%60 = phi ptr [ %21, %19 ], [ %31, %27 ]
%61 = getelementptr inbounds i64, ptr %60, i64 %18
%62 = load i32, ptr %0, align 8, !tbaa !20
%63 = sub i32 %62, %2
%64 = shl i32 %63, 2
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %59, i64 %65
%67 = add nuw i32 %20, 1
%68 = icmp eq i32 %67, %3
br i1 %68, label %69, label %19, !llvm.loop !23
69: ; preds = %58, %5
ret void
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 32}
!7 = !{!"TYPE_5__", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !11, i64 24}
!16 = !{!7, !11, i64 16}
!17 = !{!7, !11, i64 8}
!18 = !{!14, !14, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!7, !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
| RetroArch_gfx_drivers_extr_xvideo.c_render16_yuy2 |
; ModuleID = 'AnghaBench/RetroArch/menu/extr_menu_setting.c_end_sub_group.c'
source_filename = "AnghaBench/RetroArch/menu/extr_menu_setting.c_end_sub_group.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ST_END_SUB_GROUP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @end_sub_group], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @end_sub_group(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @ST_END_SUB_GROUP, align 4, !tbaa !5
%5 = tail call i32 @setting_group_setting(i32 noundef %4, i32 noundef 0, ptr noundef %2) #2
%6 = load ptr, ptr %0, align 8, !tbaa !9
%7 = load i32, ptr %1, align 4, !tbaa !11
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4, !tbaa !11
%9 = sext i32 %7 to i64
%10 = getelementptr inbounds i32, ptr %6, i64 %9
store i32 %5, ptr %10, align 4, !tbaa !5
ret void
}
declare i32 @setting_group_setting(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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/menu/extr_menu_setting.c_end_sub_group.c'
source_filename = "AnghaBench/RetroArch/menu/extr_menu_setting.c_end_sub_group.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ST_END_SUB_GROUP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @end_sub_group], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @end_sub_group(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr noundef %2) #0 {
%4 = load i32, ptr @ST_END_SUB_GROUP, align 4, !tbaa !6
%5 = tail call i32 @setting_group_setting(i32 noundef %4, i32 noundef 0, ptr noundef %2) #2
%6 = load ptr, ptr %0, align 8, !tbaa !10
%7 = load i32, ptr %1, align 4, !tbaa !12
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4, !tbaa !12
%9 = sext i32 %7 to i64
%10 = getelementptr inbounds i32, ptr %6, i64 %9
store i32 %5, ptr %10, align 4, !tbaa !6
ret void
}
declare i32 @setting_group_setting(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"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0}
| RetroArch_menu_extr_menu_setting.c_end_sub_group |
; ModuleID = 'AnghaBench/freebsd/contrib/unbound/sldns/extr_parseutil.c_sldns_year_and_yday_from_days_since_epoch.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/sldns/extr_parseutil.c_sldns_year_and_yday_from_days_since_epoch.c"
target datalayout = "e-m:e-p270:32:32-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.tm = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @sldns_year_and_yday_from_days_since_epoch], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @sldns_year_and_yday_from_days_since_epoch(i64 noundef %0, ptr nocapture noundef writeonly %1) #0 {
br label %3
3: ; preds = %12, %2
%4 = phi i32 [ 1970, %2 ], [ %15, %12 ]
%5 = phi i64 [ %0, %2 ], [ %20, %12 ]
%6 = icmp slt i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %3
%8 = tail call i64 @is_leap_year(i32 noundef %4) #2
%9 = icmp eq i64 %8, 0
%10 = select i1 %9, i64 365, i64 366
%11 = icmp ult i64 %5, %10
br i1 %11, label %21, label %12
12: ; preds = %3, %7
%13 = tail call i64 @LDNS_DIV(i64 noundef %5, i32 noundef 365) #2
%14 = trunc i64 %13 to i32
%15 = add nsw i32 %4, %14
%16 = mul i64 %13, 1567663063040
%17 = ashr exact i64 %16, 32
%18 = tail call i64 @leap_days(i32 noundef %4, i32 noundef %15) #2
%19 = add i64 %18, %17
%20 = sub i64 %5, %19
br label %3, !llvm.loop !5
21: ; preds = %7
store i32 %4, ptr %1, align 4, !tbaa !7
%22 = trunc i64 %5 to i32
%23 = getelementptr inbounds %struct.tm, ptr %1, i64 0, i32 1
store i32 %22, ptr %23, align 4, !tbaa !12
ret void
}
declare i64 @is_leap_year(i32 noundef) local_unnamed_addr #1
declare i64 @LDNS_DIV(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @leap_days(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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"tm", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!8, !9, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/contrib/unbound/sldns/extr_parseutil.c_sldns_year_and_yday_from_days_since_epoch.c'
source_filename = "AnghaBench/freebsd/contrib/unbound/sldns/extr_parseutil.c_sldns_year_and_yday_from_days_since_epoch.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @sldns_year_and_yday_from_days_since_epoch], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @sldns_year_and_yday_from_days_since_epoch(i64 noundef %0, ptr nocapture noundef writeonly %1) #0 {
br label %3
3: ; preds = %12, %2
%4 = phi i32 [ 1970, %2 ], [ %15, %12 ]
%5 = phi i64 [ %0, %2 ], [ %20, %12 ]
%6 = icmp slt i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %3
%8 = tail call i64 @is_leap_year(i32 noundef %4) #2
%9 = icmp eq i64 %8, 0
%10 = select i1 %9, i64 365, i64 366
%11 = icmp ult i64 %5, %10
br i1 %11, label %21, label %12
12: ; preds = %3, %7
%13 = tail call i64 @LDNS_DIV(i64 noundef %5, i32 noundef 365) #2
%14 = trunc i64 %13 to i32
%15 = add nsw i32 %4, %14
%16 = mul i64 %13, 1567663063040
%17 = ashr exact i64 %16, 32
%18 = tail call i64 @leap_days(i32 noundef %4, i32 noundef %15) #2
%19 = add i64 %18, %17
%20 = sub i64 %5, %19
br label %3, !llvm.loop !6
21: ; preds = %7
store i32 %4, ptr %1, align 4, !tbaa !8
%22 = trunc nuw nsw i64 %5 to i32
%23 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %22, ptr %23, align 4, !tbaa !13
ret void
}
declare i64 @is_leap_year(i32 noundef) local_unnamed_addr #1
declare i64 @LDNS_DIV(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @leap_days(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 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = !{!9, !10, i64 0}
!9 = !{!"tm", !10, i64 0, !10, i64 4}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = !{!9, !10, i64 4}
| freebsd_contrib_unbound_sldns_extr_parseutil.c_sldns_year_and_yday_from_days_since_epoch |
; ModuleID = 'AnghaBench/linux/drivers/md/extr_dm-cache-policy-smq.c_l_tail.c'
source_filename = "AnghaBench/linux/drivers/md/extr_dm-cache-policy-smq.c_l_tail.c"
target datalayout = "e-m:e-p270:32:32-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 @l_tail], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @l_tail(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = tail call ptr @to_entry(ptr noundef %0, i32 noundef %3) #2
ret ptr %4
}
declare ptr @to_entry(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 = !{!"ilist", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/md/extr_dm-cache-policy-smq.c_l_tail.c'
source_filename = "AnghaBench/linux/drivers/md/extr_dm-cache-policy-smq.c_l_tail.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 @l_tail], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @l_tail(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
%4 = tail call ptr @to_entry(ptr noundef %0, i32 noundef %3) #2
ret ptr %4
}
declare ptr @to_entry(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 = !{!"ilist", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_md_extr_dm-cache-policy-smq.c_l_tail |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/ti/wlcore/extr_acx.c_wl1271_acx_event_mbox_mask.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/ti/wlcore/extr_acx.c_wl1271_acx_event_mbox_mask.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.acx_event_mask = type { ptr, ptr }
@DEBUG_ACX = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"acx event mbox mask\00", align 1
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@ACX_EVENT_MBOX_MASK = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"failed to set acx_event_mbox_mask: %d\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @wl1271_acx_event_mbox_mask(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @DEBUG_ACX, align 4, !tbaa !5
%4 = tail call i32 @wl1271_debug(i32 noundef %3, ptr noundef nonnull @.str) #2
%5 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%6 = tail call ptr @kzalloc(i32 noundef 16, i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%10 = sub nsw i32 0, %9
br label %20
11: ; preds = %2
%12 = tail call ptr @cpu_to_le32(i32 noundef -1) #2
%13 = getelementptr inbounds %struct.acx_event_mask, ptr %6, i64 0, i32 1
store ptr %12, ptr %13, align 8, !tbaa !9
%14 = tail call ptr @cpu_to_le32(i32 noundef %1) #2
store ptr %14, ptr %6, align 8, !tbaa !12
%15 = load i32, ptr @ACX_EVENT_MBOX_MASK, align 4, !tbaa !5
%16 = tail call i32 @wl1271_cmd_configure(ptr noundef %0, i32 noundef %15, ptr noundef nonnull %6, i32 noundef 16) #2
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = tail call i32 @wl1271_warning(ptr noundef nonnull @.str.1, i32 noundef %16) #2
br label %20
20: ; preds = %11, %18, %8
%21 = phi i32 [ %16, %18 ], [ %16, %11 ], [ %10, %8 ]
%22 = tail call i32 @kfree(ptr noundef %6) #2
ret i32 %21
}
declare i32 @wl1271_debug(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @cpu_to_le32(i32 noundef) local_unnamed_addr #1
declare i32 @wl1271_cmd_configure(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wl1271_warning(ptr 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, !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 = !{!"acx_event_mask", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/ti/wlcore/extr_acx.c_wl1271_acx_event_mbox_mask.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/ti/wlcore/extr_acx.c_wl1271_acx_event_mbox_mask.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DEBUG_ACX = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"acx event mbox mask\00", align 1
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@ACX_EVENT_MBOX_MASK = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"failed to set acx_event_mbox_mask: %d\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @wl1271_acx_event_mbox_mask(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @DEBUG_ACX, align 4, !tbaa !6
%4 = tail call i32 @wl1271_debug(i32 noundef %3, ptr noundef nonnull @.str) #2
%5 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%6 = tail call ptr @kzalloc(i32 noundef 16, i32 noundef %5) #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%10 = sub nsw i32 0, %9
br label %20
11: ; preds = %2
%12 = tail call ptr @cpu_to_le32(i32 noundef -1) #2
%13 = getelementptr inbounds i8, ptr %6, i64 8
store ptr %12, ptr %13, align 8, !tbaa !10
%14 = tail call ptr @cpu_to_le32(i32 noundef %1) #2
store ptr %14, ptr %6, align 8, !tbaa !13
%15 = load i32, ptr @ACX_EVENT_MBOX_MASK, align 4, !tbaa !6
%16 = tail call i32 @wl1271_cmd_configure(ptr noundef %0, i32 noundef %15, ptr noundef nonnull %6, i32 noundef 16) #2
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = tail call i32 @wl1271_warning(ptr noundef nonnull @.str.1, i32 noundef %16) #2
br label %20
20: ; preds = %11, %18, %8
%21 = phi i32 [ %16, %18 ], [ %16, %11 ], [ %10, %8 ]
%22 = tail call i32 @kfree(ptr noundef %6) #2
ret i32 %21
}
declare i32 @wl1271_debug(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @cpu_to_le32(i32 noundef) local_unnamed_addr #1
declare i32 @wl1271_cmd_configure(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wl1271_warning(ptr 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, !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 = !{!"acx_event_mask", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 0}
| fastsocket_kernel_drivers_net_wireless_ti_wlcore_extr_acx.c_wl1271_acx_event_mbox_mask |
; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/libarchive/test/extr_test_archive_string_conversion.c_archive_be16enc.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/libarchive/test/extr_test_archive_string_conversion.c_archive_be16enc.c"
target datalayout = "e-m:e-p270:32:32-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 @archive_be16enc], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @archive_be16enc(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = lshr i32 %1, 8
%4 = trunc i32 %3 to i8
store i8 %4, ptr %0, align 1, !tbaa !5
%5 = trunc i32 %1 to i8
%6 = getelementptr inbounds i8, ptr %0, i64 1
store i8 %5, ptr %6, align 1, !tbaa !5
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/libarchive/libarchive/test/extr_test_archive_string_conversion.c_archive_be16enc.c'
source_filename = "AnghaBench/freebsd/contrib/libarchive/libarchive/test/extr_test_archive_string_conversion.c_archive_be16enc.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 @archive_be16enc], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @archive_be16enc(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = lshr i32 %1, 8
%4 = trunc i32 %3 to i8
store i8 %4, ptr %0, align 1, !tbaa !6
%5 = trunc i32 %1 to i8
%6 = getelementptr inbounds i8, ptr %0, i64 1
store i8 %5, ptr %6, align 1, !tbaa !6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_libarchive_libarchive_test_extr_test_archive_string_conversion.c_archive_be16enc |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_ipr.c_ipr_erp_request_sense.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_ipr.c_ipr_erp_request_sense.c"
target datalayout = "e-m:e-p270:32:32-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 @ipr_erp_request_sense], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ipr_erp_request_sense(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @spin_lock_irqsave(ptr noundef %2, i64 noundef undef) #2
%4 = tail call i32 @__ipr_erp_request_sense(ptr noundef nonnull %0) #2
%5 = tail call i32 @spin_unlock_irqrestore(ptr noundef %2, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @__ipr_erp_request_sense(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ipr_cmnd", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_ipr.c_ipr_erp_request_sense.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_ipr.c_ipr_erp_request_sense.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 @ipr_erp_request_sense], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ipr_erp_request_sense(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @spin_lock_irqsave(ptr noundef %2, i64 noundef undef) #2
%4 = tail call i32 @__ipr_erp_request_sense(ptr noundef nonnull %0) #2
%5 = tail call i32 @spin_unlock_irqrestore(ptr noundef %2, i64 noundef undef) #2
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @__ipr_erp_request_sense(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ipr_cmnd", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_scsi_extr_ipr.c_ipr_erp_request_sense |
; ModuleID = 'AnghaBench/radare2/libr/bin/p/extr_bin_symbols.c_printSymbolsHeader.c'
source_filename = "AnghaBench/radare2/libr/bin/p/extr_bin_symbols.c_printSymbolsHeader.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"0x%08x uuid \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @printSymbolsHeader], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @printSymbolsHeader(ptr nocapture readonly %0) #0 {
%2 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str, i32 noundef 24) #2
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %3) #2
%5 = getelementptr inbounds i32, ptr %0, i64 1
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %6) #2
%8 = getelementptr inbounds i32, ptr %0, i64 2
%9 = load i32, ptr %8, align 4, !tbaa !5
%10 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %9) #2
%11 = getelementptr inbounds i32, ptr %0, i64 3
%12 = load i32, ptr %11, align 4, !tbaa !5
%13 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %12) #2
%14 = getelementptr inbounds i32, ptr %0, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !5
%16 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %15) #2
%17 = getelementptr inbounds i32, ptr %0, i64 5
%18 = load i32, ptr %17, align 4, !tbaa !5
%19 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %18) #2
%20 = getelementptr inbounds i32, ptr %0, i64 6
%21 = load i32, ptr %20, align 4, !tbaa !5
%22 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %21) #2
%23 = getelementptr inbounds i32, ptr %0, i64 7
%24 = load i32, ptr %23, align 4, !tbaa !5
%25 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %24) #2
%26 = getelementptr inbounds i32, ptr %0, i64 8
%27 = load i32, ptr %26, align 4, !tbaa !5
%28 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %27) #2
%29 = getelementptr inbounds i32, ptr %0, i64 9
%30 = load i32, ptr %29, align 4, !tbaa !5
%31 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %30) #2
%32 = getelementptr inbounds i32, ptr %0, i64 10
%33 = load i32, ptr %32, align 4, !tbaa !5
%34 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %33) #2
%35 = getelementptr inbounds i32, ptr %0, i64 11
%36 = load i32, ptr %35, align 4, !tbaa !5
%37 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %36) #2
%38 = getelementptr inbounds i32, ptr %0, i64 12
%39 = load i32, ptr %38, align 4, !tbaa !5
%40 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %39) #2
%41 = getelementptr inbounds i32, ptr %0, i64 13
%42 = load i32, ptr %41, align 4, !tbaa !5
%43 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %42) #2
%44 = getelementptr inbounds i32, ptr %0, i64 14
%45 = load i32, ptr %44, align 4, !tbaa !5
%46 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %45) #2
%47 = getelementptr inbounds i32, ptr %0, i64 15
%48 = load i32, ptr %47, align 4, !tbaa !5
%49 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %48) #2
%50 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.2) #2
ret void
}
declare i32 @eprintf(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/radare2/libr/bin/p/extr_bin_symbols.c_printSymbolsHeader.c'
source_filename = "AnghaBench/radare2/libr/bin/p/extr_bin_symbols.c_printSymbolsHeader.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [18 x i8] c"0x%08x uuid \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @printSymbolsHeader], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @printSymbolsHeader(i64 %0) #0 {
%2 = inttoptr i64 %0 to ptr
%3 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str, i32 noundef 24) #2
%4 = load i32, ptr %2, align 4, !tbaa !6
%5 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %2, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !6
%8 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %7) #2
%9 = getelementptr inbounds i8, ptr %2, i64 8
%10 = load i32, ptr %9, align 4, !tbaa !6
%11 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %10) #2
%12 = getelementptr inbounds i8, ptr %2, i64 12
%13 = load i32, ptr %12, align 4, !tbaa !6
%14 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %13) #2
%15 = getelementptr inbounds i8, ptr %2, i64 16
%16 = load i32, ptr %15, align 4, !tbaa !6
%17 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %16) #2
%18 = getelementptr inbounds i8, ptr %2, i64 20
%19 = load i32, ptr %18, align 4, !tbaa !6
%20 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %19) #2
%21 = getelementptr inbounds i8, ptr %2, i64 24
%22 = load i32, ptr %21, align 4, !tbaa !6
%23 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %22) #2
%24 = getelementptr inbounds i8, ptr %2, i64 28
%25 = load i32, ptr %24, align 4, !tbaa !6
%26 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %25) #2
%27 = getelementptr inbounds i8, ptr %2, i64 32
%28 = load i32, ptr %27, align 4, !tbaa !6
%29 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %28) #2
%30 = getelementptr inbounds i8, ptr %2, i64 36
%31 = load i32, ptr %30, align 4, !tbaa !6
%32 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %31) #2
%33 = getelementptr inbounds i8, ptr %2, i64 40
%34 = load i32, ptr %33, align 4, !tbaa !6
%35 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %34) #2
%36 = getelementptr inbounds i8, ptr %2, i64 44
%37 = load i32, ptr %36, align 4, !tbaa !6
%38 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %37) #2
%39 = getelementptr inbounds i8, ptr %2, i64 48
%40 = load i32, ptr %39, align 4, !tbaa !6
%41 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %40) #2
%42 = getelementptr inbounds i8, ptr %2, i64 52
%43 = load i32, ptr %42, align 4, !tbaa !6
%44 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %43) #2
%45 = getelementptr inbounds i8, ptr %2, i64 56
%46 = load i32, ptr %45, align 4, !tbaa !6
%47 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %46) #2
%48 = getelementptr inbounds i8, ptr %2, i64 60
%49 = load i32, ptr %48, align 4, !tbaa !6
%50 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.1, i32 noundef %49) #2
%51 = tail call i32 (ptr, ...) @eprintf(ptr noundef nonnull @.str.2) #2
ret void
}
declare i32 @eprintf(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"}
| radare2_libr_bin_p_extr_bin_symbols.c_printSymbolsHeader |
; ModuleID = 'AnghaBench/linux/sound/pci/echoaudio/extr_echoaudio.c_snd_echo_input_nominal_put.c'
source_filename = "AnghaBench/linux/sound/pci/echoaudio/extr_echoaudio.c_snd_echo_input_nominal_put.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.echoaudio = type { ptr, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_echo_input_nominal_put], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @snd_echo_input_nominal_put(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.echoaudio, ptr %3, i64 0, i32 1
%5 = tail call i32 @spin_lock_irq(ptr noundef nonnull %4) #2
%6 = tail call i32 @num_analog_busses_in(ptr noundef %3) #2
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %39
8: ; preds = %2, %29
%9 = phi i64 [ %31, %29 ], [ 0, %2 ]
%10 = phi i32 [ %30, %29 ], [ 0, %2 ]
%11 = load ptr, ptr %3, align 8, !tbaa !5
%12 = tail call i32 @bx_analog_in(ptr noundef nonnull %3) #2
%13 = trunc i64 %9 to i32
%14 = add nsw i32 %12, %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i64, ptr %11, i64 %15
%17 = load i64, ptr %16, align 8, !tbaa !11
%18 = load ptr, ptr %1, align 8, !tbaa !13
%19 = getelementptr inbounds i64, ptr %18, i64 %9
%20 = load i64, ptr %19, align 8, !tbaa !11
%21 = icmp eq i64 %17, %20
br i1 %21, label %29, label %22
22: ; preds = %8
%23 = tail call i32 @bx_analog_in(ptr noundef nonnull %3) #2
%24 = add nsw i32 %23, %13
%25 = load ptr, ptr %1, align 8, !tbaa !13
%26 = getelementptr inbounds i64, ptr %25, i64 %9
%27 = load i64, ptr %26, align 8, !tbaa !11
%28 = tail call i32 @set_nominal_level(ptr noundef nonnull %3, i32 noundef %24, i64 noundef %27) #2
br label %29
29: ; preds = %8, %22
%30 = phi i32 [ 1, %22 ], [ %10, %8 ]
%31 = add nuw nsw i64 %9, 1
%32 = tail call i32 @num_analog_busses_in(ptr noundef nonnull %3) #2
%33 = sext i32 %32 to i64
%34 = icmp slt i64 %31, %33
br i1 %34, label %8, label %35, !llvm.loop !17
35: ; preds = %29
%36 = icmp eq i32 %30, 0
br i1 %36, label %39, label %37
37: ; preds = %35
%38 = tail call i32 @update_output_line_level(ptr noundef nonnull %3) #2
br label %39
39: ; preds = %2, %37, %35
%40 = phi i32 [ %30, %37 ], [ 0, %35 ], [ 0, %2 ]
%41 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
ret i32 %40
}
declare ptr @snd_kcontrol_chip(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @num_analog_busses_in(ptr noundef) local_unnamed_addr #1
declare i32 @bx_analog_in(ptr noundef) local_unnamed_addr #1
declare i32 @set_nominal_level(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @update_output_line_level(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(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 = !{!"echoaudio", !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 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"snd_ctl_elem_value", !15, i64 0}
!15 = !{!"TYPE_4__", !16, i64 0}
!16 = !{!"TYPE_3__", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/linux/sound/pci/echoaudio/extr_echoaudio.c_snd_echo_input_nominal_put.c'
source_filename = "AnghaBench/linux/sound/pci/echoaudio/extr_echoaudio.c_snd_echo_input_nominal_put.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @snd_echo_input_nominal_put], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @snd_echo_input_nominal_put(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %3, i64 8
%5 = tail call i32 @spin_lock_irq(ptr noundef nonnull %4) #2
%6 = tail call i32 @num_analog_busses_in(ptr noundef %3) #2
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %39
8: ; preds = %2, %29
%9 = phi i64 [ %31, %29 ], [ 0, %2 ]
%10 = phi i32 [ %30, %29 ], [ 0, %2 ]
%11 = load ptr, ptr %3, align 8, !tbaa !6
%12 = tail call i32 @bx_analog_in(ptr noundef nonnull %3) #2
%13 = trunc nuw nsw i64 %9 to i32
%14 = add nsw i32 %12, %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i64, ptr %11, i64 %15
%17 = load i64, ptr %16, align 8, !tbaa !12
%18 = load ptr, ptr %1, align 8, !tbaa !14
%19 = getelementptr inbounds i64, ptr %18, i64 %9
%20 = load i64, ptr %19, align 8, !tbaa !12
%21 = icmp eq i64 %17, %20
br i1 %21, label %29, label %22
22: ; preds = %8
%23 = tail call i32 @bx_analog_in(ptr noundef nonnull %3) #2
%24 = add nsw i32 %23, %13
%25 = load ptr, ptr %1, align 8, !tbaa !14
%26 = getelementptr inbounds i64, ptr %25, i64 %9
%27 = load i64, ptr %26, align 8, !tbaa !12
%28 = tail call i32 @set_nominal_level(ptr noundef nonnull %3, i32 noundef %24, i64 noundef %27) #2
br label %29
29: ; preds = %8, %22
%30 = phi i32 [ 1, %22 ], [ %10, %8 ]
%31 = add nuw nsw i64 %9, 1
%32 = tail call i32 @num_analog_busses_in(ptr noundef nonnull %3) #2
%33 = sext i32 %32 to i64
%34 = icmp slt i64 %31, %33
br i1 %34, label %8, label %35, !llvm.loop !18
35: ; preds = %29
%36 = icmp eq i32 %30, 0
br i1 %36, label %39, label %37
37: ; preds = %35
%38 = tail call i32 @update_output_line_level(ptr noundef nonnull %3) #2
br label %39
39: ; preds = %2, %37, %35
%40 = phi i32 [ %30, %37 ], [ 0, %35 ], [ 0, %2 ]
%41 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
ret i32 %40
}
declare ptr @snd_kcontrol_chip(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @num_analog_busses_in(ptr noundef) local_unnamed_addr #1
declare i32 @bx_analog_in(ptr noundef) local_unnamed_addr #1
declare i32 @set_nominal_level(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @update_output_line_level(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(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 = !{!"echoaudio", !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 = !{!13, !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"snd_ctl_elem_value", !16, i64 0}
!16 = !{!"TYPE_4__", !17, i64 0}
!17 = !{!"TYPE_3__", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| linux_sound_pci_echoaudio_extr_echoaudio.c_snd_echo_input_nominal_put |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/nilfs2/extr_dat.c_nilfs_dat_commit_update.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/nilfs2/extr_dat.c_nilfs_dat_commit_update.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @nilfs_dat_commit_update(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = tail call i32 @nilfs_dat_commit_end(ptr noundef %0, ptr noundef %1, i32 noundef %3) #2
%6 = tail call i32 @nilfs_dat_commit_alloc(ptr noundef %0, ptr noundef %2) #2
ret void
}
declare i32 @nilfs_dat_commit_end(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nilfs_dat_commit_alloc(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/nilfs2/extr_dat.c_nilfs_dat_commit_update.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/nilfs2/extr_dat.c_nilfs_dat_commit_update.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 @nilfs_dat_commit_update(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = tail call i32 @nilfs_dat_commit_end(ptr noundef %0, ptr noundef %1, i32 noundef %3) #2
%6 = tail call i32 @nilfs_dat_commit_alloc(ptr noundef %0, ptr noundef %2) #2
ret void
}
declare i32 @nilfs_dat_commit_end(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nilfs_dat_commit_alloc(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_fs_nilfs2_extr_dat.c_nilfs_dat_commit_update |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_dccg.c_dccg2_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_dccg.c_dccg2_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"
@DPPCLK_DTO_CTRL = dso_local local_unnamed_addr global i32 0, align 4
@DPPCLK_DTO_DB_EN = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @dccg2_init(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @TO_DCN_DCCG(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load ptr, ptr %4, align 8, !tbaa !13
%6 = load i32, ptr %5, align 4, !tbaa !15
switch i32 %6, label %42 [
i32 6, label %7
i32 5, label %13
i32 4, label %19
i32 3, label %25
i32 2, label %31
i32 1, label %37
]
7: ; preds = %1
%8 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !18
%9 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !19
%10 = getelementptr inbounds i32, ptr %9, i64 5
%11 = load i32, ptr %10, align 4, !tbaa !18
%12 = tail call i32 @REG_UPDATE(i32 noundef %8, i32 noundef %11, i32 noundef 1) #2
br label %13
13: ; preds = %1, %7
%14 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !18
%15 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !19
%16 = getelementptr inbounds i32, ptr %15, i64 4
%17 = load i32, ptr %16, align 4, !tbaa !18
%18 = tail call i32 @REG_UPDATE(i32 noundef %14, i32 noundef %17, i32 noundef 1) #2
br label %19
19: ; preds = %1, %13
%20 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !18
%21 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !19
%22 = getelementptr inbounds i32, ptr %21, i64 3
%23 = load i32, ptr %22, align 4, !tbaa !18
%24 = tail call i32 @REG_UPDATE(i32 noundef %20, i32 noundef %23, i32 noundef 1) #2
br label %25
25: ; preds = %1, %19
%26 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !18
%27 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !19
%28 = getelementptr inbounds i32, ptr %27, i64 2
%29 = load i32, ptr %28, align 4, !tbaa !18
%30 = tail call i32 @REG_UPDATE(i32 noundef %26, i32 noundef %29, i32 noundef 1) #2
br label %31
31: ; preds = %1, %25
%32 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !18
%33 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !19
%34 = getelementptr inbounds i32, ptr %33, i64 1
%35 = load i32, ptr %34, align 4, !tbaa !18
%36 = tail call i32 @REG_UPDATE(i32 noundef %32, i32 noundef %35, i32 noundef 1) #2
br label %37
37: ; preds = %1, %31
%38 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !18
%39 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !19
%40 = load i32, ptr %39, align 4, !tbaa !18
%41 = tail call i32 @REG_UPDATE(i32 noundef %38, i32 noundef %40, i32 noundef 1) #2
br label %44
42: ; preds = %1
%43 = tail call i32 @ASSERT(i32 noundef 0) #2
br label %44
44: ; preds = %42, %37
ret void
}
declare ptr @TO_DCN_DCCG(ptr noundef) local_unnamed_addr #1
declare i32 @REG_UPDATE(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ASSERT(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"dcn_dccg", !7, i64 0}
!7 = !{!"TYPE_8__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_7__", !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_6__", !8, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"TYPE_5__", !17, i64 0}
!17 = !{!"int", !9, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_dccg.c_dccg2_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/display/dc/dcn20/extr_dcn20_dccg.c_dccg2_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DPPCLK_DTO_CTRL = common local_unnamed_addr global i32 0, align 4
@DPPCLK_DTO_DB_EN = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @dccg2_init(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @TO_DCN_DCCG(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = load ptr, ptr %4, align 8, !tbaa !14
%6 = load i32, ptr %5, align 4, !tbaa !16
switch i32 %6, label %42 [
i32 6, label %7
i32 5, label %13
i32 4, label %19
i32 3, label %25
i32 2, label %31
i32 1, label %37
]
7: ; preds = %1
%8 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !19
%9 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !20
%10 = getelementptr inbounds i8, ptr %9, i64 20
%11 = load i32, ptr %10, align 4, !tbaa !19
%12 = tail call i32 @REG_UPDATE(i32 noundef %8, i32 noundef %11, i32 noundef 1) #2
br label %13
13: ; preds = %1, %7
%14 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !19
%15 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !20
%16 = getelementptr inbounds i8, ptr %15, i64 16
%17 = load i32, ptr %16, align 4, !tbaa !19
%18 = tail call i32 @REG_UPDATE(i32 noundef %14, i32 noundef %17, i32 noundef 1) #2
br label %19
19: ; preds = %1, %13
%20 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !19
%21 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !20
%22 = getelementptr inbounds i8, ptr %21, i64 12
%23 = load i32, ptr %22, align 4, !tbaa !19
%24 = tail call i32 @REG_UPDATE(i32 noundef %20, i32 noundef %23, i32 noundef 1) #2
br label %25
25: ; preds = %1, %19
%26 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !19
%27 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !20
%28 = getelementptr inbounds i8, ptr %27, i64 8
%29 = load i32, ptr %28, align 4, !tbaa !19
%30 = tail call i32 @REG_UPDATE(i32 noundef %26, i32 noundef %29, i32 noundef 1) #2
br label %31
31: ; preds = %1, %25
%32 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !19
%33 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !20
%34 = getelementptr inbounds i8, ptr %33, i64 4
%35 = load i32, ptr %34, align 4, !tbaa !19
%36 = tail call i32 @REG_UPDATE(i32 noundef %32, i32 noundef %35, i32 noundef 1) #2
br label %37
37: ; preds = %1, %31
%38 = load i32, ptr @DPPCLK_DTO_CTRL, align 4, !tbaa !19
%39 = load ptr, ptr @DPPCLK_DTO_DB_EN, align 8, !tbaa !20
%40 = load i32, ptr %39, align 4, !tbaa !19
%41 = tail call i32 @REG_UPDATE(i32 noundef %38, i32 noundef %40, i32 noundef 1) #2
br label %44
42: ; preds = %1
%43 = tail call i32 @ASSERT(i32 noundef 0) #2
br label %44
44: ; preds = %42, %37
ret void
}
declare ptr @TO_DCN_DCCG(ptr noundef) local_unnamed_addr #1
declare i32 @REG_UPDATE(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ASSERT(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"dcn_dccg", !8, i64 0}
!8 = !{!"TYPE_8__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !9, i64 0}
!13 = !{!"TYPE_7__", !9, i64 0}
!14 = !{!15, !9, i64 0}
!15 = !{!"TYPE_6__", !9, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"TYPE_5__", !18, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!9, !9, i64 0}
| linux_drivers_gpu_drm_amd_display_dc_dcn20_extr_dcn20_dccg.c_dccg2_init |
; ModuleID = 'AnghaBench/linux/drivers/media/platform/mtk-mdp/extr_mtk_mdp_m2m.c_mtk_mdp_m2m_stop_streaming.c'
source_filename = "AnghaBench/linux/drivers/media/platform/mtk-mdp/extr_mtk_mdp_m2m.c_mtk_mdp_m2m_stop_streaming.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.vb2_queue = type { i32, ptr }
@VB2_BUF_STATE_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mtk_mdp_m2m_stop_streaming], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mtk_mdp_m2m_stop_streaming(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.vb2_queue, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr %0, align 8, !tbaa !11
%5 = tail call ptr @mtk_mdp_m2m_buf_remove(ptr noundef %3, i32 noundef %4) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %15, label %7
7: ; preds = %1, %7
%8 = phi ptr [ %13, %7 ], [ %5, %1 ]
%9 = tail call i32 @to_vb2_v4l2_buffer(ptr noundef nonnull %8) #2
%10 = load i32, ptr @VB2_BUF_STATE_ERROR, align 4, !tbaa !12
%11 = tail call i32 @v4l2_m2m_buf_done(i32 noundef %9, i32 noundef %10) #2
%12 = load i32, ptr %0, align 8, !tbaa !11
%13 = tail call ptr @mtk_mdp_m2m_buf_remove(ptr noundef %3, i32 noundef %12) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %7, !llvm.loop !13
15: ; preds = %7, %1
%16 = load ptr, ptr %3, align 8, !tbaa !15
%17 = load ptr, ptr %16, align 8, !tbaa !17
%18 = tail call i32 @pm_runtime_put(ptr noundef %17) #2
ret void
}
declare ptr @mtk_mdp_m2m_buf_remove(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_m2m_buf_done(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @to_vb2_v4l2_buffer(ptr noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"vb2_queue", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 0}
!16 = !{!"mtk_mdp_ctx", !10, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"TYPE_4__", !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/platform/mtk-mdp/extr_mtk_mdp_m2m.c_mtk_mdp_m2m_stop_streaming.c'
source_filename = "AnghaBench/linux/drivers/media/platform/mtk-mdp/extr_mtk_mdp_m2m.c_mtk_mdp_m2m_stop_streaming.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VB2_BUF_STATE_ERROR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mtk_mdp_m2m_stop_streaming], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mtk_mdp_m2m_stop_streaming(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr %0, align 8, !tbaa !12
%5 = tail call ptr @mtk_mdp_m2m_buf_remove(ptr noundef %3, i32 noundef %4) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %15, label %7
7: ; preds = %1, %7
%8 = phi ptr [ %13, %7 ], [ %5, %1 ]
%9 = tail call i32 @to_vb2_v4l2_buffer(ptr noundef nonnull %8) #2
%10 = load i32, ptr @VB2_BUF_STATE_ERROR, align 4, !tbaa !13
%11 = tail call i32 @v4l2_m2m_buf_done(i32 noundef %9, i32 noundef %10) #2
%12 = load i32, ptr %0, align 8, !tbaa !12
%13 = tail call ptr @mtk_mdp_m2m_buf_remove(ptr noundef %3, i32 noundef %12) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %7, !llvm.loop !14
15: ; preds = %7, %1
%16 = load ptr, ptr %3, align 8, !tbaa !16
%17 = load ptr, ptr %16, align 8, !tbaa !18
%18 = tail call i32 @pm_runtime_put(ptr noundef %17) #2
ret void
}
declare ptr @mtk_mdp_m2m_buf_remove(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @v4l2_m2m_buf_done(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @to_vb2_v4l2_buffer(ptr noundef) local_unnamed_addr #1
declare i32 @pm_runtime_put(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"vb2_queue", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !11, i64 0}
!17 = !{!"mtk_mdp_ctx", !11, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"TYPE_4__", !11, i64 0}
| linux_drivers_media_platform_mtk-mdp_extr_mtk_mdp_m2m.c_mtk_mdp_m2m_stop_streaming |
; ModuleID = 'AnghaBench/linux/drivers/pwm/extr_pwm-tegra.c_tegra_pwm_disable.c'
source_filename = "AnghaBench/linux/drivers/pwm/extr_pwm-tegra.c_tegra_pwm_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"
@PWM_ENABLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @tegra_pwm_disable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @tegra_pwm_disable(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @to_tegra_pwm_chip(ptr noundef %0) #2
%4 = load i32, ptr %1, align 4, !tbaa !5
%5 = tail call i32 @pwm_readl(ptr noundef %3, i32 noundef %4) #2
%6 = load i32, ptr @PWM_ENABLE, align 4, !tbaa !10
%7 = xor i32 %6, -1
%8 = and i32 %5, %7
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = tail call i32 @pwm_writel(ptr noundef %3, i32 noundef %9, i32 noundef %8) #2
%11 = load i32, ptr %3, align 4, !tbaa !11
%12 = tail call i32 @clk_disable_unprepare(i32 noundef %11) #2
ret void
}
declare ptr @to_tegra_pwm_chip(ptr noundef) local_unnamed_addr #1
declare i32 @pwm_readl(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pwm_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(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 = !{!"pwm_device", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"tegra_pwm_chip", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/pwm/extr_pwm-tegra.c_tegra_pwm_disable.c'
source_filename = "AnghaBench/linux/drivers/pwm/extr_pwm-tegra.c_tegra_pwm_disable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PWM_ENABLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @tegra_pwm_disable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @tegra_pwm_disable(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @to_tegra_pwm_chip(ptr noundef %0) #2
%4 = load i32, ptr %1, align 4, !tbaa !6
%5 = tail call i32 @pwm_readl(ptr noundef %3, i32 noundef %4) #2
%6 = load i32, ptr @PWM_ENABLE, align 4, !tbaa !11
%7 = xor i32 %6, -1
%8 = and i32 %5, %7
%9 = load i32, ptr %1, align 4, !tbaa !6
%10 = tail call i32 @pwm_writel(ptr noundef %3, i32 noundef %9, i32 noundef %8) #2
%11 = load i32, ptr %3, align 4, !tbaa !12
%12 = tail call i32 @clk_disable_unprepare(i32 noundef %11) #2
ret void
}
declare ptr @to_tegra_pwm_chip(ptr noundef) local_unnamed_addr #1
declare i32 @pwm_readl(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pwm_writel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(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 = !{!"pwm_device", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"tegra_pwm_chip", !8, i64 0}
| linux_drivers_pwm_extr_pwm-tegra.c_tegra_pwm_disable |
; ModuleID = 'AnghaBench/reactos/dll/win32/odbc32/extr_proxyodbc.c_ODBC_ReplicateToRegistry.c'
source_filename = "AnghaBench/reactos/dll/win32/odbc32/extr_proxyodbc.c_ODBC_ReplicateToRegistry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SQL_SUCCESS = dso_local local_unnamed_addr global i64 0, align 8
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"Error %d freeing the SQL environment.\0A\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Error %d opening an SQL environment.\0A\00", align 1
@.str.2 = private unnamed_addr constant [74 x i8] c"The external ODBC settings have not been replicated to the Wine registry\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ODBC_ReplicateToRegistry], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ODBC_ReplicateToRegistry() #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = call i64 @ODBC32_SQLAllocEnv(ptr noundef nonnull %1) #3
%3 = load i64, ptr @SQL_SUCCESS, align 8, !tbaa !5
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %21
5: ; preds = %0
%6 = load i32, ptr %1, align 4, !tbaa !9
%7 = call i32 @ODBC_ReplicateODBCInstToRegistry(i32 noundef %6) #3
%8 = load i32, ptr @FALSE, align 4, !tbaa !9
%9 = load i32, ptr %1, align 4, !tbaa !9
%10 = call i32 @ODBC_ReplicateODBCToRegistry(i32 noundef %8, i32 noundef %9) #3
%11 = load i32, ptr @TRUE, align 4, !tbaa !9
%12 = load i32, ptr %1, align 4, !tbaa !9
%13 = call i32 @ODBC_ReplicateODBCToRegistry(i32 noundef %11, i32 noundef %12) #3
%14 = load i32, ptr %1, align 4, !tbaa !9
%15 = call i64 @ODBC32_SQLFreeEnv(i32 noundef %14) #3
%16 = load i64, ptr @SQL_SUCCESS, align 8, !tbaa !5
%17 = icmp eq i64 %15, %16
br i1 %17, label %25, label %18
18: ; preds = %5
%19 = trunc i64 %15 to i32
%20 = call i32 @TRACE(ptr noundef nonnull @.str, i32 noundef %19) #3
br label %25
21: ; preds = %0
%22 = trunc i64 %2 to i32
%23 = call i32 @TRACE(ptr noundef nonnull @.str.1, i32 noundef %22) #3
%24 = call i32 @WARN(ptr noundef nonnull @.str.2) #3
br label %25
25: ; preds = %5, %18, %21
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @ODBC32_SQLAllocEnv(ptr noundef) local_unnamed_addr #2
declare i32 @ODBC_ReplicateODBCInstToRegistry(i32 noundef) local_unnamed_addr #2
declare i32 @ODBC_ReplicateODBCToRegistry(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ODBC32_SQLFreeEnv(i32 noundef) local_unnamed_addr #2
declare i32 @TRACE(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @WARN(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/odbc32/extr_proxyodbc.c_ODBC_ReplicateToRegistry.c'
source_filename = "AnghaBench/reactos/dll/win32/odbc32/extr_proxyodbc.c_ODBC_ReplicateToRegistry.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SQL_SUCCESS = common local_unnamed_addr global i64 0, align 8
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [39 x i8] c"Error %d freeing the SQL environment.\0A\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"Error %d opening an SQL environment.\0A\00", align 1
@.str.2 = private unnamed_addr constant [74 x i8] c"The external ODBC settings have not been replicated to the Wine registry\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @ODBC_ReplicateToRegistry], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ODBC_ReplicateToRegistry() #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = call i64 @ODBC32_SQLAllocEnv(ptr noundef nonnull %1) #3
%3 = load i64, ptr @SQL_SUCCESS, align 8, !tbaa !6
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %21
5: ; preds = %0
%6 = load i32, ptr %1, align 4, !tbaa !10
%7 = call i32 @ODBC_ReplicateODBCInstToRegistry(i32 noundef %6) #3
%8 = load i32, ptr @FALSE, align 4, !tbaa !10
%9 = load i32, ptr %1, align 4, !tbaa !10
%10 = call i32 @ODBC_ReplicateODBCToRegistry(i32 noundef %8, i32 noundef %9) #3
%11 = load i32, ptr @TRUE, align 4, !tbaa !10
%12 = load i32, ptr %1, align 4, !tbaa !10
%13 = call i32 @ODBC_ReplicateODBCToRegistry(i32 noundef %11, i32 noundef %12) #3
%14 = load i32, ptr %1, align 4, !tbaa !10
%15 = call i64 @ODBC32_SQLFreeEnv(i32 noundef %14) #3
%16 = load i64, ptr @SQL_SUCCESS, align 8, !tbaa !6
%17 = icmp eq i64 %15, %16
br i1 %17, label %25, label %18
18: ; preds = %5
%19 = trunc i64 %15 to i32
%20 = call i32 @TRACE(ptr noundef nonnull @.str, i32 noundef %19) #3
br label %25
21: ; preds = %0
%22 = trunc i64 %2 to i32
%23 = call i32 @TRACE(ptr noundef nonnull @.str.1, i32 noundef %22) #3
%24 = call i32 @WARN(ptr noundef nonnull @.str.2) #3
br label %25
25: ; preds = %5, %18, %21
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @ODBC32_SQLAllocEnv(ptr noundef) local_unnamed_addr #2
declare i32 @ODBC_ReplicateODBCInstToRegistry(i32 noundef) local_unnamed_addr #2
declare i32 @ODBC_ReplicateODBCToRegistry(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ODBC32_SQLFreeEnv(i32 noundef) local_unnamed_addr #2
declare i32 @TRACE(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @WARN(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| reactos_dll_win32_odbc32_extr_proxyodbc.c_ODBC_ReplicateToRegistry |
; ModuleID = 'AnghaBench/linux/fs/ocfs2/dlmfs/extr_userdlm.c_user_ast.c'
source_filename = "AnghaBench/linux/fs/ocfs2/dlmfs/extr_userdlm.c_user_ast.c"
target datalayout = "e-m:e-p270:32:32-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.user_lock_res = type { i64, i64, i32, i32, i32, i32, i32, i32, i32 }
@ML_BASTS = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"AST fired for lockres %.*s, level %d => %d\0A\00", align 1
@ML_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [41 x i8] c"lksb status value of %u on lockres %.*s\0A\00", align 1
@DLM_LOCK_IV = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [44 x i8] c"Lockres %.*s, requested ivmode. flags 0x%x\0A\00", align 1
@DLM_LOCK_NL = dso_local local_unnamed_addr global i32 0, align 4
@USER_LOCK_BLOCKED = dso_local local_unnamed_addr global i32 0, align 4
@USER_LOCK_ATTACHED = dso_local local_unnamed_addr global i32 0, align 4
@USER_LOCK_BUSY = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @user_ast], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @user_ast(ptr noundef %0) #0 {
%2 = tail call ptr @user_lksb_to_lock_res(ptr noundef %0) #2
%3 = load i32, ptr @ML_BASTS, align 4, !tbaa !5
%4 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 7
%5 = load i32, ptr %4, align 4, !tbaa !9
%6 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 6
%7 = load i32, ptr %6, align 8, !tbaa !12
%8 = load i64, ptr %2, align 8, !tbaa !13
%9 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 1
%10 = load i64, ptr %9, align 8, !tbaa !14
%11 = tail call i32 (i32, ptr, i32, i32, i64, ...) @mlog(i32 noundef %3, ptr noundef nonnull @.str, i32 noundef %5, i32 noundef %7, i64 noundef %8, i64 noundef %10) #2
%12 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 3
%13 = tail call i32 @spin_lock(ptr noundef nonnull %12) #2
%14 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 8
%15 = tail call i32 @ocfs2_dlm_lock_status(ptr noundef nonnull %14) #2
%16 = icmp eq i32 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %1
%18 = load i32, ptr @ML_ERROR, align 4, !tbaa !5
%19 = load i32, ptr %4, align 4, !tbaa !9
%20 = load i32, ptr %6, align 8, !tbaa !12
%21 = sext i32 %20 to i64
%22 = tail call i32 (i32, ptr, i32, i32, i64, ...) @mlog(i32 noundef %18, ptr noundef nonnull @.str.1, i32 noundef %15, i32 noundef %19, i64 noundef %21) #2
%23 = tail call i32 @spin_unlock(ptr noundef nonnull %12) #2
br label %62
24: ; preds = %1
%25 = load i64, ptr %9, align 8, !tbaa !14
%26 = load i64, ptr @DLM_LOCK_IV, align 8, !tbaa !15
%27 = icmp eq i64 %25, %26
%28 = zext i1 %27 to i32
%29 = load i32, ptr %4, align 4, !tbaa !9
%30 = load i32, ptr %6, align 8, !tbaa !12
%31 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 4
%32 = load i32, ptr %31, align 8, !tbaa !16
%33 = tail call i32 @mlog_bug_on_msg(i32 noundef %28, ptr noundef nonnull @.str.2, i32 noundef %29, i32 noundef %30, i32 noundef %32) #2
%34 = load i64, ptr %9, align 8, !tbaa !14
%35 = load i64, ptr %2, align 8, !tbaa !13
%36 = icmp slt i64 %34, %35
br i1 %36, label %39, label %37
37: ; preds = %24
%38 = load i32, ptr %31, align 8, !tbaa !16
br label %50
39: ; preds = %24
%40 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 5
%41 = load i32, ptr %40, align 4, !tbaa !17
%42 = tail call i64 @user_highest_compat_lock_level(i32 noundef %41) #2
%43 = icmp sgt i64 %34, %42
%44 = load i32, ptr %31, align 8, !tbaa !16
br i1 %43, label %50, label %45
45: ; preds = %39
%46 = load i32, ptr @DLM_LOCK_NL, align 4, !tbaa !5
store i32 %46, ptr %40, align 4, !tbaa !17
%47 = load i32, ptr @USER_LOCK_BLOCKED, align 4, !tbaa !5
%48 = xor i32 %47, -1
%49 = and i32 %44, %48
br label %50
50: ; preds = %37, %39, %45
%51 = phi i32 [ %38, %37 ], [ %44, %39 ], [ %49, %45 ]
%52 = load i64, ptr %9, align 8, !tbaa !14
store i64 %52, ptr %2, align 8, !tbaa !13
%53 = load i64, ptr @DLM_LOCK_IV, align 8, !tbaa !15
store i64 %53, ptr %9, align 8, !tbaa !14
%54 = load i32, ptr @USER_LOCK_ATTACHED, align 4, !tbaa !5
%55 = or i32 %51, %54
%56 = load i32, ptr @USER_LOCK_BUSY, align 4, !tbaa !5
%57 = xor i32 %56, -1
%58 = and i32 %55, %57
store i32 %58, ptr %31, align 8, !tbaa !16
%59 = tail call i32 @spin_unlock(ptr noundef nonnull %12) #2
%60 = getelementptr inbounds %struct.user_lock_res, ptr %2, i64 0, i32 2
%61 = tail call i32 @wake_up(ptr noundef nonnull %60) #2
br label %62
62: ; preds = %50, %17
ret void
}
declare ptr @user_lksb_to_lock_res(ptr noundef) local_unnamed_addr #1
declare i32 @mlog(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i64 noundef, ...) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @ocfs2_dlm_lock_status(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @mlog_bug_on_msg(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @user_highest_compat_lock_level(i32 noundef) local_unnamed_addr #1
declare i32 @wake_up(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 36}
!10 = !{!"user_lock_res", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 32}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !6, i64 28}
| ; ModuleID = 'AnghaBench/linux/fs/ocfs2/dlmfs/extr_userdlm.c_user_ast.c'
source_filename = "AnghaBench/linux/fs/ocfs2/dlmfs/extr_userdlm.c_user_ast.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ML_BASTS = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"AST fired for lockres %.*s, level %d => %d\0A\00", align 1
@ML_ERROR = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [41 x i8] c"lksb status value of %u on lockres %.*s\0A\00", align 1
@DLM_LOCK_IV = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [44 x i8] c"Lockres %.*s, requested ivmode. flags 0x%x\0A\00", align 1
@DLM_LOCK_NL = common local_unnamed_addr global i32 0, align 4
@USER_LOCK_BLOCKED = common local_unnamed_addr global i32 0, align 4
@USER_LOCK_ATTACHED = common local_unnamed_addr global i32 0, align 4
@USER_LOCK_BUSY = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @user_ast], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @user_ast(ptr noundef %0) #0 {
%2 = tail call ptr @user_lksb_to_lock_res(ptr noundef %0) #2
%3 = load i32, ptr @ML_BASTS, align 4, !tbaa !6
%4 = getelementptr inbounds i8, ptr %2, i64 36
%5 = load i32, ptr %4, align 4, !tbaa !10
%6 = getelementptr inbounds i8, ptr %2, i64 32
%7 = load i32, ptr %6, align 8, !tbaa !13
%8 = load i64, ptr %2, align 8, !tbaa !14
%9 = getelementptr inbounds i8, ptr %2, i64 8
%10 = load i64, ptr %9, align 8, !tbaa !15
%11 = tail call i32 (i32, ptr, i32, i32, i64, ...) @mlog(i32 noundef %3, ptr noundef nonnull @.str, i32 noundef %5, i32 noundef %7, i64 noundef %8, i64 noundef %10) #2
%12 = getelementptr inbounds i8, ptr %2, i64 20
%13 = tail call i32 @spin_lock(ptr noundef nonnull %12) #2
%14 = getelementptr inbounds i8, ptr %2, i64 40
%15 = tail call i32 @ocfs2_dlm_lock_status(ptr noundef nonnull %14) #2
%16 = icmp eq i32 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %1
%18 = load i32, ptr @ML_ERROR, align 4, !tbaa !6
%19 = load i32, ptr %4, align 4, !tbaa !10
%20 = load i32, ptr %6, align 8, !tbaa !13
%21 = sext i32 %20 to i64
%22 = tail call i32 (i32, ptr, i32, i32, i64, ...) @mlog(i32 noundef %18, ptr noundef nonnull @.str.1, i32 noundef %15, i32 noundef %19, i64 noundef %21) #2
%23 = tail call i32 @spin_unlock(ptr noundef nonnull %12) #2
br label %62
24: ; preds = %1
%25 = load i64, ptr %9, align 8, !tbaa !15
%26 = load i64, ptr @DLM_LOCK_IV, align 8, !tbaa !16
%27 = icmp eq i64 %25, %26
%28 = zext i1 %27 to i32
%29 = load i32, ptr %4, align 4, !tbaa !10
%30 = load i32, ptr %6, align 8, !tbaa !13
%31 = getelementptr inbounds i8, ptr %2, i64 24
%32 = load i32, ptr %31, align 8, !tbaa !17
%33 = tail call i32 @mlog_bug_on_msg(i32 noundef %28, ptr noundef nonnull @.str.2, i32 noundef %29, i32 noundef %30, i32 noundef %32) #2
%34 = load i64, ptr %9, align 8, !tbaa !15
%35 = load i64, ptr %2, align 8, !tbaa !14
%36 = icmp slt i64 %34, %35
br i1 %36, label %39, label %37
37: ; preds = %24
%38 = load i32, ptr %31, align 8, !tbaa !17
br label %50
39: ; preds = %24
%40 = getelementptr inbounds i8, ptr %2, i64 28
%41 = load i32, ptr %40, align 4, !tbaa !18
%42 = tail call i64 @user_highest_compat_lock_level(i32 noundef %41) #2
%43 = icmp sgt i64 %34, %42
%44 = load i32, ptr %31, align 8, !tbaa !17
br i1 %43, label %50, label %45
45: ; preds = %39
%46 = load i32, ptr @DLM_LOCK_NL, align 4, !tbaa !6
store i32 %46, ptr %40, align 4, !tbaa !18
%47 = load i32, ptr @USER_LOCK_BLOCKED, align 4, !tbaa !6
%48 = xor i32 %47, -1
%49 = and i32 %44, %48
br label %50
50: ; preds = %37, %39, %45
%51 = phi i32 [ %38, %37 ], [ %44, %39 ], [ %49, %45 ]
%52 = load i64, ptr %9, align 8, !tbaa !15
store i64 %52, ptr %2, align 8, !tbaa !14
%53 = load i64, ptr @DLM_LOCK_IV, align 8, !tbaa !16
store i64 %53, ptr %9, align 8, !tbaa !15
%54 = load i32, ptr @USER_LOCK_ATTACHED, align 4, !tbaa !6
%55 = or i32 %51, %54
%56 = load i32, ptr @USER_LOCK_BUSY, align 4, !tbaa !6
%57 = xor i32 %56, -1
%58 = and i32 %55, %57
store i32 %58, ptr %31, align 8, !tbaa !17
%59 = tail call i32 @spin_unlock(ptr noundef nonnull %12) #2
%60 = getelementptr inbounds i8, ptr %2, i64 16
%61 = tail call i32 @wake_up(ptr noundef nonnull %60) #2
br label %62
62: ; preds = %50, %17
ret void
}
declare ptr @user_lksb_to_lock_res(ptr noundef) local_unnamed_addr #1
declare i32 @mlog(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i64 noundef, ...) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @ocfs2_dlm_lock_status(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @mlog_bug_on_msg(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @user_highest_compat_lock_level(i32 noundef) local_unnamed_addr #1
declare i32 @wake_up(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 36}
!11 = !{!"user_lock_res", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !7, i64 32}
!14 = !{!11, !12, i64 0}
!15 = !{!11, !12, i64 8}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !7, i64 24}
!18 = !{!11, !7, i64 28}
| linux_fs_ocfs2_dlmfs_extr_userdlm.c_user_ast |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_polaris10_smumgr.c_polaris10_get_sclk_range_table.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_polaris10_smumgr.c_polaris10_get_sclk_range_table.c"
target datalayout = "e-m:e-p270:32:32-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.pp_atom_ctrl_sclk_range_table = type { ptr, %struct.TYPE_9__ }
%struct.TYPE_9__ = type { %struct.TYPE_10__ }
%struct.TYPE_10__ = type { i32 }
%struct.pp_hwmgr = type { i64, i64 }
%struct.TYPE_11__ = type { i64, i64, i64, i64, i32 }
%struct.TYPE_13__ = type { i64, i64, i64, i64, i32 }
%struct.TYPE_15__ = type { i64, i64, i64, i64, i32 }
%struct.TYPE_12__ = type { i64, i64 }
@NUM_SCLK_RANGE = dso_local local_unnamed_addr global i64 0, align 8
@Range_Table = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @polaris10_get_sclk_range_table], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @polaris10_get_sclk_range_table(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = alloca %struct.pp_atom_ctrl_sclk_range_table, align 8
%4 = getelementptr inbounds %struct.pp_hwmgr, ptr %0, i64 0, i32 1
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = inttoptr i64 %5 to ptr
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
%7 = load i64, ptr %0, align 8, !tbaa !10
%8 = inttoptr i64 %7 to ptr
%9 = tail call i64 @amdgpu_asic_get_xclk(ptr noundef %8) #4
%10 = call i64 @atomctrl_get_smc_sclk_range_table(ptr noundef nonnull %0, ptr noundef nonnull %3) #4
%11 = icmp eq i64 %10, 0
%12 = load i64, ptr @NUM_SCLK_RANGE, align 8, !tbaa !11
%13 = icmp eq i64 %12, 0
br i1 %11, label %15, label %14
14: ; preds = %2
br i1 %13, label %83, label %45
15: ; preds = %2
br i1 %13, label %83, label %16
16: ; preds = %15, %16
%17 = phi i64 [ %42, %16 ], [ 0, %15 ]
%18 = load ptr, ptr %3, align 8, !tbaa !12
%19 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17, i32 4
%20 = load i32, ptr %19, align 8, !tbaa !18
%21 = load ptr, ptr %1, align 8, !tbaa !20
%22 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17, i32 4
store i32 %20, ptr %22, align 8, !tbaa !22
%23 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17
%24 = load i64, ptr %23, align 8, !tbaa !24
%25 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17
store i64 %24, ptr %25, align 8, !tbaa !25
%26 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17, i32 1
%27 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17, i32 1
%28 = load <2 x i64>, ptr %26, align 8, !tbaa !11
store <2 x i64> %28, ptr %27, align 8, !tbaa !11
%29 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17, i32 3
%30 = load i64, ptr %29, align 8, !tbaa !26
%31 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17, i32 3
store i64 %30, ptr %31, align 8, !tbaa !27
%32 = extractelement <2 x i64> %28, i64 0
%33 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %32) #4
%34 = load ptr, ptr %1, align 8, !tbaa !20
%35 = getelementptr inbounds %struct.TYPE_13__, ptr %34, i64 %17, i32 2
%36 = load i64, ptr %35, align 8, !tbaa !28
%37 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %36) #4
%38 = load ptr, ptr %1, align 8, !tbaa !20
%39 = getelementptr inbounds %struct.TYPE_13__, ptr %38, i64 %17, i32 3
%40 = load i64, ptr %39, align 8, !tbaa !27
%41 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %40) #4
%42 = add nuw i64 %17, 1
%43 = load i64, ptr @NUM_SCLK_RANGE, align 8, !tbaa !11
%44 = icmp ult i64 %42, %43
br i1 %44, label %16, label %83, !llvm.loop !29
45: ; preds = %14, %45
%46 = phi i64 [ %80, %45 ], [ 0, %14 ]
%47 = load ptr, ptr @Range_Table, align 8, !tbaa !31
%48 = getelementptr inbounds %struct.TYPE_15__, ptr %47, i64 %46
%49 = load i64, ptr %48, align 8, !tbaa !32
%50 = mul i64 %49, %9
%51 = getelementptr inbounds %struct.TYPE_15__, ptr %47, i64 %46, i32 1
%52 = load i64, ptr %51, align 8, !tbaa !34
%53 = lshr i64 %50, %52
%54 = load ptr, ptr %6, align 8, !tbaa !35
%55 = getelementptr inbounds %struct.TYPE_12__, ptr %54, i64 %46
store i64 %53, ptr %55, align 8, !tbaa !37
%56 = getelementptr inbounds %struct.TYPE_15__, ptr %47, i64 %46, i32 2
%57 = load i64, ptr %56, align 8, !tbaa !39
%58 = mul i64 %57, %9
%59 = lshr i64 %58, %52
%60 = getelementptr inbounds %struct.TYPE_12__, ptr %54, i64 %46, i32 1
store i64 %59, ptr %60, align 8, !tbaa !40
%61 = getelementptr inbounds %struct.TYPE_15__, ptr %47, i64 %46, i32 4
%62 = load i32, ptr %61, align 8, !tbaa !41
%63 = load ptr, ptr %1, align 8, !tbaa !20
%64 = getelementptr inbounds %struct.TYPE_13__, ptr %63, i64 %46, i32 4
store i32 %62, ptr %64, align 8, !tbaa !22
%65 = getelementptr inbounds %struct.TYPE_13__, ptr %63, i64 %46
store i64 %52, ptr %65, align 8, !tbaa !25
%66 = getelementptr inbounds %struct.TYPE_15__, ptr %47, i64 %46, i32 3
%67 = load i64, ptr %66, align 8, !tbaa !42
%68 = getelementptr inbounds %struct.TYPE_13__, ptr %63, i64 %46, i32 1
store i64 %67, ptr %68, align 8, !tbaa !43
%69 = getelementptr inbounds %struct.TYPE_13__, ptr %63, i64 %46, i32 2
store i64 %57, ptr %69, align 8, !tbaa !28
%70 = getelementptr inbounds %struct.TYPE_13__, ptr %63, i64 %46, i32 3
store i64 %49, ptr %70, align 8, !tbaa !27
%71 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %67) #4
%72 = load ptr, ptr %1, align 8, !tbaa !20
%73 = getelementptr inbounds %struct.TYPE_13__, ptr %72, i64 %46, i32 2
%74 = load i64, ptr %73, align 8, !tbaa !28
%75 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %74) #4
%76 = load ptr, ptr %1, align 8, !tbaa !20
%77 = getelementptr inbounds %struct.TYPE_13__, ptr %76, i64 %46, i32 3
%78 = load i64, ptr %77, align 8, !tbaa !27
%79 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %78) #4
%80 = add nuw i64 %46, 1
%81 = load i64, ptr @NUM_SCLK_RANGE, align 8, !tbaa !11
%82 = icmp ult i64 %80, %81
br i1 %82, label %45, label %83, !llvm.loop !44
83: ; preds = %45, %16, %14, %15
call void @llvm.lifetime.end.p0(i64 16, 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i64 @amdgpu_asic_get_xclk(ptr noundef) local_unnamed_addr #3
declare i64 @atomctrl_get_smc_sclk_range_table(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 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 8}
!6 = !{!"pp_hwmgr", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"pp_atom_ctrl_sclk_range_table", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"TYPE_9__", !16, i64 0}
!16 = !{!"TYPE_10__", !17, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!19, !17, i64 32}
!19 = !{!"TYPE_11__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32}
!20 = !{!21, !14, i64 0}
!21 = !{!"TYPE_14__", !14, i64 0}
!22 = !{!23, !17, i64 32}
!23 = !{!"TYPE_13__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32}
!24 = !{!19, !7, i64 0}
!25 = !{!23, !7, i64 0}
!26 = !{!19, !7, i64 24}
!27 = !{!23, !7, i64 24}
!28 = !{!23, !7, i64 16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!14, !14, i64 0}
!32 = !{!33, !7, i64 0}
!33 = !{!"TYPE_15__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32}
!34 = !{!33, !7, i64 8}
!35 = !{!36, !14, i64 0}
!36 = !{!"polaris10_smumgr", !14, i64 0}
!37 = !{!38, !7, i64 0}
!38 = !{!"TYPE_12__", !7, i64 0, !7, i64 8}
!39 = !{!33, !7, i64 16}
!40 = !{!38, !7, i64 8}
!41 = !{!33, !17, i64 32}
!42 = !{!33, !7, i64 24}
!43 = !{!23, !7, i64 8}
!44 = distinct !{!44, !30}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_polaris10_smumgr.c_polaris10_get_sclk_range_table.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_polaris10_smumgr.c_polaris10_get_sclk_range_table.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.pp_atom_ctrl_sclk_range_table = type { ptr, %struct.TYPE_9__ }
%struct.TYPE_9__ = type { %struct.TYPE_10__ }
%struct.TYPE_10__ = type { i32 }
%struct.TYPE_11__ = type { i64, i64, i64, i64, i32 }
%struct.TYPE_13__ = type { i64, i64, i64, i64, i32 }
%struct.TYPE_15__ = type { i64, i64, i64, i64, i32 }
%struct.TYPE_12__ = type { i64, i64 }
@NUM_SCLK_RANGE = common local_unnamed_addr global i64 0, align 8
@Range_Table = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @polaris10_get_sclk_range_table], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @polaris10_get_sclk_range_table(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = alloca %struct.pp_atom_ctrl_sclk_range_table, align 8
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = inttoptr i64 %5 to ptr
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
%7 = load i64, ptr %0, align 8, !tbaa !11
%8 = inttoptr i64 %7 to ptr
%9 = tail call i64 @amdgpu_asic_get_xclk(ptr noundef %8) #4
%10 = call i64 @atomctrl_get_smc_sclk_range_table(ptr noundef nonnull %0, ptr noundef nonnull %3) #4
%11 = icmp eq i64 %10, 0
%12 = load i64, ptr @NUM_SCLK_RANGE, align 8, !tbaa !12
%13 = icmp eq i64 %12, 0
br i1 %11, label %15, label %14
14: ; preds = %2
br i1 %13, label %80, label %42
15: ; preds = %2
br i1 %13, label %80, label %16
16: ; preds = %15, %16
%17 = phi i64 [ %39, %16 ], [ 0, %15 ]
%18 = load ptr, ptr %3, align 8, !tbaa !13
%19 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17, i32 4
%20 = load i32, ptr %19, align 8, !tbaa !19
%21 = load ptr, ptr %1, align 8, !tbaa !21
%22 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17, i32 4
store i32 %20, ptr %22, align 8, !tbaa !23
%23 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17
%24 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17
%25 = load <2 x i64>, ptr %23, align 8, !tbaa !12
store <2 x i64> %25, ptr %24, align 8, !tbaa !12
%26 = getelementptr inbounds %struct.TYPE_11__, ptr %18, i64 %17, i32 2
%27 = getelementptr inbounds %struct.TYPE_13__, ptr %21, i64 %17, i32 2
%28 = load <2 x i64>, ptr %26, align 8, !tbaa !12
store <2 x i64> %28, ptr %27, align 8, !tbaa !12
%29 = extractelement <2 x i64> %25, i64 1
%30 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %29) #4
%31 = load ptr, ptr %1, align 8, !tbaa !21
%32 = getelementptr inbounds %struct.TYPE_13__, ptr %31, i64 %17, i32 2
%33 = load i64, ptr %32, align 8, !tbaa !25
%34 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %33) #4
%35 = load ptr, ptr %1, align 8, !tbaa !21
%36 = getelementptr inbounds %struct.TYPE_13__, ptr %35, i64 %17, i32 3
%37 = load i64, ptr %36, align 8, !tbaa !26
%38 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %37) #4
%39 = add nuw i64 %17, 1
%40 = load i64, ptr @NUM_SCLK_RANGE, align 8, !tbaa !12
%41 = icmp ult i64 %39, %40
br i1 %41, label %16, label %80, !llvm.loop !27
42: ; preds = %14, %42
%43 = phi i64 [ %77, %42 ], [ 0, %14 ]
%44 = load ptr, ptr @Range_Table, align 8, !tbaa !29
%45 = getelementptr inbounds %struct.TYPE_15__, ptr %44, i64 %43
%46 = load i64, ptr %45, align 8, !tbaa !30
%47 = mul i64 %46, %9
%48 = getelementptr inbounds i8, ptr %45, i64 8
%49 = load i64, ptr %48, align 8, !tbaa !32
%50 = lshr i64 %47, %49
%51 = load ptr, ptr %6, align 8, !tbaa !33
%52 = getelementptr inbounds %struct.TYPE_12__, ptr %51, i64 %43
store i64 %50, ptr %52, align 8, !tbaa !35
%53 = getelementptr inbounds i8, ptr %45, i64 16
%54 = load i64, ptr %53, align 8, !tbaa !37
%55 = mul i64 %54, %9
%56 = lshr i64 %55, %49
%57 = getelementptr inbounds %struct.TYPE_12__, ptr %51, i64 %43, i32 1
store i64 %56, ptr %57, align 8, !tbaa !38
%58 = getelementptr inbounds %struct.TYPE_15__, ptr %44, i64 %43, i32 4
%59 = load i32, ptr %58, align 8, !tbaa !39
%60 = load ptr, ptr %1, align 8, !tbaa !21
%61 = getelementptr inbounds %struct.TYPE_13__, ptr %60, i64 %43, i32 4
store i32 %59, ptr %61, align 8, !tbaa !23
%62 = getelementptr inbounds %struct.TYPE_13__, ptr %60, i64 %43
store i64 %49, ptr %62, align 8, !tbaa !40
%63 = getelementptr inbounds %struct.TYPE_15__, ptr %44, i64 %43, i32 3
%64 = load i64, ptr %63, align 8, !tbaa !41
%65 = getelementptr inbounds %struct.TYPE_13__, ptr %60, i64 %43, i32 1
store i64 %64, ptr %65, align 8, !tbaa !42
%66 = getelementptr inbounds %struct.TYPE_13__, ptr %60, i64 %43, i32 2
store i64 %54, ptr %66, align 8, !tbaa !25
%67 = getelementptr inbounds %struct.TYPE_13__, ptr %60, i64 %43, i32 3
store i64 %46, ptr %67, align 8, !tbaa !26
%68 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %64) #4
%69 = load ptr, ptr %1, align 8, !tbaa !21
%70 = getelementptr inbounds %struct.TYPE_13__, ptr %69, i64 %43, i32 2
%71 = load i64, ptr %70, align 8, !tbaa !25
%72 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %71) #4
%73 = load ptr, ptr %1, align 8, !tbaa !21
%74 = getelementptr inbounds %struct.TYPE_13__, ptr %73, i64 %43, i32 3
%75 = load i64, ptr %74, align 8, !tbaa !26
%76 = call i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 noundef %75) #4
%77 = add nuw i64 %43, 1
%78 = load i64, ptr @NUM_SCLK_RANGE, align 8, !tbaa !12
%79 = icmp ult i64 %77, %78
br i1 %79, label %42, label %80, !llvm.loop !43
80: ; preds = %42, %16, %14, %15
call void @llvm.lifetime.end.p0(i64 16, 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i64 @amdgpu_asic_get_xclk(ptr noundef) local_unnamed_addr #3
declare i64 @atomctrl_get_smc_sclk_range_table(ptr noundef, ptr noundef) local_unnamed_addr #3
declare i32 @CONVERT_FROM_HOST_TO_SMC_US(i64 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 8}
!7 = !{!"pp_hwmgr", !8, i64 0, !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"pp_atom_ctrl_sclk_range_table", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"TYPE_9__", !17, i64 0}
!17 = !{!"TYPE_10__", !18, i64 0}
!18 = !{!"int", !9, i64 0}
!19 = !{!20, !18, i64 32}
!20 = !{!"TYPE_11__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !18, i64 32}
!21 = !{!22, !15, i64 0}
!22 = !{!"TYPE_14__", !15, i64 0}
!23 = !{!24, !18, i64 32}
!24 = !{!"TYPE_13__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !18, i64 32}
!25 = !{!24, !8, i64 16}
!26 = !{!24, !8, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!15, !15, i64 0}
!30 = !{!31, !8, i64 0}
!31 = !{!"TYPE_15__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !18, i64 32}
!32 = !{!31, !8, i64 8}
!33 = !{!34, !15, i64 0}
!34 = !{!"polaris10_smumgr", !15, i64 0}
!35 = !{!36, !8, i64 0}
!36 = !{!"TYPE_12__", !8, i64 0, !8, i64 8}
!37 = !{!31, !8, i64 16}
!38 = !{!36, !8, i64 8}
!39 = !{!31, !18, i64 32}
!40 = !{!24, !8, i64 0}
!41 = !{!31, !8, i64 24}
!42 = !{!24, !8, i64 8}
!43 = distinct !{!43, !28}
| linux_drivers_gpu_drm_amd_powerplay_smumgr_extr_polaris10_smumgr.c_polaris10_get_sclk_range_table |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/ixgb/extr_ixgb_ethtool.c_ixgb_set_rx_csum.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/ixgb/extr_ixgb_ethtool.c_ixgb_set_rx_csum.c"
target datalayout = "e-m:e-p270:32:32-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 @ixgb_set_rx_csum], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @ixgb_set_rx_csum(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @netdev_priv(ptr noundef %0) #2
store i32 %1, ptr %3, align 4, !tbaa !5
%4 = tail call i64 @netif_running(ptr noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = tail call i32 @ixgb_down(ptr noundef nonnull %3, i32 noundef 1) #2
%8 = tail call i32 @ixgb_up(ptr noundef nonnull %3) #2
%9 = tail call i32 @ixgb_set_speed_duplex(ptr noundef %0) #2
br label %12
10: ; preds = %2
%11 = tail call i32 @ixgb_reset(ptr noundef nonnull %3) #2
br label %12
12: ; preds = %10, %6
ret i32 0
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i64 @netif_running(ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_down(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ixgb_up(ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_set_speed_duplex(ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_reset(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 = !{!"ixgb_adapter", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/ixgb/extr_ixgb_ethtool.c_ixgb_set_rx_csum.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/ixgb/extr_ixgb_ethtool.c_ixgb_set_rx_csum.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 @ixgb_set_rx_csum], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @ixgb_set_rx_csum(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @netdev_priv(ptr noundef %0) #2
store i32 %1, ptr %3, align 4, !tbaa !6
%4 = tail call i64 @netif_running(ptr noundef %0) #2
%5 = icmp eq i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = tail call i32 @ixgb_down(ptr noundef nonnull %3, i32 noundef 1) #2
%8 = tail call i32 @ixgb_up(ptr noundef nonnull %3) #2
%9 = tail call i32 @ixgb_set_speed_duplex(ptr noundef %0) #2
br label %12
10: ; preds = %2
%11 = tail call i32 @ixgb_reset(ptr noundef nonnull %3) #2
br label %12
12: ; preds = %10, %6
ret i32 0
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i64 @netif_running(ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_down(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ixgb_up(ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_set_speed_duplex(ptr noundef) local_unnamed_addr #1
declare i32 @ixgb_reset(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 = !{!"ixgb_adapter", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_drivers_net_ixgb_extr_ixgb_ethtool.c_ixgb_set_rx_csum |
; ModuleID = 'AnghaBench/freebsd/sys/powerpc/ofw/extr_rtas.c_rtas_token_lookup.c'
source_filename = "AnghaBench/freebsd/sys/powerpc/ofw/extr_rtas.c_rtas_token_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"
@rtas = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @rtas_token_lookup(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i32 (...) @rtas_exists() #3
%4 = icmp eq i32 %3, 0
br i1 %4, label %11, label %5
5: ; preds = %1
%6 = load i32, ptr @rtas, align 4, !tbaa !5
%7 = call i32 @OF_getencprop(i32 noundef %6, ptr noundef %0, ptr noundef nonnull %2, i32 noundef 4) #3
%8 = icmp eq i32 %7, -1
%9 = load i32, ptr %2, align 4
%10 = select i1 %8, i32 -1, i32 %9
br label %11
11: ; preds = %5, %1
%12 = phi i32 [ -1, %1 ], [ %10, %5 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 %12
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @rtas_exists(...) local_unnamed_addr #2
declare i32 @OF_getencprop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/sys/powerpc/ofw/extr_rtas.c_rtas_token_lookup.c'
source_filename = "AnghaBench/freebsd/sys/powerpc/ofw/extr_rtas.c_rtas_token_lookup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@rtas = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @rtas_token_lookup(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = tail call i32 @rtas_exists() #3
%4 = icmp eq i32 %3, 0
br i1 %4, label %11, label %5
5: ; preds = %1
%6 = load i32, ptr @rtas, align 4, !tbaa !6
%7 = call i32 @OF_getencprop(i32 noundef %6, ptr noundef %0, ptr noundef nonnull %2, i32 noundef 4) #3
%8 = icmp eq i32 %7, -1
%9 = load i32, ptr %2, align 4
%10 = select i1 %8, i32 -1, i32 %9
br label %11
11: ; preds = %5, %1
%12 = phi i32 [ -1, %1 ], [ %10, %5 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 %12
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @rtas_exists(...) local_unnamed_addr #2
declare i32 @OF_getencprop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| freebsd_sys_powerpc_ofw_extr_rtas.c_rtas_token_lookup |
; ModuleID = 'AnghaBench/linux/arch/powerpc/platforms/pseries/extr_dtl.c_dtl_current_index.c'
source_filename = "AnghaBench/linux/arch/powerpc/platforms/pseries/extr_dtl.c_dtl_current_index.c"
target datalayout = "e-m:e-p270:32:32-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 @dtl_current_index], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @dtl_current_index(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = tail call i32 @lppaca_of(i32 noundef %2) #2
%4 = tail call i32 @be64_to_cpu(i32 noundef %3) #2
ret i32 %4
}
declare i32 @be64_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @lppaca_of(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 = !{!"dtl", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/arch/powerpc/platforms/pseries/extr_dtl.c_dtl_current_index.c'
source_filename = "AnghaBench/linux/arch/powerpc/platforms/pseries/extr_dtl.c_dtl_current_index.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 @dtl_current_index], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @dtl_current_index(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = tail call i32 @lppaca_of(i32 noundef %2) #2
%4 = tail call i32 @be64_to_cpu(i32 noundef %3) #2
ret i32 %4
}
declare i32 @be64_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @lppaca_of(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 = !{!"dtl", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_arch_powerpc_platforms_pseries_extr_dtl.c_dtl_current_index |
; ModuleID = 'AnghaBench/linux/drivers/base/power/extr_wakeirq.c_dev_pm_clear_wake_irq.c'
source_filename = "AnghaBench/linux/drivers/base/power/extr_wakeirq.c_dev_pm_clear_wake_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.TYPE_2__ = type { i32, ptr }
%struct.wake_irq = type { i32, ptr, i32 }
@WAKE_IRQ_DEDICATED_ALLOCATED = dso_local local_unnamed_addr global i32 0, align 4
@WAKE_IRQ_DEDICATED_MASK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @dev_pm_clear_wake_irq(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.TYPE_2__, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %0, i64 noundef undef) #2
%7 = tail call i32 @device_wakeup_detach_irq(ptr noundef nonnull %0) #2
store ptr null, ptr %2, align 8, !tbaa !5
%8 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %0, i64 noundef undef) #2
%9 = load i32, ptr %3, align 8, !tbaa !12
%10 = load i32, ptr @WAKE_IRQ_DEDICATED_ALLOCATED, align 4, !tbaa !14
%11 = and i32 %10, %9
%12 = icmp eq i32 %11, 0
br i1 %12, label %21, label %13
13: ; preds = %5
%14 = getelementptr inbounds %struct.wake_irq, ptr %3, i64 0, i32 2
%15 = load i32, ptr %14, align 8, !tbaa !15
%16 = tail call i32 @free_irq(i32 noundef %15, ptr noundef nonnull %3) #2
%17 = load i32, ptr @WAKE_IRQ_DEDICATED_MASK, align 4, !tbaa !14
%18 = xor i32 %17, -1
%19 = load i32, ptr %3, align 8, !tbaa !12
%20 = and i32 %19, %18
store i32 %20, ptr %3, align 8, !tbaa !12
br label %21
21: ; preds = %13, %5
%22 = getelementptr inbounds %struct.wake_irq, ptr %3, i64 0, i32 1
%23 = load ptr, ptr %22, align 8, !tbaa !16
%24 = tail call i32 @kfree(ptr noundef %23) #2
%25 = tail call i32 @kfree(ptr noundef nonnull %3) #2
br label %26
26: ; preds = %1, %21
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @device_wakeup_detach_irq(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @free_irq(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 8}
!6 = !{!"device", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"wake_irq", !8, i64 0, !11, i64 8, !8, i64 16}
!14 = !{!8, !8, i64 0}
!15 = !{!13, !8, i64 16}
!16 = !{!13, !11, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/base/power/extr_wakeirq.c_dev_pm_clear_wake_irq.c'
source_filename = "AnghaBench/linux/drivers/base/power/extr_wakeirq.c_dev_pm_clear_wake_irq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WAKE_IRQ_DEDICATED_ALLOCATED = common local_unnamed_addr global i32 0, align 4
@WAKE_IRQ_DEDICATED_MASK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @dev_pm_clear_wake_irq(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %0, i64 noundef undef) #2
%7 = tail call i32 @device_wakeup_detach_irq(ptr noundef nonnull %0) #2
store ptr null, ptr %2, align 8, !tbaa !6
%8 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %0, i64 noundef undef) #2
%9 = load i32, ptr %3, align 8, !tbaa !13
%10 = load i32, ptr @WAKE_IRQ_DEDICATED_ALLOCATED, align 4, !tbaa !15
%11 = and i32 %10, %9
%12 = icmp eq i32 %11, 0
br i1 %12, label %21, label %13
13: ; preds = %5
%14 = getelementptr inbounds i8, ptr %3, i64 16
%15 = load i32, ptr %14, align 8, !tbaa !16
%16 = tail call i32 @free_irq(i32 noundef %15, ptr noundef nonnull %3) #2
%17 = load i32, ptr @WAKE_IRQ_DEDICATED_MASK, align 4, !tbaa !15
%18 = xor i32 %17, -1
%19 = load i32, ptr %3, align 8, !tbaa !13
%20 = and i32 %19, %18
store i32 %20, ptr %3, align 8, !tbaa !13
br label %21
21: ; preds = %13, %5
%22 = getelementptr inbounds i8, ptr %3, i64 8
%23 = load ptr, ptr %22, align 8, !tbaa !17
%24 = tail call i32 @kfree(ptr noundef %23) #2
%25 = tail call i32 @kfree(ptr noundef nonnull %3) #2
br label %26
26: ; preds = %1, %21
ret void
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @device_wakeup_detach_irq(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @free_irq(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 8}
!7 = !{!"device", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0, !12, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !9, i64 0}
!14 = !{!"wake_irq", !9, i64 0, !12, i64 8, !9, i64 16}
!15 = !{!9, !9, i64 0}
!16 = !{!14, !9, i64 16}
!17 = !{!14, !12, i64 8}
| linux_drivers_base_power_extr_wakeirq.c_dev_pm_clear_wake_irq |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/selftests/extr_..i915_vma.h_i915_vma_tryget.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/selftests/extr_..i915_vma.h_i915_vma_tryget.c"
target datalayout = "e-m:e-p270:32:32-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 @i915_vma_tryget], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal ptr @i915_vma_tryget(ptr noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @kref_get_unless_zero(ptr noundef %2) #2
%4 = tail call i64 @likely(i32 noundef %3) #2
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, ptr null, ptr %0
ret ptr %6
}
declare i64 @likely(i32 noundef) local_unnamed_addr #1
declare i32 @kref_get_unless_zero(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 0}
!6 = !{!"i915_vma", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/selftests/extr_..i915_vma.h_i915_vma_tryget.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/selftests/extr_..i915_vma.h_i915_vma_tryget.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 @i915_vma_tryget], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal ptr @i915_vma_tryget(ptr noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @kref_get_unless_zero(ptr noundef %2) #2
%4 = tail call i64 @likely(i32 noundef %3) #2
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, ptr null, ptr %0
ret ptr %6
}
declare i64 @likely(i32 noundef) local_unnamed_addr #1
declare i32 @kref_get_unless_zero(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 0}
!7 = !{!"i915_vma", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_i915_selftests_extr_..i915_vma.h_i915_vma_tryget |
; ModuleID = 'AnghaBench/linux/drivers/hv/extr_ring_buffer.c_hv_ringbuffer_read.c'
source_filename = "AnghaBench/linux/drivers/hv/extr_ring_buffer.c_hv_ringbuffer_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.vmpacket_descriptor = type { i32, i32, i32 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@ENOBUFS = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @hv_ringbuffer_read(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = icmp eq i32 %2, 0
%8 = zext i1 %7 to i32
%9 = tail call i64 @unlikely(i32 noundef %8) #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %6
%12 = load i32, ptr @EINVAL, align 4, !tbaa !5
%13 = sub nsw i32 0, %12
br label %43
14: ; preds = %6
store i32 0, ptr %3, align 4, !tbaa !5
store i32 0, ptr %4, align 4, !tbaa !5
%15 = tail call ptr @hv_pkt_iter_first(ptr noundef %0) #2
%16 = icmp eq ptr %15, null
br i1 %16, label %43, label %17
17: ; preds = %14
%18 = icmp eq i32 %5, 0
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load i32, ptr %15, align 4, !tbaa !9
%21 = shl i32 %20, 3
br label %22
22: ; preds = %17, %19
%23 = phi i32 [ %21, %19 ], [ 0, %17 ]
%24 = getelementptr inbounds %struct.vmpacket_descriptor, ptr %15, i64 0, i32 1
%25 = load i32, ptr %24, align 4, !tbaa !11
%26 = shl i32 %25, 3
%27 = sub nsw i32 %26, %23
store i32 %27, ptr %3, align 4, !tbaa !5
%28 = getelementptr inbounds %struct.vmpacket_descriptor, ptr %15, i64 0, i32 2
%29 = load i32, ptr %28, align 4, !tbaa !12
store i32 %29, ptr %4, align 4, !tbaa !5
%30 = icmp sgt i32 %27, %2
%31 = zext i1 %30 to i32
%32 = tail call i64 @unlikely(i32 noundef %31) #2
%33 = icmp eq i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %22
%35 = load i32, ptr @ENOBUFS, align 4, !tbaa !5
%36 = sub nsw i32 0, %35
br label %43
37: ; preds = %22
%38 = sext i32 %23 to i64
%39 = getelementptr inbounds i8, ptr %15, i64 %38
%40 = tail call i32 @memcpy(ptr noundef %1, ptr noundef nonnull %39, i32 noundef %27) #2
%41 = tail call i32 @__hv_pkt_iter_next(ptr noundef %0, ptr noundef nonnull %15) #2
%42 = tail call i32 @hv_pkt_iter_close(ptr noundef %0) #2
br label %43
43: ; preds = %14, %37, %34, %11
%44 = phi i32 [ %13, %11 ], [ %36, %34 ], [ 0, %37 ], [ 0, %14 ]
ret i32 %44
}
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare ptr @hv_pkt_iter_first(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__hv_pkt_iter_next(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @hv_pkt_iter_close(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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 = !{!"vmpacket_descriptor", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/hv/extr_ring_buffer.c_hv_ringbuffer_read.c'
source_filename = "AnghaBench/linux/drivers/hv/extr_ring_buffer.c_hv_ringbuffer_read.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
@ENOBUFS = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @hv_ringbuffer_read(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, i32 noundef %5) local_unnamed_addr #0 {
%7 = icmp eq i32 %2, 0
%8 = zext i1 %7 to i32
%9 = tail call i64 @unlikely(i32 noundef %8) #2
%10 = icmp eq i64 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %6
%12 = load i32, ptr @EINVAL, align 4, !tbaa !6
%13 = sub nsw i32 0, %12
br label %43
14: ; preds = %6
store i32 0, ptr %3, align 4, !tbaa !6
store i32 0, ptr %4, align 4, !tbaa !6
%15 = tail call ptr @hv_pkt_iter_first(ptr noundef %0) #2
%16 = icmp eq ptr %15, null
br i1 %16, label %43, label %17
17: ; preds = %14
%18 = icmp eq i32 %5, 0
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load i32, ptr %15, align 4, !tbaa !10
%21 = shl i32 %20, 3
br label %22
22: ; preds = %17, %19
%23 = phi i32 [ %21, %19 ], [ 0, %17 ]
%24 = getelementptr inbounds i8, ptr %15, i64 4
%25 = load i32, ptr %24, align 4, !tbaa !12
%26 = shl i32 %25, 3
%27 = sub nsw i32 %26, %23
store i32 %27, ptr %3, align 4, !tbaa !6
%28 = getelementptr inbounds i8, ptr %15, i64 8
%29 = load i32, ptr %28, align 4, !tbaa !13
store i32 %29, ptr %4, align 4, !tbaa !6
%30 = icmp sgt i32 %27, %2
%31 = zext i1 %30 to i32
%32 = tail call i64 @unlikely(i32 noundef %31) #2
%33 = icmp eq i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %22
%35 = load i32, ptr @ENOBUFS, align 4, !tbaa !6
%36 = sub nsw i32 0, %35
br label %43
37: ; preds = %22
%38 = sext i32 %23 to i64
%39 = getelementptr inbounds i8, ptr %15, i64 %38
%40 = tail call i32 @memcpy(ptr noundef %1, ptr noundef nonnull %39, i32 noundef %27) #2
%41 = tail call i32 @__hv_pkt_iter_next(ptr noundef %0, ptr noundef nonnull %15) #2
%42 = tail call i32 @hv_pkt_iter_close(ptr noundef %0) #2
br label %43
43: ; preds = %14, %37, %34, %11
%44 = phi i32 [ %13, %11 ], [ %36, %34 ], [ 0, %37 ], [ 0, %14 ]
ret i32 %44
}
declare i64 @unlikely(i32 noundef) local_unnamed_addr #1
declare ptr @hv_pkt_iter_first(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @__hv_pkt_iter_next(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @hv_pkt_iter_close(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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 = !{!"vmpacket_descriptor", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!11, !7, i64 4}
!13 = !{!11, !7, i64 8}
| linux_drivers_hv_extr_ring_buffer.c_hv_ringbuffer_read |
; ModuleID = 'AnghaBench/linux/net/ieee802154/6lowpan/extr_tx.c_lowpan_xmit.c'
source_filename = "AnghaBench/linux/net/ieee802154/6lowpan/extr_tx.c_lowpan_xmit.c"
target datalayout = "e-m:e-p270:32:32-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.ieee802154_hdr = type { i32 }
%struct.net_device = type { i64, i64, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32, i32 }
%struct.sk_buff = type { i64, i32 }
@.str = private unnamed_addr constant [14 x i8] c"package xmit\0A\00", align 1
@IPV6_MIN_MTU = dso_local local_unnamed_addr global i64 0, align 8
@GFP_ATOMIC = dso_local local_unnamed_addr global i32 0, align 4
@NET_XMIT_DROP = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [43 x i8] c"frame is too big, fragmentation is needed\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i64 @lowpan_xmit(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.ieee802154_hdr, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = tail call i32 @pr_debug(ptr noundef nonnull @.str) #3
%7 = load i64, ptr %0, align 8, !tbaa !5
%8 = load i64, ptr @IPV6_MIN_MTU, align 8, !tbaa !11
%9 = icmp sgt i64 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @WARN_ON_ONCE(i32 noundef %10) #3
%12 = tail call i64 @skb_headroom(ptr noundef nonnull %0) #3
%13 = load i64, ptr %1, align 8, !tbaa !12
%14 = icmp slt i64 %12, %13
br i1 %14, label %21, label %15
15: ; preds = %2
%16 = tail call i64 @skb_tailroom(ptr noundef nonnull %0) #3
%17 = getelementptr inbounds %struct.net_device, ptr %1, i64 0, i32 1
%18 = load i64, ptr %17, align 8, !tbaa !15
%19 = icmp slt i64 %16, %18
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %15, %2
%22 = phi i32 [ 1, %2 ], [ %20, %15 ]
%23 = tail call i64 @unlikely(i32 noundef %22) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %38, label %25
25: ; preds = %21
%26 = load i64, ptr %1, align 8, !tbaa !12
%27 = getelementptr inbounds %struct.net_device, ptr %1, i64 0, i32 1
%28 = load i64, ptr %27, align 8, !tbaa !15
%29 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !16
%30 = tail call ptr @skb_copy_expand(ptr noundef nonnull %0, i64 noundef %26, i64 noundef %28, i32 noundef %29) #3
%31 = tail call i64 @likely(ptr noundef %30) #3
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %25
%34 = tail call i32 @kfree_skb(ptr noundef nonnull %0) #3
%35 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !11
br label %82
36: ; preds = %25
%37 = tail call i32 @consume_skb(ptr noundef nonnull %0) #3
br label %44
38: ; preds = %21
%39 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !16
%40 = tail call ptr @skb_unshare(ptr noundef nonnull %0, i32 noundef %39) #3
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !11
br label %82
44: ; preds = %36, %38
%45 = phi ptr [ %30, %36 ], [ %40, %38 ]
%46 = call i32 @lowpan_header(ptr noundef %45, ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull %5) #3
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = call i32 @kfree_skb(ptr noundef %45) #3
%50 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !11
br label %82
51: ; preds = %44
%52 = call i64 @ieee802154_hdr_peek(ptr noundef %45, ptr noundef nonnull %3) #3
%53 = icmp slt i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = call i32 @kfree_skb(ptr noundef %45) #3
%56 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !11
br label %82
57: ; preds = %51
%58 = call i32 @ieee802154_max_payload(ptr noundef nonnull %3) #3
%59 = call i32 @skb_tail_pointer(ptr noundef %45) #3
%60 = call i32 @skb_network_header(ptr noundef %45) #3
%61 = sub nsw i32 %59, %60
%62 = icmp sgt i32 %61, %58
br i1 %62, label %74, label %63
63: ; preds = %57
%64 = call ptr @lowpan_802154_dev(ptr noundef nonnull %1) #3
%65 = load i32, ptr %64, align 4, !tbaa !17
%66 = getelementptr inbounds %struct.sk_buff, ptr %45, i64 0, i32 1
store i32 %65, ptr %66, align 8, !tbaa !19
%67 = getelementptr inbounds %struct.net_device, ptr %1, i64 0, i32 2
%68 = load i64, ptr %4, align 8, !tbaa !11
%69 = trunc i64 %68 to i32
%70 = load <2 x i32>, ptr %67, align 8, !tbaa !16
%71 = insertelement <2 x i32> <i32 poison, i32 1>, i32 %69, i64 0
%72 = add <2 x i32> %70, %71
store <2 x i32> %72, ptr %67, align 8, !tbaa !16
%73 = call i64 @dev_queue_xmit(ptr noundef %45) #3
br label %82
74: ; preds = %57
%75 = call i32 @pr_debug(ptr noundef nonnull @.str.1) #3
%76 = load i64, ptr %4, align 8, !tbaa !11
%77 = load i64, ptr %5, align 8, !tbaa !11
%78 = call i64 @lowpan_xmit_fragmented(ptr noundef %45, ptr noundef nonnull %1, ptr noundef nonnull %3, i64 noundef %76, i64 noundef %77) #3
%79 = icmp slt i64 %78, 0
%80 = load i64, ptr @NET_XMIT_DROP, align 8
%81 = select i1 %79, i64 %80, i64 %78
br label %82
82: ; preds = %33, %74, %63, %54, %48, %42
%83 = phi i64 [ %50, %48 ], [ %56, %54 ], [ %73, %63 ], [ %81, %74 ], [ %43, %42 ], [ %35, %33 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i64 %83
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @pr_debug(ptr noundef) local_unnamed_addr #2
declare i32 @WARN_ON_ONCE(i32 noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i64 @skb_headroom(ptr noundef) local_unnamed_addr #2
declare i64 @skb_tailroom(ptr noundef) local_unnamed_addr #2
declare ptr @skb_copy_expand(ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @likely(ptr noundef) local_unnamed_addr #2
declare i32 @consume_skb(ptr noundef) local_unnamed_addr #2
declare i32 @kfree_skb(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare ptr @skb_unshare(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @lowpan_header(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ieee802154_hdr_peek(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ieee802154_max_payload(ptr noundef) local_unnamed_addr #2
declare i32 @skb_tail_pointer(ptr noundef) local_unnamed_addr #2
declare i32 @skb_network_header(ptr noundef) local_unnamed_addr #2
declare ptr @lowpan_802154_dev(ptr noundef) local_unnamed_addr #2
declare i64 @dev_queue_xmit(ptr noundef) local_unnamed_addr #2
declare i64 @lowpan_xmit_fragmented(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"sk_buff", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"net_device", !7, i64 0, !7, i64 8, !14, i64 16}
!14 = !{!"TYPE_3__", !10, i64 0, !10, i64 4}
!15 = !{!13, !7, i64 8}
!16 = !{!10, !10, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"TYPE_4__", !10, i64 0}
!19 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/net/ieee802154/6lowpan/extr_tx.c_lowpan_xmit.c'
source_filename = "AnghaBench/linux/net/ieee802154/6lowpan/extr_tx.c_lowpan_xmit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ieee802154_hdr = type { i32 }
@.str = private unnamed_addr constant [14 x i8] c"package xmit\0A\00", align 1
@IPV6_MIN_MTU = common local_unnamed_addr global i64 0, align 8
@GFP_ATOMIC = common local_unnamed_addr global i32 0, align 4
@NET_XMIT_DROP = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [43 x i8] c"frame is too big, fragmentation is needed\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @lowpan_xmit(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.ieee802154_hdr, align 4
%4 = alloca i64, align 8
%5 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = tail call i32 @pr_debug(ptr noundef nonnull @.str) #3
%7 = load i64, ptr %0, align 8, !tbaa !6
%8 = load i64, ptr @IPV6_MIN_MTU, align 8, !tbaa !12
%9 = icmp sgt i64 %7, %8
%10 = zext i1 %9 to i32
%11 = tail call i32 @WARN_ON_ONCE(i32 noundef %10) #3
%12 = tail call i64 @skb_headroom(ptr noundef nonnull %0) #3
%13 = load i64, ptr %1, align 8, !tbaa !13
%14 = icmp slt i64 %12, %13
br i1 %14, label %21, label %15
15: ; preds = %2
%16 = tail call i64 @skb_tailroom(ptr noundef nonnull %0) #3
%17 = getelementptr inbounds i8, ptr %1, i64 8
%18 = load i64, ptr %17, align 8, !tbaa !16
%19 = icmp slt i64 %16, %18
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %15, %2
%22 = phi i32 [ 1, %2 ], [ %20, %15 ]
%23 = tail call i64 @unlikely(i32 noundef %22) #3
%24 = icmp eq i64 %23, 0
br i1 %24, label %38, label %25
25: ; preds = %21
%26 = load i64, ptr %1, align 8, !tbaa !13
%27 = getelementptr inbounds i8, ptr %1, i64 8
%28 = load i64, ptr %27, align 8, !tbaa !16
%29 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !17
%30 = tail call ptr @skb_copy_expand(ptr noundef nonnull %0, i64 noundef %26, i64 noundef %28, i32 noundef %29) #3
%31 = tail call i64 @likely(ptr noundef %30) #3
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %25
%34 = tail call i32 @kfree_skb(ptr noundef nonnull %0) #3
%35 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !12
br label %82
36: ; preds = %25
%37 = tail call i32 @consume_skb(ptr noundef nonnull %0) #3
br label %44
38: ; preds = %21
%39 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !17
%40 = tail call ptr @skb_unshare(ptr noundef nonnull %0, i32 noundef %39) #3
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !12
br label %82
44: ; preds = %36, %38
%45 = phi ptr [ %30, %36 ], [ %40, %38 ]
%46 = call i32 @lowpan_header(ptr noundef %45, ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull %5) #3
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = call i32 @kfree_skb(ptr noundef %45) #3
%50 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !12
br label %82
51: ; preds = %44
%52 = call i64 @ieee802154_hdr_peek(ptr noundef %45, ptr noundef nonnull %3) #3
%53 = icmp slt i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = call i32 @kfree_skb(ptr noundef %45) #3
%56 = load i64, ptr @NET_XMIT_DROP, align 8, !tbaa !12
br label %82
57: ; preds = %51
%58 = call i32 @ieee802154_max_payload(ptr noundef nonnull %3) #3
%59 = call i32 @skb_tail_pointer(ptr noundef %45) #3
%60 = call i32 @skb_network_header(ptr noundef %45) #3
%61 = sub nsw i32 %59, %60
%62 = icmp sgt i32 %61, %58
br i1 %62, label %74, label %63
63: ; preds = %57
%64 = call ptr @lowpan_802154_dev(ptr noundef nonnull %1) #3
%65 = load i32, ptr %64, align 4, !tbaa !18
%66 = getelementptr inbounds i8, ptr %45, i64 8
store i32 %65, ptr %66, align 8, !tbaa !20
%67 = getelementptr inbounds i8, ptr %1, i64 16
%68 = load i64, ptr %4, align 8, !tbaa !12
%69 = trunc i64 %68 to i32
%70 = load <2 x i32>, ptr %67, align 8, !tbaa !17
%71 = insertelement <2 x i32> <i32 poison, i32 1>, i32 %69, i64 0
%72 = add <2 x i32> %70, %71
store <2 x i32> %72, ptr %67, align 8, !tbaa !17
%73 = call i64 @dev_queue_xmit(ptr noundef %45) #3
br label %82
74: ; preds = %57
%75 = call i32 @pr_debug(ptr noundef nonnull @.str.1) #3
%76 = load i64, ptr %4, align 8, !tbaa !12
%77 = load i64, ptr %5, align 8, !tbaa !12
%78 = call i64 @lowpan_xmit_fragmented(ptr noundef %45, ptr noundef nonnull %1, ptr noundef nonnull %3, i64 noundef %76, i64 noundef %77) #3
%79 = icmp slt i64 %78, 0
%80 = load i64, ptr @NET_XMIT_DROP, align 8
%81 = select i1 %79, i64 %80, i64 %78
br label %82
82: ; preds = %33, %74, %63, %54, %48, %42
%83 = phi i64 [ %50, %48 ], [ %56, %54 ], [ %73, %63 ], [ %81, %74 ], [ %43, %42 ], [ %35, %33 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i64 %83
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @pr_debug(ptr noundef) local_unnamed_addr #2
declare i32 @WARN_ON_ONCE(i32 noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare i64 @skb_headroom(ptr noundef) local_unnamed_addr #2
declare i64 @skb_tailroom(ptr noundef) local_unnamed_addr #2
declare ptr @skb_copy_expand(ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @likely(ptr noundef) local_unnamed_addr #2
declare i32 @consume_skb(ptr noundef) local_unnamed_addr #2
declare i32 @kfree_skb(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare ptr @skb_unshare(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @lowpan_header(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ieee802154_hdr_peek(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ieee802154_max_payload(ptr noundef) local_unnamed_addr #2
declare i32 @skb_tail_pointer(ptr noundef) local_unnamed_addr #2
declare i32 @skb_network_header(ptr noundef) local_unnamed_addr #2
declare ptr @lowpan_802154_dev(ptr noundef) local_unnamed_addr #2
declare i64 @dev_queue_xmit(ptr noundef) local_unnamed_addr #2
declare i64 @lowpan_xmit_fragmented(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"sk_buff", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"net_device", !8, i64 0, !8, i64 8, !15, i64 16}
!15 = !{!"TYPE_3__", !11, i64 0, !11, i64 4}
!16 = !{!14, !8, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"TYPE_4__", !11, i64 0}
!20 = !{!7, !11, i64 8}
| linux_net_ieee802154_6lowpan_extr_tx.c_lowpan_xmit |
; ModuleID = 'AnghaBench/freebsd/contrib/binutils/bfd/extr_archive.c_bfd_gnu_truncate_arname.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/bfd/extr_archive.c_bfd_gnu_truncate_arname.c"
target datalayout = "e-m:e-p270:32:32-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 @bfd_gnu_truncate_arname(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
%4 = tail call ptr @strrchr(ptr noundef %1, i8 noundef signext 47) #3
%5 = tail call i64 @ar_maxnamelen(ptr noundef %0) #3
%6 = icmp eq ptr %4, null
%7 = getelementptr inbounds i8, ptr %4, i64 1
%8 = select i1 %6, ptr %1, ptr %7
%9 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8)
%10 = icmp ugt i64 %9, %5
%11 = load ptr, ptr %2, align 8, !tbaa !5
br i1 %10, label %14, label %12
12: ; preds = %3
%13 = tail call i32 @memcpy(ptr noundef %11, ptr noundef %8, i64 noundef %9) #3
br label %31
14: ; preds = %3
%15 = tail call i32 @memcpy(ptr noundef %11, ptr noundef %8, i64 noundef %5) #3
%16 = getelementptr i8, ptr %8, i64 %9
%17 = getelementptr i8, ptr %16, i64 -2
%18 = load i8, ptr %17, align 1, !tbaa !10
%19 = icmp eq i8 %18, 46
br i1 %19, label %20, label %31
20: ; preds = %14
%21 = getelementptr i8, ptr %16, i64 -1
%22 = load i8, ptr %21, align 1, !tbaa !10
%23 = icmp eq i8 %22, 111
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load ptr, ptr %2, align 8, !tbaa !5
%26 = getelementptr i8, ptr %25, i64 %5
%27 = getelementptr i8, ptr %26, i64 -2
store i8 46, ptr %27, align 1, !tbaa !10
%28 = load ptr, ptr %2, align 8, !tbaa !5
%29 = getelementptr i8, ptr %28, i64 %5
%30 = getelementptr i8, ptr %29, i64 -1
store i8 111, ptr %30, align 1, !tbaa !10
br label %31
31: ; preds = %14, %20, %24, %12
%32 = phi i64 [ %9, %12 ], [ %5, %24 ], [ %5, %20 ], [ %5, %14 ]
%33 = icmp ult i64 %32, 16
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = tail call signext i8 @ar_padchar(ptr noundef %0) #3
%36 = load ptr, ptr %2, align 8, !tbaa !5
%37 = getelementptr inbounds i8, ptr %36, i64 %32
store i8 %35, ptr %37, align 1, !tbaa !10
br label %38
38: ; preds = %34, %31
ret void
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) local_unnamed_addr #1
declare i64 @ar_maxnamelen(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare signext i8 @ar_padchar(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ar_hdr", !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}
| ; ModuleID = 'AnghaBench/freebsd/contrib/binutils/bfd/extr_archive.c_bfd_gnu_truncate_arname.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/bfd/extr_archive.c_bfd_gnu_truncate_arname.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 @bfd_gnu_truncate_arname(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
%4 = tail call ptr @strrchr(ptr noundef %1, i8 noundef signext 47) #3
%5 = tail call i64 @ar_maxnamelen(ptr noundef %0) #3
%6 = icmp eq ptr %4, null
%7 = getelementptr inbounds i8, ptr %4, i64 1
%8 = select i1 %6, ptr %1, ptr %7
%9 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8) #3
%10 = icmp ugt i64 %9, %5
%11 = load ptr, ptr %2, align 8, !tbaa !6
br i1 %10, label %14, label %12
12: ; preds = %3
%13 = tail call i32 @memcpy(ptr noundef %11, ptr noundef %8, i64 noundef %9) #3
br label %31
14: ; preds = %3
%15 = tail call i32 @memcpy(ptr noundef %11, ptr noundef %8, i64 noundef %5) #3
%16 = getelementptr i8, ptr %8, i64 %9
%17 = getelementptr i8, ptr %16, i64 -2
%18 = load i8, ptr %17, align 1, !tbaa !11
%19 = icmp eq i8 %18, 46
br i1 %19, label %20, label %31
20: ; preds = %14
%21 = getelementptr i8, ptr %16, i64 -1
%22 = load i8, ptr %21, align 1, !tbaa !11
%23 = icmp eq i8 %22, 111
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load ptr, ptr %2, align 8, !tbaa !6
%26 = getelementptr i8, ptr %25, i64 %5
%27 = getelementptr i8, ptr %26, i64 -2
store i8 46, ptr %27, align 1, !tbaa !11
%28 = load ptr, ptr %2, align 8, !tbaa !6
%29 = getelementptr i8, ptr %28, i64 %5
%30 = getelementptr i8, ptr %29, i64 -1
store i8 111, ptr %30, align 1, !tbaa !11
br label %31
31: ; preds = %14, %20, %24, %12
%32 = phi i64 [ %9, %12 ], [ %5, %24 ], [ %5, %20 ], [ %5, %14 ]
%33 = icmp ult i64 %32, 16
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = tail call signext i8 @ar_padchar(ptr noundef %0) #3
%36 = load ptr, ptr %2, align 8, !tbaa !6
%37 = getelementptr inbounds i8, ptr %36, i64 %32
store i8 %35, ptr %37, align 1, !tbaa !11
br label %38
38: ; preds = %34, %31
ret void
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) local_unnamed_addr #1
declare i64 @ar_maxnamelen(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare signext i8 @ar_padchar(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ar_hdr", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!9, !9, i64 0}
| freebsd_contrib_binutils_bfd_extr_archive.c_bfd_gnu_truncate_arname |
; ModuleID = 'AnghaBench/linux/fs/ocfs2/extr_localalloc.c_ocfs2_load_local_alloc.c'
source_filename = "AnghaBench/linux/fs/ocfs2/extr_localalloc.c_ocfs2_load_local_alloc.c"
target datalayout = "e-m:e-p270:32:32-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.ocfs2_super = type { i64, i64, i32, ptr, i32, i32 }
%struct.ocfs2_dinode = type { %struct.TYPE_5__, i64 }
%struct.TYPE_5__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i64, i64 }
%struct.ocfs2_local_alloc = type { i64, i64 }
@ML_NOTICE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [81 x i8] c"Requested local alloc window %d is larger than max possible %u. Using defaults.\0A\00", align 1
@LOCAL_ALLOC_SYSTEM_INODE = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@OCFS2_BH_IGNORE_CACHE = dso_local local_unnamed_addr global i32 0, align 4
@OCFS2_LOCAL_ALLOC_FL = dso_local local_unnamed_addr global i32 0, align 4
@OCFS2_BITMAP_FL = dso_local local_unnamed_addr global i32 0, align 4
@ML_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"Invalid local alloc inode, %llu\0A\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"Local alloc size is invalid (la_size = %u)\0A\00", align 1
@.str.3 = private unnamed_addr constant [134 x i8] c"inconsistent detected, clean journal with unrecovered local alloc, please run fsck.ocfs2!\0Afound = %u, set = %u, taken = %u, off = %u\0A\00", align 1
@OCFS2_LA_ENABLED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ocfs2_load_local_alloc(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !5
%3 = load i64, ptr %0, align 8, !tbaa !9
%4 = icmp eq i64 %3, 0
br i1 %4, label %110, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.ocfs2_super, ptr %0, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = icmp slt i64 %3, %7
br i1 %8, label %17, label %9
9: ; preds = %5
%10 = load i32, ptr @ML_NOTICE, align 4, !tbaa !14
%11 = add nsw i64 %7, -1
%12 = tail call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %10, ptr noundef nonnull @.str, i64 noundef %3, i64 noundef %11) #3
%13 = getelementptr inbounds %struct.ocfs2_super, ptr %0, i64 0, i32 5
%14 = load i32, ptr %13, align 4, !tbaa !15
%15 = tail call i32 @ocfs2_la_default_mb(ptr noundef nonnull %0) #3
%16 = tail call i64 @ocfs2_megabytes_to_clusters(i32 noundef %14, i32 noundef %15) #3
store i64 %16, ptr %0, align 8, !tbaa !9
br label %17
17: ; preds = %9, %5
%18 = load i32, ptr @LOCAL_ALLOC_SYSTEM_INODE, align 4, !tbaa !14
%19 = getelementptr inbounds %struct.ocfs2_super, ptr %0, i64 0, i32 4
%20 = load i32, ptr %19, align 8, !tbaa !16
%21 = tail call ptr @ocfs2_get_system_file_inode(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %20) #3
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i32, ptr @EINVAL, align 4, !tbaa !14
%25 = sub nsw i32 0, %24
%26 = tail call i32 @mlog_errno(i32 noundef %25) #3
br label %103
27: ; preds = %17
%28 = load i32, ptr @OCFS2_BH_IGNORE_CACHE, align 4, !tbaa !14
%29 = call i32 @ocfs2_read_inode_block_full(ptr noundef nonnull %21, ptr noundef nonnull %2, i32 noundef %28) #3
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @mlog_errno(i32 noundef %29) #3
br label %106
33: ; preds = %27
%34 = load ptr, ptr %2, align 8, !tbaa !5
%35 = load i64, ptr %34, align 8, !tbaa !17
%36 = inttoptr i64 %35 to ptr
%37 = call ptr @OCFS2_LOCAL_ALLOC(ptr noundef %36) #3
%38 = getelementptr inbounds %struct.ocfs2_dinode, ptr %36, i64 0, i32 1
%39 = load i64, ptr %38, align 8, !tbaa !19
%40 = call i32 @le32_to_cpu(i64 noundef %39) #3
%41 = load i32, ptr @OCFS2_LOCAL_ALLOC_FL, align 4, !tbaa !14
%42 = load i32, ptr @OCFS2_BITMAP_FL, align 4, !tbaa !14
%43 = or i32 %42, %41
%44 = and i32 %43, %40
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %33
%47 = load i32, ptr @ML_ERROR, align 4, !tbaa !14
%48 = call ptr @OCFS2_I(ptr noundef nonnull %21) #3
%49 = load i64, ptr %48, align 8, !tbaa !23
%50 = call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %47, ptr noundef nonnull @.str.1, i64 noundef %49) #3
%51 = load i32, ptr @EINVAL, align 4, !tbaa !14
%52 = sub nsw i32 0, %51
br label %103
53: ; preds = %33
%54 = load i64, ptr %37, align 8, !tbaa !25
%55 = icmp eq i64 %54, 0
br i1 %55, label %63, label %56
56: ; preds = %53
%57 = call i32 @le16_to_cpu(i64 noundef %54) #3
%58 = load i32, ptr %21, align 4, !tbaa !27
%59 = call i32 @ocfs2_local_alloc_size(i32 noundef %58) #3
%60 = icmp sgt i32 %57, %59
br i1 %60, label %61, label %71
61: ; preds = %56
%62 = load i64, ptr %37, align 8, !tbaa !25
br label %63
63: ; preds = %61, %53
%64 = phi i64 [ %62, %61 ], [ 0, %53 ]
%65 = load i32, ptr @ML_ERROR, align 4, !tbaa !14
%66 = call i32 @le16_to_cpu(i64 noundef %64) #3
%67 = sext i32 %66 to i64
%68 = call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %65, ptr noundef nonnull @.str.2, i64 noundef %67) #3
%69 = load i32, ptr @EINVAL, align 4, !tbaa !14
%70 = sub nsw i32 0, %69
br label %103
71: ; preds = %56
%72 = call i32 @ocfs2_local_alloc_count_bits(ptr noundef nonnull %36) #3
%73 = icmp eq i32 %72, 0
%74 = getelementptr inbounds %struct.TYPE_4__, ptr %36, i64 0, i32 1
%75 = load i64, ptr %74, align 8, !tbaa !29
%76 = icmp eq i64 %75, 0
%77 = select i1 %73, i1 %76, i1 false
br i1 %77, label %78, label %85
78: ; preds = %71
%79 = load i64, ptr %36, align 8, !tbaa !30
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = getelementptr inbounds %struct.ocfs2_local_alloc, ptr %37, i64 0, i32 1
%83 = load i64, ptr %82, align 8, !tbaa !31
%84 = icmp eq i64 %83, 0
br i1 %84, label %98, label %85
85: ; preds = %71, %81, %78
%86 = phi i64 [ 0, %81 ], [ 0, %78 ], [ %75, %71 ]
%87 = load i32, ptr @ML_ERROR, align 4, !tbaa !14
%88 = sext i32 %72 to i64
%89 = call i32 @le32_to_cpu(i64 noundef %86) #3
%90 = load i64, ptr %36, align 8, !tbaa !30
%91 = call i32 @le32_to_cpu(i64 noundef %90) #3
%92 = call ptr @OCFS2_LOCAL_ALLOC(ptr noundef nonnull %36) #3
%93 = getelementptr inbounds %struct.ocfs2_local_alloc, ptr %92, i64 0, i32 1
%94 = load i64, ptr %93, align 8, !tbaa !31
%95 = call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %87, ptr noundef nonnull @.str.3, i64 noundef %88, i32 noundef %89, i32 noundef %91, i64 noundef %94) #3
%96 = load i32, ptr @EINVAL, align 4, !tbaa !14
%97 = sub nsw i32 0, %96
br label %103
98: ; preds = %81
%99 = load ptr, ptr %2, align 8, !tbaa !5
%100 = getelementptr inbounds %struct.ocfs2_super, ptr %0, i64 0, i32 3
store ptr %99, ptr %100, align 8, !tbaa !32
%101 = load i32, ptr @OCFS2_LA_ENABLED, align 4, !tbaa !14
%102 = getelementptr inbounds %struct.ocfs2_super, ptr %0, i64 0, i32 2
store i32 %101, ptr %102, align 8, !tbaa !33
br label %110
103: ; preds = %85, %63, %46, %23
%104 = phi i32 [ %70, %63 ], [ %97, %85 ], [ %52, %46 ], [ %25, %23 ]
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %31, %103
%107 = phi i32 [ %29, %31 ], [ %104, %103 ]
%108 = load ptr, ptr %2, align 8, !tbaa !5
%109 = call i32 @brelse(ptr noundef %108) #3
br label %110
110: ; preds = %98, %1, %106, %103
%111 = phi i32 [ %107, %106 ], [ %104, %103 ], [ %29, %98 ], [ 0, %1 ]
%112 = phi ptr [ %21, %106 ], [ %21, %103 ], [ %21, %98 ], [ null, %1 ]
%113 = call i32 @iput(ptr noundef %112) #3
%114 = load i64, ptr %0, align 8, !tbaa !9
%115 = call i32 @trace_ocfs2_load_local_alloc(i64 noundef %114) #3
%116 = icmp eq i32 %111, 0
br i1 %116, label %119, label %117
117: ; preds = %110
%118 = call i32 @mlog_errno(i32 noundef %111) #3
br label %119
119: ; preds = %117, %110
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
ret i32 %111
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mlog(i32 noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #2
declare i64 @ocfs2_megabytes_to_clusters(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_la_default_mb(ptr noundef) local_unnamed_addr #2
declare ptr @ocfs2_get_system_file_inode(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mlog_errno(i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_read_inode_block_full(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @OCFS2_LOCAL_ALLOC(ptr noundef) local_unnamed_addr #2
declare i32 @le32_to_cpu(i64 noundef) local_unnamed_addr #2
declare ptr @OCFS2_I(ptr noundef) local_unnamed_addr #2
declare i32 @le16_to_cpu(i64 noundef) local_unnamed_addr #2
declare i32 @ocfs2_local_alloc_size(i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_local_alloc_count_bits(ptr noundef) local_unnamed_addr #2
declare i32 @brelse(ptr noundef) local_unnamed_addr #2
declare i32 @iput(ptr noundef) local_unnamed_addr #2
declare i32 @trace_ocfs2_load_local_alloc(i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ocfs2_super", !11, i64 0, !11, i64 8, !12, i64 16, !6, i64 24, !12, i64 32, !12, i64 36}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 36}
!16 = !{!10, !12, i64 32}
!17 = !{!18, !11, i64 0}
!18 = !{!"buffer_head", !11, i64 0}
!19 = !{!20, !11, i64 16}
!20 = !{!"ocfs2_dinode", !21, i64 0, !11, i64 16}
!21 = !{!"TYPE_5__", !22, i64 0}
!22 = !{!"TYPE_4__", !11, i64 0, !11, i64 8}
!23 = !{!24, !11, i64 0}
!24 = !{!"TYPE_6__", !11, i64 0}
!25 = !{!26, !11, i64 0}
!26 = !{!"ocfs2_local_alloc", !11, i64 0, !11, i64 8}
!27 = !{!28, !12, i64 0}
!28 = !{!"inode", !12, i64 0}
!29 = !{!20, !11, i64 8}
!30 = !{!20, !11, i64 0}
!31 = !{!26, !11, i64 8}
!32 = !{!10, !6, i64 24}
!33 = !{!10, !12, i64 16}
| ; ModuleID = 'AnghaBench/linux/fs/ocfs2/extr_localalloc.c_ocfs2_load_local_alloc.c'
source_filename = "AnghaBench/linux/fs/ocfs2/extr_localalloc.c_ocfs2_load_local_alloc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ML_NOTICE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [81 x i8] c"Requested local alloc window %d is larger than max possible %u. Using defaults.\0A\00", align 1
@LOCAL_ALLOC_SYSTEM_INODE = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@OCFS2_BH_IGNORE_CACHE = common local_unnamed_addr global i32 0, align 4
@OCFS2_LOCAL_ALLOC_FL = common local_unnamed_addr global i32 0, align 4
@OCFS2_BITMAP_FL = common local_unnamed_addr global i32 0, align 4
@ML_ERROR = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [33 x i8] c"Invalid local alloc inode, %llu\0A\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"Local alloc size is invalid (la_size = %u)\0A\00", align 1
@.str.3 = private unnamed_addr constant [134 x i8] c"inconsistent detected, clean journal with unrecovered local alloc, please run fsck.ocfs2!\0Afound = %u, set = %u, taken = %u, off = %u\0A\00", align 1
@OCFS2_LA_ENABLED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ocfs2_load_local_alloc(ptr noundef %0) local_unnamed_addr #0 {
%2 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
store ptr null, ptr %2, align 8, !tbaa !6
%3 = load i64, ptr %0, align 8, !tbaa !10
%4 = icmp eq i64 %3, 0
br i1 %4, label %110, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !14
%8 = icmp slt i64 %3, %7
br i1 %8, label %17, label %9
9: ; preds = %5
%10 = load i32, ptr @ML_NOTICE, align 4, !tbaa !15
%11 = add nsw i64 %7, -1
%12 = tail call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %10, ptr noundef nonnull @.str, i64 noundef %3, i64 noundef %11) #3
%13 = getelementptr inbounds i8, ptr %0, i64 36
%14 = load i32, ptr %13, align 4, !tbaa !16
%15 = tail call i32 @ocfs2_la_default_mb(ptr noundef nonnull %0) #3
%16 = tail call i64 @ocfs2_megabytes_to_clusters(i32 noundef %14, i32 noundef %15) #3
store i64 %16, ptr %0, align 8, !tbaa !10
br label %17
17: ; preds = %9, %5
%18 = load i32, ptr @LOCAL_ALLOC_SYSTEM_INODE, align 4, !tbaa !15
%19 = getelementptr inbounds i8, ptr %0, i64 32
%20 = load i32, ptr %19, align 8, !tbaa !17
%21 = tail call ptr @ocfs2_get_system_file_inode(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %20) #3
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i32, ptr @EINVAL, align 4, !tbaa !15
%25 = sub nsw i32 0, %24
%26 = tail call i32 @mlog_errno(i32 noundef %25) #3
br label %103
27: ; preds = %17
%28 = load i32, ptr @OCFS2_BH_IGNORE_CACHE, align 4, !tbaa !15
%29 = call i32 @ocfs2_read_inode_block_full(ptr noundef nonnull %21, ptr noundef nonnull %2, i32 noundef %28) #3
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @mlog_errno(i32 noundef %29) #3
br label %106
33: ; preds = %27
%34 = load ptr, ptr %2, align 8, !tbaa !6
%35 = load i64, ptr %34, align 8, !tbaa !18
%36 = inttoptr i64 %35 to ptr
%37 = call ptr @OCFS2_LOCAL_ALLOC(ptr noundef %36) #3
%38 = getelementptr inbounds i8, ptr %36, i64 16
%39 = load i64, ptr %38, align 8, !tbaa !20
%40 = call i32 @le32_to_cpu(i64 noundef %39) #3
%41 = load i32, ptr @OCFS2_LOCAL_ALLOC_FL, align 4, !tbaa !15
%42 = load i32, ptr @OCFS2_BITMAP_FL, align 4, !tbaa !15
%43 = or i32 %42, %41
%44 = and i32 %43, %40
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %33
%47 = load i32, ptr @ML_ERROR, align 4, !tbaa !15
%48 = call ptr @OCFS2_I(ptr noundef nonnull %21) #3
%49 = load i64, ptr %48, align 8, !tbaa !24
%50 = call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %47, ptr noundef nonnull @.str.1, i64 noundef %49) #3
%51 = load i32, ptr @EINVAL, align 4, !tbaa !15
%52 = sub nsw i32 0, %51
br label %103
53: ; preds = %33
%54 = load i64, ptr %37, align 8, !tbaa !26
%55 = icmp eq i64 %54, 0
br i1 %55, label %63, label %56
56: ; preds = %53
%57 = call i32 @le16_to_cpu(i64 noundef %54) #3
%58 = load i32, ptr %21, align 4, !tbaa !28
%59 = call i32 @ocfs2_local_alloc_size(i32 noundef %58) #3
%60 = icmp sgt i32 %57, %59
br i1 %60, label %61, label %71
61: ; preds = %56
%62 = load i64, ptr %37, align 8, !tbaa !26
br label %63
63: ; preds = %61, %53
%64 = phi i64 [ %62, %61 ], [ 0, %53 ]
%65 = load i32, ptr @ML_ERROR, align 4, !tbaa !15
%66 = call i32 @le16_to_cpu(i64 noundef %64) #3
%67 = sext i32 %66 to i64
%68 = call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %65, ptr noundef nonnull @.str.2, i64 noundef %67) #3
%69 = load i32, ptr @EINVAL, align 4, !tbaa !15
%70 = sub nsw i32 0, %69
br label %103
71: ; preds = %56
%72 = call i32 @ocfs2_local_alloc_count_bits(ptr noundef nonnull %36) #3
%73 = icmp eq i32 %72, 0
%74 = getelementptr inbounds i8, ptr %36, i64 8
%75 = load i64, ptr %74, align 8, !tbaa !30
%76 = icmp eq i64 %75, 0
%77 = select i1 %73, i1 %76, i1 false
br i1 %77, label %78, label %85
78: ; preds = %71
%79 = load i64, ptr %36, align 8, !tbaa !31
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = getelementptr inbounds i8, ptr %37, i64 8
%83 = load i64, ptr %82, align 8, !tbaa !32
%84 = icmp eq i64 %83, 0
br i1 %84, label %98, label %85
85: ; preds = %71, %81, %78
%86 = phi i64 [ 0, %81 ], [ 0, %78 ], [ %75, %71 ]
%87 = load i32, ptr @ML_ERROR, align 4, !tbaa !15
%88 = sext i32 %72 to i64
%89 = call i32 @le32_to_cpu(i64 noundef %86) #3
%90 = load i64, ptr %36, align 8, !tbaa !31
%91 = call i32 @le32_to_cpu(i64 noundef %90) #3
%92 = call ptr @OCFS2_LOCAL_ALLOC(ptr noundef nonnull %36) #3
%93 = getelementptr inbounds i8, ptr %92, i64 8
%94 = load i64, ptr %93, align 8, !tbaa !32
%95 = call i32 (i32, ptr, i64, ...) @mlog(i32 noundef %87, ptr noundef nonnull @.str.3, i64 noundef %88, i32 noundef %89, i32 noundef %91, i64 noundef %94) #3
%96 = load i32, ptr @EINVAL, align 4, !tbaa !15
%97 = sub nsw i32 0, %96
br label %103
98: ; preds = %81
%99 = load ptr, ptr %2, align 8, !tbaa !6
%100 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %99, ptr %100, align 8, !tbaa !33
%101 = load i32, ptr @OCFS2_LA_ENABLED, align 4, !tbaa !15
%102 = getelementptr inbounds i8, ptr %0, i64 16
store i32 %101, ptr %102, align 8, !tbaa !34
br label %110
103: ; preds = %85, %63, %46, %23
%104 = phi i32 [ %70, %63 ], [ %97, %85 ], [ %52, %46 ], [ %25, %23 ]
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %31, %103
%107 = phi i32 [ %29, %31 ], [ %104, %103 ]
%108 = load ptr, ptr %2, align 8, !tbaa !6
%109 = call i32 @brelse(ptr noundef %108) #3
br label %110
110: ; preds = %98, %1, %106, %103
%111 = phi i32 [ %107, %106 ], [ %104, %103 ], [ %29, %98 ], [ 0, %1 ]
%112 = phi ptr [ %21, %106 ], [ %21, %103 ], [ %21, %98 ], [ null, %1 ]
%113 = call i32 @iput(ptr noundef %112) #3
%114 = load i64, ptr %0, align 8, !tbaa !10
%115 = call i32 @trace_ocfs2_load_local_alloc(i64 noundef %114) #3
%116 = icmp eq i32 %111, 0
br i1 %116, label %119, label %117
117: ; preds = %110
%118 = call i32 @mlog_errno(i32 noundef %111) #3
br label %119
119: ; preds = %117, %110
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
ret i32 %111
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @mlog(i32 noundef, ptr noundef, i64 noundef, ...) local_unnamed_addr #2
declare i64 @ocfs2_megabytes_to_clusters(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_la_default_mb(ptr noundef) local_unnamed_addr #2
declare ptr @ocfs2_get_system_file_inode(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @mlog_errno(i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_read_inode_block_full(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @OCFS2_LOCAL_ALLOC(ptr noundef) local_unnamed_addr #2
declare i32 @le32_to_cpu(i64 noundef) local_unnamed_addr #2
declare ptr @OCFS2_I(ptr noundef) local_unnamed_addr #2
declare i32 @le16_to_cpu(i64 noundef) local_unnamed_addr #2
declare i32 @ocfs2_local_alloc_size(i32 noundef) local_unnamed_addr #2
declare i32 @ocfs2_local_alloc_count_bits(ptr noundef) local_unnamed_addr #2
declare i32 @brelse(ptr noundef) local_unnamed_addr #2
declare i32 @iput(ptr noundef) local_unnamed_addr #2
declare i32 @trace_ocfs2_load_local_alloc(i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"ocfs2_super", !12, i64 0, !12, i64 8, !13, i64 16, !7, i64 24, !13, i64 32, !13, i64 36}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !12, i64 8}
!15 = !{!13, !13, i64 0}
!16 = !{!11, !13, i64 36}
!17 = !{!11, !13, i64 32}
!18 = !{!19, !12, i64 0}
!19 = !{!"buffer_head", !12, i64 0}
!20 = !{!21, !12, i64 16}
!21 = !{!"ocfs2_dinode", !22, i64 0, !12, i64 16}
!22 = !{!"TYPE_5__", !23, i64 0}
!23 = !{!"TYPE_4__", !12, i64 0, !12, i64 8}
!24 = !{!25, !12, i64 0}
!25 = !{!"TYPE_6__", !12, i64 0}
!26 = !{!27, !12, i64 0}
!27 = !{!"ocfs2_local_alloc", !12, i64 0, !12, i64 8}
!28 = !{!29, !13, i64 0}
!29 = !{!"inode", !13, i64 0}
!30 = !{!21, !12, i64 8}
!31 = !{!21, !12, i64 0}
!32 = !{!27, !12, i64 8}
!33 = !{!11, !7, i64 24}
!34 = !{!11, !13, i64 16}
| linux_fs_ocfs2_extr_localalloc.c_ocfs2_load_local_alloc |
; ModuleID = 'AnghaBench/linux/sound/soc/bcm/extr_cygnus-ssp.c_cygnus_ssp_set_clocks.c'
source_filename = "AnghaBench/linux/sound/soc/bcm/extr_cygnus-ssp.c_cygnus_ssp_set_clocks.c"
target datalayout = "e-m:e-p270:32:32-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.cygnus_aio_port = type { i32, i32, i32, i32, ptr, %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64, i64 }
%struct.TYPE_4__ = type { i32, i64 }
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"Invalid combination of MCLK and BCLK\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"lrclk = %u, bits/frame = %u, mclk = %u\0A\00", align 1
@I2S_OUT_CFGX_SCLKS_PER_1FS_DIV32 = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"SCLKS_PER_1FS_DIV32 = 0x%x\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Unknown port type\0A\00", align 1
@I2S_OUT_MCLKRATE_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [21 x i8] c"mclk cfg reg = 0x%x\0A\00", align 1
@.str.5 = private unnamed_addr constant [50 x i8] c"bits per frame = %u, mclk = %u Hz, lrclk = %u Hz\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @cygnus_ssp_set_clocks], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @cygnus_ssp_set_clocks(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !13
%5 = mul i32 %4, %2
%6 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 2
%7 = load i32, ptr %6, align 8, !tbaa !14
%8 = urem i32 %7, %5
%9 = udiv i32 %7, %5
%10 = icmp eq i32 %8, 0
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load i32, ptr @EINVAL, align 4, !tbaa !15
%13 = sub nsw i32 0, %12
br label %96
14: ; preds = %1
switch i32 %9, label %19 [
i32 2, label %15
i32 4, label %15
i32 6, label %15
i32 8, label %15
i32 10, label %15
i32 12, label %15
i32 14, label %15
]
15: ; preds = %14, %14, %14, %14, %14, %14, %14
%16 = lshr i32 %9, 1
%17 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 3
%18 = load i32, ptr %17, align 4, !tbaa !16
switch i32 %18, label %59 [
i32 128, label %32
i32 129, label %66
]
19: ; preds = %14
%20 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 4
%21 = load ptr, ptr %20, align 8, !tbaa !17
%22 = load i32, ptr %21, align 8, !tbaa !18
%23 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %22, ptr noundef nonnull @.str) #2
%24 = load ptr, ptr %20, align 8, !tbaa !17
%25 = load i32, ptr %24, align 8, !tbaa !18
%26 = load i32, ptr %3, align 4, !tbaa !13
%27 = load i32, ptr %0, align 8, !tbaa !5
%28 = load i32, ptr %6, align 8, !tbaa !14
%29 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %25, ptr noundef nonnull @.str.1, i32 noundef %26, i32 noundef %27, i32 noundef %28) #2
%30 = load i32, ptr @EINVAL, align 4, !tbaa !15
%31 = sub nsw i32 0, %30
br label %96
32: ; preds = %15
%33 = icmp eq i32 %2, 512
%34 = sdiv i32 %2, 32
%35 = select i1 %33, i32 0, i32 %34
%36 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 4
%37 = load ptr, ptr %36, align 8, !tbaa !17
%38 = getelementptr inbounds %struct.TYPE_4__, ptr %37, i64 0, i32 1
%39 = load i64, ptr %38, align 8, !tbaa !20
%40 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 5, i32 1
%41 = load i64, ptr %40, align 8, !tbaa !21
%42 = add nsw i64 %41, %39
%43 = tail call i32 @readl(i64 noundef %42) #2
%44 = load i32, ptr @I2S_OUT_CFGX_SCLKS_PER_1FS_DIV32, align 4, !tbaa !15
%45 = shl i32 15, %44
%46 = xor i32 %45, -1
%47 = and i32 %43, %46
%48 = shl i32 %35, %44
%49 = or i32 %47, %48
%50 = load ptr, ptr %36, align 8, !tbaa !17
%51 = getelementptr inbounds %struct.TYPE_4__, ptr %50, i64 0, i32 1
%52 = load i64, ptr %51, align 8, !tbaa !20
%53 = load i64, ptr %40, align 8, !tbaa !21
%54 = add nsw i64 %53, %52
%55 = tail call i32 @writel(i32 noundef %49, i64 noundef %54) #2
%56 = load ptr, ptr %36, align 8, !tbaa !17
%57 = load i32, ptr %56, align 8, !tbaa !18
%58 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %57, ptr noundef nonnull @.str.2, i32 noundef %49) #2
br label %66
59: ; preds = %15
%60 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 4
%61 = load ptr, ptr %60, align 8, !tbaa !17
%62 = load i32, ptr %61, align 8, !tbaa !18
%63 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %62, ptr noundef nonnull @.str.3) #2
%64 = load i32, ptr @EINVAL, align 4, !tbaa !15
%65 = sub nsw i32 0, %64
br label %96
66: ; preds = %15, %32
%67 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 4
%68 = load ptr, ptr %67, align 8, !tbaa !17
%69 = getelementptr inbounds %struct.TYPE_4__, ptr %68, i64 0, i32 1
%70 = load i64, ptr %69, align 8, !tbaa !20
%71 = getelementptr inbounds %struct.cygnus_aio_port, ptr %0, i64 0, i32 5
%72 = load i64, ptr %71, align 8, !tbaa !22
%73 = add nsw i64 %72, %70
%74 = tail call i32 @readl(i64 noundef %73) #2
%75 = load i32, ptr @I2S_OUT_MCLKRATE_SHIFT, align 4, !tbaa !15
%76 = shl i32 15, %75
%77 = xor i32 %76, -1
%78 = and i32 %74, %77
%79 = shl i32 %16, %75
%80 = or i32 %78, %79
%81 = load ptr, ptr %67, align 8, !tbaa !17
%82 = getelementptr inbounds %struct.TYPE_4__, ptr %81, i64 0, i32 1
%83 = load i64, ptr %82, align 8, !tbaa !20
%84 = load i64, ptr %71, align 8, !tbaa !22
%85 = add nsw i64 %84, %83
%86 = tail call i32 @writel(i32 noundef %80, i64 noundef %85) #2
%87 = load ptr, ptr %67, align 8, !tbaa !17
%88 = load i32, ptr %87, align 8, !tbaa !18
%89 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %88, ptr noundef nonnull @.str.4, i32 noundef %80) #2
%90 = load ptr, ptr %67, align 8, !tbaa !17
%91 = load i32, ptr %90, align 8, !tbaa !18
%92 = load i32, ptr %0, align 8, !tbaa !5
%93 = load i32, ptr %6, align 8, !tbaa !14
%94 = load i32, ptr %3, align 4, !tbaa !13
%95 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %91, ptr noundef nonnull @.str.5, i32 noundef %92, i32 noundef %93, i32 noundef %94) #2
br label %96
96: ; preds = %66, %59, %19, %11
%97 = phi i32 [ %13, %11 ], [ %31, %19 ], [ %65, %59 ], [ 0, %66 ]
ret i32 %97
}
declare i32 @dev_err(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @writel(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"cygnus_aio_port", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0, !12, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!6, !7, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 12}
!17 = !{!6, !10, i64 16}
!18 = !{!19, !7, i64 0}
!19 = !{!"TYPE_4__", !7, i64 0, !12, i64 8}
!20 = !{!19, !12, i64 8}
!21 = !{!6, !12, i64 32}
!22 = !{!6, !12, i64 24}
| ; ModuleID = 'AnghaBench/linux/sound/soc/bcm/extr_cygnus-ssp.c_cygnus_ssp_set_clocks.c'
source_filename = "AnghaBench/linux/sound/soc/bcm/extr_cygnus-ssp.c_cygnus_ssp_set_clocks.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
@.str = private unnamed_addr constant [38 x i8] c"Invalid combination of MCLK and BCLK\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"lrclk = %u, bits/frame = %u, mclk = %u\0A\00", align 1
@I2S_OUT_CFGX_SCLKS_PER_1FS_DIV32 = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"SCLKS_PER_1FS_DIV32 = 0x%x\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"Unknown port type\0A\00", align 1
@I2S_OUT_MCLKRATE_SHIFT = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [21 x i8] c"mclk cfg reg = 0x%x\0A\00", align 1
@.str.5 = private unnamed_addr constant [50 x i8] c"bits per frame = %u, mclk = %u Hz, lrclk = %u Hz\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @cygnus_ssp_set_clocks], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @cygnus_ssp_set_clocks(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !14
%5 = mul i32 %4, %2
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i32, ptr %6, align 8, !tbaa !15
%8 = freeze i32 %7
%9 = freeze i32 %5
%10 = udiv i32 %8, %9
%11 = mul i32 %10, %9
%12 = sub i32 %8, %11
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %1
%15 = load i32, ptr @EINVAL, align 4, !tbaa !16
%16 = sub nsw i32 0, %15
br label %99
17: ; preds = %1
switch i32 %10, label %22 [
i32 2, label %18
i32 4, label %18
i32 6, label %18
i32 8, label %18
i32 10, label %18
i32 12, label %18
i32 14, label %18
]
18: ; preds = %17, %17, %17, %17, %17, %17, %17
%19 = lshr i32 %10, 1
%20 = getelementptr inbounds i8, ptr %0, i64 12
%21 = load i32, ptr %20, align 4, !tbaa !17
switch i32 %21, label %62 [
i32 128, label %35
i32 129, label %69
]
22: ; preds = %17
%23 = getelementptr inbounds i8, ptr %0, i64 16
%24 = load ptr, ptr %23, align 8, !tbaa !18
%25 = load i32, ptr %24, align 8, !tbaa !19
%26 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %25, ptr noundef nonnull @.str) #2
%27 = load ptr, ptr %23, align 8, !tbaa !18
%28 = load i32, ptr %27, align 8, !tbaa !19
%29 = load i32, ptr %3, align 4, !tbaa !14
%30 = load i32, ptr %0, align 8, !tbaa !6
%31 = load i32, ptr %6, align 8, !tbaa !15
%32 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %28, ptr noundef nonnull @.str.1, i32 noundef %29, i32 noundef %30, i32 noundef %31) #2
%33 = load i32, ptr @EINVAL, align 4, !tbaa !16
%34 = sub nsw i32 0, %33
br label %99
35: ; preds = %18
%36 = icmp eq i32 %2, 512
%37 = sdiv i32 %2, 32
%38 = select i1 %36, i32 0, i32 %37
%39 = getelementptr inbounds i8, ptr %0, i64 16
%40 = load ptr, ptr %39, align 8, !tbaa !18
%41 = getelementptr inbounds i8, ptr %40, i64 8
%42 = load i64, ptr %41, align 8, !tbaa !21
%43 = getelementptr inbounds i8, ptr %0, i64 32
%44 = load i64, ptr %43, align 8, !tbaa !22
%45 = add nsw i64 %44, %42
%46 = tail call i32 @readl(i64 noundef %45) #2
%47 = load i32, ptr @I2S_OUT_CFGX_SCLKS_PER_1FS_DIV32, align 4, !tbaa !16
%48 = shl i32 15, %47
%49 = xor i32 %48, -1
%50 = and i32 %46, %49
%51 = shl i32 %38, %47
%52 = or i32 %50, %51
%53 = load ptr, ptr %39, align 8, !tbaa !18
%54 = getelementptr inbounds i8, ptr %53, i64 8
%55 = load i64, ptr %54, align 8, !tbaa !21
%56 = load i64, ptr %43, align 8, !tbaa !22
%57 = add nsw i64 %56, %55
%58 = tail call i32 @writel(i32 noundef %52, i64 noundef %57) #2
%59 = load ptr, ptr %39, align 8, !tbaa !18
%60 = load i32, ptr %59, align 8, !tbaa !19
%61 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %60, ptr noundef nonnull @.str.2, i32 noundef %52) #2
br label %69
62: ; preds = %18
%63 = getelementptr inbounds i8, ptr %0, i64 16
%64 = load ptr, ptr %63, align 8, !tbaa !18
%65 = load i32, ptr %64, align 8, !tbaa !19
%66 = tail call i32 (i32, ptr, ...) @dev_err(i32 noundef %65, ptr noundef nonnull @.str.3) #2
%67 = load i32, ptr @EINVAL, align 4, !tbaa !16
%68 = sub nsw i32 0, %67
br label %99
69: ; preds = %18, %35
%70 = getelementptr inbounds i8, ptr %0, i64 16
%71 = load ptr, ptr %70, align 8, !tbaa !18
%72 = getelementptr inbounds i8, ptr %71, i64 8
%73 = load i64, ptr %72, align 8, !tbaa !21
%74 = getelementptr inbounds i8, ptr %0, i64 24
%75 = load i64, ptr %74, align 8, !tbaa !23
%76 = add nsw i64 %75, %73
%77 = tail call i32 @readl(i64 noundef %76) #2
%78 = load i32, ptr @I2S_OUT_MCLKRATE_SHIFT, align 4, !tbaa !16
%79 = shl i32 15, %78
%80 = xor i32 %79, -1
%81 = and i32 %77, %80
%82 = shl i32 %19, %78
%83 = or i32 %81, %82
%84 = load ptr, ptr %70, align 8, !tbaa !18
%85 = getelementptr inbounds i8, ptr %84, i64 8
%86 = load i64, ptr %85, align 8, !tbaa !21
%87 = load i64, ptr %74, align 8, !tbaa !23
%88 = add nsw i64 %87, %86
%89 = tail call i32 @writel(i32 noundef %83, i64 noundef %88) #2
%90 = load ptr, ptr %70, align 8, !tbaa !18
%91 = load i32, ptr %90, align 8, !tbaa !19
%92 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %91, ptr noundef nonnull @.str.4, i32 noundef %83) #2
%93 = load ptr, ptr %70, align 8, !tbaa !18
%94 = load i32, ptr %93, align 8, !tbaa !19
%95 = load i32, ptr %0, align 8, !tbaa !6
%96 = load i32, ptr %6, align 8, !tbaa !15
%97 = load i32, ptr %3, align 4, !tbaa !14
%98 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %94, ptr noundef nonnull @.str.5, i32 noundef %95, i32 noundef %96, i32 noundef %97) #2
br label %99
99: ; preds = %69, %62, %22, %14
%100 = phi i32 [ %16, %14 ], [ %34, %22 ], [ %68, %62 ], [ 0, %69 ]
ret i32 %100
}
declare i32 @dev_err(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i32 @writel(i32 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"cygnus_aio_port", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"TYPE_3__", !13, i64 0, !13, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!7, !8, i64 4}
!15 = !{!7, !8, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !8, i64 12}
!18 = !{!7, !11, i64 16}
!19 = !{!20, !8, i64 0}
!20 = !{!"TYPE_4__", !8, i64 0, !13, i64 8}
!21 = !{!20, !13, i64 8}
!22 = !{!7, !13, i64 32}
!23 = !{!7, !13, i64 24}
| linux_sound_soc_bcm_extr_cygnus-ssp.c_cygnus_ssp_set_clocks |
; ModuleID = 'AnghaBench/RetroArch/input/connect/extr_connect_wii.c_wiimote_classic_ctrl_handshake.c'
source_filename = "AnghaBench/RetroArch/input/connect/extr_connect_wii.c_wiimote_classic_ctrl_handshake.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EXP_CLASSIC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @wiimote_classic_ctrl_handshake], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @wiimote_classic_ctrl_handshake(ptr nocapture noundef writeonly %0, ptr noundef %1, ptr nocapture readnone %2, i32 %3) #0 {
%5 = tail call i32 @memset(ptr noundef %1, i32 noundef 0, i32 noundef 4) #2
%6 = load i32, ptr @EXP_CLASSIC, align 4, !tbaa !5
store i32 %6, ptr %0, align 4, !tbaa !9
ret i32 1
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"connect_wii_wiimote_t", !11, i64 0}
!11 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/RetroArch/input/connect/extr_connect_wii.c_wiimote_classic_ctrl_handshake.c'
source_filename = "AnghaBench/RetroArch/input/connect/extr_connect_wii.c_wiimote_classic_ctrl_handshake.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EXP_CLASSIC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @wiimote_classic_ctrl_handshake], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @wiimote_classic_ctrl_handshake(ptr nocapture noundef writeonly %0, ptr noundef %1, ptr nocapture readnone %2, i32 %3) #0 {
%5 = tail call i32 @memset(ptr noundef %1, i32 noundef 0, i32 noundef 4) #2
%6 = load i32, ptr @EXP_CLASSIC, align 4, !tbaa !6
store i32 %6, ptr %0, align 4, !tbaa !10
ret i32 1
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"connect_wii_wiimote_t", !12, i64 0}
!12 = !{!"TYPE_2__", !7, i64 0}
| RetroArch_input_connect_extr_connect_wii.c_wiimote_classic_ctrl_handshake |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/usbvideo/extr_ibmcam.c_ibmcam_set_hue.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/usbvideo/extr_ibmcam.c_ibmcam_set_hue.c"
target datalayout = "e-m:e-p270:32:32-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.uvd = type { i32, %struct.TYPE_5__, i32, i32, %struct.TYPE_4__ }
%struct.TYPE_5__ = type { i32 }
%struct.TYPE_4__ = type { i16 }
@mod2_hue = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ibmcam_set_hue], section "llvm.metadata"
@switch.table.ibmcam_set_hue = private unnamed_addr constant [3 x i32] [i32 160, i32 70, i32 90], align 4
@switch.table.ibmcam_set_hue.1 = private unnamed_addr constant [3 x i32] [i32 175, i32 166, i32 166], align 4
@switch.table.ibmcam_set_hue.2 = private unnamed_addr constant [3 x i32] [i32 185, i32 185, i32 175], align 4
; Function Attrs: nounwind uwtable
define internal void @ibmcam_set_hue(ptr noundef %0) #0 {
%2 = tail call ptr @IBMCAM_T(ptr noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !5
switch i32 %3, label %49 [
i32 133, label %4
i32 131, label %15
]
4: ; preds = %1
%5 = getelementptr inbounds %struct.uvd, ptr %0, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !10
%7 = lshr i32 %6, 9
%8 = getelementptr inbounds %struct.uvd, ptr %0, i64 0, i32 4
%9 = load i16, ptr %8, align 4, !tbaa !15
%10 = trunc i32 %7 to i16
%11 = icmp eq i16 %9, %10
br i1 %11, label %49, label %12
12: ; preds = %4
store i16 %10, ptr %8, align 4, !tbaa !15
%13 = load i32, ptr @mod2_hue, align 4, !tbaa !16
%14 = tail call i32 @ibmcam_model2_Packet1(ptr noundef nonnull %0, i32 noundef %13, i16 noundef zeroext %10) #2
br label %49
15: ; preds = %1
%16 = getelementptr inbounds %struct.uvd, ptr %0, i64 0, i32 1
%17 = load i32, ptr %16, align 4, !tbaa !10
%18 = lshr i32 %17, 9
%19 = trunc i32 %18 to i16
%20 = add i16 %19, 20
%21 = load i32, ptr %0, align 4, !tbaa !17
%22 = add i32 %21, -128
%23 = icmp ult i32 %22, 3
br i1 %23, label %24, label %34
24: ; preds = %15
%25 = zext nneg i32 %22 to i64
%26 = getelementptr inbounds [3 x i32], ptr @switch.table.ibmcam_set_hue, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
%28 = zext nneg i32 %22 to i64
%29 = getelementptr inbounds [3 x i32], ptr @switch.table.ibmcam_set_hue.1, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = zext nneg i32 %22 to i64
%32 = getelementptr inbounds [3 x i32], ptr @switch.table.ibmcam_set_hue.2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
br label %34
34: ; preds = %15, %24
%35 = phi i32 [ %27, %24 ], [ 120, %15 ]
%36 = phi i32 [ %30, %24 ], [ 166, %15 ]
%37 = phi i32 [ %33, %24 ], [ 175, %15 ]
%38 = tail call i32 @RESTRICT_TO_RANGE(i16 noundef zeroext %20, i32 noundef 1, i32 noundef 127) #2
%39 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 170, i32 noundef 301) #2
%40 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 30, i32 noundef 303) #2
%41 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 53569, i32 noundef 292) #2
%42 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %36, i32 noundef 295) #2
%43 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %35, i32 noundef 302) #2
%44 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %37, i32 noundef 304) #2
%45 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 35368, i32 noundef 292) #2
%46 = zext i16 %20 to i32
%47 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %46, i32 noundef 301) #2
%48 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 62789, i32 noundef 292) #2
br label %49
49: ; preds = %12, %4, %1, %34
ret void
}
declare ptr @IBMCAM_T(ptr noundef) local_unnamed_addr #1
declare i32 @ibmcam_model2_Packet1(ptr noundef, i32 noundef, i16 noundef zeroext) local_unnamed_addr #1
declare i32 @RESTRICT_TO_RANGE(i16 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ibmcam_veio(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_6__", !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 = !{!"uvd", !7, i64 0, !12, i64 4, !7, i64 8, !7, i64 12, !13, i64 16}
!12 = !{!"TYPE_5__", !7, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!11, !14, i64 16}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/usbvideo/extr_ibmcam.c_ibmcam_set_hue.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/usbvideo/extr_ibmcam.c_ibmcam_set_hue.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mod2_hue = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ibmcam_set_hue], section "llvm.metadata"
@switch.table.ibmcam_set_hue = private unnamed_addr constant [3 x i32] [i32 160, i32 70, i32 90], align 4
@switch.table.ibmcam_set_hue.1 = private unnamed_addr constant [3 x i32] [i32 175, i32 166, i32 166], align 4
@switch.table.ibmcam_set_hue.2 = private unnamed_addr constant [3 x i32] [i32 185, i32 185, i32 175], align 4
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ibmcam_set_hue(ptr noundef %0) #0 {
%2 = tail call ptr @IBMCAM_T(ptr noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !6
switch i32 %3, label %49 [
i32 133, label %4
i32 131, label %15
]
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = lshr i32 %6, 9
%8 = getelementptr inbounds i8, ptr %0, i64 16
%9 = load i16, ptr %8, align 4, !tbaa !16
%10 = trunc i32 %7 to i16
%11 = icmp eq i16 %9, %10
br i1 %11, label %49, label %12
12: ; preds = %4
store i16 %10, ptr %8, align 4, !tbaa !16
%13 = load i32, ptr @mod2_hue, align 4, !tbaa !17
%14 = tail call i32 @ibmcam_model2_Packet1(ptr noundef nonnull %0, i32 noundef %13, i16 noundef zeroext %10) #2
br label %49
15: ; preds = %1
%16 = getelementptr inbounds i8, ptr %0, i64 4
%17 = load i32, ptr %16, align 4, !tbaa !11
%18 = lshr i32 %17, 9
%19 = trunc i32 %18 to i16
%20 = add i16 %19, 20
%21 = load i32, ptr %0, align 4, !tbaa !18
%22 = add i32 %21, -128
%23 = icmp ult i32 %22, 3
br i1 %23, label %24, label %34
24: ; preds = %15
%25 = zext nneg i32 %22 to i64
%26 = getelementptr inbounds [3 x i32], ptr @switch.table.ibmcam_set_hue, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
%28 = zext nneg i32 %22 to i64
%29 = getelementptr inbounds [3 x i32], ptr @switch.table.ibmcam_set_hue.1, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = zext nneg i32 %22 to i64
%32 = getelementptr inbounds [3 x i32], ptr @switch.table.ibmcam_set_hue.2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
br label %34
34: ; preds = %15, %24
%35 = phi i32 [ %27, %24 ], [ 120, %15 ]
%36 = phi i32 [ %30, %24 ], [ 166, %15 ]
%37 = phi i32 [ %33, %24 ], [ 175, %15 ]
%38 = tail call i32 @RESTRICT_TO_RANGE(i16 noundef zeroext %20, i32 noundef 1, i32 noundef 127) #2
%39 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 170, i32 noundef 301) #2
%40 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 30, i32 noundef 303) #2
%41 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 53569, i32 noundef 292) #2
%42 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %36, i32 noundef 295) #2
%43 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %35, i32 noundef 302) #2
%44 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %37, i32 noundef 304) #2
%45 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 35368, i32 noundef 292) #2
%46 = zext i16 %20 to i32
%47 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %46, i32 noundef 301) #2
%48 = tail call i32 @ibmcam_veio(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 62789, i32 noundef 292) #2
br label %49
49: ; preds = %12, %4, %1, %34
ret void
}
declare ptr @IBMCAM_T(ptr noundef) local_unnamed_addr #1
declare i32 @ibmcam_model2_Packet1(ptr noundef, i32 noundef, i16 noundef zeroext) local_unnamed_addr #1
declare i32 @RESTRICT_TO_RANGE(i16 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ibmcam_veio(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_6__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 4}
!12 = !{!"uvd", !8, i64 0, !13, i64 4, !8, i64 8, !8, i64 12, !14, i64 16}
!13 = !{!"TYPE_5__", !8, i64 0}
!14 = !{!"TYPE_4__", !15, i64 0}
!15 = !{!"short", !9, i64 0}
!16 = !{!12, !15, i64 16}
!17 = !{!8, !8, i64 0}
!18 = !{!12, !8, i64 0}
| fastsocket_kernel_drivers_media_video_usbvideo_extr_ibmcam.c_ibmcam_set_hue |
; ModuleID = 'AnghaBench/linux/drivers/acpi/extr_osl.c_acpi_os_release_lock.c'
source_filename = "AnghaBench/linux/drivers/acpi/extr_osl.c_acpi_os_release_lock.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @acpi_os_release_lock(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @spin_unlock_irqrestore(i32 noundef %0, i32 noundef %1) #2
ret void
}
declare i32 @spin_unlock_irqrestore(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/acpi/extr_osl.c_acpi_os_release_lock.c'
source_filename = "AnghaBench/linux/drivers/acpi/extr_osl.c_acpi_os_release_lock.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @acpi_os_release_lock(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @spin_unlock_irqrestore(i32 noundef %0, i32 noundef %1) #2
ret void
}
declare i32 @spin_unlock_irqrestore(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_acpi_extr_osl.c_acpi_os_release_lock |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_s526.c_s526_ao_winsn.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_s526.c_s526_ao_winsn.c"
target datalayout = "e-m:e-p270:32:32-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.comedi_insn = type { i32, i32 }
@REG_DAC = dso_local local_unnamed_addr global i32 0, align 4
@REG_ADD = dso_local local_unnamed_addr global i32 0, align 4
@devpriv = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @s526_ao_winsn], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @s526_ao_winsn(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) #0 {
%5 = getelementptr inbounds %struct.comedi_insn, ptr %2, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = tail call i32 @CR_CHAN(i32 noundef %6) #2
%8 = trunc i32 %7 to i16
%9 = shl i16 %8, 1
%10 = load i32, ptr @REG_DAC, align 4, !tbaa !10
%11 = tail call i32 @ADDR_REG(i32 noundef %10) #2
%12 = tail call i32 @outw(i16 noundef zeroext %9, i32 noundef %11) #2
%13 = load i32, ptr %2, align 4, !tbaa !11
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %39
15: ; preds = %4
%16 = sext i32 %7 to i64
%17 = or disjoint i16 %9, 1
br label %18
18: ; preds = %15, %18
%19 = phi i64 [ 0, %15 ], [ %33, %18 ]
%20 = getelementptr inbounds i32, ptr %3, i64 %19
%21 = load i32, ptr %20, align 4, !tbaa !10
%22 = trunc i32 %21 to i16
%23 = load i32, ptr @REG_ADD, align 4, !tbaa !10
%24 = tail call i32 @ADDR_REG(i32 noundef %23) #2
%25 = tail call i32 @outw(i16 noundef zeroext %22, i32 noundef %24) #2
%26 = load i32, ptr %20, align 4, !tbaa !10
%27 = load ptr, ptr @devpriv, align 8, !tbaa !12
%28 = load ptr, ptr %27, align 8, !tbaa !14
%29 = getelementptr inbounds i32, ptr %28, i64 %16
store i32 %26, ptr %29, align 4, !tbaa !10
%30 = load i32, ptr @REG_DAC, align 4, !tbaa !10
%31 = tail call i32 @ADDR_REG(i32 noundef %30) #2
%32 = tail call i32 @outw(i16 noundef zeroext %17, i32 noundef %31) #2
%33 = add nuw nsw i64 %19, 1
%34 = load i32, ptr %2, align 4, !tbaa !11
%35 = sext i32 %34 to i64
%36 = icmp slt i64 %33, %35
br i1 %36, label %18, label %37, !llvm.loop !16
37: ; preds = %18
%38 = trunc i64 %33 to i32
br label %39
39: ; preds = %37, %4
%40 = phi i32 [ 0, %4 ], [ %38, %37 ]
ret i32 %40
}
declare i32 @CR_CHAN(i32 noundef) local_unnamed_addr #1
declare i32 @outw(i16 noundef zeroext, i32 noundef) local_unnamed_addr #1
declare i32 @ADDR_REG(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"comedi_insn", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_2__", !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_s526.c_s526_ao_winsn.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_s526.c_s526_ao_winsn.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@REG_DAC = common local_unnamed_addr global i32 0, align 4
@REG_ADD = common local_unnamed_addr global i32 0, align 4
@devpriv = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @s526_ao_winsn], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @s526_ao_winsn(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) #0 {
%5 = getelementptr inbounds i8, ptr %2, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !6
%7 = tail call i32 @CR_CHAN(i32 noundef %6) #2
%8 = trunc i32 %7 to i16
%9 = shl i16 %8, 1
%10 = load i32, ptr @REG_DAC, align 4, !tbaa !11
%11 = tail call i32 @ADDR_REG(i32 noundef %10) #2
%12 = tail call i32 @outw(i16 noundef zeroext %9, i32 noundef %11) #2
%13 = load i32, ptr %2, align 4, !tbaa !12
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %39
15: ; preds = %4
%16 = sext i32 %7 to i64
%17 = or disjoint i16 %9, 1
br label %18
18: ; preds = %15, %18
%19 = phi i64 [ 0, %15 ], [ %33, %18 ]
%20 = getelementptr inbounds i32, ptr %3, i64 %19
%21 = load i32, ptr %20, align 4, !tbaa !11
%22 = trunc i32 %21 to i16
%23 = load i32, ptr @REG_ADD, align 4, !tbaa !11
%24 = tail call i32 @ADDR_REG(i32 noundef %23) #2
%25 = tail call i32 @outw(i16 noundef zeroext %22, i32 noundef %24) #2
%26 = load i32, ptr %20, align 4, !tbaa !11
%27 = load ptr, ptr @devpriv, align 8, !tbaa !13
%28 = load ptr, ptr %27, align 8, !tbaa !15
%29 = getelementptr inbounds i32, ptr %28, i64 %16
store i32 %26, ptr %29, align 4, !tbaa !11
%30 = load i32, ptr @REG_DAC, align 4, !tbaa !11
%31 = tail call i32 @ADDR_REG(i32 noundef %30) #2
%32 = tail call i32 @outw(i16 noundef zeroext %17, i32 noundef %31) #2
%33 = add nuw nsw i64 %19, 1
%34 = load i32, ptr %2, align 4, !tbaa !12
%35 = sext i32 %34 to i64
%36 = icmp slt i64 %33, %35
br i1 %36, label %18, label %37, !llvm.loop !17
37: ; preds = %18
%38 = trunc nuw nsw i64 %33 to i32
br label %39
39: ; preds = %37, %4
%40 = phi i32 [ 0, %4 ], [ %38, %37 ]
ret i32 %40
}
declare i32 @CR_CHAN(i32 noundef) local_unnamed_addr #1
declare i32 @outw(i16 noundef zeroext, i32 noundef) local_unnamed_addr #1
declare i32 @ADDR_REG(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"comedi_insn", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_2__", !14, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_drivers_staging_comedi_drivers_extr_s526.c_s526_ao_winsn |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi-i2s-audio.c_hdmi_read.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi-i2s-audio.c_hdmi_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.dw_hdmi_i2s_audio_data = type { ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @hdmi_read], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @hdmi_read(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.dw_hdmi_i2s_audio_data, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load ptr, ptr %0, align 8, !tbaa !10
%6 = tail call i32 %5(ptr noundef %4, i32 noundef %1) #1
ret i32 %6
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"dw_hdmi_i2s_audio_data", !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/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi-i2s-audio.c_hdmi_read.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/bridge/synopsys/extr_dw-hdmi-i2s-audio.c_hdmi_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 @hdmi_read], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @hdmi_read(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load ptr, ptr %0, align 8, !tbaa !11
%6 = tail call i32 %5(ptr noundef %4, i32 noundef %1) #1
ret i32 %6
}
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"dw_hdmi_i2s_audio_data", !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}
| linux_drivers_gpu_drm_bridge_synopsys_extr_dw-hdmi-i2s-audio.c_hdmi_read |
; ModuleID = 'AnghaBench/RetroArch/wii/libogc/wiiuse/extr_wpad.c___wpad_disconnect.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/wiiuse/extr_wpad.c___wpad_disconnect.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@WIIMOTE_STATE_CONNECTED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__wpad_disconnect], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @__wpad_disconnect(ptr noundef readonly %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %12, label %3
3: ; preds = %1
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %12, label %6
6: ; preds = %3
%7 = load i32, ptr @WIIMOTE_STATE_CONNECTED, align 4, !tbaa !10
%8 = tail call i64 @WIIMOTE_IS_SET(ptr noundef nonnull %4, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @wiiuse_disconnect(ptr noundef nonnull %4) #2
br label %12
12: ; preds = %3, %6, %10, %1
ret i32 0
}
declare i64 @WIIMOTE_IS_SET(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wiiuse_disconnect(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 = !{!"_wpad_cb", !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/RetroArch/wii/libogc/wiiuse/extr_wpad.c___wpad_disconnect.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/wiiuse/extr_wpad.c___wpad_disconnect.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WIIMOTE_STATE_CONNECTED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__wpad_disconnect], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @__wpad_disconnect(ptr noundef readonly %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %12, label %3
3: ; preds = %1
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %12, label %6
6: ; preds = %3
%7 = load i32, ptr @WIIMOTE_STATE_CONNECTED, align 4, !tbaa !11
%8 = tail call i64 @WIIMOTE_IS_SET(ptr noundef nonnull %4, i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @wiiuse_disconnect(ptr noundef nonnull %4) #2
br label %12
12: ; preds = %3, %6, %10, %1
ret i32 0
}
declare i64 @WIIMOTE_IS_SET(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wiiuse_disconnect(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 = !{!"_wpad_cb", !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}
| RetroArch_wii_libogc_wiiuse_extr_wpad.c___wpad_disconnect |
; ModuleID = 'AnghaBench/linux/drivers/platform/chrome/extr_cros_ec_spi.c_cros_ec_spi_receive_packet.c'
source_filename = "AnghaBench/linux/drivers/platform/chrome/extr_cros_ec_spi.c_cros_ec_spi_receive_packet.c"
target datalayout = "e-m:e-p270:32:32-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.cros_ec_device = type { i32, ptr, i32 }
@EC_MSG_PREAMBLE_COUNT = dso_local local_unnamed_addr global i32 0, align 4
@jiffies = dso_local local_unnamed_addr global i64 0, align 8
@EC_MSG_DEADLINE_MS = dso_local local_unnamed_addr global i32 0, align 4
@EC_SPI_FRAME_START = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [18 x i8] c"msg found at %zd\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"EC failed to respond in time\0A\00", align 1
@ETIMEDOUT = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [37 x i8] c"need %d, got %d bytes from preamble\0A\00", align 1
@EBADMSG = dso_local local_unnamed_addr global i32 0, align 4
@EMSGSIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [37 x i8] c"loop, todo=%d, need_len=%d, ptr=%zd\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"loop done, ptr=%zd\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @cros_ec_spi_receive_packet], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @cros_ec_spi_receive_packet(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = load i32, ptr @EC_MSG_PREAMBLE_COUNT, align 4, !tbaa !11
%5 = icmp slt i32 %3, %4
%6 = zext i1 %5 to i32
%7 = tail call i32 @BUG_ON(i32 noundef %6) #2
%8 = load i64, ptr @jiffies, align 8, !tbaa !12
%9 = load i32, ptr @EC_MSG_DEADLINE_MS, align 4, !tbaa !11
%10 = tail call i64 @msecs_to_jiffies(i32 noundef %9) #2
%11 = add i64 %10, %8
%12 = getelementptr inbounds %struct.cros_ec_device, ptr %0, i64 0, i32 1
br label %13
13: ; preds = %34, %2
%14 = load i64, ptr @jiffies, align 8, !tbaa !12
%15 = load ptr, ptr %12, align 8, !tbaa !14
%16 = load i32, ptr @EC_MSG_PREAMBLE_COUNT, align 4, !tbaa !11
%17 = tail call i32 @receive_n_bytes(ptr noundef nonnull %0, ptr noundef %15, i32 noundef %16) #2
%18 = icmp slt i32 %17, 0
br i1 %18, label %126, label %19
19: ; preds = %13
%20 = load ptr, ptr %12, align 8, !tbaa !14
%21 = load i32, ptr @EC_MSG_PREAMBLE_COUNT, align 4, !tbaa !11
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = icmp eq i32 %21, 0
br i1 %24, label %34, label %25
25: ; preds = %19
%26 = load i64, ptr @EC_SPI_FRAME_START, align 8, !tbaa !12
br label %27
27: ; preds = %25, %31
%28 = phi ptr [ %20, %25 ], [ %32, %31 ]
%29 = load i64, ptr %28, align 8, !tbaa !12
%30 = icmp eq i64 %29, %26
br i1 %30, label %43, label %31
31: ; preds = %27
%32 = getelementptr inbounds i64, ptr %28, i64 1
%33 = icmp eq ptr %32, %23
br i1 %33, label %34, label %27, !llvm.loop !15
34: ; preds = %31, %19
%35 = tail call i64 @time_after(i64 noundef %14, i64 noundef %11) #2
%36 = icmp eq i64 %35, 0
br i1 %36, label %13, label %37
37: ; preds = %34
%38 = getelementptr inbounds %struct.cros_ec_device, ptr %0, i64 0, i32 2
%39 = load i32, ptr %38, align 8, !tbaa !17
%40 = tail call i32 @dev_warn(i32 noundef %39, ptr noundef nonnull @.str.1) #2
%41 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !11
%42 = sub nsw i32 0, %41
br label %126
43: ; preds = %27
%44 = getelementptr inbounds %struct.cros_ec_device, ptr %0, i64 0, i32 2
%45 = load i32, ptr %44, align 8, !tbaa !17
%46 = ptrtoint ptr %28 to i64
%47 = ptrtoint ptr %20 to i64
%48 = sub i64 %46, %47
%49 = lshr exact i64 %48, 3
%50 = trunc i64 %49 to i32
%51 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %45, ptr noundef nonnull @.str, i32 noundef %50) #2
%52 = getelementptr inbounds i64, ptr %28, i64 1
%53 = ptrtoint ptr %23 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = lshr exact i64 %55, 3
%57 = trunc i64 %56 to i32
%58 = icmp slt i32 %57, 0
br i1 %58, label %63, label %59
59: ; preds = %43
%60 = load i32, ptr %0, align 8, !tbaa !5
%61 = icmp slt i32 %60, %57
%62 = zext i1 %61 to i32
br label %63
63: ; preds = %59, %43
%64 = phi i32 [ 1, %43 ], [ %62, %59 ]
%65 = tail call i32 @BUG_ON(i32 noundef %64) #2
%66 = tail call i32 @min(i32 noundef %57, i32 noundef %1) #2
%67 = load ptr, ptr %12, align 8, !tbaa !14
%68 = tail call i32 @memmove(ptr noundef %67, ptr noundef nonnull %52, i32 noundef %66) #2
%69 = load ptr, ptr %12, align 8, !tbaa !14
%70 = sext i32 %66 to i64
%71 = getelementptr inbounds i64, ptr %69, i64 %70
%72 = load i32, ptr %44, align 8, !tbaa !17
%73 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %72, ptr noundef nonnull @.str.2, i32 noundef %1, i32 noundef %66) #2
%74 = sub nsw i32 %1, %66
%75 = icmp ult i32 %66, 4
br i1 %75, label %76, label %85
76: ; preds = %63
%77 = sub nuw nsw i32 4, %66
%78 = tail call i32 @receive_n_bytes(ptr noundef nonnull %0, ptr noundef %71, i32 noundef %77) #2
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %76
%81 = load i32, ptr @EBADMSG, align 4, !tbaa !11
%82 = sub nsw i32 0, %81
br label %126
83: ; preds = %76
%84 = getelementptr inbounds i64, ptr %69, i64 4
br label %85
85: ; preds = %83, %63
%86 = phi ptr [ %84, %83 ], [ %71, %63 ]
%87 = load ptr, ptr %12, align 8, !tbaa !14
%88 = load i32, ptr %87, align 4, !tbaa !18
%89 = load i32, ptr %0, align 8, !tbaa !5
%90 = icmp sgt i32 %88, %89
br i1 %90, label %93, label %91
91: ; preds = %85
%92 = icmp sgt i32 %74, 0
br i1 %92, label %96, label %116
93: ; preds = %85
%94 = load i32, ptr @EMSGSIZE, align 4, !tbaa !11
%95 = sub nsw i32 0, %94
br label %126
96: ; preds = %91, %109
%97 = phi i32 [ %112, %109 ], [ %74, %91 ]
%98 = phi ptr [ %111, %109 ], [ %86, %91 ]
%99 = tail call i32 @min(i32 noundef %97, i32 noundef 256) #2
%100 = load i32, ptr %44, align 8, !tbaa !17
%101 = load ptr, ptr %12, align 8, !tbaa !14
%102 = ptrtoint ptr %98 to i64
%103 = ptrtoint ptr %101 to i64
%104 = sub i64 %102, %103
%105 = ashr exact i64 %104, 3
%106 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %100, ptr noundef nonnull @.str.3, i32 noundef %99, i32 noundef %97, i64 noundef %105) #2
%107 = tail call i32 @receive_n_bytes(ptr noundef nonnull %0, ptr noundef %98, i32 noundef %99) #2
%108 = icmp slt i32 %107, 0
br i1 %108, label %126, label %109
109: ; preds = %96
%110 = sext i32 %99 to i64
%111 = getelementptr inbounds i64, ptr %98, i64 %110
%112 = sub nsw i32 %97, %99
%113 = icmp sgt i32 %112, 0
br i1 %113, label %96, label %114, !llvm.loop !20
114: ; preds = %109
%115 = load ptr, ptr %12, align 8, !tbaa !14
br label %116
116: ; preds = %114, %91
%117 = phi ptr [ %87, %91 ], [ %115, %114 ]
%118 = phi ptr [ %86, %91 ], [ %111, %114 ]
%119 = load i32, ptr %44, align 8, !tbaa !17
%120 = ptrtoint ptr %118 to i64
%121 = ptrtoint ptr %117 to i64
%122 = sub i64 %120, %121
%123 = lshr exact i64 %122, 3
%124 = trunc i64 %123 to i32
%125 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %119, ptr noundef nonnull @.str.4, i32 noundef %124) #2
br label %126
126: ; preds = %13, %96, %37, %116, %93, %80
%127 = phi i32 [ %82, %80 ], [ %95, %93 ], [ 0, %116 ], [ %42, %37 ], [ %107, %96 ], [ %17, %13 ]
ret i32 %127
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i64 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i32 @receive_n_bytes(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
declare i64 @time_after(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @dev_warn(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memmove(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 = !{!"cros_ec_device", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !7, i64 16}
!18 = !{!19, !7, i64 0}
!19 = !{!"ec_host_response", !7, i64 0}
!20 = distinct !{!20, !16}
| ; ModuleID = 'AnghaBench/linux/drivers/platform/chrome/extr_cros_ec_spi.c_cros_ec_spi_receive_packet.c'
source_filename = "AnghaBench/linux/drivers/platform/chrome/extr_cros_ec_spi.c_cros_ec_spi_receive_packet.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EC_MSG_PREAMBLE_COUNT = common local_unnamed_addr global i32 0, align 4
@jiffies = common local_unnamed_addr global i64 0, align 8
@EC_MSG_DEADLINE_MS = common local_unnamed_addr global i32 0, align 4
@EC_SPI_FRAME_START = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [18 x i8] c"msg found at %zd\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"EC failed to respond in time\0A\00", align 1
@ETIMEDOUT = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [37 x i8] c"need %d, got %d bytes from preamble\0A\00", align 1
@EBADMSG = common local_unnamed_addr global i32 0, align 4
@EMSGSIZE = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [37 x i8] c"loop, todo=%d, need_len=%d, ptr=%zd\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"loop done, ptr=%zd\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @cros_ec_spi_receive_packet], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @cros_ec_spi_receive_packet(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = load i32, ptr @EC_MSG_PREAMBLE_COUNT, align 4, !tbaa !12
%5 = icmp slt i32 %3, %4
%6 = zext i1 %5 to i32
%7 = tail call i32 @BUG_ON(i32 noundef %6) #2
%8 = load i64, ptr @jiffies, align 8, !tbaa !13
%9 = load i32, ptr @EC_MSG_DEADLINE_MS, align 4, !tbaa !12
%10 = tail call i64 @msecs_to_jiffies(i32 noundef %9) #2
%11 = add i64 %10, %8
%12 = getelementptr inbounds i8, ptr %0, i64 8
br label %13
13: ; preds = %34, %2
%14 = load i64, ptr @jiffies, align 8, !tbaa !13
%15 = load ptr, ptr %12, align 8, !tbaa !15
%16 = load i32, ptr @EC_MSG_PREAMBLE_COUNT, align 4, !tbaa !12
%17 = tail call i32 @receive_n_bytes(ptr noundef nonnull %0, ptr noundef %15, i32 noundef %16) #2
%18 = icmp slt i32 %17, 0
br i1 %18, label %126, label %19
19: ; preds = %13
%20 = load ptr, ptr %12, align 8, !tbaa !15
%21 = load i32, ptr @EC_MSG_PREAMBLE_COUNT, align 4, !tbaa !12
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = icmp eq i32 %21, 0
br i1 %24, label %34, label %25
25: ; preds = %19
%26 = load i64, ptr @EC_SPI_FRAME_START, align 8, !tbaa !13
br label %27
27: ; preds = %25, %31
%28 = phi ptr [ %20, %25 ], [ %32, %31 ]
%29 = load i64, ptr %28, align 8, !tbaa !13
%30 = icmp eq i64 %29, %26
br i1 %30, label %43, label %31
31: ; preds = %27
%32 = getelementptr inbounds i8, ptr %28, i64 8
%33 = icmp eq ptr %32, %23
br i1 %33, label %34, label %27, !llvm.loop !16
34: ; preds = %31, %19
%35 = tail call i64 @time_after(i64 noundef %14, i64 noundef %11) #2
%36 = icmp eq i64 %35, 0
br i1 %36, label %13, label %37
37: ; preds = %34
%38 = getelementptr inbounds i8, ptr %0, i64 16
%39 = load i32, ptr %38, align 8, !tbaa !18
%40 = tail call i32 @dev_warn(i32 noundef %39, ptr noundef nonnull @.str.1) #2
%41 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !12
%42 = sub nsw i32 0, %41
br label %126
43: ; preds = %27
%44 = getelementptr inbounds i8, ptr %0, i64 16
%45 = load i32, ptr %44, align 8, !tbaa !18
%46 = ptrtoint ptr %28 to i64
%47 = ptrtoint ptr %20 to i64
%48 = sub i64 %46, %47
%49 = lshr exact i64 %48, 3
%50 = trunc i64 %49 to i32
%51 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %45, ptr noundef nonnull @.str, i32 noundef %50) #2
%52 = getelementptr inbounds i8, ptr %28, i64 8
%53 = ptrtoint ptr %23 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = lshr exact i64 %55, 3
%57 = trunc i64 %56 to i32
%58 = icmp slt i32 %57, 0
br i1 %58, label %63, label %59
59: ; preds = %43
%60 = load i32, ptr %0, align 8, !tbaa !6
%61 = icmp slt i32 %60, %57
%62 = zext i1 %61 to i32
br label %63
63: ; preds = %59, %43
%64 = phi i32 [ 1, %43 ], [ %62, %59 ]
%65 = tail call i32 @BUG_ON(i32 noundef %64) #2
%66 = tail call i32 @min(i32 noundef %57, i32 noundef %1) #2
%67 = load ptr, ptr %12, align 8, !tbaa !15
%68 = tail call i32 @memmove(ptr noundef %67, ptr noundef nonnull %52, i32 noundef %66) #2
%69 = load ptr, ptr %12, align 8, !tbaa !15
%70 = sext i32 %66 to i64
%71 = getelementptr inbounds i64, ptr %69, i64 %70
%72 = load i32, ptr %44, align 8, !tbaa !18
%73 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %72, ptr noundef nonnull @.str.2, i32 noundef %1, i32 noundef %66) #2
%74 = sub nsw i32 %1, %66
%75 = icmp ult i32 %66, 4
br i1 %75, label %76, label %85
76: ; preds = %63
%77 = sub nuw nsw i32 4, %66
%78 = tail call i32 @receive_n_bytes(ptr noundef nonnull %0, ptr noundef %71, i32 noundef %77) #2
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %76
%81 = load i32, ptr @EBADMSG, align 4, !tbaa !12
%82 = sub nsw i32 0, %81
br label %126
83: ; preds = %76
%84 = getelementptr inbounds i8, ptr %69, i64 32
br label %85
85: ; preds = %83, %63
%86 = phi ptr [ %84, %83 ], [ %71, %63 ]
%87 = load ptr, ptr %12, align 8, !tbaa !15
%88 = load i32, ptr %87, align 4, !tbaa !19
%89 = load i32, ptr %0, align 8, !tbaa !6
%90 = icmp sgt i32 %88, %89
br i1 %90, label %93, label %91
91: ; preds = %85
%92 = icmp sgt i32 %74, 0
br i1 %92, label %96, label %116
93: ; preds = %85
%94 = load i32, ptr @EMSGSIZE, align 4, !tbaa !12
%95 = sub nsw i32 0, %94
br label %126
96: ; preds = %91, %109
%97 = phi i32 [ %112, %109 ], [ %74, %91 ]
%98 = phi ptr [ %111, %109 ], [ %86, %91 ]
%99 = tail call i32 @min(i32 noundef %97, i32 noundef 256) #2
%100 = load i32, ptr %44, align 8, !tbaa !18
%101 = load ptr, ptr %12, align 8, !tbaa !15
%102 = ptrtoint ptr %98 to i64
%103 = ptrtoint ptr %101 to i64
%104 = sub i64 %102, %103
%105 = ashr exact i64 %104, 3
%106 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %100, ptr noundef nonnull @.str.3, i32 noundef %99, i32 noundef %97, i64 noundef %105) #2
%107 = tail call i32 @receive_n_bytes(ptr noundef nonnull %0, ptr noundef %98, i32 noundef %99) #2
%108 = icmp slt i32 %107, 0
br i1 %108, label %126, label %109
109: ; preds = %96
%110 = sext i32 %99 to i64
%111 = getelementptr inbounds i64, ptr %98, i64 %110
%112 = sub nsw i32 %97, %99
%113 = icmp sgt i32 %112, 0
br i1 %113, label %96, label %114, !llvm.loop !21
114: ; preds = %109
%115 = load ptr, ptr %12, align 8, !tbaa !15
br label %116
116: ; preds = %114, %91
%117 = phi ptr [ %87, %91 ], [ %115, %114 ]
%118 = phi ptr [ %86, %91 ], [ %111, %114 ]
%119 = load i32, ptr %44, align 8, !tbaa !18
%120 = ptrtoint ptr %118 to i64
%121 = ptrtoint ptr %117 to i64
%122 = sub i64 %120, %121
%123 = lshr exact i64 %122, 3
%124 = trunc i64 %123 to i32
%125 = tail call i32 (i32, ptr, i32, ...) @dev_dbg(i32 noundef %119, ptr noundef nonnull @.str.4, i32 noundef %124) #2
br label %126
126: ; preds = %13, %96, %37, %116, %93, %80
%127 = phi i32 [ %82, %80 ], [ %95, %93 ], [ 0, %116 ], [ %42, %37 ], [ %107, %96 ], [ %17, %13 ]
ret i32 %127
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i64 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i32 @receive_n_bytes(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
declare i64 @time_after(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @dev_warn(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memmove(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 = !{!"cros_ec_device", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !11, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!7, !8, i64 16}
!19 = !{!20, !8, i64 0}
!20 = !{!"ec_host_response", !8, i64 0}
!21 = distinct !{!21, !17}
| linux_drivers_platform_chrome_extr_cros_ec_spi.c_cros_ec_spi_receive_packet |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/sched/extr_sch_hfsc.c_cftree_update.c'
source_filename = "AnghaBench/fastsocket/kernel/net/sched/extr_sch_hfsc.c_cftree_update.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @cftree_update], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @cftree_update(ptr noundef %0) #0 {
%2 = tail call i32 @cftree_remove(ptr noundef %0) #2
%3 = tail call i32 @cftree_insert(ptr noundef %0) #2
ret void
}
declare i32 @cftree_remove(ptr noundef) local_unnamed_addr #1
declare i32 @cftree_insert(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/net/sched/extr_sch_hfsc.c_cftree_update.c'
source_filename = "AnghaBench/fastsocket/kernel/net/sched/extr_sch_hfsc.c_cftree_update.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 @cftree_update], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @cftree_update(ptr noundef %0) #0 {
%2 = tail call i32 @cftree_remove(ptr noundef %0) #2
%3 = tail call i32 @cftree_insert(ptr noundef %0) #2
ret void
}
declare i32 @cftree_remove(ptr noundef) local_unnamed_addr #1
declare i32 @cftree_insert(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_net_sched_extr_sch_hfsc.c_cftree_update |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/net/extr_route.c_rtrequest_scoped.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_route.c_rtrequest_scoped.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@rnh_lock = dso_local local_unnamed_addr global i32 0, align 4
@LCK_MTX_ASSERT_NOTOWNED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @rtrequest_scoped(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #0 {
%8 = load i32, ptr @rnh_lock, align 4, !tbaa !5
%9 = load i32, ptr @LCK_MTX_ASSERT_NOTOWNED, align 4, !tbaa !5
%10 = tail call i32 @LCK_MTX_ASSERT(i32 noundef %8, i32 noundef %9) #2
%11 = load i32, ptr @rnh_lock, align 4, !tbaa !5
%12 = tail call i32 @lck_mtx_lock(i32 noundef %11) #2
%13 = tail call i32 @rtrequest_scoped_locked(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #2
%14 = load i32, ptr @rnh_lock, align 4, !tbaa !5
%15 = tail call i32 @lck_mtx_unlock(i32 noundef %14) #2
ret i32 %13
}
declare i32 @LCK_MTX_ASSERT(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lck_mtx_lock(i32 noundef) local_unnamed_addr #1
declare i32 @rtrequest_scoped_locked(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lck_mtx_unlock(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/darwin-xnu/bsd/net/extr_route.c_rtrequest_scoped.c'
source_filename = "AnghaBench/darwin-xnu/bsd/net/extr_route.c_rtrequest_scoped.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@rnh_lock = common local_unnamed_addr global i32 0, align 4
@LCK_MTX_ASSERT_NOTOWNED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @rtrequest_scoped(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #0 {
%8 = load i32, ptr @rnh_lock, align 4, !tbaa !6
%9 = load i32, ptr @LCK_MTX_ASSERT_NOTOWNED, align 4, !tbaa !6
%10 = tail call i32 @LCK_MTX_ASSERT(i32 noundef %8, i32 noundef %9) #2
%11 = load i32, ptr @rnh_lock, align 4, !tbaa !6
%12 = tail call i32 @lck_mtx_lock(i32 noundef %11) #2
%13 = tail call i32 @rtrequest_scoped_locked(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #2
%14 = load i32, ptr @rnh_lock, align 4, !tbaa !6
%15 = tail call i32 @lck_mtx_unlock(i32 noundef %14) #2
ret i32 %13
}
declare i32 @LCK_MTX_ASSERT(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lck_mtx_lock(i32 noundef) local_unnamed_addr #1
declare i32 @rtrequest_scoped_locked(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @lck_mtx_unlock(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"}
| darwin-xnu_bsd_net_extr_route.c_rtrequest_scoped |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_connectors.c_amdgpu_connector_dp_get_modes.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_connectors.c_amdgpu_connector_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.drm_connector = type { i64, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32 }
@DRM_MODE_CONNECTOR_eDP = dso_local local_unnamed_addr global i64 0, align 8
@DRM_MODE_CONNECTOR_LVDS = dso_local local_unnamed_addr global i64 0, align 8
@ATOM_TRANSMITTER_ACTION_POWER_ON = dso_local local_unnamed_addr global i32 0, align 4
@ATOM_TRANSMITTER_ACTION_POWER_OFF = dso_local local_unnamed_addr global i32 0, align 4
@ENCODER_OBJECT_ID_NONE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @amdgpu_connector_dp_get_modes], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @amdgpu_connector_dp_get_modes(ptr noundef %0) #0 {
%2 = tail call ptr @to_amdgpu_connector(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = tail call ptr @amdgpu_connector_best_single_encoder(ptr noundef %0) #2
%5 = load i64, ptr %0, align 8, !tbaa !10
%6 = load i64, ptr @DRM_MODE_CONNECTOR_eDP, align 8, !tbaa !15
%7 = icmp eq i64 %5, %6
%8 = load i64, ptr @DRM_MODE_CONNECTOR_LVDS, align 8
%9 = icmp eq i64 %5, %8
%10 = select i1 %7, i1 true, i1 %9
br i1 %10, label %11, label %54
11: ; preds = %1
br i1 %7, label %12, label %26
12: ; preds = %11
%13 = load i32, ptr %3, align 4, !tbaa !16
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, ptr @ATOM_TRANSMITTER_ACTION_POWER_ON, align 4, !tbaa !18
%17 = tail call i32 @amdgpu_atombios_encoder_set_edp_panel_power(ptr noundef nonnull %0, i32 noundef %16) #2
br label %18
18: ; preds = %15, %12
%19 = tail call i32 @amdgpu_connector_get_edid(ptr noundef nonnull %0) #2
%20 = tail call i32 @amdgpu_connector_ddc_get_modes(ptr noundef nonnull %0) #2
%21 = load i32, ptr %3, align 4, !tbaa !16
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %37
23: ; preds = %18
%24 = load i32, ptr @ATOM_TRANSMITTER_ACTION_POWER_OFF, align 4, !tbaa !18
%25 = tail call i32 @amdgpu_atombios_encoder_set_edp_panel_power(ptr noundef nonnull %0, i32 noundef %24) #2
br label %37
26: ; preds = %11
%27 = tail call i64 @amdgpu_connector_encoder_get_dp_bridge_encoder_id(ptr noundef nonnull %0) #2
%28 = load i64, ptr @ENCODER_OBJECT_ID_NONE, align 8, !tbaa !15
%29 = icmp ne i64 %27, %28
%30 = icmp ne ptr %4, null
%31 = select i1 %29, i1 %30, i1 false
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = tail call i32 @amdgpu_atombios_encoder_setup_ext_encoder_ddc(ptr noundef nonnull %4) #2
br label %34
34: ; preds = %32, %26
%35 = tail call i32 @amdgpu_connector_get_edid(ptr noundef nonnull %0) #2
%36 = tail call i32 @amdgpu_connector_ddc_get_modes(ptr noundef nonnull %0) #2
br label %37
37: ; preds = %18, %23, %34
%38 = phi i32 [ %20, %18 ], [ %20, %23 ], [ %36, %34 ]
%39 = icmp sgt i32 %38, 0
%40 = icmp eq ptr %4, null
br i1 %39, label %41, label %45
41: ; preds = %37
br i1 %40, label %66, label %42
42: ; preds = %41
%43 = tail call i32 @amdgpu_connector_fixup_lcd_native_mode(ptr noundef nonnull %4, ptr noundef nonnull %0) #2
%44 = tail call i32 @amdgpu_connector_add_common_modes(ptr noundef nonnull %4, ptr noundef nonnull %0) #2
br label %66
45: ; preds = %37
br i1 %40, label %66, label %46
46: ; preds = %45
%47 = tail call ptr @amdgpu_connector_lcd_native_mode(ptr noundef nonnull %4) #2
%48 = icmp eq ptr %47, null
br i1 %48, label %66, label %49
49: ; preds = %46
%50 = tail call i32 @drm_mode_probed_add(ptr noundef nonnull %0, ptr noundef nonnull %47) #2
%51 = getelementptr inbounds %struct.drm_connector, ptr %0, i64 0, i32 1
%52 = load <2 x i32>, ptr %47, align 4, !tbaa !18
store <2 x i32> %52, ptr %51, align 8, !tbaa !18
%53 = tail call i32 @amdgpu_connector_add_common_modes(ptr noundef nonnull %4, ptr noundef nonnull %0) #2
br label %66
54: ; preds = %1
%55 = tail call i64 @amdgpu_connector_encoder_get_dp_bridge_encoder_id(ptr noundef nonnull %0) #2
%56 = load i64, ptr @ENCODER_OBJECT_ID_NONE, align 8, !tbaa !15
%57 = icmp ne i64 %55, %56
%58 = icmp ne ptr %4, null
%59 = select i1 %57, i1 %58, i1 false
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = tail call i32 @amdgpu_atombios_encoder_setup_ext_encoder_ddc(ptr noundef nonnull %4) #2
br label %62
62: ; preds = %60, %54
%63 = tail call i32 @amdgpu_connector_get_edid(ptr noundef nonnull %0) #2
%64 = tail call i32 @amdgpu_connector_ddc_get_modes(ptr noundef nonnull %0) #2
%65 = tail call i32 @amdgpu_get_native_mode(ptr noundef nonnull %0) #2
br label %66
66: ; preds = %45, %41, %42, %49, %46, %62
%67 = phi i32 [ %64, %62 ], [ 1, %49 ], [ %38, %46 ], [ 0, %45 ], [ %38, %41 ], [ %38, %42 ]
ret i32 %67
}
declare ptr @to_amdgpu_connector(ptr noundef) local_unnamed_addr #1
declare ptr @amdgpu_connector_best_single_encoder(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_atombios_encoder_set_edp_panel_power(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_get_edid(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_ddc_get_modes(ptr noundef) local_unnamed_addr #1
declare i64 @amdgpu_connector_encoder_get_dp_bridge_encoder_id(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_atombios_encoder_setup_ext_encoder_ddc(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_fixup_lcd_native_mode(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_add_common_modes(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @amdgpu_connector_lcd_native_mode(ptr noundef) local_unnamed_addr #1
declare i32 @drm_mode_probed_add(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_get_native_mode(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 = !{!"amdgpu_connector", !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 = !{!"drm_connector", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0, !14, i64 4}
!14 = !{!"int", !8, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"amdgpu_connector_atom_dig", !14, i64 0}
!18 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_connectors.c_amdgpu_connector_dp_get_modes.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_amdgpu_connectors.c_amdgpu_connector_dp_get_modes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DRM_MODE_CONNECTOR_eDP = common local_unnamed_addr global i64 0, align 8
@DRM_MODE_CONNECTOR_LVDS = common local_unnamed_addr global i64 0, align 8
@ATOM_TRANSMITTER_ACTION_POWER_ON = common local_unnamed_addr global i32 0, align 4
@ATOM_TRANSMITTER_ACTION_POWER_OFF = common local_unnamed_addr global i32 0, align 4
@ENCODER_OBJECT_ID_NONE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @amdgpu_connector_dp_get_modes], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @amdgpu_connector_dp_get_modes(ptr noundef %0) #0 {
%2 = tail call ptr @to_amdgpu_connector(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = tail call ptr @amdgpu_connector_best_single_encoder(ptr noundef %0) #2
%5 = load i64, ptr %0, align 8, !tbaa !11
%6 = load i64, ptr @DRM_MODE_CONNECTOR_eDP, align 8, !tbaa !16
%7 = icmp eq i64 %5, %6
%8 = load i64, ptr @DRM_MODE_CONNECTOR_LVDS, align 8
%9 = icmp eq i64 %5, %8
%10 = select i1 %7, i1 true, i1 %9
br i1 %10, label %11, label %54
11: ; preds = %1
br i1 %7, label %12, label %26
12: ; preds = %11
%13 = load i32, ptr %3, align 4, !tbaa !17
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, ptr @ATOM_TRANSMITTER_ACTION_POWER_ON, align 4, !tbaa !19
%17 = tail call i32 @amdgpu_atombios_encoder_set_edp_panel_power(ptr noundef nonnull %0, i32 noundef %16) #2
br label %18
18: ; preds = %15, %12
%19 = tail call i32 @amdgpu_connector_get_edid(ptr noundef nonnull %0) #2
%20 = tail call i32 @amdgpu_connector_ddc_get_modes(ptr noundef nonnull %0) #2
%21 = load i32, ptr %3, align 4, !tbaa !17
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %37
23: ; preds = %18
%24 = load i32, ptr @ATOM_TRANSMITTER_ACTION_POWER_OFF, align 4, !tbaa !19
%25 = tail call i32 @amdgpu_atombios_encoder_set_edp_panel_power(ptr noundef nonnull %0, i32 noundef %24) #2
br label %37
26: ; preds = %11
%27 = tail call i64 @amdgpu_connector_encoder_get_dp_bridge_encoder_id(ptr noundef nonnull %0) #2
%28 = load i64, ptr @ENCODER_OBJECT_ID_NONE, align 8, !tbaa !16
%29 = icmp ne i64 %27, %28
%30 = icmp ne ptr %4, null
%31 = select i1 %29, i1 %30, i1 false
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = tail call i32 @amdgpu_atombios_encoder_setup_ext_encoder_ddc(ptr noundef nonnull %4) #2
br label %34
34: ; preds = %32, %26
%35 = tail call i32 @amdgpu_connector_get_edid(ptr noundef nonnull %0) #2
%36 = tail call i32 @amdgpu_connector_ddc_get_modes(ptr noundef nonnull %0) #2
br label %37
37: ; preds = %18, %23, %34
%38 = phi i32 [ %20, %18 ], [ %20, %23 ], [ %36, %34 ]
%39 = icmp sgt i32 %38, 0
%40 = icmp eq ptr %4, null
br i1 %39, label %41, label %45
41: ; preds = %37
br i1 %40, label %66, label %42
42: ; preds = %41
%43 = tail call i32 @amdgpu_connector_fixup_lcd_native_mode(ptr noundef nonnull %4, ptr noundef nonnull %0) #2
%44 = tail call i32 @amdgpu_connector_add_common_modes(ptr noundef nonnull %4, ptr noundef nonnull %0) #2
br label %66
45: ; preds = %37
br i1 %40, label %66, label %46
46: ; preds = %45
%47 = tail call ptr @amdgpu_connector_lcd_native_mode(ptr noundef nonnull %4) #2
%48 = icmp eq ptr %47, null
br i1 %48, label %66, label %49
49: ; preds = %46
%50 = tail call i32 @drm_mode_probed_add(ptr noundef nonnull %0, ptr noundef nonnull %47) #2
%51 = getelementptr inbounds i8, ptr %0, i64 8
%52 = load <2 x i32>, ptr %47, align 4, !tbaa !19
store <2 x i32> %52, ptr %51, align 8, !tbaa !19
%53 = tail call i32 @amdgpu_connector_add_common_modes(ptr noundef nonnull %4, ptr noundef nonnull %0) #2
br label %66
54: ; preds = %1
%55 = tail call i64 @amdgpu_connector_encoder_get_dp_bridge_encoder_id(ptr noundef nonnull %0) #2
%56 = load i64, ptr @ENCODER_OBJECT_ID_NONE, align 8, !tbaa !16
%57 = icmp ne i64 %55, %56
%58 = icmp ne ptr %4, null
%59 = select i1 %57, i1 %58, i1 false
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = tail call i32 @amdgpu_atombios_encoder_setup_ext_encoder_ddc(ptr noundef nonnull %4) #2
br label %62
62: ; preds = %60, %54
%63 = tail call i32 @amdgpu_connector_get_edid(ptr noundef nonnull %0) #2
%64 = tail call i32 @amdgpu_connector_ddc_get_modes(ptr noundef nonnull %0) #2
%65 = tail call i32 @amdgpu_get_native_mode(ptr noundef nonnull %0) #2
br label %66
66: ; preds = %45, %41, %42, %62, %46, %49
%67 = phi i32 [ %64, %62 ], [ 1, %49 ], [ %38, %46 ], [ 0, %45 ], [ %38, %41 ], [ %38, %42 ]
ret i32 %67
}
declare ptr @to_amdgpu_connector(ptr noundef) local_unnamed_addr #1
declare ptr @amdgpu_connector_best_single_encoder(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_atombios_encoder_set_edp_panel_power(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_get_edid(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_ddc_get_modes(ptr noundef) local_unnamed_addr #1
declare i64 @amdgpu_connector_encoder_get_dp_bridge_encoder_id(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_atombios_encoder_setup_ext_encoder_ddc(ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_fixup_lcd_native_mode(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_connector_add_common_modes(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @amdgpu_connector_lcd_native_mode(ptr noundef) local_unnamed_addr #1
declare i32 @drm_mode_probed_add(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @amdgpu_get_native_mode(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 = !{!"amdgpu_connector", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"drm_connector", !13, i64 0, !14, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"TYPE_2__", !15, i64 0, !15, i64 4}
!15 = !{!"int", !9, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !15, i64 0}
!18 = !{!"amdgpu_connector_atom_dig", !15, i64 0}
!19 = !{!15, !15, i64 0}
| linux_drivers_gpu_drm_amd_amdgpu_extr_amdgpu_connectors.c_amdgpu_connector_dp_get_modes |
; ModuleID = 'AnghaBench/linux/drivers/dma/extr_mv_xor.c_mv_xor_status.c'
source_filename = "AnghaBench/linux/drivers/dma/extr_mv_xor.c_mv_xor_status.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DMA_COMPLETE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mv_xor_status], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mv_xor_status(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = tail call ptr @to_mv_xor_chan(ptr noundef %0) #2
%5 = tail call i32 @dma_cookie_status(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2
%6 = load i32, ptr @DMA_COMPLETE, align 4, !tbaa !5
%7 = icmp eq i32 %5, %6
br i1 %7, label %13, label %8
8: ; preds = %3
%9 = tail call i32 @spin_lock_bh(ptr noundef %4) #2
%10 = tail call i32 @mv_chan_slot_cleanup(ptr noundef %4) #2
%11 = tail call i32 @spin_unlock_bh(ptr noundef %4) #2
%12 = tail call i32 @dma_cookie_status(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2
br label %13
13: ; preds = %3, %8
%14 = phi i32 [ %12, %8 ], [ %5, %3 ]
ret i32 %14
}
declare ptr @to_mv_xor_chan(ptr noundef) local_unnamed_addr #1
declare i32 @dma_cookie_status(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @mv_chan_slot_cleanup(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_bh(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/dma/extr_mv_xor.c_mv_xor_status.c'
source_filename = "AnghaBench/linux/drivers/dma/extr_mv_xor.c_mv_xor_status.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DMA_COMPLETE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mv_xor_status], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mv_xor_status(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = tail call ptr @to_mv_xor_chan(ptr noundef %0) #2
%5 = tail call i32 @dma_cookie_status(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2
%6 = load i32, ptr @DMA_COMPLETE, align 4, !tbaa !6
%7 = icmp eq i32 %5, %6
br i1 %7, label %13, label %8
8: ; preds = %3
%9 = tail call i32 @spin_lock_bh(ptr noundef %4) #2
%10 = tail call i32 @mv_chan_slot_cleanup(ptr noundef %4) #2
%11 = tail call i32 @spin_unlock_bh(ptr noundef %4) #2
%12 = tail call i32 @dma_cookie_status(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2
br label %13
13: ; preds = %3, %8
%14 = phi i32 [ %12, %8 ], [ %5, %3 ]
ret i32 %14
}
declare ptr @to_mv_xor_chan(ptr noundef) local_unnamed_addr #1
declare i32 @dma_cookie_status(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_bh(ptr noundef) local_unnamed_addr #1
declare i32 @mv_chan_slot_cleanup(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_bh(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_dma_extr_mv_xor.c_mv_xor_status |
; ModuleID = 'AnghaBench/linux/drivers/leds/extr_leds-ktd2692.c_ktd2692_led_brightness_set.c'
source_filename = "AnghaBench/linux/drivers/leds/extr_leds-ktd2692.c_ktd2692_led_brightness_set.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ktd2692_context = type { i32, i32, i32 }
@LED_OFF = dso_local local_unnamed_addr global i32 0, align 4
@KTD2692_MODE_DISABLE = dso_local local_unnamed_addr global i32 0, align 4
@KTD2692_LOW = dso_local local_unnamed_addr global i32 0, align 4
@KTD2692_REG_MOVIE_CURRENT_BASE = dso_local local_unnamed_addr global i32 0, align 4
@KTD2692_MODE_MOVIE = dso_local local_unnamed_addr global i32 0, align 4
@KTD2692_REG_MODE_BASE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ktd2692_led_brightness_set], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @ktd2692_led_brightness_set(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @lcdev_to_flcdev(ptr noundef %0) #2
%4 = tail call ptr @fled_cdev_to_led(ptr noundef %3) #2
%5 = getelementptr inbounds %struct.ktd2692_context, ptr %4, i64 0, i32 1
%6 = tail call i32 @mutex_lock(ptr noundef nonnull %5) #2
%7 = load i32, ptr @LED_OFF, align 4, !tbaa !5
%8 = icmp eq i32 %7, %1
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = load i32, ptr @KTD2692_MODE_DISABLE, align 4, !tbaa !5
store i32 %10, ptr %4, align 4, !tbaa !9
%11 = getelementptr inbounds %struct.ktd2692_context, ptr %4, i64 0, i32 2
%12 = load i32, ptr %11, align 4, !tbaa !11
%13 = load i32, ptr @KTD2692_LOW, align 4, !tbaa !5
%14 = tail call i32 @gpiod_direction_output(i32 noundef %12, i32 noundef %13) #2
%15 = load i32, ptr %4, align 4, !tbaa !9
br label %21
16: ; preds = %2
%17 = load i32, ptr @KTD2692_REG_MOVIE_CURRENT_BASE, align 4, !tbaa !5
%18 = or i32 %17, %1
%19 = tail call i32 @ktd2692_expresswire_write(ptr noundef %4, i32 noundef %18) #2
%20 = load i32, ptr @KTD2692_MODE_MOVIE, align 4, !tbaa !5
store i32 %20, ptr %4, align 4, !tbaa !9
br label %21
21: ; preds = %16, %9
%22 = phi i32 [ %20, %16 ], [ %15, %9 ]
%23 = load i32, ptr @KTD2692_REG_MODE_BASE, align 4, !tbaa !5
%24 = or i32 %23, %22
%25 = tail call i32 @ktd2692_expresswire_write(ptr noundef nonnull %4, i32 noundef %24) #2
%26 = tail call i32 @mutex_unlock(ptr noundef nonnull %5) #2
ret i32 0
}
declare ptr @lcdev_to_flcdev(ptr noundef) local_unnamed_addr #1
declare ptr @fled_cdev_to_led(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @gpiod_direction_output(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ktd2692_expresswire_write(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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 = !{!"ktd2692_context", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/leds/extr_leds-ktd2692.c_ktd2692_led_brightness_set.c'
source_filename = "AnghaBench/linux/drivers/leds/extr_leds-ktd2692.c_ktd2692_led_brightness_set.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LED_OFF = common local_unnamed_addr global i32 0, align 4
@KTD2692_MODE_DISABLE = common local_unnamed_addr global i32 0, align 4
@KTD2692_LOW = common local_unnamed_addr global i32 0, align 4
@KTD2692_REG_MOVIE_CURRENT_BASE = common local_unnamed_addr global i32 0, align 4
@KTD2692_MODE_MOVIE = common local_unnamed_addr global i32 0, align 4
@KTD2692_REG_MODE_BASE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ktd2692_led_brightness_set], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @ktd2692_led_brightness_set(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call ptr @lcdev_to_flcdev(ptr noundef %0) #2
%4 = tail call ptr @fled_cdev_to_led(ptr noundef %3) #2
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = tail call i32 @mutex_lock(ptr noundef nonnull %5) #2
%7 = load i32, ptr @LED_OFF, align 4, !tbaa !6
%8 = icmp eq i32 %7, %1
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = load i32, ptr @KTD2692_MODE_DISABLE, align 4, !tbaa !6
store i32 %10, ptr %4, align 4, !tbaa !10
%11 = getelementptr inbounds i8, ptr %4, i64 8
%12 = load i32, ptr %11, align 4, !tbaa !12
%13 = load i32, ptr @KTD2692_LOW, align 4, !tbaa !6
%14 = tail call i32 @gpiod_direction_output(i32 noundef %12, i32 noundef %13) #2
%15 = load i32, ptr %4, align 4, !tbaa !10
br label %21
16: ; preds = %2
%17 = load i32, ptr @KTD2692_REG_MOVIE_CURRENT_BASE, align 4, !tbaa !6
%18 = or i32 %17, %1
%19 = tail call i32 @ktd2692_expresswire_write(ptr noundef %4, i32 noundef %18) #2
%20 = load i32, ptr @KTD2692_MODE_MOVIE, align 4, !tbaa !6
store i32 %20, ptr %4, align 4, !tbaa !10
br label %21
21: ; preds = %16, %9
%22 = phi i32 [ %20, %16 ], [ %15, %9 ]
%23 = load i32, ptr @KTD2692_REG_MODE_BASE, align 4, !tbaa !6
%24 = or i32 %23, %22
%25 = tail call i32 @ktd2692_expresswire_write(ptr noundef nonnull %4, i32 noundef %24) #2
%26 = tail call i32 @mutex_unlock(ptr noundef nonnull %5) #2
ret i32 0
}
declare ptr @lcdev_to_flcdev(ptr noundef) local_unnamed_addr #1
declare ptr @fled_cdev_to_led(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @gpiod_direction_output(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ktd2692_expresswire_write(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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 = !{!"ktd2692_context", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!11, !7, i64 8}
| linux_drivers_leds_extr_leds-ktd2692.c_ktd2692_led_brightness_set |
; ModuleID = 'AnghaBench/linux/drivers/char/extr_apm-emulation.c_apm_release.c'
source_filename = "AnghaBench/linux/drivers/char/extr_apm-emulation.c_apm_release.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.apm_user = type { i64, i32 }
@user_list_lock = dso_local global i32 0, align 4
@state_lock = dso_local global i32 0, align 4
@SUSPEND_PENDING = dso_local local_unnamed_addr global i64 0, align 8
@SUSPEND_READ = dso_local local_unnamed_addr global i64 0, align 8
@suspend_acks_pending = dso_local global i32 0, align 4
@apm_suspend_waitqueue = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @apm_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @apm_release(ptr nocapture readnone %0, ptr nocapture noundef %1) #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !5
store ptr null, ptr %1, align 8, !tbaa !5
%4 = tail call i32 @down_write(ptr noundef nonnull @user_list_lock) #2
%5 = getelementptr inbounds %struct.apm_user, ptr %3, i64 0, i32 1
%6 = tail call i32 @list_del(ptr noundef nonnull %5) #2
%7 = tail call i32 @up_write(ptr noundef nonnull @user_list_lock) #2
%8 = tail call i32 @mutex_lock(ptr noundef nonnull @state_lock) #2
%9 = load i64, ptr %3, align 8, !tbaa !10
%10 = load i64, ptr @SUSPEND_PENDING, align 8, !tbaa !14
%11 = icmp eq i64 %9, %10
%12 = load i64, ptr @SUSPEND_READ, align 8
%13 = icmp eq i64 %9, %12
%14 = select i1 %11, i1 true, i1 %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = tail call i32 @atomic_dec(ptr noundef nonnull @suspend_acks_pending) #2
br label %17
17: ; preds = %2, %15
%18 = tail call i32 @mutex_unlock(ptr noundef nonnull @state_lock) #2
%19 = tail call i32 @wake_up(ptr noundef nonnull @apm_suspend_waitqueue) #2
%20 = tail call i32 @kfree(ptr noundef nonnull %3) #2
ret i32 0
}
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @atomic_dec(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"file", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"apm_user", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!12, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/char/extr_apm-emulation.c_apm_release.c'
source_filename = "AnghaBench/linux/drivers/char/extr_apm-emulation.c_apm_release.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@user_list_lock = common global i32 0, align 4
@state_lock = common global i32 0, align 4
@SUSPEND_PENDING = common local_unnamed_addr global i64 0, align 8
@SUSPEND_READ = common local_unnamed_addr global i64 0, align 8
@suspend_acks_pending = common global i32 0, align 4
@apm_suspend_waitqueue = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @apm_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @apm_release(ptr nocapture readnone %0, ptr nocapture noundef %1) #0 {
%3 = load ptr, ptr %1, align 8, !tbaa !6
store ptr null, ptr %1, align 8, !tbaa !6
%4 = tail call i32 @down_write(ptr noundef nonnull @user_list_lock) #2
%5 = getelementptr inbounds i8, ptr %3, i64 8
%6 = tail call i32 @list_del(ptr noundef nonnull %5) #2
%7 = tail call i32 @up_write(ptr noundef nonnull @user_list_lock) #2
%8 = tail call i32 @mutex_lock(ptr noundef nonnull @state_lock) #2
%9 = load i64, ptr %3, align 8, !tbaa !11
%10 = load i64, ptr @SUSPEND_PENDING, align 8, !tbaa !15
%11 = icmp eq i64 %9, %10
%12 = load i64, ptr @SUSPEND_READ, align 8
%13 = icmp eq i64 %9, %12
%14 = select i1 %11, i1 true, i1 %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = tail call i32 @atomic_dec(ptr noundef nonnull @suspend_acks_pending) #2
br label %17
17: ; preds = %2, %15
%18 = tail call i32 @mutex_unlock(ptr noundef nonnull @state_lock) #2
%19 = tail call i32 @wake_up(ptr noundef nonnull @apm_suspend_waitqueue) #2
%20 = tail call i32 @kfree(ptr noundef nonnull %3) #2
ret i32 0
}
declare i32 @down_write(ptr noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i32 @up_write(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @atomic_dec(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @wake_up(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"file", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"apm_user", !13, i64 0, !14, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!13, !13, i64 0}
| linux_drivers_char_extr_apm-emulation.c_apm_release |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_slot_reset.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_slot_reset.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hnae3_ae_dev = type { i64, ptr }
%struct.hnae3_ae_ops = type { ptr, ptr, ptr }
@PCI_ERS_RESULT_NONE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"requesting reset due to PCI error\0A\00", align 1
@PCI_ERS_RESULT_RECOVERED = dso_local local_unnamed_addr global i32 0, align 4
@PCI_ERS_RESULT_DISCONNECT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @hns3_slot_reset], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hns3_slot_reset(ptr noundef %0) #0 {
%2 = tail call ptr @pci_get_drvdata(ptr noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %29, label %4
4: ; preds = %1
%5 = getelementptr inbounds %struct.hnae3_ae_dev, ptr %2, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = icmp eq ptr %6, null
br i1 %7, label %29, label %8
8: ; preds = %4
%9 = getelementptr inbounds %struct.hnae3_ae_ops, ptr %6, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !11
%11 = icmp eq ptr %10, null
br i1 %11, label %29, label %12
12: ; preds = %8
%13 = load ptr, ptr %6, align 8, !tbaa !13
%14 = icmp eq ptr %13, null
br i1 %14, label %29, label %15
15: ; preds = %12
%16 = getelementptr inbounds %struct.hnae3_ae_ops, ptr %6, i64 0, i32 2
%17 = load ptr, ptr %16, align 8, !tbaa !14
%18 = icmp eq ptr %17, null
br i1 %18, label %29, label %19
19: ; preds = %15
%20 = load i64, ptr %2, align 8, !tbaa !15
%21 = icmp eq i64 %20, 0
br i1 %21, label %29, label %22
22: ; preds = %19
%23 = tail call i32 %13(ptr noundef nonnull %2, ptr noundef nonnull %2) #2
%24 = load ptr, ptr %16, align 8, !tbaa !14
%25 = tail call i32 %24(ptr noundef nonnull %2, i32 noundef %23) #2
%26 = tail call i32 @dev_info(ptr noundef %0, ptr noundef nonnull @.str) #2
%27 = load ptr, ptr %9, align 8, !tbaa !11
%28 = tail call i32 %27(ptr noundef %0, ptr noundef null) #2
br label %29
29: ; preds = %8, %12, %15, %19, %22, %1, %4
%30 = phi ptr [ @PCI_ERS_RESULT_NONE, %4 ], [ @PCI_ERS_RESULT_NONE, %1 ], [ @PCI_ERS_RESULT_RECOVERED, %22 ], [ @PCI_ERS_RESULT_RECOVERED, %19 ], [ @PCI_ERS_RESULT_DISCONNECT, %15 ], [ @PCI_ERS_RESULT_DISCONNECT, %12 ], [ @PCI_ERS_RESULT_DISCONNECT, %8 ]
%31 = load i32, ptr %30, align 4, !tbaa !16
ret i32 %31
}
declare ptr @pci_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"hnae3_ae_dev", !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, !10, i64 8}
!12 = !{!"hnae3_ae_ops", !10, i64 0, !10, i64 8, !10, i64 16}
!13 = !{!12, !10, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_slot_reset.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_slot_reset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCI_ERS_RESULT_NONE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [35 x i8] c"requesting reset due to PCI error\0A\00", align 1
@PCI_ERS_RESULT_RECOVERED = common local_unnamed_addr global i32 0, align 4
@PCI_ERS_RESULT_DISCONNECT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @hns3_slot_reset], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @hns3_slot_reset(ptr noundef %0) #0 {
%2 = tail call ptr @pci_get_drvdata(ptr noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %29, label %4
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %2, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = icmp eq ptr %6, null
br i1 %7, label %29, label %8
8: ; preds = %4
%9 = getelementptr inbounds i8, ptr %6, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !12
%11 = icmp eq ptr %10, null
br i1 %11, label %29, label %12
12: ; preds = %8
%13 = load ptr, ptr %6, align 8, !tbaa !14
%14 = icmp eq ptr %13, null
br i1 %14, label %29, label %15
15: ; preds = %12
%16 = getelementptr inbounds i8, ptr %6, i64 16
%17 = load ptr, ptr %16, align 8, !tbaa !15
%18 = icmp eq ptr %17, null
br i1 %18, label %29, label %19
19: ; preds = %15
%20 = load i64, ptr %2, align 8, !tbaa !16
%21 = icmp eq i64 %20, 0
br i1 %21, label %29, label %22
22: ; preds = %19
%23 = tail call i32 %13(ptr noundef nonnull %2, ptr noundef nonnull %2) #2
%24 = load ptr, ptr %16, align 8, !tbaa !15
%25 = tail call i32 %24(ptr noundef nonnull %2, i32 noundef %23) #2
%26 = tail call i32 @dev_info(ptr noundef %0, ptr noundef nonnull @.str) #2
%27 = load ptr, ptr %9, align 8, !tbaa !12
%28 = tail call i32 %27(ptr noundef %0, ptr noundef null) #2
br label %29
29: ; preds = %8, %12, %15, %19, %22, %1, %4
%30 = phi ptr [ @PCI_ERS_RESULT_NONE, %4 ], [ @PCI_ERS_RESULT_NONE, %1 ], [ @PCI_ERS_RESULT_RECOVERED, %22 ], [ @PCI_ERS_RESULT_RECOVERED, %19 ], [ @PCI_ERS_RESULT_DISCONNECT, %15 ], [ @PCI_ERS_RESULT_DISCONNECT, %12 ], [ @PCI_ERS_RESULT_DISCONNECT, %8 ]
%31 = load i32, ptr %30, align 4, !tbaa !17
ret i32 %31
}
declare ptr @pci_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"hnae3_ae_dev", !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, !11, i64 8}
!13 = !{!"hnae3_ae_ops", !11, i64 0, !11, i64 8, !11, i64 16}
!14 = !{!13, !11, i64 0}
!15 = !{!13, !11, i64 16}
!16 = !{!7, !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !9, i64 0}
| linux_drivers_net_ethernet_hisilicon_hns3_extr_hns3_enet.c_hns3_slot_reset |
; ModuleID = 'AnghaBench/kphp-kdb/text/extr_text-index.c_process_loaded_messages.c'
source_filename = "AnghaBench/kphp-kdb/text/extr_text-index.c_process_loaded_messages.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CLOCK_MONOTONIC = dso_local local_unnamed_addr global i32 0, align 4
@cur_min_uid = dso_local local_unnamed_addr global i32 0, align 4
@cur_max_uid = dso_local local_unnamed_addr global i32 0, align 4
@User = dso_local local_unnamed_addr global ptr null, align 8
@processed_users = dso_local local_unnamed_addr global i64 0, align 8
@tot_users = dso_local local_unnamed_addr global i64 0, align 8
@UserDirectory = dso_local local_unnamed_addr global ptr null, align 8
@dyn_cur = dso_local local_unnamed_addr global ptr null, align 8
@last_process_time = dso_local local_unnamed_addr global double 0.000000e+00, align 8
; Function Attrs: nounwind uwtable
define dso_local void @process_loaded_messages() local_unnamed_addr #0 {
%1 = load i32, ptr @CLOCK_MONOTONIC, align 4, !tbaa !5
%2 = tail call double @get_utime(i32 noundef %1) #2
%3 = load i32, ptr @cur_min_uid, align 4, !tbaa !5
%4 = load i32, ptr @cur_max_uid, align 4, !tbaa !5
%5 = icmp slt i32 %3, %4
br i1 %5, label %6, label %51
6: ; preds = %0
%7 = sext i32 %3 to i64
%8 = load ptr, ptr @User, align 8, !tbaa !9
br label %9
9: ; preds = %6, %45
%10 = phi i32 [ %4, %6 ], [ %46, %45 ]
%11 = phi ptr [ %8, %6 ], [ %47, %45 ]
%12 = phi i64 [ %7, %6 ], [ %48, %45 ]
%13 = getelementptr inbounds i64, ptr %11, i64 %12
%14 = load i64, ptr %13, align 8, !tbaa !11
%15 = icmp eq i64 %14, 0
br i1 %15, label %45, label %16
16: ; preds = %9
%17 = load i64, ptr @processed_users, align 8, !tbaa !11
%18 = load i64, ptr @tot_users, align 8, !tbaa !11
%19 = icmp ult i64 %17, %18
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 noundef %20) #2
%22 = load ptr, ptr @UserDirectory, align 8, !tbaa !9
%23 = load i64, ptr @processed_users, align 8, !tbaa !11
%24 = getelementptr inbounds ptr, ptr %22, i64 %23
%25 = load ptr, ptr %24, align 8, !tbaa !9
%26 = load i64, ptr %25, align 8, !tbaa !13
%27 = trunc i64 %12 to i32
%28 = tail call i64 @unconv_uid(i32 noundef %27) #2
%29 = icmp eq i64 %26, %28
%30 = zext i1 %29 to i32
%31 = tail call i32 @assert(i32 noundef %30) #2
%32 = load ptr, ptr @dyn_cur, align 8, !tbaa !9
%33 = load ptr, ptr @UserDirectory, align 8, !tbaa !9
%34 = load i64, ptr @processed_users, align 8, !tbaa !11
%35 = getelementptr inbounds ptr, ptr %33, i64 %34
%36 = load ptr, ptr %35, align 8, !tbaa !9
%37 = load ptr, ptr @User, align 8, !tbaa !9
%38 = getelementptr inbounds i64, ptr %37, i64 %12
%39 = load i64, ptr %38, align 8, !tbaa !11
%40 = tail call i32 @process_user_messages(ptr noundef %36, i64 noundef %39) #2
store ptr %32, ptr @dyn_cur, align 8, !tbaa !9
%41 = load i64, ptr @processed_users, align 8, !tbaa !11
%42 = add i64 %41, 1
store i64 %42, ptr @processed_users, align 8, !tbaa !11
%43 = load ptr, ptr @User, align 8, !tbaa !9
%44 = load i32, ptr @cur_max_uid, align 4, !tbaa !5
br label %45
45: ; preds = %9, %16
%46 = phi i32 [ %10, %9 ], [ %44, %16 ]
%47 = phi ptr [ %11, %9 ], [ %43, %16 ]
%48 = add nsw i64 %12, 1
%49 = sext i32 %46 to i64
%50 = icmp slt i64 %48, %49
br i1 %50, label %9, label %51, !llvm.loop !15
51: ; preds = %45, %0
%52 = load i32, ptr @CLOCK_MONOTONIC, align 4, !tbaa !5
%53 = tail call double @get_utime(i32 noundef %52) #2
%54 = fsub double %53, %2
store double %54, ptr @last_process_time, align 8, !tbaa !17
ret void
}
declare double @get_utime(i32 noundef) local_unnamed_addr #1
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i64 @unconv_uid(i32 noundef) local_unnamed_addr #1
declare i32 @process_user_messages(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"TYPE_3__", !12, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/text/extr_text-index.c_process_loaded_messages.c'
source_filename = "AnghaBench/kphp-kdb/text/extr_text-index.c_process_loaded_messages.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CLOCK_MONOTONIC = common local_unnamed_addr global i32 0, align 4
@cur_min_uid = common local_unnamed_addr global i32 0, align 4
@cur_max_uid = common local_unnamed_addr global i32 0, align 4
@User = common local_unnamed_addr global ptr null, align 8
@processed_users = common local_unnamed_addr global i64 0, align 8
@tot_users = common local_unnamed_addr global i64 0, align 8
@UserDirectory = common local_unnamed_addr global ptr null, align 8
@dyn_cur = common local_unnamed_addr global ptr null, align 8
@last_process_time = common local_unnamed_addr global double 0.000000e+00, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @process_loaded_messages() local_unnamed_addr #0 {
%1 = load i32, ptr @CLOCK_MONOTONIC, align 4, !tbaa !6
%2 = tail call double @get_utime(i32 noundef %1) #2
%3 = load i32, ptr @cur_min_uid, align 4, !tbaa !6
%4 = load i32, ptr @cur_max_uid, align 4, !tbaa !6
%5 = icmp slt i32 %3, %4
br i1 %5, label %6, label %51
6: ; preds = %0
%7 = sext i32 %3 to i64
%8 = load ptr, ptr @User, align 8, !tbaa !10
br label %9
9: ; preds = %6, %45
%10 = phi i32 [ %4, %6 ], [ %46, %45 ]
%11 = phi ptr [ %8, %6 ], [ %47, %45 ]
%12 = phi i64 [ %7, %6 ], [ %48, %45 ]
%13 = getelementptr inbounds i64, ptr %11, i64 %12
%14 = load i64, ptr %13, align 8, !tbaa !12
%15 = icmp eq i64 %14, 0
br i1 %15, label %45, label %16
16: ; preds = %9
%17 = load i64, ptr @processed_users, align 8, !tbaa !12
%18 = load i64, ptr @tot_users, align 8, !tbaa !12
%19 = icmp ult i64 %17, %18
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 noundef %20) #2
%22 = load ptr, ptr @UserDirectory, align 8, !tbaa !10
%23 = load i64, ptr @processed_users, align 8, !tbaa !12
%24 = getelementptr inbounds ptr, ptr %22, i64 %23
%25 = load ptr, ptr %24, align 8, !tbaa !10
%26 = load i64, ptr %25, align 8, !tbaa !14
%27 = trunc nsw i64 %12 to i32
%28 = tail call i64 @unconv_uid(i32 noundef %27) #2
%29 = icmp eq i64 %26, %28
%30 = zext i1 %29 to i32
%31 = tail call i32 @assert(i32 noundef %30) #2
%32 = load ptr, ptr @dyn_cur, align 8, !tbaa !10
%33 = load ptr, ptr @UserDirectory, align 8, !tbaa !10
%34 = load i64, ptr @processed_users, align 8, !tbaa !12
%35 = getelementptr inbounds ptr, ptr %33, i64 %34
%36 = load ptr, ptr %35, align 8, !tbaa !10
%37 = load ptr, ptr @User, align 8, !tbaa !10
%38 = getelementptr inbounds i64, ptr %37, i64 %12
%39 = load i64, ptr %38, align 8, !tbaa !12
%40 = tail call i32 @process_user_messages(ptr noundef %36, i64 noundef %39) #2
store ptr %32, ptr @dyn_cur, align 8, !tbaa !10
%41 = load i64, ptr @processed_users, align 8, !tbaa !12
%42 = add i64 %41, 1
store i64 %42, ptr @processed_users, align 8, !tbaa !12
%43 = load ptr, ptr @User, align 8, !tbaa !10
%44 = load i32, ptr @cur_max_uid, align 4, !tbaa !6
br label %45
45: ; preds = %9, %16
%46 = phi i32 [ %10, %9 ], [ %44, %16 ]
%47 = phi ptr [ %11, %9 ], [ %43, %16 ]
%48 = add nsw i64 %12, 1
%49 = sext i32 %46 to i64
%50 = icmp slt i64 %48, %49
br i1 %50, label %9, label %51, !llvm.loop !16
51: ; preds = %45, %0
%52 = load i32, ptr @CLOCK_MONOTONIC, align 4, !tbaa !6
%53 = tail call double @get_utime(i32 noundef %52) #2
%54 = fsub double %53, %2
store double %54, ptr @last_process_time, align 8, !tbaa !18
ret void
}
declare double @get_utime(i32 noundef) local_unnamed_addr #1
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare i64 @unconv_uid(i32 noundef) local_unnamed_addr #1
declare i32 @process_user_messages(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_3__", !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
| kphp-kdb_text_extr_text-index.c_process_loaded_messages |
; ModuleID = 'AnghaBench/disque/src/extr_anet.c_anetUnixServer.c'
source_filename = "AnghaBench/disque/src/extr_anet.c_anetUnixServer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.sockaddr_un = type { i32, i32 }
@AF_LOCAL = dso_local local_unnamed_addr global i32 0, align 4
@ANET_ERR = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @anetUnixServer(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca %struct.sockaddr_un, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = load i32, ptr @AF_LOCAL, align 4, !tbaa !5
%7 = tail call i32 @anetCreateSocket(ptr noundef %0, i32 noundef %6) #3
%8 = load i32, ptr @ANET_ERR, align 4, !tbaa !5
%9 = icmp eq i32 %7, %8
br i1 %9, label %24, label %10
10: ; preds = %4
%11 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 8) #3
%12 = load i32, ptr @AF_LOCAL, align 4, !tbaa !5
%13 = getelementptr inbounds %struct.sockaddr_un, ptr %5, i64 0, i32 1
store i32 %12, ptr %13, align 4, !tbaa !9
%14 = load i32, ptr %5, align 4, !tbaa !11
%15 = call i32 @strncpy(i32 noundef %14, ptr noundef %1, i32 noundef 3) #3
%16 = call i32 @anetListen(ptr noundef %0, i32 noundef %7, ptr noundef nonnull %5, i32 noundef 8, i32 noundef %3) #3
%17 = load i32, ptr @ANET_ERR, align 4, !tbaa !5
%18 = icmp eq i32 %16, %17
br i1 %18, label %24, label %19
19: ; preds = %10
%20 = icmp eq i32 %2, 0
br i1 %20, label %24, label %21
21: ; preds = %19
%22 = load i32, ptr %5, align 4, !tbaa !11
%23 = call i32 @chmod(i32 noundef %22, i32 noundef %2) #3
br label %24
24: ; preds = %19, %21, %10, %4
%25 = phi i32 [ %7, %4 ], [ %16, %10 ], [ %7, %21 ], [ %7, %19 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret i32 %25
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @anetCreateSocket(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @anetListen(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @chmod(i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"sockaddr_un", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/disque/src/extr_anet.c_anetUnixServer.c'
source_filename = "AnghaBench/disque/src/extr_anet.c_anetUnixServer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.sockaddr_un = type { i32, i32 }
@AF_LOCAL = common local_unnamed_addr global i32 0, align 4
@ANET_ERR = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @anetUnixServer(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca %struct.sockaddr_un, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
%6 = load i32, ptr @AF_LOCAL, align 4, !tbaa !6
%7 = tail call i32 @anetCreateSocket(ptr noundef %0, i32 noundef %6) #3
%8 = load i32, ptr @ANET_ERR, align 4, !tbaa !6
%9 = icmp eq i32 %7, %8
br i1 %9, label %24, label %10
10: ; preds = %4
%11 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 8) #3
%12 = load i32, ptr @AF_LOCAL, align 4, !tbaa !6
%13 = getelementptr inbounds i8, ptr %5, i64 4
store i32 %12, ptr %13, align 4, !tbaa !10
%14 = load i32, ptr %5, align 4, !tbaa !12
%15 = call i32 @strncpy(i32 noundef %14, ptr noundef %1, i32 noundef 3) #3
%16 = call i32 @anetListen(ptr noundef %0, i32 noundef %7, ptr noundef nonnull %5, i32 noundef 8, i32 noundef %3) #3
%17 = load i32, ptr @ANET_ERR, align 4, !tbaa !6
%18 = icmp eq i32 %16, %17
br i1 %18, label %24, label %19
19: ; preds = %10
%20 = icmp eq i32 %2, 0
br i1 %20, label %24, label %21
21: ; preds = %19
%22 = load i32, ptr %5, align 4, !tbaa !12
%23 = call i32 @chmod(i32 noundef %22, i32 noundef %2) #3
br label %24
24: ; preds = %19, %21, %10, %4
%25 = phi i32 [ %7, %4 ], [ %16, %10 ], [ %7, %21 ], [ %7, %19 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret i32 %25
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @anetCreateSocket(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @anetListen(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @chmod(i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 4}
!11 = !{!"sockaddr_un", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
| disque_src_extr_anet.c_anetUnixServer |
; ModuleID = 'AnghaBench/obs-studio/plugins/linux-v4l2/extr_v4l2-udev.c_v4l2_get_udev_signalhandler.c'
source_filename = "AnghaBench/obs-studio/plugins/linux-v4l2/extr_v4l2-udev.c_v4l2_get_udev_signalhandler.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@udev_signalhandler = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local ptr @v4l2_get_udev_signalhandler() local_unnamed_addr #0 {
%1 = load ptr, ptr @udev_signalhandler, align 8, !tbaa !5
ret ptr %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/obs-studio/plugins/linux-v4l2/extr_v4l2-udev.c_v4l2_get_udev_signalhandler.c'
source_filename = "AnghaBench/obs-studio/plugins/linux-v4l2/extr_v4l2-udev.c_v4l2_get_udev_signalhandler.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@udev_signalhandler = common local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define ptr @v4l2_get_udev_signalhandler() local_unnamed_addr #0 {
%1 = load ptr, ptr @udev_signalhandler, align 8, !tbaa !6
ret ptr %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| obs-studio_plugins_linux-v4l2_extr_v4l2-udev.c_v4l2_get_udev_signalhandler |
; ModuleID = 'AnghaBench/linux/drivers/usb/mon/extr_mon_main.c_mon_complete.c'
source_filename = "AnghaBench/linux/drivers/usb/mon/extr_mon_main.c_mon_complete.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.mon_bus = type { i32 }
@mon_bus0 = dso_local global %struct.mon_bus zeroinitializer, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mon_complete], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mon_complete(ptr nocapture noundef readonly %0, ptr noundef %1, i32 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 @mon_bus_complete(ptr noundef nonnull %4, ptr noundef %1, i32 noundef %2) #2
br label %8
8: ; preds = %6, %3
%9 = tail call i32 @mon_bus_complete(ptr noundef nonnull @mon_bus0, ptr noundef %1, i32 noundef %2) #2
ret void
}
declare i32 @mon_bus_complete(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 = !{!"usb_bus", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/usb/mon/extr_mon_main.c_mon_complete.c'
source_filename = "AnghaBench/linux/drivers/usb/mon/extr_mon_main.c_mon_complete.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.mon_bus = type { i32 }
@mon_bus0 = common global %struct.mon_bus zeroinitializer, align 4
@llvm.used = appending global [1 x ptr] [ptr @mon_complete], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mon_complete(ptr nocapture noundef readonly %0, ptr noundef %1, i32 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 @mon_bus_complete(ptr noundef nonnull %4, ptr noundef %1, i32 noundef %2) #2
br label %8
8: ; preds = %6, %3
%9 = tail call i32 @mon_bus_complete(ptr noundef nonnull @mon_bus0, ptr noundef %1, i32 noundef %2) #2
ret void
}
declare i32 @mon_bus_complete(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 = !{!"usb_bus", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_usb_mon_extr_mon_main.c_mon_complete |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_dt2815.c_dt2815_free_resources.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_dt2815.c_dt2815_free_resources.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DT2815_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dt2815_free_resources], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @dt2815_free_resources(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, ptr @DT2815_SIZE, align 4, !tbaa !10
%6 = tail call i32 @release_region(i64 noundef %2, i32 noundef %5) #2
br label %7
7: ; preds = %4, %1
ret void
}
declare i32 @release_region(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 = !{!"comedi_device", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_dt2815.c_dt2815_free_resources.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_dt2815.c_dt2815_free_resources.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DT2815_SIZE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dt2815_free_resources], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @dt2815_free_resources(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = load i32, ptr @DT2815_SIZE, align 4, !tbaa !11
%6 = tail call i32 @release_region(i64 noundef %2, i32 noundef %5) #2
br label %7
7: ; preds = %4, %1
ret void
}
declare i32 @release_region(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 = !{!"comedi_device", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
| fastsocket_kernel_drivers_staging_comedi_drivers_extr_dt2815.c_dt2815_free_resources |
; ModuleID = 'AnghaBench/linux/drivers/mfd/extr_tc6387xb.c_tc6387xb_probe.c'
source_filename = "AnghaBench/linux/drivers/mfd/extr_tc6387xb.c_tc6387xb_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.platform_device = type { i32, i32 }
%struct.resource = type { ptr, i64, i32, i64 }
%struct.tc6387xb = type { %struct.resource, i32, ptr }
@IORESOURCE_MEM = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"CLK_CK32K\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"tc6387xb-core\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Toshiba tc6387xb initialised\0A\00", align 1
@tc6387xb_cells = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @tc6387xb_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tc6387xb_probe(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.platform_device, ptr %0, i64 0, i32 1
%3 = tail call ptr @dev_get_platdata(ptr noundef nonnull %2) #2
%4 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !5
%5 = tail call ptr @platform_get_resource(ptr noundef %0, i32 noundef %4, i32 noundef 0) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @EINVAL, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %73
10: ; preds = %1
%11 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%12 = tail call ptr @kzalloc(i32 noundef 48, i32 noundef %11) #2
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%16 = sub nsw i32 0, %15
br label %73
17: ; preds = %10
%18 = tail call i32 @platform_get_irq(ptr noundef %0, i32 noundef 0) #2
%19 = icmp sgt i32 %18, -1
br i1 %19, label %20, label %70
20: ; preds = %17
%21 = tail call ptr @clk_get(ptr noundef nonnull %2, ptr noundef nonnull @.str) #2
%22 = tail call i64 @IS_ERR(ptr noundef %21) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %20
%25 = tail call i32 @PTR_ERR(ptr noundef %21) #2
br label %70
26: ; preds = %20
store ptr @.str.1, ptr %12, align 8, !tbaa !9
%27 = getelementptr inbounds %struct.resource, ptr %5, i64 0, i32 1
%28 = load i64, ptr %27, align 8, !tbaa !13
%29 = getelementptr inbounds %struct.resource, ptr %12, i64 0, i32 1
store i64 %28, ptr %29, align 8, !tbaa !13
%30 = add nsw i64 %28, 255
%31 = getelementptr inbounds %struct.resource, ptr %12, i64 0, i32 3
store i64 %30, ptr %31, align 8, !tbaa !14
%32 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !5
%33 = getelementptr inbounds %struct.resource, ptr %12, i64 0, i32 2
store i32 %32, ptr %33, align 8, !tbaa !15
%34 = tail call i32 @request_resource(ptr noundef nonnull %5, ptr noundef nonnull %12) #2
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %67
36: ; preds = %26
%37 = load i64, ptr %29, align 8, !tbaa !13
%38 = tail call i32 @resource_size(ptr noundef nonnull %12) #2
%39 = tail call i32 @ioremap(i64 noundef %37, i32 noundef %38) #2
%40 = getelementptr inbounds %struct.tc6387xb, ptr %12, i64 0, i32 1
store i32 %39, ptr %40, align 8, !tbaa !16
%41 = icmp eq i32 %39, 0
br i1 %41, label %42, label %45
42: ; preds = %36
%43 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%44 = sub nsw i32 0, %43
br label %64
45: ; preds = %36
%46 = getelementptr inbounds %struct.tc6387xb, ptr %12, i64 0, i32 2
store ptr %21, ptr %46, align 8, !tbaa !18
%47 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %12) #2
%48 = icmp eq ptr %3, null
br i1 %48, label %54, label %49
49: ; preds = %45
%50 = load ptr, ptr %3, align 8, !tbaa !19
%51 = icmp eq ptr %50, null
br i1 %51, label %54, label %52
52: ; preds = %49
%53 = tail call i32 %50(ptr noundef %0) #2
br label %54
54: ; preds = %52, %49, %45
%55 = tail call i32 @dev_info(ptr noundef nonnull %2, ptr noundef nonnull @.str.2) #2
%56 = load i32, ptr %0, align 4, !tbaa !21
%57 = load i32, ptr @tc6387xb_cells, align 4, !tbaa !5
%58 = tail call i32 @ARRAY_SIZE(i32 noundef %57) #2
%59 = tail call i32 @mfd_add_devices(ptr noundef nonnull %2, i32 noundef %56, i32 noundef %57, i32 noundef %58, ptr noundef nonnull %5, i32 noundef %18, ptr noundef null) #2
%60 = icmp eq i32 %59, 0
br i1 %60, label %73, label %61
61: ; preds = %54
%62 = load i32, ptr %40, align 8, !tbaa !16
%63 = tail call i32 @iounmap(i32 noundef %62) #2
br label %64
64: ; preds = %61, %42
%65 = phi i32 [ %59, %61 ], [ %44, %42 ]
%66 = tail call i32 @release_resource(ptr noundef nonnull %12) #2
br label %67
67: ; preds = %26, %64
%68 = phi i32 [ %34, %26 ], [ %65, %64 ]
%69 = tail call i32 @clk_put(ptr noundef %21) #2
br label %70
70: ; preds = %24, %67, %17
%71 = phi i32 [ %25, %24 ], [ %68, %67 ], [ %18, %17 ]
%72 = tail call i32 @kfree(ptr noundef nonnull %12) #2
br label %73
73: ; preds = %54, %70, %14, %7
%74 = phi i32 [ %71, %70 ], [ %16, %14 ], [ %9, %7 ], [ 0, %54 ]
ret i32 %74
}
declare ptr @dev_get_platdata(ptr noundef) local_unnamed_addr #1
declare ptr @platform_get_resource(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @platform_get_irq(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @clk_get(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @request_resource(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ioremap(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @resource_size(ptr noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mfd_add_devices(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
declare i32 @iounmap(i32 noundef) local_unnamed_addr #1
declare i32 @release_resource(ptr noundef) local_unnamed_addr #1
declare i32 @clk_put(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"resource", !11, i64 0, !12, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{!10, !12, i64 24}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !6, i64 32}
!17 = !{!"tc6387xb", !10, i64 0, !6, i64 32, !11, i64 40}
!18 = !{!17, !11, i64 40}
!19 = !{!20, !11, i64 0}
!20 = !{!"tc6387xb_platform_data", !11, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"platform_device", !6, i64 0, !6, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/mfd/extr_tc6387xb.c_tc6387xb_probe.c'
source_filename = "AnghaBench/linux/drivers/mfd/extr_tc6387xb.c_tc6387xb_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IORESOURCE_MEM = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"CLK_CK32K\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"tc6387xb-core\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Toshiba tc6387xb initialised\0A\00", align 1
@tc6387xb_cells = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @tc6387xb_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @tc6387xb_probe(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 4
%3 = tail call ptr @dev_get_platdata(ptr noundef nonnull %2) #2
%4 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !6
%5 = tail call ptr @platform_get_resource(ptr noundef %0, i32 noundef %4, i32 noundef 0) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @EINVAL, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %73
10: ; preds = %1
%11 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%12 = tail call ptr @kzalloc(i32 noundef 48, i32 noundef %11) #2
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%16 = sub nsw i32 0, %15
br label %73
17: ; preds = %10
%18 = tail call i32 @platform_get_irq(ptr noundef %0, i32 noundef 0) #2
%19 = icmp sgt i32 %18, -1
br i1 %19, label %20, label %70
20: ; preds = %17
%21 = tail call ptr @clk_get(ptr noundef nonnull %2, ptr noundef nonnull @.str) #2
%22 = tail call i64 @IS_ERR(ptr noundef %21) #2
%23 = icmp eq i64 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %20
%25 = tail call i32 @PTR_ERR(ptr noundef %21) #2
br label %70
26: ; preds = %20
store ptr @.str.1, ptr %12, align 8, !tbaa !10
%27 = getelementptr inbounds i8, ptr %5, i64 8
%28 = load i64, ptr %27, align 8, !tbaa !14
%29 = getelementptr inbounds i8, ptr %12, i64 8
store i64 %28, ptr %29, align 8, !tbaa !14
%30 = add nsw i64 %28, 255
%31 = getelementptr inbounds i8, ptr %12, i64 24
store i64 %30, ptr %31, align 8, !tbaa !15
%32 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !6
%33 = getelementptr inbounds i8, ptr %12, i64 16
store i32 %32, ptr %33, align 8, !tbaa !16
%34 = tail call i32 @request_resource(ptr noundef nonnull %5, ptr noundef nonnull %12) #2
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %67
36: ; preds = %26
%37 = load i64, ptr %29, align 8, !tbaa !14
%38 = tail call i32 @resource_size(ptr noundef nonnull %12) #2
%39 = tail call i32 @ioremap(i64 noundef %37, i32 noundef %38) #2
%40 = getelementptr inbounds i8, ptr %12, i64 32
store i32 %39, ptr %40, align 8, !tbaa !17
%41 = icmp eq i32 %39, 0
br i1 %41, label %42, label %45
42: ; preds = %36
%43 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%44 = sub nsw i32 0, %43
br label %64
45: ; preds = %36
%46 = getelementptr inbounds i8, ptr %12, i64 40
store ptr %21, ptr %46, align 8, !tbaa !19
%47 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %12) #2
%48 = icmp eq ptr %3, null
br i1 %48, label %54, label %49
49: ; preds = %45
%50 = load ptr, ptr %3, align 8, !tbaa !20
%51 = icmp eq ptr %50, null
br i1 %51, label %54, label %52
52: ; preds = %49
%53 = tail call i32 %50(ptr noundef %0) #2
br label %54
54: ; preds = %52, %49, %45
%55 = tail call i32 @dev_info(ptr noundef nonnull %2, ptr noundef nonnull @.str.2) #2
%56 = load i32, ptr %0, align 4, !tbaa !22
%57 = load i32, ptr @tc6387xb_cells, align 4, !tbaa !6
%58 = tail call i32 @ARRAY_SIZE(i32 noundef %57) #2
%59 = tail call i32 @mfd_add_devices(ptr noundef nonnull %2, i32 noundef %56, i32 noundef %57, i32 noundef %58, ptr noundef nonnull %5, i32 noundef %18, ptr noundef null) #2
%60 = icmp eq i32 %59, 0
br i1 %60, label %73, label %61
61: ; preds = %54
%62 = load i32, ptr %40, align 8, !tbaa !17
%63 = tail call i32 @iounmap(i32 noundef %62) #2
br label %64
64: ; preds = %61, %42
%65 = phi i32 [ %59, %61 ], [ %44, %42 ]
%66 = tail call i32 @release_resource(ptr noundef nonnull %12) #2
br label %67
67: ; preds = %26, %64
%68 = phi i32 [ %34, %26 ], [ %65, %64 ]
%69 = tail call i32 @clk_put(ptr noundef %21) #2
br label %70
70: ; preds = %24, %67, %17
%71 = phi i32 [ %25, %24 ], [ %68, %67 ], [ %18, %17 ]
%72 = tail call i32 @kfree(ptr noundef nonnull %12) #2
br label %73
73: ; preds = %54, %70, %14, %7
%74 = phi i32 [ %71, %70 ], [ %16, %14 ], [ %9, %7 ], [ 0, %54 ]
ret i32 %74
}
declare ptr @dev_get_platdata(ptr noundef) local_unnamed_addr #1
declare ptr @platform_get_resource(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @platform_get_irq(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @clk_get(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @request_resource(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ioremap(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @resource_size(ptr noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mfd_add_devices(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(i32 noundef) local_unnamed_addr #1
declare i32 @iounmap(i32 noundef) local_unnamed_addr #1
declare i32 @release_resource(ptr noundef) local_unnamed_addr #1
declare i32 @clk_put(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"resource", !12, i64 0, !13, i64 8, !7, i64 16, !13, i64 24}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!11, !13, i64 8}
!15 = !{!11, !13, i64 24}
!16 = !{!11, !7, i64 16}
!17 = !{!18, !7, i64 32}
!18 = !{!"tc6387xb", !11, i64 0, !7, i64 32, !12, i64 40}
!19 = !{!18, !12, i64 40}
!20 = !{!21, !12, i64 0}
!21 = !{!"tc6387xb_platform_data", !12, i64 0}
!22 = !{!23, !7, i64 0}
!23 = !{!"platform_device", !7, i64 0, !7, i64 4}
| linux_drivers_mfd_extr_tc6387xb.c_tc6387xb_probe |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/hda/extr_patch_hdmi.c_generic_hdmi_build_controls.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/hda/extr_patch_hdmi.c_generic_hdmi_build_controls.c"
target datalayout = "e-m:e-p270:32:32-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.hdmi_spec_per_pin = type { ptr, i32 }
@HDA_PCM_TYPE_HDMI = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @generic_hdmi_build_controls], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @generic_hdmi_build_controls(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !10
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %29
5: ; preds = %1, %24
%6 = phi i32 [ %26, %24 ], [ 0, %1 ]
%7 = tail call ptr @get_pin(ptr noundef nonnull %2, i32 noundef %6) #2
%8 = tail call i32 @generic_hdmi_build_jack(ptr noundef nonnull %0, i32 noundef %6) #2
%9 = icmp slt i32 %8, 0
br i1 %9, label %29, label %10
10: ; preds = %5
%11 = getelementptr inbounds %struct.hdmi_spec_per_pin, ptr %7, i64 0, i32 1
%12 = load i32, ptr %11, align 8, !tbaa !13
%13 = load ptr, ptr %7, align 8, !tbaa !15
%14 = load i32, ptr %13, align 4, !tbaa !16
%15 = load i32, ptr @HDA_PCM_TYPE_HDMI, align 4, !tbaa !16
%16 = tail call i32 @snd_hda_create_dig_out_ctls(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %14, i32 noundef %15) #2
%17 = icmp slt i32 %16, 0
br i1 %17, label %29, label %18
18: ; preds = %10
%19 = tail call i32 @snd_hda_spdif_ctls_unassign(ptr noundef nonnull %0, i32 noundef %6) #2
%20 = tail call ptr @get_pcm_rec(ptr noundef nonnull %2, i32 noundef %6) #2
%21 = load i32, ptr %20, align 4, !tbaa !17
%22 = tail call i32 @hdmi_create_eld_ctl(ptr noundef nonnull %0, i32 noundef %6, i32 noundef %21) #2
%23 = icmp slt i32 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %18
%25 = tail call i32 @hdmi_present_sense(ptr noundef nonnull %7, i32 noundef 0) #2
%26 = add nuw nsw i32 %6, 1
%27 = load i32, ptr %2, align 4, !tbaa !10
%28 = icmp slt i32 %26, %27
br i1 %28, label %5, label %29, !llvm.loop !19
29: ; preds = %24, %5, %10, %18, %1
%30 = phi i32 [ 0, %1 ], [ %22, %18 ], [ %16, %10 ], [ %8, %5 ], [ 0, %24 ]
ret i32 %30
}
declare ptr @get_pin(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @generic_hdmi_build_jack(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_hda_create_dig_out_ctls(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_hda_spdif_ctls_unassign(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hdmi_create_eld_ctl(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @get_pcm_rec(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hdmi_present_sense(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 = !{!"hda_codec", !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 = !{!"hdmi_spec", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"hdmi_spec_per_pin", !7, i64 0, !12, i64 8}
!15 = !{!14, !7, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"TYPE_2__", !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/hda/extr_patch_hdmi.c_generic_hdmi_build_controls.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/hda/extr_patch_hdmi.c_generic_hdmi_build_controls.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HDA_PCM_TYPE_HDMI = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @generic_hdmi_build_controls], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @generic_hdmi_build_controls(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !11
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %29
5: ; preds = %1, %24
%6 = phi i32 [ %26, %24 ], [ 0, %1 ]
%7 = tail call ptr @get_pin(ptr noundef nonnull %2, i32 noundef %6) #2
%8 = tail call i32 @generic_hdmi_build_jack(ptr noundef nonnull %0, i32 noundef %6) #2
%9 = icmp slt i32 %8, 0
br i1 %9, label %29, label %10
10: ; preds = %5
%11 = getelementptr inbounds i8, ptr %7, i64 8
%12 = load i32, ptr %11, align 8, !tbaa !14
%13 = load ptr, ptr %7, align 8, !tbaa !16
%14 = load i32, ptr %13, align 4, !tbaa !17
%15 = load i32, ptr @HDA_PCM_TYPE_HDMI, align 4, !tbaa !17
%16 = tail call i32 @snd_hda_create_dig_out_ctls(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %14, i32 noundef %15) #2
%17 = icmp slt i32 %16, 0
br i1 %17, label %29, label %18
18: ; preds = %10
%19 = tail call i32 @snd_hda_spdif_ctls_unassign(ptr noundef nonnull %0, i32 noundef %6) #2
%20 = tail call ptr @get_pcm_rec(ptr noundef nonnull %2, i32 noundef %6) #2
%21 = load i32, ptr %20, align 4, !tbaa !18
%22 = tail call i32 @hdmi_create_eld_ctl(ptr noundef nonnull %0, i32 noundef %6, i32 noundef %21) #2
%23 = icmp slt i32 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %18
%25 = tail call i32 @hdmi_present_sense(ptr noundef nonnull %7, i32 noundef 0) #2
%26 = add nuw nsw i32 %6, 1
%27 = load i32, ptr %2, align 4, !tbaa !11
%28 = icmp slt i32 %26, %27
br i1 %28, label %5, label %29, !llvm.loop !20
29: ; preds = %24, %5, %10, %18, %1
%30 = phi i32 [ 0, %1 ], [ %22, %18 ], [ %16, %10 ], [ %8, %5 ], [ 0, %24 ]
ret i32 %30
}
declare ptr @get_pin(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @generic_hdmi_build_jack(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_hda_create_dig_out_ctls(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @snd_hda_spdif_ctls_unassign(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hdmi_create_eld_ctl(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @get_pcm_rec(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @hdmi_present_sense(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 = !{!"hda_codec", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"hdmi_spec", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"hdmi_spec_per_pin", !8, i64 0, !13, i64 8}
!16 = !{!15, !8, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !13, i64 0}
!19 = !{!"TYPE_2__", !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_sound_pci_hda_extr_patch_hdmi.c_generic_hdmi_build_controls |
; ModuleID = 'AnghaBench/rufus/src/ms-sys/extr_br.c_write_bootmark.c'
source_filename = "AnghaBench/rufus/src/ms-sys/extr_br.c_write_bootmark.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ulBytesPerSector = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @write_bootmark], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @write_bootmark(ptr noundef %0) #0 {
%2 = alloca [2 x i8], align 2
call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #3
store i16 -21931, ptr %2, align 2
%3 = load i64, ptr @ulBytesPerSector, align 8, !tbaa !5
%4 = icmp ugt i64 %3, 510
br i1 %4, label %9, label %13
5: ; preds = %9
%6 = add i64 %10, 512
%7 = load i64, ptr @ulBytesPerSector, align 8, !tbaa !5
%8 = icmp ult i64 %6, %7
br i1 %8, label %9, label %13, !llvm.loop !9
9: ; preds = %1, %5
%10 = phi i64 [ %6, %5 ], [ 510, %1 ]
%11 = call i32 @write_data(ptr noundef %0, i64 noundef %10, ptr noundef nonnull %2, i32 noundef 2) #3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %9, %5, %1
%14 = phi i32 [ 1, %1 ], [ 1, %5 ], [ 0, %9 ]
call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #3
ret i32 %14
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @write_data(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/rufus/src/ms-sys/extr_br.c_write_bootmark.c'
source_filename = "AnghaBench/rufus/src/ms-sys/extr_br.c_write_bootmark.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ulBytesPerSector = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @write_bootmark], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @write_bootmark(ptr noundef %0) #0 {
%2 = alloca [2 x i8], align 2
call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #3
store i16 -21931, ptr %2, align 2
%3 = load i64, ptr @ulBytesPerSector, align 8, !tbaa !6
%4 = icmp ugt i64 %3, 510
br i1 %4, label %9, label %13
5: ; preds = %9
%6 = add i64 %10, 512
%7 = load i64, ptr @ulBytesPerSector, align 8, !tbaa !6
%8 = icmp ult i64 %6, %7
br i1 %8, label %9, label %13, !llvm.loop !10
9: ; preds = %1, %5
%10 = phi i64 [ %6, %5 ], [ 510, %1 ]
%11 = call i32 @write_data(ptr noundef %0, i64 noundef %10, ptr noundef nonnull %2, i32 noundef 2) #3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %9, %5, %1
%14 = phi i32 [ 1, %1 ], [ 1, %5 ], [ 0, %9 ]
call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #3
ret i32 %14
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @write_data(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| rufus_src_ms-sys_extr_br.c_write_bootmark |
; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/sh2_dynarec/extr_assem_x86.c_emit_readword_map.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/sh2_dynarec/extr_assem_x86.c_emit_readword_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"
@.str = private unnamed_addr constant [22 x i8] c"mov (%x,%%%s,4),%%%s\0A\00", align 1
@regname = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @emit_readword_map(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp slt i32 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @emit_readword(i32 noundef %0, i32 noundef %2) #2
br label %20
7: ; preds = %3
%8 = load ptr, ptr @regname, align 8, !tbaa !5
%9 = zext nneg i32 %1 to i64
%10 = getelementptr inbounds i32, ptr %8, i64 %9
%11 = load i32, ptr %10, align 4, !tbaa !9
%12 = sext i32 %2 to i64
%13 = getelementptr inbounds i32, ptr %8, i64 %12
%14 = load i32, ptr %13, align 4, !tbaa !9
%15 = tail call i32 @assem_debug(ptr noundef nonnull @.str, i32 noundef %0, i32 noundef %11, i32 noundef %14) #2
%16 = tail call i32 @output_byte(i32 noundef 139) #2
%17 = tail call i32 @output_modrm(i32 noundef 0, i32 noundef 4, i32 noundef %2) #2
%18 = tail call i32 @output_sib(i32 noundef 2, i32 noundef %1, i32 noundef 5) #2
%19 = tail call i32 @output_w32(i32 noundef %0) #2
br label %20
20: ; preds = %7, %5
ret void
}
declare i32 @emit_readword(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @assem_debug(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @output_byte(i32 noundef) local_unnamed_addr #1
declare i32 @output_modrm(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @output_sib(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @output_w32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Yabause/yabause/src/sh2_dynarec/extr_assem_x86.c_emit_readword_map.c'
source_filename = "AnghaBench/Provenance/Cores/Yabause/yabause/src/sh2_dynarec/extr_assem_x86.c_emit_readword_map.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 [22 x i8] c"mov (%x,%%%s,4),%%%s\0A\00", align 1
@regname = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @emit_readword_map(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = icmp slt i32 %1, 0
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @emit_readword(i32 noundef %0, i32 noundef %2) #2
br label %20
7: ; preds = %3
%8 = load ptr, ptr @regname, align 8, !tbaa !6
%9 = zext nneg i32 %1 to i64
%10 = getelementptr inbounds i32, ptr %8, i64 %9
%11 = load i32, ptr %10, align 4, !tbaa !10
%12 = sext i32 %2 to i64
%13 = getelementptr inbounds i32, ptr %8, i64 %12
%14 = load i32, ptr %13, align 4, !tbaa !10
%15 = tail call i32 @assem_debug(ptr noundef nonnull @.str, i32 noundef %0, i32 noundef %11, i32 noundef %14) #2
%16 = tail call i32 @output_byte(i32 noundef 139) #2
%17 = tail call i32 @output_modrm(i32 noundef 0, i32 noundef 4, i32 noundef %2) #2
%18 = tail call i32 @output_sib(i32 noundef 2, i32 noundef %1, i32 noundef 5) #2
%19 = tail call i32 @output_w32(i32 noundef %0) #2
br label %20
20: ; preds = %7, %5
ret void
}
declare i32 @emit_readword(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @assem_debug(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @output_byte(i32 noundef) local_unnamed_addr #1
declare i32 @output_modrm(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @output_sib(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @output_w32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
| Provenance_Cores_Yabause_yabause_src_sh2_dynarec_extr_assem_x86.c_emit_readword_map |
; ModuleID = 'AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getosrel_sysctl.c'
source_filename = "AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getosrel_sysctl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CTL_KERN = dso_local local_unnamed_addr global i32 0, align 4
@KERN_PROC = dso_local local_unnamed_addr global i32 0, align 4
@KERN_PROC_OSREL = dso_local local_unnamed_addr global i32 0, align 4
@errno = dso_local local_unnamed_addr global i64 0, align 8
@ESRCH = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [28 x i8] c"sysctl: kern.proc.osrel: %d\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @procstat_getosrel_sysctl], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @procstat_getosrel_sysctl(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca [4 x i32], align 16
%4 = alloca i64, align 8
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 = load i32, ptr @CTL_KERN, align 4, !tbaa !5
store i32 %5, ptr %3, align 16, !tbaa !5
%6 = load i32, ptr @KERN_PROC, align 4, !tbaa !5
%7 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 1
store i32 %6, ptr %7, align 4, !tbaa !5
%8 = load i32, ptr @KERN_PROC_OSREL, align 4, !tbaa !5
%9 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 2
store i32 %8, ptr %9, align 8, !tbaa !5
%10 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 3
store i32 %0, ptr %10, align 4, !tbaa !5
store i64 4, ptr %4, align 8, !tbaa !9
%11 = call i32 @nitems(ptr noundef nonnull %3) #3
%12 = call i32 @sysctl(ptr noundef nonnull %3, i32 noundef %11, ptr noundef %1, ptr noundef nonnull %4, ptr noundef null, i32 noundef 0) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %2
%15 = load i64, ptr @errno, align 8, !tbaa !9
%16 = load i64, ptr @ESRCH, align 8, !tbaa !9
%17 = icmp eq i64 %15, %16
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = call i32 @warn(ptr noundef nonnull @.str, i32 noundef %0) #3
br label %20
20: ; preds = %18, %14, %2
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 i32 %12
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sysctl(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nitems(ptr noundef) local_unnamed_addr #2
declare i32 @warn(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getosrel_sysctl.c'
source_filename = "AnghaBench/freebsd/lib/libprocstat/extr_libprocstat.c_procstat_getosrel_sysctl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CTL_KERN = common local_unnamed_addr global i32 0, align 4
@KERN_PROC = common local_unnamed_addr global i32 0, align 4
@KERN_PROC_OSREL = common local_unnamed_addr global i32 0, align 4
@errno = common local_unnamed_addr global i64 0, align 8
@ESRCH = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [28 x i8] c"sysctl: kern.proc.osrel: %d\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @procstat_getosrel_sysctl], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @procstat_getosrel_sysctl(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca [4 x i32], align 4
%4 = alloca i64, align 8
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 = load i32, ptr @CTL_KERN, align 4, !tbaa !6
store i32 %5, ptr %3, align 4, !tbaa !6
%6 = load i32, ptr @KERN_PROC, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %6, ptr %7, align 4, !tbaa !6
%8 = load i32, ptr @KERN_PROC_OSREL, align 4, !tbaa !6
%9 = getelementptr inbounds i8, ptr %3, i64 8
store i32 %8, ptr %9, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %3, i64 12
store i32 %0, ptr %10, align 4, !tbaa !6
store i64 4, ptr %4, align 8, !tbaa !10
%11 = call i32 @nitems(ptr noundef nonnull %3) #3
%12 = call i32 @sysctl(ptr noundef nonnull %3, i32 noundef %11, ptr noundef %1, ptr noundef nonnull %4, ptr noundef null, i32 noundef 0) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %2
%15 = load i64, ptr @errno, align 8, !tbaa !10
%16 = load i64, ptr @ESRCH, align 8, !tbaa !10
%17 = icmp eq i64 %15, %16
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = call i32 @warn(ptr noundef nonnull @.str, i32 noundef %0) #3
br label %20
20: ; preds = %18, %14, %2
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 i32 %12
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @sysctl(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nitems(ptr noundef) local_unnamed_addr #2
declare i32 @warn(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
| freebsd_lib_libprocstat_extr_libprocstat.c_procstat_getosrel_sysctl |
; ModuleID = 'AnghaBench/esp-idf/components/freemodbus/common/extr_esp_modbus_master.c_mbc_master_set_parameter.c'
source_filename = "AnghaBench/esp-idf/components/freemodbus/common/extr_esp_modbus_master.c_mbc_master_set_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"
@ESP_OK = dso_local local_unnamed_addr global i64 0, align 8
@master_interface_ptr = dso_local local_unnamed_addr global ptr null, align 8
@ESP_ERR_INVALID_STATE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"Master interface is not correctly initialized.\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"SERIAL master set parameter failure error=(0x%x) (%s).\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i64 @mbc_master_set_parameter(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = load ptr, ptr @master_interface_ptr, align 8, !tbaa !5
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = load i32, ptr @ESP_ERR_INVALID_STATE, align 4, !tbaa !9
%9 = sext i32 %8 to i64
%10 = tail call i32 (i32, i64, ptr, ...) @MB_MASTER_CHECK(i32 noundef %7, i64 noundef %9, ptr noundef nonnull @.str) #2
%11 = load ptr, ptr @master_interface_ptr, align 8, !tbaa !5
%12 = load ptr, ptr %11, align 8, !tbaa !11
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = load i32, ptr @ESP_ERR_INVALID_STATE, align 4, !tbaa !9
%16 = sext i32 %15 to i64
%17 = tail call i32 (i32, i64, ptr, ...) @MB_MASTER_CHECK(i32 noundef %14, i64 noundef %16, ptr noundef nonnull @.str) #2
%18 = load ptr, ptr @master_interface_ptr, align 8, !tbaa !5
%19 = load ptr, ptr %18, align 8, !tbaa !11
%20 = tail call i64 %19(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2
%21 = load i64, ptr @ESP_OK, align 8, !tbaa !13
%22 = icmp eq i64 %20, %21
%23 = zext i1 %22 to i32
%24 = tail call i32 @esp_err_to_name(i64 noundef %20) #2
%25 = tail call i32 (i32, i64, ptr, ...) @MB_MASTER_CHECK(i32 noundef %23, i64 noundef %20, ptr noundef nonnull @.str.1, i64 noundef %20, i32 noundef %24) #2
%26 = load i64, ptr @ESP_OK, align 8, !tbaa !13
ret i64 %26
}
declare i32 @MB_MASTER_CHECK(i32 noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @esp_err_to_name(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"TYPE_2__", !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
| ; ModuleID = 'AnghaBench/esp-idf/components/freemodbus/common/extr_esp_modbus_master.c_mbc_master_set_parameter.c'
source_filename = "AnghaBench/esp-idf/components/freemodbus/common/extr_esp_modbus_master.c_mbc_master_set_parameter.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ESP_OK = common local_unnamed_addr global i64 0, align 8
@master_interface_ptr = common local_unnamed_addr global ptr null, align 8
@ESP_ERR_INVALID_STATE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"Master interface is not correctly initialized.\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"SERIAL master set parameter failure error=(0x%x) (%s).\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @mbc_master_set_parameter(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = load ptr, ptr @master_interface_ptr, align 8, !tbaa !6
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = load i32, ptr @ESP_ERR_INVALID_STATE, align 4, !tbaa !10
%9 = sext i32 %8 to i64
%10 = tail call i32 (i32, i64, ptr, ...) @MB_MASTER_CHECK(i32 noundef %7, i64 noundef %9, ptr noundef nonnull @.str) #2
%11 = load ptr, ptr @master_interface_ptr, align 8, !tbaa !6
%12 = load ptr, ptr %11, align 8, !tbaa !12
%13 = icmp ne ptr %12, null
%14 = zext i1 %13 to i32
%15 = load i32, ptr @ESP_ERR_INVALID_STATE, align 4, !tbaa !10
%16 = sext i32 %15 to i64
%17 = tail call i32 (i32, i64, ptr, ...) @MB_MASTER_CHECK(i32 noundef %14, i64 noundef %16, ptr noundef nonnull @.str) #2
%18 = load ptr, ptr @master_interface_ptr, align 8, !tbaa !6
%19 = load ptr, ptr %18, align 8, !tbaa !12
%20 = tail call i64 %19(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2
%21 = load i64, ptr @ESP_OK, align 8, !tbaa !14
%22 = icmp eq i64 %20, %21
%23 = zext i1 %22 to i32
%24 = tail call i32 @esp_err_to_name(i64 noundef %20) #2
%25 = tail call i32 (i32, i64, ptr, ...) @MB_MASTER_CHECK(i32 noundef %23, i64 noundef %20, ptr noundef nonnull @.str.1, i64 noundef %20, i32 noundef %24) #2
%26 = load i64, ptr @ESP_OK, align 8, !tbaa !14
ret i64 %26
}
declare i32 @MB_MASTER_CHECK(i32 noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @esp_err_to_name(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
| esp-idf_components_freemodbus_common_extr_esp_modbus_master.c_mbc_master_set_parameter |
; ModuleID = 'AnghaBench/freebsd/sys/dev/vnic/extr_thunder_bgx.c_bgx_get_qlm_mode.c'
source_filename = "AnghaBench/freebsd/sys/dev/vnic/extr_thunder_bgx.c_bgx_get_qlm_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"
%struct.bgx = type { i32, ptr, i32 }
@BGX_CMRX_CFG = dso_local local_unnamed_addr global i32 0, align 4
@BGX_SPUX_BR_PMD_CRTL = dso_local local_unnamed_addr global i32 0, align 4
@SPU_PMD_CRTL_TRAIN_EN = dso_local local_unnamed_addr global i32 0, align 4
@QLM_MODE_SGMII = dso_local local_unnamed_addr global ptr null, align 8
@bootverbose = dso_local local_unnamed_addr global i32 0, align 4
@QLM_MODE_XAUI_1X4 = dso_local local_unnamed_addr global ptr null, align 8
@QLM_MODE_RXAUI_2X2 = dso_local local_unnamed_addr global ptr null, align 8
@QLM_MODE_XFI_4X1 = dso_local local_unnamed_addr global ptr null, align 8
@QLM_MODE_10G_KR_4X1 = dso_local local_unnamed_addr global ptr null, align 8
@QLM_MODE_XLAUI_1X4 = dso_local local_unnamed_addr global ptr null, align 8
@QLM_MODE_40G_KR4_1X4 = dso_local local_unnamed_addr global ptr null, align 8
@.str.7 = private unnamed_addr constant [31 x i8] c"BGX%d QLM default mode: SGMII\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @bgx_get_qlm_mode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bgx_get_qlm_mode(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.bgx, ptr %0, i64 0, i32 2
%3 = load i32, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr @BGX_CMRX_CFG, align 4, !tbaa !11
%5 = tail call i32 @bgx_reg_read(ptr noundef %0, i32 noundef 0, i32 noundef %4) #2
%6 = load i32, ptr @BGX_SPUX_BR_PMD_CRTL, align 4, !tbaa !11
%7 = tail call i32 @bgx_reg_read(ptr noundef %0, i32 noundef 0, i32 noundef %6) #2
%8 = load ptr, ptr @QLM_MODE_SGMII, align 8, !tbaa !12
%9 = getelementptr inbounds %struct.bgx, ptr %0, i64 0, i32 1
store ptr %8, ptr %9, align 8, !tbaa !13
%10 = load i32, ptr @bootverbose, align 4, !tbaa !11
%11 = icmp eq i32 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = load i32, ptr %0, align 8, !tbaa !14
%14 = tail call i32 @device_printf(i32 noundef %3, ptr noundef nonnull @.str.7, i32 noundef %13) #2
br label %15
15: ; preds = %1, %12
ret void
}
declare i32 @bgx_reg_read(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @device_printf(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"bgx", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/vnic/extr_thunder_bgx.c_bgx_get_qlm_mode.c'
source_filename = "AnghaBench/freebsd/sys/dev/vnic/extr_thunder_bgx.c_bgx_get_qlm_mode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BGX_CMRX_CFG = common local_unnamed_addr global i32 0, align 4
@BGX_SPUX_BR_PMD_CRTL = common local_unnamed_addr global i32 0, align 4
@SPU_PMD_CRTL_TRAIN_EN = common local_unnamed_addr global i32 0, align 4
@QLM_MODE_SGMII = common local_unnamed_addr global ptr null, align 8
@bootverbose = common local_unnamed_addr global i32 0, align 4
@QLM_MODE_XAUI_1X4 = common local_unnamed_addr global ptr null, align 8
@QLM_MODE_RXAUI_2X2 = common local_unnamed_addr global ptr null, align 8
@QLM_MODE_XFI_4X1 = common local_unnamed_addr global ptr null, align 8
@QLM_MODE_10G_KR_4X1 = common local_unnamed_addr global ptr null, align 8
@QLM_MODE_XLAUI_1X4 = common local_unnamed_addr global ptr null, align 8
@QLM_MODE_40G_KR4_1X4 = common local_unnamed_addr global ptr null, align 8
@.str.7 = private unnamed_addr constant [31 x i8] c"BGX%d QLM default mode: SGMII\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @bgx_get_qlm_mode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bgx_get_qlm_mode(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load i32, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr @BGX_CMRX_CFG, align 4, !tbaa !12
%5 = tail call i32 @bgx_reg_read(ptr noundef %0, i32 noundef 0, i32 noundef %4) #2
%6 = load i32, ptr @BGX_SPUX_BR_PMD_CRTL, align 4, !tbaa !12
%7 = tail call i32 @bgx_reg_read(ptr noundef %0, i32 noundef 0, i32 noundef %6) #2
%8 = load ptr, ptr @QLM_MODE_SGMII, align 8, !tbaa !13
%9 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %8, ptr %9, align 8, !tbaa !14
%10 = load i32, ptr @bootverbose, align 4, !tbaa !12
%11 = icmp eq i32 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = load i32, ptr %0, align 8, !tbaa !15
%14 = tail call i32 @device_printf(i32 noundef %3, ptr noundef nonnull @.str.7, i32 noundef %13) #2
br label %15
15: ; preds = %1, %12
ret void
}
declare i32 @bgx_reg_read(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @device_printf(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 16}
!7 = !{!"bgx", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!7, !8, i64 0}
| freebsd_sys_dev_vnic_extr_thunder_bgx.c_bgx_get_qlm_mode |
; ModuleID = 'AnghaBench/mpv/player/extr_command.c_cmd_loadfile.c'
source_filename = "AnghaBench/mpv/player/extr_command.c_cmd_loadfile.c"
target datalayout = "e-m:e-p270:32:32-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.mp_cmd_ctx = type { ptr, ptr }
%struct.TYPE_7__ = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { ptr, i32, ptr }
%struct.MPContext = type { ptr, ptr }
@MP_EVENT_CHANGE_PLAYLIST = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cmd_loadfile], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @cmd_loadfile(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.mp_cmd_ctx, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %0, align 8, !tbaa !10
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 1, i32 0, i32 1
%7 = load i32, ptr %6, align 8, !tbaa !15
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = getelementptr inbounds %struct.MPContext, ptr %3, i64 0, i32 1
%11 = load ptr, ptr %10, align 8, !tbaa !16
%12 = tail call i32 @playlist_clear(ptr noundef %11) #2
br label %13
13: ; preds = %9, %1
%14 = tail call ptr @playlist_entry_new(ptr noundef %5) #2
%15 = load ptr, ptr %0, align 8, !tbaa !10
%16 = getelementptr inbounds %struct.TYPE_7__, ptr %15, i64 2, i32 0, i32 2
%17 = load ptr, ptr %16, align 8, !tbaa !18
%18 = icmp eq ptr %17, null
br i1 %18, label %38, label %19
19: ; preds = %13
%20 = load ptr, ptr %17, align 8, !tbaa !19
%21 = icmp eq ptr %20, null
br i1 %21, label %38, label %22
22: ; preds = %19, %29
%23 = phi i64 [ %34, %29 ], [ 0, %19 ]
%24 = phi ptr [ %36, %29 ], [ %20, %19 ]
%25 = or disjoint i64 %23, 1
%26 = getelementptr inbounds ptr, ptr %17, i64 %25
%27 = load ptr, ptr %26, align 8, !tbaa !19
%28 = icmp eq ptr %27, null
br i1 %28, label %38, label %29
29: ; preds = %22
%30 = tail call i32 @bstr0(ptr noundef nonnull %24) #2
%31 = load ptr, ptr %26, align 8, !tbaa !19
%32 = tail call i32 @bstr0(ptr noundef %31) #2
%33 = tail call i32 @playlist_entry_add_param(ptr noundef %14, i32 noundef %30, i32 noundef %32) #2
%34 = add nuw i64 %23, 2
%35 = getelementptr inbounds ptr, ptr %17, i64 %34
%36 = load ptr, ptr %35, align 8, !tbaa !19
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %22, !llvm.loop !20
38: ; preds = %29, %22, %19, %13
%39 = getelementptr inbounds %struct.MPContext, ptr %3, i64 0, i32 1
%40 = load ptr, ptr %39, align 8, !tbaa !16
%41 = tail call i32 @playlist_add(ptr noundef %40, ptr noundef %14) #2
br i1 %8, label %48, label %42
42: ; preds = %38
%43 = icmp eq i32 %7, 2
br i1 %43, label %44, label %56
44: ; preds = %42
%45 = load ptr, ptr %39, align 8, !tbaa !16
%46 = load i32, ptr %45, align 4, !tbaa !22
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %56
48: ; preds = %44, %38
%49 = load ptr, ptr %3, align 8, !tbaa !24
%50 = load i64, ptr %49, align 8, !tbaa !25
%51 = icmp eq i64 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %48
%53 = tail call i32 @mp_write_watch_later_conf(ptr noundef nonnull %3) #2
br label %54
54: ; preds = %52, %48
%55 = tail call i32 @mp_set_playlist_entry(ptr noundef nonnull %3, ptr noundef %14) #2
br label %56
56: ; preds = %54, %44, %42
%57 = load i32, ptr @MP_EVENT_CHANGE_PLAYLIST, align 4, !tbaa !28
%58 = tail call i32 @mp_notify(ptr noundef nonnull %3, i32 noundef %57, ptr noundef null) #2
%59 = tail call i32 @mp_wakeup_core(ptr noundef nonnull %3) #2
ret void
}
declare i32 @playlist_clear(ptr noundef) local_unnamed_addr #1
declare ptr @playlist_entry_new(ptr noundef) local_unnamed_addr #1
declare i32 @playlist_entry_add_param(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bstr0(ptr noundef) local_unnamed_addr #1
declare i32 @playlist_add(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mp_write_watch_later_conf(ptr noundef) local_unnamed_addr #1
declare i32 @mp_set_playlist_entry(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mp_notify(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mp_wakeup_core(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"mp_cmd_ctx", !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, !7, i64 0}
!12 = !{!"TYPE_7__", !13, i64 0}
!13 = !{!"TYPE_6__", !7, i64 0, !14, i64 8, !7, i64 16}
!14 = !{!"int", !8, i64 0}
!15 = !{!12, !14, i64 8}
!16 = !{!17, !7, i64 8}
!17 = !{!"MPContext", !7, i64 0, !7, i64 8}
!18 = !{!12, !7, i64 16}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !14, i64 0}
!23 = !{!"TYPE_9__", !14, i64 0}
!24 = !{!17, !7, i64 0}
!25 = !{!26, !27, i64 0}
!26 = !{!"TYPE_8__", !27, i64 0}
!27 = !{!"long", !8, i64 0}
!28 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/mpv/player/extr_command.c_cmd_loadfile.c'
source_filename = "AnghaBench/mpv/player/extr_command.c_cmd_loadfile.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MP_EVENT_CHANGE_PLAYLIST = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cmd_loadfile], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @cmd_loadfile(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %0, align 8, !tbaa !11
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = getelementptr inbounds i8, ptr %4, i64 32
%7 = load i32, ptr %6, align 8, !tbaa !16
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %3, i64 8
%11 = load ptr, ptr %10, align 8, !tbaa !17
%12 = tail call i32 @playlist_clear(ptr noundef %11) #2
br label %13
13: ; preds = %9, %1
%14 = tail call ptr @playlist_entry_new(ptr noundef %5) #2
%15 = load ptr, ptr %0, align 8, !tbaa !11
%16 = getelementptr inbounds i8, ptr %15, i64 64
%17 = load ptr, ptr %16, align 8, !tbaa !19
%18 = icmp eq ptr %17, null
br i1 %18, label %38, label %19
19: ; preds = %13
%20 = load ptr, ptr %17, align 8, !tbaa !20
%21 = icmp eq ptr %20, null
br i1 %21, label %38, label %22
22: ; preds = %19, %29
%23 = phi i64 [ %34, %29 ], [ 0, %19 ]
%24 = phi ptr [ %36, %29 ], [ %20, %19 ]
%25 = or disjoint i64 %23, 1
%26 = getelementptr inbounds ptr, ptr %17, i64 %25
%27 = load ptr, ptr %26, align 8, !tbaa !20
%28 = icmp eq ptr %27, null
br i1 %28, label %38, label %29
29: ; preds = %22
%30 = tail call i32 @bstr0(ptr noundef nonnull %24) #2
%31 = load ptr, ptr %26, align 8, !tbaa !20
%32 = tail call i32 @bstr0(ptr noundef %31) #2
%33 = tail call i32 @playlist_entry_add_param(ptr noundef %14, i32 noundef %30, i32 noundef %32) #2
%34 = add nuw nsw i64 %23, 2
%35 = getelementptr inbounds ptr, ptr %17, i64 %34
%36 = load ptr, ptr %35, align 8, !tbaa !20
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %22, !llvm.loop !21
38: ; preds = %29, %22, %19, %13
%39 = getelementptr inbounds i8, ptr %3, i64 8
%40 = load ptr, ptr %39, align 8, !tbaa !17
%41 = tail call i32 @playlist_add(ptr noundef %40, ptr noundef %14) #2
br i1 %8, label %48, label %42
42: ; preds = %38
%43 = icmp eq i32 %7, 2
br i1 %43, label %44, label %56
44: ; preds = %42
%45 = load ptr, ptr %39, align 8, !tbaa !17
%46 = load i32, ptr %45, align 4, !tbaa !23
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %56
48: ; preds = %44, %38
%49 = load ptr, ptr %3, align 8, !tbaa !25
%50 = load i64, ptr %49, align 8, !tbaa !26
%51 = icmp eq i64 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %48
%53 = tail call i32 @mp_write_watch_later_conf(ptr noundef nonnull %3) #2
br label %54
54: ; preds = %52, %48
%55 = tail call i32 @mp_set_playlist_entry(ptr noundef nonnull %3, ptr noundef %14) #2
br label %56
56: ; preds = %54, %44, %42
%57 = load i32, ptr @MP_EVENT_CHANGE_PLAYLIST, align 4, !tbaa !29
%58 = tail call i32 @mp_notify(ptr noundef nonnull %3, i32 noundef %57, ptr noundef null) #2
%59 = tail call i32 @mp_wakeup_core(ptr noundef nonnull %3) #2
ret void
}
declare i32 @playlist_clear(ptr noundef) local_unnamed_addr #1
declare ptr @playlist_entry_new(ptr noundef) local_unnamed_addr #1
declare i32 @playlist_entry_add_param(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bstr0(ptr noundef) local_unnamed_addr #1
declare i32 @playlist_add(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mp_write_watch_later_conf(ptr noundef) local_unnamed_addr #1
declare i32 @mp_set_playlist_entry(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mp_notify(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mp_wakeup_core(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"mp_cmd_ctx", !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, !8, i64 0}
!13 = !{!"TYPE_7__", !14, i64 0}
!14 = !{!"TYPE_6__", !8, i64 0, !15, i64 8, !8, i64 16}
!15 = !{!"int", !9, i64 0}
!16 = !{!13, !15, i64 8}
!17 = !{!18, !8, i64 8}
!18 = !{!"MPContext", !8, i64 0, !8, i64 8}
!19 = !{!13, !8, i64 16}
!20 = !{!8, !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !15, i64 0}
!24 = !{!"TYPE_9__", !15, i64 0}
!25 = !{!18, !8, i64 0}
!26 = !{!27, !28, i64 0}
!27 = !{!"TYPE_8__", !28, i64 0}
!28 = !{!"long", !9, i64 0}
!29 = !{!15, !15, i64 0}
| mpv_player_extr_command.c_cmd_loadfile |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/dlm/extr_lowcomms.c_cbuf_eat.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/dlm/extr_lowcomms.c_cbuf_eat.c"
target datalayout = "e-m:e-p270:32:32-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.cbuf = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @cbuf_eat], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define internal void @cbuf_eat(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = sub nsw i32 %3, %1
store i32 %4, ptr %0, align 4, !tbaa !5
%5 = getelementptr inbounds %struct.cbuf, ptr %0, i64 0, i32 1
%6 = load i32, ptr %5, align 4, !tbaa !10
%7 = add nsw i32 %6, %1
%8 = getelementptr inbounds %struct.cbuf, ptr %0, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = and i32 %9, %7
store i32 %10, ptr %5, align 4, !tbaa !10
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"cbuf", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/dlm/extr_lowcomms.c_cbuf_eat.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/dlm/extr_lowcomms.c_cbuf_eat.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 @cbuf_eat], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) uwtable(sync)
define internal void @cbuf_eat(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = sub nsw i32 %3, %1
store i32 %4, ptr %0, align 4, !tbaa !6
%5 = getelementptr inbounds i8, ptr %0, i64 4
%6 = load i32, ptr %5, align 4, !tbaa !11
%7 = add nsw i32 %6, %1
%8 = getelementptr inbounds i8, ptr %0, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = and i32 %9, %7
store i32 %10, ptr %5, align 4, !tbaa !11
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"cbuf", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 8}
| fastsocket_kernel_fs_dlm_extr_lowcomms.c_cbuf_eat |
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/frv/mb93090-mb00/extr_pci-dma.c_dma_map_page.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/frv/mb93090-mb00/extr_pci-dma.c_dma_map_page.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DMA_NONE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i64 @dma_map_page(ptr nocapture noundef readnone %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = load i32, ptr @DMA_NONE, align 4, !tbaa !5
%7 = icmp eq i32 %6, %4
%8 = zext i1 %7 to i32
%9 = tail call i32 @BUG_ON(i32 noundef %8) #2
%10 = tail call i32 @flush_dcache_page(ptr noundef %1) #2
%11 = tail call i64 @page_to_phys(ptr noundef %1) #2
%12 = add i64 %11, %2
ret i64 %12
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @flush_dcache_page(ptr noundef) local_unnamed_addr #1
declare i64 @page_to_phys(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/arch/frv/mb93090-mb00/extr_pci-dma.c_dma_map_page.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/frv/mb93090-mb00/extr_pci-dma.c_dma_map_page.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DMA_NONE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @dma_map_page(ptr nocapture noundef readnone %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
%6 = load i32, ptr @DMA_NONE, align 4, !tbaa !6
%7 = icmp eq i32 %6, %4
%8 = zext i1 %7 to i32
%9 = tail call i32 @BUG_ON(i32 noundef %8) #2
%10 = tail call i32 @flush_dcache_page(ptr noundef %1) #2
%11 = tail call i64 @page_to_phys(ptr noundef %1) #2
%12 = add i64 %11, %2
ret i64 %12
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
declare i32 @flush_dcache_page(ptr noundef) local_unnamed_addr #1
declare i64 @page_to_phys(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| fastsocket_kernel_arch_frv_mb93090-mb00_extr_pci-dma.c_dma_map_page |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/char/extr_serial167.c_cd2401_tx_interrupt.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/char/extr_serial167.c_cd2401_tx_interrupt.c"
target datalayout = "e-m:e-p270:32:32-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.cyclades_port = type { i32, i32, i64, ptr, i64, ptr, i32 }
%struct.TYPE_2__ = type { i64, i64 }
@BASE_ADDR = dso_local local_unnamed_addr global i64 0, align 8
@CyLICR = dso_local local_unnamed_addr global i64 0, align 8
@NR_PORTS = dso_local local_unnamed_addr global i32 0, align 4
@CyTxMpty = dso_local global i8 0, align 1
@CyTxRdy = dso_local global i8 0, align 1
@CyIER = dso_local local_unnamed_addr global i64 0, align 8
@CyNOTRANS = dso_local local_unnamed_addr global i8 0, align 1
@CyTEOIR = dso_local local_unnamed_addr global i64 0, align 8
@IRQ_HANDLED = dso_local local_unnamed_addr global i32 0, align 4
@cy_port = dso_local local_unnamed_addr global ptr null, align 8
@jiffies = dso_local local_unnamed_addr global i32 0, align 4
@CyTFTC = dso_local local_unnamed_addr global i64 0, align 8
@CyTDR = dso_local local_unnamed_addr global i64 0, align 8
@HZ = dso_local local_unnamed_addr global i32 0, align 4
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@WAKEUP_CHARS = dso_local local_unnamed_addr global i64 0, align 8
@DEBUG_PORT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cd2401_tx_interrupt], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @cd2401_tx_interrupt(i32 %0, ptr nocapture readnone %1) #0 {
%3 = load i64, ptr @BASE_ADDR, align 8, !tbaa !5
%4 = inttoptr i64 %3 to ptr
%5 = load i64, ptr @CyLICR, align 8, !tbaa !5
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load volatile i8, ptr %6, align 1, !tbaa !9
%8 = lshr i8 %7, 2
%9 = zext nneg i8 %8 to i32
%10 = load i32, ptr @NR_PORTS, align 4, !tbaa !10
%11 = icmp sgt i32 %10, %9
br i1 %11, label %22, label %12
12: ; preds = %2
%13 = load volatile i8, ptr @CyTxMpty, align 1, !tbaa !9
%14 = load volatile i8, ptr @CyTxRdy, align 1, !tbaa !9
%15 = or i8 %14, %13
%16 = xor i8 %15, -1
%17 = load i64, ptr @CyIER, align 8, !tbaa !5
%18 = getelementptr inbounds i8, ptr %4, i64 %17
%19 = load volatile i8, ptr %18, align 1, !tbaa !9
%20 = and i8 %19, %16
store volatile i8 %20, ptr %18, align 1, !tbaa !9
%21 = load i8, ptr @CyNOTRANS, align 1, !tbaa !9
br label %154
22: ; preds = %2
%23 = load ptr, ptr @cy_port, align 8, !tbaa !12
%24 = zext nneg i8 %8 to i64
%25 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24
%26 = load i32, ptr @jiffies, align 4, !tbaa !10
%27 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 6
store i32 %26, ptr %27, align 8, !tbaa !14
%28 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 5
%29 = load ptr, ptr %28, align 8, !tbaa !16
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %41
31: ; preds = %22
%32 = load volatile i8, ptr @CyTxMpty, align 1, !tbaa !9
%33 = load volatile i8, ptr @CyTxRdy, align 1, !tbaa !9
%34 = or i8 %33, %32
%35 = xor i8 %34, -1
%36 = load i64, ptr @CyIER, align 8, !tbaa !5
%37 = getelementptr inbounds i8, ptr %4, i64 %36
%38 = load volatile i8, ptr %37, align 1, !tbaa !9
%39 = and i8 %38, %35
store volatile i8 %39, ptr %37, align 1, !tbaa !9
%40 = load i8, ptr @CyNOTRANS, align 1, !tbaa !9
br label %154
41: ; preds = %22
%42 = load i64, ptr @CyTFTC, align 8, !tbaa !5
%43 = getelementptr inbounds i8, ptr %4, i64 %42
%44 = load volatile i8, ptr %43, align 1, !tbaa !9
%45 = zext i8 %44 to i32
%46 = load i32, ptr %25, align 8, !tbaa !17
%47 = icmp eq i32 %46, 0
br i1 %47, label %53, label %48
48: ; preds = %41
%49 = trunc i32 %46 to i8
%50 = load i64, ptr @CyTDR, align 8, !tbaa !5
%51 = getelementptr inbounds i8, ptr %4, i64 %50
store volatile i8 %49, ptr %51, align 1, !tbaa !9
%52 = add nsw i32 %45, -1
store i32 0, ptr %25, align 8, !tbaa !17
br label %53
53: ; preds = %48, %41
%54 = phi i32 [ %52, %48 ], [ %45, %41 ]
%55 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 1
%56 = load i32, ptr %55, align 4, !tbaa !18
%57 = icmp eq i32 %56, 0
br i1 %57, label %79, label %58
58: ; preds = %53
%59 = load i64, ptr @CyTDR, align 8, !tbaa !5
%60 = getelementptr inbounds i8, ptr %4, i64 %59
store volatile i8 0, ptr %60, align 1, !tbaa !9
%61 = load i64, ptr @CyTDR, align 8, !tbaa !5
%62 = getelementptr inbounds i8, ptr %4, i64 %61
store volatile i8 -127, ptr %62, align 1, !tbaa !9
%63 = load i64, ptr @CyTDR, align 8, !tbaa !5
%64 = getelementptr inbounds i8, ptr %4, i64 %63
store volatile i8 0, ptr %64, align 1, !tbaa !9
%65 = load i64, ptr @CyTDR, align 8, !tbaa !5
%66 = getelementptr inbounds i8, ptr %4, i64 %65
store volatile i8 -126, ptr %66, align 1, !tbaa !9
%67 = load i32, ptr %55, align 4, !tbaa !18
%68 = mul nsw i32 %67, 200
%69 = load i32, ptr @HZ, align 4, !tbaa !10
%70 = sdiv i32 %68, %69
%71 = trunc i32 %70 to i8
%72 = load i64, ptr @CyTDR, align 8, !tbaa !5
%73 = getelementptr inbounds i8, ptr %4, i64 %72
store volatile i8 %71, ptr %73, align 1, !tbaa !9
%74 = load i64, ptr @CyTDR, align 8, !tbaa !5
%75 = getelementptr inbounds i8, ptr %4, i64 %74
store volatile i8 0, ptr %75, align 1, !tbaa !9
%76 = load i64, ptr @CyTDR, align 8, !tbaa !5
%77 = getelementptr inbounds i8, ptr %4, i64 %76
store volatile i8 -125, ptr %77, align 1, !tbaa !9
%78 = add nsw i32 %54, -7
store i32 0, ptr %55, align 4, !tbaa !18
br label %79
79: ; preds = %58, %53
%80 = phi i32 [ %78, %58 ], [ %54, %53 ]
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %141
82: ; preds = %79
%83 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 2
%84 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 3
%85 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 4
br label %86
86: ; preds = %82, %125
%87 = phi i32 [ %80, %82 ], [ %130, %125 ]
%88 = load i64, ptr %83, align 8, !tbaa !19
%89 = icmp eq i64 %88, 0
br i1 %89, label %132, label %90
90: ; preds = %86
%91 = load ptr, ptr %84, align 8, !tbaa !20
%92 = icmp eq ptr %91, null
br i1 %92, label %132, label %93
93: ; preds = %90
%94 = load ptr, ptr %28, align 8, !tbaa !16
%95 = getelementptr inbounds %struct.TYPE_2__, ptr %94, i64 0, i32 1
%96 = load i64, ptr %95, align 8, !tbaa !21
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %132
98: ; preds = %93
%99 = load i64, ptr %94, align 8, !tbaa !23
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %132
101: ; preds = %98
%102 = load i64, ptr %85, align 8, !tbaa !24
%103 = getelementptr inbounds i32, ptr %91, i64 %102
%104 = load i32, ptr %103, align 4, !tbaa !10
%105 = icmp eq i32 %104, 0
br i1 %105, label %114, label %106
106: ; preds = %101
%107 = add nsw i64 %88, -1
store i64 %107, ptr %83, align 8, !tbaa !19
%108 = add i64 %102, 1
%109 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !10
%110 = add nsw i32 %109, -1
%111 = sext i32 %110 to i64
%112 = and i64 %108, %111
store i64 %112, ptr %85, align 8, !tbaa !24
%113 = trunc i32 %104 to i8
br label %125
114: ; preds = %101
%115 = icmp eq i32 %87, 1
br i1 %115, label %141, label %116
116: ; preds = %114
%117 = add nsw i64 %88, -1
store i64 %117, ptr %83, align 8, !tbaa !19
%118 = add i64 %102, 1
%119 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !10
%120 = add nsw i32 %119, -1
%121 = sext i32 %120 to i64
%122 = and i64 %118, %121
store i64 %122, ptr %85, align 8, !tbaa !24
%123 = load i64, ptr @CyTDR, align 8, !tbaa !5
%124 = getelementptr inbounds i8, ptr %4, i64 %123
store volatile i8 0, ptr %124, align 1, !tbaa !9
br label %125
125: ; preds = %116, %106
%126 = phi i8 [ 0, %116 ], [ %113, %106 ]
%127 = phi i32 [ -2, %116 ], [ -1, %106 ]
%128 = load i64, ptr @CyTDR, align 8, !tbaa !5
%129 = getelementptr inbounds i8, ptr %4, i64 %128
store volatile i8 %126, ptr %129, align 1, !tbaa !9
%130 = add nsw i32 %87, %127
%131 = icmp sgt i32 %130, 0
br i1 %131, label %86, label %141, !llvm.loop !25
132: ; preds = %93, %98, %90, %86
%133 = load volatile i8, ptr @CyTxMpty, align 1, !tbaa !9
%134 = load volatile i8, ptr @CyTxRdy, align 1, !tbaa !9
%135 = or i8 %134, %133
%136 = xor i8 %135, -1
%137 = load i64, ptr @CyIER, align 8, !tbaa !5
%138 = getelementptr inbounds i8, ptr %4, i64 %137
%139 = load volatile i8, ptr %138, align 1, !tbaa !9
%140 = and i8 %139, %136
store volatile i8 %140, ptr %138, align 1, !tbaa !9
br label %141
141: ; preds = %125, %114, %132, %79
%142 = phi i32 [ %80, %79 ], [ %87, %132 ], [ %130, %125 ], [ 1, %114 ]
%143 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24, i32 2
%144 = load i64, ptr %143, align 8, !tbaa !19
%145 = load i64, ptr @WAKEUP_CHARS, align 8, !tbaa !5
%146 = icmp slt i64 %144, %145
br i1 %146, label %147, label %150
147: ; preds = %141
%148 = load ptr, ptr %28, align 8, !tbaa !16
%149 = tail call i32 @tty_wakeup(ptr noundef %148) #2
br label %150
150: ; preds = %147, %141
%151 = icmp eq i32 %142, %45
%152 = load i8, ptr @CyNOTRANS, align 1
%153 = select i1 %151, i8 %152, i8 0
br label %154
154: ; preds = %150, %31, %12
%155 = phi i8 [ %153, %150 ], [ %40, %31 ], [ %21, %12 ]
%156 = load i64, ptr @CyTEOIR, align 8, !tbaa !5
%157 = getelementptr inbounds i8, ptr %4, i64 %156
store volatile i8 %155, ptr %157, align 1, !tbaa !9
%158 = load i32, ptr @IRQ_HANDLED, align 4, !tbaa !10
ret i32 %158
}
declare i32 @tty_wakeup(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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !11, i64 40}
!15 = !{!"cyclades_port", !11, i64 0, !11, i64 4, !6, i64 8, !13, i64 16, !6, i64 24, !13, i64 32, !11, i64 40}
!16 = !{!15, !13, i64 32}
!17 = !{!15, !11, i64 0}
!18 = !{!15, !11, i64 4}
!19 = !{!15, !6, i64 8}
!20 = !{!15, !13, i64 16}
!21 = !{!22, !6, i64 8}
!22 = !{!"TYPE_2__", !6, i64 0, !6, i64 8}
!23 = !{!22, !6, i64 0}
!24 = !{!15, !6, i64 24}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/char/extr_serial167.c_cd2401_tx_interrupt.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/char/extr_serial167.c_cd2401_tx_interrupt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.cyclades_port = type { i32, i32, i64, ptr, i64, ptr, i32 }
@BASE_ADDR = common local_unnamed_addr global i64 0, align 8
@CyLICR = common local_unnamed_addr global i64 0, align 8
@NR_PORTS = common local_unnamed_addr global i32 0, align 4
@CyTxMpty = common global i8 0, align 1
@CyTxRdy = common global i8 0, align 1
@CyIER = common local_unnamed_addr global i64 0, align 8
@CyNOTRANS = common local_unnamed_addr global i8 0, align 1
@CyTEOIR = common local_unnamed_addr global i64 0, align 8
@IRQ_HANDLED = common local_unnamed_addr global i32 0, align 4
@cy_port = common local_unnamed_addr global ptr null, align 8
@jiffies = common local_unnamed_addr global i32 0, align 4
@CyTFTC = common local_unnamed_addr global i64 0, align 8
@CyTDR = common local_unnamed_addr global i64 0, align 8
@HZ = common local_unnamed_addr global i32 0, align 4
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
@WAKEUP_CHARS = common local_unnamed_addr global i64 0, align 8
@DEBUG_PORT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cd2401_tx_interrupt], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @cd2401_tx_interrupt(i32 %0, ptr nocapture readnone %1) #0 {
%3 = load i64, ptr @BASE_ADDR, align 8, !tbaa !6
%4 = inttoptr i64 %3 to ptr
%5 = load i64, ptr @CyLICR, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load volatile i8, ptr %6, align 1, !tbaa !10
%8 = lshr i8 %7, 2
%9 = zext nneg i8 %8 to i32
%10 = load i32, ptr @NR_PORTS, align 4, !tbaa !11
%11 = icmp sgt i32 %10, %9
br i1 %11, label %22, label %12
12: ; preds = %2
%13 = load volatile i8, ptr @CyTxMpty, align 1, !tbaa !10
%14 = load volatile i8, ptr @CyTxRdy, align 1, !tbaa !10
%15 = or i8 %14, %13
%16 = xor i8 %15, -1
%17 = load i64, ptr @CyIER, align 8, !tbaa !6
%18 = getelementptr inbounds i8, ptr %4, i64 %17
%19 = load volatile i8, ptr %18, align 1, !tbaa !10
%20 = and i8 %19, %16
store volatile i8 %20, ptr %18, align 1, !tbaa !10
%21 = load i8, ptr @CyNOTRANS, align 1, !tbaa !10
br label %154
22: ; preds = %2
%23 = load ptr, ptr @cy_port, align 8, !tbaa !13
%24 = zext nneg i8 %8 to i64
%25 = getelementptr inbounds %struct.cyclades_port, ptr %23, i64 %24
%26 = load i32, ptr @jiffies, align 4, !tbaa !11
%27 = getelementptr inbounds i8, ptr %25, i64 40
store i32 %26, ptr %27, align 8, !tbaa !15
%28 = getelementptr inbounds i8, ptr %25, i64 32
%29 = load ptr, ptr %28, align 8, !tbaa !17
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %41
31: ; preds = %22
%32 = load volatile i8, ptr @CyTxMpty, align 1, !tbaa !10
%33 = load volatile i8, ptr @CyTxRdy, align 1, !tbaa !10
%34 = or i8 %33, %32
%35 = xor i8 %34, -1
%36 = load i64, ptr @CyIER, align 8, !tbaa !6
%37 = getelementptr inbounds i8, ptr %4, i64 %36
%38 = load volatile i8, ptr %37, align 1, !tbaa !10
%39 = and i8 %38, %35
store volatile i8 %39, ptr %37, align 1, !tbaa !10
%40 = load i8, ptr @CyNOTRANS, align 1, !tbaa !10
br label %154
41: ; preds = %22
%42 = load i64, ptr @CyTFTC, align 8, !tbaa !6
%43 = getelementptr inbounds i8, ptr %4, i64 %42
%44 = load volatile i8, ptr %43, align 1, !tbaa !10
%45 = zext i8 %44 to i32
%46 = load i32, ptr %25, align 8, !tbaa !18
%47 = icmp eq i32 %46, 0
br i1 %47, label %53, label %48
48: ; preds = %41
%49 = trunc i32 %46 to i8
%50 = load i64, ptr @CyTDR, align 8, !tbaa !6
%51 = getelementptr inbounds i8, ptr %4, i64 %50
store volatile i8 %49, ptr %51, align 1, !tbaa !10
%52 = add nsw i32 %45, -1
store i32 0, ptr %25, align 8, !tbaa !18
br label %53
53: ; preds = %48, %41
%54 = phi i32 [ %52, %48 ], [ %45, %41 ]
%55 = getelementptr inbounds i8, ptr %25, i64 4
%56 = load i32, ptr %55, align 4, !tbaa !19
%57 = icmp eq i32 %56, 0
br i1 %57, label %79, label %58
58: ; preds = %53
%59 = load i64, ptr @CyTDR, align 8, !tbaa !6
%60 = getelementptr inbounds i8, ptr %4, i64 %59
store volatile i8 0, ptr %60, align 1, !tbaa !10
%61 = load i64, ptr @CyTDR, align 8, !tbaa !6
%62 = getelementptr inbounds i8, ptr %4, i64 %61
store volatile i8 -127, ptr %62, align 1, !tbaa !10
%63 = load i64, ptr @CyTDR, align 8, !tbaa !6
%64 = getelementptr inbounds i8, ptr %4, i64 %63
store volatile i8 0, ptr %64, align 1, !tbaa !10
%65 = load i64, ptr @CyTDR, align 8, !tbaa !6
%66 = getelementptr inbounds i8, ptr %4, i64 %65
store volatile i8 -126, ptr %66, align 1, !tbaa !10
%67 = load i32, ptr %55, align 4, !tbaa !19
%68 = mul nsw i32 %67, 200
%69 = load i32, ptr @HZ, align 4, !tbaa !11
%70 = sdiv i32 %68, %69
%71 = trunc i32 %70 to i8
%72 = load i64, ptr @CyTDR, align 8, !tbaa !6
%73 = getelementptr inbounds i8, ptr %4, i64 %72
store volatile i8 %71, ptr %73, align 1, !tbaa !10
%74 = load i64, ptr @CyTDR, align 8, !tbaa !6
%75 = getelementptr inbounds i8, ptr %4, i64 %74
store volatile i8 0, ptr %75, align 1, !tbaa !10
%76 = load i64, ptr @CyTDR, align 8, !tbaa !6
%77 = getelementptr inbounds i8, ptr %4, i64 %76
store volatile i8 -125, ptr %77, align 1, !tbaa !10
%78 = add nsw i32 %54, -7
store i32 0, ptr %55, align 4, !tbaa !19
br label %79
79: ; preds = %58, %53
%80 = phi i32 [ %78, %58 ], [ %54, %53 ]
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %141
82: ; preds = %79
%83 = getelementptr inbounds i8, ptr %25, i64 8
%84 = getelementptr inbounds i8, ptr %25, i64 16
%85 = getelementptr inbounds i8, ptr %25, i64 24
br label %86
86: ; preds = %82, %125
%87 = phi i32 [ %80, %82 ], [ %130, %125 ]
%88 = load i64, ptr %83, align 8, !tbaa !20
%89 = icmp eq i64 %88, 0
br i1 %89, label %132, label %90
90: ; preds = %86
%91 = load ptr, ptr %84, align 8, !tbaa !21
%92 = icmp eq ptr %91, null
br i1 %92, label %132, label %93
93: ; preds = %90
%94 = load ptr, ptr %28, align 8, !tbaa !17
%95 = getelementptr inbounds i8, ptr %94, i64 8
%96 = load i64, ptr %95, align 8, !tbaa !22
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %132
98: ; preds = %93
%99 = load i64, ptr %94, align 8, !tbaa !24
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %132
101: ; preds = %98
%102 = load i64, ptr %85, align 8, !tbaa !25
%103 = getelementptr inbounds i32, ptr %91, i64 %102
%104 = load i32, ptr %103, align 4, !tbaa !11
%105 = icmp eq i32 %104, 0
br i1 %105, label %114, label %106
106: ; preds = %101
%107 = add nsw i64 %88, -1
store i64 %107, ptr %83, align 8, !tbaa !20
%108 = add i64 %102, 1
%109 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !11
%110 = add nsw i32 %109, -1
%111 = sext i32 %110 to i64
%112 = and i64 %108, %111
store i64 %112, ptr %85, align 8, !tbaa !25
%113 = trunc i32 %104 to i8
br label %125
114: ; preds = %101
%115 = icmp eq i32 %87, 1
br i1 %115, label %141, label %116
116: ; preds = %114
%117 = add nsw i64 %88, -1
store i64 %117, ptr %83, align 8, !tbaa !20
%118 = add i64 %102, 1
%119 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !11
%120 = add nsw i32 %119, -1
%121 = sext i32 %120 to i64
%122 = and i64 %118, %121
store i64 %122, ptr %85, align 8, !tbaa !25
%123 = load i64, ptr @CyTDR, align 8, !tbaa !6
%124 = getelementptr inbounds i8, ptr %4, i64 %123
store volatile i8 0, ptr %124, align 1, !tbaa !10
br label %125
125: ; preds = %116, %106
%126 = phi i8 [ 0, %116 ], [ %113, %106 ]
%127 = phi i32 [ -2, %116 ], [ -1, %106 ]
%128 = load i64, ptr @CyTDR, align 8, !tbaa !6
%129 = getelementptr inbounds i8, ptr %4, i64 %128
store volatile i8 %126, ptr %129, align 1, !tbaa !10
%130 = add nsw i32 %87, %127
%131 = icmp sgt i32 %130, 0
br i1 %131, label %86, label %141, !llvm.loop !26
132: ; preds = %93, %98, %90, %86
%133 = load volatile i8, ptr @CyTxMpty, align 1, !tbaa !10
%134 = load volatile i8, ptr @CyTxRdy, align 1, !tbaa !10
%135 = or i8 %134, %133
%136 = xor i8 %135, -1
%137 = load i64, ptr @CyIER, align 8, !tbaa !6
%138 = getelementptr inbounds i8, ptr %4, i64 %137
%139 = load volatile i8, ptr %138, align 1, !tbaa !10
%140 = and i8 %139, %136
store volatile i8 %140, ptr %138, align 1, !tbaa !10
br label %141
141: ; preds = %125, %114, %132, %79
%142 = phi i32 [ %80, %79 ], [ %87, %132 ], [ %130, %125 ], [ 1, %114 ]
%143 = getelementptr inbounds i8, ptr %25, i64 8
%144 = load i64, ptr %143, align 8, !tbaa !20
%145 = load i64, ptr @WAKEUP_CHARS, align 8, !tbaa !6
%146 = icmp slt i64 %144, %145
br i1 %146, label %147, label %150
147: ; preds = %141
%148 = load ptr, ptr %28, align 8, !tbaa !17
%149 = tail call i32 @tty_wakeup(ptr noundef %148) #2
br label %150
150: ; preds = %147, %141
%151 = icmp eq i32 %142, %45
%152 = load i8, ptr @CyNOTRANS, align 1
%153 = select i1 %151, i8 %152, i8 0
br label %154
154: ; preds = %150, %31, %12
%155 = phi i8 [ %153, %150 ], [ %40, %31 ], [ %21, %12 ]
%156 = load i64, ptr @CyTEOIR, align 8, !tbaa !6
%157 = getelementptr inbounds i8, ptr %4, i64 %156
store volatile i8 %155, ptr %157, align 1, !tbaa !10
%158 = load i32, ptr @IRQ_HANDLED, align 4, !tbaa !11
ret i32 %158
}
declare i32 @tty_wakeup(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 = !{!8, !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !12, i64 40}
!16 = !{!"cyclades_port", !12, i64 0, !12, i64 4, !7, i64 8, !14, i64 16, !7, i64 24, !14, i64 32, !12, i64 40}
!17 = !{!16, !14, i64 32}
!18 = !{!16, !12, i64 0}
!19 = !{!16, !12, i64 4}
!20 = !{!16, !7, i64 8}
!21 = !{!16, !14, i64 16}
!22 = !{!23, !7, i64 8}
!23 = !{!"TYPE_2__", !7, i64 0, !7, i64 8}
!24 = !{!23, !7, i64 0}
!25 = !{!16, !7, i64 24}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_drivers_char_extr_serial167.c_cd2401_tx_interrupt |
; ModuleID = 'AnghaBench/reactos/dll/win32/comctl32/extr_combo.c_CBGetDroppedControlRect.c'
source_filename = "AnghaBench/reactos/dll/win32/comctl32/extr_combo.c_CBGetDroppedControlRect.c"
target datalayout = "e-m:e-p270:32:32-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_9__ = type { %struct.TYPE_7__, i32 }
%struct.TYPE_7__ = type { i64, i64, i64, i64 }
%struct.TYPE_8__ = type { i64, i64, i64, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @CBGetDroppedControlRect], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @CBGetDroppedControlRect(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds %struct.TYPE_9__, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 8, !tbaa !5
%5 = tail call i32 @GetWindowRect(i32 noundef %4, ptr noundef %1) #2
%6 = getelementptr inbounds %struct.TYPE_8__, ptr %1, i64 0, i32 2
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 3
%9 = load i64, ptr %8, align 8, !tbaa !14
%10 = add nsw i64 %9, %7
%11 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 2
%12 = load i64, ptr %11, align 8, !tbaa !15
%13 = sub i64 %10, %12
%14 = getelementptr inbounds %struct.TYPE_8__, ptr %1, i64 0, i32 3
store i64 %13, ptr %14, align 8, !tbaa !16
%15 = load i64, ptr %1, align 8, !tbaa !17
%16 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
%17 = load i64, ptr %16, align 8, !tbaa !18
%18 = add nsw i64 %17, %15
%19 = load i64, ptr %0, align 8, !tbaa !19
%20 = sub i64 %18, %19
%21 = getelementptr inbounds %struct.TYPE_8__, ptr %1, i64 0, i32 1
store i64 %20, ptr %21, align 8, !tbaa !20
ret void
}
declare i32 @GetWindowRect(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 32}
!6 = !{!"TYPE_9__", !7, i64 0, !11, i64 32}
!7 = !{!"TYPE_7__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !8, i64 16}
!13 = !{!"TYPE_8__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!14 = !{!6, !8, i64 24}
!15 = !{!6, !8, i64 16}
!16 = !{!13, !8, i64 24}
!17 = !{!13, !8, i64 0}
!18 = !{!6, !8, i64 8}
!19 = !{!6, !8, i64 0}
!20 = !{!13, !8, i64 8}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/comctl32/extr_combo.c_CBGetDroppedControlRect.c'
source_filename = "AnghaBench/reactos/dll/win32/comctl32/extr_combo.c_CBGetDroppedControlRect.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 @CBGetDroppedControlRect], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @CBGetDroppedControlRect(ptr nocapture noundef readonly %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 32
%4 = load i32, ptr %3, align 8, !tbaa !6
%5 = tail call i32 @GetWindowRect(i32 noundef %4, ptr noundef %1) #2
%6 = getelementptr inbounds i8, ptr %1, i64 16
%7 = load i64, ptr %6, align 8, !tbaa !13
%8 = getelementptr inbounds i8, ptr %0, i64 24
%9 = load i64, ptr %8, align 8, !tbaa !15
%10 = add nsw i64 %9, %7
%11 = getelementptr inbounds i8, ptr %0, i64 16
%12 = load i64, ptr %11, align 8, !tbaa !16
%13 = sub i64 %10, %12
%14 = getelementptr inbounds i8, ptr %1, i64 24
store i64 %13, ptr %14, align 8, !tbaa !17
%15 = load i64, ptr %1, align 8, !tbaa !18
%16 = getelementptr inbounds i8, ptr %0, i64 8
%17 = load i64, ptr %16, align 8, !tbaa !19
%18 = add nsw i64 %17, %15
%19 = load i64, ptr %0, align 8, !tbaa !20
%20 = sub i64 %18, %19
%21 = getelementptr inbounds i8, ptr %1, i64 8
store i64 %20, ptr %21, align 8, !tbaa !21
ret void
}
declare i32 @GetWindowRect(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 32}
!7 = !{!"TYPE_9__", !8, i64 0, !12, i64 32}
!8 = !{!"TYPE_7__", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!14, !9, i64 16}
!14 = !{!"TYPE_8__", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!15 = !{!7, !9, i64 24}
!16 = !{!7, !9, i64 16}
!17 = !{!14, !9, i64 24}
!18 = !{!14, !9, i64 0}
!19 = !{!7, !9, i64 8}
!20 = !{!7, !9, i64 0}
!21 = !{!14, !9, i64 8}
| reactos_dll_win32_comctl32_extr_combo.c_CBGetDroppedControlRect |
; ModuleID = 'AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_ctl_open.c'
source_filename = "AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_ctl_open.c"
target datalayout = "e-m:e-p270:32:32-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.ctl_info = type { i32, i64, i32, i32, i32, i32, i32 }
%struct.sockaddr_ctl = type { i32, i64, i32, i32, i32, i32, i32 }
@PF_SYSTEM = dso_local local_unnamed_addr global i32 0, align 4
@SOCK_DGRAM = dso_local local_unnamed_addr global i32 0, align 4
@SYSPROTO_CONTROL = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"failed to open a SYSPROTO_CONTROL socket: %s\00", align 1
@errno = dso_local local_unnamed_addr global i32 0, align 4
@CONTROL_NAME = dso_local local_unnamed_addr global ptr null, align 8
@CTLIOCGINFO = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [59 x i8] c"Failed to get the control info for control named \22%s\22: %s\0A\00", align 1
@AF_SYSTEM = dso_local local_unnamed_addr global i32 0, align 4
@AF_SYS_CONTROL = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [44 x i8] c"Failed to connect to the control socket: %s\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @ctl_open() local_unnamed_addr #0 {
%1 = alloca %struct.ctl_info, align 8
%2 = alloca %struct.sockaddr_ctl, align 8
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #4
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
%3 = load i32, ptr @PF_SYSTEM, align 4, !tbaa !5
%4 = load i32, ptr @SOCK_DGRAM, align 4, !tbaa !5
%5 = load i32, ptr @SYSPROTO_CONTROL, align 4, !tbaa !5
%6 = tail call i32 @socket(i32 noundef %3, i32 noundef %4, i32 noundef %5) #4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = load i32, ptr @errno, align 4, !tbaa !5
%10 = tail call ptr @strerror(i32 noundef %9) #4
%11 = tail call i32 (ptr, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %10)
br label %44
12: ; preds = %0
%13 = call i32 @memset(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 40) #4
%14 = getelementptr inbounds %struct.ctl_info, ptr %1, i64 0, i32 6
%15 = load i32, ptr %14, align 8, !tbaa !9
%16 = load ptr, ptr @CONTROL_NAME, align 8, !tbaa !12
%17 = call i32 @strlcpy(i32 noundef %15, ptr noundef %16, i32 noundef 4) #4
%18 = load i32, ptr @CTLIOCGINFO, align 4, !tbaa !5
%19 = call i32 @ioctl(i32 noundef %6, i32 noundef %18, ptr noundef nonnull %1) #4
%20 = icmp eq i32 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %12
%22 = load ptr, ptr @CONTROL_NAME, align 8, !tbaa !12
%23 = load i32, ptr @errno, align 4, !tbaa !5
%24 = call ptr @strerror(i32 noundef %23) #4
%25 = call i32 (ptr, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22, ptr noundef %24)
br label %42
26: ; preds = %12
%27 = call i32 @memset(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 40) #4
store i32 40, ptr %2, align 8, !tbaa !14
%28 = load i32, ptr @AF_SYSTEM, align 4, !tbaa !5
%29 = getelementptr inbounds %struct.sockaddr_ctl, ptr %2, i64 0, i32 5
store i32 %28, ptr %29, align 4, !tbaa !16
%30 = load i32, ptr @AF_SYS_CONTROL, align 4, !tbaa !5
%31 = getelementptr inbounds %struct.sockaddr_ctl, ptr %2, i64 0, i32 4
store i32 %30, ptr %31, align 8, !tbaa !17
%32 = getelementptr inbounds %struct.ctl_info, ptr %1, i64 0, i32 2
%33 = load i32, ptr %32, align 8, !tbaa !18
%34 = getelementptr inbounds %struct.sockaddr_ctl, ptr %2, i64 0, i32 3
store i32 %33, ptr %34, align 4, !tbaa !19
%35 = getelementptr inbounds %struct.sockaddr_ctl, ptr %2, i64 0, i32 1
store i64 0, ptr %35, align 8, !tbaa !20
%36 = call i32 @connect(i32 noundef %6, ptr noundef nonnull %2, i32 noundef 40) #4
%37 = icmp eq i32 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %26
%39 = load i32, ptr @errno, align 4, !tbaa !5
%40 = call ptr @strerror(i32 noundef %39) #4
%41 = call i32 (ptr, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %40)
br label %42
42: ; preds = %21, %38
%43 = call i32 @close(i32 noundef %6) #4
br label %44
44: ; preds = %26, %8, %42
%45 = phi i32 [ -1, %42 ], [ %6, %8 ], [ %6, %26 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #4
ret i32 %45
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ptr noundef, ...) local_unnamed_addr #3
declare ptr @strerror(i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strlcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @connect(i32 noundef, ptr 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"ctl_info", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"sockaddr_ctl", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32}
!16 = !{!15, !6, i64 28}
!17 = !{!15, !6, i64 24}
!18 = !{!10, !6, i64 16}
!19 = !{!15, !6, i64 20}
!20 = !{!15, !11, i64 8}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_ctl_open.c'
source_filename = "AnghaBench/exploitdb/exploits/multiple/dos/extr_39378.c_ctl_open.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ctl_info = type { i32, i64, i32, i32, i32, i32, i32 }
%struct.sockaddr_ctl = type { i32, i64, i32, i32, i32, i32, i32 }
@PF_SYSTEM = common local_unnamed_addr global i32 0, align 4
@SOCK_DGRAM = common local_unnamed_addr global i32 0, align 4
@SYSPROTO_CONTROL = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [45 x i8] c"failed to open a SYSPROTO_CONTROL socket: %s\00", align 1
@errno = common local_unnamed_addr global i32 0, align 4
@CONTROL_NAME = common local_unnamed_addr global ptr null, align 8
@CTLIOCGINFO = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [59 x i8] c"Failed to get the control info for control named \22%s\22: %s\0A\00", align 1
@AF_SYSTEM = common local_unnamed_addr global i32 0, align 4
@AF_SYS_CONTROL = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [44 x i8] c"Failed to connect to the control socket: %s\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ctl_open() local_unnamed_addr #0 {
%1 = alloca %struct.ctl_info, align 8
%2 = alloca %struct.sockaddr_ctl, align 8
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #4
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
%3 = load i32, ptr @PF_SYSTEM, align 4, !tbaa !6
%4 = load i32, ptr @SOCK_DGRAM, align 4, !tbaa !6
%5 = load i32, ptr @SYSPROTO_CONTROL, align 4, !tbaa !6
%6 = tail call i32 @socket(i32 noundef %3, i32 noundef %4, i32 noundef %5) #4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = load i32, ptr @errno, align 4, !tbaa !6
%10 = tail call ptr @strerror(i32 noundef %9) #4
%11 = tail call i32 (ptr, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %10)
br label %44
12: ; preds = %0
%13 = call i32 @memset(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 40) #4
%14 = getelementptr inbounds i8, ptr %1, i64 32
%15 = load i32, ptr %14, align 8, !tbaa !10
%16 = load ptr, ptr @CONTROL_NAME, align 8, !tbaa !13
%17 = call i32 @strlcpy(i32 noundef %15, ptr noundef %16, i32 noundef 4) #4
%18 = load i32, ptr @CTLIOCGINFO, align 4, !tbaa !6
%19 = call i32 @ioctl(i32 noundef %6, i32 noundef %18, ptr noundef nonnull %1) #4
%20 = icmp eq i32 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %12
%22 = load ptr, ptr @CONTROL_NAME, align 8, !tbaa !13
%23 = load i32, ptr @errno, align 4, !tbaa !6
%24 = call ptr @strerror(i32 noundef %23) #4
%25 = call i32 (ptr, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22, ptr noundef %24)
br label %42
26: ; preds = %12
%27 = call i32 @memset(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 40) #4
store i32 40, ptr %2, align 8, !tbaa !15
%28 = load i32, ptr @AF_SYSTEM, align 4, !tbaa !6
%29 = getelementptr inbounds i8, ptr %2, i64 28
store i32 %28, ptr %29, align 4, !tbaa !17
%30 = load i32, ptr @AF_SYS_CONTROL, align 4, !tbaa !6
%31 = getelementptr inbounds i8, ptr %2, i64 24
store i32 %30, ptr %31, align 8, !tbaa !18
%32 = getelementptr inbounds i8, ptr %1, i64 16
%33 = load i32, ptr %32, align 8, !tbaa !19
%34 = getelementptr inbounds i8, ptr %2, i64 20
store i32 %33, ptr %34, align 4, !tbaa !20
%35 = getelementptr inbounds i8, ptr %2, i64 8
store i64 0, ptr %35, align 8, !tbaa !21
%36 = call i32 @connect(i32 noundef %6, ptr noundef nonnull %2, i32 noundef 40) #4
%37 = icmp eq i32 %36, 0
br i1 %37, label %44, label %38
38: ; preds = %26
%39 = load i32, ptr @errno, align 4, !tbaa !6
%40 = call ptr @strerror(i32 noundef %39) #4
%41 = call i32 (ptr, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %40)
br label %42
42: ; preds = %21, %38
%43 = call i32 @close(i32 noundef %6) #4
br label %44
44: ; preds = %26, %8, %42
%45 = phi i32 [ -1, %42 ], [ %6, %8 ], [ %6, %26 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #4
ret i32 %45
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ptr noundef, ...) local_unnamed_addr #3
declare ptr @strerror(i32 noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strlcpy(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @connect(i32 noundef, ptr 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 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 32}
!11 = !{!"ctl_info", !7, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"sockaddr_ctl", !7, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32}
!17 = !{!16, !7, i64 28}
!18 = !{!16, !7, i64 24}
!19 = !{!11, !7, i64 16}
!20 = !{!16, !7, i64 20}
!21 = !{!16, !12, i64 8}
| exploitdb_exploits_multiple_dos_extr_39378.c_ctl_open |
; ModuleID = 'AnghaBench/libgit2/tests/config/extr_validkeyname.c_test_config_validkeyname__accessing_requires_a_valid_name.c'
source_filename = "AnghaBench/libgit2/tests/config/extr_validkeyname.c_test_config_validkeyname__accessing_requires_a_valid_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"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"core.\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"d#ff.dirstat.lines\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"diff.dirstat.lines#\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"dif\0Af.dirstat.lines\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"dif.dir\0Astat.lines\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"dif.dirstat.li\0Aes\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @test_config_validkeyname__accessing_requires_a_valid_name() local_unnamed_addr #0 {
%1 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str) #2
%2 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.1) #2
%3 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.2) #2
%4 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.3) #2
%5 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.4) #2
%6 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.5) #2
%7 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.6) #2
%8 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.7) #2
%9 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.8) #2
ret void
}
declare i32 @assert_invalid_config_key_name(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/libgit2/tests/config/extr_validkeyname.c_test_config_validkeyname__accessing_requires_a_valid_name.c'
source_filename = "AnghaBench/libgit2/tests/config/extr_validkeyname.c_test_config_validkeyname__accessing_requires_a_valid_name.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
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"core.\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"d#ff.dirstat.lines\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"diff.dirstat.lines#\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"dif\0Af.dirstat.lines\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"dif.dir\0Astat.lines\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"dif.dirstat.li\0Aes\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_config_validkeyname__accessing_requires_a_valid_name() local_unnamed_addr #0 {
%1 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str) #2
%2 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.1) #2
%3 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.2) #2
%4 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.3) #2
%5 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.4) #2
%6 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.5) #2
%7 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.6) #2
%8 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.7) #2
%9 = tail call i32 @assert_invalid_config_key_name(ptr noundef nonnull @.str.8) #2
ret void
}
declare i32 @assert_invalid_config_key_name(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| libgit2_tests_config_extr_validkeyname.c_test_config_validkeyname__accessing_requires_a_valid_name |
; ModuleID = 'AnghaBench/freebsd/usr.bin/rpcgen/extr_rpc_util.c_isvectordef.c'
source_filename = "AnghaBench/freebsd/usr.bin/rpcgen/extr_rpc_util.c_isvectordef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { ptr, i32 }
@.str = private unnamed_addr constant [7 x i8] c"string\00", align 1
@defined = dso_local local_unnamed_addr global i32 0, align 4
@typedefed = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @isvectordef(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
br label %3
3: ; preds = %16, %2
%4 = phi ptr [ %18, %16 ], [ %0, %2 ]
%5 = phi i32 [ %20, %16 ], [ %1, %2 ]
br label %6
6: ; preds = %3, %6
switch i32 %5, label %6 [
i32 128, label %7
i32 130, label %21
i32 129, label %21
i32 131, label %11
]
7: ; preds = %6
%8 = tail call i32 @streq(ptr noundef %4, ptr noundef nonnull @.str) #2
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
br label %21
11: ; preds = %6
%12 = load i32, ptr @defined, align 4, !tbaa !5
%13 = load i32, ptr @typedefed, align 4, !tbaa !5
%14 = tail call i64 @FINDVAL(i32 noundef %12, ptr noundef %4, i32 noundef %13) #2
%15 = icmp eq i64 %14, 0
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = inttoptr i64 %14 to ptr
%18 = load ptr, ptr %17, align 8, !tbaa !9
%19 = getelementptr inbounds %struct.TYPE_4__, ptr %17, i64 0, i32 1
%20 = load i32, ptr %19, align 8, !tbaa !14
br label %3
21: ; preds = %6, %6, %11, %7
%22 = phi i32 [ %10, %7 ], [ 0, %11 ], [ 0, %6 ], [ 0, %6 ]
ret i32 %22
}
declare i32 @streq(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @FINDVAL(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 0}
!10 = !{!"TYPE_6__", !11, i64 0}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0, !6, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !6, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/usr.bin/rpcgen/extr_rpc_util.c_isvectordef.c'
source_filename = "AnghaBench/freebsd/usr.bin/rpcgen/extr_rpc_util.c_isvectordef.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [7 x i8] c"string\00", align 1
@defined = common local_unnamed_addr global i32 0, align 4
@typedefed = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @isvectordef(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
br label %3
3: ; preds = %16, %2
%4 = phi ptr [ %18, %16 ], [ %0, %2 ]
%5 = phi i32 [ %20, %16 ], [ %1, %2 ]
br label %6
6: ; preds = %3, %6
switch i32 %5, label %6 [
i32 128, label %7
i32 130, label %21
i32 129, label %21
i32 131, label %11
]
7: ; preds = %6
%8 = tail call i32 @streq(ptr noundef %4, ptr noundef nonnull @.str) #2
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
br label %21
11: ; preds = %6
%12 = load i32, ptr @defined, align 4, !tbaa !6
%13 = load i32, ptr @typedefed, align 4, !tbaa !6
%14 = tail call i64 @FINDVAL(i32 noundef %12, ptr noundef %4, i32 noundef %13) #2
%15 = icmp eq i64 %14, 0
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = inttoptr i64 %14 to ptr
%18 = load ptr, ptr %17, align 8, !tbaa !10
%19 = getelementptr inbounds i8, ptr %17, i64 8
%20 = load i32, ptr %19, align 8, !tbaa !15
br label %3
21: ; preds = %6, %6, %11, %7
%22 = phi i32 [ %10, %7 ], [ 0, %11 ], [ 0, %6 ], [ 0, %6 ]
ret i32 %22
}
declare i32 @streq(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @FINDVAL(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !14, i64 0}
!11 = !{!"TYPE_6__", !12, i64 0}
!12 = !{!"TYPE_5__", !13, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0, !7, i64 8}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !7, i64 8}
| freebsd_usr.bin_rpcgen_extr_rpc_util.c_isvectordef |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_DSI_VID_CFG1_RGB_SWAP.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_DSI_VID_CFG1_RGB_SWAP.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DSI_VID_CFG1_RGB_SWAP__SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@DSI_VID_CFG1_RGB_SWAP__MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @DSI_VID_CFG1_RGB_SWAP], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @DSI_VID_CFG1_RGB_SWAP(i32 noundef %0) #0 {
%2 = load i32, ptr @DSI_VID_CFG1_RGB_SWAP__SHIFT, align 4, !tbaa !5
%3 = shl i32 %0, %2
%4 = load i32, ptr @DSI_VID_CFG1_RGB_SWAP__MASK, align 4, !tbaa !5
%5 = and i32 %3, %4
ret i32 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_DSI_VID_CFG1_RGB_SWAP.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_DSI_VID_CFG1_RGB_SWAP.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DSI_VID_CFG1_RGB_SWAP__SHIFT = common local_unnamed_addr global i32 0, align 4
@DSI_VID_CFG1_RGB_SWAP__MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @DSI_VID_CFG1_RGB_SWAP], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal i32 @DSI_VID_CFG1_RGB_SWAP(i32 noundef %0) #0 {
%2 = load i32, ptr @DSI_VID_CFG1_RGB_SWAP__SHIFT, align 4, !tbaa !6
%3 = shl i32 %0, %2
%4 = load i32, ptr @DSI_VID_CFG1_RGB_SWAP__MASK, align 4, !tbaa !6
%5 = and i32 %3, %4
ret i32 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_msm_dsi_extr_dsi.xml.h_DSI_VID_CFG1_RGB_SWAP |
; ModuleID = 'AnghaBench/exploitdb/exploits/linux/local/extr_45175.c_remap_fd_over.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/local/extr_45175.c_remap_fd_over.c"
target datalayout = "e-m:e-p270:32:32-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 [13 x i8] c"[-] munmap()\00", align 1
@EXIT_FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @remap_fd_over], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @remap_fd_over(i32 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = inttoptr i64 %2 to ptr
%6 = sub i64 %3, %2
%7 = tail call i32 @munmap(ptr noundef %5, i64 noundef %6) #3
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %4
%10 = tail call i32 @perror(ptr noundef nonnull @.str) #3
%11 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !5
%12 = tail call i32 @exit(i32 noundef %11) #4
unreachable
13: ; preds = %4
%14 = tail call i32 @mmap_fd_over(i32 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #3
ret void
}
declare i32 @munmap(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @perror(ptr noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
declare i32 @mmap_fd_over(i32 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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"}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/linux/local/extr_45175.c_remap_fd_over.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/local/extr_45175.c_remap_fd_over.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"[-] munmap()\00", align 1
@EXIT_FAILURE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @remap_fd_over], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @remap_fd_over(i32 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = inttoptr i64 %2 to ptr
%6 = sub i64 %3, %2
%7 = tail call i32 @munmap(ptr noundef %5, i64 noundef %6) #3
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %4
%10 = tail call i32 @perror(ptr noundef nonnull @.str) #3
%11 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !6
%12 = tail call i32 @exit(i32 noundef %11) #4
unreachable
13: ; preds = %4
%14 = tail call i32 @mmap_fd_over(i32 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #3
ret void
}
declare i32 @munmap(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @perror(ptr noundef) local_unnamed_addr #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #2
declare i32 @mmap_fd_over(i32 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { 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"}
| exploitdb_exploits_linux_local_extr_45175.c_remap_fd_over |
; ModuleID = 'AnghaBench/freebsd/contrib/atf/atf-c/extr_tc.c_atf_tc_init.c'
source_filename = "AnghaBench/freebsd/contrib/atf/atf-c/extr_tc.c_atf_tc_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_10__ = type { ptr, i32, i32, ptr, ptr, i32 }
@.str = private unnamed_addr constant [6 x i8] c"ident\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"has.cleanup\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.3 = private unnamed_addr constant [55 x i8] c"Test case head modified the read-only 'ident' property\00", align 1
@UNREACHABLE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @atf_tc_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = tail call ptr @malloc(i32 noundef 4) #2
store ptr %7, ptr %0, align 8, !tbaa !5
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 (...) @atf_no_memory_error() #2
br label %64
11: ; preds = %6
store ptr %1, ptr %7, align 8, !tbaa !10
%12 = getelementptr inbounds %struct.TYPE_10__, ptr %7, i64 0, i32 3
store ptr %2, ptr %12, align 8, !tbaa !13
%13 = getelementptr inbounds %struct.TYPE_10__, ptr %7, i64 0, i32 5
store i32 %3, ptr %13, align 8, !tbaa !14
%14 = getelementptr inbounds %struct.TYPE_10__, ptr %7, i64 0, i32 4
store ptr %4, ptr %14, align 8, !tbaa !15
%15 = getelementptr inbounds %struct.TYPE_10__, ptr %7, i64 0, i32 1
%16 = tail call i32 @atf_map_init_charpp(ptr noundef nonnull %15, ptr noundef %5) #2
%17 = tail call i64 @atf_is_error(i32 noundef %16) #2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %64
19: ; preds = %11
%20 = load ptr, ptr %0, align 8, !tbaa !5
%21 = getelementptr inbounds %struct.TYPE_10__, ptr %20, i64 0, i32 2
%22 = tail call i32 @atf_map_init(ptr noundef nonnull %21) #2
%23 = tail call i64 @atf_is_error(i32 noundef %22) #2
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %59
25: ; preds = %19
%26 = tail call i32 @atf_tc_set_md_var(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef %1) #2
%27 = tail call i64 @atf_is_error(i32 noundef %26) #2
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %54
29: ; preds = %25
%30 = icmp eq ptr %4, null
br i1 %30, label %35, label %31
31: ; preds = %29
%32 = tail call i32 @atf_tc_set_md_var(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #2
%33 = tail call i64 @atf_is_error(i32 noundef %32) #2
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %54
35: ; preds = %31, %29
%36 = phi i32 [ %32, %31 ], [ %26, %29 ]
%37 = load ptr, ptr %0, align 8, !tbaa !5
%38 = getelementptr inbounds %struct.TYPE_10__, ptr %37, i64 0, i32 3
%39 = load ptr, ptr %38, align 8, !tbaa !13
%40 = icmp eq ptr %39, null
br i1 %40, label %43, label %41
41: ; preds = %35
%42 = tail call i32 %39(ptr noundef nonnull %0) #2
br label %43
43: ; preds = %41, %35
%44 = tail call i32 @atf_tc_get_md_var(ptr noundef nonnull %0, ptr noundef nonnull @.str) #2
%45 = tail call i64 @strcmp(i32 noundef %44, ptr noundef %1) #2
%46 = icmp eq i64 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = tail call i32 @report_fatal_error(ptr noundef nonnull @.str.3) #2
br label %49
49: ; preds = %47, %43
%50 = tail call i64 @atf_is_error(i32 noundef %36) #2
%51 = icmp eq i64 %50, 0
%52 = zext i1 %51 to i32
%53 = tail call i32 @INV(i32 noundef %52) #2
br label %64
54: ; preds = %31, %25
%55 = phi i32 [ %26, %25 ], [ %32, %31 ]
%56 = load ptr, ptr %0, align 8, !tbaa !5
%57 = getelementptr inbounds %struct.TYPE_10__, ptr %56, i64 0, i32 2
%58 = tail call i32 @atf_map_fini(ptr noundef nonnull %57) #2
br label %59
59: ; preds = %19, %54
%60 = phi i32 [ %22, %19 ], [ %55, %54 ]
%61 = load ptr, ptr %0, align 8, !tbaa !5
%62 = getelementptr inbounds %struct.TYPE_10__, ptr %61, i64 0, i32 1
%63 = tail call i32 @atf_map_fini(ptr noundef nonnull %62) #2
br label %64
64: ; preds = %9, %59, %11, %49
%65 = phi i32 [ %36, %49 ], [ %10, %9 ], [ %16, %11 ], [ %60, %59 ]
ret i32 %65
}
declare ptr @malloc(i32 noundef) local_unnamed_addr #1
declare i32 @atf_no_memory_error(...) local_unnamed_addr #1
declare i32 @atf_map_init_charpp(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @atf_is_error(i32 noundef) local_unnamed_addr #1
declare i32 @atf_map_init(ptr noundef) local_unnamed_addr #1
declare i32 @atf_tc_set_md_var(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @strcmp(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @atf_tc_get_md_var(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @report_fatal_error(ptr noundef) local_unnamed_addr #1
declare i32 @INV(i32 noundef) local_unnamed_addr #1
declare i32 @atf_map_fini(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_9__", !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_10__", !7, i64 0, !12, i64 8, !12, i64 12, !7, i64 16, !7, i64 24, !12, i64 32}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 16}
!14 = !{!11, !12, i64 32}
!15 = !{!11, !7, i64 24}
| ; ModuleID = 'AnghaBench/freebsd/contrib/atf/atf-c/extr_tc.c_atf_tc_init.c'
source_filename = "AnghaBench/freebsd/contrib/atf/atf-c/extr_tc.c_atf_tc_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [6 x i8] c"ident\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"has.cleanup\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.3 = private unnamed_addr constant [55 x i8] c"Test case head modified the read-only 'ident' property\00", align 1
@UNREACHABLE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @atf_tc_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = tail call ptr @malloc(i32 noundef 4) #2
store ptr %7, ptr %0, align 8, !tbaa !6
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @atf_no_memory_error() #2
br label %64
11: ; preds = %6
store ptr %1, ptr %7, align 8, !tbaa !11
%12 = getelementptr inbounds i8, ptr %7, i64 16
store ptr %2, ptr %12, align 8, !tbaa !14
%13 = getelementptr inbounds i8, ptr %7, i64 32
store i32 %3, ptr %13, align 8, !tbaa !15
%14 = getelementptr inbounds i8, ptr %7, i64 24
store ptr %4, ptr %14, align 8, !tbaa !16
%15 = getelementptr inbounds i8, ptr %7, i64 8
%16 = tail call i32 @atf_map_init_charpp(ptr noundef nonnull %15, ptr noundef %5) #2
%17 = tail call i64 @atf_is_error(i32 noundef %16) #2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %64
19: ; preds = %11
%20 = load ptr, ptr %0, align 8, !tbaa !6
%21 = getelementptr inbounds i8, ptr %20, i64 12
%22 = tail call i32 @atf_map_init(ptr noundef nonnull %21) #2
%23 = tail call i64 @atf_is_error(i32 noundef %22) #2
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %59
25: ; preds = %19
%26 = tail call i32 @atf_tc_set_md_var(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef %1) #2
%27 = tail call i64 @atf_is_error(i32 noundef %26) #2
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %54
29: ; preds = %25
%30 = icmp eq ptr %4, null
br i1 %30, label %35, label %31
31: ; preds = %29
%32 = tail call i32 @atf_tc_set_md_var(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #2
%33 = tail call i64 @atf_is_error(i32 noundef %32) #2
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %54
35: ; preds = %31, %29
%36 = phi i32 [ %32, %31 ], [ %26, %29 ]
%37 = load ptr, ptr %0, align 8, !tbaa !6
%38 = getelementptr inbounds i8, ptr %37, i64 16
%39 = load ptr, ptr %38, align 8, !tbaa !14
%40 = icmp eq ptr %39, null
br i1 %40, label %43, label %41
41: ; preds = %35
%42 = tail call i32 %39(ptr noundef nonnull %0) #2
br label %43
43: ; preds = %41, %35
%44 = tail call i32 @atf_tc_get_md_var(ptr noundef nonnull %0, ptr noundef nonnull @.str) #2
%45 = tail call i64 @strcmp(i32 noundef %44, ptr noundef %1) #2
%46 = icmp eq i64 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = tail call i32 @report_fatal_error(ptr noundef nonnull @.str.3) #2
br label %49
49: ; preds = %47, %43
%50 = tail call i64 @atf_is_error(i32 noundef %36) #2
%51 = icmp eq i64 %50, 0
%52 = zext i1 %51 to i32
%53 = tail call i32 @INV(i32 noundef %52) #2
br label %64
54: ; preds = %31, %25
%55 = phi i32 [ %26, %25 ], [ %32, %31 ]
%56 = load ptr, ptr %0, align 8, !tbaa !6
%57 = getelementptr inbounds i8, ptr %56, i64 12
%58 = tail call i32 @atf_map_fini(ptr noundef nonnull %57) #2
br label %59
59: ; preds = %19, %54
%60 = phi i32 [ %22, %19 ], [ %55, %54 ]
%61 = load ptr, ptr %0, align 8, !tbaa !6
%62 = getelementptr inbounds i8, ptr %61, i64 8
%63 = tail call i32 @atf_map_fini(ptr noundef nonnull %62) #2
br label %64
64: ; preds = %9, %59, %11, %49
%65 = phi i32 [ %36, %49 ], [ %10, %9 ], [ %16, %11 ], [ %60, %59 ]
ret i32 %65
}
declare ptr @malloc(i32 noundef) local_unnamed_addr #1
declare i32 @atf_no_memory_error(...) local_unnamed_addr #1
declare i32 @atf_map_init_charpp(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @atf_is_error(i32 noundef) local_unnamed_addr #1
declare i32 @atf_map_init(ptr noundef) local_unnamed_addr #1
declare i32 @atf_tc_set_md_var(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i64 @strcmp(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @atf_tc_get_md_var(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @report_fatal_error(ptr noundef) local_unnamed_addr #1
declare i32 @INV(i32 noundef) local_unnamed_addr #1
declare i32 @atf_map_fini(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_9__", !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_10__", !8, i64 0, !13, i64 8, !13, i64 12, !8, i64 16, !8, i64 24, !13, i64 32}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !8, i64 16}
!15 = !{!12, !13, i64 32}
!16 = !{!12, !8, i64 24}
| freebsd_contrib_atf_atf-c_extr_tc.c_atf_tc_init |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hwmon/extr_tmp401.c_tmp401_probe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hwmon/extr_tmp401.c_tmp401_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.tmp401_data = type { i32, ptr, i32 }
%struct.TYPE_4__ = type { i32 }
@.str = private unnamed_addr constant [7 x i8] c"TMP401\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"TMP411\00", align 1
@reltable.tmp401_probe = private unnamed_addr constant [2 x i32] [i32 trunc (i64 sub (i64 ptrtoint (ptr @.str to i64), i64 ptrtoint (ptr @reltable.tmp401_probe to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.1 to i64), i64 ptrtoint (ptr @reltable.tmp401_probe to i64)) to i32)], align 4
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@tmp401_attr = dso_local local_unnamed_addr global ptr null, align 8
@tmp411 = dso_local local_unnamed_addr global i32 0, align 4
@tmp411_attr = dso_local local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [21 x i8] c"Detected TI %s chip\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @tmp401_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tmp401_probe(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%4 = tail call ptr @kzalloc(i32 noundef 24, i32 noundef %3) #3
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
br label %68
9: ; preds = %2
%10 = tail call i32 @i2c_set_clientdata(ptr noundef %0, ptr noundef nonnull %4) #3
%11 = getelementptr inbounds %struct.tmp401_data, ptr %4, i64 0, i32 2
%12 = tail call i32 @mutex_init(ptr noundef nonnull %11) #3
%13 = load i32, ptr %1, align 4, !tbaa !9
store i32 %13, ptr %4, align 8, !tbaa !11
%14 = tail call i32 @tmp401_init_client(ptr noundef %0) #3
%15 = load ptr, ptr @tmp401_attr, align 8, !tbaa !14
%16 = tail call i32 @ARRAY_SIZE(ptr noundef %15) #3
%17 = icmp sgt i32 %16, 0
br i1 %17, label %24, label %30
18: ; preds = %24
%19 = add nuw nsw i64 %25, 1
%20 = load ptr, ptr @tmp401_attr, align 8, !tbaa !14
%21 = tail call i32 @ARRAY_SIZE(ptr noundef %20) #3
%22 = sext i32 %21 to i64
%23 = icmp slt i64 %19, %22
br i1 %23, label %24, label %30, !llvm.loop !15
24: ; preds = %9, %18
%25 = phi i64 [ %19, %18 ], [ 0, %9 ]
%26 = load ptr, ptr @tmp401_attr, align 8, !tbaa !14
%27 = getelementptr inbounds %struct.TYPE_4__, ptr %26, i64 %25
%28 = tail call i32 @device_create_file(ptr noundef %0, ptr noundef %27) #3
%29 = icmp eq i32 %28, 0
br i1 %29, label %18, label %65
30: ; preds = %18, %9
%31 = load i32, ptr %4, align 8, !tbaa !11
%32 = load i32, ptr @tmp411, align 4, !tbaa !5
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %50
34: ; preds = %30
%35 = load ptr, ptr @tmp411_attr, align 8, !tbaa !14
%36 = tail call i32 @ARRAY_SIZE(ptr noundef %35) #3
%37 = icmp sgt i32 %36, 0
br i1 %37, label %44, label %50
38: ; preds = %44
%39 = add nuw nsw i64 %45, 1
%40 = load ptr, ptr @tmp411_attr, align 8, !tbaa !14
%41 = tail call i32 @ARRAY_SIZE(ptr noundef %40) #3
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %39, %42
br i1 %43, label %44, label %50, !llvm.loop !17
44: ; preds = %34, %38
%45 = phi i64 [ %39, %38 ], [ 0, %34 ]
%46 = load ptr, ptr @tmp411_attr, align 8, !tbaa !14
%47 = getelementptr inbounds %struct.TYPE_4__, ptr %46, i64 %45
%48 = tail call i32 @device_create_file(ptr noundef %0, ptr noundef %47) #3
%49 = icmp eq i32 %48, 0
br i1 %49, label %38, label %65
50: ; preds = %38, %34, %30
%51 = tail call ptr @hwmon_device_register(ptr noundef %0) #3
%52 = getelementptr inbounds %struct.tmp401_data, ptr %4, i64 0, i32 1
store ptr %51, ptr %52, align 8, !tbaa !18
%53 = tail call i64 @IS_ERR(ptr noundef %51) #3
%54 = icmp eq i64 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %50
%56 = load ptr, ptr %52, align 8, !tbaa !18
%57 = tail call i32 @PTR_ERR(ptr noundef %56) #3
store ptr null, ptr %52, align 8, !tbaa !18
br label %65
58: ; preds = %50
%59 = load i32, ptr %4, align 8, !tbaa !11
%60 = add nsw i32 %59, -1
%61 = sext i32 %60 to i64
%62 = shl i64 %61, 2
%63 = call ptr @llvm.load.relative.i64(ptr @reltable.tmp401_probe, i64 %62)
%64 = tail call i32 @dev_info(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef %63) #3
br label %68
65: ; preds = %24, %44, %55
%66 = phi i32 [ %57, %55 ], [ %48, %44 ], [ %28, %24 ]
%67 = tail call i32 @tmp401_remove(ptr noundef %0) #3
br label %68
68: ; preds = %65, %58, %6
%69 = phi i32 [ %66, %65 ], [ 0, %58 ], [ %8, %6 ]
ret i32 %69
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @i2c_set_clientdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_init(ptr noundef) local_unnamed_addr #1
declare i32 @tmp401_init_client(ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(ptr noundef) local_unnamed_addr #1
declare i32 @device_create_file(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @hwmon_device_register(ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tmp401_remove(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare ptr @llvm.load.relative.i64(ptr, i64) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"i2c_device_id", !6, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"tmp401_data", !6, i64 0, !13, i64 8, !6, i64 16}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!12, !13, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/hwmon/extr_tmp401.c_tmp401_probe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/hwmon/extr_tmp401.c_tmp401_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i32 }
@.str = private unnamed_addr constant [7 x i8] c"TMP401\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"TMP411\00", align 1
@__const.tmp401_probe.names = private unnamed_addr constant [2 x ptr] [ptr @.str, ptr @.str.1], align 8
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@tmp401_attr = common local_unnamed_addr global ptr null, align 8
@tmp411 = common local_unnamed_addr global i32 0, align 4
@tmp411_attr = common local_unnamed_addr global ptr null, align 8
@.str.2 = private unnamed_addr constant [21 x i8] c"Detected TI %s chip\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @tmp401_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @tmp401_probe(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%4 = tail call ptr @kzalloc(i32 noundef 24, i32 noundef %3) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
br label %68
9: ; preds = %2
%10 = tail call i32 @i2c_set_clientdata(ptr noundef %0, ptr noundef nonnull %4) #2
%11 = getelementptr inbounds i8, ptr %4, i64 16
%12 = tail call i32 @mutex_init(ptr noundef nonnull %11) #2
%13 = load i32, ptr %1, align 4, !tbaa !10
store i32 %13, ptr %4, align 8, !tbaa !12
%14 = tail call i32 @tmp401_init_client(ptr noundef %0) #2
%15 = load ptr, ptr @tmp401_attr, align 8, !tbaa !15
%16 = tail call i32 @ARRAY_SIZE(ptr noundef %15) #2
%17 = icmp sgt i32 %16, 0
br i1 %17, label %24, label %30
18: ; preds = %24
%19 = add nuw nsw i64 %25, 1
%20 = load ptr, ptr @tmp401_attr, align 8, !tbaa !15
%21 = tail call i32 @ARRAY_SIZE(ptr noundef %20) #2
%22 = sext i32 %21 to i64
%23 = icmp slt i64 %19, %22
br i1 %23, label %24, label %30, !llvm.loop !16
24: ; preds = %9, %18
%25 = phi i64 [ %19, %18 ], [ 0, %9 ]
%26 = load ptr, ptr @tmp401_attr, align 8, !tbaa !15
%27 = getelementptr inbounds %struct.TYPE_4__, ptr %26, i64 %25
%28 = tail call i32 @device_create_file(ptr noundef %0, ptr noundef %27) #2
%29 = icmp eq i32 %28, 0
br i1 %29, label %18, label %65
30: ; preds = %18, %9
%31 = load i32, ptr %4, align 8, !tbaa !12
%32 = load i32, ptr @tmp411, align 4, !tbaa !6
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %50
34: ; preds = %30
%35 = load ptr, ptr @tmp411_attr, align 8, !tbaa !15
%36 = tail call i32 @ARRAY_SIZE(ptr noundef %35) #2
%37 = icmp sgt i32 %36, 0
br i1 %37, label %44, label %50
38: ; preds = %44
%39 = add nuw nsw i64 %45, 1
%40 = load ptr, ptr @tmp411_attr, align 8, !tbaa !15
%41 = tail call i32 @ARRAY_SIZE(ptr noundef %40) #2
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %39, %42
br i1 %43, label %44, label %50, !llvm.loop !18
44: ; preds = %34, %38
%45 = phi i64 [ %39, %38 ], [ 0, %34 ]
%46 = load ptr, ptr @tmp411_attr, align 8, !tbaa !15
%47 = getelementptr inbounds %struct.TYPE_4__, ptr %46, i64 %45
%48 = tail call i32 @device_create_file(ptr noundef %0, ptr noundef %47) #2
%49 = icmp eq i32 %48, 0
br i1 %49, label %38, label %65
50: ; preds = %38, %34, %30
%51 = tail call ptr @hwmon_device_register(ptr noundef %0) #2
%52 = getelementptr inbounds i8, ptr %4, i64 8
store ptr %51, ptr %52, align 8, !tbaa !19
%53 = tail call i64 @IS_ERR(ptr noundef %51) #2
%54 = icmp eq i64 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %50
%56 = load ptr, ptr %52, align 8, !tbaa !19
%57 = tail call i32 @PTR_ERR(ptr noundef %56) #2
store ptr null, ptr %52, align 8, !tbaa !19
br label %65
58: ; preds = %50
%59 = load i32, ptr %4, align 8, !tbaa !12
%60 = add nsw i32 %59, -1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [2 x ptr], ptr @__const.tmp401_probe.names, i64 0, i64 %61
%63 = load ptr, ptr %62, align 8, !tbaa !15
%64 = tail call i32 @dev_info(ptr noundef %0, ptr noundef nonnull @.str.2, ptr noundef %63) #2
br label %68
65: ; preds = %24, %44, %55
%66 = phi i32 [ %57, %55 ], [ %48, %44 ], [ %28, %24 ]
%67 = tail call i32 @tmp401_remove(ptr noundef %0) #2
br label %68
68: ; preds = %65, %58, %6
%69 = phi i32 [ %66, %65 ], [ 0, %58 ], [ %8, %6 ]
ret i32 %69
}
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @i2c_set_clientdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_init(ptr noundef) local_unnamed_addr #1
declare i32 @tmp401_init_client(ptr noundef) local_unnamed_addr #1
declare i32 @ARRAY_SIZE(ptr noundef) local_unnamed_addr #1
declare i32 @device_create_file(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @hwmon_device_register(ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @dev_info(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @tmp401_remove(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"i2c_device_id", !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"tmp401_data", !7, i64 0, !14, i64 8, !7, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!14, !14, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!13, !14, i64 8}
| fastsocket_kernel_drivers_hwmon_extr_tmp401.c_tmp401_probe |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/otus/hal/extr_hprw.c_zfFlushDelayWrite.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/otus/hal/extr_hprw.c_zfFlushDelayWrite.c"
target datalayout = "e-m:e-p270:32:32-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, ptr }
@ZM_MAX_CMD_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@wd = dso_local local_unnamed_addr global ptr null, align 8
@ZM_OID_INTERNAL_WRITE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @zfFlushDelayWrite(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ZM_MAX_CMD_SIZE, align 4, !tbaa !5
%3 = sdiv i32 %2, 4
%4 = zext i32 %3 to i64
%5 = alloca i32, i64 %4, align 16
%6 = tail call i32 @zmw_get_wlan_dev(ptr noundef %0) #2
%7 = load ptr, ptr @wd, align 8, !tbaa !9
%8 = load ptr, ptr %7, align 8, !tbaa !11
%9 = tail call i32 (...) @zmw_declare_for_critical_section() #2
%10 = tail call i32 @zmw_enter_critical_section(ptr noundef %0) #2
%11 = load i32, ptr %8, align 8, !tbaa !13
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %94
13: ; preds = %1
%14 = shl i32 %11, 3
%15 = add nsw i32 %14, 256
store i32 %15, ptr %5, align 16, !tbaa !5
%16 = getelementptr i32, ptr %5, i64 2
%17 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 0, i32 1
%18 = load ptr, ptr %17, align 8, !tbaa !16
%19 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 0, i32 2
%20 = load ptr, ptr %19, align 8, !tbaa !17
%21 = zext nneg i32 %11 to i64
%22 = icmp ult i32 %11, 28
br i1 %22, label %68, label %23
23: ; preds = %13
%24 = add nsw i64 %21, -1
%25 = icmp ugt i64 %24, 1073741823
%26 = getelementptr i8, ptr %5, i64 4
%27 = shl nsw i64 %24, 3
%28 = getelementptr i8, ptr %26, i64 %27
%29 = icmp ult ptr %28, %26
%30 = shl nsw i64 %24, 3
%31 = getelementptr i8, ptr %16, i64 %30
%32 = icmp ult ptr %31, %16
%33 = or i1 %29, %25
%34 = or i1 %32, %33
br i1 %34, label %68, label %35
35: ; preds = %23
%36 = shl nuw nsw i64 %21, 2
%37 = getelementptr i8, ptr %18, i64 %36
%38 = getelementptr i8, ptr %5, i64 4
%39 = shl nuw nsw i64 %21, 3
%40 = or disjoint i64 %39, 4
%41 = getelementptr i8, ptr %5, i64 %40
%42 = getelementptr i8, ptr %20, i64 %36
%43 = icmp ult ptr %18, %41
%44 = icmp ult ptr %38, %37
%45 = and i1 %43, %44
%46 = icmp ult ptr %20, %41
%47 = icmp ult ptr %38, %42
%48 = and i1 %46, %47
%49 = or i1 %45, %48
br i1 %49, label %68, label %50
50: ; preds = %35
%51 = and i64 %21, 2147483646
%52 = getelementptr i32, ptr %16, i64 -1
br label %53
53: ; preds = %53, %50
%54 = phi i64 [ 0, %50 ], [ %64, %53 ]
%55 = trunc i64 %54 to i32
%56 = getelementptr inbounds i32, ptr %18, i64 %54
%57 = load <2 x i32>, ptr %56, align 4, !tbaa !5, !alias.scope !18, !noalias !21
%58 = getelementptr inbounds i32, ptr %20, i64 %54
%59 = load <2 x i32>, ptr %58, align 4, !tbaa !5, !alias.scope !23, !noalias !21
%60 = shl i32 %55, 1
%61 = sext i32 %60 to i64
%62 = getelementptr i32, ptr %52, i64 %61
%63 = shufflevector <2 x i32> %57, <2 x i32> %59, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %63, ptr %62, align 4, !tbaa !5
%64 = add nuw i64 %54, 2
%65 = icmp eq i64 %64, %51
br i1 %65, label %66, label %53, !llvm.loop !25
66: ; preds = %53
%67 = icmp eq i64 %51, %21
br i1 %67, label %86, label %68
68: ; preds = %35, %23, %13, %66
%69 = phi i64 [ 0, %35 ], [ 0, %23 ], [ 0, %13 ], [ %51, %66 ]
br label %70
70: ; preds = %68, %70
%71 = phi i64 [ %84, %70 ], [ %69, %68 ]
%72 = getelementptr inbounds i32, ptr %18, i64 %71
%73 = load i32, ptr %72, align 4, !tbaa !5
%74 = shl i64 %71, 33
%75 = ashr exact i64 %74, 32
%76 = or disjoint i64 %75, 1
%77 = getelementptr inbounds i32, ptr %5, i64 %76
store i32 %73, ptr %77, align 4, !tbaa !5
%78 = getelementptr inbounds i32, ptr %20, i64 %71
%79 = load i32, ptr %78, align 4, !tbaa !5
%80 = trunc i64 %71 to i32
%81 = shl i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr i32, ptr %16, i64 %82
store i32 %79, ptr %83, align 8, !tbaa !5
%84 = add nuw nsw i64 %71, 1
%85 = icmp ult i64 %84, %21
br i1 %85, label %70, label %86, !llvm.loop !29
86: ; preds = %70, %66
%87 = phi i64 [ %51, %66 ], [ %84, %70 ]
%88 = trunc i64 %87 to i32
store i32 0, ptr %8, align 8, !tbaa !13
%89 = tail call i32 @zmw_leave_critical_section(ptr noundef %0) #2
%90 = shl i32 %88, 3
%91 = or disjoint i32 %90, 4
%92 = load i32, ptr @ZM_OID_INTERNAL_WRITE, align 4, !tbaa !5
%93 = call i32 @zfIssueCmd(ptr noundef %0, ptr noundef nonnull %5, i32 noundef %91, i32 noundef %92, ptr noundef null) #2
br label %96
94: ; preds = %1
%95 = tail call i32 @zmw_leave_critical_section(ptr noundef %0) #2
br label %96
96: ; preds = %94, %86
%97 = phi i32 [ 1, %86 ], [ 0, %94 ]
ret i32 %97
}
declare i32 @zmw_get_wlan_dev(ptr noundef) local_unnamed_addr #1
declare i32 @zmw_declare_for_critical_section(...) local_unnamed_addr #1
declare i32 @zmw_enter_critical_section(ptr noundef) local_unnamed_addr #1
declare i32 @zmw_leave_critical_section(ptr noundef) local_unnamed_addr #1
declare i32 @zfIssueCmd(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"TYPE_4__", !10, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"zsHpPriv", !15, i64 0}
!15 = !{!"TYPE_3__", !6, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !10, i64 16}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = !{!24}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !27}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/otus/hal/extr_hprw.c_zfFlushDelayWrite.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/otus/hal/extr_hprw.c_zfFlushDelayWrite.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ZM_MAX_CMD_SIZE = common local_unnamed_addr global i32 0, align 4
@wd = common local_unnamed_addr global ptr null, align 8
@ZM_OID_INTERNAL_WRITE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @zfFlushDelayWrite(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @ZM_MAX_CMD_SIZE, align 4, !tbaa !6
%3 = sdiv i32 %2, 4
%4 = zext i32 %3 to i64
%5 = alloca i32, i64 %4, align 4
%6 = tail call i32 @zmw_get_wlan_dev(ptr noundef %0) #2
%7 = load ptr, ptr @wd, align 8, !tbaa !10
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = tail call i32 @zmw_declare_for_critical_section() #2
%10 = tail call i32 @zmw_enter_critical_section(ptr noundef %0) #2
%11 = load i32, ptr %8, align 8, !tbaa !14
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %107
13: ; preds = %1
%14 = shl i32 %11, 3
%15 = add nsw i32 %14, 256
store i32 %15, ptr %5, align 4, !tbaa !6
%16 = getelementptr i8, ptr %5, i64 8
%17 = getelementptr inbounds i8, ptr %8, i64 8
%18 = load ptr, ptr %17, align 8, !tbaa !17
%19 = getelementptr inbounds i8, ptr %8, i64 16
%20 = load ptr, ptr %19, align 8, !tbaa !18
%21 = zext nneg i32 %11 to i64
%22 = icmp ult i32 %11, 24
br i1 %22, label %81, label %23
23: ; preds = %13
%24 = add nsw i64 %21, -1
%25 = getelementptr i8, ptr %5, i64 4
%26 = shl nsw i64 %24, 3
%27 = getelementptr i8, ptr %25, i64 %26
%28 = icmp ult ptr %27, %25
%29 = shl nsw i64 %24, 3
%30 = icmp ugt i64 %24, 2305843009213693951
%31 = getelementptr i8, ptr %16, i64 %29
%32 = icmp ult ptr %31, %16
%33 = or i1 %32, %30
%34 = and i64 %24, -3221225472
%35 = icmp ne i64 %34, 0
%36 = or i1 %28, %35
%37 = or i1 %36, %33
br i1 %37, label %81, label %38
38: ; preds = %23
%39 = shl nuw nsw i64 %21, 2
%40 = getelementptr i8, ptr %18, i64 %39
%41 = getelementptr i8, ptr %5, i64 4
%42 = shl nuw nsw i64 %21, 3
%43 = or disjoint i64 %42, 4
%44 = getelementptr i8, ptr %5, i64 %43
%45 = getelementptr i8, ptr %20, i64 %39
%46 = icmp ult ptr %18, %44
%47 = icmp ult ptr %41, %40
%48 = and i1 %46, %47
%49 = icmp ult ptr %20, %44
%50 = icmp ult ptr %41, %45
%51 = and i1 %49, %50
%52 = or i1 %48, %51
br i1 %52, label %81, label %53
53: ; preds = %38
%54 = and i64 %21, 2147483640
%55 = getelementptr i8, ptr %16, i64 -4
%56 = getelementptr i8, ptr %16, i64 -4
br label %57
57: ; preds = %57, %53
%58 = phi i64 [ 0, %53 ], [ %77, %57 ]
%59 = trunc i64 %58 to i32
%60 = getelementptr inbounds i32, ptr %18, i64 %58
%61 = getelementptr inbounds i8, ptr %60, i64 16
%62 = load <4 x i32>, ptr %60, align 4, !tbaa !6, !alias.scope !19, !noalias !22
%63 = load <4 x i32>, ptr %61, align 4, !tbaa !6, !alias.scope !19, !noalias !22
%64 = getelementptr inbounds i32, ptr %20, i64 %58
%65 = getelementptr inbounds i8, ptr %64, i64 16
%66 = load <4 x i32>, ptr %64, align 4, !tbaa !6, !alias.scope !24, !noalias !22
%67 = load <4 x i32>, ptr %65, align 4, !tbaa !6, !alias.scope !24, !noalias !22
%68 = shl i32 %59, 1
%69 = shl i32 %59, 1
%70 = or disjoint i32 %69, 8
%71 = sext i32 %68 to i64
%72 = sext i32 %70 to i64
%73 = getelementptr i32, ptr %55, i64 %71
%74 = getelementptr i32, ptr %56, i64 %72
%75 = shufflevector <4 x i32> %62, <4 x i32> %66, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
store <8 x i32> %75, ptr %73, align 4, !tbaa !6
%76 = shufflevector <4 x i32> %63, <4 x i32> %67, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
store <8 x i32> %76, ptr %74, align 4, !tbaa !6
%77 = add nuw i64 %58, 8
%78 = icmp eq i64 %77, %54
br i1 %78, label %79, label %57, !llvm.loop !26
79: ; preds = %57
%80 = icmp eq i64 %54, %21
br i1 %80, label %99, label %81
81: ; preds = %79, %38, %23, %13
%82 = phi i64 [ 0, %38 ], [ 0, %23 ], [ 0, %13 ], [ %54, %79 ]
br label %83
83: ; preds = %81, %83
%84 = phi i64 [ %97, %83 ], [ %82, %81 ]
%85 = getelementptr inbounds i32, ptr %18, i64 %84
%86 = load i32, ptr %85, align 4, !tbaa !6
%87 = shl i64 %84, 33
%88 = ashr exact i64 %87, 32
%89 = or disjoint i64 %88, 1
%90 = getelementptr inbounds i32, ptr %5, i64 %89
store i32 %86, ptr %90, align 4, !tbaa !6
%91 = getelementptr inbounds i32, ptr %20, i64 %84
%92 = load i32, ptr %91, align 4, !tbaa !6
%93 = trunc i64 %84 to i32
%94 = shl i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr i32, ptr %16, i64 %95
store i32 %92, ptr %96, align 4, !tbaa !6
%97 = add nuw nsw i64 %84, 1
%98 = icmp ult i64 %97, %21
br i1 %98, label %83, label %99, !llvm.loop !30
99: ; preds = %83, %79
%100 = phi i64 [ %54, %79 ], [ %97, %83 ]
%101 = trunc nuw nsw i64 %100 to i32
store i32 0, ptr %8, align 8, !tbaa !14
%102 = tail call i32 @zmw_leave_critical_section(ptr noundef %0) #2
%103 = shl i32 %101, 3
%104 = or disjoint i32 %103, 4
%105 = load i32, ptr @ZM_OID_INTERNAL_WRITE, align 4, !tbaa !6
%106 = call i32 @zfIssueCmd(ptr noundef %0, ptr noundef nonnull %5, i32 noundef %104, i32 noundef %105, ptr noundef null) #2
br label %109
107: ; preds = %1
%108 = tail call i32 @zmw_leave_critical_section(ptr noundef %0) #2
br label %109
109: ; preds = %107, %99
%110 = phi i32 [ 1, %99 ], [ 0, %107 ]
ret i32 %110
}
declare i32 @zmw_get_wlan_dev(ptr noundef) local_unnamed_addr #1
declare i32 @zmw_declare_for_critical_section(...) local_unnamed_addr #1
declare i32 @zmw_enter_critical_section(ptr noundef) local_unnamed_addr #1
declare i32 @zmw_leave_critical_section(ptr noundef) local_unnamed_addr #1
declare i32 @zfIssueCmd(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_4__", !11, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"zsHpPriv", !16, i64 0}
!16 = !{!"TYPE_3__", !7, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!15, !11, i64 8}
!18 = !{!15, !11, i64 16}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = !{!25}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !27, !28, !29}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !27, !28}
| fastsocket_kernel_drivers_staging_otus_hal_extr_hprw.c_zfFlushDelayWrite |
; ModuleID = 'AnghaBench/freebsd/sys/dev/vmware/vmxnet3/extr_if_vmx.c_vmxnet3_hash_maddr.c'
source_filename = "AnghaBench/freebsd/sys/dev/vmware/vmxnet3/extr_if_vmx.c_vmxnet3_hash_maddr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@VMXNET3_MULTICAST_MAX = dso_local local_unnamed_addr global i64 0, align 8
@ETHER_ADDR_LEN = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @vmxnet3_hash_maddr], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i64 @vmxnet3_hash_maddr(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = load i64, ptr @VMXNET3_MULTICAST_MAX, align 8, !tbaa !5
%5 = icmp ugt i64 %4, %2
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = tail call i32 @LLADDR(ptr noundef %1) #2
%8 = load ptr, ptr %0, align 8, !tbaa !9
%9 = load i64, ptr @ETHER_ADDR_LEN, align 8, !tbaa !5
%10 = mul i64 %9, %2
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = tail call i32 @bcopy(i32 noundef %7, ptr noundef %11, i64 noundef %9) #2
br label %13
13: ; preds = %6, %3
ret i64 1
}
declare i32 @bcopy(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @LLADDR(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, !11, i64 0}
!10 = !{!"vmxnet3_softc", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/vmware/vmxnet3/extr_if_vmx.c_vmxnet3_hash_maddr.c'
source_filename = "AnghaBench/freebsd/sys/dev/vmware/vmxnet3/extr_if_vmx.c_vmxnet3_hash_maddr.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VMXNET3_MULTICAST_MAX = common local_unnamed_addr global i64 0, align 8
@ETHER_ADDR_LEN = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @vmxnet3_hash_maddr], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i64 @vmxnet3_hash_maddr(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = load i64, ptr @VMXNET3_MULTICAST_MAX, align 8, !tbaa !6
%5 = icmp ugt i64 %4, %2
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = tail call i32 @LLADDR(ptr noundef %1) #2
%8 = load ptr, ptr %0, align 8, !tbaa !10
%9 = load i64, ptr @ETHER_ADDR_LEN, align 8, !tbaa !6
%10 = mul i64 %9, %2
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = tail call i32 @bcopy(i32 noundef %7, ptr noundef %11, i64 noundef %9) #2
br label %13
13: ; preds = %6, %3
ret i64 1
}
declare i32 @bcopy(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @LLADDR(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, !12, i64 0}
!11 = !{!"vmxnet3_softc", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| freebsd_sys_dev_vmware_vmxnet3_extr_if_vmx.c_vmxnet3_hash_maddr |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/input/misc/extr_cm109.c_report_key.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/input/misc/extr_cm109.c_report_key.c"
target datalayout = "e-m:e-p270:32:32-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.cm109_dev = type { i32, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @report_key], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @report_key(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds %struct.cm109_dev, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %0, align 8, !tbaa !11
%6 = icmp sgt i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @input_report_key(ptr noundef %4, i32 noundef %5, i32 noundef 0) #2
br label %9
9: ; preds = %7, %2
store i32 %1, ptr %0, align 8, !tbaa !11
%10 = icmp sgt i32 %1, -1
br i1 %10, label %11, label %13
11: ; preds = %9
%12 = tail call i32 @input_report_key(ptr noundef %4, i32 noundef %1, i32 noundef 1) #2
br label %13
13: ; preds = %11, %9
%14 = tail call i32 @input_sync(ptr noundef %4) #2
ret void
}
declare i32 @input_report_key(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_sync(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"cm109_dev", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/input/misc/extr_cm109.c_report_key.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/input/misc/extr_cm109.c_report_key.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 @report_key], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @report_key(ptr nocapture noundef %0, i32 noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %0, align 8, !tbaa !12
%6 = icmp sgt i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @input_report_key(ptr noundef %4, i32 noundef %5, i32 noundef 0) #2
br label %9
9: ; preds = %7, %2
store i32 %1, ptr %0, align 8, !tbaa !12
%10 = icmp sgt i32 %1, -1
br i1 %10, label %11, label %13
11: ; preds = %9
%12 = tail call i32 @input_report_key(ptr noundef %4, i32 noundef %1, i32 noundef 1) #2
br label %13
13: ; preds = %11, %9
%14 = tail call i32 @input_sync(ptr noundef %4) #2
ret void
}
declare i32 @input_report_key(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @input_sync(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"cm109_dev", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 0}
| fastsocket_kernel_drivers_input_misc_extr_cm109.c_report_key |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_attr.c_lpfc_soft_wwnn_show.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_attr.c_lpfc_soft_wwnn_show.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @lpfc_soft_wwnn_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @lpfc_soft_wwnn_show(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @class_to_shost(ptr noundef %0) #2
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = inttoptr i64 %5 to ptr
%7 = load ptr, ptr %6, align 8, !tbaa !10
%8 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !13
%9 = load i64, ptr %7, align 8, !tbaa !15
%10 = tail call i32 @snprintf(ptr noundef %2, i32 noundef %8, ptr noundef nonnull @.str, i64 noundef %9) #2
ret i32 %10
}
declare ptr @class_to_shost(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"Scsi_Host", !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 = !{!"lpfc_vport", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"lpfc_hba", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_attr.c_lpfc_soft_wwnn_show.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/lpfc/extr_lpfc_attr.c_lpfc_soft_wwnn_show.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_SIZE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"0x%llx\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @lpfc_soft_wwnn_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @lpfc_soft_wwnn_show(ptr noundef %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = tail call ptr @class_to_shost(ptr noundef %0) #2
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = inttoptr i64 %5 to ptr
%7 = load ptr, ptr %6, align 8, !tbaa !11
%8 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !14
%9 = load i64, ptr %7, align 8, !tbaa !16
%10 = tail call i32 @snprintf(ptr noundef %2, i32 noundef %8, ptr noundef nonnull @.str, i64 noundef %9) #2
ret i32 %10
}
declare ptr @class_to_shost(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"Scsi_Host", !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 = !{!"lpfc_vport", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"lpfc_hba", !8, i64 0}
| fastsocket_kernel_drivers_scsi_lpfc_extr_lpfc_attr.c_lpfc_soft_wwnn_show |
; ModuleID = 'AnghaBench/libgit2/src/extr_path.c_git_path_dirname_r.c'
source_filename = "AnghaBench/libgit2/src/extr_path.c_git_path_dirname_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@INT_MAX = dso_local local_unnamed_addr global i32 0, align 4
@GIT_ERROR_INVALID = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"path too long\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @git_path_dirname_r(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %70, label %4
4: ; preds = %2
%5 = load i8, ptr %1, align 1, !tbaa !5
%6 = icmp eq i8 %5, 0
br i1 %6, label %70, label %7
7: ; preds = %4
%8 = tail call i32 @strlen(ptr noundef nonnull %1) #2
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %1, i64 %9
br label %11
11: ; preds = %15, %7
%12 = phi ptr [ %10, %7 ], [ %13, %15 ]
%13 = getelementptr inbounds i8, ptr %12, i64 -1
%14 = icmp ugt ptr %13, %1
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i8, ptr %13, align 1, !tbaa !5
%17 = icmp eq i8 %16, 47
br i1 %17, label %11, label %18, !llvm.loop !8
18: ; preds = %11, %15
%19 = ptrtoint ptr %13 to i64
%20 = ptrtoint ptr %1 to i64
%21 = sub i64 %19, %20
%22 = load i32, ptr @INT_MAX, align 4, !tbaa !10
%23 = sext i32 %22 to i64
%24 = icmp slt i64 %21, %23
br i1 %24, label %28, label %25
25: ; preds = %18
%26 = load i32, ptr @GIT_ERROR_INVALID, align 4, !tbaa !10
%27 = tail call i32 @git_error_set(i32 noundef %26, ptr noundef nonnull @.str.1) #2
br label %70
28: ; preds = %18
%29 = trunc i64 %21 to i32
%30 = add i32 %29, 1
%31 = tail call i32 @win32_prefix_length(ptr noundef nonnull %1, i32 noundef %30) #2
%32 = icmp sgt i32 %31, 0
br i1 %32, label %70, label %33
33: ; preds = %28
br i1 %14, label %34, label %41
34: ; preds = %33, %38
%35 = phi ptr [ %39, %38 ], [ %13, %33 ]
%36 = load i8, ptr %35, align 1, !tbaa !5
%37 = icmp eq i8 %36, 47
br i1 %37, label %41, label %38
38: ; preds = %34
%39 = getelementptr inbounds i8, ptr %35, i64 -1
%40 = icmp ugt ptr %39, %1
br i1 %40, label %34, label %44, !llvm.loop !12
41: ; preds = %34, %33
%42 = phi ptr [ %13, %33 ], [ %35, %34 ]
%43 = icmp eq ptr %42, %1
br i1 %43, label %44, label %48
44: ; preds = %38, %41
%45 = load i8, ptr %1, align 1, !tbaa !5
%46 = icmp eq i8 %45, 47
%47 = select i1 %46, ptr @.str.2, ptr @.str
br label %70
48: ; preds = %41, %52
%49 = phi ptr [ %50, %52 ], [ %42, %41 ]
%50 = getelementptr inbounds i8, ptr %49, i64 -1
%51 = icmp ugt ptr %50, %1
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i8, ptr %50, align 1, !tbaa !5
%54 = icmp eq i8 %53, 47
br i1 %54, label %48, label %55, !llvm.loop !13
55: ; preds = %48, %52
%56 = ptrtoint ptr %50 to i64
%57 = sub i64 %56, %20
%58 = load i32, ptr @INT_MAX, align 4, !tbaa !10
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %57, %59
br i1 %60, label %64, label %61
61: ; preds = %55
%62 = load i32, ptr @GIT_ERROR_INVALID, align 4, !tbaa !10
%63 = tail call i32 @git_error_set(i32 noundef %62, ptr noundef nonnull @.str.1) #2
br label %70
64: ; preds = %55
%65 = trunc i64 %57 to i32
%66 = add i32 %65, 1
%67 = tail call i32 @win32_prefix_length(ptr noundef nonnull %1, i32 noundef %66) #2
%68 = icmp slt i32 %67, 1
%69 = select i1 %68, i32 %66, i32 %67
br label %70
70: ; preds = %64, %28, %2, %4, %61, %44, %25
%71 = phi ptr [ %1, %25 ], [ %47, %44 ], [ %1, %61 ], [ @.str, %4 ], [ @.str, %2 ], [ %1, %28 ], [ %1, %64 ]
%72 = phi i1 [ true, %25 ], [ true, %44 ], [ true, %61 ], [ true, %4 ], [ true, %2 ], [ false, %28 ], [ %68, %64 ]
%73 = phi i32 [ -1, %25 ], [ 1, %44 ], [ -1, %61 ], [ 1, %4 ], [ 1, %2 ], [ %31, %28 ], [ %69, %64 ]
%74 = icmp eq ptr %0, null
br i1 %74, label %82, label %75
75: ; preds = %70
%76 = tail call i64 @git_buf_set(ptr noundef nonnull %0, ptr noundef nonnull %71, i32 noundef %73) #2
%77 = icmp slt i64 %76, 0
br i1 %77, label %83, label %78
78: ; preds = %75
br i1 %72, label %82, label %79
79: ; preds = %78
%80 = tail call i64 @git_buf_putc(ptr noundef nonnull %0, i8 noundef signext 47) #2
%81 = icmp slt i64 %80, 0
br i1 %81, label %83, label %82
82: ; preds = %78, %79, %70
br label %83
83: ; preds = %79, %75, %82
%84 = phi i32 [ %73, %82 ], [ -1, %75 ], [ -1, %79 ]
ret i32 %84
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare i32 @git_error_set(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @win32_prefix_length(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @git_buf_set(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @git_buf_putc(ptr noundef, i8 noundef signext) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !9}
!13 = distinct !{!13, !9}
| ; ModuleID = 'AnghaBench/libgit2/src/extr_path.c_git_path_dirname_r.c'
source_filename = "AnghaBench/libgit2/src/extr_path.c_git_path_dirname_r.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@INT_MAX = common local_unnamed_addr global i32 0, align 4
@GIT_ERROR_INVALID = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"path too long\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @git_path_dirname_r(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %70, label %4
4: ; preds = %2
%5 = load i8, ptr %1, align 1, !tbaa !6
%6 = icmp eq i8 %5, 0
br i1 %6, label %70, label %7
7: ; preds = %4
%8 = tail call i32 @strlen(ptr noundef nonnull %1) #2
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %1, i64 %9
br label %11
11: ; preds = %15, %7
%12 = phi ptr [ %10, %7 ], [ %13, %15 ]
%13 = getelementptr inbounds i8, ptr %12, i64 -1
%14 = icmp ugt ptr %13, %1
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i8, ptr %13, align 1, !tbaa !6
%17 = icmp eq i8 %16, 47
br i1 %17, label %11, label %18, !llvm.loop !9
18: ; preds = %11, %15
%19 = ptrtoint ptr %13 to i64
%20 = ptrtoint ptr %1 to i64
%21 = sub i64 %19, %20
%22 = load i32, ptr @INT_MAX, align 4, !tbaa !11
%23 = sext i32 %22 to i64
%24 = icmp slt i64 %21, %23
br i1 %24, label %28, label %25
25: ; preds = %18
%26 = load i32, ptr @GIT_ERROR_INVALID, align 4, !tbaa !11
%27 = tail call i32 @git_error_set(i32 noundef %26, ptr noundef nonnull @.str.1) #2
br label %70
28: ; preds = %18
%29 = trunc i64 %21 to i32
%30 = add i32 %29, 1
%31 = tail call i32 @win32_prefix_length(ptr noundef nonnull %1, i32 noundef %30) #2
%32 = icmp sgt i32 %31, 0
br i1 %32, label %70, label %33
33: ; preds = %28
br i1 %14, label %34, label %41
34: ; preds = %33, %38
%35 = phi ptr [ %39, %38 ], [ %13, %33 ]
%36 = load i8, ptr %35, align 1, !tbaa !6
%37 = icmp eq i8 %36, 47
br i1 %37, label %41, label %38
38: ; preds = %34
%39 = getelementptr inbounds i8, ptr %35, i64 -1
%40 = icmp ugt ptr %39, %1
br i1 %40, label %34, label %44, !llvm.loop !13
41: ; preds = %34, %33
%42 = phi ptr [ %13, %33 ], [ %35, %34 ]
%43 = icmp eq ptr %42, %1
br i1 %43, label %44, label %48
44: ; preds = %38, %41
%45 = load i8, ptr %1, align 1, !tbaa !6
%46 = icmp eq i8 %45, 47
%47 = select i1 %46, ptr @.str.2, ptr @.str
br label %70
48: ; preds = %41, %52
%49 = phi ptr [ %50, %52 ], [ %42, %41 ]
%50 = getelementptr inbounds i8, ptr %49, i64 -1
%51 = icmp ugt ptr %50, %1
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i8, ptr %50, align 1, !tbaa !6
%54 = icmp eq i8 %53, 47
br i1 %54, label %48, label %55, !llvm.loop !14
55: ; preds = %48, %52
%56 = ptrtoint ptr %50 to i64
%57 = sub i64 %56, %20
%58 = load i32, ptr @INT_MAX, align 4, !tbaa !11
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %57, %59
br i1 %60, label %64, label %61
61: ; preds = %55
%62 = load i32, ptr @GIT_ERROR_INVALID, align 4, !tbaa !11
%63 = tail call i32 @git_error_set(i32 noundef %62, ptr noundef nonnull @.str.1) #2
br label %70
64: ; preds = %55
%65 = trunc i64 %57 to i32
%66 = add i32 %65, 1
%67 = tail call i32 @win32_prefix_length(ptr noundef nonnull %1, i32 noundef %66) #2
%68 = icmp slt i32 %67, 1
%69 = select i1 %68, i32 %66, i32 %67
br label %70
70: ; preds = %64, %28, %2, %4, %61, %44, %25
%71 = phi ptr [ %1, %25 ], [ %47, %44 ], [ %1, %61 ], [ @.str, %4 ], [ @.str, %2 ], [ %1, %28 ], [ %1, %64 ]
%72 = phi i1 [ true, %25 ], [ true, %44 ], [ true, %61 ], [ true, %4 ], [ true, %2 ], [ false, %28 ], [ %68, %64 ]
%73 = phi i32 [ -1, %25 ], [ 1, %44 ], [ -1, %61 ], [ 1, %4 ], [ 1, %2 ], [ %31, %28 ], [ %69, %64 ]
%74 = icmp eq ptr %0, null
br i1 %74, label %82, label %75
75: ; preds = %70
%76 = tail call i64 @git_buf_set(ptr noundef nonnull %0, ptr noundef nonnull %71, i32 noundef %73) #2
%77 = icmp slt i64 %76, 0
br i1 %77, label %83, label %78
78: ; preds = %75
br i1 %72, label %82, label %79
79: ; preds = %78
%80 = tail call i64 @git_buf_putc(ptr noundef nonnull %0, i8 noundef signext 47) #2
%81 = icmp slt i64 %80, 0
br i1 %81, label %83, label %82
82: ; preds = %78, %79, %70
br label %83
83: ; preds = %79, %75, %82
%84 = phi i32 [ %73, %82 ], [ -1, %75 ], [ -1, %79 ]
ret i32 %84
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare i32 @git_error_set(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @win32_prefix_length(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @git_buf_set(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @git_buf_putc(ptr noundef, i8 noundef signext) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
| libgit2_src_extr_path.c_git_path_dirname_r |
; ModuleID = 'AnghaBench/linux/arch/x86/kvm/vmx/extr_nested.c_sync_vmcs02_to_vmcs12_rare.c'
source_filename = "AnghaBench/linux/arch/x86/kvm/vmx/extr_nested.c_sync_vmcs02_to_vmcs12_rare.c"
target datalayout = "e-m:e-p270:32:32-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.vmcs12 = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
@GUEST_ES_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_CS_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_SS_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_DS_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_FS_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_GS_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_TR_SELECTOR = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_ES_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_CS_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_SS_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_DS_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_FS_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_GS_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_TR_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_GDTR_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_IDTR_LIMIT = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_ES_AR_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_DS_AR_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_FS_AR_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_GS_AR_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_AR_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_TR_AR_BYTES = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_ES_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_CS_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_SS_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_DS_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_FS_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_GS_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_TR_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_GDTR_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_IDTR_BASE = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_PENDING_DBG_EXCEPTIONS = dso_local local_unnamed_addr global i32 0, align 4
@GUEST_BNDCFGS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sync_vmcs02_to_vmcs12_rare], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @sync_vmcs02_to_vmcs12_rare(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = tail call ptr @to_vmx(ptr noundef %0) #2
%4 = load i32, ptr @GUEST_ES_SELECTOR, align 4, !tbaa !5
%5 = tail call ptr @vmcs_read16(i32 noundef %4) #2
%6 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 35
store ptr %5, ptr %6, align 8, !tbaa !9
%7 = load i32, ptr @GUEST_CS_SELECTOR, align 4, !tbaa !5
%8 = tail call ptr @vmcs_read16(i32 noundef %7) #2
%9 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 34
store ptr %8, ptr %9, align 8, !tbaa !12
%10 = load i32, ptr @GUEST_SS_SELECTOR, align 4, !tbaa !5
%11 = tail call ptr @vmcs_read16(i32 noundef %10) #2
%12 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 33
store ptr %11, ptr %12, align 8, !tbaa !13
%13 = load i32, ptr @GUEST_DS_SELECTOR, align 4, !tbaa !5
%14 = tail call ptr @vmcs_read16(i32 noundef %13) #2
%15 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 32
store ptr %14, ptr %15, align 8, !tbaa !14
%16 = load i32, ptr @GUEST_FS_SELECTOR, align 4, !tbaa !5
%17 = tail call ptr @vmcs_read16(i32 noundef %16) #2
%18 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 31
store ptr %17, ptr %18, align 8, !tbaa !15
%19 = load i32, ptr @GUEST_GS_SELECTOR, align 4, !tbaa !5
%20 = tail call ptr @vmcs_read16(i32 noundef %19) #2
%21 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 30
store ptr %20, ptr %21, align 8, !tbaa !16
%22 = load i32, ptr @GUEST_LDTR_SELECTOR, align 4, !tbaa !5
%23 = tail call ptr @vmcs_read16(i32 noundef %22) #2
%24 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 29
store ptr %23, ptr %24, align 8, !tbaa !17
%25 = load i32, ptr @GUEST_TR_SELECTOR, align 4, !tbaa !5
%26 = tail call ptr @vmcs_read16(i32 noundef %25) #2
%27 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 28
store ptr %26, ptr %27, align 8, !tbaa !18
%28 = load i32, ptr @GUEST_ES_LIMIT, align 4, !tbaa !5
%29 = tail call ptr @vmcs_read32(i32 noundef %28) #2
%30 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 27
store ptr %29, ptr %30, align 8, !tbaa !19
%31 = load i32, ptr @GUEST_CS_LIMIT, align 4, !tbaa !5
%32 = tail call ptr @vmcs_read32(i32 noundef %31) #2
%33 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 26
store ptr %32, ptr %33, align 8, !tbaa !20
%34 = load i32, ptr @GUEST_SS_LIMIT, align 4, !tbaa !5
%35 = tail call ptr @vmcs_read32(i32 noundef %34) #2
%36 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 25
store ptr %35, ptr %36, align 8, !tbaa !21
%37 = load i32, ptr @GUEST_DS_LIMIT, align 4, !tbaa !5
%38 = tail call ptr @vmcs_read32(i32 noundef %37) #2
%39 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 24
store ptr %38, ptr %39, align 8, !tbaa !22
%40 = load i32, ptr @GUEST_FS_LIMIT, align 4, !tbaa !5
%41 = tail call ptr @vmcs_read32(i32 noundef %40) #2
%42 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 23
store ptr %41, ptr %42, align 8, !tbaa !23
%43 = load i32, ptr @GUEST_GS_LIMIT, align 4, !tbaa !5
%44 = tail call ptr @vmcs_read32(i32 noundef %43) #2
%45 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 22
store ptr %44, ptr %45, align 8, !tbaa !24
%46 = load i32, ptr @GUEST_LDTR_LIMIT, align 4, !tbaa !5
%47 = tail call ptr @vmcs_read32(i32 noundef %46) #2
%48 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 21
store ptr %47, ptr %48, align 8, !tbaa !25
%49 = load i32, ptr @GUEST_TR_LIMIT, align 4, !tbaa !5
%50 = tail call ptr @vmcs_read32(i32 noundef %49) #2
%51 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 20
store ptr %50, ptr %51, align 8, !tbaa !26
%52 = load i32, ptr @GUEST_GDTR_LIMIT, align 4, !tbaa !5
%53 = tail call ptr @vmcs_read32(i32 noundef %52) #2
%54 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 19
store ptr %53, ptr %54, align 8, !tbaa !27
%55 = load i32, ptr @GUEST_IDTR_LIMIT, align 4, !tbaa !5
%56 = tail call ptr @vmcs_read32(i32 noundef %55) #2
%57 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 18
store ptr %56, ptr %57, align 8, !tbaa !28
%58 = load i32, ptr @GUEST_ES_AR_BYTES, align 4, !tbaa !5
%59 = tail call ptr @vmcs_read32(i32 noundef %58) #2
%60 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 17
store ptr %59, ptr %60, align 8, !tbaa !29
%61 = load i32, ptr @GUEST_DS_AR_BYTES, align 4, !tbaa !5
%62 = tail call ptr @vmcs_read32(i32 noundef %61) #2
%63 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 16
store ptr %62, ptr %63, align 8, !tbaa !30
%64 = load i32, ptr @GUEST_FS_AR_BYTES, align 4, !tbaa !5
%65 = tail call ptr @vmcs_read32(i32 noundef %64) #2
%66 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 15
store ptr %65, ptr %66, align 8, !tbaa !31
%67 = load i32, ptr @GUEST_GS_AR_BYTES, align 4, !tbaa !5
%68 = tail call ptr @vmcs_read32(i32 noundef %67) #2
%69 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 14
store ptr %68, ptr %69, align 8, !tbaa !32
%70 = load i32, ptr @GUEST_LDTR_AR_BYTES, align 4, !tbaa !5
%71 = tail call ptr @vmcs_read32(i32 noundef %70) #2
%72 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 13
store ptr %71, ptr %72, align 8, !tbaa !33
%73 = load i32, ptr @GUEST_TR_AR_BYTES, align 4, !tbaa !5
%74 = tail call ptr @vmcs_read32(i32 noundef %73) #2
%75 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 12
store ptr %74, ptr %75, align 8, !tbaa !34
%76 = load i32, ptr @GUEST_ES_BASE, align 4, !tbaa !5
%77 = tail call ptr @vmcs_readl(i32 noundef %76) #2
%78 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 11
store ptr %77, ptr %78, align 8, !tbaa !35
%79 = load i32, ptr @GUEST_CS_BASE, align 4, !tbaa !5
%80 = tail call ptr @vmcs_readl(i32 noundef %79) #2
%81 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 10
store ptr %80, ptr %81, align 8, !tbaa !36
%82 = load i32, ptr @GUEST_SS_BASE, align 4, !tbaa !5
%83 = tail call ptr @vmcs_readl(i32 noundef %82) #2
%84 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 9
store ptr %83, ptr %84, align 8, !tbaa !37
%85 = load i32, ptr @GUEST_DS_BASE, align 4, !tbaa !5
%86 = tail call ptr @vmcs_readl(i32 noundef %85) #2
%87 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 8
store ptr %86, ptr %87, align 8, !tbaa !38
%88 = load i32, ptr @GUEST_FS_BASE, align 4, !tbaa !5
%89 = tail call ptr @vmcs_readl(i32 noundef %88) #2
%90 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 7
store ptr %89, ptr %90, align 8, !tbaa !39
%91 = load i32, ptr @GUEST_GS_BASE, align 4, !tbaa !5
%92 = tail call ptr @vmcs_readl(i32 noundef %91) #2
%93 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 6
store ptr %92, ptr %93, align 8, !tbaa !40
%94 = load i32, ptr @GUEST_LDTR_BASE, align 4, !tbaa !5
%95 = tail call ptr @vmcs_readl(i32 noundef %94) #2
%96 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 5
store ptr %95, ptr %96, align 8, !tbaa !41
%97 = load i32, ptr @GUEST_TR_BASE, align 4, !tbaa !5
%98 = tail call ptr @vmcs_readl(i32 noundef %97) #2
%99 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 4
store ptr %98, ptr %99, align 8, !tbaa !42
%100 = load i32, ptr @GUEST_GDTR_BASE, align 4, !tbaa !5
%101 = tail call ptr @vmcs_readl(i32 noundef %100) #2
%102 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 3
store ptr %101, ptr %102, align 8, !tbaa !43
%103 = load i32, ptr @GUEST_IDTR_BASE, align 4, !tbaa !5
%104 = tail call ptr @vmcs_readl(i32 noundef %103) #2
%105 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 2
store ptr %104, ptr %105, align 8, !tbaa !44
%106 = load i32, ptr @GUEST_PENDING_DBG_EXCEPTIONS, align 4, !tbaa !5
%107 = tail call ptr @vmcs_readl(i32 noundef %106) #2
%108 = getelementptr inbounds %struct.vmcs12, ptr %1, i64 0, i32 1
store ptr %107, ptr %108, align 8, !tbaa !45
%109 = tail call i64 (...) @kvm_mpx_supported() #2
%110 = icmp eq i64 %109, 0
br i1 %110, label %114, label %111
111: ; preds = %2
%112 = load i32, ptr @GUEST_BNDCFGS, align 4, !tbaa !5
%113 = tail call i32 @vmcs_read64(i32 noundef %112) #2
store i32 %113, ptr %1, align 8, !tbaa !46
br label %114
114: ; preds = %111, %2
store i32 0, ptr %3, align 4, !tbaa !47
ret void
}
declare ptr @to_vmx(ptr noundef) local_unnamed_addr #1
declare ptr @vmcs_read16(i32 noundef) local_unnamed_addr #1
declare ptr @vmcs_read32(i32 noundef) local_unnamed_addr #1
declare ptr @vmcs_readl(i32 noundef) local_unnamed_addr #1
declare i64 @kvm_mpx_supported(...) local_unnamed_addr #1
declare i32 @vmcs_read64(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 280}
!10 = !{!"vmcs12", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 272}
!13 = !{!10, !11, i64 264}
!14 = !{!10, !11, i64 256}
!15 = !{!10, !11, i64 248}
!16 = !{!10, !11, i64 240}
!17 = !{!10, !11, i64 232}
!18 = !{!10, !11, i64 224}
!19 = !{!10, !11, i64 216}
!20 = !{!10, !11, i64 208}
!21 = !{!10, !11, i64 200}
!22 = !{!10, !11, i64 192}
!23 = !{!10, !11, i64 184}
!24 = !{!10, !11, i64 176}
!25 = !{!10, !11, i64 168}
!26 = !{!10, !11, i64 160}
!27 = !{!10, !11, i64 152}
!28 = !{!10, !11, i64 144}
!29 = !{!10, !11, i64 136}
!30 = !{!10, !11, i64 128}
!31 = !{!10, !11, i64 120}
!32 = !{!10, !11, i64 112}
!33 = !{!10, !11, i64 104}
!34 = !{!10, !11, i64 96}
!35 = !{!10, !11, i64 88}
!36 = !{!10, !11, i64 80}
!37 = !{!10, !11, i64 72}
!38 = !{!10, !11, i64 64}
!39 = !{!10, !11, i64 56}
!40 = !{!10, !11, i64 48}
!41 = !{!10, !11, i64 40}
!42 = !{!10, !11, i64 32}
!43 = !{!10, !11, i64 24}
!44 = !{!10, !11, i64 16}
!45 = !{!10, !11, i64 8}
!46 = !{!10, !6, i64 0}
!47 = !{!48, !6, i64 0}
!48 = !{!"vcpu_vmx", !49, i64 0}
!49 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/arch/x86/kvm/vmx/extr_nested.c_sync_vmcs02_to_vmcs12_rare.c'
source_filename = "AnghaBench/linux/arch/x86/kvm/vmx/extr_nested.c_sync_vmcs02_to_vmcs12_rare.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GUEST_ES_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_CS_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_SS_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_DS_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_FS_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_GS_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_TR_SELECTOR = common local_unnamed_addr global i32 0, align 4
@GUEST_ES_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_CS_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_SS_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_DS_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_FS_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_GS_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_TR_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_GDTR_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_IDTR_LIMIT = common local_unnamed_addr global i32 0, align 4
@GUEST_ES_AR_BYTES = common local_unnamed_addr global i32 0, align 4
@GUEST_DS_AR_BYTES = common local_unnamed_addr global i32 0, align 4
@GUEST_FS_AR_BYTES = common local_unnamed_addr global i32 0, align 4
@GUEST_GS_AR_BYTES = common local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_AR_BYTES = common local_unnamed_addr global i32 0, align 4
@GUEST_TR_AR_BYTES = common local_unnamed_addr global i32 0, align 4
@GUEST_ES_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_CS_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_SS_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_DS_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_FS_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_GS_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_LDTR_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_TR_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_GDTR_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_IDTR_BASE = common local_unnamed_addr global i32 0, align 4
@GUEST_PENDING_DBG_EXCEPTIONS = common local_unnamed_addr global i32 0, align 4
@GUEST_BNDCFGS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sync_vmcs02_to_vmcs12_rare], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @sync_vmcs02_to_vmcs12_rare(ptr noundef %0, ptr nocapture noundef writeonly %1) #0 {
%3 = tail call ptr @to_vmx(ptr noundef %0) #2
%4 = load i32, ptr @GUEST_ES_SELECTOR, align 4, !tbaa !6
%5 = tail call ptr @vmcs_read16(i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %1, i64 280
store ptr %5, ptr %6, align 8, !tbaa !10
%7 = load i32, ptr @GUEST_CS_SELECTOR, align 4, !tbaa !6
%8 = tail call ptr @vmcs_read16(i32 noundef %7) #2
%9 = getelementptr inbounds i8, ptr %1, i64 272
store ptr %8, ptr %9, align 8, !tbaa !13
%10 = load i32, ptr @GUEST_SS_SELECTOR, align 4, !tbaa !6
%11 = tail call ptr @vmcs_read16(i32 noundef %10) #2
%12 = getelementptr inbounds i8, ptr %1, i64 264
store ptr %11, ptr %12, align 8, !tbaa !14
%13 = load i32, ptr @GUEST_DS_SELECTOR, align 4, !tbaa !6
%14 = tail call ptr @vmcs_read16(i32 noundef %13) #2
%15 = getelementptr inbounds i8, ptr %1, i64 256
store ptr %14, ptr %15, align 8, !tbaa !15
%16 = load i32, ptr @GUEST_FS_SELECTOR, align 4, !tbaa !6
%17 = tail call ptr @vmcs_read16(i32 noundef %16) #2
%18 = getelementptr inbounds i8, ptr %1, i64 248
store ptr %17, ptr %18, align 8, !tbaa !16
%19 = load i32, ptr @GUEST_GS_SELECTOR, align 4, !tbaa !6
%20 = tail call ptr @vmcs_read16(i32 noundef %19) #2
%21 = getelementptr inbounds i8, ptr %1, i64 240
store ptr %20, ptr %21, align 8, !tbaa !17
%22 = load i32, ptr @GUEST_LDTR_SELECTOR, align 4, !tbaa !6
%23 = tail call ptr @vmcs_read16(i32 noundef %22) #2
%24 = getelementptr inbounds i8, ptr %1, i64 232
store ptr %23, ptr %24, align 8, !tbaa !18
%25 = load i32, ptr @GUEST_TR_SELECTOR, align 4, !tbaa !6
%26 = tail call ptr @vmcs_read16(i32 noundef %25) #2
%27 = getelementptr inbounds i8, ptr %1, i64 224
store ptr %26, ptr %27, align 8, !tbaa !19
%28 = load i32, ptr @GUEST_ES_LIMIT, align 4, !tbaa !6
%29 = tail call ptr @vmcs_read32(i32 noundef %28) #2
%30 = getelementptr inbounds i8, ptr %1, i64 216
store ptr %29, ptr %30, align 8, !tbaa !20
%31 = load i32, ptr @GUEST_CS_LIMIT, align 4, !tbaa !6
%32 = tail call ptr @vmcs_read32(i32 noundef %31) #2
%33 = getelementptr inbounds i8, ptr %1, i64 208
store ptr %32, ptr %33, align 8, !tbaa !21
%34 = load i32, ptr @GUEST_SS_LIMIT, align 4, !tbaa !6
%35 = tail call ptr @vmcs_read32(i32 noundef %34) #2
%36 = getelementptr inbounds i8, ptr %1, i64 200
store ptr %35, ptr %36, align 8, !tbaa !22
%37 = load i32, ptr @GUEST_DS_LIMIT, align 4, !tbaa !6
%38 = tail call ptr @vmcs_read32(i32 noundef %37) #2
%39 = getelementptr inbounds i8, ptr %1, i64 192
store ptr %38, ptr %39, align 8, !tbaa !23
%40 = load i32, ptr @GUEST_FS_LIMIT, align 4, !tbaa !6
%41 = tail call ptr @vmcs_read32(i32 noundef %40) #2
%42 = getelementptr inbounds i8, ptr %1, i64 184
store ptr %41, ptr %42, align 8, !tbaa !24
%43 = load i32, ptr @GUEST_GS_LIMIT, align 4, !tbaa !6
%44 = tail call ptr @vmcs_read32(i32 noundef %43) #2
%45 = getelementptr inbounds i8, ptr %1, i64 176
store ptr %44, ptr %45, align 8, !tbaa !25
%46 = load i32, ptr @GUEST_LDTR_LIMIT, align 4, !tbaa !6
%47 = tail call ptr @vmcs_read32(i32 noundef %46) #2
%48 = getelementptr inbounds i8, ptr %1, i64 168
store ptr %47, ptr %48, align 8, !tbaa !26
%49 = load i32, ptr @GUEST_TR_LIMIT, align 4, !tbaa !6
%50 = tail call ptr @vmcs_read32(i32 noundef %49) #2
%51 = getelementptr inbounds i8, ptr %1, i64 160
store ptr %50, ptr %51, align 8, !tbaa !27
%52 = load i32, ptr @GUEST_GDTR_LIMIT, align 4, !tbaa !6
%53 = tail call ptr @vmcs_read32(i32 noundef %52) #2
%54 = getelementptr inbounds i8, ptr %1, i64 152
store ptr %53, ptr %54, align 8, !tbaa !28
%55 = load i32, ptr @GUEST_IDTR_LIMIT, align 4, !tbaa !6
%56 = tail call ptr @vmcs_read32(i32 noundef %55) #2
%57 = getelementptr inbounds i8, ptr %1, i64 144
store ptr %56, ptr %57, align 8, !tbaa !29
%58 = load i32, ptr @GUEST_ES_AR_BYTES, align 4, !tbaa !6
%59 = tail call ptr @vmcs_read32(i32 noundef %58) #2
%60 = getelementptr inbounds i8, ptr %1, i64 136
store ptr %59, ptr %60, align 8, !tbaa !30
%61 = load i32, ptr @GUEST_DS_AR_BYTES, align 4, !tbaa !6
%62 = tail call ptr @vmcs_read32(i32 noundef %61) #2
%63 = getelementptr inbounds i8, ptr %1, i64 128
store ptr %62, ptr %63, align 8, !tbaa !31
%64 = load i32, ptr @GUEST_FS_AR_BYTES, align 4, !tbaa !6
%65 = tail call ptr @vmcs_read32(i32 noundef %64) #2
%66 = getelementptr inbounds i8, ptr %1, i64 120
store ptr %65, ptr %66, align 8, !tbaa !32
%67 = load i32, ptr @GUEST_GS_AR_BYTES, align 4, !tbaa !6
%68 = tail call ptr @vmcs_read32(i32 noundef %67) #2
%69 = getelementptr inbounds i8, ptr %1, i64 112
store ptr %68, ptr %69, align 8, !tbaa !33
%70 = load i32, ptr @GUEST_LDTR_AR_BYTES, align 4, !tbaa !6
%71 = tail call ptr @vmcs_read32(i32 noundef %70) #2
%72 = getelementptr inbounds i8, ptr %1, i64 104
store ptr %71, ptr %72, align 8, !tbaa !34
%73 = load i32, ptr @GUEST_TR_AR_BYTES, align 4, !tbaa !6
%74 = tail call ptr @vmcs_read32(i32 noundef %73) #2
%75 = getelementptr inbounds i8, ptr %1, i64 96
store ptr %74, ptr %75, align 8, !tbaa !35
%76 = load i32, ptr @GUEST_ES_BASE, align 4, !tbaa !6
%77 = tail call ptr @vmcs_readl(i32 noundef %76) #2
%78 = getelementptr inbounds i8, ptr %1, i64 88
store ptr %77, ptr %78, align 8, !tbaa !36
%79 = load i32, ptr @GUEST_CS_BASE, align 4, !tbaa !6
%80 = tail call ptr @vmcs_readl(i32 noundef %79) #2
%81 = getelementptr inbounds i8, ptr %1, i64 80
store ptr %80, ptr %81, align 8, !tbaa !37
%82 = load i32, ptr @GUEST_SS_BASE, align 4, !tbaa !6
%83 = tail call ptr @vmcs_readl(i32 noundef %82) #2
%84 = getelementptr inbounds i8, ptr %1, i64 72
store ptr %83, ptr %84, align 8, !tbaa !38
%85 = load i32, ptr @GUEST_DS_BASE, align 4, !tbaa !6
%86 = tail call ptr @vmcs_readl(i32 noundef %85) #2
%87 = getelementptr inbounds i8, ptr %1, i64 64
store ptr %86, ptr %87, align 8, !tbaa !39
%88 = load i32, ptr @GUEST_FS_BASE, align 4, !tbaa !6
%89 = tail call ptr @vmcs_readl(i32 noundef %88) #2
%90 = getelementptr inbounds i8, ptr %1, i64 56
store ptr %89, ptr %90, align 8, !tbaa !40
%91 = load i32, ptr @GUEST_GS_BASE, align 4, !tbaa !6
%92 = tail call ptr @vmcs_readl(i32 noundef %91) #2
%93 = getelementptr inbounds i8, ptr %1, i64 48
store ptr %92, ptr %93, align 8, !tbaa !41
%94 = load i32, ptr @GUEST_LDTR_BASE, align 4, !tbaa !6
%95 = tail call ptr @vmcs_readl(i32 noundef %94) #2
%96 = getelementptr inbounds i8, ptr %1, i64 40
store ptr %95, ptr %96, align 8, !tbaa !42
%97 = load i32, ptr @GUEST_TR_BASE, align 4, !tbaa !6
%98 = tail call ptr @vmcs_readl(i32 noundef %97) #2
%99 = getelementptr inbounds i8, ptr %1, i64 32
store ptr %98, ptr %99, align 8, !tbaa !43
%100 = load i32, ptr @GUEST_GDTR_BASE, align 4, !tbaa !6
%101 = tail call ptr @vmcs_readl(i32 noundef %100) #2
%102 = getelementptr inbounds i8, ptr %1, i64 24
store ptr %101, ptr %102, align 8, !tbaa !44
%103 = load i32, ptr @GUEST_IDTR_BASE, align 4, !tbaa !6
%104 = tail call ptr @vmcs_readl(i32 noundef %103) #2
%105 = getelementptr inbounds i8, ptr %1, i64 16
store ptr %104, ptr %105, align 8, !tbaa !45
%106 = load i32, ptr @GUEST_PENDING_DBG_EXCEPTIONS, align 4, !tbaa !6
%107 = tail call ptr @vmcs_readl(i32 noundef %106) #2
%108 = getelementptr inbounds i8, ptr %1, i64 8
store ptr %107, ptr %108, align 8, !tbaa !46
%109 = tail call i64 @kvm_mpx_supported() #2
%110 = icmp eq i64 %109, 0
br i1 %110, label %114, label %111
111: ; preds = %2
%112 = load i32, ptr @GUEST_BNDCFGS, align 4, !tbaa !6
%113 = tail call i32 @vmcs_read64(i32 noundef %112) #2
store i32 %113, ptr %1, align 8, !tbaa !47
br label %114
114: ; preds = %111, %2
store i32 0, ptr %3, align 4, !tbaa !48
ret void
}
declare ptr @to_vmx(ptr noundef) local_unnamed_addr #1
declare ptr @vmcs_read16(i32 noundef) local_unnamed_addr #1
declare ptr @vmcs_read32(i32 noundef) local_unnamed_addr #1
declare ptr @vmcs_readl(i32 noundef) local_unnamed_addr #1
declare i64 @kvm_mpx_supported(...) local_unnamed_addr #1
declare i32 @vmcs_read64(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 280}
!11 = !{!"vmcs12", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 272}
!14 = !{!11, !12, i64 264}
!15 = !{!11, !12, i64 256}
!16 = !{!11, !12, i64 248}
!17 = !{!11, !12, i64 240}
!18 = !{!11, !12, i64 232}
!19 = !{!11, !12, i64 224}
!20 = !{!11, !12, i64 216}
!21 = !{!11, !12, i64 208}
!22 = !{!11, !12, i64 200}
!23 = !{!11, !12, i64 192}
!24 = !{!11, !12, i64 184}
!25 = !{!11, !12, i64 176}
!26 = !{!11, !12, i64 168}
!27 = !{!11, !12, i64 160}
!28 = !{!11, !12, i64 152}
!29 = !{!11, !12, i64 144}
!30 = !{!11, !12, i64 136}
!31 = !{!11, !12, i64 128}
!32 = !{!11, !12, i64 120}
!33 = !{!11, !12, i64 112}
!34 = !{!11, !12, i64 104}
!35 = !{!11, !12, i64 96}
!36 = !{!11, !12, i64 88}
!37 = !{!11, !12, i64 80}
!38 = !{!11, !12, i64 72}
!39 = !{!11, !12, i64 64}
!40 = !{!11, !12, i64 56}
!41 = !{!11, !12, i64 48}
!42 = !{!11, !12, i64 40}
!43 = !{!11, !12, i64 32}
!44 = !{!11, !12, i64 24}
!45 = !{!11, !12, i64 16}
!46 = !{!11, !12, i64 8}
!47 = !{!11, !7, i64 0}
!48 = !{!49, !7, i64 0}
!49 = !{!"vcpu_vmx", !50, i64 0}
!50 = !{!"TYPE_2__", !7, i64 0}
| linux_arch_x86_kvm_vmx_extr_nested.c_sync_vmcs02_to_vmcs12_rare |
; ModuleID = 'AnghaBench/linux/net/ipv6/extr_mcast.c_mld_update_qri.c'
source_filename = "AnghaBench/linux/net/ipv6/extr_mcast.c_mld_update_qri.c"
target datalayout = "e-m:e-p270:32:32-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 @mld_update_qri], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mld_update_qri(ptr nocapture noundef writeonly %0, ptr noundef %1) #0 {
%3 = tail call i32 @mldv2_mrc(ptr noundef %1) #2
%4 = tail call i32 @msecs_to_jiffies(i32 noundef %3) #2
store i32 %4, ptr %0, align 4, !tbaa !5
ret void
}
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i32 @mldv2_mrc(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 = !{!"inet6_dev", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/net/ipv6/extr_mcast.c_mld_update_qri.c'
source_filename = "AnghaBench/linux/net/ipv6/extr_mcast.c_mld_update_qri.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 @mld_update_qri], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mld_update_qri(ptr nocapture noundef writeonly %0, ptr noundef %1) #0 {
%3 = tail call i32 @mldv2_mrc(ptr noundef %1) #2
%4 = tail call i32 @msecs_to_jiffies(i32 noundef %3) #2
store i32 %4, ptr %0, align 4, !tbaa !6
ret void
}
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i32 @mldv2_mrc(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 = !{!"inet6_dev", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_net_ipv6_extr_mcast.c_mld_update_qri |
; ModuleID = 'AnghaBench/linux/drivers/w1/slaves/extr_w1_ds28e04.c_pio_read.c'
source_filename = "AnghaBench/linux/drivers/w1/slaves/extr_w1_ds28e04.c_pio_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"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@W1_1C_REG_LOGIC_STATE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pio_read], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pio_read(ptr nocapture readnone %0, ptr noundef %1, ptr nocapture readnone %2, ptr noundef %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = tail call ptr @kobj_to_w1_slave(ptr noundef %1) #2
%8 = icmp ne i64 %4, 0
%9 = icmp ne i64 %5, 1
%10 = or i1 %8, %9
%11 = icmp eq ptr %3, null
%12 = or i1 %11, %10
br i1 %12, label %13, label %16
13: ; preds = %6
%14 = load i32, ptr @EINVAL, align 4, !tbaa !5
%15 = sub nsw i32 0, %14
br label %23
16: ; preds = %6
%17 = load ptr, ptr %7, align 8, !tbaa !9
%18 = tail call i32 @mutex_lock(ptr noundef %17) #2
%19 = load i32, ptr @W1_1C_REG_LOGIC_STATE, align 4, !tbaa !5
%20 = tail call i32 @w1_f1C_read(ptr noundef nonnull %7, i32 noundef %19, i64 noundef 1, ptr noundef nonnull %3) #2
%21 = load ptr, ptr %7, align 8, !tbaa !9
%22 = tail call i32 @mutex_unlock(ptr noundef %21) #2
br label %23
23: ; preds = %16, %13
%24 = phi i32 [ %15, %13 ], [ %20, %16 ]
ret i32 %24
}
declare ptr @kobj_to_w1_slave(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @w1_f1C_read(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"w1_slave", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/w1/slaves/extr_w1_ds28e04.c_pio_read.c'
source_filename = "AnghaBench/linux/drivers/w1/slaves/extr_w1_ds28e04.c_pio_read.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
@W1_1C_REG_LOGIC_STATE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pio_read], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @pio_read(ptr nocapture readnone %0, ptr noundef %1, ptr nocapture readnone %2, ptr noundef %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = tail call ptr @kobj_to_w1_slave(ptr noundef %1) #2
%8 = icmp ne i64 %4, 0
%9 = icmp ne i64 %5, 1
%10 = or i1 %8, %9
%11 = icmp eq ptr %3, null
%12 = or i1 %11, %10
br i1 %12, label %13, label %16
13: ; preds = %6
%14 = load i32, ptr @EINVAL, align 4, !tbaa !6
%15 = sub nsw i32 0, %14
br label %23
16: ; preds = %6
%17 = load ptr, ptr %7, align 8, !tbaa !10
%18 = tail call i32 @mutex_lock(ptr noundef %17) #2
%19 = load i32, ptr @W1_1C_REG_LOGIC_STATE, align 4, !tbaa !6
%20 = tail call i32 @w1_f1C_read(ptr noundef nonnull %7, i32 noundef %19, i64 noundef 1, ptr noundef nonnull %3) #2
%21 = load ptr, ptr %7, align 8, !tbaa !10
%22 = tail call i32 @mutex_unlock(ptr noundef %21) #2
br label %23
23: ; preds = %16, %13
%24 = phi i32 [ %15, %13 ], [ %20, %16 ]
ret i32 %24
}
declare ptr @kobj_to_w1_slave(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @w1_f1C_read(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"w1_slave", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| linux_drivers_w1_slaves_extr_w1_ds28e04.c_pio_read |
; ModuleID = 'AnghaBench/freebsd/contrib/binutils/bfd/extr_elf64-ppc.c_group_sections.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/bfd/extr_elf64-ppc.c_group_sections.c"
target datalayout = "e-m:e-p270:32:32-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.ppc_link_hash_table = type { i32, ptr, ptr }
%struct.TYPE_11__ = type { i32, i64, i32, i32 }
%struct.TYPE_10__ = type { i64, ptr }
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"%B section %A exceeds stub group size\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @group_sections], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @group_sections(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = icmp eq i32 %1, 1
%5 = icmp eq i32 %2, 0
%6 = select i1 %5, i32 28672, i32 30720
%7 = select i1 %5, i32 29360128, i32 31457280
%8 = select i1 %4, i32 %6, i32 %1
%9 = select i1 %4, i32 %7, i32 %1
%10 = load i32, ptr @TRUE, align 4
%11 = load i32, ptr @FALSE, align 4
%12 = select i1 %4, i32 %10, i32 %11
%13 = getelementptr inbounds %struct.ppc_link_hash_table, ptr %0, i64 0, i32 1
%14 = load ptr, ptr %13, align 8, !tbaa !5
%15 = load i32, ptr %0, align 8, !tbaa !11
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = icmp eq i32 %12, 0
%19 = getelementptr inbounds %struct.ppc_link_hash_table, ptr %0, i64 0, i32 2
%20 = icmp ne i32 %2, 0
br label %21
21: ; preds = %118, %3
%22 = phi ptr [ %14, %3 ], [ %119, %118 ]
%23 = phi ptr [ %17, %3 ], [ %120, %118 ]
%24 = load ptr, ptr %23, align 8, !tbaa !12
%25 = icmp eq ptr %24, null
br i1 %25, label %118, label %26
26: ; preds = %21, %113
%27 = phi ptr [ %114, %113 ], [ %24, %21 ]
%28 = load i32, ptr %27, align 8, !tbaa !13
%29 = tail call ptr @ppc64_elf_section_data(ptr noundef nonnull %27) #2
%30 = load i64, ptr %29, align 8, !tbaa !16
%31 = icmp eq i64 %30, 0
%32 = select i1 %31, i32 %9, i32 %8
%33 = icmp sgt i32 %28, %32
%34 = select i1 %33, i1 %18, i1 false
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = tail call i32 @_(ptr noundef nonnull @.str) #2
%37 = getelementptr inbounds %struct.TYPE_11__, ptr %27, i64 0, i32 3
%38 = load i32, ptr %37, align 4, !tbaa !18
%39 = tail call i32 @_bfd_error_handler(i32 noundef %36, i32 noundef %38, ptr noundef nonnull %27) #2
br label %40
40: ; preds = %35, %26
%41 = load ptr, ptr %19, align 8, !tbaa !19
%42 = getelementptr inbounds %struct.TYPE_11__, ptr %27, i64 0, i32 1
%43 = load i64, ptr %42, align 8, !tbaa !20
%44 = getelementptr inbounds %struct.TYPE_10__, ptr %41, i64 %43
%45 = load i64, ptr %44, align 8, !tbaa !21
br label %46
46: ; preds = %63, %40
%47 = phi ptr [ %27, %40 ], [ %49, %63 ]
%48 = phi i32 [ %28, %40 ], [ %57, %63 ]
%49 = tail call ptr @PREV_SEC(ptr noundef nonnull %47) #2
%50 = icmp eq ptr %49, null
br i1 %50, label %70, label %51
51: ; preds = %46
%52 = getelementptr inbounds %struct.TYPE_11__, ptr %47, i64 0, i32 2
%53 = load i32, ptr %52, align 8, !tbaa !23
%54 = getelementptr inbounds %struct.TYPE_11__, ptr %49, i64 0, i32 2
%55 = load i32, ptr %54, align 8, !tbaa !23
%56 = sub nsw i32 %53, %55
%57 = add nsw i32 %56, %48
%58 = tail call ptr @ppc64_elf_section_data(ptr noundef nonnull %49) #2
%59 = load i64, ptr %58, align 8, !tbaa !16
%60 = icmp eq i64 %59, 0
%61 = select i1 %60, i32 %9, i32 %8
%62 = icmp slt i32 %57, %61
br i1 %62, label %63, label %70
63: ; preds = %51
%64 = load ptr, ptr %19, align 8, !tbaa !19
%65 = getelementptr inbounds %struct.TYPE_11__, ptr %49, i64 0, i32 1
%66 = load i64, ptr %65, align 8, !tbaa !20
%67 = getelementptr inbounds %struct.TYPE_10__, ptr %64, i64 %66
%68 = load i64, ptr %67, align 8, !tbaa !21
%69 = icmp eq i64 %68, %45
br i1 %69, label %46, label %70, !llvm.loop !24
70: ; preds = %51, %46, %63
br label %71
71: ; preds = %70, %79
%72 = phi ptr [ %73, %79 ], [ %27, %70 ]
%73 = tail call ptr @PREV_SEC(ptr noundef nonnull %72) #2
%74 = load ptr, ptr %19, align 8, !tbaa !19
%75 = getelementptr inbounds %struct.TYPE_11__, ptr %72, i64 0, i32 1
%76 = load i64, ptr %75, align 8, !tbaa !20
%77 = getelementptr inbounds %struct.TYPE_10__, ptr %74, i64 %76, i32 1
store ptr %47, ptr %77, align 8, !tbaa !26
%78 = icmp eq ptr %72, %47
br i1 %78, label %81, label %79
79: ; preds = %71
%80 = icmp eq ptr %73, null
br i1 %80, label %116, label %71, !llvm.loop !27
81: ; preds = %71
%82 = or i1 %20, %33
br i1 %82, label %113, label %83
83: ; preds = %81
%84 = icmp eq ptr %73, null
br i1 %84, label %116, label %85
85: ; preds = %83, %107
%86 = phi i32 [ %94, %107 ], [ 0, %83 ]
%87 = phi ptr [ %108, %107 ], [ %73, %83 ]
%88 = phi ptr [ %87, %107 ], [ %47, %83 ]
%89 = getelementptr inbounds %struct.TYPE_11__, ptr %88, i64 0, i32 2
%90 = load i32, ptr %89, align 8, !tbaa !23
%91 = getelementptr inbounds %struct.TYPE_11__, ptr %87, i64 0, i32 2
%92 = load i32, ptr %91, align 8, !tbaa !23
%93 = sub nsw i32 %90, %92
%94 = add nsw i32 %93, %86
%95 = tail call ptr @ppc64_elf_section_data(ptr noundef nonnull %87) #2
%96 = load i64, ptr %95, align 8, !tbaa !16
%97 = icmp eq i64 %96, 0
%98 = select i1 %97, i32 %9, i32 %8
%99 = icmp slt i32 %94, %98
br i1 %99, label %100, label %113
100: ; preds = %85
%101 = load ptr, ptr %19, align 8, !tbaa !19
%102 = getelementptr inbounds %struct.TYPE_11__, ptr %87, i64 0, i32 1
%103 = load i64, ptr %102, align 8, !tbaa !20
%104 = getelementptr inbounds %struct.TYPE_10__, ptr %101, i64 %103
%105 = load i64, ptr %104, align 8, !tbaa !21
%106 = icmp eq i64 %105, %45
br i1 %106, label %107, label %113
107: ; preds = %100
%108 = tail call ptr @PREV_SEC(ptr noundef nonnull %87) #2
%109 = load ptr, ptr %19, align 8, !tbaa !19
%110 = load i64, ptr %102, align 8, !tbaa !20
%111 = getelementptr inbounds %struct.TYPE_10__, ptr %109, i64 %110, i32 1
store ptr %47, ptr %111, align 8, !tbaa !26
%112 = icmp eq ptr %108, null
br i1 %112, label %116, label %85, !llvm.loop !28
113: ; preds = %85, %100, %81
%114 = phi ptr [ %73, %81 ], [ %87, %100 ], [ %87, %85 ]
%115 = icmp eq ptr %114, null
br i1 %115, label %116, label %26, !llvm.loop !29
116: ; preds = %83, %113, %79, %107
%117 = load ptr, ptr %13, align 8, !tbaa !5
br label %118
118: ; preds = %116, %21
%119 = phi ptr [ %117, %116 ], [ %22, %21 ]
%120 = getelementptr inbounds ptr, ptr %23, i64 -1
%121 = icmp eq ptr %23, %119
br i1 %121, label %122, label %21, !llvm.loop !30
122: ; preds = %118
%123 = tail call i32 @free(ptr noundef nonnull %23) #2
ret void
}
declare ptr @ppc64_elf_section_data(ptr noundef) local_unnamed_addr #1
declare i32 @_bfd_error_handler(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @_(ptr noundef) local_unnamed_addr #1
declare ptr @PREV_SEC(ptr noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"ppc_link_hash_table", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_11__", !7, i64 0, !15, i64 8, !7, i64 16, !7, i64 20}
!15 = !{!"long", !8, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"TYPE_12__", !15, i64 0}
!18 = !{!14, !7, i64 20}
!19 = !{!6, !10, i64 16}
!20 = !{!14, !15, i64 8}
!21 = !{!22, !15, i64 0}
!22 = !{!"TYPE_10__", !15, i64 0, !10, i64 8}
!23 = !{!14, !7, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!22, !10, i64 8}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}
| ; ModuleID = 'AnghaBench/freebsd/contrib/binutils/bfd/extr_elf64-ppc.c_group_sections.c'
source_filename = "AnghaBench/freebsd/contrib/binutils/bfd/extr_elf64-ppc.c_group_sections.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_10__ = type { i64, ptr }
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"%B section %A exceeds stub group size\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @group_sections], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @group_sections(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = icmp eq i32 %1, 1
%5 = icmp eq i32 %2, 0
%6 = select i1 %5, i32 28672, i32 30720
%7 = select i1 %5, i32 29360128, i32 31457280
%8 = select i1 %4, i32 %6, i32 %1
%9 = select i1 %4, i32 %7, i32 %1
%10 = load i32, ptr @TRUE, align 4
%11 = load i32, ptr @FALSE, align 4
%12 = select i1 %4, i32 %10, i32 %11
%13 = getelementptr inbounds i8, ptr %0, i64 8
%14 = load ptr, ptr %13, align 8, !tbaa !6
%15 = load i32, ptr %0, align 8, !tbaa !12
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = icmp eq i32 %12, 0
%19 = getelementptr inbounds i8, ptr %0, i64 16
%20 = icmp ne i32 %2, 0
br label %21
21: ; preds = %118, %3
%22 = phi ptr [ %14, %3 ], [ %119, %118 ]
%23 = phi ptr [ %17, %3 ], [ %120, %118 ]
%24 = load ptr, ptr %23, align 8, !tbaa !13
%25 = icmp eq ptr %24, null
br i1 %25, label %118, label %26
26: ; preds = %21, %113
%27 = phi ptr [ %114, %113 ], [ %24, %21 ]
%28 = load i32, ptr %27, align 8, !tbaa !14
%29 = tail call ptr @ppc64_elf_section_data(ptr noundef nonnull %27) #2
%30 = load i64, ptr %29, align 8, !tbaa !17
%31 = icmp eq i64 %30, 0
%32 = select i1 %31, i32 %9, i32 %8
%33 = icmp sgt i32 %28, %32
%34 = select i1 %33, i1 %18, i1 false
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = tail call i32 @_(ptr noundef nonnull @.str) #2
%37 = getelementptr inbounds i8, ptr %27, i64 20
%38 = load i32, ptr %37, align 4, !tbaa !19
%39 = tail call i32 @_bfd_error_handler(i32 noundef %36, i32 noundef %38, ptr noundef nonnull %27) #2
br label %40
40: ; preds = %35, %26
%41 = load ptr, ptr %19, align 8, !tbaa !20
%42 = getelementptr inbounds i8, ptr %27, i64 8
%43 = load i64, ptr %42, align 8, !tbaa !21
%44 = getelementptr inbounds %struct.TYPE_10__, ptr %41, i64 %43
%45 = load i64, ptr %44, align 8, !tbaa !22
br label %46
46: ; preds = %63, %40
%47 = phi ptr [ %27, %40 ], [ %49, %63 ]
%48 = phi i32 [ %28, %40 ], [ %57, %63 ]
%49 = tail call ptr @PREV_SEC(ptr noundef nonnull %47) #2
%50 = icmp eq ptr %49, null
br i1 %50, label %70, label %51
51: ; preds = %46
%52 = getelementptr inbounds i8, ptr %47, i64 16
%53 = load i32, ptr %52, align 8, !tbaa !24
%54 = getelementptr inbounds i8, ptr %49, i64 16
%55 = load i32, ptr %54, align 8, !tbaa !24
%56 = sub nsw i32 %53, %55
%57 = add nsw i32 %56, %48
%58 = tail call ptr @ppc64_elf_section_data(ptr noundef nonnull %49) #2
%59 = load i64, ptr %58, align 8, !tbaa !17
%60 = icmp eq i64 %59, 0
%61 = select i1 %60, i32 %9, i32 %8
%62 = icmp slt i32 %57, %61
br i1 %62, label %63, label %70
63: ; preds = %51
%64 = load ptr, ptr %19, align 8, !tbaa !20
%65 = getelementptr inbounds i8, ptr %49, i64 8
%66 = load i64, ptr %65, align 8, !tbaa !21
%67 = getelementptr inbounds %struct.TYPE_10__, ptr %64, i64 %66
%68 = load i64, ptr %67, align 8, !tbaa !22
%69 = icmp eq i64 %68, %45
br i1 %69, label %46, label %70, !llvm.loop !25
70: ; preds = %51, %46, %63
br label %71
71: ; preds = %70, %79
%72 = phi ptr [ %73, %79 ], [ %27, %70 ]
%73 = tail call ptr @PREV_SEC(ptr noundef nonnull %72) #2
%74 = load ptr, ptr %19, align 8, !tbaa !20
%75 = getelementptr inbounds i8, ptr %72, i64 8
%76 = load i64, ptr %75, align 8, !tbaa !21
%77 = getelementptr inbounds %struct.TYPE_10__, ptr %74, i64 %76, i32 1
store ptr %47, ptr %77, align 8, !tbaa !27
%78 = icmp eq ptr %72, %47
br i1 %78, label %81, label %79
79: ; preds = %71
%80 = icmp eq ptr %73, null
br i1 %80, label %116, label %71, !llvm.loop !28
81: ; preds = %71
%82 = or i1 %20, %33
br i1 %82, label %113, label %83
83: ; preds = %81
%84 = icmp eq ptr %73, null
br i1 %84, label %116, label %85
85: ; preds = %83, %107
%86 = phi i32 [ %94, %107 ], [ 0, %83 ]
%87 = phi ptr [ %108, %107 ], [ %73, %83 ]
%88 = phi ptr [ %87, %107 ], [ %72, %83 ]
%89 = getelementptr inbounds i8, ptr %88, i64 16
%90 = load i32, ptr %89, align 8, !tbaa !24
%91 = getelementptr inbounds i8, ptr %87, i64 16
%92 = load i32, ptr %91, align 8, !tbaa !24
%93 = sub nsw i32 %90, %92
%94 = add nsw i32 %93, %86
%95 = tail call ptr @ppc64_elf_section_data(ptr noundef nonnull %87) #2
%96 = load i64, ptr %95, align 8, !tbaa !17
%97 = icmp eq i64 %96, 0
%98 = select i1 %97, i32 %9, i32 %8
%99 = icmp slt i32 %94, %98
br i1 %99, label %100, label %113
100: ; preds = %85
%101 = load ptr, ptr %19, align 8, !tbaa !20
%102 = getelementptr inbounds i8, ptr %87, i64 8
%103 = load i64, ptr %102, align 8, !tbaa !21
%104 = getelementptr inbounds %struct.TYPE_10__, ptr %101, i64 %103
%105 = load i64, ptr %104, align 8, !tbaa !22
%106 = icmp eq i64 %105, %45
br i1 %106, label %107, label %113
107: ; preds = %100
%108 = tail call ptr @PREV_SEC(ptr noundef nonnull %87) #2
%109 = load ptr, ptr %19, align 8, !tbaa !20
%110 = load i64, ptr %102, align 8, !tbaa !21
%111 = getelementptr inbounds %struct.TYPE_10__, ptr %109, i64 %110, i32 1
store ptr %47, ptr %111, align 8, !tbaa !27
%112 = icmp eq ptr %108, null
br i1 %112, label %116, label %85, !llvm.loop !29
113: ; preds = %85, %100, %81
%114 = phi ptr [ %73, %81 ], [ %87, %100 ], [ %87, %85 ]
%115 = icmp eq ptr %114, null
br i1 %115, label %116, label %26, !llvm.loop !30
116: ; preds = %83, %113, %79, %107
%117 = load ptr, ptr %13, align 8, !tbaa !6
br label %118
118: ; preds = %116, %21
%119 = phi ptr [ %117, %116 ], [ %22, %21 ]
%120 = getelementptr inbounds i8, ptr %23, i64 -8
%121 = icmp eq ptr %23, %119
br i1 %121, label %122, label %21, !llvm.loop !31
122: ; preds = %118
%123 = tail call i32 @free(ptr noundef %119) #2
ret void
}
declare ptr @ppc64_elf_section_data(ptr noundef) local_unnamed_addr #1
declare i32 @_bfd_error_handler(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @_(ptr noundef) local_unnamed_addr #1
declare ptr @PREV_SEC(ptr noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"ppc_link_hash_table", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_11__", !8, i64 0, !16, i64 8, !8, i64 16, !8, i64 20}
!16 = !{!"long", !9, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"TYPE_12__", !16, i64 0}
!19 = !{!15, !8, i64 20}
!20 = !{!7, !11, i64 16}
!21 = !{!15, !16, i64 8}
!22 = !{!23, !16, i64 0}
!23 = !{!"TYPE_10__", !16, i64 0, !11, i64 8}
!24 = !{!15, !8, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!23, !11, i64 8}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}
| freebsd_contrib_binutils_bfd_extr_elf64-ppc.c_group_sections |
; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/common/ctf/extr_ctf_create.c_ctf_add_union.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/common/ctf/extr_ctf_create.c_ctf_add_union.c"
target datalayout = "e-m:e-p270:32:32-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 }
@CTF_K_FORWARD = dso_local local_unnamed_addr global i64 0, align 8
@CTF_ERR = dso_local local_unnamed_addr global i32 0, align 4
@CTF_K_UNION = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @ctf_add_union(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = icmp eq ptr %2, null
br i1 %5, label %18, label %6
6: ; preds = %3
%7 = tail call i32 @strlen(ptr noundef nonnull %2) #3
%8 = tail call ptr @ctf_hash_lookup(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %2, i32 noundef %7) #3
%9 = icmp eq ptr %8, null
br i1 %9, label %18, label %10
10: ; preds = %6
%11 = load i32, ptr %8, align 4, !tbaa !5
%12 = tail call i64 @ctf_type_kind(ptr noundef %0, i32 noundef %11) #3
%13 = load i64, ptr @CTF_K_FORWARD, align 8, !tbaa !10
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr %8, align 4, !tbaa !5
%17 = tail call ptr @ctf_dtd_lookup(ptr noundef %0, i32 noundef %16) #3
store ptr %17, ptr %4, align 8, !tbaa !12
br label %22
18: ; preds = %3, %10, %6
%19 = call i32 @ctf_add_generic(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull %4) #3
%20 = load i32, ptr @CTF_ERR, align 4, !tbaa !14
%21 = icmp eq i32 %19, %20
br i1 %21, label %28, label %22
22: ; preds = %18, %15
%23 = phi i32 [ %16, %15 ], [ %19, %18 ]
%24 = load i32, ptr @CTF_K_UNION, align 4, !tbaa !14
%25 = call i32 @CTF_TYPE_INFO(i32 noundef %24, i32 noundef %1, i32 noundef 0) #3
%26 = load ptr, ptr %4, align 8, !tbaa !12
%27 = getelementptr inbounds %struct.TYPE_13__, ptr %26, i64 0, i32 1
store i32 %25, ptr %27, align 8, !tbaa !15
store i64 0, ptr %26, align 8, !tbaa !18
br label %28
28: ; preds = %18, %22
%29 = phi i32 [ %23, %22 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @ctf_hash_lookup(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strlen(ptr noundef) local_unnamed_addr #2
declare i64 @ctf_type_kind(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ctf_dtd_lookup(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ctf_add_generic(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @CTF_TYPE_INFO(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_14__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 8}
!16 = !{!"TYPE_16__", !17, i64 0}
!17 = !{!"TYPE_13__", !11, i64 0, !7, i64 8}
!18 = !{!16, !11, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/cddl/contrib/opensolaris/common/ctf/extr_ctf_create.c_ctf_add_union.c'
source_filename = "AnghaBench/freebsd/cddl/contrib/opensolaris/common/ctf/extr_ctf_create.c_ctf_add_union.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CTF_K_FORWARD = common local_unnamed_addr global i64 0, align 8
@CTF_ERR = common local_unnamed_addr global i32 0, align 4
@CTF_K_UNION = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ctf_add_union(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = icmp eq ptr %2, null
br i1 %5, label %18, label %6
6: ; preds = %3
%7 = tail call i32 @strlen(ptr noundef nonnull %2) #3
%8 = tail call ptr @ctf_hash_lookup(ptr noundef %0, ptr noundef %0, ptr noundef nonnull %2, i32 noundef %7) #3
%9 = icmp eq ptr %8, null
br i1 %9, label %18, label %10
10: ; preds = %6
%11 = load i32, ptr %8, align 4, !tbaa !6
%12 = tail call i64 @ctf_type_kind(ptr noundef %0, i32 noundef %11) #3
%13 = load i64, ptr @CTF_K_FORWARD, align 8, !tbaa !11
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, ptr %8, align 4, !tbaa !6
%17 = tail call ptr @ctf_dtd_lookup(ptr noundef %0, i32 noundef %16) #3
store ptr %17, ptr %4, align 8, !tbaa !13
br label %22
18: ; preds = %3, %10, %6
%19 = call i32 @ctf_add_generic(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull %4) #3
%20 = load i32, ptr @CTF_ERR, align 4, !tbaa !15
%21 = icmp eq i32 %19, %20
br i1 %21, label %28, label %22
22: ; preds = %18, %15
%23 = phi i32 [ %16, %15 ], [ %19, %18 ]
%24 = load i32, ptr @CTF_K_UNION, align 4, !tbaa !15
%25 = call i32 @CTF_TYPE_INFO(i32 noundef %24, i32 noundef %1, i32 noundef 0) #3
%26 = load ptr, ptr %4, align 8, !tbaa !13
%27 = getelementptr inbounds i8, ptr %26, i64 8
store i32 %25, ptr %27, align 8, !tbaa !16
store i64 0, ptr %26, align 8, !tbaa !19
br label %28
28: ; preds = %18, %22
%29 = phi i32 [ %23, %22 ], [ %19, %18 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @ctf_hash_lookup(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @strlen(ptr noundef) local_unnamed_addr #2
declare i64 @ctf_type_kind(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ctf_dtd_lookup(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ctf_add_generic(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @CTF_TYPE_INFO(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_14__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !8, i64 8}
!17 = !{!"TYPE_16__", !18, i64 0}
!18 = !{!"TYPE_13__", !12, i64 0, !8, i64 8}
!19 = !{!17, !12, i64 0}
| freebsd_cddl_contrib_opensolaris_common_ctf_extr_ctf_create.c_ctf_add_union |
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_activate_amp_out.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_activate_amp_out.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@HDA_OUTPUT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @activate_amp_out], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @activate_amp_out(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = load ptr, ptr %1, align 8, !tbaa !5
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds i32, ptr %5, i64 %6
%8 = load i32, ptr %7, align 4, !tbaa !10
%9 = load i32, ptr @HDA_OUTPUT, align 4, !tbaa !10
%10 = tail call i32 @init_amp(ptr noundef %0, i32 noundef %8, i32 noundef %9, i32 noundef 0) #2
%11 = load i32, ptr @HDA_OUTPUT, align 4, !tbaa !10
%12 = tail call i32 @activate_amp(ptr noundef %0, i32 noundef %8, i32 noundef %11, i32 noundef 0, i32 noundef 0, i32 noundef %3) #2
ret void
}
declare i32 @init_amp(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @activate_amp(ptr noundef, i32 noundef, 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 = !{!"nid_path", !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/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_activate_amp_out.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/hda/extr_hda_generic.c_activate_amp_out.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HDA_OUTPUT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @activate_amp_out], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @activate_amp_out(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = load ptr, ptr %1, align 8, !tbaa !6
%6 = sext i32 %2 to i64
%7 = getelementptr inbounds i32, ptr %5, i64 %6
%8 = load i32, ptr %7, align 4, !tbaa !11
%9 = load i32, ptr @HDA_OUTPUT, align 4, !tbaa !11
%10 = tail call i32 @init_amp(ptr noundef %0, i32 noundef %8, i32 noundef %9, i32 noundef 0) #2
%11 = load i32, ptr @HDA_OUTPUT, align 4, !tbaa !11
%12 = tail call i32 @activate_amp(ptr noundef %0, i32 noundef %8, i32 noundef %11, i32 noundef 0, i32 noundef 0, i32 noundef %3) #2
ret void
}
declare i32 @init_amp(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @activate_amp(ptr noundef, i32 noundef, 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 = !{!"nid_path", !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}
| fastsocket_kernel_sound_pci_hda_extr_hda_generic.c_activate_amp_out |
; ModuleID = 'AnghaBench/linux/net/core/extr_datagram.c_receiver_wake_function.c'
source_filename = "AnghaBench/linux/net/core/extr_datagram.c_receiver_wake_function.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EPOLLIN = dso_local local_unnamed_addr global i32 0, align 4
@EPOLLERR = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @receiver_wake_function], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @receiver_wake_function(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = icmp eq ptr %3, null
br i1 %5, label %13, label %6
6: ; preds = %4
%7 = tail call i32 @key_to_poll(ptr noundef nonnull %3) #2
%8 = load i32, ptr @EPOLLIN, align 4, !tbaa !5
%9 = load i32, ptr @EPOLLERR, align 4, !tbaa !5
%10 = or i32 %9, %8
%11 = and i32 %10, %7
%12 = icmp eq i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %6, %4
%14 = tail call i32 @autoremove_wake_function(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #2
br label %15
15: ; preds = %6, %13
%16 = phi i32 [ %14, %13 ], [ 0, %6 ]
ret i32 %16
}
declare i32 @key_to_poll(ptr noundef) local_unnamed_addr #1
declare i32 @autoremove_wake_function(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/net/core/extr_datagram.c_receiver_wake_function.c'
source_filename = "AnghaBench/linux/net/core/extr_datagram.c_receiver_wake_function.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EPOLLIN = common local_unnamed_addr global i32 0, align 4
@EPOLLERR = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @receiver_wake_function], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @receiver_wake_function(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = icmp eq ptr %3, null
br i1 %5, label %13, label %6
6: ; preds = %4
%7 = tail call i32 @key_to_poll(ptr noundef nonnull %3) #2
%8 = load i32, ptr @EPOLLIN, align 4, !tbaa !6
%9 = load i32, ptr @EPOLLERR, align 4, !tbaa !6
%10 = or i32 %9, %8
%11 = and i32 %10, %7
%12 = icmp eq i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %6, %4
%14 = tail call i32 @autoremove_wake_function(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #2
br label %15
15: ; preds = %6, %13
%16 = phi i32 [ %14, %13 ], [ 0, %6 ]
ret i32 %16
}
declare i32 @key_to_poll(ptr noundef) local_unnamed_addr #1
declare i32 @autoremove_wake_function(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_net_core_extr_datagram.c_receiver_wake_function |
; ModuleID = 'AnghaBench/openwrt/tools/firmware-utils/src/extr_mktitanimg.c_cmdline_read.c'
source_filename = "AnghaBench/openwrt/tools/firmware-utils/src/extr_mktitanimg.c_cmdline_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.TYPE_10__ = type { ptr }
%struct.TYPE_9__ = type { i32, ptr, %struct.TYPE_11__ }
%struct.TYPE_11__ = type { i64, i64 }
%struct.TYPE_7__ = type { i32, i64, i64 }
%struct.TYPE_8__ = type { i32, ptr }
@CMDLINE_ERR_ERROR = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_INVKEY = dso_local local_unnamed_addr global i32 0, align 4
@cmdline_cfg = dso_local local_unnamed_addr global %struct.TYPE_10__ zeroinitializer, align 8
@CMDLINE_OPTFLAG_ALLOW = dso_local local_unnamed_addr global i32 0, align 4
@cmdline_data = dso_local global %struct.TYPE_9__ zeroinitializer, align 8
@CMDLINE_ERR_ILLOPT = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_NOMEM = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_MANYARG = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_OPTFLAG_MANDAT = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_OPTMIS = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_FEWARG = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_TRUE = dso_local local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_OK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @cmdline_read(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext nneg i32 %0 to i64
br label %11
6: ; preds = %62, %2
%7 = load ptr, ptr @cmdline_cfg, align 8, !tbaa !5
%8 = load i32, ptr @CMDLINE_OPTFLAG_ALLOW, align 4, !tbaa !10
%9 = load i32, ptr @CMDLINE_OPTFLAG_MANDAT, align 4
%10 = load ptr, ptr getelementptr inbounds (%struct.TYPE_9__, ptr @cmdline_data, i64 0, i32 1), align 8
br label %66
11: ; preds = %4, %62
%12 = phi i64 [ 1, %4 ], [ %64, %62 ]
%13 = phi i32 [ 0, %4 ], [ %63, %62 ]
%14 = getelementptr inbounds ptr, ptr %1, i64 %12
%15 = load ptr, ptr %14, align 8, !tbaa !12
%16 = load i8, ptr %15, align 1, !tbaa !13
%17 = icmp eq i8 %16, 45
br i1 %17, label %18, label %42
18: ; preds = %11
%19 = tail call i32 @strlen(ptr noundef nonnull %15) #2
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %97
21: ; preds = %18
%22 = load ptr, ptr %14, align 8, !tbaa !12
%23 = getelementptr inbounds i8, ptr %22, i64 1
%24 = load i8, ptr %23, align 1, !tbaa !13
%25 = add i8 %24, -123
%26 = icmp ult i8 %25, -26
br i1 %26, label %97, label %27
27: ; preds = %21
%28 = add nsw i8 %24, -97
%29 = load ptr, ptr @cmdline_cfg, align 8, !tbaa !5
%30 = zext nneg i8 %28 to i64
%31 = getelementptr inbounds %struct.TYPE_7__, ptr %29, i64 %30
%32 = load i32, ptr %31, align 8, !tbaa !14
%33 = load i32, ptr @CMDLINE_OPTFLAG_ALLOW, align 4, !tbaa !10
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %97, label %36
36: ; preds = %27
%37 = zext nneg i8 %28 to i32
%38 = load ptr, ptr getelementptr inbounds (%struct.TYPE_9__, ptr @cmdline_data, i64 0, i32 1), align 8, !tbaa !17
%39 = getelementptr inbounds %struct.TYPE_11__, ptr %38, i64 %30
%40 = load i64, ptr %39, align 8, !tbaa !20
%41 = add nsw i64 %40, 1
store i64 %41, ptr %39, align 8, !tbaa !20
br label %62
42: ; preds = %11
%43 = tail call i64 @calloc(i32 noundef 1, i32 noundef 16) #2
%44 = inttoptr i64 %43 to ptr
%45 = icmp eq i64 %43, 0
br i1 %45, label %97, label %46
46: ; preds = %42
%47 = trunc i64 %12 to i32
store i32 %47, ptr %44, align 8, !tbaa !21
%48 = getelementptr inbounds %struct.TYPE_8__, ptr %44, i64 0, i32 1
store ptr null, ptr %48, align 8, !tbaa !23
%49 = load ptr, ptr getelementptr inbounds (%struct.TYPE_9__, ptr @cmdline_data, i64 0, i32 1), align 8, !tbaa !17
%50 = zext nneg i32 %13 to i64
%51 = getelementptr inbounds %struct.TYPE_11__, ptr %49, i64 %50, i32 1
%52 = load i64, ptr %51, align 8, !tbaa !24
%53 = load ptr, ptr @cmdline_cfg, align 8, !tbaa !5
%54 = getelementptr inbounds %struct.TYPE_7__, ptr %53, i64 %50, i32 1
%55 = load i64, ptr %54, align 8, !tbaa !25
%56 = icmp eq i64 %52, %55
br i1 %56, label %57, label %59
57: ; preds = %46
%58 = tail call i32 @cmdline_argadd(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_9__, ptr @cmdline_data, i64 0, i32 2), ptr noundef nonnull %44) #2
br label %62
59: ; preds = %46
%60 = getelementptr inbounds %struct.TYPE_11__, ptr %49, i64 %50
%61 = tail call i32 @cmdline_argadd(ptr noundef nonnull %60, ptr noundef nonnull %44) #2
br label %62
62: ; preds = %57, %59, %36
%63 = phi i32 [ %37, %36 ], [ %13, %59 ], [ %13, %57 ]
%64 = add nuw nsw i64 %12, 1
%65 = icmp eq i64 %64, %5
br i1 %65, label %6, label %11, !llvm.loop !26
66: ; preds = %6, %92
%67 = phi i64 [ 0, %6 ], [ %93, %92 ]
%68 = getelementptr inbounds %struct.TYPE_7__, ptr %7, i64 %67
%69 = load i32, ptr %68, align 8, !tbaa !14
%70 = and i32 %8, %69
%71 = icmp eq i32 %70, 0
br i1 %71, label %92, label %72
72: ; preds = %66
%73 = and i32 %9, %69
%74 = icmp eq i32 %73, 0
%75 = getelementptr inbounds %struct.TYPE_11__, ptr %10, i64 %67
%76 = load i64, ptr %75, align 8, !tbaa !20
%77 = icmp eq i64 %76, 0
br i1 %74, label %85, label %78
78: ; preds = %72
br i1 %77, label %97, label %79
79: ; preds = %78
%80 = getelementptr inbounds %struct.TYPE_11__, ptr %10, i64 %67, i32 1
%81 = load i64, ptr %80, align 8, !tbaa !24
%82 = getelementptr inbounds %struct.TYPE_7__, ptr %7, i64 %67, i32 2
%83 = load i64, ptr %82, align 8, !tbaa !28
%84 = icmp slt i64 %81, %83
br i1 %84, label %97, label %92
85: ; preds = %72
br i1 %77, label %92, label %86
86: ; preds = %85
%87 = getelementptr inbounds %struct.TYPE_11__, ptr %10, i64 %67, i32 1
%88 = load i64, ptr %87, align 8, !tbaa !24
%89 = getelementptr inbounds %struct.TYPE_7__, ptr %7, i64 %67, i32 2
%90 = load i64, ptr %89, align 8, !tbaa !28
%91 = icmp slt i64 %88, %90
br i1 %91, label %97, label %92
92: ; preds = %66, %86, %85, %79
%93 = add nuw nsw i64 %67, 1
%94 = icmp eq i64 %93, 26
br i1 %94, label %95, label %66, !llvm.loop !29
95: ; preds = %92
%96 = load i32, ptr @CMDLINE_TRUE, align 4, !tbaa !10
store i32 %96, ptr @cmdline_data, align 8, !tbaa !30
br label %97
97: ; preds = %42, %27, %21, %18, %86, %79, %78, %95
%98 = phi ptr [ @CMDLINE_ERR_OK, %95 ], [ @CMDLINE_ERR_FEWARG, %86 ], [ @CMDLINE_ERR_FEWARG, %79 ], [ @CMDLINE_ERR_OPTMIS, %78 ], [ @CMDLINE_ERR_NOMEM, %42 ], [ @CMDLINE_ERR_ILLOPT, %27 ], [ @CMDLINE_ERR_INVKEY, %21 ], [ @CMDLINE_ERR_ERROR, %18 ]
%99 = load i32, ptr %98, align 4, !tbaa !10
ret i32 %99
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare i64 @calloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cmdline_argadd(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_10__", !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 = !{!7, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_7__", !11, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !7, i64 8}
!18 = !{!"TYPE_9__", !11, i64 0, !7, i64 8, !19, i64 16}
!19 = !{!"TYPE_11__", !16, i64 0, !16, i64 8}
!20 = !{!19, !16, i64 0}
!21 = !{!22, !11, i64 0}
!22 = !{!"TYPE_8__", !11, i64 0, !7, i64 8}
!23 = !{!22, !7, i64 8}
!24 = !{!19, !16, i64 8}
!25 = !{!15, !16, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!15, !16, i64 16}
!29 = distinct !{!29, !27}
!30 = !{!18, !11, i64 0}
| ; ModuleID = 'AnghaBench/openwrt/tools/firmware-utils/src/extr_mktitanimg.c_cmdline_read.c'
source_filename = "AnghaBench/openwrt/tools/firmware-utils/src/extr_mktitanimg.c_cmdline_read.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_10__ = type { ptr }
%struct.TYPE_9__ = type { i32, ptr, %struct.TYPE_11__ }
%struct.TYPE_11__ = type { i64, i64 }
%struct.TYPE_7__ = type { i32, i64, i64 }
@CMDLINE_ERR_ERROR = common local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_INVKEY = common local_unnamed_addr global i32 0, align 4
@cmdline_cfg = common local_unnamed_addr global %struct.TYPE_10__ zeroinitializer, align 8
@CMDLINE_OPTFLAG_ALLOW = common local_unnamed_addr global i32 0, align 4
@cmdline_data = common global %struct.TYPE_9__ zeroinitializer, align 8
@CMDLINE_ERR_ILLOPT = common local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_NOMEM = common local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_MANYARG = common local_unnamed_addr global i32 0, align 4
@CMDLINE_OPTFLAG_MANDAT = common local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_OPTMIS = common local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_FEWARG = common local_unnamed_addr global i32 0, align 4
@CMDLINE_TRUE = common local_unnamed_addr global i32 0, align 4
@CMDLINE_ERR_OK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @cmdline_read(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext nneg i32 %0 to i64
br label %11
6: ; preds = %62, %2
%7 = load ptr, ptr @cmdline_cfg, align 8, !tbaa !6
%8 = load i32, ptr @CMDLINE_OPTFLAG_ALLOW, align 4, !tbaa !11
%9 = load i32, ptr @CMDLINE_OPTFLAG_MANDAT, align 4
%10 = load ptr, ptr getelementptr inbounds (i8, ptr @cmdline_data, i64 8), align 8
br label %66
11: ; preds = %4, %62
%12 = phi i64 [ 1, %4 ], [ %64, %62 ]
%13 = phi i32 [ 0, %4 ], [ %63, %62 ]
%14 = getelementptr inbounds ptr, ptr %1, i64 %12
%15 = load ptr, ptr %14, align 8, !tbaa !13
%16 = load i8, ptr %15, align 1, !tbaa !14
%17 = icmp eq i8 %16, 45
br i1 %17, label %18, label %42
18: ; preds = %11
%19 = tail call i32 @strlen(ptr noundef nonnull %15) #2
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %97
21: ; preds = %18
%22 = load ptr, ptr %14, align 8, !tbaa !13
%23 = getelementptr inbounds i8, ptr %22, i64 1
%24 = load i8, ptr %23, align 1, !tbaa !14
%25 = add i8 %24, -123
%26 = icmp ult i8 %25, -26
br i1 %26, label %97, label %27
27: ; preds = %21
%28 = add nsw i8 %24, -97
%29 = load ptr, ptr @cmdline_cfg, align 8, !tbaa !6
%30 = zext nneg i8 %28 to i64
%31 = getelementptr inbounds %struct.TYPE_7__, ptr %29, i64 %30
%32 = load i32, ptr %31, align 8, !tbaa !15
%33 = load i32, ptr @CMDLINE_OPTFLAG_ALLOW, align 4, !tbaa !11
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %97, label %36
36: ; preds = %27
%37 = zext nneg i8 %28 to i32
%38 = load ptr, ptr getelementptr inbounds (i8, ptr @cmdline_data, i64 8), align 8, !tbaa !18
%39 = getelementptr inbounds %struct.TYPE_11__, ptr %38, i64 %30
%40 = load i64, ptr %39, align 8, !tbaa !21
%41 = add nsw i64 %40, 1
store i64 %41, ptr %39, align 8, !tbaa !21
br label %62
42: ; preds = %11
%43 = tail call i64 @calloc(i32 noundef 1, i32 noundef 16) #2
%44 = inttoptr i64 %43 to ptr
%45 = icmp eq i64 %43, 0
br i1 %45, label %97, label %46
46: ; preds = %42
%47 = trunc nuw nsw i64 %12 to i32
store i32 %47, ptr %44, align 8, !tbaa !22
%48 = getelementptr inbounds i8, ptr %44, i64 8
store ptr null, ptr %48, align 8, !tbaa !24
%49 = load ptr, ptr getelementptr inbounds (i8, ptr @cmdline_data, i64 8), align 8, !tbaa !18
%50 = zext nneg i32 %13 to i64
%51 = getelementptr inbounds %struct.TYPE_11__, ptr %49, i64 %50
%52 = getelementptr inbounds i8, ptr %51, i64 8
%53 = load i64, ptr %52, align 8, !tbaa !25
%54 = load ptr, ptr @cmdline_cfg, align 8, !tbaa !6
%55 = getelementptr inbounds %struct.TYPE_7__, ptr %54, i64 %50, i32 1
%56 = load i64, ptr %55, align 8, !tbaa !26
%57 = icmp eq i64 %53, %56
br i1 %57, label %58, label %60
58: ; preds = %46
%59 = tail call i32 @cmdline_argadd(ptr noundef nonnull getelementptr inbounds (i8, ptr @cmdline_data, i64 16), ptr noundef nonnull %44) #2
br label %62
60: ; preds = %46
%61 = tail call i32 @cmdline_argadd(ptr noundef nonnull %51, ptr noundef nonnull %44) #2
br label %62
62: ; preds = %58, %60, %36
%63 = phi i32 [ %37, %36 ], [ %13, %60 ], [ %13, %58 ]
%64 = add nuw nsw i64 %12, 1
%65 = icmp eq i64 %64, %5
br i1 %65, label %6, label %11, !llvm.loop !27
66: ; preds = %6, %92
%67 = phi i64 [ 0, %6 ], [ %93, %92 ]
%68 = getelementptr inbounds %struct.TYPE_7__, ptr %7, i64 %67
%69 = load i32, ptr %68, align 8, !tbaa !15
%70 = and i32 %8, %69
%71 = icmp eq i32 %70, 0
br i1 %71, label %92, label %72
72: ; preds = %66
%73 = and i32 %9, %69
%74 = icmp eq i32 %73, 0
%75 = getelementptr inbounds %struct.TYPE_11__, ptr %10, i64 %67
%76 = load i64, ptr %75, align 8, !tbaa !21
%77 = icmp eq i64 %76, 0
br i1 %74, label %85, label %78
78: ; preds = %72
br i1 %77, label %97, label %79
79: ; preds = %78
%80 = getelementptr inbounds i8, ptr %75, i64 8
%81 = load i64, ptr %80, align 8, !tbaa !25
%82 = getelementptr inbounds i8, ptr %68, i64 16
%83 = load i64, ptr %82, align 8, !tbaa !29
%84 = icmp slt i64 %81, %83
br i1 %84, label %97, label %92
85: ; preds = %72
br i1 %77, label %92, label %86
86: ; preds = %85
%87 = getelementptr inbounds i8, ptr %75, i64 8
%88 = load i64, ptr %87, align 8, !tbaa !25
%89 = getelementptr inbounds i8, ptr %68, i64 16
%90 = load i64, ptr %89, align 8, !tbaa !29
%91 = icmp slt i64 %88, %90
br i1 %91, label %97, label %92
92: ; preds = %66, %86, %85, %79
%93 = add nuw nsw i64 %67, 1
%94 = icmp eq i64 %93, 26
br i1 %94, label %95, label %66, !llvm.loop !30
95: ; preds = %92
%96 = load i32, ptr @CMDLINE_TRUE, align 4, !tbaa !11
store i32 %96, ptr @cmdline_data, align 8, !tbaa !31
br label %97
97: ; preds = %42, %27, %21, %18, %86, %79, %78, %95
%98 = phi ptr [ @CMDLINE_ERR_OK, %95 ], [ @CMDLINE_ERR_FEWARG, %86 ], [ @CMDLINE_ERR_FEWARG, %79 ], [ @CMDLINE_ERR_OPTMIS, %78 ], [ @CMDLINE_ERR_NOMEM, %42 ], [ @CMDLINE_ERR_ILLOPT, %27 ], [ @CMDLINE_ERR_INVKEY, %21 ], [ @CMDLINE_ERR_ERROR, %18 ]
%99 = load i32, ptr %98, align 4, !tbaa !11
ret i32 %99
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare i64 @calloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @cmdline_argadd(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_10__", !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 = !{!8, !8, i64 0}
!14 = !{!9, !9, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"TYPE_7__", !12, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"long", !9, i64 0}
!18 = !{!19, !8, i64 8}
!19 = !{!"TYPE_9__", !12, i64 0, !8, i64 8, !20, i64 16}
!20 = !{!"TYPE_11__", !17, i64 0, !17, i64 8}
!21 = !{!20, !17, i64 0}
!22 = !{!23, !12, i64 0}
!23 = !{!"TYPE_8__", !12, i64 0, !8, i64 8}
!24 = !{!23, !8, i64 8}
!25 = !{!20, !17, i64 8}
!26 = !{!16, !17, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!16, !17, i64 16}
!30 = distinct !{!30, !28}
!31 = !{!19, !12, i64 0}
| openwrt_tools_firmware-utils_src_extr_mktitanimg.c_cmdline_read |
; ModuleID = 'AnghaBench/freebsd/sys/netinet/extr_sctp_input.c_sctp_handle_stream_reset_response.c'
source_filename = "AnghaBench/freebsd/sys/netinet/extr_sctp_input.c_sctp_handle_stream_reset_response.c"
target datalayout = "e-m:e-p270:32:32-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.sctp_forward_tsn_chunk = type { i32, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32, i32 }
%struct.sctp_association = type { i64, i64, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, i32, ptr }
%struct.TYPE_7__ = type { i32, i32 }
%struct.TYPE_8__ = type { i32 }
%struct.sctp_stream_reset_response_tsn = type { i32, i32 }
@SCTP_STR_RESET_OUT_REQUEST = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_STREAM_RESET_RESULT_PERFORMED = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_STREAM_RESET_RESULT_DENIED = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_NOTIFY_STR_RESET_DENIED_OUT = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_SO_NOT_LOCKED = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_STREAM_RESET_RESULT_IN_PROGRESS = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_NOTIFY_STR_RESET_FAILED_OUT = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_STR_RESET_IN_REQUEST = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_NOTIFY_STR_RESET_DENIED_IN = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_NOTIFY_STR_RESET_FAILED_IN = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_STR_RESET_ADD_OUT_STREAMS = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_STREAM_OPEN = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_STREAM_CHANGE_DENIED = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_STREAM_CHANGE_FAILED = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_STR_RESET_ADD_IN_STREAMS = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_STR_RESET_TSN_REQUEST = dso_local local_unnamed_addr global i64 0, align 8
@SCTP_FORWARD_CUM_TSN = dso_local local_unnamed_addr global i32 0, align 4
@sctp_logging_level = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_MAP_LOGGING_ENABLE = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_MAP_SLIDE_RESULT = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_ASSOC_RESET_DENIED = dso_local local_unnamed_addr global i32 0, align 4
@SCTP_ASSOC_RESET_FAILED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sctp_handle_stream_reset_response], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sctp_handle_stream_reset_response(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef readonly %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca %struct.sctp_forward_tsn_chunk, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
%8 = load i64, ptr %0, align 8, !tbaa !5
%9 = icmp eq i64 %8, 0
br i1 %9, label %287, label %10
10: ; preds = %4
%11 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !12
%13 = icmp eq i64 %12, %1
br i1 %13, label %14, label %281
14: ; preds = %10
%15 = call ptr @sctp_find_stream_reset(ptr noundef nonnull %0, i64 noundef %1, ptr noundef nonnull %5) #4
%16 = icmp eq ptr %15, null
br i1 %16, label %281, label %17
17: ; preds = %14
%18 = load i64, ptr %11, align 8, !tbaa !12
%19 = add nsw i64 %18, 1
store i64 %19, ptr %11, align 8, !tbaa !12
%20 = getelementptr inbounds %struct.TYPE_7__, ptr %15, i64 0, i32 1
%21 = load i32, ptr %20, align 4, !tbaa !14
%22 = call i32 @ntohs(i32 noundef %21) #4
%23 = sext i32 %22 to i64
%24 = load i32, ptr %15, align 4, !tbaa !17
%25 = call i32 @ntohs(i32 noundef %24) #4
%26 = load i64, ptr @SCTP_STR_RESET_OUT_REQUEST, align 8, !tbaa !18
%27 = icmp eq i64 %26, %23
br i1 %27, label %28, label %66
28: ; preds = %17
%29 = sext i32 %25 to i64
%30 = add nsw i64 %29, -8
%31 = lshr i64 %30, 3
%32 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 2
store i32 0, ptr %32, align 8, !tbaa !19
%33 = load i64, ptr %0, align 8, !tbaa !5
%34 = icmp eq i64 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %28
%36 = add nsw i64 %33, -1
store i64 %36, ptr %0, align 8, !tbaa !5
br label %37
37: ; preds = %35, %28
%38 = phi i64 [ %33, %35 ], [ 1, %28 ]
%39 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !18
%40 = icmp eq i64 %39, %2
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load ptr, ptr %15, align 8, !tbaa !20
%43 = call i32 @sctp_reset_out_streams(ptr noundef nonnull %0, i64 noundef %31, ptr noundef %42) #4
br label %63
44: ; preds = %37
%45 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !18
%46 = icmp eq i64 %45, %2
br i1 %46, label %47, label %52
47: ; preds = %44
%48 = load i32, ptr @SCTP_NOTIFY_STR_RESET_DENIED_OUT, align 4, !tbaa !22
%49 = load ptr, ptr %15, align 8, !tbaa !20
%50 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !22
%51 = call i32 @sctp_ulp_notify(i32 noundef %48, ptr noundef nonnull %0, i64 noundef %31, ptr noundef %49, i32 noundef %50) #4
br label %63
52: ; preds = %44
%53 = load i64, ptr @SCTP_STREAM_RESET_RESULT_IN_PROGRESS, align 8, !tbaa !18
%54 = icmp eq i64 %53, %2
br i1 %54, label %55, label %58
55: ; preds = %52
store i64 %38, ptr %0, align 8, !tbaa !5
%56 = load i64, ptr %11, align 8, !tbaa !12
%57 = add nsw i64 %56, -1
store i64 %57, ptr %11, align 8, !tbaa !12
store i32 1, ptr %32, align 8, !tbaa !19
br label %287
58: ; preds = %52
%59 = load i32, ptr @SCTP_NOTIFY_STR_RESET_FAILED_OUT, align 4, !tbaa !22
%60 = load ptr, ptr %15, align 8, !tbaa !20
%61 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !22
%62 = call i32 @sctp_ulp_notify(i32 noundef %59, ptr noundef nonnull %0, i64 noundef %31, ptr noundef %60, i32 noundef %61) #4
br label %63
63: ; preds = %58, %47, %41
%64 = load ptr, ptr %15, align 8, !tbaa !20
%65 = call i32 @sctp_reset_clear_pending(ptr noundef nonnull %0, i64 noundef %31, ptr noundef %64) #4
br label %276
66: ; preds = %17
%67 = load i64, ptr @SCTP_STR_RESET_IN_REQUEST, align 8, !tbaa !18
%68 = icmp eq i64 %67, %23
br i1 %68, label %69, label %93
69: ; preds = %66
%70 = sext i32 %25 to i64
%71 = add nsw i64 %70, -8
%72 = lshr i64 %71, 3
%73 = load i64, ptr %0, align 8, !tbaa !5
%74 = icmp eq i64 %73, 0
br i1 %74, label %77, label %75
75: ; preds = %69
%76 = add nsw i64 %73, -1
store i64 %76, ptr %0, align 8, !tbaa !5
br label %77
77: ; preds = %75, %69
%78 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !18
%79 = icmp eq i64 %78, %2
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = load i32, ptr @SCTP_NOTIFY_STR_RESET_DENIED_IN, align 4, !tbaa !22
%82 = load ptr, ptr %15, align 8, !tbaa !23
%83 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !22
%84 = call i32 @sctp_ulp_notify(i32 noundef %81, ptr noundef nonnull %0, i64 noundef %72, ptr noundef %82, i32 noundef %83) #4
br label %276
85: ; preds = %77
%86 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !18
%87 = icmp eq i64 %86, %2
br i1 %87, label %276, label %88
88: ; preds = %85
%89 = load i32, ptr @SCTP_NOTIFY_STR_RESET_FAILED_IN, align 4, !tbaa !22
%90 = load ptr, ptr %15, align 8, !tbaa !23
%91 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !22
%92 = call i32 @sctp_ulp_notify(i32 noundef %89, ptr noundef nonnull %0, i64 noundef %72, ptr noundef %90, i32 noundef %91) #4
br label %276
93: ; preds = %66
%94 = load i64, ptr @SCTP_STR_RESET_ADD_OUT_STREAMS, align 8, !tbaa !18
%95 = icmp eq i64 %94, %23
br i1 %95, label %96, label %161
96: ; preds = %93
%97 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 3
%98 = load i32, ptr %97, align 4, !tbaa !25
%99 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 4
%100 = load i32, ptr %99, align 8, !tbaa !26
%101 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 5
%102 = load i32, ptr %101, align 4, !tbaa !27
%103 = sub nsw i32 %100, %102
%104 = call i32 @llvm.smin.i32(i32 %98, i32 %103)
store i32 0, ptr %97, align 4, !tbaa !25
%105 = load i64, ptr %0, align 8, !tbaa !5
%106 = icmp eq i64 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %96
%108 = add nsw i64 %105, -1
store i64 %108, ptr %0, align 8, !tbaa !5
br label %109
109: ; preds = %107, %96
%110 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !18
%111 = icmp eq i64 %110, %2
br i1 %111, label %112, label %150
112: ; preds = %109
%113 = add nsw i32 %104, %102
%114 = icmp sgt i32 %104, 0
br i1 %114, label %115, label %146
115: ; preds = %112
%116 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 17
%117 = load ptr, ptr %116, align 8, !tbaa !28
%118 = sext i32 %102 to i64
%119 = sext i32 %113 to i64
%120 = load i32, ptr @SCTP_STREAM_OPEN, align 4, !tbaa !22
%121 = add nsw i64 %118, 1
%122 = call i64 @llvm.smax.i64(i64 %121, i64 %119)
%123 = sub i64 %122, %118
%124 = icmp ult i64 %123, 8
br i1 %124, label %139, label %125
125: ; preds = %115
%126 = and i64 %123, -8
%127 = add i64 %126, %118
%128 = insertelement <4 x i32> poison, i32 %120, i64 0
%129 = shufflevector <4 x i32> %128, <4 x i32> poison, <4 x i32> zeroinitializer
%130 = getelementptr %struct.TYPE_8__, ptr %117, i64 %118
br label %131
131: ; preds = %131, %125
%132 = phi i64 [ 0, %125 ], [ %135, %131 ]
%133 = getelementptr %struct.TYPE_8__, ptr %130, i64 %132
%134 = getelementptr inbounds i32, ptr %133, i64 4
store <4 x i32> %129, ptr %133, align 4, !tbaa !29
store <4 x i32> %129, ptr %134, align 4, !tbaa !29
%135 = add nuw i64 %132, 8
%136 = icmp eq i64 %135, %126
br i1 %136, label %137, label %131, !llvm.loop !31
137: ; preds = %131
%138 = icmp eq i64 %123, %126
br i1 %138, label %146, label %139
139: ; preds = %115, %137
%140 = phi i64 [ %118, %115 ], [ %127, %137 ]
br label %141
141: ; preds = %139, %141
%142 = phi i64 [ %144, %141 ], [ %140, %139 ]
%143 = getelementptr inbounds %struct.TYPE_8__, ptr %117, i64 %142
store i32 %120, ptr %143, align 4, !tbaa !29
%144 = add nsw i64 %142, 1
%145 = icmp slt i64 %144, %119
br i1 %145, label %141, label %146, !llvm.loop !35
146: ; preds = %141, %137, %112
store i32 %113, ptr %101, align 4, !tbaa !27
%147 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 16
%148 = load i32, ptr %147, align 8, !tbaa !36
%149 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %148, i32 noundef %113, i32 noundef 0) #4
br label %276
150: ; preds = %109
%151 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !18
%152 = icmp eq i64 %151, %2
%153 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 16
%154 = load i32, ptr %153, align 8, !tbaa !36
br i1 %152, label %155, label %158
155: ; preds = %150
%156 = load i32, ptr @SCTP_STREAM_CHANGE_DENIED, align 4, !tbaa !22
%157 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %154, i32 noundef %102, i32 noundef %156) #4
br label %276
158: ; preds = %150
%159 = load i32, ptr @SCTP_STREAM_CHANGE_FAILED, align 4, !tbaa !22
%160 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %154, i32 noundef %102, i32 noundef %159) #4
br label %276
161: ; preds = %93
%162 = load i64, ptr @SCTP_STR_RESET_ADD_IN_STREAMS, align 8, !tbaa !18
%163 = icmp eq i64 %162, %23
br i1 %163, label %164, label %189
164: ; preds = %161
%165 = load i64, ptr %0, align 8, !tbaa !5
%166 = icmp eq i64 %165, 0
br i1 %166, label %169, label %167
167: ; preds = %164
%168 = add nsw i64 %165, -1
store i64 %168, ptr %0, align 8, !tbaa !5
br label %169
169: ; preds = %167, %164
%170 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !18
%171 = icmp eq i64 %170, %2
br i1 %171, label %172, label %179
172: ; preds = %169
%173 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 16
%174 = load i32, ptr %173, align 8, !tbaa !36
%175 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 5
%176 = load i32, ptr %175, align 4, !tbaa !37
%177 = load i32, ptr @SCTP_STREAM_CHANGE_DENIED, align 4, !tbaa !22
%178 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %174, i32 noundef %176, i32 noundef %177) #4
br label %276
179: ; preds = %169
%180 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !18
%181 = icmp eq i64 %180, %2
br i1 %181, label %276, label %182
182: ; preds = %179
%183 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 16
%184 = load i32, ptr %183, align 8, !tbaa !36
%185 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 5
%186 = load i32, ptr %185, align 4, !tbaa !37
%187 = load i32, ptr @SCTP_STREAM_CHANGE_FAILED, align 4, !tbaa !22
%188 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %184, i32 noundef %186, i32 noundef %187) #4
br label %276
189: ; preds = %161
%190 = load i64, ptr @SCTP_STR_RESET_TSN_REQUEST, align 8, !tbaa !18
%191 = icmp eq i64 %190, %23
br i1 %191, label %192, label %276
192: ; preds = %189
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
store i32 0, ptr %7, align 4, !tbaa !22
%193 = icmp eq ptr %3, null
br i1 %193, label %274, label %194
194: ; preds = %192
%195 = load i32, ptr %3, align 4, !tbaa !38
%196 = call i32 @ntohs(i32 noundef %195) #4
%197 = icmp ult i32 %196, 8
br i1 %197, label %274, label %198
198: ; preds = %194
%199 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !18
%200 = icmp eq i64 %199, %2
br i1 %200, label %201, label %259
201: ; preds = %198
%202 = load i64, ptr %0, align 8, !tbaa !5
%203 = add nsw i64 %202, -1
store i64 %203, ptr %0, align 8, !tbaa !5
%204 = call i32 @htons(i32 noundef 12) #4
%205 = getelementptr inbounds %struct.sctp_forward_tsn_chunk, ptr %6, i64 0, i32 1
%206 = getelementptr inbounds %struct.sctp_forward_tsn_chunk, ptr %6, i64 0, i32 1, i32 1
store i32 %204, ptr %206, align 4, !tbaa !41
%207 = load i32, ptr @SCTP_FORWARD_CUM_TSN, align 4, !tbaa !22
store i32 %207, ptr %205, align 4, !tbaa !44
%208 = getelementptr inbounds %struct.sctp_stream_reset_response_tsn, ptr %3, i64 0, i32 1
%209 = load i32, ptr %208, align 4, !tbaa !45
%210 = call ptr @ntohl(i32 noundef %209) #4
%211 = getelementptr inbounds i8, ptr %210, i64 -1
%212 = call i32 @htonl(ptr noundef nonnull %211) #4
store i32 %212, ptr %6, align 4, !tbaa !47
%213 = call i32 @sctp_handle_forward_tsn(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef null, i32 noundef 0) #4
%214 = load i32, ptr %7, align 4, !tbaa !22
%215 = icmp eq i32 %214, 0
br i1 %215, label %216, label %274
216: ; preds = %201
%217 = load i32, ptr %208, align 4, !tbaa !45
%218 = call ptr @ntohl(i32 noundef %217) #4
%219 = getelementptr inbounds i8, ptr %218, i64 -1
%220 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 12
store ptr %219, ptr %220, align 8, !tbaa !48
%221 = load i32, ptr @sctp_logging_level, align 4, !tbaa !22
%222 = call i32 @SCTP_BASE_SYSCTL(i32 noundef %221) #4
%223 = load i32, ptr @SCTP_MAP_LOGGING_ENABLE, align 4, !tbaa !22
%224 = and i32 %223, %222
%225 = icmp eq i32 %224, 0
br i1 %225, label %230, label %226
226: ; preds = %216
%227 = load ptr, ptr %220, align 8, !tbaa !49
%228 = load i32, ptr @SCTP_MAP_SLIDE_RESULT, align 4, !tbaa !22
%229 = call i32 @sctp_log_map(i32 noundef 0, i32 noundef 7, ptr noundef %227, i32 noundef %228) #4
br label %230
230: ; preds = %226, %216
%231 = load ptr, ptr %220, align 8, !tbaa !48
%232 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 8
store ptr %231, ptr %232, align 8, !tbaa !50
%233 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 15
store ptr %231, ptr %233, align 8, !tbaa !51
%234 = load i32, ptr %208, align 4, !tbaa !45
%235 = call ptr @ntohl(i32 noundef %234) #4
%236 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 6
store ptr %235, ptr %236, align 8, !tbaa !52
%237 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 14
%238 = load i32, ptr %237, align 8, !tbaa !53
%239 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 10
%240 = load i32, ptr %239, align 8, !tbaa !54
%241 = call i32 @memset(i32 noundef %238, i32 noundef 0, i32 noundef %240) #4
%242 = load ptr, ptr %220, align 8, !tbaa !48
%243 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 13
store ptr %242, ptr %243, align 8, !tbaa !55
%244 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 11
%245 = load i32, ptr %244, align 4, !tbaa !56
%246 = load i32, ptr %239, align 8, !tbaa !54
%247 = call i32 @memset(i32 noundef %245, i32 noundef 0, i32 noundef %246) #4
%248 = load i32, ptr %3, align 4, !tbaa !57
%249 = call ptr @ntohl(i32 noundef %248) #4
%250 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 7
store ptr %249, ptr %250, align 8, !tbaa !58
%251 = load ptr, ptr %232, align 8, !tbaa !50
%252 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 9
store ptr %251, ptr %252, align 8, !tbaa !59
%253 = call i32 @sctp_reset_out_streams(ptr noundef nonnull %0, i64 noundef 0, ptr noundef null) #4
%254 = call i32 @sctp_reset_in_stream(ptr noundef nonnull %0, i32 noundef 0, ptr noundef null) #4
%255 = load ptr, ptr %250, align 8, !tbaa !58
%256 = load ptr, ptr %236, align 8, !tbaa !52
%257 = getelementptr inbounds i8, ptr %256, i64 1
%258 = call i32 @sctp_notify_stream_reset_tsn(ptr noundef nonnull %0, ptr noundef %255, ptr noundef nonnull %257, i32 noundef 0) #4
br label %273
259: ; preds = %198
%260 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !18
%261 = icmp eq i64 %260, %2
%262 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 7
%263 = load ptr, ptr %262, align 8, !tbaa !58
%264 = getelementptr inbounds %struct.sctp_association, ptr %0, i64 0, i32 6
%265 = load ptr, ptr %264, align 8, !tbaa !52
%266 = getelementptr inbounds i8, ptr %265, i64 1
br i1 %261, label %267, label %270
267: ; preds = %259
%268 = load i32, ptr @SCTP_ASSOC_RESET_DENIED, align 4, !tbaa !22
%269 = call i32 @sctp_notify_stream_reset_tsn(ptr noundef nonnull %0, ptr noundef %263, ptr noundef nonnull %266, i32 noundef %268) #4
br label %273
270: ; preds = %259
%271 = load i32, ptr @SCTP_ASSOC_RESET_FAILED, align 4, !tbaa !22
%272 = call i32 @sctp_notify_stream_reset_tsn(ptr noundef nonnull %0, ptr noundef %263, ptr noundef nonnull %266, i32 noundef %271) #4
br label %273
273: ; preds = %267, %270, %230
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
br label %276
274: ; preds = %201, %194, %192
%275 = phi i32 [ 0, %192 ], [ 0, %194 ], [ 1, %201 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
br label %287
276: ; preds = %273, %146, %158, %155, %63, %85, %88, %80, %179, %182, %172, %189
%277 = load i64, ptr %0, align 8, !tbaa !5
%278 = icmp eq i64 %277, 0
br i1 %278, label %279, label %287
279: ; preds = %276
%280 = call i32 @sctp_clean_up_stream_reset(ptr noundef nonnull %0) #4
br label %281
281: ; preds = %14, %279, %10
%282 = load i64, ptr %0, align 8, !tbaa !5
%283 = icmp eq i64 %282, 0
br i1 %283, label %284, label %287
284: ; preds = %281
%285 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !22
%286 = call i32 @sctp_send_stream_reset_out_if_possible(ptr noundef nonnull %0, i32 noundef %285) #4
br label %287
287: ; preds = %55, %276, %274, %281, %284, %4
%288 = phi i32 [ %275, %274 ], [ 0, %4 ], [ 0, %284 ], [ 0, %281 ], [ 0, %276 ], [ 0, %55 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
ret i32 %288
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sctp_find_stream_reset(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ntohs(i32 noundef) local_unnamed_addr #2
declare i32 @sctp_reset_out_streams(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sctp_ulp_notify(i32 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sctp_reset_clear_pending(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @sctp_notify_stream_reset_add(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @htonl(ptr noundef) local_unnamed_addr #2
declare ptr @ntohl(i32 noundef) local_unnamed_addr #2
declare i32 @sctp_handle_forward_tsn(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @SCTP_BASE_SYSCTL(i32 noundef) local_unnamed_addr #2
declare i32 @sctp_log_map(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sctp_reset_in_stream(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sctp_notify_stream_reset_tsn(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sctp_clean_up_stream_reset(ptr noundef) local_unnamed_addr #2
declare i32 @sctp_send_stream_reset_out_if_possible(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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, !7, i64 0}
!6 = !{!"sctp_association", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !10, i64 64, !10, i64 68, !11, i64 72, !11, i64 80, !10, i64 88, !11, i64 96, !10, i64 104, !11, i64 112}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"sctp_tcb", !6, i64 0}
!14 = !{!15, !10, i64 4}
!15 = !{!"sctp_stream_reset_request", !16, i64 0}
!16 = !{!"TYPE_7__", !10, i64 0, !10, i64 4}
!17 = !{!15, !10, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!6, !10, i64 16}
!20 = !{!21, !11, i64 0}
!21 = !{!"sctp_stream_reset_out_request", !11, i64 0}
!22 = !{!10, !10, i64 0}
!23 = !{!24, !11, i64 0}
!24 = !{!"sctp_stream_reset_in_request", !11, i64 0}
!25 = !{!13, !10, i64 20}
!26 = !{!13, !10, i64 24}
!27 = !{!6, !10, i64 28}
!28 = !{!6, !11, i64 112}
!29 = !{!30, !10, i64 0}
!30 = !{!"TYPE_8__", !10, i64 0}
!31 = distinct !{!31, !32, !33, !34}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!"llvm.loop.isvectorized", i32 1}
!34 = !{!"llvm.loop.unroll.runtime.disable"}
!35 = distinct !{!35, !32, !34, !33}
!36 = !{!13, !10, i64 104}
!37 = !{!13, !10, i64 28}
!38 = !{!39, !10, i64 0}
!39 = !{!"sctp_stream_reset_response", !40, i64 0}
!40 = !{!"TYPE_5__", !10, i64 0}
!41 = !{!42, !10, i64 8}
!42 = !{!"sctp_forward_tsn_chunk", !10, i64 0, !43, i64 4}
!43 = !{!"TYPE_6__", !10, i64 0, !10, i64 4}
!44 = !{!42, !10, i64 4}
!45 = !{!46, !10, i64 4}
!46 = !{!"sctp_stream_reset_response_tsn", !10, i64 0, !10, i64 4}
!47 = !{!42, !10, i64 0}
!48 = !{!13, !11, i64 72}
!49 = !{!6, !11, i64 72}
!50 = !{!13, !11, i64 48}
!51 = !{!13, !11, i64 96}
!52 = !{!13, !11, i64 32}
!53 = !{!13, !10, i64 88}
!54 = !{!13, !10, i64 64}
!55 = !{!13, !11, i64 80}
!56 = !{!13, !10, i64 68}
!57 = !{!46, !10, i64 0}
!58 = !{!13, !11, i64 40}
!59 = !{!13, !11, i64 56}
| ; ModuleID = 'AnghaBench/freebsd/sys/netinet/extr_sctp_input.c_sctp_handle_stream_reset_response.c'
source_filename = "AnghaBench/freebsd/sys/netinet/extr_sctp_input.c_sctp_handle_stream_reset_response.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.sctp_forward_tsn_chunk = type { i32, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_8__ = type { i32 }
@SCTP_STR_RESET_OUT_REQUEST = common local_unnamed_addr global i64 0, align 8
@SCTP_STREAM_RESET_RESULT_PERFORMED = common local_unnamed_addr global i64 0, align 8
@SCTP_STREAM_RESET_RESULT_DENIED = common local_unnamed_addr global i64 0, align 8
@SCTP_NOTIFY_STR_RESET_DENIED_OUT = common local_unnamed_addr global i32 0, align 4
@SCTP_SO_NOT_LOCKED = common local_unnamed_addr global i32 0, align 4
@SCTP_STREAM_RESET_RESULT_IN_PROGRESS = common local_unnamed_addr global i64 0, align 8
@SCTP_NOTIFY_STR_RESET_FAILED_OUT = common local_unnamed_addr global i32 0, align 4
@SCTP_STR_RESET_IN_REQUEST = common local_unnamed_addr global i64 0, align 8
@SCTP_NOTIFY_STR_RESET_DENIED_IN = common local_unnamed_addr global i32 0, align 4
@SCTP_NOTIFY_STR_RESET_FAILED_IN = common local_unnamed_addr global i32 0, align 4
@SCTP_STR_RESET_ADD_OUT_STREAMS = common local_unnamed_addr global i64 0, align 8
@SCTP_STREAM_OPEN = common local_unnamed_addr global i32 0, align 4
@SCTP_STREAM_CHANGE_DENIED = common local_unnamed_addr global i32 0, align 4
@SCTP_STREAM_CHANGE_FAILED = common local_unnamed_addr global i32 0, align 4
@SCTP_STR_RESET_ADD_IN_STREAMS = common local_unnamed_addr global i64 0, align 8
@SCTP_STR_RESET_TSN_REQUEST = common local_unnamed_addr global i64 0, align 8
@SCTP_FORWARD_CUM_TSN = common local_unnamed_addr global i32 0, align 4
@sctp_logging_level = common local_unnamed_addr global i32 0, align 4
@SCTP_MAP_LOGGING_ENABLE = common local_unnamed_addr global i32 0, align 4
@SCTP_MAP_SLIDE_RESULT = common local_unnamed_addr global i32 0, align 4
@SCTP_ASSOC_RESET_DENIED = common local_unnamed_addr global i32 0, align 4
@SCTP_ASSOC_RESET_FAILED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sctp_handle_stream_reset_response], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @sctp_handle_stream_reset_response(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef readonly %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca %struct.sctp_forward_tsn_chunk, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
%8 = load i64, ptr %0, align 8, !tbaa !6
%9 = icmp eq i64 %8, 0
br i1 %9, label %289, label %10
10: ; preds = %4
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !13
%13 = icmp eq i64 %12, %1
br i1 %13, label %14, label %283
14: ; preds = %10
%15 = call ptr @sctp_find_stream_reset(ptr noundef nonnull %0, i64 noundef %1, ptr noundef nonnull %5) #4
%16 = icmp eq ptr %15, null
br i1 %16, label %283, label %17
17: ; preds = %14
%18 = load i64, ptr %11, align 8, !tbaa !13
%19 = add nsw i64 %18, 1
store i64 %19, ptr %11, align 8, !tbaa !13
%20 = getelementptr inbounds i8, ptr %15, i64 4
%21 = load i32, ptr %20, align 4, !tbaa !15
%22 = call i32 @ntohs(i32 noundef %21) #4
%23 = sext i32 %22 to i64
%24 = load i32, ptr %15, align 4, !tbaa !18
%25 = call i32 @ntohs(i32 noundef %24) #4
%26 = load i64, ptr @SCTP_STR_RESET_OUT_REQUEST, align 8, !tbaa !19
%27 = icmp eq i64 %26, %23
br i1 %27, label %28, label %66
28: ; preds = %17
%29 = sext i32 %25 to i64
%30 = add nsw i64 %29, -8
%31 = lshr i64 %30, 3
%32 = getelementptr inbounds i8, ptr %0, i64 16
store i32 0, ptr %32, align 8, !tbaa !20
%33 = load i64, ptr %0, align 8, !tbaa !6
%34 = icmp eq i64 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %28
%36 = add nsw i64 %33, -1
store i64 %36, ptr %0, align 8, !tbaa !6
br label %37
37: ; preds = %35, %28
%38 = phi i64 [ %33, %35 ], [ 1, %28 ]
%39 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !19
%40 = icmp eq i64 %39, %2
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load ptr, ptr %15, align 8, !tbaa !21
%43 = call i32 @sctp_reset_out_streams(ptr noundef nonnull %0, i64 noundef %31, ptr noundef %42) #4
br label %63
44: ; preds = %37
%45 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !19
%46 = icmp eq i64 %45, %2
br i1 %46, label %47, label %52
47: ; preds = %44
%48 = load i32, ptr @SCTP_NOTIFY_STR_RESET_DENIED_OUT, align 4, !tbaa !23
%49 = load ptr, ptr %15, align 8, !tbaa !21
%50 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !23
%51 = call i32 @sctp_ulp_notify(i32 noundef %48, ptr noundef nonnull %0, i64 noundef %31, ptr noundef %49, i32 noundef %50) #4
br label %63
52: ; preds = %44
%53 = load i64, ptr @SCTP_STREAM_RESET_RESULT_IN_PROGRESS, align 8, !tbaa !19
%54 = icmp eq i64 %53, %2
br i1 %54, label %55, label %58
55: ; preds = %52
store i64 %38, ptr %0, align 8, !tbaa !6
%56 = load i64, ptr %11, align 8, !tbaa !13
%57 = add nsw i64 %56, -1
store i64 %57, ptr %11, align 8, !tbaa !13
store i32 1, ptr %32, align 8, !tbaa !20
br label %289
58: ; preds = %52
%59 = load i32, ptr @SCTP_NOTIFY_STR_RESET_FAILED_OUT, align 4, !tbaa !23
%60 = load ptr, ptr %15, align 8, !tbaa !21
%61 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !23
%62 = call i32 @sctp_ulp_notify(i32 noundef %59, ptr noundef nonnull %0, i64 noundef %31, ptr noundef %60, i32 noundef %61) #4
br label %63
63: ; preds = %58, %47, %41
%64 = load ptr, ptr %15, align 8, !tbaa !21
%65 = call i32 @sctp_reset_clear_pending(ptr noundef nonnull %0, i64 noundef %31, ptr noundef %64) #4
br label %278
66: ; preds = %17
%67 = load i64, ptr @SCTP_STR_RESET_IN_REQUEST, align 8, !tbaa !19
%68 = icmp eq i64 %67, %23
br i1 %68, label %69, label %93
69: ; preds = %66
%70 = sext i32 %25 to i64
%71 = add nsw i64 %70, -8
%72 = lshr i64 %71, 3
%73 = load i64, ptr %0, align 8, !tbaa !6
%74 = icmp eq i64 %73, 0
br i1 %74, label %77, label %75
75: ; preds = %69
%76 = add nsw i64 %73, -1
store i64 %76, ptr %0, align 8, !tbaa !6
br label %77
77: ; preds = %75, %69
%78 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !19
%79 = icmp eq i64 %78, %2
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = load i32, ptr @SCTP_NOTIFY_STR_RESET_DENIED_IN, align 4, !tbaa !23
%82 = load ptr, ptr %15, align 8, !tbaa !24
%83 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !23
%84 = call i32 @sctp_ulp_notify(i32 noundef %81, ptr noundef nonnull %0, i64 noundef %72, ptr noundef %82, i32 noundef %83) #4
br label %278
85: ; preds = %77
%86 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !19
%87 = icmp eq i64 %86, %2
br i1 %87, label %278, label %88
88: ; preds = %85
%89 = load i32, ptr @SCTP_NOTIFY_STR_RESET_FAILED_IN, align 4, !tbaa !23
%90 = load ptr, ptr %15, align 8, !tbaa !24
%91 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !23
%92 = call i32 @sctp_ulp_notify(i32 noundef %89, ptr noundef nonnull %0, i64 noundef %72, ptr noundef %90, i32 noundef %91) #4
br label %278
93: ; preds = %66
%94 = load i64, ptr @SCTP_STR_RESET_ADD_OUT_STREAMS, align 8, !tbaa !19
%95 = icmp eq i64 %94, %23
br i1 %95, label %96, label %163
96: ; preds = %93
%97 = getelementptr inbounds i8, ptr %0, i64 20
%98 = load i32, ptr %97, align 4, !tbaa !26
%99 = getelementptr inbounds i8, ptr %0, i64 24
%100 = load i32, ptr %99, align 8, !tbaa !27
%101 = getelementptr inbounds i8, ptr %0, i64 28
%102 = load i32, ptr %101, align 4, !tbaa !28
%103 = sub nsw i32 %100, %102
%104 = call i32 @llvm.smin.i32(i32 %98, i32 %103)
store i32 0, ptr %97, align 4, !tbaa !26
%105 = load i64, ptr %0, align 8, !tbaa !6
%106 = icmp eq i64 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %96
%108 = add nsw i64 %105, -1
store i64 %108, ptr %0, align 8, !tbaa !6
br label %109
109: ; preds = %107, %96
%110 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !19
%111 = icmp eq i64 %110, %2
br i1 %111, label %112, label %152
112: ; preds = %109
%113 = add nsw i32 %104, %102
%114 = icmp sgt i32 %104, 0
br i1 %114, label %115, label %148
115: ; preds = %112
%116 = getelementptr inbounds i8, ptr %0, i64 112
%117 = load ptr, ptr %116, align 8, !tbaa !29
%118 = sext i32 %102 to i64
%119 = sext i32 %113 to i64
%120 = load i32, ptr @SCTP_STREAM_OPEN, align 4, !tbaa !23
%121 = add nsw i64 %118, 1
%122 = call i64 @llvm.smax.i64(i64 %121, i64 %119)
%123 = sub i64 %122, %118
%124 = icmp ult i64 %123, 16
br i1 %124, label %141, label %125
125: ; preds = %115
%126 = and i64 %123, -16
%127 = add i64 %126, %118
%128 = insertelement <4 x i32> poison, i32 %120, i64 0
%129 = shufflevector <4 x i32> %128, <4 x i32> poison, <4 x i32> zeroinitializer
%130 = getelementptr %struct.TYPE_8__, ptr %117, i64 %118
br label %131
131: ; preds = %131, %125
%132 = phi i64 [ 0, %125 ], [ %137, %131 ]
%133 = getelementptr %struct.TYPE_8__, ptr %130, i64 %132
%134 = getelementptr inbounds i8, ptr %133, i64 16
%135 = getelementptr inbounds i8, ptr %133, i64 32
%136 = getelementptr inbounds i8, ptr %133, i64 48
store <4 x i32> %129, ptr %133, align 4, !tbaa !30
store <4 x i32> %129, ptr %134, align 4, !tbaa !30
store <4 x i32> %129, ptr %135, align 4, !tbaa !30
store <4 x i32> %129, ptr %136, align 4, !tbaa !30
%137 = add nuw i64 %132, 16
%138 = icmp eq i64 %137, %126
br i1 %138, label %139, label %131, !llvm.loop !32
139: ; preds = %131
%140 = icmp eq i64 %123, %126
br i1 %140, label %148, label %141
141: ; preds = %139, %115
%142 = phi i64 [ %118, %115 ], [ %127, %139 ]
br label %143
143: ; preds = %141, %143
%144 = phi i64 [ %146, %143 ], [ %142, %141 ]
%145 = getelementptr inbounds %struct.TYPE_8__, ptr %117, i64 %144
store i32 %120, ptr %145, align 4, !tbaa !30
%146 = add nsw i64 %144, 1
%147 = icmp slt i64 %146, %119
br i1 %147, label %143, label %148, !llvm.loop !36
148: ; preds = %143, %139, %112
store i32 %113, ptr %101, align 4, !tbaa !28
%149 = getelementptr inbounds i8, ptr %0, i64 104
%150 = load i32, ptr %149, align 8, !tbaa !37
%151 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %150, i32 noundef %113, i32 noundef 0) #4
br label %278
152: ; preds = %109
%153 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !19
%154 = icmp eq i64 %153, %2
%155 = getelementptr inbounds i8, ptr %0, i64 104
%156 = load i32, ptr %155, align 8, !tbaa !37
br i1 %154, label %157, label %160
157: ; preds = %152
%158 = load i32, ptr @SCTP_STREAM_CHANGE_DENIED, align 4, !tbaa !23
%159 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %156, i32 noundef %102, i32 noundef %158) #4
br label %278
160: ; preds = %152
%161 = load i32, ptr @SCTP_STREAM_CHANGE_FAILED, align 4, !tbaa !23
%162 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %156, i32 noundef %102, i32 noundef %161) #4
br label %278
163: ; preds = %93
%164 = load i64, ptr @SCTP_STR_RESET_ADD_IN_STREAMS, align 8, !tbaa !19
%165 = icmp eq i64 %164, %23
br i1 %165, label %166, label %191
166: ; preds = %163
%167 = load i64, ptr %0, align 8, !tbaa !6
%168 = icmp eq i64 %167, 0
br i1 %168, label %171, label %169
169: ; preds = %166
%170 = add nsw i64 %167, -1
store i64 %170, ptr %0, align 8, !tbaa !6
br label %171
171: ; preds = %169, %166
%172 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !19
%173 = icmp eq i64 %172, %2
br i1 %173, label %174, label %181
174: ; preds = %171
%175 = getelementptr inbounds i8, ptr %0, i64 104
%176 = load i32, ptr %175, align 8, !tbaa !37
%177 = getelementptr inbounds i8, ptr %0, i64 28
%178 = load i32, ptr %177, align 4, !tbaa !38
%179 = load i32, ptr @SCTP_STREAM_CHANGE_DENIED, align 4, !tbaa !23
%180 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %176, i32 noundef %178, i32 noundef %179) #4
br label %278
181: ; preds = %171
%182 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !19
%183 = icmp eq i64 %182, %2
br i1 %183, label %278, label %184
184: ; preds = %181
%185 = getelementptr inbounds i8, ptr %0, i64 104
%186 = load i32, ptr %185, align 8, !tbaa !37
%187 = getelementptr inbounds i8, ptr %0, i64 28
%188 = load i32, ptr %187, align 4, !tbaa !38
%189 = load i32, ptr @SCTP_STREAM_CHANGE_FAILED, align 4, !tbaa !23
%190 = call i32 @sctp_notify_stream_reset_add(ptr noundef nonnull %0, i32 noundef %186, i32 noundef %188, i32 noundef %189) #4
br label %278
191: ; preds = %163
%192 = load i64, ptr @SCTP_STR_RESET_TSN_REQUEST, align 8, !tbaa !19
%193 = icmp eq i64 %192, %23
br i1 %193, label %194, label %278
194: ; preds = %191
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
store i32 0, ptr %7, align 4, !tbaa !23
%195 = icmp eq ptr %3, null
br i1 %195, label %276, label %196
196: ; preds = %194
%197 = load i32, ptr %3, align 4, !tbaa !39
%198 = call i32 @ntohs(i32 noundef %197) #4
%199 = icmp ult i32 %198, 8
br i1 %199, label %276, label %200
200: ; preds = %196
%201 = load i64, ptr @SCTP_STREAM_RESET_RESULT_PERFORMED, align 8, !tbaa !19
%202 = icmp eq i64 %201, %2
br i1 %202, label %203, label %261
203: ; preds = %200
%204 = load i64, ptr %0, align 8, !tbaa !6
%205 = add nsw i64 %204, -1
store i64 %205, ptr %0, align 8, !tbaa !6
%206 = call i32 @htons(i32 noundef 12) #4
%207 = getelementptr inbounds i8, ptr %6, i64 4
%208 = getelementptr inbounds i8, ptr %6, i64 8
store i32 %206, ptr %208, align 4, !tbaa !42
%209 = load i32, ptr @SCTP_FORWARD_CUM_TSN, align 4, !tbaa !23
store i32 %209, ptr %207, align 4, !tbaa !45
%210 = getelementptr inbounds i8, ptr %3, i64 4
%211 = load i32, ptr %210, align 4, !tbaa !46
%212 = call ptr @ntohl(i32 noundef %211) #4
%213 = getelementptr inbounds i8, ptr %212, i64 -1
%214 = call i32 @htonl(ptr noundef nonnull %213) #4
store i32 %214, ptr %6, align 4, !tbaa !48
%215 = call i32 @sctp_handle_forward_tsn(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef null, i32 noundef 0) #4
%216 = load i32, ptr %7, align 4, !tbaa !23
%217 = icmp eq i32 %216, 0
br i1 %217, label %218, label %276
218: ; preds = %203
%219 = load i32, ptr %210, align 4, !tbaa !46
%220 = call ptr @ntohl(i32 noundef %219) #4
%221 = getelementptr inbounds i8, ptr %220, i64 -1
%222 = getelementptr inbounds i8, ptr %0, i64 72
store ptr %221, ptr %222, align 8, !tbaa !49
%223 = load i32, ptr @sctp_logging_level, align 4, !tbaa !23
%224 = call i32 @SCTP_BASE_SYSCTL(i32 noundef %223) #4
%225 = load i32, ptr @SCTP_MAP_LOGGING_ENABLE, align 4, !tbaa !23
%226 = and i32 %225, %224
%227 = icmp eq i32 %226, 0
br i1 %227, label %232, label %228
228: ; preds = %218
%229 = load ptr, ptr %222, align 8, !tbaa !50
%230 = load i32, ptr @SCTP_MAP_SLIDE_RESULT, align 4, !tbaa !23
%231 = call i32 @sctp_log_map(i32 noundef 0, i32 noundef 7, ptr noundef %229, i32 noundef %230) #4
br label %232
232: ; preds = %228, %218
%233 = load ptr, ptr %222, align 8, !tbaa !49
%234 = getelementptr inbounds i8, ptr %0, i64 48
store ptr %233, ptr %234, align 8, !tbaa !51
%235 = getelementptr inbounds i8, ptr %0, i64 96
store ptr %233, ptr %235, align 8, !tbaa !52
%236 = load i32, ptr %210, align 4, !tbaa !46
%237 = call ptr @ntohl(i32 noundef %236) #4
%238 = getelementptr inbounds i8, ptr %0, i64 32
store ptr %237, ptr %238, align 8, !tbaa !53
%239 = getelementptr inbounds i8, ptr %0, i64 88
%240 = load i32, ptr %239, align 8, !tbaa !54
%241 = getelementptr inbounds i8, ptr %0, i64 64
%242 = load i32, ptr %241, align 8, !tbaa !55
%243 = call i32 @memset(i32 noundef %240, i32 noundef 0, i32 noundef %242) #4
%244 = load ptr, ptr %222, align 8, !tbaa !49
%245 = getelementptr inbounds i8, ptr %0, i64 80
store ptr %244, ptr %245, align 8, !tbaa !56
%246 = getelementptr inbounds i8, ptr %0, i64 68
%247 = load i32, ptr %246, align 4, !tbaa !57
%248 = load i32, ptr %241, align 8, !tbaa !55
%249 = call i32 @memset(i32 noundef %247, i32 noundef 0, i32 noundef %248) #4
%250 = load i32, ptr %3, align 4, !tbaa !58
%251 = call ptr @ntohl(i32 noundef %250) #4
%252 = getelementptr inbounds i8, ptr %0, i64 40
store ptr %251, ptr %252, align 8, !tbaa !59
%253 = load ptr, ptr %234, align 8, !tbaa !51
%254 = getelementptr inbounds i8, ptr %0, i64 56
store ptr %253, ptr %254, align 8, !tbaa !60
%255 = call i32 @sctp_reset_out_streams(ptr noundef nonnull %0, i64 noundef 0, ptr noundef null) #4
%256 = call i32 @sctp_reset_in_stream(ptr noundef nonnull %0, i32 noundef 0, ptr noundef null) #4
%257 = load ptr, ptr %252, align 8, !tbaa !59
%258 = load ptr, ptr %238, align 8, !tbaa !53
%259 = getelementptr inbounds i8, ptr %258, i64 1
%260 = call i32 @sctp_notify_stream_reset_tsn(ptr noundef nonnull %0, ptr noundef %257, ptr noundef nonnull %259, i32 noundef 0) #4
br label %275
261: ; preds = %200
%262 = load i64, ptr @SCTP_STREAM_RESET_RESULT_DENIED, align 8, !tbaa !19
%263 = icmp eq i64 %262, %2
%264 = getelementptr inbounds i8, ptr %0, i64 40
%265 = load ptr, ptr %264, align 8, !tbaa !59
%266 = getelementptr inbounds i8, ptr %0, i64 32
%267 = load ptr, ptr %266, align 8, !tbaa !53
%268 = getelementptr inbounds i8, ptr %267, i64 1
br i1 %263, label %269, label %272
269: ; preds = %261
%270 = load i32, ptr @SCTP_ASSOC_RESET_DENIED, align 4, !tbaa !23
%271 = call i32 @sctp_notify_stream_reset_tsn(ptr noundef nonnull %0, ptr noundef %265, ptr noundef nonnull %268, i32 noundef %270) #4
br label %275
272: ; preds = %261
%273 = load i32, ptr @SCTP_ASSOC_RESET_FAILED, align 4, !tbaa !23
%274 = call i32 @sctp_notify_stream_reset_tsn(ptr noundef nonnull %0, ptr noundef %265, ptr noundef nonnull %268, i32 noundef %273) #4
br label %275
275: ; preds = %269, %272, %232
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
br label %278
276: ; preds = %203, %196, %194
%277 = phi i32 [ 0, %194 ], [ 0, %196 ], [ 1, %203 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
br label %289
278: ; preds = %275, %148, %160, %157, %63, %85, %88, %80, %181, %184, %174, %191
%279 = load i64, ptr %0, align 8, !tbaa !6
%280 = icmp eq i64 %279, 0
br i1 %280, label %281, label %289
281: ; preds = %278
%282 = call i32 @sctp_clean_up_stream_reset(ptr noundef nonnull %0) #4
br label %283
283: ; preds = %14, %281, %10
%284 = load i64, ptr %0, align 8, !tbaa !6
%285 = icmp eq i64 %284, 0
br i1 %285, label %286, label %289
286: ; preds = %283
%287 = load i32, ptr @SCTP_SO_NOT_LOCKED, align 4, !tbaa !23
%288 = call i32 @sctp_send_stream_reset_out_if_possible(ptr noundef nonnull %0, i32 noundef %287) #4
br label %289
289: ; preds = %55, %278, %276, %283, %286, %4
%290 = phi i32 [ %277, %276 ], [ 0, %4 ], [ 0, %286 ], [ 0, %283 ], [ 0, %278 ], [ 0, %55 ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
ret i32 %290
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @sctp_find_stream_reset(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ntohs(i32 noundef) local_unnamed_addr #2
declare i32 @sctp_reset_out_streams(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sctp_ulp_notify(i32 noundef, ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sctp_reset_clear_pending(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @sctp_notify_stream_reset_add(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @htons(i32 noundef) local_unnamed_addr #2
declare i32 @htonl(ptr noundef) local_unnamed_addr #2
declare ptr @ntohl(i32 noundef) local_unnamed_addr #2
declare i32 @sctp_handle_forward_tsn(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @SCTP_BASE_SYSCTL(i32 noundef) local_unnamed_addr #2
declare i32 @sctp_log_map(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @memset(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sctp_reset_in_stream(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sctp_notify_stream_reset_tsn(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sctp_clean_up_stream_reset(ptr noundef) local_unnamed_addr #2
declare i32 @sctp_send_stream_reset_out_if_possible(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { 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, !8, i64 0}
!7 = !{!"sctp_association", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !11, i64 64, !11, i64 68, !12, i64 72, !12, i64 80, !11, i64 88, !12, i64 96, !11, i64 104, !12, i64 112}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !8, i64 8}
!14 = !{!"sctp_tcb", !7, i64 0}
!15 = !{!16, !11, i64 4}
!16 = !{!"sctp_stream_reset_request", !17, i64 0}
!17 = !{!"TYPE_7__", !11, i64 0, !11, i64 4}
!18 = !{!16, !11, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!7, !11, i64 16}
!21 = !{!22, !12, i64 0}
!22 = !{!"sctp_stream_reset_out_request", !12, i64 0}
!23 = !{!11, !11, i64 0}
!24 = !{!25, !12, i64 0}
!25 = !{!"sctp_stream_reset_in_request", !12, i64 0}
!26 = !{!14, !11, i64 20}
!27 = !{!14, !11, i64 24}
!28 = !{!7, !11, i64 28}
!29 = !{!7, !12, i64 112}
!30 = !{!31, !11, i64 0}
!31 = !{!"TYPE_8__", !11, i64 0}
!32 = distinct !{!32, !33, !34, !35}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !33, !35, !34}
!37 = !{!14, !11, i64 104}
!38 = !{!14, !11, i64 28}
!39 = !{!40, !11, i64 0}
!40 = !{!"sctp_stream_reset_response", !41, i64 0}
!41 = !{!"TYPE_5__", !11, i64 0}
!42 = !{!43, !11, i64 8}
!43 = !{!"sctp_forward_tsn_chunk", !11, i64 0, !44, i64 4}
!44 = !{!"TYPE_6__", !11, i64 0, !11, i64 4}
!45 = !{!43, !11, i64 4}
!46 = !{!47, !11, i64 4}
!47 = !{!"sctp_stream_reset_response_tsn", !11, i64 0, !11, i64 4}
!48 = !{!43, !11, i64 0}
!49 = !{!14, !12, i64 72}
!50 = !{!7, !12, i64 72}
!51 = !{!14, !12, i64 48}
!52 = !{!14, !12, i64 96}
!53 = !{!14, !12, i64 32}
!54 = !{!14, !11, i64 88}
!55 = !{!14, !11, i64 64}
!56 = !{!14, !12, i64 80}
!57 = !{!14, !11, i64 68}
!58 = !{!47, !11, i64 0}
!59 = !{!14, !12, i64 40}
!60 = !{!14, !12, i64 56}
| freebsd_sys_netinet_extr_sctp_input.c_sctp_handle_stream_reset_response |
; ModuleID = 'AnghaBench/freebsd/contrib/bearssl/src/x509/extr_skey_decoder.c_br_skey_decoder_init.c'
source_filename = "AnghaBench/freebsd/contrib/bearssl/src/x509/extr_skey_decoder.c_br_skey_decoder_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { %struct.TYPE_7__, ptr, ptr }
%struct.TYPE_7__ = type { ptr, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @br_skey_decoder_init(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @memset(ptr noundef %0, i32 noundef 0, i32 noundef 32) #2
%3 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
%4 = load <2 x ptr>, ptr %3, align 8, !tbaa !5
store <2 x ptr> %4, ptr %0, align 8, !tbaa !5
%5 = tail call i32 @br_skey_decoder_init_main(ptr noundef nonnull %0) #2
%6 = tail call i32 @br_skey_decoder_run(ptr noundef nonnull %0) #2
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @br_skey_decoder_init_main(ptr noundef) local_unnamed_addr #1
declare i32 @br_skey_decoder_run(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/freebsd/contrib/bearssl/src/x509/extr_skey_decoder.c_br_skey_decoder_init.c'
source_filename = "AnghaBench/freebsd/contrib/bearssl/src/x509/extr_skey_decoder.c_br_skey_decoder_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @br_skey_decoder_init(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @memset(ptr noundef %0, i32 noundef 0, i32 noundef 32) #2
%3 = getelementptr inbounds i8, ptr %0, i64 16
%4 = load <2 x ptr>, ptr %3, align 8, !tbaa !6
store <2 x ptr> %4, ptr %0, align 8, !tbaa !6
%5 = tail call i32 @br_skey_decoder_init_main(ptr noundef nonnull %0) #2
%6 = tail call i32 @br_skey_decoder_run(ptr noundef nonnull %0) #2
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @br_skey_decoder_init_main(ptr noundef) local_unnamed_addr #1
declare i32 @br_skey_decoder_run(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"}
| freebsd_contrib_bearssl_src_x509_extr_skey_decoder.c_br_skey_decoder_init |
; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_rt298.c_rt298_hw_params.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_rt298.c_rt298_hw_params.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Unsupported sample rate %d\0A\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"Sys_clk is not matched (%d %d)\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Unsupported channels %d\0A\00", align 1
@RT298_I2S_CTRL1 = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [19 x i8] c"format val = 0x%x\0A\00", align 1
@RT298_DAC_FORMAT = dso_local local_unnamed_addr global i32 0, align 4
@RT298_ADC_FORMAT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @rt298_hw_params], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @rt298_hw_params(ptr nocapture readnone %0, ptr noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = load ptr, ptr %2, align 8, !tbaa !5
%5 = tail call ptr @snd_soc_component_get_drvdata(ptr noundef %4) #3
%6 = tail call i32 @params_rate(ptr noundef %1) #3
switch i32 %6, label %7 [
i32 44100, label %13
i32 48000, label %13
]
7: ; preds = %3
%8 = load i32, ptr %4, align 4, !tbaa !10
%9 = tail call i32 @params_rate(ptr noundef %1) #3
%10 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %8, ptr noundef nonnull @.str, i32 noundef %9) #3
%11 = load i32, ptr @EINVAL, align 4, !tbaa !13
%12 = sub nsw i32 0, %11
br label %72
13: ; preds = %3, %3
%14 = load i32, ptr %5, align 4, !tbaa !14
switch i32 %14, label %35 [
i32 12288000, label %15
i32 24576000, label %15
i32 11289600, label %25
i32 22579200, label %25
]
15: ; preds = %13, %13
%16 = tail call i32 @params_rate(ptr noundef %1) #3
%17 = icmp eq i32 %16, 48000
br i1 %17, label %35, label %18
18: ; preds = %15
%19 = load i32, ptr %4, align 4, !tbaa !10
%20 = tail call i32 @params_rate(ptr noundef %1) #3
%21 = load i32, ptr %5, align 4, !tbaa !14
%22 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %19, ptr noundef nonnull @.str.1, i32 noundef %20, i32 noundef %21) #3
%23 = load i32, ptr @EINVAL, align 4, !tbaa !13
%24 = sub nsw i32 0, %23
br label %72
25: ; preds = %13, %13
%26 = tail call i32 @params_rate(ptr noundef %1) #3
%27 = icmp eq i32 %26, 44100
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = load i32, ptr %4, align 4, !tbaa !10
%30 = tail call i32 @params_rate(ptr noundef %1) #3
%31 = load i32, ptr %5, align 4, !tbaa !14
%32 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %29, ptr noundef nonnull @.str.1, i32 noundef %30, i32 noundef %31) #3
%33 = load i32, ptr @EINVAL, align 4, !tbaa !13
%34 = sub nsw i32 0, %33
br label %72
35: ; preds = %25, %15, %13
%36 = tail call i32 @params_channels(ptr noundef %1) #3
%37 = icmp slt i32 %36, 17
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = tail call i32 @params_channels(ptr noundef %1) #3
%40 = add nsw i32 %39, -1
%41 = tail call i32 @params_width(ptr noundef %1) #3
%42 = add i32 %41, -8
%43 = tail call i32 @llvm.fshl.i32(i32 %42, i32 %42, i32 30)
switch i32 %43, label %58 [
i32 2, label %50
i32 6, label %52
i32 3, label %54
i32 4, label %56
i32 0, label %61
]
44: ; preds = %35
%45 = load i32, ptr %4, align 4, !tbaa !10
%46 = tail call i32 @params_channels(ptr noundef %1) #3
%47 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %45, ptr noundef nonnull @.str.2, i32 noundef %46) #3
%48 = load i32, ptr @EINVAL, align 4, !tbaa !13
%49 = sub nsw i32 0, %48
br label %72
50: ; preds = %38
%51 = or i32 %40, 16
br label %61
52: ; preds = %38
%53 = or i32 %40, 64
br label %61
54: ; preds = %38
%55 = or i32 %40, 32
br label %61
56: ; preds = %38
%57 = or i32 %40, 48
br label %61
58: ; preds = %38
%59 = load i32, ptr @EINVAL, align 4, !tbaa !13
%60 = sub nsw i32 0, %59
br label %72
61: ; preds = %38, %56, %54, %52, %50
%62 = phi i32 [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %40, %38 ]
%63 = phi i32 [ 16, %56 ], [ 8, %54 ], [ 16, %52 ], [ 0, %50 ], [ 24, %38 ]
%64 = load i32, ptr @RT298_I2S_CTRL1, align 4, !tbaa !13
%65 = tail call i32 @snd_soc_component_update_bits(ptr noundef %4, i32 noundef %64, i32 noundef 24, i32 noundef %63) #3
%66 = load i32, ptr %4, align 4, !tbaa !10
%67 = tail call i32 @dev_dbg(i32 noundef %66, ptr noundef nonnull @.str.3, i32 noundef %62) #3
%68 = load i32, ptr @RT298_DAC_FORMAT, align 4, !tbaa !13
%69 = tail call i32 @snd_soc_component_update_bits(ptr noundef nonnull %4, i32 noundef %68, i32 noundef 16511, i32 noundef %62) #3
%70 = load i32, ptr @RT298_ADC_FORMAT, align 4, !tbaa !13
%71 = tail call i32 @snd_soc_component_update_bits(ptr noundef nonnull %4, i32 noundef %70, i32 noundef 16511, i32 noundef %62) #3
br label %72
72: ; preds = %61, %58, %44, %28, %18, %7
%73 = phi i32 [ %12, %7 ], [ %60, %58 ], [ 0, %61 ], [ %49, %44 ], [ %34, %28 ], [ %24, %18 ]
ret i32 %73
}
declare ptr @snd_soc_component_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @params_rate(ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(i32 noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @params_channels(ptr noundef) local_unnamed_addr #1
declare i32 @params_width(ptr noundef) local_unnamed_addr #1
declare i32 @snd_soc_component_update_bits(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"snd_soc_dai", !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 = !{!"snd_soc_component", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"rt298_priv", !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/soc/codecs/extr_rt298.c_rt298_hw_params.c'
source_filename = "AnghaBench/linux/sound/soc/codecs/extr_rt298.c_rt298_hw_params.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [28 x i8] c"Unsupported sample rate %d\0A\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"Sys_clk is not matched (%d %d)\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Unsupported channels %d\0A\00", align 1
@RT298_I2S_CTRL1 = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [19 x i8] c"format val = 0x%x\0A\00", align 1
@RT298_DAC_FORMAT = common local_unnamed_addr global i32 0, align 4
@RT298_ADC_FORMAT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @rt298_hw_params], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @rt298_hw_params(ptr nocapture readnone %0, ptr noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = load ptr, ptr %2, align 8, !tbaa !6
%5 = tail call ptr @snd_soc_component_get_drvdata(ptr noundef %4) #3
%6 = tail call i32 @params_rate(ptr noundef %1) #3
switch i32 %6, label %7 [
i32 44100, label %13
i32 48000, label %13
]
7: ; preds = %3
%8 = load i32, ptr %4, align 4, !tbaa !11
%9 = tail call i32 @params_rate(ptr noundef %1) #3
%10 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %8, ptr noundef nonnull @.str, i32 noundef %9) #3
%11 = load i32, ptr @EINVAL, align 4, !tbaa !14
%12 = sub nsw i32 0, %11
br label %72
13: ; preds = %3, %3
%14 = load i32, ptr %5, align 4, !tbaa !15
switch i32 %14, label %35 [
i32 12288000, label %15
i32 24576000, label %15
i32 11289600, label %25
i32 22579200, label %25
]
15: ; preds = %13, %13
%16 = tail call i32 @params_rate(ptr noundef %1) #3
%17 = icmp eq i32 %16, 48000
br i1 %17, label %35, label %18
18: ; preds = %15
%19 = load i32, ptr %4, align 4, !tbaa !11
%20 = tail call i32 @params_rate(ptr noundef %1) #3
%21 = load i32, ptr %5, align 4, !tbaa !15
%22 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %19, ptr noundef nonnull @.str.1, i32 noundef %20, i32 noundef %21) #3
%23 = load i32, ptr @EINVAL, align 4, !tbaa !14
%24 = sub nsw i32 0, %23
br label %72
25: ; preds = %13, %13
%26 = tail call i32 @params_rate(ptr noundef %1) #3
%27 = icmp eq i32 %26, 44100
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = load i32, ptr %4, align 4, !tbaa !11
%30 = tail call i32 @params_rate(ptr noundef %1) #3
%31 = load i32, ptr %5, align 4, !tbaa !15
%32 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %29, ptr noundef nonnull @.str.1, i32 noundef %30, i32 noundef %31) #3
%33 = load i32, ptr @EINVAL, align 4, !tbaa !14
%34 = sub nsw i32 0, %33
br label %72
35: ; preds = %25, %15, %13
%36 = tail call i32 @params_channels(ptr noundef %1) #3
%37 = icmp slt i32 %36, 17
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = tail call i32 @params_channels(ptr noundef %1) #3
%40 = add nsw i32 %39, -1
%41 = tail call i32 @params_width(ptr noundef %1) #3
%42 = add i32 %41, -8
%43 = tail call i32 @llvm.fshl.i32(i32 %42, i32 %42, i32 30)
switch i32 %43, label %58 [
i32 2, label %50
i32 6, label %52
i32 3, label %54
i32 4, label %56
i32 0, label %61
]
44: ; preds = %35
%45 = load i32, ptr %4, align 4, !tbaa !11
%46 = tail call i32 @params_channels(ptr noundef %1) #3
%47 = tail call i32 (i32, ptr, i32, ...) @dev_err(i32 noundef %45, ptr noundef nonnull @.str.2, i32 noundef %46) #3
%48 = load i32, ptr @EINVAL, align 4, !tbaa !14
%49 = sub nsw i32 0, %48
br label %72
50: ; preds = %38
%51 = or i32 %40, 16
br label %61
52: ; preds = %38
%53 = or i32 %40, 64
br label %61
54: ; preds = %38
%55 = or i32 %40, 32
br label %61
56: ; preds = %38
%57 = or i32 %40, 48
br label %61
58: ; preds = %38
%59 = load i32, ptr @EINVAL, align 4, !tbaa !14
%60 = sub nsw i32 0, %59
br label %72
61: ; preds = %38, %56, %54, %52, %50
%62 = phi i32 [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ %51, %50 ], [ %40, %38 ]
%63 = phi i32 [ 16, %56 ], [ 8, %54 ], [ 16, %52 ], [ 0, %50 ], [ 24, %38 ]
%64 = load i32, ptr @RT298_I2S_CTRL1, align 4, !tbaa !14
%65 = tail call i32 @snd_soc_component_update_bits(ptr noundef %4, i32 noundef %64, i32 noundef 24, i32 noundef %63) #3
%66 = load i32, ptr %4, align 4, !tbaa !11
%67 = tail call i32 @dev_dbg(i32 noundef %66, ptr noundef nonnull @.str.3, i32 noundef %62) #3
%68 = load i32, ptr @RT298_DAC_FORMAT, align 4, !tbaa !14
%69 = tail call i32 @snd_soc_component_update_bits(ptr noundef nonnull %4, i32 noundef %68, i32 noundef 16511, i32 noundef %62) #3
%70 = load i32, ptr @RT298_ADC_FORMAT, align 4, !tbaa !14
%71 = tail call i32 @snd_soc_component_update_bits(ptr noundef nonnull %4, i32 noundef %70, i32 noundef 16511, i32 noundef %62) #3
br label %72
72: ; preds = %61, %58, %44, %28, %18, %7
%73 = phi i32 [ %12, %7 ], [ %60, %58 ], [ 0, %61 ], [ %49, %44 ], [ %34, %28 ], [ %24, %18 ]
ret i32 %73
}
declare ptr @snd_soc_component_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @params_rate(ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(i32 noundef, ptr noundef, i32 noundef, ...) local_unnamed_addr #1
declare i32 @params_channels(ptr noundef) local_unnamed_addr #1
declare i32 @params_width(ptr noundef) local_unnamed_addr #1
declare i32 @snd_soc_component_update_bits(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dev_dbg(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"snd_soc_dai", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"snd_soc_component", !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"rt298_priv", !13, i64 0}
| linux_sound_soc_codecs_extr_rt298.c_rt298_hw_params |
; ModuleID = 'AnghaBench/freebsd/sys/powerpc/powermac/extr_ata_macio.c_ata_macio_setmode.c'
source_filename = "AnghaBench/freebsd/sys/powerpc/powermac/extr_ata_macio.c_ata_macio_setmode.c"
target datalayout = "e-m:e-p270:32:32-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.ata_macio_softc = type { i32, ptr, ptr, ptr, i32 }
%struct.TYPE_4__ = type { i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32, i32 }
@ATA_DMA_MASK = dso_local local_unnamed_addr global i32 0, align 4
@ATA_UDMA0 = dso_local local_unnamed_addr global i32 0, align 4
@udma_timings = dso_local local_unnamed_addr global ptr null, align 8
@ATA_MODE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@ATA_WDMA0 = dso_local local_unnamed_addr global i32 0, align 4
@dma_timings = dso_local local_unnamed_addr global ptr null, align 8
@DMA_REC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@DMA_REC_MIN = dso_local local_unnamed_addr global i32 0, align 4
@pio_timings = dso_local local_unnamed_addr global ptr null, align 8
@ATA_PIO0 = dso_local local_unnamed_addr global i32 0, align 4
@PIO_ACT_MIN = dso_local local_unnamed_addr global i32 0, align 4
@PIO_REC_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@PIO_REC_MIN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ata_macio_setmode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ata_macio_setmode(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @device_get_softc(i32 noundef %0) #3
%5 = getelementptr inbounds %struct.ata_macio_softc, ptr %4, i64 0, i32 4
%6 = load i32, ptr %5, align 8, !tbaa !5
%7 = tail call i32 @min(i32 noundef %2, i32 noundef %6) #3
%8 = load i32, ptr @ATA_DMA_MASK, align 4, !tbaa !11
%9 = and i32 %8, %7
%10 = load i32, ptr @ATA_UDMA0, align 4, !tbaa !11
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %30
12: ; preds = %3
%13 = load ptr, ptr @udma_timings, align 8, !tbaa !12
%14 = load i32, ptr @ATA_MODE_MASK, align 4, !tbaa !11
%15 = and i32 %14, %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i64 %16
%18 = load i32, ptr %17, align 4, !tbaa !13
%19 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i64 %16, i32 1
%20 = load i32, ptr %19, align 4, !tbaa !15
%21 = load i32, ptr %4, align 8, !tbaa !16
%22 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %21, i32 noundef %18) #3
%23 = load i32, ptr %4, align 8, !tbaa !16
%24 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %23, i32 noundef %20) #3
%25 = shl i32 %22, 21
%26 = shl i32 %24, 25
%27 = or i32 %25, %26
%28 = or disjoint i32 %27, 1048576
%29 = getelementptr inbounds %struct.ata_macio_softc, ptr %4, i64 0, i32 1
br label %95
30: ; preds = %3
%31 = load i32, ptr @ATA_WDMA0, align 4, !tbaa !11
%32 = icmp eq i32 %9, %31
%33 = load i32, ptr @ATA_MODE_MASK, align 4, !tbaa !11
%34 = and i32 %33, %7
br i1 %32, label %35, label %64
35: ; preds = %30
%36 = load ptr, ptr @dma_timings, align 8, !tbaa !12
%37 = sext i32 %34 to i64
%38 = getelementptr inbounds %struct.TYPE_6__, ptr %36, i64 %37
%39 = load i32, ptr %38, align 4, !tbaa !17
%40 = getelementptr inbounds %struct.TYPE_6__, ptr %36, i64 %37, i32 1
%41 = load i32, ptr %40, align 4, !tbaa !19
%42 = load i32, ptr %4, align 8, !tbaa !16
%43 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %42, i32 noundef %39) #3
%44 = load i32, ptr %4, align 8, !tbaa !16
%45 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %44, i32 noundef %41) #3
%46 = load i32, ptr %4, align 8, !tbaa !16
%47 = icmp eq i32 %46, 4
br i1 %47, label %48, label %54
48: ; preds = %35
%49 = sub nsw i32 %43, %45
%50 = shl i32 %45, 10
%51 = shl i32 %49, 15
%52 = or i32 %51, %50
%53 = getelementptr inbounds %struct.ata_macio_softc, ptr %4, i64 0, i32 2
br label %95
54: ; preds = %35
%55 = load i32, ptr @DMA_REC_OFFSET, align 4, !tbaa !11
%56 = add i32 %45, %55
%57 = sub i32 %43, %56
%58 = load i32, ptr @DMA_REC_MIN, align 4, !tbaa !11
%59 = tail call i32 @llvm.smax.i32(i32 %57, i32 %58)
%60 = shl i32 %59, 16
%61 = shl i32 %45, 11
%62 = or i32 %60, %61
%63 = getelementptr inbounds %struct.ata_macio_softc, ptr %4, i64 0, i32 2
br label %95
64: ; preds = %30
%65 = load ptr, ptr @pio_timings, align 8, !tbaa !12
%66 = load i32, ptr @ATA_PIO0, align 4, !tbaa !11
%67 = sub nsw i32 %34, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds %struct.TYPE_5__, ptr %65, i64 %68
%70 = load i32, ptr %69, align 4, !tbaa !20
%71 = getelementptr inbounds %struct.TYPE_5__, ptr %65, i64 %68, i32 1
%72 = load i32, ptr %71, align 4, !tbaa !22
%73 = load i32, ptr %4, align 8, !tbaa !16
%74 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %73, i32 noundef %70) #3
%75 = load i32, ptr %4, align 8, !tbaa !16
%76 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %75, i32 noundef %72) #3
%77 = load i32, ptr %4, align 8, !tbaa !16
%78 = icmp eq i32 %77, 4
br i1 %78, label %79, label %84
79: ; preds = %64
%80 = sub nsw i32 %74, %76
%81 = shl i32 %80, 5
%82 = or i32 %81, %76
%83 = getelementptr inbounds %struct.ata_macio_softc, ptr %4, i64 0, i32 3
br label %95
84: ; preds = %64
%85 = load i32, ptr @PIO_ACT_MIN, align 4, !tbaa !11
%86 = tail call i32 @llvm.smax.i32(i32 %76, i32 %85)
%87 = load i32, ptr @PIO_REC_OFFSET, align 4, !tbaa !11
%88 = add i32 %87, %86
%89 = sub i32 %74, %88
%90 = load i32, ptr @PIO_REC_MIN, align 4, !tbaa !11
%91 = tail call i32 @llvm.smax.i32(i32 %89, i32 %90)
%92 = shl i32 %91, 5
%93 = or i32 %92, %86
%94 = getelementptr inbounds %struct.ata_macio_softc, ptr %4, i64 0, i32 3
br label %95
95: ; preds = %54, %48, %84, %79, %12
%96 = phi ptr [ %63, %54 ], [ %53, %48 ], [ %94, %84 ], [ %83, %79 ], [ %29, %12 ]
%97 = phi i32 [ %62, %54 ], [ %52, %48 ], [ %93, %84 ], [ %82, %79 ], [ %28, %12 ]
%98 = load ptr, ptr %96, align 8, !tbaa !12
%99 = sext i32 %1 to i64
%100 = getelementptr inbounds i32, ptr %98, i64 %99
store i32 %97, ptr %100, align 4, !tbaa !11
ret i32 %7
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ATA_TIME_TO_TICK(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 32}
!6 = !{!"ata_macio_softc", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"TYPE_4__", !7, i64 0, !7, i64 4}
!15 = !{!14, !7, i64 4}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_6__", !7, i64 0, !7, i64 4}
!19 = !{!18, !7, i64 4}
!20 = !{!21, !7, i64 0}
!21 = !{!"TYPE_5__", !7, i64 0, !7, i64 4}
!22 = !{!21, !7, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/sys/powerpc/powermac/extr_ata_macio.c_ata_macio_setmode.c'
source_filename = "AnghaBench/freebsd/sys/powerpc/powermac/extr_ata_macio.c_ata_macio_setmode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i32, i32 }
%struct.TYPE_6__ = type { i32, i32 }
%struct.TYPE_5__ = type { i32, i32 }
@ATA_DMA_MASK = common local_unnamed_addr global i32 0, align 4
@ATA_UDMA0 = common local_unnamed_addr global i32 0, align 4
@udma_timings = common local_unnamed_addr global ptr null, align 8
@ATA_MODE_MASK = common local_unnamed_addr global i32 0, align 4
@ATA_WDMA0 = common local_unnamed_addr global i32 0, align 4
@dma_timings = common local_unnamed_addr global ptr null, align 8
@DMA_REC_OFFSET = common local_unnamed_addr global i32 0, align 4
@DMA_REC_MIN = common local_unnamed_addr global i32 0, align 4
@pio_timings = common local_unnamed_addr global ptr null, align 8
@ATA_PIO0 = common local_unnamed_addr global i32 0, align 4
@PIO_ACT_MIN = common local_unnamed_addr global i32 0, align 4
@PIO_REC_OFFSET = common local_unnamed_addr global i32 0, align 4
@PIO_REC_MIN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ata_macio_setmode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ata_macio_setmode(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @device_get_softc(i32 noundef %0) #3
%5 = getelementptr inbounds i8, ptr %4, i64 32
%6 = load i32, ptr %5, align 8, !tbaa !6
%7 = tail call i32 @min(i32 noundef %2, i32 noundef %6) #3
%8 = load i32, ptr @ATA_DMA_MASK, align 4, !tbaa !12
%9 = and i32 %8, %7
%10 = load i32, ptr @ATA_UDMA0, align 4, !tbaa !12
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %29
12: ; preds = %3
%13 = load ptr, ptr @udma_timings, align 8, !tbaa !13
%14 = load i32, ptr @ATA_MODE_MASK, align 4, !tbaa !12
%15 = and i32 %14, %7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i64 %16
%18 = load i32, ptr %17, align 4, !tbaa !14
%19 = getelementptr inbounds i8, ptr %17, i64 4
%20 = load i32, ptr %19, align 4, !tbaa !16
%21 = load i32, ptr %4, align 8, !tbaa !17
%22 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %21, i32 noundef %18) #3
%23 = load i32, ptr %4, align 8, !tbaa !17
%24 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %23, i32 noundef %20) #3
%25 = shl i32 %22, 21
%26 = shl i32 %24, 25
%27 = or i32 %25, %26
%28 = or disjoint i32 %27, 1048576
br label %90
29: ; preds = %3
%30 = load i32, ptr @ATA_WDMA0, align 4, !tbaa !12
%31 = icmp eq i32 %9, %30
%32 = load i32, ptr @ATA_MODE_MASK, align 4, !tbaa !12
%33 = and i32 %32, %7
br i1 %31, label %34, label %61
34: ; preds = %29
%35 = load ptr, ptr @dma_timings, align 8, !tbaa !13
%36 = sext i32 %33 to i64
%37 = getelementptr inbounds %struct.TYPE_6__, ptr %35, i64 %36
%38 = load i32, ptr %37, align 4, !tbaa !18
%39 = getelementptr inbounds i8, ptr %37, i64 4
%40 = load i32, ptr %39, align 4, !tbaa !20
%41 = load i32, ptr %4, align 8, !tbaa !17
%42 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %41, i32 noundef %38) #3
%43 = load i32, ptr %4, align 8, !tbaa !17
%44 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %43, i32 noundef %40) #3
%45 = load i32, ptr %4, align 8, !tbaa !17
%46 = icmp eq i32 %45, 4
br i1 %46, label %47, label %52
47: ; preds = %34
%48 = sub nsw i32 %42, %44
%49 = shl i32 %44, 10
%50 = shl i32 %48, 15
%51 = or i32 %50, %49
br label %90
52: ; preds = %34
%53 = load i32, ptr @DMA_REC_OFFSET, align 4, !tbaa !12
%54 = add i32 %44, %53
%55 = sub i32 %42, %54
%56 = load i32, ptr @DMA_REC_MIN, align 4, !tbaa !12
%57 = tail call i32 @llvm.smax.i32(i32 %55, i32 %56)
%58 = shl i32 %57, 16
%59 = shl i32 %44, 11
%60 = or i32 %58, %59
br label %90
61: ; preds = %29
%62 = load ptr, ptr @pio_timings, align 8, !tbaa !13
%63 = load i32, ptr @ATA_PIO0, align 4, !tbaa !12
%64 = sub nsw i32 %33, %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds %struct.TYPE_5__, ptr %62, i64 %65
%67 = load i32, ptr %66, align 4, !tbaa !21
%68 = getelementptr inbounds i8, ptr %66, i64 4
%69 = load i32, ptr %68, align 4, !tbaa !23
%70 = load i32, ptr %4, align 8, !tbaa !17
%71 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %70, i32 noundef %67) #3
%72 = load i32, ptr %4, align 8, !tbaa !17
%73 = tail call i32 @ATA_TIME_TO_TICK(i32 noundef %72, i32 noundef %69) #3
%74 = load i32, ptr %4, align 8, !tbaa !17
%75 = icmp eq i32 %74, 4
br i1 %75, label %76, label %80
76: ; preds = %61
%77 = sub nsw i32 %71, %73
%78 = shl i32 %77, 5
%79 = or i32 %78, %73
br label %90
80: ; preds = %61
%81 = load i32, ptr @PIO_ACT_MIN, align 4, !tbaa !12
%82 = tail call i32 @llvm.smax.i32(i32 %73, i32 %81)
%83 = load i32, ptr @PIO_REC_OFFSET, align 4, !tbaa !12
%84 = add i32 %83, %82
%85 = sub i32 %71, %84
%86 = load i32, ptr @PIO_REC_MIN, align 4, !tbaa !12
%87 = tail call i32 @llvm.smax.i32(i32 %85, i32 %86)
%88 = shl i32 %87, 5
%89 = or i32 %88, %82
br label %90
90: ; preds = %52, %47, %80, %76, %12
%91 = phi i64 [ 16, %52 ], [ 16, %47 ], [ 24, %80 ], [ 24, %76 ], [ 8, %12 ]
%92 = phi i32 [ %60, %52 ], [ %51, %47 ], [ %89, %80 ], [ %79, %76 ], [ %28, %12 ]
%93 = getelementptr inbounds i8, ptr %4, i64 %91
%94 = load ptr, ptr %93, align 8, !tbaa !13
%95 = sext i32 %1 to i64
%96 = getelementptr inbounds i32, ptr %94, i64 %95
store i32 %92, ptr %96, align 4, !tbaa !12
ret i32 %7
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @min(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ATA_TIME_TO_TICK(i32 noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 32}
!7 = !{!"ata_macio_softc", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !8, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !8, i64 0}
!15 = !{!"TYPE_4__", !8, i64 0, !8, i64 4}
!16 = !{!15, !8, i64 4}
!17 = !{!7, !8, i64 0}
!18 = !{!19, !8, i64 0}
!19 = !{!"TYPE_6__", !8, i64 0, !8, i64 4}
!20 = !{!19, !8, i64 4}
!21 = !{!22, !8, i64 0}
!22 = !{!"TYPE_5__", !8, i64 0, !8, i64 4}
!23 = !{!22, !8, i64 4}
| freebsd_sys_powerpc_powermac_extr_ata_macio.c_ata_macio_setmode |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_x550.c_ixgbe_get_invariants_X550_a_fw.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_x550.c_ixgbe_get_invariants_X550_a_fw.c"
target datalayout = "e-m:e-p270:32:32-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 @ixgbe_get_invariants_X550_a_fw], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @ixgbe_get_invariants_X550_a_fw(ptr noundef %0) #0 {
%2 = tail call i32 @ixgbe_get_invariants_X540(ptr noundef %0) #2
store ptr null, ptr %0, align 8, !tbaa !5
ret i32 0
}
declare i32 @ixgbe_get_invariants_X540(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"ixgbe_phy_info", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_x550.c_ixgbe_get_invariants_X550_a_fw.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_x550.c_ixgbe_get_invariants_X550_a_fw.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 @ixgbe_get_invariants_X550_a_fw], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @ixgbe_get_invariants_X550_a_fw(ptr noundef %0) #0 {
%2 = tail call i32 @ixgbe_get_invariants_X540(ptr noundef %0) #2
store ptr null, ptr %0, align 8, !tbaa !6
ret i32 0
}
declare i32 @ixgbe_get_invariants_X540(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"ixgbe_phy_info", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_intel_ixgbe_extr_ixgbe_x550.c_ixgbe_get_invariants_X550_a_fw |
; ModuleID = 'AnghaBench/linux/fs/xfs/libxfs/extr_xfs_rmap.c_xfs_rmap_lookup_le_range.c'
source_filename = "AnghaBench/linux/fs/xfs/libxfs/extr_xfs_rmap.c_xfs_rmap_lookup_le_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.xfs_find_left_neighbor_info = type { ptr, %struct.TYPE_7__, ptr }
%struct.TYPE_7__ = type { i32, i64, ptr, ptr, i32 }
%struct.xfs_btree_cur = type { %struct.TYPE_6__, i32 }
%struct.TYPE_6__ = type { %struct.TYPE_5__ }
%struct.TYPE_5__ = type { i32 }
%struct.xfs_rmap_irec = type { i32, i32, i32, i32, i32 }
@XFS_RMAP_BMBT_BLOCK = dso_local local_unnamed_addr global i32 0, align 4
@xfs_rmap_lookup_le_range_helper = dso_local local_unnamed_addr global i32 0, align 4
@ECANCELED = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @xfs_rmap_lookup_le_range(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
%8 = alloca %struct.xfs_find_left_neighbor_info, align 8
call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #3
%9 = getelementptr inbounds %struct.xfs_find_left_neighbor_info, ptr %8, i64 0, i32 1
%10 = getelementptr inbounds %struct.xfs_find_left_neighbor_info, ptr %8, i64 0, i32 1, i32 4
store i32 %1, ptr %10, align 8, !tbaa !5
%11 = getelementptr inbounds %struct.xfs_find_left_neighbor_info, ptr %8, i64 0, i32 1, i32 3
store ptr %2, ptr %11, align 8, !tbaa !13
%12 = tail call i32 @XFS_RMAP_NON_INODE_OWNER(ptr noundef %2) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %7
%15 = load i32, ptr @XFS_RMAP_BMBT_BLOCK, align 4, !tbaa !14
%16 = and i32 %15, %4
%17 = icmp eq i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14, %7
br label %19
19: ; preds = %14, %18
%20 = phi ptr [ null, %18 ], [ %3, %14 ]
%21 = getelementptr inbounds %struct.xfs_find_left_neighbor_info, ptr %8, i64 0, i32 1, i32 2
store ptr %20, ptr %21, align 8, !tbaa !15
store i32 %4, ptr %9, align 8, !tbaa !16
%22 = getelementptr inbounds %struct.xfs_find_left_neighbor_info, ptr %8, i64 0, i32 1, i32 1
store i64 0, ptr %22, align 8, !tbaa !17
store i32 0, ptr %6, align 4, !tbaa !14
%23 = getelementptr inbounds %struct.xfs_find_left_neighbor_info, ptr %8, i64 0, i32 2
store ptr %5, ptr %23, align 8, !tbaa !18
store ptr %6, ptr %8, align 8, !tbaa !19
%24 = getelementptr inbounds %struct.xfs_btree_cur, ptr %0, i64 0, i32 1
%25 = load i32, ptr %24, align 4, !tbaa !20
%26 = load i32, ptr %0, align 4, !tbaa !24
%27 = tail call i32 @trace_xfs_rmap_lookup_le_range(i32 noundef %25, i32 noundef %26, i32 noundef %1, i32 noundef 0, ptr noundef %2, ptr noundef %3, i32 noundef %4) #3
%28 = load i32, ptr @xfs_rmap_lookup_le_range_helper, align 4, !tbaa !14
%29 = call i32 @xfs_rmap_query_range(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %9, i32 noundef %28, ptr noundef nonnull %8) #3
%30 = load i32, ptr @ECANCELED, align 4, !tbaa !14
%31 = load i32, ptr %6, align 4, !tbaa !14
%32 = icmp eq i32 %31, 0
br i1 %32, label %46, label %33
33: ; preds = %19
%34 = load i32, ptr %24, align 4, !tbaa !20
%35 = load i32, ptr %0, align 4, !tbaa !24
%36 = getelementptr inbounds %struct.xfs_rmap_irec, ptr %5, i64 0, i32 4
%37 = load i32, ptr %36, align 4, !tbaa !25
%38 = getelementptr inbounds %struct.xfs_rmap_irec, ptr %5, i64 0, i32 3
%39 = load i32, ptr %38, align 4, !tbaa !27
%40 = getelementptr inbounds %struct.xfs_rmap_irec, ptr %5, i64 0, i32 2
%41 = load i32, ptr %40, align 4, !tbaa !28
%42 = getelementptr inbounds %struct.xfs_rmap_irec, ptr %5, i64 0, i32 1
%43 = load i32, ptr %42, align 4, !tbaa !29
%44 = load i32, ptr %5, align 4, !tbaa !30
%45 = call i32 @trace_xfs_rmap_lookup_le_range_result(i32 noundef %34, i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41, i32 noundef %43, i32 noundef %44) #3
br label %46
46: ; preds = %33, %19
%47 = sub nsw i32 0, %30
%48 = icmp eq i32 %29, %47
%49 = select i1 %48, i32 0, i32 %29
call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #3
ret i32 %49
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @XFS_RMAP_NON_INODE_OWNER(ptr noundef) local_unnamed_addr #2
declare i32 @trace_xfs_rmap_lookup_le_range(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @xfs_rmap_query_range(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @trace_xfs_rmap_lookup_le_range_result(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 40}
!6 = !{!"xfs_find_left_neighbor_info", !7, i64 0, !10, i64 8, !7, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_7__", !11, i64 0, !12, i64 8, !7, i64 16, !7, i64 24, !11, i64 32}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !11, i64 8}
!17 = !{!6, !12, i64 16}
!18 = !{!6, !7, i64 48}
!19 = !{!6, !7, i64 0}
!20 = !{!21, !11, i64 4}
!21 = !{!"xfs_btree_cur", !22, i64 0, !11, i64 4}
!22 = !{!"TYPE_6__", !23, i64 0}
!23 = !{!"TYPE_5__", !11, i64 0}
!24 = !{!21, !11, i64 0}
!25 = !{!26, !11, i64 16}
!26 = !{!"xfs_rmap_irec", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!27 = !{!26, !11, i64 12}
!28 = !{!26, !11, i64 8}
!29 = !{!26, !11, i64 4}
!30 = !{!26, !11, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/xfs/libxfs/extr_xfs_rmap.c_xfs_rmap_lookup_le_range.c'
source_filename = "AnghaBench/linux/fs/xfs/libxfs/extr_xfs_rmap.c_xfs_rmap_lookup_le_range.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.xfs_find_left_neighbor_info = type { ptr, %struct.TYPE_7__, ptr }
%struct.TYPE_7__ = type { i32, i64, ptr, ptr, i32 }
@XFS_RMAP_BMBT_BLOCK = common local_unnamed_addr global i32 0, align 4
@xfs_rmap_lookup_le_range_helper = common local_unnamed_addr global i32 0, align 4
@ECANCELED = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @xfs_rmap_lookup_le_range(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
%8 = alloca %struct.xfs_find_left_neighbor_info, align 8
call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #3
%9 = getelementptr inbounds i8, ptr %8, i64 8
%10 = getelementptr inbounds i8, ptr %8, i64 40
store i32 %1, ptr %10, align 8, !tbaa !6
%11 = getelementptr inbounds i8, ptr %8, i64 32
store ptr %2, ptr %11, align 8, !tbaa !14
%12 = tail call i32 @XFS_RMAP_NON_INODE_OWNER(ptr noundef %2) #3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %7
%15 = load i32, ptr @XFS_RMAP_BMBT_BLOCK, align 4, !tbaa !15
%16 = and i32 %15, %4
%17 = icmp eq i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14, %7
br label %19
19: ; preds = %14, %18
%20 = phi ptr [ null, %18 ], [ %3, %14 ]
%21 = getelementptr inbounds i8, ptr %8, i64 24
store ptr %20, ptr %21, align 8, !tbaa !16
store i32 %4, ptr %9, align 8, !tbaa !17
%22 = getelementptr inbounds i8, ptr %8, i64 16
store i64 0, ptr %22, align 8, !tbaa !18
store i32 0, ptr %6, align 4, !tbaa !15
%23 = getelementptr inbounds i8, ptr %8, i64 48
store ptr %5, ptr %23, align 8, !tbaa !19
store ptr %6, ptr %8, align 8, !tbaa !20
%24 = getelementptr inbounds i8, ptr %0, i64 4
%25 = load i32, ptr %24, align 4, !tbaa !21
%26 = load i32, ptr %0, align 4, !tbaa !25
%27 = tail call i32 @trace_xfs_rmap_lookup_le_range(i32 noundef %25, i32 noundef %26, i32 noundef %1, i32 noundef 0, ptr noundef %2, ptr noundef %3, i32 noundef %4) #3
%28 = load i32, ptr @xfs_rmap_lookup_le_range_helper, align 4, !tbaa !15
%29 = call i32 @xfs_rmap_query_range(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull %9, i32 noundef %28, ptr noundef nonnull %8) #3
%30 = load i32, ptr @ECANCELED, align 4, !tbaa !15
%31 = load i32, ptr %6, align 4, !tbaa !15
%32 = icmp eq i32 %31, 0
br i1 %32, label %46, label %33
33: ; preds = %19
%34 = load i32, ptr %24, align 4, !tbaa !21
%35 = load i32, ptr %0, align 4, !tbaa !25
%36 = getelementptr inbounds i8, ptr %5, i64 16
%37 = load i32, ptr %36, align 4, !tbaa !26
%38 = getelementptr inbounds i8, ptr %5, i64 12
%39 = load i32, ptr %38, align 4, !tbaa !28
%40 = getelementptr inbounds i8, ptr %5, i64 8
%41 = load i32, ptr %40, align 4, !tbaa !29
%42 = getelementptr inbounds i8, ptr %5, i64 4
%43 = load i32, ptr %42, align 4, !tbaa !30
%44 = load i32, ptr %5, align 4, !tbaa !31
%45 = call i32 @trace_xfs_rmap_lookup_le_range_result(i32 noundef %34, i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41, i32 noundef %43, i32 noundef %44) #3
br label %46
46: ; preds = %33, %19
%47 = sub nsw i32 0, %30
%48 = icmp eq i32 %29, %47
%49 = select i1 %48, i32 0, i32 %29
call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #3
ret i32 %49
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @XFS_RMAP_NON_INODE_OWNER(ptr noundef) local_unnamed_addr #2
declare i32 @trace_xfs_rmap_lookup_le_range(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @xfs_rmap_query_range(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @trace_xfs_rmap_lookup_le_range_result(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 40}
!7 = !{!"xfs_find_left_neighbor_info", !8, i64 0, !11, i64 8, !8, i64 48}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_7__", !12, i64 0, !13, i64 8, !8, i64 16, !8, i64 24, !12, i64 32}
!12 = !{!"int", !9, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!7, !8, i64 32}
!15 = !{!12, !12, i64 0}
!16 = !{!7, !8, i64 24}
!17 = !{!7, !12, i64 8}
!18 = !{!7, !13, i64 16}
!19 = !{!7, !8, i64 48}
!20 = !{!7, !8, i64 0}
!21 = !{!22, !12, i64 4}
!22 = !{!"xfs_btree_cur", !23, i64 0, !12, i64 4}
!23 = !{!"TYPE_6__", !24, i64 0}
!24 = !{!"TYPE_5__", !12, i64 0}
!25 = !{!22, !12, i64 0}
!26 = !{!27, !12, i64 16}
!27 = !{!"xfs_rmap_irec", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!28 = !{!27, !12, i64 12}
!29 = !{!27, !12, i64 8}
!30 = !{!27, !12, i64 4}
!31 = !{!27, !12, i64 0}
| linux_fs_xfs_libxfs_extr_xfs_rmap.c_xfs_rmap_lookup_le_range |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/extr_iscsi_tcp.c_iscsi_sw_tcp_send_linear_data_prep.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/extr_iscsi_tcp.c_iscsi_sw_tcp_send_linear_data_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"
%struct.iscsi_conn = type { i64, ptr }
%struct.TYPE_4__ = type { i32, ptr }
%struct.iscsi_sw_tcp_conn = type { %struct.TYPE_4__, %struct.hash_desc }
%struct.hash_desc = type { i32 }
@.str = private unnamed_addr constant [16 x i8] c"datalen=%zd %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"digest enabled\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"digest disabled\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @iscsi_sw_tcp_send_linear_data_prep], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @iscsi_sw_tcp_send_linear_data_prep(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = getelementptr inbounds %struct.iscsi_conn, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = load i64, ptr %0, align 8, !tbaa !13
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, ptr @.str.2, ptr @.str.1
%10 = tail call i32 @ISCSI_SW_TCP_DBG(ptr noundef nonnull %0, ptr noundef nonnull @.str, i64 noundef %2, ptr noundef nonnull %9) #2
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %6, i64 0, i32 1
%12 = load ptr, ptr %11, align 8, !tbaa !14
%13 = load i32, ptr %12, align 4, !tbaa !19
%14 = tail call i32 @ntoh24(i32 noundef %13) #2
%15 = trunc i64 %2 to i32
%16 = tail call i64 @iscsi_padded(i32 noundef %15) #2
%17 = tail call i64 @iscsi_padded(i32 noundef %14) #2
%18 = icmp ne i64 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @WARN_ON(i32 noundef %19) #2
%21 = load i64, ptr %0, align 8, !tbaa !13
%22 = icmp eq i64 %21, 0
%23 = getelementptr inbounds %struct.iscsi_sw_tcp_conn, ptr %6, i64 0, i32 1
%24 = select i1 %22, ptr null, ptr %23
%25 = tail call i32 @iscsi_segment_init_linear(ptr noundef %6, ptr noundef %1, i64 noundef %2, ptr noundef null, ptr noundef %24) #2
ret void
}
declare i32 @ISCSI_SW_TCP_DBG(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ntoh24(i32 noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i64 @iscsi_padded(i32 noundef) local_unnamed_addr #1
declare i32 @iscsi_segment_init_linear(ptr noundef, ptr noundef, i64 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, !10, i64 8}
!6 = !{!"iscsi_conn", !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, !10, i64 0}
!12 = !{!"iscsi_tcp_conn", !10, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"iscsi_sw_tcp_conn", !16, i64 0, !18, i64 16}
!16 = !{!"TYPE_4__", !17, i64 0, !10, i64 8}
!17 = !{!"int", !8, i64 0}
!18 = !{!"hash_desc", !17, i64 0}
!19 = !{!20, !17, i64 0}
!20 = !{!"TYPE_3__", !17, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/scsi/extr_iscsi_tcp.c_iscsi_sw_tcp_send_linear_data_prep.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/scsi/extr_iscsi_tcp.c_iscsi_sw_tcp_send_linear_data_prep.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"datalen=%zd %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"digest enabled\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"digest disabled\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @iscsi_sw_tcp_send_linear_data_prep], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @iscsi_sw_tcp_send_linear_data_prep(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = load i64, ptr %0, align 8, !tbaa !14
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, ptr @.str.2, ptr @.str.1
%10 = tail call i32 @ISCSI_SW_TCP_DBG(ptr noundef nonnull %0, ptr noundef nonnull @.str, i64 noundef %2, ptr noundef nonnull %9) #2
%11 = getelementptr inbounds i8, ptr %6, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !15
%13 = load i32, ptr %12, align 4, !tbaa !20
%14 = tail call i32 @ntoh24(i32 noundef %13) #2
%15 = trunc i64 %2 to i32
%16 = tail call i64 @iscsi_padded(i32 noundef %15) #2
%17 = tail call i64 @iscsi_padded(i32 noundef %14) #2
%18 = icmp ne i64 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @WARN_ON(i32 noundef %19) #2
%21 = load i64, ptr %0, align 8, !tbaa !14
%22 = icmp eq i64 %21, 0
%23 = getelementptr inbounds i8, ptr %6, i64 16
%24 = select i1 %22, ptr null, ptr %23
%25 = tail call i32 @iscsi_segment_init_linear(ptr noundef %6, ptr noundef %1, i64 noundef %2, ptr noundef null, ptr noundef %24) #2
ret void
}
declare i32 @ISCSI_SW_TCP_DBG(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ntoh24(i32 noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i64 @iscsi_padded(i32 noundef) local_unnamed_addr #1
declare i32 @iscsi_segment_init_linear(ptr noundef, ptr noundef, i64 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, !11, i64 8}
!7 = !{!"iscsi_conn", !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, !11, i64 0}
!13 = !{!"iscsi_tcp_conn", !11, i64 0}
!14 = !{!7, !8, i64 0}
!15 = !{!16, !11, i64 8}
!16 = !{!"iscsi_sw_tcp_conn", !17, i64 0, !19, i64 16}
!17 = !{!"TYPE_4__", !18, i64 0, !11, i64 8}
!18 = !{!"int", !9, i64 0}
!19 = !{!"hash_desc", !18, i64 0}
!20 = !{!21, !18, i64 0}
!21 = !{!"TYPE_3__", !18, i64 0}
| fastsocket_kernel_drivers_scsi_extr_iscsi_tcp.c_iscsi_sw_tcp_send_linear_data_prep |
; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_atp870u.c_atp885_init.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_atp870u.c_atp885_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.atp_unit = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Scsi_Host = type { i32, i32, i32, i8, i32, i32 }
@.str = private unnamed_addr constant [62 x i8] c"ACARD AEC-67162 PCI Ultra3 LVD Host Adapter: IO:%lx, IRQ:%d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Scanning Channel A SCSI Device ...\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Scanning Channel B SCSI Device ...\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @atp885_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @atp885_init(ptr noundef %0) #0 {
%2 = alloca [2 x [16 x i8]], align 16
%3 = tail call ptr @shost_priv(ptr noundef %0) #3
%4 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 7
%5 = load ptr, ptr %4, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #3
%6 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 4
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 5
%9 = load i32, ptr %8, align 4, !tbaa !13
%10 = tail call i32 (ptr, ptr, ...) @dev_info(ptr noundef %5, ptr noundef nonnull @.str, i32 noundef %7, i32 noundef %9) #3
%11 = load i32, ptr %6, align 4, !tbaa !10
%12 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 6
%13 = load ptr, ptr %12, align 8, !tbaa !14
%14 = insertelement <2 x i32> poison, i32 %11, i64 0
%15 = shufflevector <2 x i32> %14, <2 x i32> poison, <2 x i32> zeroinitializer
%16 = add nsw <2 x i32> %15, <i32 128, i32 192>
%17 = sext <2 x i32> %16 to <2 x i64>
store <2 x i64> %17, ptr %13, align 8, !tbaa !15
%18 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 5
%19 = load ptr, ptr %18, align 8, !tbaa !17
%20 = add nsw <2 x i32> %15, <i32 64, i32 80>
%21 = sext <2 x i32> %20 to <2 x i64>
store <2 x i64> %21, ptr %19, align 8, !tbaa !15
%22 = tail call i32 @atp_readb_base(ptr noundef %3, i32 noundef 41) #3
%23 = trunc i32 %22 to i8
%24 = or i8 %23, 4
%25 = tail call i32 @atp_writeb_base(ptr noundef %3, i32 noundef 41, i8 noundef zeroext %24) #3
%26 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 1
br label %29
27: ; preds = %34
%28 = icmp ult i32 %37, 8176
br i1 %28, label %29, label %83, !llvm.loop !18
29: ; preds = %1, %27
%30 = phi i32 [ 8064, %1 ], [ %82, %27 ]
%31 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %30) #3
%32 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%33 = icmp eq i32 %32, -1
br i1 %33, label %83, label %34
34: ; preds = %29, %34
%35 = phi i1 [ false, %34 ], [ true, %29 ]
%36 = phi i64 [ 1, %34 ], [ 0, %29 ]
%37 = phi i32 [ %82, %34 ], [ %30, %29 ]
%38 = load ptr, ptr %3, align 8, !tbaa !20
%39 = getelementptr inbounds i32, ptr %38, i64 %36
store i32 0, ptr %39, align 4, !tbaa !21
%40 = getelementptr inbounds [2 x [16 x i8]], ptr %2, i64 0, i64 %36
%41 = add nuw nsw i32 %37, 1
%42 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %37) #3
%43 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
store i32 %43, ptr %40, align 16, !tbaa !21
%44 = add nuw nsw i32 %37, 2
%45 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %41) #3
%46 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%47 = getelementptr inbounds i32, ptr %40, i64 1
store i32 %46, ptr %47, align 4, !tbaa !21
%48 = add nuw nsw i32 %37, 3
%49 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %44) #3
%50 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%51 = getelementptr inbounds i32, ptr %40, i64 2
store i32 %50, ptr %51, align 8, !tbaa !21
%52 = add nuw nsw i32 %37, 4
%53 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %48) #3
%54 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%55 = getelementptr inbounds i32, ptr %40, i64 3
store i32 %54, ptr %55, align 4, !tbaa !21
%56 = add nuw nsw i32 %37, 5
%57 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %52) #3
%58 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%59 = load ptr, ptr %26, align 8, !tbaa !22
%60 = getelementptr inbounds ptr, ptr %59, i64 %36
%61 = load ptr, ptr %60, align 8, !tbaa !23
store i32 %58, ptr %61, align 4, !tbaa !21
%62 = add nuw nsw i32 %37, 6
%63 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %56) #3
%64 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%65 = load ptr, ptr %26, align 8, !tbaa !22
%66 = getelementptr inbounds ptr, ptr %65, i64 %36
%67 = load ptr, ptr %66, align 8, !tbaa !23
%68 = getelementptr inbounds i32, ptr %67, i64 1
store i32 %64, ptr %68, align 4, !tbaa !21
%69 = add nuw nsw i32 %37, 7
%70 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %62) #3
%71 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%72 = load ptr, ptr %26, align 8, !tbaa !22
%73 = getelementptr inbounds ptr, ptr %72, i64 %36
%74 = load ptr, ptr %73, align 8, !tbaa !23
%75 = getelementptr inbounds i32, ptr %74, i64 2
store i32 %71, ptr %75, align 4, !tbaa !21
%76 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %69) #3
%77 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%78 = load ptr, ptr %26, align 8, !tbaa !22
%79 = getelementptr inbounds ptr, ptr %78, i64 %36
%80 = load ptr, ptr %79, align 8, !tbaa !23
%81 = getelementptr inbounds i32, ptr %80, i64 3
store i32 %77, ptr %81, align 4, !tbaa !21
%82 = add nuw nsw i32 %37, 16
br i1 %35, label %34, label %27, !llvm.loop !24
83: ; preds = %29, %27
%84 = tail call i32 @atp_readb_base(ptr noundef %3, i32 noundef 41) #3
%85 = trunc i32 %84 to i8
%86 = and i8 %85, -5
%87 = tail call i32 @atp_writeb_base(ptr noundef %3, i32 noundef 41, i8 noundef zeroext %86) #3
%88 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 2
%89 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 3
%90 = getelementptr inbounds %struct.atp_unit, ptr %3, i64 0, i32 4
%91 = load ptr, ptr %88, align 8, !tbaa !25
store i32 0, ptr %91, align 4, !tbaa !21
%92 = load ptr, ptr %89, align 8, !tbaa !26
store i32 0, ptr %92, align 4, !tbaa !21
%93 = load ptr, ptr %26, align 8, !tbaa !22
%94 = load ptr, ptr %93, align 8, !tbaa !23
br label %95
95: ; preds = %121, %83
%96 = phi i64 [ 0, %83 ], [ %122, %121 ]
%97 = trunc i64 %96 to i32
%98 = shl nuw nsw i32 1, %97
%99 = getelementptr inbounds i32, ptr %94, i64 %96
%100 = load i32, ptr %99, align 4, !tbaa !21
%101 = icmp sgt i32 %100, 1
br i1 %101, label %104, label %102
102: ; preds = %95
%103 = icmp eq i32 %100, 0
br i1 %103, label %104, label %108
104: ; preds = %102, %95
%105 = phi ptr [ %91, %95 ], [ %92, %102 ]
%106 = load i32, ptr %105, align 4, !tbaa !21
%107 = or i32 %106, %98
store i32 %107, ptr %105, align 4, !tbaa !21
br label %108
108: ; preds = %104, %102
%109 = or disjoint i64 %96, 1
%110 = trunc i64 %109 to i32
%111 = shl nuw nsw i32 1, %110
%112 = getelementptr inbounds i32, ptr %94, i64 %109
%113 = load i32, ptr %112, align 4, !tbaa !21
%114 = icmp sgt i32 %113, 1
br i1 %114, label %117, label %115
115: ; preds = %108
%116 = icmp eq i32 %113, 0
br i1 %116, label %117, label %121
117: ; preds = %115, %108
%118 = phi ptr [ %91, %108 ], [ %92, %115 ]
%119 = load i32, ptr %118, align 4, !tbaa !21
%120 = or i32 %119, %111
store i32 %120, ptr %118, align 4, !tbaa !21
br label %121
121: ; preds = %117, %115
%122 = add nuw nsw i64 %96, 2
%123 = icmp eq i64 %122, 16
br i1 %123, label %124, label %95, !llvm.loop !27
124: ; preds = %121
%125 = load i32, ptr %92, align 4, !tbaa !21
%126 = xor i32 %125, -1
store i32 %126, ptr %92, align 4, !tbaa !21
%127 = load ptr, ptr %3, align 8, !tbaa !20
%128 = load i32, ptr %127, align 4, !tbaa !21
%129 = icmp eq i32 %128, 0
br i1 %129, label %130, label %151
130: ; preds = %124
%131 = getelementptr inbounds [2 x [16 x i8]], ptr %2, i64 0, i64 0, i64 1
%132 = load i8, ptr %131, align 1, !tbaa !28
%133 = lshr i8 %132, 1
%134 = and i8 %133, 32
%135 = and i8 %132, 7
%136 = or disjoint i8 %134, %135
%137 = zext nneg i8 %136 to i32
store i32 %137, ptr %127, align 4, !tbaa !21
%138 = getelementptr inbounds [2 x [16 x i8]], ptr %2, i64 0, i64 0, i64 2
%139 = load i8, ptr %138, align 2, !tbaa !28
%140 = and i8 %139, 4
%141 = icmp eq i8 %140, 0
br i1 %141, label %144, label %142
142: ; preds = %130
%143 = or disjoint i32 %137, 8
store i32 %143, ptr %127, align 4, !tbaa !21
br label %144
144: ; preds = %142, %130
%145 = load i8, ptr %2, align 16, !tbaa !28
%146 = and i8 %145, 7
%147 = load ptr, ptr %90, align 8, !tbaa !29
store i8 %146, ptr %147, align 1, !tbaa !28
%148 = load ptr, ptr %88, align 8, !tbaa !25
%149 = load ptr, ptr %89, align 8, !tbaa !26
%150 = load ptr, ptr %26, align 8, !tbaa !22
br label %151
151: ; preds = %124, %144
%152 = phi ptr [ %93, %124 ], [ %150, %144 ]
%153 = phi ptr [ %92, %124 ], [ %149, %144 ]
%154 = phi ptr [ %91, %124 ], [ %148, %144 ]
%155 = getelementptr inbounds i32, ptr %154, i64 1
store i32 0, ptr %155, align 4, !tbaa !21
%156 = getelementptr inbounds i32, ptr %153, i64 1
store i32 0, ptr %156, align 4, !tbaa !21
%157 = getelementptr inbounds ptr, ptr %152, i64 1
%158 = load ptr, ptr %157, align 8, !tbaa !23
br label %159
159: ; preds = %185, %151
%160 = phi i64 [ 0, %151 ], [ %186, %185 ]
%161 = trunc i64 %160 to i32
%162 = shl nuw nsw i32 1, %161
%163 = getelementptr inbounds i32, ptr %158, i64 %160
%164 = load i32, ptr %163, align 4, !tbaa !21
%165 = icmp sgt i32 %164, 1
br i1 %165, label %168, label %166
166: ; preds = %159
%167 = icmp eq i32 %164, 0
br i1 %167, label %168, label %172
168: ; preds = %159, %166
%169 = phi ptr [ %156, %166 ], [ %155, %159 ]
%170 = load i32, ptr %169, align 4, !tbaa !21
%171 = or i32 %170, %162
store i32 %171, ptr %169, align 4, !tbaa !21
br label %172
172: ; preds = %168, %166
%173 = or disjoint i64 %160, 1
%174 = trunc i64 %173 to i32
%175 = shl nuw nsw i32 1, %174
%176 = getelementptr inbounds i32, ptr %158, i64 %173
%177 = load i32, ptr %176, align 4, !tbaa !21
%178 = icmp sgt i32 %177, 1
br i1 %178, label %181, label %179
179: ; preds = %172
%180 = icmp eq i32 %177, 0
br i1 %180, label %181, label %185
181: ; preds = %179, %172
%182 = phi ptr [ %156, %179 ], [ %155, %172 ]
%183 = load i32, ptr %182, align 4, !tbaa !21
%184 = or i32 %183, %175
store i32 %184, ptr %182, align 4, !tbaa !21
br label %185
185: ; preds = %181, %179
%186 = add nuw nsw i64 %160, 2
%187 = icmp eq i64 %186, 16
br i1 %187, label %188, label %159, !llvm.loop !27
188: ; preds = %185
%189 = load i32, ptr %156, align 4, !tbaa !21
%190 = xor i32 %189, -1
store i32 %190, ptr %156, align 4, !tbaa !21
%191 = load ptr, ptr %3, align 8, !tbaa !20
%192 = getelementptr inbounds i32, ptr %191, i64 1
%193 = load i32, ptr %192, align 4, !tbaa !21
%194 = icmp eq i32 %193, 0
br i1 %194, label %195, label %215
195: ; preds = %188
%196 = getelementptr inbounds [2 x [16 x i8]], ptr %2, i64 0, i64 1
%197 = getelementptr inbounds [2 x [16 x i8]], ptr %2, i64 0, i64 1, i64 1
%198 = load i8, ptr %197, align 1, !tbaa !28
%199 = lshr i8 %198, 1
%200 = and i8 %199, 32
%201 = and i8 %198, 7
%202 = or disjoint i8 %200, %201
%203 = zext nneg i8 %202 to i32
store i32 %203, ptr %192, align 4, !tbaa !21
%204 = getelementptr inbounds [2 x [16 x i8]], ptr %2, i64 0, i64 1, i64 2
%205 = load i8, ptr %204, align 2, !tbaa !28
%206 = and i8 %205, 4
%207 = icmp eq i8 %206, 0
br i1 %207, label %210, label %208
208: ; preds = %195
%209 = or disjoint i32 %203, 8
store i32 %209, ptr %192, align 4, !tbaa !21
br label %210
210: ; preds = %208, %195
%211 = load i8, ptr %196, align 16, !tbaa !28
%212 = and i8 %211, 7
%213 = load ptr, ptr %90, align 8, !tbaa !29
%214 = getelementptr inbounds i8, ptr %213, i64 1
store i8 %212, ptr %214, align 1, !tbaa !28
br label %215
215: ; preds = %210, %188
%216 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 40) #3
%217 = trunc i32 %216 to i8
%218 = and i8 %217, -113
%219 = or disjoint i8 %218, 16
%220 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 40, i8 noundef zeroext %219) #3
%221 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, i32 noundef 128) #3
%222 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1, i32 noundef 128) #3
%223 = tail call i32 @msleep(i32 noundef 100) #3
%224 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, i32 noundef 0) #3
%225 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1, i32 noundef 0) #3
%226 = tail call i32 @msleep(i32 noundef 1000) #3
%227 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 27) #3
%228 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 23) #3
%229 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 27) #3
%230 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 23) #3
%231 = load ptr, ptr %90, align 8, !tbaa !29
%232 = load i8, ptr %231, align 1, !tbaa !28
%233 = icmp ugt i8 %232, 7
%234 = and i8 %232, 7
%235 = or disjoint i8 %234, 64
%236 = select i1 %233, i8 %235, i8 %232
%237 = tail call i32 @atp_set_host_id(ptr noundef nonnull %3, i32 noundef 0, i8 noundef zeroext %236) #3
%238 = load ptr, ptr %90, align 8, !tbaa !29
%239 = getelementptr inbounds i8, ptr %238, i64 1
%240 = load i8, ptr %239, align 1, !tbaa !28
%241 = icmp ugt i8 %240, 7
%242 = and i8 %240, 7
%243 = or disjoint i8 %242, 64
%244 = select i1 %241, i8 %243, i8 %240
%245 = tail call i32 @atp_set_host_id(ptr noundef nonnull %3, i32 noundef 1, i8 noundef zeroext %244) #3
%246 = tail call i32 @msleep(i32 noundef 600) #3
%247 = tail call i32 (ptr, ptr, ...) @dev_info(ptr noundef %5, ptr noundef nonnull @.str.1) #3
%248 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 27) #3
%249 = ashr i32 %248, 7
%250 = tail call i32 @atp_is(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, i32 noundef %249) #3
%251 = tail call i32 @atp_writeb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 22, i32 noundef 128) #3
%252 = tail call i32 (ptr, ptr, ...) @dev_info(ptr noundef %5, ptr noundef nonnull @.str.2) #3
%253 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 27) #3
%254 = ashr i32 %253, 7
%255 = tail call i32 @atp_is(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1, i32 noundef %254) #3
%256 = tail call i32 @atp_writeb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 22, i32 noundef 128) #3
%257 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 40) #3
%258 = trunc i32 %257 to i8
%259 = and i8 %258, 15
%260 = or disjoint i8 %259, -64
%261 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 40, i8 noundef zeroext %260) #3
%262 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 31) #3
%263 = trunc i32 %262 to i8
%264 = or i8 %263, -128
%265 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 31, i8 noundef zeroext %264) #3
%266 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 41) #3
%267 = trunc i32 %266 to i8
%268 = or i8 %267, 1
%269 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 41, i8 noundef zeroext %268) #3
store i32 16, ptr %0, align 4, !tbaa !30
%270 = load ptr, ptr %3, align 8, !tbaa !20
%271 = load i32, ptr %270, align 4, !tbaa !21
%272 = and i32 %271, 7
%273 = add nuw nsw i32 %272, 1
%274 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 1
store i32 %273, ptr %274, align 4, !tbaa !31
%275 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 2
store i32 1, ptr %275, align 4, !tbaa !32
%276 = load ptr, ptr %90, align 8, !tbaa !29
%277 = load i8, ptr %276, align 1, !tbaa !28
%278 = getelementptr inbounds %struct.Scsi_Host, ptr %0, i64 0, i32 3
store i8 %277, ptr %278, align 4, !tbaa !33
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @shost_priv(ptr noundef) local_unnamed_addr #2
declare i32 @dev_info(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @atp_readb_base(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_writeb_base(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2
declare i32 @atp_writew_base(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_readl_base(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_writeb_pci(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @msleep(i32 noundef) local_unnamed_addr #2
declare i32 @atp_readb_io(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_set_host_id(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2
declare i32 @atp_is(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_writeb_io(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 56}
!6 = !{!"atp_unit", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"Scsi_Host", !12, i64 0, !12, i64 4, !12, i64 8, !8, i64 12, !12, i64 16, !12, i64 20}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !12, i64 20}
!14 = !{!6, !7, i64 48}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!6, !7, i64 40}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !7, i64 0}
!21 = !{!12, !12, i64 0}
!22 = !{!6, !7, i64 8}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !19}
!25 = !{!6, !7, i64 16}
!26 = !{!6, !7, i64 24}
!27 = distinct !{!27, !19}
!28 = !{!8, !8, i64 0}
!29 = !{!6, !7, i64 32}
!30 = !{!11, !12, i64 0}
!31 = !{!11, !12, i64 4}
!32 = !{!11, !12, i64 8}
!33 = !{!11, !8, i64 12}
| ; ModuleID = 'AnghaBench/linux/drivers/scsi/extr_atp870u.c_atp885_init.c'
source_filename = "AnghaBench/linux/drivers/scsi/extr_atp870u.c_atp885_init.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 [62 x i8] c"ACARD AEC-67162 PCI Ultra3 LVD Host Adapter: IO:%lx, IRQ:%d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"Scanning Channel A SCSI Device ...\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Scanning Channel B SCSI Device ...\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @atp885_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @atp885_init(ptr noundef %0) #0 {
%2 = alloca [2 x [16 x i8]], align 1
%3 = tail call ptr @shost_priv(ptr noundef %0) #3
%4 = getelementptr inbounds i8, ptr %3, i64 56
%5 = load ptr, ptr %4, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #3
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = load i32, ptr %6, align 4, !tbaa !11
%8 = getelementptr inbounds i8, ptr %0, i64 20
%9 = load i32, ptr %8, align 4, !tbaa !14
%10 = tail call i32 (ptr, ptr, ...) @dev_info(ptr noundef %5, ptr noundef nonnull @.str, i32 noundef %7, i32 noundef %9) #3
%11 = load i32, ptr %6, align 4, !tbaa !11
%12 = getelementptr inbounds i8, ptr %3, i64 48
%13 = load ptr, ptr %12, align 8, !tbaa !15
%14 = insertelement <2 x i32> poison, i32 %11, i64 0
%15 = shufflevector <2 x i32> %14, <2 x i32> poison, <2 x i32> zeroinitializer
%16 = add nsw <2 x i32> %15, <i32 128, i32 192>
%17 = sext <2 x i32> %16 to <2 x i64>
store <2 x i64> %17, ptr %13, align 8, !tbaa !16
%18 = getelementptr inbounds i8, ptr %3, i64 40
%19 = load ptr, ptr %18, align 8, !tbaa !18
%20 = add nsw <2 x i32> %15, <i32 64, i32 80>
%21 = sext <2 x i32> %20 to <2 x i64>
store <2 x i64> %21, ptr %19, align 8, !tbaa !16
%22 = tail call i32 @atp_readb_base(ptr noundef %3, i32 noundef 41) #3
%23 = trunc i32 %22 to i8
%24 = or i8 %23, 4
%25 = tail call i32 @atp_writeb_base(ptr noundef %3, i32 noundef 41, i8 noundef zeroext %24) #3
%26 = getelementptr inbounds i8, ptr %3, i64 8
%27 = getelementptr inbounds i8, ptr %2, i64 16
br label %30
28: ; preds = %35
%29 = icmp ult i32 %39, 8176
br i1 %29, label %30, label %84, !llvm.loop !19
30: ; preds = %1, %28
%31 = phi i32 [ 8064, %1 ], [ %83, %28 ]
%32 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %31) #3
%33 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%34 = icmp eq i32 %33, -1
br i1 %34, label %84, label %35
35: ; preds = %30, %35
%36 = phi i1 [ false, %35 ], [ true, %30 ]
%37 = phi ptr [ %27, %35 ], [ %2, %30 ]
%38 = phi i64 [ 1, %35 ], [ 0, %30 ]
%39 = phi i32 [ %83, %35 ], [ %31, %30 ]
%40 = load ptr, ptr %3, align 8, !tbaa !21
%41 = getelementptr inbounds i32, ptr %40, i64 %38
store i32 0, ptr %41, align 4, !tbaa !22
%42 = add nuw nsw i32 %39, 1
%43 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %39) #3
%44 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
store i32 %44, ptr %37, align 1, !tbaa !22
%45 = add nuw nsw i32 %39, 2
%46 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %42) #3
%47 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%48 = getelementptr inbounds i8, ptr %37, i64 4
store i32 %47, ptr %48, align 1, !tbaa !22
%49 = add nuw nsw i32 %39, 3
%50 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %45) #3
%51 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%52 = getelementptr inbounds i8, ptr %37, i64 8
store i32 %51, ptr %52, align 1, !tbaa !22
%53 = add nuw nsw i32 %39, 4
%54 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %49) #3
%55 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%56 = getelementptr inbounds i8, ptr %37, i64 12
store i32 %55, ptr %56, align 1, !tbaa !22
%57 = add nuw nsw i32 %39, 5
%58 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %53) #3
%59 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%60 = load ptr, ptr %26, align 8, !tbaa !23
%61 = getelementptr inbounds ptr, ptr %60, i64 %38
%62 = load ptr, ptr %61, align 8, !tbaa !24
store i32 %59, ptr %62, align 4, !tbaa !22
%63 = add nuw nsw i32 %39, 6
%64 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %57) #3
%65 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%66 = load ptr, ptr %26, align 8, !tbaa !23
%67 = getelementptr inbounds ptr, ptr %66, i64 %38
%68 = load ptr, ptr %67, align 8, !tbaa !24
%69 = getelementptr inbounds i8, ptr %68, i64 4
store i32 %65, ptr %69, align 4, !tbaa !22
%70 = add nuw nsw i32 %39, 7
%71 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %63) #3
%72 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%73 = load ptr, ptr %26, align 8, !tbaa !23
%74 = getelementptr inbounds ptr, ptr %73, i64 %38
%75 = load ptr, ptr %74, align 8, !tbaa !24
%76 = getelementptr inbounds i8, ptr %75, i64 8
store i32 %72, ptr %76, align 4, !tbaa !22
%77 = tail call i32 @atp_writew_base(ptr noundef nonnull %3, i32 noundef 60, i32 noundef %70) #3
%78 = tail call i32 @atp_readl_base(ptr noundef nonnull %3, i32 noundef 56) #3
%79 = load ptr, ptr %26, align 8, !tbaa !23
%80 = getelementptr inbounds ptr, ptr %79, i64 %38
%81 = load ptr, ptr %80, align 8, !tbaa !24
%82 = getelementptr inbounds i8, ptr %81, i64 12
store i32 %78, ptr %82, align 4, !tbaa !22
%83 = add nuw nsw i32 %39, 16
br i1 %36, label %35, label %28, !llvm.loop !25
84: ; preds = %30, %28
%85 = tail call i32 @atp_readb_base(ptr noundef %3, i32 noundef 41) #3
%86 = trunc i32 %85 to i8
%87 = and i8 %86, -5
%88 = tail call i32 @atp_writeb_base(ptr noundef %3, i32 noundef 41, i8 noundef zeroext %87) #3
%89 = getelementptr inbounds i8, ptr %3, i64 16
%90 = getelementptr inbounds i8, ptr %3, i64 24
%91 = getelementptr inbounds i8, ptr %3, i64 32
%92 = load ptr, ptr %89, align 8, !tbaa !26
store i32 0, ptr %92, align 4, !tbaa !22
%93 = load ptr, ptr %90, align 8, !tbaa !27
store i32 0, ptr %93, align 4, !tbaa !22
%94 = load ptr, ptr %26, align 8, !tbaa !23
%95 = load ptr, ptr %94, align 8, !tbaa !24
br label %96
96: ; preds = %84, %109
%97 = phi i64 [ 0, %84 ], [ %110, %109 ]
%98 = trunc nuw nsw i64 %97 to i32
%99 = shl nuw nsw i32 1, %98
%100 = getelementptr inbounds i32, ptr %95, i64 %97
%101 = load i32, ptr %100, align 4, !tbaa !22
%102 = icmp sgt i32 %101, 1
br i1 %102, label %105, label %103
103: ; preds = %96
%104 = icmp eq i32 %101, 0
br i1 %104, label %105, label %109
105: ; preds = %103, %96
%106 = phi ptr [ %92, %96 ], [ %93, %103 ]
%107 = load i32, ptr %106, align 4, !tbaa !22
%108 = or i32 %107, %99
store i32 %108, ptr %106, align 4, !tbaa !22
br label %109
109: ; preds = %105, %103
%110 = add nuw nsw i64 %97, 1
%111 = icmp eq i64 %110, 16
br i1 %111, label %112, label %96, !llvm.loop !28
112: ; preds = %109
%113 = load i32, ptr %93, align 4, !tbaa !22
%114 = xor i32 %113, -1
store i32 %114, ptr %93, align 4, !tbaa !22
%115 = load ptr, ptr %3, align 8, !tbaa !21
%116 = load i32, ptr %115, align 4, !tbaa !22
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %139
118: ; preds = %112
%119 = getelementptr inbounds i8, ptr %2, i64 1
%120 = load i8, ptr %119, align 1, !tbaa !29
%121 = lshr i8 %120, 1
%122 = and i8 %121, 32
%123 = and i8 %120, 7
%124 = or disjoint i8 %122, %123
%125 = zext nneg i8 %124 to i32
store i32 %125, ptr %115, align 4, !tbaa !22
%126 = getelementptr inbounds i8, ptr %2, i64 2
%127 = load i8, ptr %126, align 1, !tbaa !29
%128 = and i8 %127, 4
%129 = icmp eq i8 %128, 0
br i1 %129, label %132, label %130
130: ; preds = %118
%131 = or disjoint i32 %125, 8
store i32 %131, ptr %115, align 4, !tbaa !22
br label %132
132: ; preds = %130, %118
%133 = load i8, ptr %2, align 1, !tbaa !29
%134 = and i8 %133, 7
%135 = load ptr, ptr %91, align 8, !tbaa !30
store i8 %134, ptr %135, align 1, !tbaa !29
%136 = load ptr, ptr %89, align 8, !tbaa !26
%137 = load ptr, ptr %90, align 8, !tbaa !27
%138 = load ptr, ptr %26, align 8, !tbaa !23
br label %139
139: ; preds = %112, %132
%140 = phi ptr [ %94, %112 ], [ %138, %132 ]
%141 = phi ptr [ %93, %112 ], [ %137, %132 ]
%142 = phi ptr [ %92, %112 ], [ %136, %132 ]
%143 = getelementptr inbounds i8, ptr %142, i64 4
store i32 0, ptr %143, align 4, !tbaa !22
%144 = getelementptr inbounds i8, ptr %141, i64 4
store i32 0, ptr %144, align 4, !tbaa !22
%145 = getelementptr inbounds i8, ptr %140, i64 8
%146 = load ptr, ptr %145, align 8, !tbaa !24
br label %147
147: ; preds = %160, %139
%148 = phi i64 [ 0, %139 ], [ %161, %160 ]
%149 = trunc nuw nsw i64 %148 to i32
%150 = shl nuw nsw i32 1, %149
%151 = getelementptr inbounds i32, ptr %146, i64 %148
%152 = load i32, ptr %151, align 4, !tbaa !22
%153 = icmp sgt i32 %152, 1
br i1 %153, label %156, label %154
154: ; preds = %147
%155 = icmp eq i32 %152, 0
br i1 %155, label %156, label %160
156: ; preds = %147, %154
%157 = phi ptr [ %144, %154 ], [ %143, %147 ]
%158 = load i32, ptr %157, align 4, !tbaa !22
%159 = or i32 %158, %150
store i32 %159, ptr %157, align 4, !tbaa !22
br label %160
160: ; preds = %156, %154
%161 = add nuw nsw i64 %148, 1
%162 = icmp eq i64 %161, 16
br i1 %162, label %163, label %147, !llvm.loop !28
163: ; preds = %160
%164 = load i32, ptr %144, align 4, !tbaa !22
%165 = xor i32 %164, -1
store i32 %165, ptr %144, align 4, !tbaa !22
%166 = load ptr, ptr %3, align 8, !tbaa !21
%167 = getelementptr inbounds i8, ptr %166, i64 4
%168 = load i32, ptr %167, align 4, !tbaa !22
%169 = icmp eq i32 %168, 0
br i1 %169, label %170, label %190
170: ; preds = %163
%171 = getelementptr inbounds i8, ptr %2, i64 16
%172 = getelementptr inbounds i8, ptr %2, i64 17
%173 = load i8, ptr %172, align 1, !tbaa !29
%174 = lshr i8 %173, 1
%175 = and i8 %174, 32
%176 = and i8 %173, 7
%177 = or disjoint i8 %175, %176
%178 = zext nneg i8 %177 to i32
store i32 %178, ptr %167, align 4, !tbaa !22
%179 = getelementptr inbounds i8, ptr %2, i64 18
%180 = load i8, ptr %179, align 1, !tbaa !29
%181 = and i8 %180, 4
%182 = icmp eq i8 %181, 0
br i1 %182, label %185, label %183
183: ; preds = %170
%184 = or disjoint i32 %178, 8
store i32 %184, ptr %167, align 4, !tbaa !22
br label %185
185: ; preds = %183, %170
%186 = load i8, ptr %171, align 1, !tbaa !29
%187 = and i8 %186, 7
%188 = load ptr, ptr %91, align 8, !tbaa !30
%189 = getelementptr inbounds i8, ptr %188, i64 1
store i8 %187, ptr %189, align 1, !tbaa !29
br label %190
190: ; preds = %185, %163
%191 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 40) #3
%192 = trunc i32 %191 to i8
%193 = and i8 %192, -113
%194 = or disjoint i8 %193, 16
%195 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 40, i8 noundef zeroext %194) #3
%196 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, i32 noundef 128) #3
%197 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1, i32 noundef 128) #3
%198 = tail call i32 @msleep(i32 noundef 100) #3
%199 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, i32 noundef 0) #3
%200 = tail call i32 @atp_writeb_pci(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1, i32 noundef 0) #3
%201 = tail call i32 @msleep(i32 noundef 1000) #3
%202 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 27) #3
%203 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 23) #3
%204 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 27) #3
%205 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 23) #3
%206 = load ptr, ptr %91, align 8, !tbaa !30
%207 = load i8, ptr %206, align 1, !tbaa !29
%208 = icmp ugt i8 %207, 7
%209 = and i8 %207, 7
%210 = or disjoint i8 %209, 64
%211 = select i1 %208, i8 %210, i8 %207
%212 = tail call i32 @atp_set_host_id(ptr noundef nonnull %3, i32 noundef 0, i8 noundef zeroext %211) #3
%213 = load ptr, ptr %91, align 8, !tbaa !30
%214 = getelementptr inbounds i8, ptr %213, i64 1
%215 = load i8, ptr %214, align 1, !tbaa !29
%216 = icmp ugt i8 %215, 7
%217 = and i8 %215, 7
%218 = or disjoint i8 %217, 64
%219 = select i1 %216, i8 %218, i8 %215
%220 = tail call i32 @atp_set_host_id(ptr noundef nonnull %3, i32 noundef 1, i8 noundef zeroext %219) #3
%221 = tail call i32 @msleep(i32 noundef 600) #3
%222 = tail call i32 (ptr, ptr, ...) @dev_info(ptr noundef %5, ptr noundef nonnull @.str.1) #3
%223 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 27) #3
%224 = ashr i32 %223, 7
%225 = tail call i32 @atp_is(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 1, i32 noundef %224) #3
%226 = tail call i32 @atp_writeb_io(ptr noundef nonnull %3, i32 noundef 0, i32 noundef 22, i32 noundef 128) #3
%227 = tail call i32 (ptr, ptr, ...) @dev_info(ptr noundef %5, ptr noundef nonnull @.str.2) #3
%228 = tail call i32 @atp_readb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 27) #3
%229 = ashr i32 %228, 7
%230 = tail call i32 @atp_is(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1, i32 noundef %229) #3
%231 = tail call i32 @atp_writeb_io(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 22, i32 noundef 128) #3
%232 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 40) #3
%233 = trunc i32 %232 to i8
%234 = and i8 %233, 15
%235 = or disjoint i8 %234, -64
%236 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 40, i8 noundef zeroext %235) #3
%237 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 31) #3
%238 = trunc i32 %237 to i8
%239 = or i8 %238, -128
%240 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 31, i8 noundef zeroext %239) #3
%241 = tail call i32 @atp_readb_base(ptr noundef nonnull %3, i32 noundef 41) #3
%242 = trunc i32 %241 to i8
%243 = or i8 %242, 1
%244 = tail call i32 @atp_writeb_base(ptr noundef nonnull %3, i32 noundef 41, i8 noundef zeroext %243) #3
store i32 16, ptr %0, align 4, !tbaa !31
%245 = load ptr, ptr %3, align 8, !tbaa !21
%246 = load i32, ptr %245, align 4, !tbaa !22
%247 = and i32 %246, 7
%248 = add nuw nsw i32 %247, 1
%249 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %248, ptr %249, align 4, !tbaa !32
%250 = getelementptr inbounds i8, ptr %0, i64 8
store i32 1, ptr %250, align 4, !tbaa !33
%251 = load ptr, ptr %91, align 8, !tbaa !30
%252 = load i8, ptr %251, align 1, !tbaa !29
%253 = getelementptr inbounds i8, ptr %0, i64 12
store i8 %252, ptr %253, align 4, !tbaa !34
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @shost_priv(ptr noundef) local_unnamed_addr #2
declare i32 @dev_info(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @atp_readb_base(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_writeb_base(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2
declare i32 @atp_writew_base(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_readl_base(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_writeb_pci(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @msleep(i32 noundef) local_unnamed_addr #2
declare i32 @atp_readb_io(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_set_host_id(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2
declare i32 @atp_is(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @atp_writeb_io(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 56}
!7 = !{!"atp_unit", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 16}
!12 = !{!"Scsi_Host", !13, i64 0, !13, i64 4, !13, i64 8, !9, i64 12, !13, i64 16, !13, i64 20}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !13, i64 20}
!15 = !{!7, !8, i64 48}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !9, i64 0}
!18 = !{!7, !8, i64 40}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!7, !8, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!7, !8, i64 8}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !20}
!26 = !{!7, !8, i64 16}
!27 = !{!7, !8, i64 24}
!28 = distinct !{!28, !20}
!29 = !{!9, !9, i64 0}
!30 = !{!7, !8, i64 32}
!31 = !{!12, !13, i64 0}
!32 = !{!12, !13, i64 4}
!33 = !{!12, !13, i64 8}
!34 = !{!12, !9, i64 12}
| linux_drivers_scsi_extr_atp870u.c_atp885_init |
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_hw.c_ath9k_hw_set11nmac2040.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_hw.c_ath9k_hw_set11nmac2040.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@AR_2040_JOINED_RX_CLEAR = dso_local local_unnamed_addr global i64 0, align 8
@AR_2040_MODE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @ath9k_hw_set11nmac2040(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i64 @IS_CHAN_HT40(ptr noundef %1) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = load i32, ptr %0, align 4, !tbaa !5
%7 = icmp eq i32 %6, 0
%8 = load i64, ptr @AR_2040_JOINED_RX_CLEAR, align 8
%9 = select i1 %7, i64 %8, i64 0
br label %10
10: ; preds = %5, %2
%11 = phi i64 [ 0, %2 ], [ %9, %5 ]
%12 = load i32, ptr @AR_2040_MODE, align 4, !tbaa !11
%13 = tail call i32 @REG_WRITE(ptr noundef %0, i32 noundef %12, i64 noundef %11) #2
ret void
}
declare i64 @IS_CHAN_HT40(ptr noundef) local_unnamed_addr #1
declare i32 @REG_WRITE(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"ath_hw", !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"}
!11 = !{!8, !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_hw.c_ath9k_hw_set11nmac2040.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/ath/ath9k/extr_hw.c_ath9k_hw_set11nmac2040.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@AR_2040_JOINED_RX_CLEAR = common local_unnamed_addr global i64 0, align 8
@AR_2040_MODE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @ath9k_hw_set11nmac2040(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = tail call i64 @IS_CHAN_HT40(ptr noundef %1) #2
%4 = icmp eq i64 %3, 0
br i1 %4, label %10, label %5
5: ; preds = %2
%6 = load i32, ptr %0, align 4, !tbaa !6
%7 = icmp eq i32 %6, 0
%8 = load i64, ptr @AR_2040_JOINED_RX_CLEAR, align 8
%9 = select i1 %7, i64 %8, i64 0
br label %10
10: ; preds = %5, %2
%11 = phi i64 [ 0, %2 ], [ %9, %5 ]
%12 = load i32, ptr @AR_2040_MODE, align 4, !tbaa !12
%13 = tail call i32 @REG_WRITE(ptr noundef %0, i32 noundef %12, i64 noundef %11) #2
ret void
}
declare i64 @IS_CHAN_HT40(ptr noundef) local_unnamed_addr #1
declare i32 @REG_WRITE(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"ath_hw", !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"}
!12 = !{!9, !9, i64 0}
| linux_drivers_net_wireless_ath_ath9k_extr_hw.c_ath9k_hw_set11nmac2040 |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/cxgb4/extr_sge.c_alloc_ring.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/cxgb4/extr_sge.c_alloc_ring.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @alloc_ring], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @alloc_ring(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef writeonly %5, i64 noundef %6) #0 {
%8 = mul i64 %2, %1
%9 = add i64 %8, %6
%10 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%11 = tail call ptr @dma_alloc_coherent(ptr noundef %0, i64 noundef %9, ptr noundef %4, i32 noundef %10) #2
%12 = icmp eq ptr %11, null
br i1 %12, label %28, label %13
13: ; preds = %7
%14 = icmp eq i64 %3, 0
br i1 %14, label %22, label %15
15: ; preds = %13
%16 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%17 = tail call ptr @kcalloc(i64 noundef %1, i64 noundef %3, i32 noundef %16) #2
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %4, align 4, !tbaa !5
%21 = tail call i32 @dma_free_coherent(ptr noundef %0, i64 noundef %9, ptr noundef nonnull %11, i32 noundef %20) #2
br label %28
22: ; preds = %15, %13
%23 = phi ptr [ %17, %15 ], [ null, %13 ]
%24 = icmp eq ptr %5, null
br i1 %24, label %26, label %25
25: ; preds = %22
store ptr %23, ptr %5, align 8, !tbaa !9
br label %26
26: ; preds = %25, %22
%27 = tail call i32 @memset(ptr noundef nonnull %11, i32 noundef 0, i64 noundef %9) #2
br label %28
28: ; preds = %7, %26, %19
%29 = phi ptr [ %11, %26 ], [ null, %19 ], [ null, %7 ]
ret ptr %29
}
declare ptr @dma_alloc_coherent(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @kcalloc(i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dma_free_coherent(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !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}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/cxgb4/extr_sge.c_alloc_ring.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/cxgb4/extr_sge.c_alloc_ring.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @alloc_ring], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @alloc_ring(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef writeonly %5, i64 noundef %6) #0 {
%8 = mul i64 %2, %1
%9 = add i64 %8, %6
%10 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%11 = tail call ptr @dma_alloc_coherent(ptr noundef %0, i64 noundef %9, ptr noundef %4, i32 noundef %10) #2
%12 = icmp eq ptr %11, null
br i1 %12, label %28, label %13
13: ; preds = %7
%14 = icmp eq i64 %3, 0
br i1 %14, label %22, label %15
15: ; preds = %13
%16 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%17 = tail call ptr @kcalloc(i64 noundef %1, i64 noundef %3, i32 noundef %16) #2
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %4, align 4, !tbaa !6
%21 = tail call i32 @dma_free_coherent(ptr noundef %0, i64 noundef %9, ptr noundef nonnull %11, i32 noundef %20) #2
br label %28
22: ; preds = %15, %13
%23 = phi ptr [ %17, %15 ], [ null, %13 ]
%24 = icmp eq ptr %5, null
br i1 %24, label %26, label %25
25: ; preds = %22
store ptr %23, ptr %5, align 8, !tbaa !10
br label %26
26: ; preds = %25, %22
%27 = tail call i32 @memset(ptr noundef nonnull %11, i32 noundef 0, i64 noundef %9) #2
br label %28
28: ; preds = %7, %26, %19
%29 = phi ptr [ %11, %26 ], [ null, %19 ], [ null, %7 ]
ret ptr %29
}
declare ptr @dma_alloc_coherent(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @kcalloc(i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @dma_free_coherent(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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}
| fastsocket_kernel_drivers_net_cxgb4_extr_sge.c_alloc_ring |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_pm4.xml.h_CP_DRAW_INDX_1_NUM_INSTANCES.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_pm4.xml.h_CP_DRAW_INDX_1_NUM_INSTANCES.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CP_DRAW_INDX_1_NUM_INSTANCES__SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@CP_DRAW_INDX_1_NUM_INSTANCES__MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @CP_DRAW_INDX_1_NUM_INSTANCES], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @CP_DRAW_INDX_1_NUM_INSTANCES(i32 noundef %0) #0 {
%2 = load i32, ptr @CP_DRAW_INDX_1_NUM_INSTANCES__SHIFT, align 4, !tbaa !5
%3 = shl i32 %0, %2
%4 = load i32, ptr @CP_DRAW_INDX_1_NUM_INSTANCES__MASK, align 4, !tbaa !5
%5 = and i32 %3, %4
ret i32 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_pm4.xml.h_CP_DRAW_INDX_1_NUM_INSTANCES.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/adreno/extr_adreno_pm4.xml.h_CP_DRAW_INDX_1_NUM_INSTANCES.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CP_DRAW_INDX_1_NUM_INSTANCES__SHIFT = common local_unnamed_addr global i32 0, align 4
@CP_DRAW_INDX_1_NUM_INSTANCES__MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @CP_DRAW_INDX_1_NUM_INSTANCES], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal i32 @CP_DRAW_INDX_1_NUM_INSTANCES(i32 noundef %0) #0 {
%2 = load i32, ptr @CP_DRAW_INDX_1_NUM_INSTANCES__SHIFT, align 4, !tbaa !6
%3 = shl i32 %0, %2
%4 = load i32, ptr @CP_DRAW_INDX_1_NUM_INSTANCES__MASK, align 4, !tbaa !6
%5 = and i32 %3, %4
ret i32 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_msm_adreno_extr_adreno_pm4.xml.h_CP_DRAW_INDX_1_NUM_INSTANCES |
; ModuleID = 'AnghaBench/linux/sound/soc/xtensa/extr_xtfpga-i2s.c_xtfpga_pcm_pointer.c'
source_filename = "AnghaBench/linux/sound/soc/xtensa/extr_xtfpga-i2s.c_xtfpga_pcm_pointer.c"
target datalayout = "e-m:e-p270:32:32-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_pcm_runtime = type { i64, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @xtfpga_pcm_pointer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @xtfpga_pcm_pointer(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.snd_pcm_runtime, ptr %2, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !10
%5 = load i32, ptr %4, align 4, !tbaa !13
%6 = tail call i64 @READ_ONCE(i32 noundef %5) #2
%7 = load i64, ptr %2, align 8, !tbaa !16
%8 = icmp slt i64 %6, %7
%9 = select i1 %8, i64 %6, i64 0
ret i64 %9
}
declare i64 @READ_ONCE(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 = !{!"snd_pcm_substream", !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 = !{!"snd_pcm_runtime", !12, i64 0, !7, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"xtfpga_i2s", !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!11, !12, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/soc/xtensa/extr_xtfpga-i2s.c_xtfpga_pcm_pointer.c'
source_filename = "AnghaBench/linux/sound/soc/xtensa/extr_xtfpga-i2s.c_xtfpga_pcm_pointer.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 @xtfpga_pcm_pointer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @xtfpga_pcm_pointer(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %2, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = load i32, ptr %4, align 4, !tbaa !14
%6 = tail call i64 @READ_ONCE(i32 noundef %5) #2
%7 = load i64, ptr %2, align 8, !tbaa !17
%8 = icmp slt i64 %6, %7
%9 = select i1 %8, i64 %6, i64 0
ret i64 %9
}
declare i64 @READ_ONCE(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 = !{!"snd_pcm_substream", !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 = !{!"snd_pcm_runtime", !13, i64 0, !8, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"xtfpga_i2s", !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!12, !13, i64 0}
| linux_sound_soc_xtensa_extr_xtfpga-i2s.c_xtfpga_pcm_pointer |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/bnx2x/extr_bnx2x_link.c_bnx2x_bits_en.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/bnx2x/extr_bnx2x_link.c_bnx2x_bits_en.c"
target datalayout = "e-m:e-p270:32:32-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 @bnx2x_bits_en], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @bnx2x_bits_en(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @REG_RD(ptr noundef %0, i32 noundef %1) #2
%5 = or i32 %4, %2
%6 = tail call i32 @REG_WR(ptr noundef %0, i32 noundef %1, i32 noundef %5) #2
ret i32 %5
}
declare i32 @REG_RD(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @REG_WR(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/broadcom/bnx2x/extr_bnx2x_link.c_bnx2x_bits_en.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/broadcom/bnx2x/extr_bnx2x_link.c_bnx2x_bits_en.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 @bnx2x_bits_en], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @bnx2x_bits_en(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @REG_RD(ptr noundef %0, i32 noundef %1) #2
%5 = or i32 %4, %2
%6 = tail call i32 @REG_WR(ptr noundef %0, i32 noundef %1, i32 noundef %5) #2
ret i32 %5
}
declare i32 @REG_RD(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @REG_WR(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_drivers_net_ethernet_broadcom_bnx2x_extr_bnx2x_link.c_bnx2x_bits_en |
; ModuleID = 'AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-dvb.c_unregister_dvb.c'
source_filename = "AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-dvb.c_unregister_dvb.c"
target datalayout = "e-m:e-p270:32:32-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.cx231xx_dvb = type { ptr, ptr, i32, ptr, %struct.TYPE_5__, i32, i32, i32, i32 }
%struct.TYPE_5__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @unregister_dvb], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @unregister_dvb(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 8
%3 = tail call i32 @dvb_net_release(ptr noundef nonnull %2) #2
%4 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 4
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 7
%7 = tail call i32 %5(ptr noundef nonnull %4, ptr noundef nonnull %6) #2
%8 = load ptr, ptr %4, align 8, !tbaa !5
%9 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 6
%10 = tail call i32 %8(ptr noundef nonnull %4, ptr noundef nonnull %9) #2
%11 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 5
%12 = tail call i32 @dvb_dmxdev_release(ptr noundef nonnull %11) #2
%13 = tail call i32 @dvb_dmx_release(ptr noundef nonnull %4) #2
%14 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 3
%15 = load ptr, ptr %14, align 8, !tbaa !13
%16 = getelementptr inbounds i64, ptr %15, i64 1
%17 = load i64, ptr %16, align 8, !tbaa !14
%18 = icmp eq i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %1
%20 = tail call i32 @dvb_unregister_frontend(i64 noundef %17) #2
%21 = load ptr, ptr %14, align 8, !tbaa !13
br label %22
22: ; preds = %19, %1
%23 = phi ptr [ %21, %19 ], [ %15, %1 ]
%24 = load i64, ptr %23, align 8, !tbaa !14
%25 = tail call i32 @dvb_unregister_frontend(i64 noundef %24) #2
%26 = load ptr, ptr %14, align 8, !tbaa !13
%27 = getelementptr inbounds i64, ptr %26, i64 1
%28 = load i64, ptr %27, align 8, !tbaa !14
%29 = icmp eq i64 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %22
%31 = tail call i32 @dvb_frontend_detach(i64 noundef %28) #2
%32 = load ptr, ptr %14, align 8, !tbaa !13
br label %33
33: ; preds = %30, %22
%34 = phi ptr [ %32, %30 ], [ %26, %22 ]
%35 = load i64, ptr %34, align 8, !tbaa !14
%36 = tail call i32 @dvb_frontend_detach(i64 noundef %35) #2
%37 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 2
%38 = tail call i32 @dvb_unregister_adapter(ptr noundef nonnull %37) #2
%39 = getelementptr inbounds %struct.cx231xx_dvb, ptr %0, i64 0, i32 1
%40 = load ptr, ptr %39, align 8, !tbaa !16
%41 = tail call i32 @dvb_module_release(ptr noundef %40) #2
store ptr null, ptr %39, align 8, !tbaa !16
%42 = load ptr, ptr %0, align 8, !tbaa !17
%43 = getelementptr inbounds ptr, ptr %42, i64 1
%44 = load ptr, ptr %43, align 8, !tbaa !18
%45 = tail call i32 @dvb_module_release(ptr noundef %44) #2
%46 = load ptr, ptr %0, align 8, !tbaa !17
%47 = getelementptr inbounds ptr, ptr %46, i64 1
store ptr null, ptr %47, align 8, !tbaa !18
%48 = load ptr, ptr %0, align 8, !tbaa !17
%49 = load ptr, ptr %48, align 8, !tbaa !18
%50 = tail call i32 @dvb_module_release(ptr noundef %49) #2
%51 = load ptr, ptr %0, align 8, !tbaa !17
store ptr null, ptr %51, align 8, !tbaa !18
ret void
}
declare i32 @dvb_net_release(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_dmxdev_release(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_dmx_release(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 @dvb_unregister_adapter(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_module_release(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 32}
!6 = !{!"cx231xx_dvb", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"TYPE_4__", !7, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !7, i64 0}
!18 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-dvb.c_unregister_dvb.c'
source_filename = "AnghaBench/linux/drivers/media/usb/cx231xx/extr_cx231xx-dvb.c_unregister_dvb.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 @unregister_dvb], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @unregister_dvb(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 52
%3 = tail call i32 @dvb_net_release(ptr noundef nonnull %2) #2
%4 = getelementptr inbounds i8, ptr %0, i64 32
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %0, i64 48
%7 = tail call i32 %5(ptr noundef nonnull %4, ptr noundef nonnull %6) #2
%8 = load ptr, ptr %4, align 8, !tbaa !6
%9 = getelementptr inbounds i8, ptr %0, i64 44
%10 = tail call i32 %8(ptr noundef nonnull %4, ptr noundef nonnull %9) #2
%11 = getelementptr inbounds i8, ptr %0, i64 40
%12 = tail call i32 @dvb_dmxdev_release(ptr noundef nonnull %11) #2
%13 = tail call i32 @dvb_dmx_release(ptr noundef nonnull %4) #2
%14 = getelementptr inbounds i8, ptr %0, i64 24
%15 = load ptr, ptr %14, align 8, !tbaa !14
%16 = getelementptr inbounds i8, ptr %15, i64 8
%17 = load i64, ptr %16, align 8, !tbaa !15
%18 = icmp eq i64 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %1
%20 = tail call i32 @dvb_unregister_frontend(i64 noundef %17) #2
%21 = load ptr, ptr %14, align 8, !tbaa !14
br label %22
22: ; preds = %19, %1
%23 = phi ptr [ %21, %19 ], [ %15, %1 ]
%24 = load i64, ptr %23, align 8, !tbaa !15
%25 = tail call i32 @dvb_unregister_frontend(i64 noundef %24) #2
%26 = load ptr, ptr %14, align 8, !tbaa !14
%27 = getelementptr inbounds i8, ptr %26, i64 8
%28 = load i64, ptr %27, align 8, !tbaa !15
%29 = icmp eq i64 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %22
%31 = tail call i32 @dvb_frontend_detach(i64 noundef %28) #2
%32 = load ptr, ptr %14, align 8, !tbaa !14
br label %33
33: ; preds = %30, %22
%34 = phi ptr [ %32, %30 ], [ %26, %22 ]
%35 = load i64, ptr %34, align 8, !tbaa !15
%36 = tail call i32 @dvb_frontend_detach(i64 noundef %35) #2
%37 = getelementptr inbounds i8, ptr %0, i64 16
%38 = tail call i32 @dvb_unregister_adapter(ptr noundef nonnull %37) #2
%39 = getelementptr inbounds i8, ptr %0, i64 8
%40 = load ptr, ptr %39, align 8, !tbaa !17
%41 = tail call i32 @dvb_module_release(ptr noundef %40) #2
store ptr null, ptr %39, align 8, !tbaa !17
%42 = load ptr, ptr %0, align 8, !tbaa !18
%43 = getelementptr inbounds i8, ptr %42, i64 8
%44 = load ptr, ptr %43, align 8, !tbaa !19
%45 = tail call i32 @dvb_module_release(ptr noundef %44) #2
%46 = load ptr, ptr %0, align 8, !tbaa !18
%47 = getelementptr inbounds i8, ptr %46, i64 8
store ptr null, ptr %47, align 8, !tbaa !19
%48 = load ptr, ptr %0, align 8, !tbaa !18
%49 = load ptr, ptr %48, align 8, !tbaa !19
%50 = tail call i32 @dvb_module_release(ptr noundef %49) #2
%51 = load ptr, ptr %0, align 8, !tbaa !18
store ptr null, ptr %51, align 8, !tbaa !19
ret void
}
declare i32 @dvb_net_release(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_dmxdev_release(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_dmx_release(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 @dvb_unregister_adapter(ptr noundef) local_unnamed_addr #1
declare i32 @dvb_module_release(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 32}
!7 = !{!"cx231xx_dvb", !8, i64 0, !8, i64 8, !11, i64 16, !8, i64 24, !12, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"TYPE_5__", !13, i64 0}
!13 = !{!"TYPE_4__", !8, i64 0}
!14 = !{!7, !8, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!7, !8, i64 8}
!18 = !{!7, !8, i64 0}
!19 = !{!8, !8, i64 0}
| linux_drivers_media_usb_cx231xx_extr_cx231xx-dvb.c_unregister_dvb |
; ModuleID = 'AnghaBench/linux/fs/ocfs2/extr_alloc.c_find_path_ins.c'
source_filename = "AnghaBench/linux/fs/ocfs2/extr_alloc.c_find_path_ins.c"
target datalayout = "e-m:e-p270:32:32-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.find_path_data = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @find_path_ins], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @find_path_ins(ptr nocapture noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @get_bh(ptr noundef %1) #2
%4 = getelementptr inbounds %struct.find_path_data, ptr %0, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !5
%6 = load i32, ptr %0, align 4, !tbaa !10
%7 = tail call i32 @ocfs2_path_insert_eb(i32 noundef %5, i32 noundef %6, ptr noundef %1) #2
%8 = load i32, ptr %0, align 4, !tbaa !10
%9 = add nsw i32 %8, 1
store i32 %9, ptr %0, align 4, !tbaa !10
ret void
}
declare i32 @get_bh(ptr noundef) local_unnamed_addr #1
declare i32 @ocfs2_path_insert_eb(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"find_path_data", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/ocfs2/extr_alloc.c_find_path_ins.c'
source_filename = "AnghaBench/linux/fs/ocfs2/extr_alloc.c_find_path_ins.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 @find_path_ins], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @find_path_ins(ptr nocapture noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @get_bh(ptr noundef %1) #2
%4 = getelementptr inbounds i8, ptr %0, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !6
%6 = load i32, ptr %0, align 4, !tbaa !11
%7 = tail call i32 @ocfs2_path_insert_eb(i32 noundef %5, i32 noundef %6, ptr noundef %1) #2
%8 = load i32, ptr %0, align 4, !tbaa !11
%9 = add nsw i32 %8, 1
store i32 %9, ptr %0, align 4, !tbaa !11
ret void
}
declare i32 @get_bh(ptr noundef) local_unnamed_addr #1
declare i32 @ocfs2_path_insert_eb(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 4}
!7 = !{!"find_path_data", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
| linux_fs_ocfs2_extr_alloc.c_find_path_ins |
; ModuleID = 'AnghaBench/esp-idf/components/bt/host/bluedroid/btc/profile/std/gap/extr_btc_gap_ble.c_btc_gap_ble_cb_to_app.c'
source_filename = "AnghaBench/esp-idf/components/bt/host/bluedroid/btc/profile/std/gap/extr_btc_gap_ble.c_btc_gap_ble_cb_to_app.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@BTC_PID_GAP_BLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @btc_gap_ble_cb_to_app], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @btc_gap_ble_cb_to_app(i32 noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @BTC_PID_GAP_BLE, align 4, !tbaa !5
%4 = tail call i32 @btc_profile_cb_get(i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = sext i32 %4 to i64
%8 = inttoptr i64 %7 to ptr
%9 = tail call i32 %8(i32 noundef %0, ptr noundef %1) #2
br label %10
10: ; preds = %6, %2
ret void
}
declare i32 @btc_profile_cb_get(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/esp-idf/components/bt/host/bluedroid/btc/profile/std/gap/extr_btc_gap_ble.c_btc_gap_ble_cb_to_app.c'
source_filename = "AnghaBench/esp-idf/components/bt/host/bluedroid/btc/profile/std/gap/extr_btc_gap_ble.c_btc_gap_ble_cb_to_app.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BTC_PID_GAP_BLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @btc_gap_ble_cb_to_app], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @btc_gap_ble_cb_to_app(i32 noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @BTC_PID_GAP_BLE, align 4, !tbaa !6
%4 = tail call i32 @btc_profile_cb_get(i32 noundef %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = sext i32 %4 to i64
%8 = inttoptr i64 %7 to ptr
%9 = tail call i32 %8(i32 noundef %0, ptr noundef %1) #2
br label %10
10: ; preds = %6, %2
ret void
}
declare i32 @btc_profile_cb_get(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| esp-idf_components_bt_host_bluedroid_btc_profile_std_gap_extr_btc_gap_ble.c_btc_gap_ble_cb_to_app |
; ModuleID = 'AnghaBench/kphp-kdb/cache/extr_cache-engine.c_start_server.c'
source_filename = "AnghaBench/kphp-kdb/cache/extr_cache-engine.c_start_server.c"
target datalayout = "e-m:e-p270:32:32-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 }
@cache_features_mask = dso_local local_unnamed_addr global i32 0, align 4
@CACHE_FEATURE_ACCESS_QUERIES = dso_local local_unnamed_addr global i32 0, align 4
@allow_save_index_without_counters = dso_local local_unnamed_addr global i32 0, align 4
@disallow_save_index = dso_local local_unnamed_addr global i32 0, align 4
@cache_functions = dso_local global %struct.TYPE_3__ zeroinitializer, align 4
@cache_parse_function = dso_local local_unnamed_addr global i32 0, align 4
@tl_parse_function = dso_local local_unnamed_addr global i32 0, align 4
@tl_aio_timeout = dso_local local_unnamed_addr global double 0.000000e+00, align 8
@cache_engine = dso_local global i32 0, align 4
@ct_rpc_server = dso_local global i32 0, align 4
@rpc_methods = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [90 x i8] c"epoll_work(): %d out of %d connections, network buffers: %d used, %d out of %d allocated\0A\00", align 1
@active_connections = dso_local local_unnamed_addr global i32 0, align 4
@maxconn = dso_local local_unnamed_addr global i32 0, align 4
@NB_used = dso_local local_unnamed_addr global i32 0, align 4
@NB_alloc = dso_local local_unnamed_addr global i32 0, align 4
@NB_max = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @start_server], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @start_server() #0 {
%1 = load i32, ptr @cache_features_mask, align 4, !tbaa !5
%2 = load i32, ptr @CACHE_FEATURE_ACCESS_QUERIES, align 4, !tbaa !5
%3 = and i32 %2, %1
%4 = icmp ne i32 %3, 0
%5 = load i32, ptr @allow_save_index_without_counters, align 4
%6 = icmp ne i32 %5, 0
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %10, label %8
8: ; preds = %0
%9 = load i32, ptr @disallow_save_index, align 4, !tbaa !5
store i32 %9, ptr @cache_functions, align 4, !tbaa !9
br label %10
10: ; preds = %8, %0
%11 = load i32, ptr @cache_parse_function, align 4, !tbaa !5
store i32 %11, ptr @tl_parse_function, align 4, !tbaa !5
store double 2.000000e+00, ptr @tl_aio_timeout, align 8, !tbaa !11
%12 = tail call i32 @server_init(ptr noundef nonnull @cache_engine, ptr noundef nonnull @cache_functions, ptr noundef nonnull @ct_rpc_server, ptr noundef nonnull @rpc_methods) #2
br label %13
13: ; preds = %24, %10
%14 = phi i32 [ 0, %10 ], [ %28, %24 ]
%15 = and i32 %14, 255
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = load i32, ptr @active_connections, align 4, !tbaa !5
%19 = load i32, ptr @maxconn, align 4, !tbaa !5
%20 = load i32, ptr @NB_used, align 4, !tbaa !5
%21 = load i32, ptr @NB_alloc, align 4, !tbaa !5
%22 = load i32, ptr @NB_max, align 4, !tbaa !5
%23 = tail call i32 @vkprintf(i32 noundef 1, ptr noundef nonnull @.str, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21, i32 noundef %22) #2
br label %24
24: ; preds = %17, %13
%25 = tail call i32 @epoll_work(i32 noundef 57) #2
%26 = tail call i32 (...) @process_signals() #2
%27 = icmp eq i32 %26, 0
%28 = add nuw nsw i32 %14, 1
br i1 %27, label %29, label %13
29: ; preds = %24
%30 = tail call i32 @server_exit(ptr noundef nonnull @cache_engine) #2
ret void
}
declare i32 @server_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @vkprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @epoll_work(i32 noundef) local_unnamed_addr #1
declare i32 @process_signals(...) local_unnamed_addr #1
declare i32 @server_exit(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_3__", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/cache/extr_cache-engine.c_start_server.c'
source_filename = "AnghaBench/kphp-kdb/cache/extr_cache-engine.c_start_server.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 }
@cache_features_mask = common local_unnamed_addr global i32 0, align 4
@CACHE_FEATURE_ACCESS_QUERIES = common local_unnamed_addr global i32 0, align 4
@allow_save_index_without_counters = common local_unnamed_addr global i32 0, align 4
@disallow_save_index = common local_unnamed_addr global i32 0, align 4
@cache_functions = common global %struct.TYPE_3__ zeroinitializer, align 4
@cache_parse_function = common local_unnamed_addr global i32 0, align 4
@tl_parse_function = common local_unnamed_addr global i32 0, align 4
@tl_aio_timeout = common local_unnamed_addr global double 0.000000e+00, align 8
@cache_engine = common global i32 0, align 4
@ct_rpc_server = common global i32 0, align 4
@rpc_methods = common global i32 0, align 4
@.str = private unnamed_addr constant [90 x i8] c"epoll_work(): %d out of %d connections, network buffers: %d used, %d out of %d allocated\0A\00", align 1
@active_connections = common local_unnamed_addr global i32 0, align 4
@maxconn = common local_unnamed_addr global i32 0, align 4
@NB_used = common local_unnamed_addr global i32 0, align 4
@NB_alloc = common local_unnamed_addr global i32 0, align 4
@NB_max = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @start_server], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @start_server() #0 {
%1 = load i32, ptr @cache_features_mask, align 4, !tbaa !6
%2 = load i32, ptr @CACHE_FEATURE_ACCESS_QUERIES, align 4, !tbaa !6
%3 = and i32 %2, %1
%4 = icmp ne i32 %3, 0
%5 = load i32, ptr @allow_save_index_without_counters, align 4
%6 = icmp ne i32 %5, 0
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %10, label %8
8: ; preds = %0
%9 = load i32, ptr @disallow_save_index, align 4, !tbaa !6
store i32 %9, ptr @cache_functions, align 4, !tbaa !10
br label %10
10: ; preds = %8, %0
%11 = load i32, ptr @cache_parse_function, align 4, !tbaa !6
store i32 %11, ptr @tl_parse_function, align 4, !tbaa !6
store double 2.000000e+00, ptr @tl_aio_timeout, align 8, !tbaa !12
%12 = tail call i32 @server_init(ptr noundef nonnull @cache_engine, ptr noundef nonnull @cache_functions, ptr noundef nonnull @ct_rpc_server, ptr noundef nonnull @rpc_methods) #2
br label %13
13: ; preds = %24, %10
%14 = phi i32 [ 0, %10 ], [ %28, %24 ]
%15 = and i32 %14, 255
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = load i32, ptr @active_connections, align 4, !tbaa !6
%19 = load i32, ptr @maxconn, align 4, !tbaa !6
%20 = load i32, ptr @NB_used, align 4, !tbaa !6
%21 = load i32, ptr @NB_alloc, align 4, !tbaa !6
%22 = load i32, ptr @NB_max, align 4, !tbaa !6
%23 = tail call i32 @vkprintf(i32 noundef 1, ptr noundef nonnull @.str, i32 noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21, i32 noundef %22) #2
br label %24
24: ; preds = %17, %13
%25 = tail call i32 @epoll_work(i32 noundef 57) #2
%26 = tail call i32 @process_signals() #2
%27 = icmp eq i32 %26, 0
%28 = add nuw nsw i32 %14, 1
br i1 %27, label %29, label %13
29: ; preds = %24
%30 = tail call i32 @server_exit(ptr noundef nonnull @cache_engine) #2
ret void
}
declare i32 @server_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @vkprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @epoll_work(i32 noundef) local_unnamed_addr #1
declare i32 @process_signals(...) local_unnamed_addr #1
declare i32 @server_exit(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_3__", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
| kphp-kdb_cache_extr_cache-engine.c_start_server |
; ModuleID = 'AnghaBench/obs-studio/plugins/win-capture/extr_cursor-capture.c_cursor_capture_icon.c'
source_filename = "AnghaBench/obs-studio/plugins/win-capture/extr_cursor-capture.c_cursor_capture_icon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i32, i32, i32, i32 }
%struct.cursor_data = type { i64, i64, i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @cursor_capture_icon], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @cursor_capture_icon(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca %struct.TYPE_4__, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
%6 = icmp eq i32 %1, 0
br i1 %6, label %50, label %7
7: ; preds = %2
%8 = call i32 @GetIconInfo(i32 noundef %1, ptr noundef nonnull %5) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %50, label %10
10: ; preds = %7
%11 = call ptr @cursor_capture_icon_bitmap(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
%12 = icmp eq ptr %11, null
br i1 %12, label %40, label %13
13: ; preds = %10
%14 = load i64, ptr %0, align 8, !tbaa !5
%15 = load i64, ptr %4, align 8, !tbaa !11
%16 = icmp eq i64 %14, %15
%17 = load i64, ptr %3, align 8, !tbaa !11
br i1 %16, label %18, label %25
18: ; preds = %13
%19 = getelementptr inbounds %struct.cursor_data, ptr %0, i64 0, i32 1
%20 = load i64, ptr %19, align 8, !tbaa !12
%21 = icmp eq i64 %20, %17
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = getelementptr inbounds %struct.cursor_data, ptr %0, i64 0, i32 2
%24 = load i32, ptr %23, align 8, !tbaa !13
br label %31
25: ; preds = %18, %13
%26 = call i32 @get_cached_texture(ptr noundef nonnull %0, i64 noundef %15, i64 noundef %17) #3
%27 = getelementptr inbounds %struct.cursor_data, ptr %0, i64 0, i32 2
store i32 %26, ptr %27, align 8, !tbaa !13
%28 = load i64, ptr %4, align 8, !tbaa !11
store i64 %28, ptr %0, align 8, !tbaa !5
%29 = load i64, ptr %3, align 8, !tbaa !11
%30 = getelementptr inbounds %struct.cursor_data, ptr %0, i64 0, i32 1
store i64 %29, ptr %30, align 8, !tbaa !12
br label %31
31: ; preds = %22, %25
%32 = phi i64 [ %14, %22 ], [ %28, %25 ]
%33 = phi i32 [ %24, %22 ], [ %26, %25 ]
%34 = shl nsw i64 %32, 2
%35 = call i32 @gs_texture_set_image(i32 noundef %33, ptr noundef nonnull %11, i64 noundef %34, i32 noundef 0) #3
%36 = call i32 @bfree(ptr noundef nonnull %11) #3
%37 = getelementptr inbounds %struct.TYPE_4__, ptr %5, i64 0, i32 2
%38 = getelementptr inbounds %struct.cursor_data, ptr %0, i64 0, i32 3
%39 = load <2 x i32>, ptr %37, align 4, !tbaa !14
store <2 x i32> %39, ptr %38, align 4, !tbaa !14
br label %40
40: ; preds = %31, %10
%41 = getelementptr inbounds %struct.TYPE_4__, ptr %5, i64 0, i32 1
%42 = load i32, ptr %41, align 4, !tbaa !15
%43 = call i32 @DeleteObject(i32 noundef %42) #3
%44 = load i32, ptr %5, align 4, !tbaa !17
%45 = call i32 @DeleteObject(i32 noundef %44) #3
%46 = getelementptr inbounds %struct.cursor_data, ptr %0, i64 0, i32 2
%47 = load i32, ptr %46, align 8, !tbaa !13
%48 = icmp ne i32 %47, 0
%49 = zext i1 %48 to i32
br label %50
50: ; preds = %7, %2, %40
%51 = phi i32 [ %49, %40 ], [ 0, %2 ], [ 0, %7 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %51
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetIconInfo(i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @cursor_capture_icon_bitmap(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @get_cached_texture(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @gs_texture_set_image(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @bfree(ptr noundef) local_unnamed_addr #2
declare i32 @DeleteObject(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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"cursor_data", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!10, !10, i64 0}
!15 = !{!16, !10, i64 4}
!16 = !{!"TYPE_4__", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!17 = !{!16, !10, i64 0}
| ; ModuleID = 'AnghaBench/obs-studio/plugins/win-capture/extr_cursor-capture.c_cursor_capture_icon.c'
source_filename = "AnghaBench/obs-studio/plugins/win-capture/extr_cursor-capture.c_cursor_capture_icon.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i32, i32, i32, i32 }
@llvm.used = appending global [1 x ptr] [ptr @cursor_capture_icon], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @cursor_capture_icon(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca %struct.TYPE_4__, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
%6 = icmp eq i32 %1, 0
br i1 %6, label %50, label %7
7: ; preds = %2
%8 = call i32 @GetIconInfo(i32 noundef %1, ptr noundef nonnull %5) #3
%9 = icmp eq i32 %8, 0
br i1 %9, label %50, label %10
10: ; preds = %7
%11 = call ptr @cursor_capture_icon_bitmap(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
%12 = icmp eq ptr %11, null
br i1 %12, label %40, label %13
13: ; preds = %10
%14 = load i64, ptr %0, align 8, !tbaa !6
%15 = load i64, ptr %4, align 8, !tbaa !12
%16 = icmp eq i64 %14, %15
%17 = load i64, ptr %3, align 8, !tbaa !12
br i1 %16, label %18, label %25
18: ; preds = %13
%19 = getelementptr inbounds i8, ptr %0, i64 8
%20 = load i64, ptr %19, align 8, !tbaa !13
%21 = icmp eq i64 %20, %17
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = getelementptr inbounds i8, ptr %0, i64 16
%24 = load i32, ptr %23, align 8, !tbaa !14
br label %31
25: ; preds = %18, %13
%26 = call i32 @get_cached_texture(ptr noundef nonnull %0, i64 noundef %15, i64 noundef %17) #3
%27 = getelementptr inbounds i8, ptr %0, i64 16
store i32 %26, ptr %27, align 8, !tbaa !14
%28 = load i64, ptr %4, align 8, !tbaa !12
store i64 %28, ptr %0, align 8, !tbaa !6
%29 = load i64, ptr %3, align 8, !tbaa !12
%30 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %29, ptr %30, align 8, !tbaa !13
br label %31
31: ; preds = %22, %25
%32 = phi i64 [ %14, %22 ], [ %28, %25 ]
%33 = phi i32 [ %24, %22 ], [ %26, %25 ]
%34 = shl nsw i64 %32, 2
%35 = call i32 @gs_texture_set_image(i32 noundef %33, ptr noundef nonnull %11, i64 noundef %34, i32 noundef 0) #3
%36 = call i32 @bfree(ptr noundef nonnull %11) #3
%37 = getelementptr inbounds i8, ptr %5, i64 8
%38 = getelementptr inbounds i8, ptr %0, i64 20
%39 = load <2 x i32>, ptr %37, align 4, !tbaa !15
store <2 x i32> %39, ptr %38, align 4, !tbaa !15
br label %40
40: ; preds = %31, %10
%41 = getelementptr inbounds i8, ptr %5, i64 4
%42 = load i32, ptr %41, align 4, !tbaa !16
%43 = call i32 @DeleteObject(i32 noundef %42) #3
%44 = load i32, ptr %5, align 4, !tbaa !18
%45 = call i32 @DeleteObject(i32 noundef %44) #3
%46 = getelementptr inbounds i8, ptr %0, i64 16
%47 = load i32, ptr %46, align 8, !tbaa !14
%48 = icmp ne i32 %47, 0
%49 = zext i1 %48 to i32
br label %50
50: ; preds = %7, %2, %40
%51 = phi i32 [ %49, %40 ], [ 0, %2 ], [ 0, %7 ]
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
ret i32 %51
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @GetIconInfo(i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @cursor_capture_icon_bitmap(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @get_cached_texture(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @gs_texture_set_image(i32 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @bfree(ptr noundef) local_unnamed_addr #2
declare i32 @DeleteObject(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 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"cursor_data", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 8}
!14 = !{!7, !11, i64 16}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !11, i64 4}
!17 = !{!"TYPE_4__", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!18 = !{!17, !11, i64 0}
| obs-studio_plugins_win-capture_extr_cursor-capture.c_cursor_capture_icon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.