IR_x86 string | IR_arm string | filename string |
|---|---|---|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atl1_check_for_link.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atl1_check_for_link.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.atlx_adapter = type { i32, i32, i32, ptr, i32, i32, ptr }
@MII_BMSR = dso_local local_unnamed_addr global i32 0, align 4
@BMSR_LSTATUS = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"%s link is down\0A\00", align 1
@SPEED_0 = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @atlx_check_for_link], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @atlx_check_for_link(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 6
%4 = load ptr, ptr %3, align 8, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
store i32 0, ptr %2, align 4, !tbaa !11
%5 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 4
%6 = tail call i32 @spin_lock(ptr noundef nonnull %5) #3
store i32 0, ptr %0, align 8, !tbaa !12
%7 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 5
%8 = load i32, ptr @MII_BMSR, align 4, !tbaa !11
%9 = call i32 @atlx_read_phy_reg(ptr noundef nonnull %7, i32 noundef %8, ptr noundef nonnull %2) #3
%10 = load i32, ptr @MII_BMSR, align 4, !tbaa !11
%11 = call i32 @atlx_read_phy_reg(ptr noundef nonnull %7, i32 noundef %10, ptr noundef nonnull %2) #3
%12 = call i32 @spin_unlock(ptr noundef nonnull %5) #3
%13 = load i32, ptr %2, align 4, !tbaa !11
%14 = load i32, ptr @BMSR_LSTATUS, align 4, !tbaa !11
%15 = and i32 %14, %13
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %28
17: ; preds = %1
%18 = call i64 @netif_carrier_ok(ptr noundef %4) #3
%19 = icmp eq i64 %18, 0
br i1 %19, label %28, label %20
20: ; preds = %17
%21 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 3
%22 = load ptr, ptr %21, align 8, !tbaa !13
%23 = load i32, ptr %4, align 4, !tbaa !14
%24 = call i32 @dev_info(ptr noundef %22, ptr noundef nonnull @.str, i32 noundef %23) #3
%25 = load i32, ptr @SPEED_0, align 4, !tbaa !11
%26 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 2
store i32 %25, ptr %26, align 8, !tbaa !16
%27 = call i32 @netif_carrier_off(ptr noundef nonnull %4) #3
br label %28
28: ; preds = %17, %20, %1
%29 = getelementptr inbounds %struct.atlx_adapter, ptr %0, i64 0, i32 1
%30 = call i32 @schedule_work(ptr noundef nonnull %29) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #2
declare i32 @atlx_read_phy_reg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #2
declare i64 @netif_carrier_ok(ptr noundef) local_unnamed_addr #2
declare i32 @dev_info(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @netif_carrier_off(ptr noundef) local_unnamed_addr #2
declare i32 @schedule_work(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 32}
!6 = !{!"atlx_adapter", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !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 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!15, !7, i64 0}
!15 = !{!"net_device", !7, i64 0}
!16 = !{!6, !7, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atl1_check_for_link.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atl1_check_for_link.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MII_BMSR = common local_unnamed_addr global i32 0, align 4
@BMSR_LSTATUS = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"%s link is down\0A\00", align 1
@SPEED_0 = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @atlx_check_for_link], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @atlx_check_for_link(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = getelementptr inbounds i8, ptr %0, i64 32
%4 = load ptr, ptr %3, align 8, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
store i32 0, ptr %2, align 4, !tbaa !12
%5 = getelementptr inbounds i8, ptr %0, i64 24
%6 = tail call i32 @spin_lock(ptr noundef nonnull %5) #3
store i32 0, ptr %0, align 8, !tbaa !13
%7 = getelementptr inbounds i8, ptr %0, i64 28
%8 = load i32, ptr @MII_BMSR, align 4, !tbaa !12
%9 = call i32 @atlx_read_phy_reg(ptr noundef nonnull %7, i32 noundef %8, ptr noundef nonnull %2) #3
%10 = load i32, ptr @MII_BMSR, align 4, !tbaa !12
%11 = call i32 @atlx_read_phy_reg(ptr noundef nonnull %7, i32 noundef %10, ptr noundef nonnull %2) #3
%12 = call i32 @spin_unlock(ptr noundef nonnull %5) #3
%13 = load i32, ptr %2, align 4, !tbaa !12
%14 = load i32, ptr @BMSR_LSTATUS, align 4, !tbaa !12
%15 = and i32 %14, %13
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %28
17: ; preds = %1
%18 = call i64 @netif_carrier_ok(ptr noundef %4) #3
%19 = icmp eq i64 %18, 0
br i1 %19, label %28, label %20
20: ; preds = %17
%21 = getelementptr inbounds i8, ptr %0, i64 16
%22 = load ptr, ptr %21, align 8, !tbaa !14
%23 = load i32, ptr %4, align 4, !tbaa !15
%24 = call i32 @dev_info(ptr noundef %22, ptr noundef nonnull @.str, i32 noundef %23) #3
%25 = load i32, ptr @SPEED_0, align 4, !tbaa !12
%26 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %25, ptr %26, align 8, !tbaa !17
%27 = call i32 @netif_carrier_off(ptr noundef nonnull %4) #3
br label %28
28: ; preds = %17, %20, %1
%29 = getelementptr inbounds i8, ptr %0, i64 4
%30 = call i32 @schedule_work(ptr noundef nonnull %29) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #2
declare i32 @atlx_read_phy_reg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #2
declare i64 @netif_carrier_ok(ptr noundef) local_unnamed_addr #2
declare i32 @dev_info(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @netif_carrier_off(ptr noundef) local_unnamed_addr #2
declare i32 @schedule_work(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 32}
!7 = !{!"atlx_adapter", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !8, i64 24, !8, i64 28, !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 = !{!8, !8, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!7, !11, i64 16}
!15 = !{!16, !8, i64 0}
!16 = !{!"net_device", !8, i64 0}
!17 = !{!7, !8, i64 8}
| linux_drivers_net_ethernet_atheros_atlx_extr_atlx.c_atl1_check_for_link |
; ModuleID = 'AnghaBench/linux/fs/ocfs2/extr_file.c___ocfs2_write_remove_suid.c'
source_filename = "AnghaBench/linux/fs/ocfs2/extr_file.c___ocfs2_write_remove_suid.c"
target datalayout = "e-m:e-p270:32:32-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.inode = type { i32, i32 }
@OCFS2_INODE_UPDATE_CREDITS = dso_local local_unnamed_addr global i32 0, align 4
@OCFS2_JOURNAL_ACCESS_WRITE = dso_local local_unnamed_addr global i32 0, align 4
@S_ISUID = dso_local local_unnamed_addr global i32 0, align 4
@S_ISGID = dso_local local_unnamed_addr global i32 0, align 4
@S_IXGRP = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @__ocfs2_write_remove_suid], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @__ocfs2_write_remove_suid(ptr noundef %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds %struct.inode, ptr %0, i64 0, i32 1
%4 = load i32, ptr %3, align 4, !tbaa !5
%5 = tail call ptr @OCFS2_SB(i32 noundef %4) #2
%6 = tail call ptr @OCFS2_I(ptr noundef %0) #2
%7 = load i64, ptr %6, align 8, !tbaa !10
%8 = load i32, ptr %0, align 4, !tbaa !13
%9 = tail call i32 @trace_ocfs2_write_remove_suid(i64 noundef %7, i32 noundef %8) #2
%10 = load i32, ptr @OCFS2_INODE_UPDATE_CREDITS, align 4, !tbaa !14
%11 = tail call ptr @ocfs2_start_trans(ptr noundef %5, i32 noundef %10) #2
%12 = tail call i64 @IS_ERR(ptr noundef %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = tail call i32 @PTR_ERR(ptr noundef %11) #2
%16 = tail call i32 @mlog_errno(i32 noundef %15) #2
br label %48
17: ; preds = %2
%18 = tail call i32 @INODE_CACHE(ptr noundef nonnull %0) #2
%19 = load i32, ptr @OCFS2_JOURNAL_ACCESS_WRITE, align 4, !tbaa !14
%20 = tail call i32 @ocfs2_journal_access_di(ptr noundef %11, i32 noundef %18, ptr noundef %1, i32 noundef %19) #2
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = tail call i32 @mlog_errno(i32 noundef %20) #2
br label %46
24: ; preds = %17
%25 = load i32, ptr @S_ISUID, align 4, !tbaa !14
%26 = xor i32 %25, -1
%27 = load i32, ptr %0, align 4, !tbaa !13
%28 = and i32 %27, %26
store i32 %28, ptr %0, align 4, !tbaa !13
%29 = load i32, ptr @S_ISGID, align 4, !tbaa !14
%30 = and i32 %29, %28
%31 = icmp eq i32 %30, 0
br i1 %31, label %39, label %32
32: ; preds = %24
%33 = load i32, ptr @S_IXGRP, align 4, !tbaa !14
%34 = and i32 %33, %28
%35 = icmp eq i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %32
%37 = xor i32 %29, -1
%38 = and i32 %28, %37
store i32 %38, ptr %0, align 4, !tbaa !13
br label %39
39: ; preds = %36, %32, %24
%40 = phi i32 [ %38, %36 ], [ %28, %32 ], [ %28, %24 ]
%41 = load i64, ptr %1, align 8, !tbaa !15
%42 = inttoptr i64 %41 to ptr
%43 = tail call i32 @cpu_to_le16(i32 noundef %40) #2
store i32 %43, ptr %42, align 4, !tbaa !17
%44 = tail call i32 @ocfs2_update_inode_fsync_trans(ptr noundef %11, ptr noundef nonnull %0, i32 noundef 0) #2
%45 = tail call i32 @ocfs2_journal_dirty(ptr noundef %11, ptr noundef nonnull %1) #2
br label %46
46: ; preds = %39, %22
%47 = tail call i32 @ocfs2_commit_trans(ptr noundef %5, ptr noundef %11) #2
br label %48
48: ; preds = %46, %14
%49 = phi i32 [ %15, %14 ], [ %20, %46 ]
ret i32 %49
}
declare ptr @OCFS2_SB(i32 noundef) local_unnamed_addr #1
declare i32 @trace_ocfs2_write_remove_suid(i64 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @OCFS2_I(ptr noundef) local_unnamed_addr #1
declare ptr @ocfs2_start_trans(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @mlog_errno(i32 noundef) local_unnamed_addr #1
declare i32 @ocfs2_journal_access_di(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @INODE_CACHE(ptr noundef) local_unnamed_addr #1
declare i32 @cpu_to_le16(i32 noundef) local_unnamed_addr #1
declare i32 @ocfs2_update_inode_fsync_trans(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ocfs2_journal_dirty(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ocfs2_commit_trans(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 4}
!6 = !{!"inode", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"buffer_head", !12, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"ocfs2_dinode", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/ocfs2/extr_file.c___ocfs2_write_remove_suid.c'
source_filename = "AnghaBench/linux/fs/ocfs2/extr_file.c___ocfs2_write_remove_suid.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OCFS2_INODE_UPDATE_CREDITS = common local_unnamed_addr global i32 0, align 4
@OCFS2_JOURNAL_ACCESS_WRITE = common local_unnamed_addr global i32 0, align 4
@S_ISUID = common local_unnamed_addr global i32 0, align 4
@S_ISGID = common local_unnamed_addr global i32 0, align 4
@S_IXGRP = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @__ocfs2_write_remove_suid], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @__ocfs2_write_remove_suid(ptr noundef %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 4
%4 = load i32, ptr %3, align 4, !tbaa !6
%5 = tail call ptr @OCFS2_SB(i32 noundef %4) #2
%6 = tail call ptr @OCFS2_I(ptr noundef %0) #2
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = load i32, ptr %0, align 4, !tbaa !14
%9 = tail call i32 @trace_ocfs2_write_remove_suid(i64 noundef %7, i32 noundef %8) #2
%10 = load i32, ptr @OCFS2_INODE_UPDATE_CREDITS, align 4, !tbaa !15
%11 = tail call ptr @ocfs2_start_trans(ptr noundef %5, i32 noundef %10) #2
%12 = tail call i64 @IS_ERR(ptr noundef %11) #2
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = tail call i32 @PTR_ERR(ptr noundef %11) #2
%16 = tail call i32 @mlog_errno(i32 noundef %15) #2
br label %48
17: ; preds = %2
%18 = tail call i32 @INODE_CACHE(ptr noundef nonnull %0) #2
%19 = load i32, ptr @OCFS2_JOURNAL_ACCESS_WRITE, align 4, !tbaa !15
%20 = tail call i32 @ocfs2_journal_access_di(ptr noundef %11, i32 noundef %18, ptr noundef %1, i32 noundef %19) #2
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = tail call i32 @mlog_errno(i32 noundef %20) #2
br label %46
24: ; preds = %17
%25 = load i32, ptr @S_ISUID, align 4, !tbaa !15
%26 = xor i32 %25, -1
%27 = load i32, ptr %0, align 4, !tbaa !14
%28 = and i32 %27, %26
store i32 %28, ptr %0, align 4, !tbaa !14
%29 = load i32, ptr @S_ISGID, align 4, !tbaa !15
%30 = and i32 %29, %28
%31 = icmp eq i32 %30, 0
br i1 %31, label %39, label %32
32: ; preds = %24
%33 = load i32, ptr @S_IXGRP, align 4, !tbaa !15
%34 = and i32 %33, %28
%35 = icmp eq i32 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %32
%37 = xor i32 %29, -1
%38 = and i32 %28, %37
store i32 %38, ptr %0, align 4, !tbaa !14
br label %39
39: ; preds = %36, %32, %24
%40 = phi i32 [ %38, %36 ], [ %28, %32 ], [ %28, %24 ]
%41 = load i64, ptr %1, align 8, !tbaa !16
%42 = inttoptr i64 %41 to ptr
%43 = tail call i32 @cpu_to_le16(i32 noundef %40) #2
store i32 %43, ptr %42, align 4, !tbaa !18
%44 = tail call i32 @ocfs2_update_inode_fsync_trans(ptr noundef %11, ptr noundef nonnull %0, i32 noundef 0) #2
%45 = tail call i32 @ocfs2_journal_dirty(ptr noundef %11, ptr noundef nonnull %1) #2
br label %46
46: ; preds = %39, %22
%47 = tail call i32 @ocfs2_commit_trans(ptr noundef %5, ptr noundef %11) #2
br label %48
48: ; preds = %46, %14
%49 = phi i32 [ %15, %14 ], [ %20, %46 ]
ret i32 %49
}
declare ptr @OCFS2_SB(i32 noundef) local_unnamed_addr #1
declare i32 @trace_ocfs2_write_remove_suid(i64 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @OCFS2_I(ptr noundef) local_unnamed_addr #1
declare ptr @ocfs2_start_trans(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(ptr noundef) local_unnamed_addr #1
declare i32 @mlog_errno(i32 noundef) local_unnamed_addr #1
declare i32 @ocfs2_journal_access_di(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @INODE_CACHE(ptr noundef) local_unnamed_addr #1
declare i32 @cpu_to_le16(i32 noundef) local_unnamed_addr #1
declare i32 @ocfs2_update_inode_fsync_trans(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ocfs2_journal_dirty(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ocfs2_commit_trans(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 4}
!7 = !{!"inode", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!7, !8, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"buffer_head", !13, i64 0}
!18 = !{!19, !8, i64 0}
!19 = !{!"ocfs2_dinode", !8, i64 0}
| linux_fs_ocfs2_extr_file.c___ocfs2_write_remove_suid |
; ModuleID = 'AnghaBench/linux/drivers/pci/pcie/extr_portdrv_core.c_pcie_port_remove_service.c'
source_filename = "AnghaBench/linux/drivers/pci/pcie/extr_portdrv_core.c_pcie_port_remove_service.c"
target datalayout = "e-m:e-p270:32:32-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 @pcie_port_remove_service], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @pcie_port_remove_service(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %17, label %3
3: ; preds = %1
%4 = load i32, ptr %0, align 4, !tbaa !5
%5 = icmp eq i32 %4, 0
br i1 %5, label %17, label %6
6: ; preds = %3
%7 = tail call ptr @to_pcie_device(ptr noundef nonnull %0) #2
%8 = load i32, ptr %0, align 4, !tbaa !5
%9 = tail call ptr @to_service_driver(i32 noundef %8) #2
%10 = icmp eq ptr %9, null
br i1 %10, label %17, label %11
11: ; preds = %6
%12 = load ptr, ptr %9, align 8, !tbaa !10
%13 = icmp eq ptr %12, null
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = tail call i32 %12(ptr noundef %7) #2
%16 = tail call i32 @put_device(ptr noundef nonnull %0) #2
br label %17
17: ; preds = %6, %11, %14, %1, %3
ret i32 0
}
declare ptr @to_pcie_device(ptr noundef) local_unnamed_addr #1
declare ptr @to_service_driver(i32 noundef) local_unnamed_addr #1
declare i32 @put_device(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"device", !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 = !{!"pcie_port_service_driver", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/pci/pcie/extr_portdrv_core.c_pcie_port_remove_service.c'
source_filename = "AnghaBench/linux/drivers/pci/pcie/extr_portdrv_core.c_pcie_port_remove_service.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 @pcie_port_remove_service], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @pcie_port_remove_service(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %17, label %3
3: ; preds = %1
%4 = load i32, ptr %0, align 4, !tbaa !6
%5 = icmp eq i32 %4, 0
br i1 %5, label %17, label %6
6: ; preds = %3
%7 = tail call ptr @to_pcie_device(ptr noundef nonnull %0) #2
%8 = load i32, ptr %0, align 4, !tbaa !6
%9 = tail call ptr @to_service_driver(i32 noundef %8) #2
%10 = icmp eq ptr %9, null
br i1 %10, label %17, label %11
11: ; preds = %6
%12 = load ptr, ptr %9, align 8, !tbaa !11
%13 = icmp eq ptr %12, null
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = tail call i32 %12(ptr noundef %7) #2
%16 = tail call i32 @put_device(ptr noundef nonnull %0) #2
br label %17
17: ; preds = %6, %11, %14, %1, %3
ret i32 0
}
declare ptr @to_pcie_device(ptr noundef) local_unnamed_addr #1
declare ptr @to_service_driver(i32 noundef) local_unnamed_addr #1
declare i32 @put_device(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"device", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"pcie_port_service_driver", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
| linux_drivers_pci_pcie_extr_portdrv_core.c_pcie_port_remove_service |
; ModuleID = 'AnghaBench/darwin-xnu/bsd/dev/extr_mem.c_mmread.c'
source_filename = "AnghaBench/darwin-xnu/bsd/dev/extr_mem.c_mmread.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@UIO_READ = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @mmread(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @UIO_READ, align 4, !tbaa !5
%4 = tail call i32 @mmrw(i32 noundef %0, ptr noundef %1, i32 noundef %3) #2
ret i32 %4
}
declare i32 @mmrw(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/darwin-xnu/bsd/dev/extr_mem.c_mmread.c'
source_filename = "AnghaBench/darwin-xnu/bsd/dev/extr_mem.c_mmread.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UIO_READ = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @mmread(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @UIO_READ, align 4, !tbaa !6
%4 = tail call i32 @mmrw(i32 noundef %0, ptr noundef %1, i32 noundef %3) #2
ret i32 %4
}
declare i32 @mmrw(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"}
| darwin-xnu_bsd_dev_extr_mem.c_mmread |
; ModuleID = 'AnghaBench/fastdfs/client/extr_client_func.c_copy_tracker_servers.c'
source_filename = "AnghaBench/fastdfs/client/extr_client_func.c_copy_tracker_servers.c"
target datalayout = "e-m:e-p270:32:32-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 }
@FDFS_TRACKER_SERVER_DEF_PORT = dso_local local_unnamed_addr global i32 0, align 4
@storage_cmp_server_info = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @copy_tracker_servers], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @copy_tracker_servers(ptr noundef %0, ptr nocapture readnone %1, ptr noundef readonly %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 4) #3
%6 = call i32 @fdfs_server_sock_reset(ptr noundef nonnull %4) #3
%7 = load i32, ptr %0, align 4, !tbaa !5
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds ptr, ptr %2, i64 %8
store i32 0, ptr %0, align 4, !tbaa !5
%10 = icmp sgt i32 %7, 0
br i1 %10, label %11, label %32
11: ; preds = %3
%12 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
br label %13
13: ; preds = %11, %29
%14 = phi ptr [ %2, %11 ], [ %30, %29 ]
%15 = load ptr, ptr %14, align 8, !tbaa !10
%16 = load i32, ptr @FDFS_TRACKER_SERVER_DEF_PORT, align 4, !tbaa !12
%17 = call i32 @fdfs_parse_server_info(ptr noundef %15, i32 noundef %16, ptr noundef nonnull %4) #3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %13
%20 = load i32, ptr %12, align 4, !tbaa !13
%21 = load i32, ptr %0, align 4, !tbaa !5
%22 = load i32, ptr @storage_cmp_server_info, align 4, !tbaa !12
%23 = call ptr @bsearch(ptr noundef nonnull %4, i32 noundef %20, i32 noundef %21, i32 noundef 4, i32 noundef %22) #3
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = call i32 @insert_into_sorted_servers(ptr noundef nonnull %0, ptr noundef nonnull %4) #3
%27 = load i32, ptr %0, align 4, !tbaa !5
%28 = add nsw i32 %27, 1
store i32 %28, ptr %0, align 4, !tbaa !5
br label %29
29: ; preds = %19, %25
%30 = getelementptr inbounds ptr, ptr %14, i64 1
%31 = icmp ult ptr %30, %9
br i1 %31, label %13, label %32, !llvm.loop !14
32: ; preds = %13, %29, %3
%33 = phi i32 [ 0, %3 ], [ 0, %29 ], [ %17, %13 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %33
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fdfs_server_sock_reset(ptr noundef) local_unnamed_addr #2
declare i32 @fdfs_parse_server_info(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @bsearch(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @insert_into_sorted_servers(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !7, i64 4}
!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 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastdfs/client/extr_client_func.c_copy_tracker_servers.c'
source_filename = "AnghaBench/fastdfs/client/extr_client_func.c_copy_tracker_servers.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FDFS_TRACKER_SERVER_DEF_PORT = common local_unnamed_addr global i32 0, align 4
@storage_cmp_server_info = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @copy_tracker_servers], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @copy_tracker_servers(ptr noundef %0, ptr nocapture readnone %1, ptr noundef readonly %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = call i32 @memset(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 4) #3
%6 = call i32 @fdfs_server_sock_reset(ptr noundef nonnull %4) #3
%7 = load i32, ptr %0, align 4, !tbaa !6
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds ptr, ptr %2, i64 %8
store i32 0, ptr %0, align 4, !tbaa !6
%10 = icmp sgt i32 %7, 0
br i1 %10, label %11, label %32
11: ; preds = %3
%12 = getelementptr inbounds i8, ptr %0, i64 4
br label %13
13: ; preds = %11, %29
%14 = phi ptr [ %2, %11 ], [ %30, %29 ]
%15 = load ptr, ptr %14, align 8, !tbaa !11
%16 = load i32, ptr @FDFS_TRACKER_SERVER_DEF_PORT, align 4, !tbaa !13
%17 = call i32 @fdfs_parse_server_info(ptr noundef %15, i32 noundef %16, ptr noundef nonnull %4) #3
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %13
%20 = load i32, ptr %12, align 4, !tbaa !14
%21 = load i32, ptr %0, align 4, !tbaa !6
%22 = load i32, ptr @storage_cmp_server_info, align 4, !tbaa !13
%23 = call ptr @bsearch(ptr noundef nonnull %4, i32 noundef %20, i32 noundef %21, i32 noundef 4, i32 noundef %22) #3
%24 = icmp eq ptr %23, null
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = call i32 @insert_into_sorted_servers(ptr noundef nonnull %0, ptr noundef nonnull %4) #3
%27 = load i32, ptr %0, align 4, !tbaa !6
%28 = add nsw i32 %27, 1
store i32 %28, ptr %0, align 4, !tbaa !6
br label %29
29: ; preds = %19, %25
%30 = getelementptr inbounds i8, ptr %14, i64 8
%31 = icmp ult ptr %30, %9
br i1 %31, label %13, label %32, !llvm.loop !15
32: ; preds = %13, %29, %3
%33 = phi i32 [ 0, %3 ], [ 0, %29 ], [ %17, %13 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %33
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @fdfs_server_sock_reset(ptr noundef) local_unnamed_addr #2
declare i32 @fdfs_parse_server_info(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare ptr @bsearch(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @insert_into_sorted_servers(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !8, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| fastdfs_client_extr_client_func.c_copy_tracker_servers |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_connector.c_nouveau_connector_best_encoder.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_connector.c_nouveau_connector_best_encoder.c"
target datalayout = "e-m:e-p270:32:32-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 @nouveau_connector_best_encoder], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @nouveau_connector_best_encoder(ptr noundef %0) #0 {
%2 = tail call ptr @nouveau_connector(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call ptr @to_drm_encoder(i64 noundef %3) #2
br label %7
7: ; preds = %1, %5
%8 = phi ptr [ %6, %5 ], [ null, %1 ]
ret ptr %8
}
declare ptr @nouveau_connector(ptr noundef) local_unnamed_addr #1
declare ptr @to_drm_encoder(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 = !{!"nouveau_connector", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_connector.c_nouveau_connector_best_encoder.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/nouveau/extr_nouveau_connector.c_nouveau_connector_best_encoder.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 @nouveau_connector_best_encoder], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @nouveau_connector_best_encoder(ptr noundef %0) #0 {
%2 = tail call ptr @nouveau_connector(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call ptr @to_drm_encoder(i64 noundef %3) #2
br label %7
7: ; preds = %1, %5
%8 = phi ptr [ %6, %5 ], [ null, %1 ]
ret ptr %8
}
declare ptr @nouveau_connector(ptr noundef) local_unnamed_addr #1
declare ptr @to_drm_encoder(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 = !{!"nouveau_connector", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_nouveau_extr_nouveau_connector.c_nouveau_connector_best_encoder |
; ModuleID = 'AnghaBench/freebsd/contrib/one-true-awk/extr_run.c_copycell.c'
source_filename = "AnghaBench/freebsd/contrib/one-true-awk/extr_run.c_copycell.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { i32, i32, i32, i32, i32 }
@CON = dso_local local_unnamed_addr global i32 0, align 4
@FLD = dso_local local_unnamed_addr global i32 0, align 4
@REC = dso_local local_unnamed_addr global i32 0, align 4
@CCOPY = dso_local local_unnamed_addr global i32 0, align 4
@DONTFREE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local noundef ptr @copycell(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr (...) @gettemp() #2
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = load i32, ptr @CON, align 4, !tbaa !10
%5 = load i32, ptr @FLD, align 4, !tbaa !10
%6 = or i32 %5, %4
%7 = load i32, ptr @REC, align 4, !tbaa !10
%8 = or i32 %6, %7
%9 = xor i32 %8, -1
%10 = and i32 %3, %9
store i32 %10, ptr %2, align 4, !tbaa !5
%11 = load i32, ptr @CCOPY, align 4, !tbaa !10
%12 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 4
store i32 %11, ptr %12, align 4, !tbaa !11
%13 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 3
%14 = load i32, ptr %13, align 4, !tbaa !12
%15 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 3
store i32 %14, ptr %15, align 4, !tbaa !12
%16 = tail call i64 @isstr(ptr noundef nonnull %0) #2
%17 = icmp eq i64 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %1
%19 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
%20 = load i32, ptr %19, align 4, !tbaa !13
%21 = tail call i32 @tostring(i32 noundef %20) #2
%22 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 2
store i32 %21, ptr %22, align 4, !tbaa !13
%23 = load i32, ptr @DONTFREE, align 4, !tbaa !10
%24 = xor i32 %23, -1
%25 = load i32, ptr %2, align 4, !tbaa !5
%26 = and i32 %25, %24
br label %31
27: ; preds = %1
%28 = load i32, ptr @DONTFREE, align 4, !tbaa !10
%29 = load i32, ptr %2, align 4, !tbaa !5
%30 = or i32 %29, %28
br label %31
31: ; preds = %27, %18
%32 = phi i32 [ %30, %27 ], [ %26, %18 ]
store i32 %32, ptr %2, align 4, !tbaa !5
%33 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
%34 = load i32, ptr %33, align 4, !tbaa !14
%35 = getelementptr inbounds %struct.TYPE_6__, ptr %2, i64 0, i32 1
store i32 %34, ptr %35, align 4, !tbaa !14
ret ptr %2
}
declare ptr @gettemp(...) local_unnamed_addr #1
declare i64 @isstr(ptr noundef) local_unnamed_addr #1
declare i32 @tostring(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, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 12}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/contrib/one-true-awk/extr_run.c_copycell.c'
source_filename = "AnghaBench/freebsd/contrib/one-true-awk/extr_run.c_copycell.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CON = common local_unnamed_addr global i32 0, align 4
@FLD = common local_unnamed_addr global i32 0, align 4
@REC = common local_unnamed_addr global i32 0, align 4
@CCOPY = common local_unnamed_addr global i32 0, align 4
@DONTFREE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define noundef ptr @copycell(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @gettemp() #2
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = load i32, ptr @CON, align 4, !tbaa !11
%5 = load i32, ptr @FLD, align 4, !tbaa !11
%6 = or i32 %5, %4
%7 = load i32, ptr @REC, align 4, !tbaa !11
%8 = or i32 %6, %7
%9 = xor i32 %8, -1
%10 = and i32 %3, %9
store i32 %10, ptr %2, align 4, !tbaa !6
%11 = load i32, ptr @CCOPY, align 4, !tbaa !11
%12 = getelementptr inbounds i8, ptr %2, i64 16
store i32 %11, ptr %12, align 4, !tbaa !12
%13 = getelementptr inbounds i8, ptr %0, i64 12
%14 = load i32, ptr %13, align 4, !tbaa !13
%15 = getelementptr inbounds i8, ptr %2, i64 12
store i32 %14, ptr %15, align 4, !tbaa !13
%16 = tail call i64 @isstr(ptr noundef nonnull %0) #2
%17 = icmp eq i64 %16, 0
br i1 %17, label %27, label %18
18: ; preds = %1
%19 = getelementptr inbounds i8, ptr %0, i64 8
%20 = load i32, ptr %19, align 4, !tbaa !14
%21 = tail call i32 @tostring(i32 noundef %20) #2
%22 = getelementptr inbounds i8, ptr %2, i64 8
store i32 %21, ptr %22, align 4, !tbaa !14
%23 = load i32, ptr @DONTFREE, align 4, !tbaa !11
%24 = xor i32 %23, -1
%25 = load i32, ptr %2, align 4, !tbaa !6
%26 = and i32 %25, %24
br label %31
27: ; preds = %1
%28 = load i32, ptr @DONTFREE, align 4, !tbaa !11
%29 = load i32, ptr %2, align 4, !tbaa !6
%30 = or i32 %29, %28
br label %31
31: ; preds = %27, %18
%32 = phi i32 [ %30, %27 ], [ %26, %18 ]
store i32 %32, ptr %2, align 4, !tbaa !6
%33 = getelementptr inbounds i8, ptr %0, i64 4
%34 = load i32, ptr %33, align 4, !tbaa !15
%35 = getelementptr inbounds i8, ptr %2, i64 4
store i32 %34, ptr %35, align 4, !tbaa !15
ret ptr %2
}
declare ptr @gettemp(...) local_unnamed_addr #1
declare i64 @isstr(ptr noundef) local_unnamed_addr #1
declare i32 @tostring(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, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !8, i64 16}
!13 = !{!7, !8, i64 12}
!14 = !{!7, !8, i64 8}
!15 = !{!7, !8, i64 4}
| freebsd_contrib_one-true-awk_extr_run.c_copycell |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_vsc7326.c_check_bist.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_vsc7326.c_check_bist.c"
target datalayout = "e-m:e-p270:32:32-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 [52 x i8] c"Result: 0x%x BIST error in ram %d, column: 0x%04x\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @check_bist], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @check_bist(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @bist_rd(ptr noundef %0, i32 noundef %1, i32 noundef 2) #2
%4 = tail call i32 @bist_rd(ptr noundef %0, i32 noundef %1, i32 noundef 14) #2
%5 = tail call i32 @bist_rd(ptr noundef %0, i32 noundef %1, i32 noundef 13) #2
%6 = and i32 %3, 3
%7 = icmp eq i32 %6, 3
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = shl i32 %4, 8
%10 = add nsw i32 %9, %5
%11 = tail call i32 @pr_err(ptr noundef nonnull @.str, i32 noundef %3, i32 noundef %1, i32 noundef %10) #2
br label %12
12: ; preds = %8, %2
ret i32 0
}
declare i32 @bist_rd(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_err(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)"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_vsc7326.c_check_bist.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/chelsio/cxgb/extr_vsc7326.c_check_bist.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 [52 x i8] c"Result: 0x%x BIST error in ram %d, column: 0x%04x\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @check_bist], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @check_bist(ptr noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @bist_rd(ptr noundef %0, i32 noundef %1, i32 noundef 2) #2
%4 = tail call i32 @bist_rd(ptr noundef %0, i32 noundef %1, i32 noundef 14) #2
%5 = tail call i32 @bist_rd(ptr noundef %0, i32 noundef %1, i32 noundef 13) #2
%6 = and i32 %3, 3
%7 = icmp eq i32 %6, 3
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = shl i32 %4, 8
%10 = add nsw i32 %9, %5
%11 = tail call i32 @pr_err(ptr noundef nonnull @.str, i32 noundef %3, i32 noundef %1, i32 noundef %10) #2
br label %12
12: ; preds = %8, %2
ret i32 0
}
declare i32 @bist_rd(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @pr_err(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)"}
| linux_drivers_net_ethernet_chelsio_cxgb_extr_vsc7326.c_check_bist |
; ModuleID = 'AnghaBench/linux/drivers/nfc/nfcmrvl/extr_usb.c_nfcmrvl_bulk_complete.c'
source_filename = "AnghaBench/linux/drivers/nfc/nfcmrvl/extr_usb.c_nfcmrvl_bulk_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.urb = type { i32, i32, i32, ptr }
%struct.nfcmrvl_usb_drv_data = type { ptr, i32, i32, ptr }
@.str = private unnamed_addr constant [27 x i8] c"urb %p status %d count %d\0A\00", align 1
@NFCMRVL_NCI_RUNNING = dso_local local_unnamed_addr global i32 0, align 4
@GFP_ATOMIC = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"failed to alloc mem\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"corrupted Rx packet\0A\00", align 1
@NFCMRVL_USB_BULK_RUNNING = dso_local local_unnamed_addr global i32 0, align 4
@EPERM = dso_local local_unnamed_addr global i32 0, align 4
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [32 x i8] c"urb %p failed to resubmit (%d)\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @nfcmrvl_bulk_complete], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @nfcmrvl_bulk_complete(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.urb, ptr %0, i64 0, i32 3
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !11
%5 = getelementptr inbounds %struct.urb, ptr %0, i64 0, i32 2
%6 = load i32, ptr %5, align 8, !tbaa !13
%7 = load i32, ptr %0, align 8, !tbaa !14
%8 = tail call i32 @dev_dbg(ptr noundef %4, ptr noundef nonnull @.str, ptr noundef nonnull %0, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @NFCMRVL_NCI_RUNNING, align 4, !tbaa !15
%10 = getelementptr inbounds %struct.nfcmrvl_usb_drv_data, ptr %3, i64 0, i32 2
%11 = tail call i32 @test_bit(i32 noundef %9, ptr noundef nonnull %10) #2
%12 = icmp eq i32 %11, 0
br i1 %12, label %62, label %13
13: ; preds = %1
%14 = load i32, ptr %5, align 8, !tbaa !13
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %36
16: ; preds = %13
%17 = getelementptr inbounds %struct.nfcmrvl_usb_drv_data, ptr %3, i64 0, i32 3
%18 = load ptr, ptr %17, align 8, !tbaa !16
%19 = load i32, ptr %18, align 4, !tbaa !17
%20 = load i32, ptr %0, align 8, !tbaa !14
%21 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !15
%22 = tail call ptr @nci_skb_alloc(i32 noundef %19, i32 noundef %20, i32 noundef %21) #2
%23 = icmp eq ptr %22, null
br i1 %23, label %32, label %24
24: ; preds = %16
%25 = getelementptr inbounds %struct.urb, ptr %0, i64 0, i32 1
%26 = load i32, ptr %25, align 4, !tbaa !19
%27 = load i32, ptr %0, align 8, !tbaa !14
%28 = tail call i32 @skb_put_data(ptr noundef nonnull %22, i32 noundef %26, i32 noundef %27) #2
%29 = load ptr, ptr %17, align 8, !tbaa !16
%30 = tail call i64 @nfcmrvl_nci_recv_frame(ptr noundef %29, ptr noundef nonnull %22) #2
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %24, %16
%33 = phi ptr [ @.str.1, %16 ], [ @.str.2, %24 ]
%34 = load ptr, ptr %3, align 8, !tbaa !11
%35 = tail call i32 (ptr, ptr, ...) @nfc_err(ptr noundef %34, ptr noundef nonnull %33) #2
br label %36
36: ; preds = %32, %24, %13
%37 = load i32, ptr @NFCMRVL_USB_BULK_RUNNING, align 4, !tbaa !15
%38 = tail call i32 @test_bit(i32 noundef %37, ptr noundef nonnull %10) #2
%39 = icmp eq i32 %38, 0
br i1 %39, label %62, label %40
40: ; preds = %36
%41 = getelementptr inbounds %struct.nfcmrvl_usb_drv_data, ptr %3, i64 0, i32 1
%42 = tail call i32 @usb_anchor_urb(ptr noundef nonnull %0, ptr noundef nonnull %41) #2
%43 = load ptr, ptr %3, align 8, !tbaa !11
%44 = tail call i32 @usb_mark_last_busy(ptr noundef %43) #2
%45 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !15
%46 = tail call i32 @usb_submit_urb(ptr noundef nonnull %0, i32 noundef %45) #2
%47 = icmp eq i32 %46, 0
br i1 %47, label %62, label %48
48: ; preds = %40
%49 = load i32, ptr @EPERM, align 4, !tbaa !15
%50 = sub nsw i32 0, %49
%51 = icmp eq i32 %46, %50
br i1 %51, label %60, label %52
52: ; preds = %48
%53 = load i32, ptr @ENODEV, align 4, !tbaa !15
%54 = sub nsw i32 0, %53
%55 = icmp eq i32 %46, %54
br i1 %55, label %60, label %56
56: ; preds = %52
%57 = load ptr, ptr %3, align 8, !tbaa !11
%58 = sub nsw i32 0, %46
%59 = tail call i32 (ptr, ptr, ...) @nfc_err(ptr noundef %57, ptr noundef nonnull @.str.3, ptr noundef nonnull %0, i32 noundef %58) #2
br label %60
60: ; preds = %56, %52, %48
%61 = tail call i32 @usb_unanchor_urb(ptr noundef nonnull %0) #2
br label %62
62: ; preds = %40, %60, %36, %1
ret void
}
declare i32 @dev_dbg(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @nci_skb_alloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nfc_err(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @skb_put_data(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @nfcmrvl_nci_recv_frame(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_anchor_urb(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_mark_last_busy(ptr noundef) local_unnamed_addr #1
declare i32 @usb_submit_urb(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @usb_unanchor_urb(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"urb", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"nfcmrvl_usb_drv_data", !10, i64 0, !7, i64 8, !7, i64 12, !10, i64 16}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !10, i64 16}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_4__", !7, i64 0}
!19 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/nfc/nfcmrvl/extr_usb.c_nfcmrvl_bulk_complete.c'
source_filename = "AnghaBench/linux/drivers/nfc/nfcmrvl/extr_usb.c_nfcmrvl_bulk_complete.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 [27 x i8] c"urb %p status %d count %d\0A\00", align 1
@NFCMRVL_NCI_RUNNING = common local_unnamed_addr global i32 0, align 4
@GFP_ATOMIC = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"failed to alloc mem\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"corrupted Rx packet\0A\00", align 1
@NFCMRVL_USB_BULK_RUNNING = common local_unnamed_addr global i32 0, align 4
@EPERM = common local_unnamed_addr global i32 0, align 4
@ENODEV = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [32 x i8] c"urb %p failed to resubmit (%d)\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @nfcmrvl_bulk_complete], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @nfcmrvl_bulk_complete(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !12
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load i32, ptr %5, align 8, !tbaa !14
%7 = load i32, ptr %0, align 8, !tbaa !15
%8 = tail call i32 @dev_dbg(ptr noundef %4, ptr noundef nonnull @.str, ptr noundef nonnull %0, i32 noundef %6, i32 noundef %7) #2
%9 = load i32, ptr @NFCMRVL_NCI_RUNNING, align 4, !tbaa !16
%10 = getelementptr inbounds i8, ptr %3, i64 12
%11 = tail call i32 @test_bit(i32 noundef %9, ptr noundef nonnull %10) #2
%12 = icmp eq i32 %11, 0
br i1 %12, label %62, label %13
13: ; preds = %1
%14 = load i32, ptr %5, align 8, !tbaa !14
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %36
16: ; preds = %13
%17 = getelementptr inbounds i8, ptr %3, i64 16
%18 = load ptr, ptr %17, align 8, !tbaa !17
%19 = load i32, ptr %18, align 4, !tbaa !18
%20 = load i32, ptr %0, align 8, !tbaa !15
%21 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !16
%22 = tail call ptr @nci_skb_alloc(i32 noundef %19, i32 noundef %20, i32 noundef %21) #2
%23 = icmp eq ptr %22, null
br i1 %23, label %32, label %24
24: ; preds = %16
%25 = getelementptr inbounds i8, ptr %0, i64 4
%26 = load i32, ptr %25, align 4, !tbaa !20
%27 = load i32, ptr %0, align 8, !tbaa !15
%28 = tail call i32 @skb_put_data(ptr noundef nonnull %22, i32 noundef %26, i32 noundef %27) #2
%29 = load ptr, ptr %17, align 8, !tbaa !17
%30 = tail call i64 @nfcmrvl_nci_recv_frame(ptr noundef %29, ptr noundef nonnull %22) #2
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %24, %16
%33 = phi ptr [ @.str.1, %16 ], [ @.str.2, %24 ]
%34 = load ptr, ptr %3, align 8, !tbaa !12
%35 = tail call i32 (ptr, ptr, ...) @nfc_err(ptr noundef %34, ptr noundef nonnull %33) #2
br label %36
36: ; preds = %32, %24, %13
%37 = load i32, ptr @NFCMRVL_USB_BULK_RUNNING, align 4, !tbaa !16
%38 = tail call i32 @test_bit(i32 noundef %37, ptr noundef nonnull %10) #2
%39 = icmp eq i32 %38, 0
br i1 %39, label %62, label %40
40: ; preds = %36
%41 = getelementptr inbounds i8, ptr %3, i64 8
%42 = tail call i32 @usb_anchor_urb(ptr noundef nonnull %0, ptr noundef nonnull %41) #2
%43 = load ptr, ptr %3, align 8, !tbaa !12
%44 = tail call i32 @usb_mark_last_busy(ptr noundef %43) #2
%45 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !16
%46 = tail call i32 @usb_submit_urb(ptr noundef nonnull %0, i32 noundef %45) #2
%47 = icmp eq i32 %46, 0
br i1 %47, label %62, label %48
48: ; preds = %40
%49 = load i32, ptr @EPERM, align 4, !tbaa !16
%50 = sub nsw i32 0, %49
%51 = icmp eq i32 %46, %50
br i1 %51, label %60, label %52
52: ; preds = %48
%53 = load i32, ptr @ENODEV, align 4, !tbaa !16
%54 = sub nsw i32 0, %53
%55 = icmp eq i32 %46, %54
br i1 %55, label %60, label %56
56: ; preds = %52
%57 = load ptr, ptr %3, align 8, !tbaa !12
%58 = sub nsw i32 0, %46
%59 = tail call i32 (ptr, ptr, ...) @nfc_err(ptr noundef %57, ptr noundef nonnull @.str.3, ptr noundef nonnull %0, i32 noundef %58) #2
br label %60
60: ; preds = %56, %52, %48
%61 = tail call i32 @usb_unanchor_urb(ptr noundef nonnull %0) #2
br label %62
62: ; preds = %40, %60, %36, %1
ret void
}
declare i32 @dev_dbg(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @test_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare ptr @nci_skb_alloc(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @nfc_err(ptr noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @skb_put_data(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @nfcmrvl_nci_recv_frame(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_anchor_urb(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_mark_last_busy(ptr noundef) local_unnamed_addr #1
declare i32 @usb_submit_urb(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @usb_unanchor_urb(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 16}
!7 = !{!"urb", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"nfcmrvl_usb_drv_data", !11, i64 0, !8, i64 8, !8, i64 12, !11, i64 16}
!14 = !{!7, !8, i64 8}
!15 = !{!7, !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!13, !11, i64 16}
!18 = !{!19, !8, i64 0}
!19 = !{!"TYPE_4__", !8, i64 0}
!20 = !{!7, !8, i64 4}
| linux_drivers_nfc_nfcmrvl_extr_usb.c_nfcmrvl_bulk_complete |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/extr_drm_gem_shmem_helper.c_drm_gem_shmem_get_sg_table.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/extr_drm_gem_shmem_helper.c_drm_gem_shmem_get_sg_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"
@PAGE_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local ptr @drm_gem_shmem_get_sg_table(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @to_drm_gem_shmem_obj(ptr noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !5
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = load i32, ptr @PAGE_SHIFT, align 4, !tbaa !12
%6 = ashr i32 %4, %5
%7 = tail call ptr @drm_prime_pages_to_sg(i32 noundef %3, i32 noundef %6) #2
ret ptr %7
}
declare ptr @to_drm_gem_shmem_obj(ptr noundef) local_unnamed_addr #1
declare ptr @drm_prime_pages_to_sg(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 = !{!"drm_gem_shmem_object", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"drm_gem_object", !7, i64 0}
!12 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/extr_drm_gem_shmem_helper.c_drm_gem_shmem_get_sg_table.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/extr_drm_gem_shmem_helper.c_drm_gem_shmem_get_sg_table.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PAGE_SHIFT = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @drm_gem_shmem_get_sg_table(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call ptr @to_drm_gem_shmem_obj(ptr noundef %0) #2
%3 = load i32, ptr %2, align 4, !tbaa !6
%4 = load i32, ptr %0, align 4, !tbaa !11
%5 = load i32, ptr @PAGE_SHIFT, align 4, !tbaa !13
%6 = ashr i32 %4, %5
%7 = tail call ptr @drm_prime_pages_to_sg(i32 noundef %3, i32 noundef %6) #2
ret ptr %7
}
declare ptr @to_drm_gem_shmem_obj(ptr noundef) local_unnamed_addr #1
declare ptr @drm_prime_pages_to_sg(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 = !{!"drm_gem_shmem_object", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"drm_gem_object", !8, i64 0}
!13 = !{!8, !8, i64 0}
| linux_drivers_gpu_drm_extr_drm_gem_shmem_helper.c_drm_gem_shmem_get_sg_table |
; ModuleID = 'AnghaBench/linux/tools/perf/ui/extr_..utilhist.h_res_sample_init.c'
source_filename = "AnghaBench/linux/tools/perf/ui/extr_..utilhist.h_res_sample_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @res_sample_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @res_sample_init() #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/tools/perf/ui/extr_..utilhist.h_res_sample_init.c'
source_filename = "AnghaBench/linux/tools/perf/ui/extr_..utilhist.h_res_sample_init.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 @res_sample_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @res_sample_init() #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_tools_perf_ui_extr_..utilhist.h_res_sample_init |
; ModuleID = 'AnghaBench/openssl/test/extr_ssltest_old.c_next_protos_parse.c'
source_filename = "AnghaBench/openssl/test/extr_ssltest_old.c_next_protos_parse.c"
target datalayout = "e-m:e-p270:32:32-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 @next_protos_parse], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal ptr @next_protos_parse(ptr nocapture noundef writeonly %0, ptr noundef %1) #0 {
%3 = tail call i32 @strlen(ptr noundef %1) #2
%4 = sext i32 %3 to i64
%5 = icmp ugt i32 %3, 65534
br i1 %5, label %39, label %6
6: ; preds = %2
%7 = tail call i32 @strlen(ptr noundef %1) #2
%8 = add nsw i32 %7, 1
%9 = tail call ptr @OPENSSL_malloc(i32 noundef %8) #2
%10 = icmp eq ptr %9, null
br i1 %10, label %39, label %11
11: ; preds = %6
%12 = getelementptr i8, ptr %9, i64 1
%13 = add nuw nsw i64 %4, 1
br label %14
14: ; preds = %11, %34
%15 = phi i64 [ 0, %11 ], [ %36, %34 ]
%16 = phi i64 [ 0, %11 ], [ %35, %34 ]
%17 = icmp eq i64 %16, %4
br i1 %17, label %22, label %18
18: ; preds = %14
%19 = getelementptr inbounds i8, ptr %1, i64 %16
%20 = load i8, ptr %19, align 1, !tbaa !5
%21 = icmp eq i8 %20, 44
br i1 %21, label %22, label %31
22: ; preds = %18, %14
%23 = sub i64 %16, %15
%24 = icmp ugt i64 %23, 255
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = tail call i32 @OPENSSL_free(ptr noundef nonnull %9) #2
br label %39
27: ; preds = %22
%28 = trunc i64 %23 to i8
%29 = getelementptr inbounds i8, ptr %9, i64 %15
store i8 %28, ptr %29, align 1, !tbaa !5
%30 = add nuw i64 %16, 1
br label %34
31: ; preds = %18
%32 = getelementptr i8, ptr %12, i64 %16
store i8 %20, ptr %32, align 1, !tbaa !5
%33 = add nuw i64 %16, 1
br label %34
34: ; preds = %27, %31
%35 = phi i64 [ %30, %27 ], [ %33, %31 ]
%36 = phi i64 [ %30, %27 ], [ %15, %31 ]
%37 = icmp eq i64 %35, %13
br i1 %37, label %38, label %14, !llvm.loop !8
38: ; preds = %34
store i64 %13, ptr %0, align 8, !tbaa !10
br label %39
39: ; preds = %6, %2, %38, %25
%40 = phi ptr [ null, %25 ], [ %9, %38 ], [ null, %2 ], [ null, %6 ]
ret ptr %40
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare ptr @OPENSSL_malloc(i32 noundef) local_unnamed_addr #1
declare i32 @OPENSSL_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}
| ; ModuleID = 'AnghaBench/openssl/test/extr_ssltest_old.c_next_protos_parse.c'
source_filename = "AnghaBench/openssl/test/extr_ssltest_old.c_next_protos_parse.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 @next_protos_parse], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal ptr @next_protos_parse(ptr nocapture noundef writeonly %0, ptr noundef %1) #0 {
%3 = tail call i32 @strlen(ptr noundef %1) #2
%4 = sext i32 %3 to i64
%5 = icmp ugt i32 %3, 65534
br i1 %5, label %39, label %6
6: ; preds = %2
%7 = tail call i32 @strlen(ptr noundef %1) #2
%8 = add nsw i32 %7, 1
%9 = tail call ptr @OPENSSL_malloc(i32 noundef %8) #2
%10 = icmp eq ptr %9, null
br i1 %10, label %39, label %11
11: ; preds = %6
%12 = getelementptr inbounds i8, ptr %9, i64 1
%13 = add nuw nsw i64 %4, 1
br label %14
14: ; preds = %11, %34
%15 = phi i64 [ 0, %11 ], [ %36, %34 ]
%16 = phi i64 [ 0, %11 ], [ %35, %34 ]
%17 = icmp eq i64 %16, %4
br i1 %17, label %22, label %18
18: ; preds = %14
%19 = getelementptr inbounds i8, ptr %1, i64 %16
%20 = load i8, ptr %19, align 1, !tbaa !6
%21 = icmp eq i8 %20, 44
br i1 %21, label %22, label %31
22: ; preds = %18, %14
%23 = sub i64 %16, %15
%24 = icmp ugt i64 %23, 255
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = tail call i32 @OPENSSL_free(ptr noundef nonnull %9) #2
br label %39
27: ; preds = %22
%28 = trunc nuw i64 %23 to i8
%29 = getelementptr inbounds i8, ptr %9, i64 %15
store i8 %28, ptr %29, align 1, !tbaa !6
%30 = add nuw i64 %16, 1
br label %34
31: ; preds = %18
%32 = getelementptr inbounds i8, ptr %12, i64 %16
store i8 %20, ptr %32, align 1, !tbaa !6
%33 = add nuw i64 %16, 1
br label %34
34: ; preds = %27, %31
%35 = phi i64 [ %30, %27 ], [ %33, %31 ]
%36 = phi i64 [ %30, %27 ], [ %15, %31 ]
%37 = icmp eq i64 %35, %13
br i1 %37, label %38, label %14, !llvm.loop !9
38: ; preds = %34
store i64 %13, ptr %0, align 8, !tbaa !11
br label %39
39: ; preds = %6, %2, %38, %25
%40 = phi ptr [ null, %25 ], [ %9, %38 ], [ null, %2 ], [ null, %6 ]
ret ptr %40
}
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
declare ptr @OPENSSL_malloc(i32 noundef) local_unnamed_addr #1
declare i32 @OPENSSL_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
| openssl_test_extr_ssltest_old.c_next_protos_parse |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_mite.c_mite_dma_tcr.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_mite.c_mite_dma_tcr.c"
target datalayout = "e-m:e-p270:32:32-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.mite_channel = type { i32, ptr }
@.str = private unnamed_addr constant [39 x i8] c"mite_dma_tcr ch%i, lkar=0x%08x tcr=%d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @mite_dma_tcr(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.mite_channel, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i64, ptr %3, align 8, !tbaa !11
%5 = load i32, ptr %0, align 8, !tbaa !14
%6 = tail call i64 @MITE_LKAR(i32 noundef %5) #2
%7 = add nsw i64 %6, %4
%8 = tail call i32 @readl(i64 noundef %7) #2
%9 = load i64, ptr %3, align 8, !tbaa !11
%10 = load i32, ptr %0, align 8, !tbaa !14
%11 = tail call i64 @MITE_TCR(i32 noundef %10) #2
%12 = add nsw i64 %11, %9
%13 = tail call i32 @readl(i64 noundef %12) #2
%14 = load i32, ptr %0, align 8, !tbaa !14
%15 = tail call i32 @MDPRINTK(ptr noundef nonnull @.str, i32 noundef %14, i32 noundef %8, i32 noundef %13) #2
ret i32 %13
}
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i64 @MITE_LKAR(i32 noundef) local_unnamed_addr #1
declare i64 @MITE_TCR(i32 noundef) local_unnamed_addr #1
declare i32 @MDPRINTK(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, !10, i64 8}
!6 = !{!"mite_channel", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"mite_struct", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_mite.c_mite_dma_tcr.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_mite.c_mite_dma_tcr.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 [39 x i8] c"mite_dma_tcr ch%i, lkar=0x%08x tcr=%d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @mite_dma_tcr(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i64, ptr %3, align 8, !tbaa !12
%5 = load i32, ptr %0, align 8, !tbaa !15
%6 = tail call i64 @MITE_LKAR(i32 noundef %5) #2
%7 = add nsw i64 %6, %4
%8 = tail call i32 @readl(i64 noundef %7) #2
%9 = load i64, ptr %3, align 8, !tbaa !12
%10 = load i32, ptr %0, align 8, !tbaa !15
%11 = tail call i64 @MITE_TCR(i32 noundef %10) #2
%12 = add nsw i64 %11, %9
%13 = tail call i32 @readl(i64 noundef %12) #2
%14 = load i32, ptr %0, align 8, !tbaa !15
%15 = tail call i32 @MDPRINTK(ptr noundef nonnull @.str, i32 noundef %14, i32 noundef %8, i32 noundef %13) #2
ret i32 %13
}
declare i32 @readl(i64 noundef) local_unnamed_addr #1
declare i64 @MITE_LKAR(i32 noundef) local_unnamed_addr #1
declare i64 @MITE_TCR(i32 noundef) local_unnamed_addr #1
declare i32 @MDPRINTK(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, !11, i64 8}
!7 = !{!"mite_channel", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"mite_struct", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!7, !8, i64 0}
| fastsocket_kernel_drivers_staging_comedi_drivers_extr_mite.c_mite_dma_tcr |
; ModuleID = 'AnghaBench/linux/samples/bpf/extr_tcbpf1_kern.c_set_tcp_ip_src.c'
source_filename = "AnghaBench/linux/samples/bpf/extr_tcbpf1_kern.c_set_tcp_ip_src.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@IP_SRC_OFF = dso_local local_unnamed_addr global i32 0, align 4
@TCP_CSUM_OFF = dso_local local_unnamed_addr global i32 0, align 4
@IS_PSEUDO = dso_local local_unnamed_addr global i32 0, align 4
@IP_CSUM_OFF = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @set_tcp_ip_src], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @set_tcp_ip_src(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
store i32 %1, ptr %3, align 4, !tbaa !5
%4 = load i32, ptr @IP_SRC_OFF, align 4, !tbaa !5
%5 = tail call i32 @load_word(ptr noundef %0, i32 noundef %4) #2
%6 = tail call i32 @_htonl(i32 noundef %5) #2
%7 = load i32, ptr @TCP_CSUM_OFF, align 4, !tbaa !5
%8 = load i32, ptr @IS_PSEUDO, align 4, !tbaa !5
%9 = or i32 %8, 4
%10 = tail call i32 @bpf_l4_csum_replace(ptr noundef %0, i32 noundef %7, i32 noundef %6, i32 noundef %1, i32 noundef %9) #2
%11 = load i32, ptr @IP_CSUM_OFF, align 4, !tbaa !5
%12 = tail call i32 @bpf_l3_csum_replace(ptr noundef %0, i32 noundef %11, i32 noundef %6, i32 noundef %1, i32 noundef 4) #2
%13 = load i32, ptr @IP_SRC_OFF, align 4, !tbaa !5
%14 = call i32 @bpf_skb_store_bytes(ptr noundef %0, i32 noundef %13, ptr noundef nonnull %3, i32 noundef 4, i32 noundef 0) #2
ret void
}
declare i32 @_htonl(i32 noundef) local_unnamed_addr #1
declare i32 @load_word(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bpf_l4_csum_replace(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bpf_l3_csum_replace(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bpf_skb_store_bytes(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/samples/bpf/extr_tcbpf1_kern.c_set_tcp_ip_src.c'
source_filename = "AnghaBench/linux/samples/bpf/extr_tcbpf1_kern.c_set_tcp_ip_src.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IP_SRC_OFF = common local_unnamed_addr global i32 0, align 4
@TCP_CSUM_OFF = common local_unnamed_addr global i32 0, align 4
@IS_PSEUDO = common local_unnamed_addr global i32 0, align 4
@IP_CSUM_OFF = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @set_tcp_ip_src], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @set_tcp_ip_src(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
store i32 %1, ptr %3, align 4, !tbaa !6
%4 = load i32, ptr @IP_SRC_OFF, align 4, !tbaa !6
%5 = tail call i32 @load_word(ptr noundef %0, i32 noundef %4) #2
%6 = tail call i32 @_htonl(i32 noundef %5) #2
%7 = load i32, ptr @TCP_CSUM_OFF, align 4, !tbaa !6
%8 = load i32, ptr @IS_PSEUDO, align 4, !tbaa !6
%9 = or i32 %8, 4
%10 = tail call i32 @bpf_l4_csum_replace(ptr noundef %0, i32 noundef %7, i32 noundef %6, i32 noundef %1, i32 noundef %9) #2
%11 = load i32, ptr @IP_CSUM_OFF, align 4, !tbaa !6
%12 = tail call i32 @bpf_l3_csum_replace(ptr noundef %0, i32 noundef %11, i32 noundef %6, i32 noundef %1, i32 noundef 4) #2
%13 = load i32, ptr @IP_SRC_OFF, align 4, !tbaa !6
%14 = call i32 @bpf_skb_store_bytes(ptr noundef %0, i32 noundef %13, ptr noundef nonnull %3, i32 noundef 4, i32 noundef 0) #2
ret void
}
declare i32 @_htonl(i32 noundef) local_unnamed_addr #1
declare i32 @load_word(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bpf_l4_csum_replace(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bpf_l3_csum_replace(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bpf_skb_store_bytes(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_samples_bpf_extr_tcbpf1_kern.c_set_tcp_ip_src |
; ModuleID = 'AnghaBench/reactos/dll/win32/version/extr_version.c_find_version_resource.c'
source_filename = "AnghaBench/reactos/dll/win32/version/extr_version.c_find_version_resource.c"
target datalayout = "e-m:e-p270:32:32-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 @find_version_resource], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @find_version_resource(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = tail call i32 @read_xx_header(i32 noundef %0) #2
switch i32 %5, label %14 [
i32 128, label %6
i32 129, label %10
]
6: ; preds = %4
%7 = tail call i32 @find_ne_resource(i32 noundef %0, ptr noundef %1, ptr noundef %2) #2
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, i32 0, i32 128
br label %14
10: ; preds = %4
%11 = tail call i32 @find_pe_resource(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i32 0, i32 129
br label %14
14: ; preds = %10, %6, %4
%15 = phi i32 [ %5, %4 ], [ %9, %6 ], [ %13, %10 ]
ret i32 %15
}
declare i32 @read_xx_header(i32 noundef) local_unnamed_addr #1
declare i32 @find_ne_resource(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @find_pe_resource(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/version/extr_version.c_find_version_resource.c'
source_filename = "AnghaBench/reactos/dll/win32/version/extr_version.c_find_version_resource.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_version_resource], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @find_version_resource(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = tail call i32 @read_xx_header(i32 noundef %0) #2
switch i32 %5, label %14 [
i32 128, label %6
i32 129, label %10
]
6: ; preds = %4
%7 = tail call i32 @find_ne_resource(i32 noundef %0, ptr noundef %1, ptr noundef %2) #2
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, i32 0, i32 128
br label %14
10: ; preds = %4
%11 = tail call i32 @find_pe_resource(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i32 0, i32 129
br label %14
14: ; preds = %10, %6, %4
%15 = phi i32 [ %5, %4 ], [ %9, %6 ], [ %13, %10 ]
ret i32 %15
}
declare i32 @read_xx_header(i32 noundef) local_unnamed_addr #1
declare i32 @find_ne_resource(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @find_pe_resource(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| reactos_dll_win32_version_extr_version.c_find_version_resource |
; ModuleID = 'AnghaBench/linux/drivers/media/usb/pvrusb2/extr_pvrusb2-io.c_pvr2_stream_kill.c'
source_filename = "AnghaBench/linux/drivers/media/usb/pvrusb2/extr_pvrusb2-io.c_pvr2_stream_kill.c"
target datalayout = "e-m:e-p270:32:32-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.pvr2_stream = type { i64, i64, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @pvr2_stream_kill(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.pvr2_stream, ptr %0, i64 0, i32 2
%3 = tail call i32 @mutex_lock(ptr noundef nonnull %2) #2
%4 = tail call i32 @pvr2_stream_internal_flush(ptr noundef %0) #2
%5 = tail call ptr @pvr2_stream_get_ready_buffer(ptr noundef %0) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %12, label %7
7: ; preds = %1, %7
%8 = phi ptr [ %10, %7 ], [ %5, %1 ]
%9 = tail call i32 @pvr2_buffer_set_idle(ptr noundef nonnull %8) #2
%10 = tail call ptr @pvr2_stream_get_ready_buffer(ptr noundef %0) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %7, !llvm.loop !5
12: ; preds = %7, %1
%13 = load i64, ptr %0, align 8, !tbaa !7
%14 = getelementptr inbounds %struct.pvr2_stream, ptr %0, i64 0, i32 1
%15 = load i64, ptr %14, align 8, !tbaa !13
%16 = icmp eq i64 %13, %15
br i1 %16, label %19, label %17
17: ; preds = %12
%18 = tail call i32 @pvr2_stream_achieve_buffer_count(ptr noundef nonnull %0) #2
br label %19
19: ; preds = %17, %12
%20 = tail call i32 @mutex_unlock(ptr noundef nonnull %2) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @pvr2_stream_internal_flush(ptr noundef) local_unnamed_addr #1
declare ptr @pvr2_stream_get_ready_buffer(ptr noundef) local_unnamed_addr #1
declare i32 @pvr2_buffer_set_idle(ptr noundef) local_unnamed_addr #1
declare i32 @pvr2_stream_achieve_buffer_count(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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"pvr2_stream", !9, i64 0, !9, i64 8, !12, i64 16}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!8, !9, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/media/usb/pvrusb2/extr_pvrusb2-io.c_pvr2_stream_kill.c'
source_filename = "AnghaBench/linux/drivers/media/usb/pvrusb2/extr_pvrusb2-io.c_pvr2_stream_kill.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 @pvr2_stream_kill(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = tail call i32 @mutex_lock(ptr noundef nonnull %2) #2
%4 = tail call i32 @pvr2_stream_internal_flush(ptr noundef %0) #2
%5 = tail call ptr @pvr2_stream_get_ready_buffer(ptr noundef %0) #2
%6 = icmp eq ptr %5, null
br i1 %6, label %12, label %7
7: ; preds = %1, %7
%8 = phi ptr [ %10, %7 ], [ %5, %1 ]
%9 = tail call i32 @pvr2_buffer_set_idle(ptr noundef nonnull %8) #2
%10 = tail call ptr @pvr2_stream_get_ready_buffer(ptr noundef %0) #2
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %7, !llvm.loop !6
12: ; preds = %7, %1
%13 = load i64, ptr %0, align 8, !tbaa !8
%14 = getelementptr inbounds i8, ptr %0, i64 8
%15 = load i64, ptr %14, align 8, !tbaa !14
%16 = icmp eq i64 %13, %15
br i1 %16, label %19, label %17
17: ; preds = %12
%18 = tail call i32 @pvr2_stream_achieve_buffer_count(ptr noundef nonnull %0) #2
br label %19
19: ; preds = %17, %12
%20 = tail call i32 @mutex_unlock(ptr noundef nonnull %2) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @pvr2_stream_internal_flush(ptr noundef) local_unnamed_addr #1
declare ptr @pvr2_stream_get_ready_buffer(ptr noundef) local_unnamed_addr #1
declare i32 @pvr2_buffer_set_idle(ptr noundef) local_unnamed_addr #1
declare i32 @pvr2_stream_achieve_buffer_count(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 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = !{!9, !10, i64 0}
!9 = !{!"pvr2_stream", !10, i64 0, !10, i64 8, !13, i64 16}
!10 = !{!"long", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C/C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!9, !10, i64 8}
| linux_drivers_media_usb_pvrusb2_extr_pvrusb2-io.c_pvr2_stream_kill |
; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_upperFunc.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_upperFunc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@sqlite3_free = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @upperFunc], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @upperFunc(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = tail call i32 @UNUSED_PARAMETER(i32 noundef %1) #2
%5 = load ptr, ptr %2, align 8, !tbaa !5
%6 = tail call i64 @sqlite3_value_text(ptr noundef %5) #2
%7 = inttoptr i64 %6 to ptr
%8 = load ptr, ptr %2, align 8, !tbaa !5
%9 = tail call i32 @sqlite3_value_bytes(ptr noundef %8) #2
%10 = load ptr, ptr %2, align 8, !tbaa !5
%11 = tail call i64 @sqlite3_value_text(ptr noundef %10) #2
%12 = inttoptr i64 %11 to ptr
%13 = icmp eq ptr %7, %12
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 noundef %14) #2
%16 = icmp eq i64 %6, 0
br i1 %16, label %38, label %17
17: ; preds = %3
%18 = sext i32 %9 to i64
%19 = add nsw i64 %18, 1
%20 = tail call ptr @contextMalloc(ptr noundef %0, i64 noundef %19) #2
%21 = icmp eq ptr %20, null
br i1 %21, label %38, label %22
22: ; preds = %17
%23 = icmp sgt i32 %9, 0
br i1 %23, label %24, label %35
24: ; preds = %22
%25 = zext nneg i32 %9 to i64
br label %26
26: ; preds = %24, %26
%27 = phi i64 [ 0, %24 ], [ %33, %26 ]
%28 = getelementptr inbounds i8, ptr %7, i64 %27
%29 = load i8, ptr %28, align 1, !tbaa !9
%30 = tail call i64 @sqlite3Toupper(i8 noundef signext %29) #2
%31 = trunc i64 %30 to i8
%32 = getelementptr inbounds i8, ptr %20, i64 %27
store i8 %31, ptr %32, align 1, !tbaa !9
%33 = add nuw nsw i64 %27, 1
%34 = icmp eq i64 %33, %25
br i1 %34, label %35, label %26, !llvm.loop !10
35: ; preds = %26, %22
%36 = load i32, ptr @sqlite3_free, align 4, !tbaa !12
%37 = tail call i32 @sqlite3_result_text(ptr noundef %0, ptr noundef nonnull %20, i32 noundef %9, i32 noundef %36) #2
br label %38
38: ; preds = %17, %35, %3
ret void
}
declare i32 @UNUSED_PARAMETER(i32 noundef) local_unnamed_addr #1
declare i64 @sqlite3_value_text(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_value_bytes(ptr noundef) local_unnamed_addr #1
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare ptr @contextMalloc(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @sqlite3Toupper(i8 noundef signext) local_unnamed_addr #1
declare i32 @sqlite3_result_text(ptr noundef, 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_upperFunc.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_upperFunc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@sqlite3_free = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @upperFunc], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @upperFunc(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = tail call i32 @UNUSED_PARAMETER(i32 noundef %1) #2
%5 = load ptr, ptr %2, align 8, !tbaa !6
%6 = tail call i64 @sqlite3_value_text(ptr noundef %5) #2
%7 = inttoptr i64 %6 to ptr
%8 = load ptr, ptr %2, align 8, !tbaa !6
%9 = tail call i32 @sqlite3_value_bytes(ptr noundef %8) #2
%10 = load ptr, ptr %2, align 8, !tbaa !6
%11 = tail call i64 @sqlite3_value_text(ptr noundef %10) #2
%12 = icmp eq i64 %6, %11
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 noundef %13) #2
%15 = icmp eq i64 %6, 0
br i1 %15, label %37, label %16
16: ; preds = %3
%17 = sext i32 %9 to i64
%18 = add nsw i64 %17, 1
%19 = tail call ptr @contextMalloc(ptr noundef %0, i64 noundef %18) #2
%20 = icmp eq ptr %19, null
br i1 %20, label %37, label %21
21: ; preds = %16
%22 = icmp sgt i32 %9, 0
br i1 %22, label %23, label %34
23: ; preds = %21
%24 = zext nneg i32 %9 to i64
br label %25
25: ; preds = %23, %25
%26 = phi i64 [ 0, %23 ], [ %32, %25 ]
%27 = getelementptr inbounds i8, ptr %7, i64 %26
%28 = load i8, ptr %27, align 1, !tbaa !10
%29 = tail call i64 @sqlite3Toupper(i8 noundef signext %28) #2
%30 = trunc i64 %29 to i8
%31 = getelementptr inbounds i8, ptr %19, i64 %26
store i8 %30, ptr %31, align 1, !tbaa !10
%32 = add nuw nsw i64 %26, 1
%33 = icmp eq i64 %32, %24
br i1 %33, label %34, label %25, !llvm.loop !11
34: ; preds = %25, %21
%35 = load i32, ptr @sqlite3_free, align 4, !tbaa !13
%36 = tail call i32 @sqlite3_result_text(ptr noundef %0, ptr noundef nonnull %19, i32 noundef %9, i32 noundef %35) #2
br label %37
37: ; preds = %16, %34, %3
ret void
}
declare i32 @UNUSED_PARAMETER(i32 noundef) local_unnamed_addr #1
declare i64 @sqlite3_value_text(ptr noundef) local_unnamed_addr #1
declare i32 @sqlite3_value_bytes(ptr noundef) local_unnamed_addr #1
declare i32 @assert(i32 noundef) local_unnamed_addr #1
declare ptr @contextMalloc(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i64 @sqlite3Toupper(i8 noundef signext) local_unnamed_addr #1
declare i32 @sqlite3_result_text(ptr noundef, 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 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
| wcdb_android_sqlcipher_extr_sqlite3.c_upperFunc |
; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_msp3400-driver.c_msp_write.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_msp3400-driver.c_msp_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@msp_debug = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"msp_write(0x%x, 0x%x, 0x%x)\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"I/O error #%d (write 0x%02x/0x%02x)\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"resetting chip, sound will go off.\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @msp_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @msp_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca [5 x i32], align 16
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #3
store i32 %1, ptr %5, align 16, !tbaa !5
%6 = ashr i32 %2, 8
%7 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 1
store i32 %6, ptr %7, align 4, !tbaa !5
%8 = and i32 %2, 255
%9 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 2
store i32 %8, ptr %9, align 8, !tbaa !5
%10 = ashr i32 %3, 8
%11 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 3
store i32 %10, ptr %11, align 4, !tbaa !5
%12 = and i32 %3, 255
%13 = getelementptr inbounds [5 x i32], ptr %5, i64 0, i64 4
store i32 %12, ptr %13, align 16, !tbaa !5
%14 = load i32, ptr @msp_debug, align 4, !tbaa !5
%15 = tail call i32 @dev_dbg_lvl(ptr noundef %0, i32 noundef 3, i32 noundef %14, ptr noundef nonnull @.str, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3
%16 = call i32 @i2c_master_send(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 5) #3
%17 = icmp eq i32 %16, 5
br i1 %17, label %36, label %18
18: ; preds = %4
%19 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 0, i32 noundef %1, i32 noundef %2) #3
%20 = call i32 @msecs_to_jiffies(i32 noundef 10) #3
%21 = call i32 @schedule_timeout_interruptible(i32 noundef %20) #3
%22 = call i32 @i2c_master_send(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 5) #3
%23 = icmp eq i32 %22, 5
br i1 %23, label %36, label %24
24: ; preds = %18
%25 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 1, i32 noundef %1, i32 noundef %2) #3
%26 = call i32 @msecs_to_jiffies(i32 noundef 10) #3
%27 = call i32 @schedule_timeout_interruptible(i32 noundef %26) #3
%28 = call i32 @i2c_master_send(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 5) #3
%29 = icmp eq i32 %28, 5
br i1 %29, label %36, label %30
30: ; preds = %24
%31 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 2, i32 noundef %1, i32 noundef %2) #3
%32 = call i32 @msecs_to_jiffies(i32 noundef 10) #3
%33 = call i32 @schedule_timeout_interruptible(i32 noundef %32) #3
%34 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.2) #3
%35 = call i32 @msp_reset(ptr noundef %0) #3
br label %36
36: ; preds = %4, %18, %24, %30
%37 = phi i32 [ -1, %30 ], [ 0, %24 ], [ 0, %18 ], [ 0, %4 ]
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #3
ret i32 %37
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @dev_dbg_lvl(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @i2c_master_send(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dev_warn(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @schedule_timeout_interruptible(i32 noundef) local_unnamed_addr #2
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #2
declare i32 @msp_reset(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_msp3400-driver.c_msp_write.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_msp3400-driver.c_msp_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@msp_debug = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"msp_write(0x%x, 0x%x, 0x%x)\0A\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"I/O error #%d (write 0x%02x/0x%02x)\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"resetting chip, sound will go off.\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @msp_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -1, 1) i32 @msp_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca [5 x i32], align 4
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #3
store i32 %1, ptr %5, align 4, !tbaa !6
%6 = ashr i32 %2, 8
%7 = getelementptr inbounds i8, ptr %5, i64 4
store i32 %6, ptr %7, align 4, !tbaa !6
%8 = and i32 %2, 255
%9 = getelementptr inbounds i8, ptr %5, i64 8
store i32 %8, ptr %9, align 4, !tbaa !6
%10 = ashr i32 %3, 8
%11 = getelementptr inbounds i8, ptr %5, i64 12
store i32 %10, ptr %11, align 4, !tbaa !6
%12 = and i32 %3, 255
%13 = getelementptr inbounds i8, ptr %5, i64 16
store i32 %12, ptr %13, align 4, !tbaa !6
%14 = load i32, ptr @msp_debug, align 4, !tbaa !6
%15 = tail call i32 @dev_dbg_lvl(ptr noundef %0, i32 noundef 3, i32 noundef %14, ptr noundef nonnull @.str, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3
%16 = call i32 @i2c_master_send(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 5) #3
%17 = icmp eq i32 %16, 5
br i1 %17, label %36, label %18
18: ; preds = %4
%19 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 0, i32 noundef %1, i32 noundef %2) #3
%20 = call i32 @msecs_to_jiffies(i32 noundef 10) #3
%21 = call i32 @schedule_timeout_interruptible(i32 noundef %20) #3
%22 = call i32 @i2c_master_send(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 5) #3
%23 = icmp eq i32 %22, 5
br i1 %23, label %36, label %24
24: ; preds = %18
%25 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 1, i32 noundef %1, i32 noundef %2) #3
%26 = call i32 @msecs_to_jiffies(i32 noundef 10) #3
%27 = call i32 @schedule_timeout_interruptible(i32 noundef %26) #3
%28 = call i32 @i2c_master_send(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 5) #3
%29 = icmp eq i32 %28, 5
br i1 %29, label %36, label %30
30: ; preds = %24
%31 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 2, i32 noundef %1, i32 noundef %2) #3
%32 = call i32 @msecs_to_jiffies(i32 noundef 10) #3
%33 = call i32 @schedule_timeout_interruptible(i32 noundef %32) #3
%34 = call i32 (ptr, ptr, ...) @dev_warn(ptr noundef %0, ptr noundef nonnull @.str.2) #3
%35 = call i32 @msp_reset(ptr noundef %0) #3
br label %36
36: ; preds = %4, %18, %24, %30
%37 = phi i32 [ -1, %30 ], [ 0, %24 ], [ 0, %18 ], [ 0, %4 ]
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #3
ret i32 %37
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @dev_dbg_lvl(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @i2c_master_send(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @dev_warn(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @schedule_timeout_interruptible(i32 noundef) local_unnamed_addr #2
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #2
declare i32 @msp_reset(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_media_i2c_extr_msp3400-driver.c_msp_write |
; ModuleID = 'AnghaBench/esp-idf/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/extr_mcpwm_brushed_dc_control_example.c_app_main.c'
source_filename = "AnghaBench/esp-idf/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/extr_mcpwm_brushed_dc_control_example.c_app_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Testing brushed motor...\0A\00", align 1
@mcpwm_example_brushed_motor_control = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [36 x i8] c"mcpwm_examlpe_brushed_motor_control\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @app_main() local_unnamed_addr #0 {
%1 = tail call i32 @printf(ptr noundef nonnull @.str) #2
%2 = load i32, ptr @mcpwm_example_brushed_motor_control, align 4, !tbaa !5
%3 = tail call i32 @xTaskCreate(i32 noundef %2, ptr noundef nonnull @.str.1, i32 noundef 4096, ptr noundef null, i32 noundef 5, ptr noundef null) #2
ret void
}
declare i32 @printf(ptr noundef) local_unnamed_addr #1
declare i32 @xTaskCreate(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/esp-idf/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/extr_mcpwm_brushed_dc_control_example.c_app_main.c'
source_filename = "AnghaBench/esp-idf/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/extr_mcpwm_brushed_dc_control_example.c_app_main.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 [26 x i8] c"Testing brushed motor...\0A\00", align 1
@mcpwm_example_brushed_motor_control = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [36 x i8] c"mcpwm_examlpe_brushed_motor_control\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @app_main() local_unnamed_addr #0 {
%1 = tail call i32 @printf(ptr noundef nonnull @.str) #2
%2 = load i32, ptr @mcpwm_example_brushed_motor_control, align 4, !tbaa !6
%3 = tail call i32 @xTaskCreate(i32 noundef %2, ptr noundef nonnull @.str.1, i32 noundef 4096, ptr noundef null, i32 noundef 5, ptr noundef null) #2
ret void
}
declare i32 @printf(ptr noundef) local_unnamed_addr #1
declare i32 @xTaskCreate(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| esp-idf_examples_peripherals_mcpwm_mcpwm_brushed_dc_control_main_extr_mcpwm_brushed_dc_control_example.c_app_main |
; ModuleID = 'AnghaBench/linux/sound/isa/extr_es18xx.c_snd_es18xx_free.c'
source_filename = "AnghaBench/linux/sound/isa/extr_es18xx.c_snd_es18xx_free.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.snd_es18xx = type { i64, i64, i64, i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_es18xx_free], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @snd_es18xx_free(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = getelementptr inbounds %struct.snd_es18xx, ptr %2, i64 0, i32 5
%4 = load i32, ptr %3, align 8, !tbaa !10
%5 = tail call i32 @release_and_free_resource(i32 noundef %4) #2
%6 = getelementptr inbounds %struct.snd_es18xx, ptr %2, i64 0, i32 4
%7 = load i32, ptr %6, align 4, !tbaa !14
%8 = tail call i32 @release_and_free_resource(i32 noundef %7) #2
%9 = getelementptr inbounds %struct.snd_es18xx, ptr %2, i64 0, i32 3
%10 = load i32, ptr %9, align 8, !tbaa !15
%11 = tail call i32 @release_and_free_resource(i32 noundef %10) #2
%12 = load i64, ptr %2, align 8, !tbaa !16
%13 = icmp sgt i64 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %1
%15 = tail call i32 @free_irq(i64 noundef %12, ptr noundef nonnull %0) #2
br label %16
16: ; preds = %14, %1
%17 = getelementptr inbounds %struct.snd_es18xx, ptr %2, i64 0, i32 1
%18 = load i64, ptr %17, align 8, !tbaa !17
%19 = icmp sgt i64 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = tail call i32 @disable_dma(i64 noundef %18) #2
%22 = load i64, ptr %17, align 8, !tbaa !17
%23 = tail call i32 @free_dma(i64 noundef %22) #2
br label %24
24: ; preds = %20, %16
%25 = getelementptr inbounds %struct.snd_es18xx, ptr %2, i64 0, i32 2
%26 = load i64, ptr %25, align 8, !tbaa !18
%27 = icmp sgt i64 %26, -1
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = load i64, ptr %17, align 8, !tbaa !17
%30 = icmp eq i64 %29, %26
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = tail call i32 @disable_dma(i64 noundef %26) #2
%33 = load i64, ptr %25, align 8, !tbaa !18
%34 = tail call i32 @free_dma(i64 noundef %33) #2
br label %35
35: ; preds = %31, %28, %24
ret i32 0
}
declare i32 @release_and_free_resource(i32 noundef) local_unnamed_addr #1
declare i32 @free_irq(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @disable_dma(i64 noundef) local_unnamed_addr #1
declare i32 @free_dma(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"snd_card", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 32}
!11 = !{!"snd_es18xx", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !13, i64 28}
!15 = !{!11, !13, i64 24}
!16 = !{!11, !12, i64 0}
!17 = !{!11, !12, i64 8}
!18 = !{!11, !12, i64 16}
| ; ModuleID = 'AnghaBench/linux/sound/isa/extr_es18xx.c_snd_es18xx_free.c'
source_filename = "AnghaBench/linux/sound/isa/extr_es18xx.c_snd_es18xx_free.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_es18xx_free], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @snd_es18xx_free(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = getelementptr inbounds i8, ptr %2, i64 32
%4 = load i32, ptr %3, align 8, !tbaa !11
%5 = tail call i32 @release_and_free_resource(i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %2, i64 28
%7 = load i32, ptr %6, align 4, !tbaa !15
%8 = tail call i32 @release_and_free_resource(i32 noundef %7) #2
%9 = getelementptr inbounds i8, ptr %2, i64 24
%10 = load i32, ptr %9, align 8, !tbaa !16
%11 = tail call i32 @release_and_free_resource(i32 noundef %10) #2
%12 = load i64, ptr %2, align 8, !tbaa !17
%13 = icmp sgt i64 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %1
%15 = tail call i32 @free_irq(i64 noundef %12, ptr noundef nonnull %0) #2
br label %16
16: ; preds = %14, %1
%17 = getelementptr inbounds i8, ptr %2, i64 8
%18 = load i64, ptr %17, align 8, !tbaa !18
%19 = icmp sgt i64 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = tail call i32 @disable_dma(i64 noundef %18) #2
%22 = load i64, ptr %17, align 8, !tbaa !18
%23 = tail call i32 @free_dma(i64 noundef %22) #2
br label %24
24: ; preds = %20, %16
%25 = getelementptr inbounds i8, ptr %2, i64 16
%26 = load i64, ptr %25, align 8, !tbaa !19
%27 = icmp sgt i64 %26, -1
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = load i64, ptr %17, align 8, !tbaa !18
%30 = icmp eq i64 %29, %26
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = tail call i32 @disable_dma(i64 noundef %26) #2
%33 = load i64, ptr %25, align 8, !tbaa !19
%34 = tail call i32 @free_dma(i64 noundef %33) #2
br label %35
35: ; preds = %31, %28, %24
ret i32 0
}
declare i32 @release_and_free_resource(i32 noundef) local_unnamed_addr #1
declare i32 @free_irq(i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @disable_dma(i64 noundef) local_unnamed_addr #1
declare i32 @free_dma(i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"snd_card", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 32}
!12 = !{!"snd_es18xx", !13, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 28, !14, i64 32}
!13 = !{!"long", !9, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!12, !14, i64 28}
!16 = !{!12, !14, i64 24}
!17 = !{!12, !13, i64 0}
!18 = !{!12, !13, i64 8}
!19 = !{!12, !13, i64 16}
| linux_sound_isa_extr_es18xx.c_snd_es18xx_free |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/davicom/extr_dm9000.c_dm9000_ioctl.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/davicom/extr_dm9000.c_dm9000_ioctl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dm9000_ioctl], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @dm9000_ioctl(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @to_dm9000_board(ptr noundef %0) #2
%5 = tail call i32 @netif_running(ptr noundef %0) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, ptr @EINVAL, align 4, !tbaa !5
%9 = sub nsw i32 0, %8
br label %13
10: ; preds = %3
%11 = tail call i32 @if_mii(ptr noundef %1) #2
%12 = tail call i32 @generic_mii_ioctl(ptr noundef %4, i32 noundef %11, i32 noundef %2, ptr noundef null) #2
br label %13
13: ; preds = %10, %7
%14 = phi i32 [ %12, %10 ], [ %9, %7 ]
ret i32 %14
}
declare ptr @to_dm9000_board(ptr noundef) local_unnamed_addr #1
declare i32 @netif_running(ptr noundef) local_unnamed_addr #1
declare i32 @generic_mii_ioctl(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @if_mii(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/davicom/extr_dm9000.c_dm9000_ioctl.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/davicom/extr_dm9000.c_dm9000_ioctl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dm9000_ioctl], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @dm9000_ioctl(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = tail call ptr @to_dm9000_board(ptr noundef %0) #2
%5 = tail call i32 @netif_running(ptr noundef %0) #2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, ptr @EINVAL, align 4, !tbaa !6
%9 = sub nsw i32 0, %8
br label %13
10: ; preds = %3
%11 = tail call i32 @if_mii(ptr noundef %1) #2
%12 = tail call i32 @generic_mii_ioctl(ptr noundef %4, i32 noundef %11, i32 noundef %2, ptr noundef null) #2
br label %13
13: ; preds = %10, %7
%14 = phi i32 [ %12, %10 ], [ %9, %7 ]
ret i32 %14
}
declare ptr @to_dm9000_board(ptr noundef) local_unnamed_addr #1
declare i32 @netif_running(ptr noundef) local_unnamed_addr #1
declare i32 @generic_mii_ioctl(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @if_mii(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_net_ethernet_davicom_extr_dm9000.c_dm9000_ioctl |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/core/extr_net-sysfs.c_register_queue_kobjects.c'
source_filename = "AnghaBench/fastsocket/kernel/net/core/extr_net-sysfs.c_register_queue_kobjects.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @register_queue_kobjects], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @register_queue_kobjects(ptr noundef %0) #0 {
%2 = tail call ptr @netdev_extended(ptr noundef %0) #2
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = tail call i32 @net_rx_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = tail call i32 @netdev_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %3) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %6, %1
%10 = phi i32 [ %4, %1 ], [ %7, %6 ]
%11 = tail call i32 @netdev_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #2
%12 = tail call i32 @net_rx_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #2
br label %13
13: ; preds = %6, %9
%14 = phi i32 [ %10, %9 ], [ 0, %6 ]
ret i32 %14
}
declare ptr @netdev_extended(ptr noundef) local_unnamed_addr #1
declare i32 @net_rx_queue_update_kobjects(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @netdev_queue_update_kobjects(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"net_device", !7, i64 0, !10, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_3__", !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/core/extr_net-sysfs.c_register_queue_kobjects.c'
source_filename = "AnghaBench/fastsocket/kernel/net/core/extr_net-sysfs.c_register_queue_kobjects.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @register_queue_kobjects], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @register_queue_kobjects(ptr noundef %0) #0 {
%2 = tail call ptr @netdev_extended(ptr noundef %0) #2
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = tail call i32 @net_rx_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = tail call i32 @netdev_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %3) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %6, %1
%10 = phi i32 [ %4, %1 ], [ %7, %6 ]
%11 = tail call i32 @netdev_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #2
%12 = tail call i32 @net_rx_queue_update_kobjects(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0) #2
br label %13
13: ; preds = %6, %9
%14 = phi i32 [ %10, %9 ], [ 0, %6 ]
ret i32 %14
}
declare ptr @netdev_extended(ptr noundef) local_unnamed_addr #1
declare i32 @net_rx_queue_update_kobjects(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @netdev_queue_update_kobjects(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"net_device", !8, i64 0, !11, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_3__", !8, i64 0}
| fastsocket_kernel_net_core_extr_net-sysfs.c_register_queue_kobjects |
; ModuleID = 'AnghaBench/freebsd/sys/dev/fdt/extr_simplebus.c_simplebus_print_child.c'
source_filename = "AnghaBench/freebsd/sys/dev/fdt/extr_simplebus.c_simplebus_print_child.c"
target datalayout = "e-m:e-p270:32:32-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 [10 x i8] c" disabled\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @simplebus_print_child], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @simplebus_print_child(i32 noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @bus_print_child_header(i32 noundef %0, i32 noundef %1) #2
%4 = tail call i32 @device_get_ivars(i32 noundef %1) #2
%5 = tail call i64 @simplebus_print_res(i32 noundef %4) #2
%6 = trunc i64 %5 to i32
%7 = add i32 %3, %6
%8 = tail call i32 @ofw_bus_status_okay(i32 noundef %1) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i64 @printf(ptr noundef nonnull @.str) #2
%12 = trunc i64 %11 to i32
%13 = add i32 %7, %12
br label %14
14: ; preds = %10, %2
%15 = phi i32 [ %7, %2 ], [ %13, %10 ]
%16 = tail call i64 @bus_print_child_footer(i32 noundef %0, i32 noundef %1) #2
%17 = trunc i64 %16 to i32
%18 = add i32 %15, %17
ret i32 %18
}
declare i32 @bus_print_child_header(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @simplebus_print_res(i32 noundef) local_unnamed_addr #1
declare i32 @device_get_ivars(i32 noundef) local_unnamed_addr #1
declare i32 @ofw_bus_status_okay(i32 noundef) local_unnamed_addr #1
declare i64 @printf(ptr noundef) local_unnamed_addr #1
declare i64 @bus_print_child_footer(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/freebsd/sys/dev/fdt/extr_simplebus.c_simplebus_print_child.c'
source_filename = "AnghaBench/freebsd/sys/dev/fdt/extr_simplebus.c_simplebus_print_child.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 [10 x i8] c" disabled\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @simplebus_print_child], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @simplebus_print_child(i32 noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @bus_print_child_header(i32 noundef %0, i32 noundef %1) #2
%4 = tail call i32 @device_get_ivars(i32 noundef %1) #2
%5 = tail call i64 @simplebus_print_res(i32 noundef %4) #2
%6 = trunc i64 %5 to i32
%7 = add i32 %3, %6
%8 = tail call i32 @ofw_bus_status_okay(i32 noundef %1) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i64 @printf(ptr noundef nonnull @.str) #2
%12 = trunc i64 %11 to i32
%13 = add i32 %7, %12
br label %14
14: ; preds = %10, %2
%15 = phi i32 [ %7, %2 ], [ %13, %10 ]
%16 = tail call i64 @bus_print_child_footer(i32 noundef %0, i32 noundef %1) #2
%17 = trunc i64 %16 to i32
%18 = add i32 %15, %17
ret i32 %18
}
declare i32 @bus_print_child_header(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @simplebus_print_res(i32 noundef) local_unnamed_addr #1
declare i32 @device_get_ivars(i32 noundef) local_unnamed_addr #1
declare i32 @ofw_bus_status_okay(i32 noundef) local_unnamed_addr #1
declare i64 @printf(ptr noundef) local_unnamed_addr #1
declare i64 @bus_print_child_footer(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)"}
| freebsd_sys_dev_fdt_extr_simplebus.c_simplebus_print_child |
; ModuleID = 'AnghaBench/curl/lib/extr_smtp.c_smtp_continue_auth.c'
source_filename = "AnghaBench/curl/lib/extr_smtp.c_smtp_continue_auth.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @smtp_continue_auth], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @smtp_continue_auth(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @Curl_pp_sendf(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef %1) #2
ret i32 %3
}
declare i32 @Curl_pp_sendf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/curl/lib/extr_smtp.c_smtp_continue_auth.c'
source_filename = "AnghaBench/curl/lib/extr_smtp.c_smtp_continue_auth.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @smtp_continue_auth], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @smtp_continue_auth(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @Curl_pp_sendf(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef %1) #2
ret i32 %3
}
declare i32 @Curl_pp_sendf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| curl_lib_extr_smtp.c_smtp_continue_auth |
; ModuleID = 'AnghaBench/glfw/tests/extr_triangle-vulkan.c_main.c'
source_filename = "AnghaBench/glfw/tests/extr_triangle-vulkan.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.demo = type { i32 }
@validation_error = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.demo, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%4 = call i32 @demo_init(ptr noundef nonnull %3, i32 noundef %0, ptr noundef %1) #3
%5 = call i32 @demo_create_window(ptr noundef nonnull %3) #3
%6 = call i32 @demo_init_vk_swapchain(ptr noundef nonnull %3) #3
%7 = call i32 @demo_prepare(ptr noundef nonnull %3) #3
%8 = call i32 @demo_run(ptr noundef nonnull %3) #3
%9 = call i32 @demo_cleanup(ptr noundef nonnull %3) #3
%10 = load i32, ptr @validation_error, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %10
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @demo_init(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @demo_create_window(ptr noundef) local_unnamed_addr #2
declare i32 @demo_init_vk_swapchain(ptr noundef) local_unnamed_addr #2
declare i32 @demo_prepare(ptr noundef) local_unnamed_addr #2
declare i32 @demo_run(ptr noundef) local_unnamed_addr #2
declare i32 @demo_cleanup(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/glfw/tests/extr_triangle-vulkan.c_main.c'
source_filename = "AnghaBench/glfw/tests/extr_triangle-vulkan.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.demo = type { i32 }
@validation_error = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.demo, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%4 = call i32 @demo_init(ptr noundef nonnull %3, i32 noundef %0, ptr noundef %1) #3
%5 = call i32 @demo_create_window(ptr noundef nonnull %3) #3
%6 = call i32 @demo_init_vk_swapchain(ptr noundef nonnull %3) #3
%7 = call i32 @demo_prepare(ptr noundef nonnull %3) #3
%8 = call i32 @demo_run(ptr noundef nonnull %3) #3
%9 = call i32 @demo_cleanup(ptr noundef nonnull %3) #3
%10 = load i32, ptr @validation_error, align 4, !tbaa !6
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret i32 %10
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @demo_init(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @demo_create_window(ptr noundef) local_unnamed_addr #2
declare i32 @demo_init_vk_swapchain(ptr noundef) local_unnamed_addr #2
declare i32 @demo_prepare(ptr noundef) local_unnamed_addr #2
declare i32 @demo_run(ptr noundef) local_unnamed_addr #2
declare i32 @demo_cleanup(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| glfw_tests_extr_triangle-vulkan.c_main |
; ModuleID = 'AnghaBench/linux/drivers/input/extr_mousedev.c_mousedev_touchpad_touch.c'
source_filename = "AnghaBench/linux/drivers/input/extr_mousedev.c_mousedev_touchpad_touch.c"
target datalayout = "e-m:e-p270:32:32-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.mousedev = type { i64, i64, i64, i64, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
@jiffies = dso_local local_unnamed_addr global i64 0, align 8
@tap_time = dso_local local_unnamed_addr global i32 0, align 4
@mousedev_mix = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @mousedev_touchpad_touch], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mousedev_touchpad_touch(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = icmp eq i64 %4, 0
br i1 %3, label %6, label %31
6: ; preds = %2
br i1 %5, label %30, label %7
7: ; preds = %6
%8 = load i64, ptr @jiffies, align 8, !tbaa !12
%9 = load i32, ptr @tap_time, align 4, !tbaa !13
%10 = tail call i64 @msecs_to_jiffies(i32 noundef %9) #3
%11 = add nsw i64 %10, %4
%12 = tail call i64 @time_before(i64 noundef %8, i64 noundef %11) #3
%13 = icmp eq i64 %12, 0
br i1 %13, label %30, label %14
14: ; preds = %7
%15 = getelementptr inbounds %struct.mousedev, ptr %0, i64 0, i32 4
%16 = tail call i32 @set_bit(i32 noundef 0, ptr noundef nonnull %15) #3
%17 = load ptr, ptr @mousedev_mix, align 8, !tbaa !14
%18 = getelementptr inbounds %struct.mousedev, ptr %17, i64 0, i32 4
%19 = tail call i32 @set_bit(i32 noundef 0, ptr noundef nonnull %18) #3
%20 = load ptr, ptr @mousedev_mix, align 8, !tbaa !14
%21 = getelementptr inbounds %struct.mousedev, ptr %20, i64 0, i32 4
%22 = tail call i32 @mousedev_notify_readers(ptr noundef nonnull %0, ptr noundef nonnull %21) #3
%23 = load ptr, ptr @mousedev_mix, align 8, !tbaa !14
%24 = getelementptr inbounds %struct.mousedev, ptr %23, i64 0, i32 4
%25 = tail call i32 @mousedev_notify_readers(ptr noundef %23, ptr noundef nonnull %24) #3
%26 = tail call i32 @clear_bit(i32 noundef 0, ptr noundef nonnull %15) #3
%27 = load ptr, ptr @mousedev_mix, align 8, !tbaa !14
%28 = getelementptr inbounds %struct.mousedev, ptr %27, i64 0, i32 4
%29 = tail call i32 @clear_bit(i32 noundef 0, ptr noundef nonnull %28) #3
br label %30
30: ; preds = %14, %7, %6
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
br label %34
31: ; preds = %2
br i1 %5, label %32, label %34
32: ; preds = %31
%33 = load i64, ptr @jiffies, align 8, !tbaa !12
store i64 %33, ptr %0, align 8, !tbaa !5
br label %34
34: ; preds = %31, %32, %30
ret void
}
declare i64 @time_before(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i32 @set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mousedev_notify_readers(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"mousedev", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/input/extr_mousedev.c_mousedev_touchpad_touch.c'
source_filename = "AnghaBench/linux/drivers/input/extr_mousedev.c_mousedev_touchpad_touch.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@jiffies = common local_unnamed_addr global i64 0, align 8
@tap_time = common local_unnamed_addr global i32 0, align 4
@mousedev_mix = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @mousedev_touchpad_touch], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mousedev_touchpad_touch(ptr noundef %0, i32 noundef %1) #0 {
%3 = icmp eq i32 %1, 0
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = icmp eq i64 %4, 0
br i1 %3, label %6, label %31
6: ; preds = %2
br i1 %5, label %30, label %7
7: ; preds = %6
%8 = load i64, ptr @jiffies, align 8, !tbaa !13
%9 = load i32, ptr @tap_time, align 4, !tbaa !14
%10 = tail call i64 @msecs_to_jiffies(i32 noundef %9) #3
%11 = add nsw i64 %10, %4
%12 = tail call i64 @time_before(i64 noundef %8, i64 noundef %11) #3
%13 = icmp eq i64 %12, 0
br i1 %13, label %30, label %14
14: ; preds = %7
%15 = getelementptr inbounds i8, ptr %0, i64 32
%16 = tail call i32 @set_bit(i32 noundef 0, ptr noundef nonnull %15) #3
%17 = load ptr, ptr @mousedev_mix, align 8, !tbaa !15
%18 = getelementptr inbounds i8, ptr %17, i64 32
%19 = tail call i32 @set_bit(i32 noundef 0, ptr noundef nonnull %18) #3
%20 = load ptr, ptr @mousedev_mix, align 8, !tbaa !15
%21 = getelementptr inbounds i8, ptr %20, i64 32
%22 = tail call i32 @mousedev_notify_readers(ptr noundef nonnull %0, ptr noundef nonnull %21) #3
%23 = load ptr, ptr @mousedev_mix, align 8, !tbaa !15
%24 = getelementptr inbounds i8, ptr %23, i64 32
%25 = tail call i32 @mousedev_notify_readers(ptr noundef %23, ptr noundef nonnull %24) #3
%26 = tail call i32 @clear_bit(i32 noundef 0, ptr noundef nonnull %15) #3
%27 = load ptr, ptr @mousedev_mix, align 8, !tbaa !15
%28 = getelementptr inbounds i8, ptr %27, i64 32
%29 = tail call i32 @clear_bit(i32 noundef 0, ptr noundef nonnull %28) #3
br label %30
30: ; preds = %14, %7, %6
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 0, i64 32, i1 false)
br label %34
31: ; preds = %2
br i1 %5, label %32, label %34
32: ; preds = %31
%33 = load i64, ptr @jiffies, align 8, !tbaa !13
store i64 %33, ptr %0, align 8, !tbaa !6
br label %34
34: ; preds = %31, %32, %30
ret void
}
declare i64 @time_before(i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare i32 @set_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @mousedev_notify_readers(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @clear_bit(i32 noundef, ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"mousedev", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !11, i64 32}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !9, i64 0}
| linux_drivers_input_extr_mousedev.c_mousedev_touchpad_touch |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_config_xps.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_config_xps.c"
target datalayout = "e-m:e-p270:32:32-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.hns3_nic_priv = type { i32, i32, ptr }
%struct.hns3_enet_tqp_vector = type { i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { ptr }
%struct.hns3_enet_ring = type { ptr, ptr }
@.str = private unnamed_addr constant [25 x i8] c"set xps queue failed: %d\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @hns3_config_xps], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @hns3_config_xps(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %36
4: ; preds = %1
%5 = getelementptr inbounds %struct.hns3_nic_priv, ptr %0, i64 0, i32 2
%6 = getelementptr inbounds %struct.hns3_nic_priv, ptr %0, i64 0, i32 1
br label %7
7: ; preds = %4, %31
%8 = phi i32 [ %2, %4 ], [ %32, %31 ]
%9 = phi i64 [ 0, %4 ], [ %33, %31 ]
%10 = load ptr, ptr %5, align 8, !tbaa !11
%11 = getelementptr inbounds %struct.hns3_enet_tqp_vector, ptr %10, i64 %9
%12 = getelementptr inbounds %struct.hns3_enet_tqp_vector, ptr %10, i64 %9, i32 1
%13 = load ptr, ptr %12, align 8, !tbaa !12
%14 = icmp eq ptr %13, null
br i1 %14, label %31, label %15
15: ; preds = %7, %26
%16 = phi ptr [ %27, %26 ], [ %13, %7 ]
%17 = load i32, ptr %6, align 4, !tbaa !13
%18 = getelementptr inbounds %struct.hns3_enet_ring, ptr %16, i64 0, i32 1
%19 = load ptr, ptr %18, align 8, !tbaa !14
%20 = load i32, ptr %19, align 4, !tbaa !16
%21 = tail call i32 @netif_set_xps_queue(i32 noundef %17, ptr noundef %11, i32 noundef %20) #2
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %15
%24 = load i32, ptr %6, align 4, !tbaa !13
%25 = tail call i32 @netdev_warn(i32 noundef %24, ptr noundef nonnull @.str, i32 noundef %21) #2
br label %26
26: ; preds = %23, %15
%27 = load ptr, ptr %16, align 8, !tbaa !12
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %15, !llvm.loop !18
29: ; preds = %26
%30 = load i32, ptr %0, align 8, !tbaa !5
br label %31
31: ; preds = %29, %7
%32 = phi i32 [ %30, %29 ], [ %8, %7 ]
%33 = add nuw nsw i64 %9, 1
%34 = sext i32 %32 to i64
%35 = icmp slt i64 %33, %34
br i1 %35, label %7, label %36, !llvm.loop !20
36: ; preds = %31, %1
ret void
}
declare i32 @netif_set_xps_queue(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @netdev_warn(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 = !{!"hns3_nic_priv", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 4}
!14 = !{!15, !10, i64 8}
!15 = !{!"hns3_enet_ring", !10, i64 0, !10, i64 8}
!16 = !{!17, !7, i64 0}
!17 = !{!"TYPE_3__", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_config_xps.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/extr_hns3_enet.c_hns3_config_xps.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.hns3_enet_tqp_vector = type { i32, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { ptr }
@.str = private unnamed_addr constant [25 x i8] c"set xps queue failed: %d\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @hns3_config_xps], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @hns3_config_xps(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %36
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = getelementptr inbounds i8, ptr %0, i64 4
br label %7
7: ; preds = %4, %31
%8 = phi i32 [ %2, %4 ], [ %32, %31 ]
%9 = phi i64 [ 0, %4 ], [ %33, %31 ]
%10 = load ptr, ptr %5, align 8, !tbaa !12
%11 = getelementptr inbounds %struct.hns3_enet_tqp_vector, ptr %10, i64 %9
%12 = getelementptr inbounds i8, ptr %11, i64 8
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = icmp eq ptr %13, null
br i1 %14, label %31, label %15
15: ; preds = %7, %26
%16 = phi ptr [ %27, %26 ], [ %13, %7 ]
%17 = load i32, ptr %6, align 4, !tbaa !14
%18 = getelementptr inbounds i8, ptr %16, i64 8
%19 = load ptr, ptr %18, align 8, !tbaa !15
%20 = load i32, ptr %19, align 4, !tbaa !17
%21 = tail call i32 @netif_set_xps_queue(i32 noundef %17, ptr noundef %11, i32 noundef %20) #2
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %15
%24 = load i32, ptr %6, align 4, !tbaa !14
%25 = tail call i32 @netdev_warn(i32 noundef %24, ptr noundef nonnull @.str, i32 noundef %21) #2
br label %26
26: ; preds = %23, %15
%27 = load ptr, ptr %16, align 8, !tbaa !13
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %15, !llvm.loop !19
29: ; preds = %26
%30 = load i32, ptr %0, align 8, !tbaa !6
br label %31
31: ; preds = %29, %7
%32 = phi i32 [ %30, %29 ], [ %8, %7 ]
%33 = add nuw nsw i64 %9, 1
%34 = sext i32 %32 to i64
%35 = icmp slt i64 %33, %34
br i1 %35, label %7, label %36, !llvm.loop !21
36: ; preds = %31, %1
ret void
}
declare i32 @netif_set_xps_queue(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @netdev_warn(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 = !{!"hns3_nic_priv", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !8, i64 4}
!15 = !{!16, !11, i64 8}
!16 = !{!"hns3_enet_ring", !11, i64 0, !11, i64 8}
!17 = !{!18, !8, i64 0}
!18 = !{!"TYPE_3__", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
| linux_drivers_net_ethernet_hisilicon_hns3_extr_hns3_enet.c_hns3_config_xps |
; ModuleID = 'AnghaBench/linux/drivers/tee/optee/extr_rpc.c_handle_rpc_func_cmd_wq.c'
source_filename = "AnghaBench/linux/drivers/tee/optee/extr_rpc.c_handle_rpc_func_cmd_wq.c"
target datalayout = "e-m:e-p270:32:32-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.optee_msg_arg = type { i32, i32, ptr }
%struct.TYPE_6__ = type { i32, %struct.TYPE_5__ }
%struct.TYPE_5__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32, i32 }
@OPTEE_MSG_ATTR_TYPE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@OPTEE_MSG_ATTR_TYPE_VALUE_INPUT = dso_local local_unnamed_addr global i32 0, align 4
@TEEC_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@TEEC_ERROR_BAD_PARAMETERS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @handle_rpc_func_cmd_wq], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @handle_rpc_func_cmd_wq(ptr noundef %0, ptr nocapture noundef %1) #0 {
%3 = load i32, ptr %1, align 8, !tbaa !5
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %24
5: ; preds = %2
%6 = getelementptr inbounds %struct.optee_msg_arg, ptr %1, i64 0, i32 2
%7 = load ptr, ptr %6, align 8, !tbaa !11
%8 = load i32, ptr %7, align 4, !tbaa !12
%9 = load i32, ptr @OPTEE_MSG_ATTR_TYPE_MASK, align 4, !tbaa !16
%10 = and i32 %9, %8
%11 = load i32, ptr @OPTEE_MSG_ATTR_TYPE_VALUE_INPUT, align 4, !tbaa !16
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %5
%14 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i64 0, i32 1
%15 = load i32, ptr %14, align 4, !tbaa !17
switch i32 %15, label %24 [
i32 129, label %16
i32 128, label %20
]
16: ; preds = %13
%17 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i64 0, i32 1, i32 0, i32 1
%18 = load i32, ptr %17, align 4, !tbaa !18
%19 = tail call i32 @wq_sleep(ptr noundef %0, i32 noundef %18) #2
br label %24
20: ; preds = %13
%21 = getelementptr inbounds %struct.TYPE_6__, ptr %7, i64 0, i32 1, i32 0, i32 1
%22 = load i32, ptr %21, align 4, !tbaa !18
%23 = tail call i32 @wq_wakeup(ptr noundef %0, i32 noundef %22) #2
br label %24
24: ; preds = %2, %5, %13, %16, %20
%25 = phi ptr [ @TEEC_SUCCESS, %20 ], [ @TEEC_SUCCESS, %16 ], [ @TEEC_ERROR_BAD_PARAMETERS, %13 ], [ @TEEC_ERROR_BAD_PARAMETERS, %5 ], [ @TEEC_ERROR_BAD_PARAMETERS, %2 ]
%26 = load i32, ptr %25, align 4, !tbaa !16
%27 = getelementptr inbounds %struct.optee_msg_arg, ptr %1, i64 0, i32 1
store i32 %26, ptr %27, align 4, !tbaa !19
ret void
}
declare i32 @wq_sleep(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wq_wakeup(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 = !{!"optee_msg_arg", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_6__", !7, i64 0, !14, i64 4}
!14 = !{!"TYPE_5__", !15, i64 0}
!15 = !{!"TYPE_4__", !7, i64 0, !7, i64 4}
!16 = !{!7, !7, i64 0}
!17 = !{!13, !7, i64 4}
!18 = !{!13, !7, i64 8}
!19 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/tee/optee/extr_rpc.c_handle_rpc_func_cmd_wq.c'
source_filename = "AnghaBench/linux/drivers/tee/optee/extr_rpc.c_handle_rpc_func_cmd_wq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OPTEE_MSG_ATTR_TYPE_MASK = common local_unnamed_addr global i32 0, align 4
@OPTEE_MSG_ATTR_TYPE_VALUE_INPUT = common local_unnamed_addr global i32 0, align 4
@TEEC_SUCCESS = common local_unnamed_addr global i32 0, align 4
@TEEC_ERROR_BAD_PARAMETERS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @handle_rpc_func_cmd_wq], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @handle_rpc_func_cmd_wq(ptr noundef %0, ptr nocapture noundef %1) #0 {
%3 = load i32, ptr %1, align 8, !tbaa !6
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %24
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %1, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = load i32, ptr %7, align 4, !tbaa !13
%9 = load i32, ptr @OPTEE_MSG_ATTR_TYPE_MASK, align 4, !tbaa !17
%10 = and i32 %9, %8
%11 = load i32, ptr @OPTEE_MSG_ATTR_TYPE_VALUE_INPUT, align 4, !tbaa !17
%12 = icmp eq i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %5
%14 = getelementptr inbounds i8, ptr %7, i64 4
%15 = load i32, ptr %14, align 4, !tbaa !18
switch i32 %15, label %24 [
i32 129, label %16
i32 128, label %20
]
16: ; preds = %13
%17 = getelementptr inbounds i8, ptr %7, i64 8
%18 = load i32, ptr %17, align 4, !tbaa !19
%19 = tail call i32 @wq_sleep(ptr noundef %0, i32 noundef %18) #2
br label %24
20: ; preds = %13
%21 = getelementptr inbounds i8, ptr %7, i64 8
%22 = load i32, ptr %21, align 4, !tbaa !19
%23 = tail call i32 @wq_wakeup(ptr noundef %0, i32 noundef %22) #2
br label %24
24: ; preds = %2, %5, %13, %16, %20
%25 = phi ptr [ @TEEC_SUCCESS, %20 ], [ @TEEC_SUCCESS, %16 ], [ @TEEC_ERROR_BAD_PARAMETERS, %13 ], [ @TEEC_ERROR_BAD_PARAMETERS, %5 ], [ @TEEC_ERROR_BAD_PARAMETERS, %2 ]
%26 = load i32, ptr %25, align 4, !tbaa !17
%27 = getelementptr inbounds i8, ptr %1, i64 4
store i32 %26, ptr %27, align 4, !tbaa !20
ret void
}
declare i32 @wq_sleep(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @wq_wakeup(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 = !{!"optee_msg_arg", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_6__", !8, i64 0, !15, i64 4}
!15 = !{!"TYPE_5__", !16, i64 0}
!16 = !{!"TYPE_4__", !8, i64 0, !8, i64 4}
!17 = !{!8, !8, i64 0}
!18 = !{!14, !8, i64 4}
!19 = !{!14, !8, i64 8}
!20 = !{!7, !8, i64 4}
| linux_drivers_tee_optee_extr_rpc.c_handle_rpc_func_cmd_wq |
; ModuleID = 'AnghaBench/linux/sound/pcmcia/pdaudiocf/extr_pdaudiocf_pcm.c_pdacf_pcm_capture_close.c'
source_filename = "AnghaBench/linux/sound/pcmcia/pdaudiocf/extr_pdaudiocf_pcm.c_pdacf_pcm_capture_close.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @pdacf_pcm_capture_close], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @pdacf_pcm_capture_close(ptr noundef %0) #0 {
%2 = tail call ptr @snd_pcm_substream_chip(ptr noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = load i32, ptr @EINVAL, align 4, !tbaa !5
%6 = sub nsw i32 0, %5
br label %9
7: ; preds = %1
%8 = tail call i32 @pdacf_reinit(ptr noundef nonnull %2, i32 noundef 0) #2
store ptr null, ptr %2, align 8, !tbaa !9
br label %9
9: ; preds = %7, %4
%10 = phi i32 [ 0, %7 ], [ %6, %4 ]
ret i32 %10
}
declare ptr @snd_pcm_substream_chip(ptr noundef) local_unnamed_addr #1
declare i32 @pdacf_reinit(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"snd_pdacf", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/pcmcia/pdaudiocf/extr_pdaudiocf_pcm.c_pdacf_pcm_capture_close.c'
source_filename = "AnghaBench/linux/sound/pcmcia/pdaudiocf/extr_pdaudiocf_pcm.c_pdacf_pcm_capture_close.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @pdacf_pcm_capture_close], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @pdacf_pcm_capture_close(ptr noundef %0) #0 {
%2 = tail call ptr @snd_pcm_substream_chip(ptr noundef %0) #2
%3 = icmp eq ptr %2, null
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = load i32, ptr @EINVAL, align 4, !tbaa !6
%6 = sub nsw i32 0, %5
br label %9
7: ; preds = %1
%8 = tail call i32 @pdacf_reinit(ptr noundef nonnull %2, i32 noundef 0) #2
store ptr null, ptr %2, align 8, !tbaa !10
br label %9
9: ; preds = %7, %4
%10 = phi i32 [ 0, %7 ], [ %6, %4 ]
ret i32 %10
}
declare ptr @snd_pcm_substream_chip(ptr noundef) local_unnamed_addr #1
declare i32 @pdacf_reinit(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"snd_pdacf", !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
| linux_sound_pcmcia_pdaudiocf_extr_pdaudiocf_pcm.c_pdacf_pcm_capture_close |
; ModuleID = 'AnghaBench/linux/tools/perf/ui/extr_setup.c_setup_gtk_browser.c'
source_filename = "AnghaBench/linux/tools/perf/ui/extr_setup.c_setup_gtk_browser.c"
target datalayout = "e-m:e-p270:32:32-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 @setup_gtk_browser], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @setup_gtk_browser() #0 {
ret i32 -1
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/tools/perf/ui/extr_setup.c_setup_gtk_browser.c'
source_filename = "AnghaBench/linux/tools/perf/ui/extr_setup.c_setup_gtk_browser.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 @setup_gtk_browser], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @setup_gtk_browser() #0 {
ret i32 -1
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_tools_perf_ui_extr_setup.c_setup_gtk_browser |
; ModuleID = 'AnghaBench/FFmpeg/libavutil/tests/extr_error.c_main.c'
source_filename = "AnghaBench/FFmpeg/libavutil/tests/extr_error.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.error_entry = type { i32, ptr }
@error_entries = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [13 x i8] c"%d: %s [%s]\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%d: %s\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
%1 = load ptr, ptr @error_entries, align 8, !tbaa !5
%2 = tail call i32 @FF_ARRAY_ELEMS(ptr noundef %1) #3
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %18
4: ; preds = %0, %4
%5 = phi i64 [ %13, %4 ], [ 0, %0 ]
%6 = load ptr, ptr @error_entries, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.error_entry, ptr %6, i64 %5
%8 = load i32, ptr %7, align 8, !tbaa !9
%9 = tail call ptr @av_err2str(i32 noundef %8) #3
%10 = getelementptr inbounds %struct.error_entry, ptr %6, i64 %5, i32 1
%11 = load ptr, ptr %10, align 8, !tbaa !12
%12 = tail call i32 (ptr, i32, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %8, ptr noundef %9, ptr noundef %11)
%13 = add nuw nsw i64 %5, 1
%14 = load ptr, ptr @error_entries, align 8, !tbaa !5
%15 = tail call i32 @FF_ARRAY_ELEMS(ptr noundef %14) #3
%16 = sext i32 %15 to i64
%17 = icmp slt i64 %13, %16
br i1 %17, label %4, label %18, !llvm.loop !13
18: ; preds = %4, %0
br label %19
19: ; preds = %18, %19
%20 = phi i32 [ %24, %19 ], [ 0, %18 ]
%21 = sub nsw i32 0, %20
%22 = tail call ptr @av_err2str(i32 noundef %21) #3
%23 = tail call i32 (ptr, i32, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %21, ptr noundef %22)
%24 = add nuw nsw i32 %20, 1
%25 = icmp eq i32 %24, 256
br i1 %25, label %26, label %19, !llvm.loop !15
26: ; preds = %19
ret i32 0
}
declare i32 @FF_ARRAY_ELEMS(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare ptr @av_err2str(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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", 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 = !{!"error_entry", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
| ; ModuleID = 'AnghaBench/FFmpeg/libavutil/tests/extr_error.c_main.c'
source_filename = "AnghaBench/FFmpeg/libavutil/tests/extr_error.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.error_entry = type { i32, ptr }
@error_entries = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [13 x i8] c"%d: %s [%s]\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%d: %s\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @main() local_unnamed_addr #0 {
%1 = load ptr, ptr @error_entries, align 8, !tbaa !6
%2 = tail call i32 @FF_ARRAY_ELEMS(ptr noundef %1) #3
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %18
4: ; preds = %0, %4
%5 = phi i64 [ %13, %4 ], [ 0, %0 ]
%6 = load ptr, ptr @error_entries, align 8, !tbaa !6
%7 = getelementptr inbounds %struct.error_entry, ptr %6, i64 %5
%8 = load i32, ptr %7, align 8, !tbaa !10
%9 = tail call ptr @av_err2str(i32 noundef %8) #3
%10 = getelementptr inbounds i8, ptr %7, i64 8
%11 = load ptr, ptr %10, align 8, !tbaa !13
%12 = tail call i32 (ptr, i32, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %8, ptr noundef %9, ptr noundef %11)
%13 = add nuw nsw i64 %5, 1
%14 = load ptr, ptr @error_entries, align 8, !tbaa !6
%15 = tail call i32 @FF_ARRAY_ELEMS(ptr noundef %14) #3
%16 = sext i32 %15 to i64
%17 = icmp slt i64 %13, %16
br i1 %17, label %4, label %18, !llvm.loop !14
18: ; preds = %4, %0
br label %19
19: ; preds = %18, %19
%20 = phi i32 [ %24, %19 ], [ 0, %18 ]
%21 = sub nsw i32 0, %20
%22 = tail call ptr @av_err2str(i32 noundef %21) #3
%23 = tail call i32 (ptr, i32, ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %21, ptr noundef %22)
%24 = add nuw nsw i32 %20, 1
%25 = icmp eq i32 %24, 256
br i1 %25, label %26, label %19, !llvm.loop !16
26: ; preds = %19
ret i32 0
}
declare i32 @FF_ARRAY_ELEMS(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare ptr @av_err2str(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 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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 = !{!"error_entry", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
| FFmpeg_libavutil_tests_extr_error.c_main |
; ModuleID = 'AnghaBench/reactos/modules/rosapps/applications/sysutils/utils/pice/module/extr_utils.c_IsRangeValid.c'
source_filename = "AnghaBench/reactos/modules/rosapps/applications/sysutils/utils/pice/module/extr_utils.c_IsRangeValid.c"
target datalayout = "e-m:e-p270:32:32-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
@PAGE_SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @IsRangeValid(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @_PAGE_SIZE, align 4, !tbaa !5
%4 = add i32 %1, -1
%5 = add i32 %4, %3
%6 = ashr i32 %5, 12
%7 = load i32, ptr @PAGE_SHIFT, align 4, !tbaa !5
%8 = ashr i32 %0, %7
%9 = icmp sgt i32 %6, 0
br i1 %9, label %13, label %20
10: ; preds = %13
%11 = add nuw nsw i32 %14, 1
%12 = icmp eq i32 %11, %6
br i1 %12, label %20, label %13, !llvm.loop !9
13: ; preds = %2, %10
%14 = phi i32 [ %11, %10 ], [ 0, %2 ]
%15 = add nsw i32 %14, %8
%16 = load i32, ptr @_PAGE_SIZE, align 4, !tbaa !5
%17 = mul nsw i32 %16, %15
%18 = tail call i32 @IsAddressValid(i32 noundef %17) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %10
20: ; preds = %13, %10, %2
%21 = phi ptr [ @TRUE, %2 ], [ @TRUE, %10 ], [ @FALSE, %13 ]
%22 = load i32, ptr %21, align 4, !tbaa !5
ret i32 %22
}
declare i32 @IsAddressValid(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/reactos/modules/rosapps/applications/sysutils/utils/pice/module/extr_utils.c_IsRangeValid.c'
source_filename = "AnghaBench/reactos/modules/rosapps/applications/sysutils/utils/pice/module/extr_utils.c_IsRangeValid.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
@PAGE_SHIFT = common local_unnamed_addr global i32 0, align 4
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @IsRangeValid(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @_PAGE_SIZE, align 4, !tbaa !6
%4 = add i32 %1, -1
%5 = add i32 %4, %3
%6 = ashr i32 %5, 12
%7 = load i32, ptr @PAGE_SHIFT, align 4, !tbaa !6
%8 = ashr i32 %0, %7
%9 = icmp sgt i32 %6, 0
br i1 %9, label %13, label %20
10: ; preds = %13
%11 = add nuw nsw i32 %14, 1
%12 = icmp eq i32 %11, %6
br i1 %12, label %20, label %13, !llvm.loop !10
13: ; preds = %2, %10
%14 = phi i32 [ %11, %10 ], [ 0, %2 ]
%15 = add nsw i32 %14, %8
%16 = load i32, ptr @_PAGE_SIZE, align 4, !tbaa !6
%17 = mul nsw i32 %16, %15
%18 = tail call i32 @IsAddressValid(i32 noundef %17) #2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %10
20: ; preds = %13, %10, %2
%21 = phi ptr [ @TRUE, %2 ], [ @TRUE, %10 ], [ @FALSE, %13 ]
%22 = load i32, ptr %21, align 4, !tbaa !6
ret i32 %22
}
declare i32 @IsAddressValid(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
| reactos_modules_rosapps_applications_sysutils_utils_pice_module_extr_utils.c_IsRangeValid |
; ModuleID = 'AnghaBench/freebsd/lib/libc/net/extr_getaddrinfo.c_explore_null.c'
source_filename = "AnghaBench/freebsd/lib/libc/net/extr_getaddrinfo.c_explore_null.c"
target datalayout = "e-m:e-p270:32:32-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.addrinfo = type { i64, i32 }
%struct.afd = type { i32, i32 }
@PF_LOCAL = dso_local local_unnamed_addr global i64 0, align 8
@SOCK_DGRAM = dso_local local_unnamed_addr global i32 0, align 4
@SOCK_CLOEXEC = dso_local local_unnamed_addr global i32 0, align 4
@errno = dso_local local_unnamed_addr global i64 0, align 8
@EMFILE = dso_local local_unnamed_addr global i64 0, align 8
@AI_PASSIVE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @explore_null], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @explore_null(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) #0 {
store ptr null, ptr %2, align 8, !tbaa !5
%4 = load i64, ptr %0, align 8, !tbaa !9
%5 = load i64, ptr @PF_LOCAL, align 8, !tbaa !13
%6 = icmp eq i64 %4, %5
br i1 %6, label %34, label %7
7: ; preds = %3
%8 = load i32, ptr @SOCK_DGRAM, align 4, !tbaa !14
%9 = load i32, ptr @SOCK_CLOEXEC, align 4, !tbaa !14
%10 = or i32 %9, %8
%11 = tail call i32 @_socket(i64 noundef %4, i32 noundef %10, i32 noundef 0) #2
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %7
%14 = load i64, ptr @errno, align 8, !tbaa !13
%15 = load i64, ptr @EMFILE, align 8, !tbaa !13
%16 = icmp eq i64 %14, %15
br i1 %16, label %19, label %34
17: ; preds = %7
%18 = tail call i32 @_close(i32 noundef %11) #2
br label %19
19: ; preds = %13, %17
%20 = load i64, ptr %0, align 8, !tbaa !9
%21 = tail call ptr @find_afd(i64 noundef %20) #2
%22 = icmp eq ptr %21, null
br i1 %22, label %34, label %23
23: ; preds = %19
%24 = getelementptr inbounds %struct.addrinfo, ptr %0, i64 0, i32 1
%25 = load i32, ptr %24, align 8, !tbaa !15
%26 = load i32, ptr @AI_PASSIVE, align 4, !tbaa !14
%27 = and i32 %26, %25
%28 = icmp eq i32 %27, 0
%29 = getelementptr inbounds %struct.afd, ptr %21, i64 0, i32 1
%30 = select i1 %28, ptr %21, ptr %29
%31 = load i32, ptr %30, align 4, !tbaa !14
%32 = tail call i32 @GET_AI(ptr noundef null, ptr noundef nonnull %21, i32 noundef %31) #2
%33 = tail call i32 @GET_PORT(ptr noundef null, ptr noundef %1) #2
store ptr null, ptr %2, align 8, !tbaa !5
br label %34
34: ; preds = %19, %13, %3, %23
ret i32 0
}
declare i32 @_socket(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @_close(i32 noundef) local_unnamed_addr #1
declare ptr @find_afd(i64 noundef) local_unnamed_addr #1
declare i32 @GET_AI(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @GET_PORT(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"addrinfo", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 8}
| ; ModuleID = 'AnghaBench/freebsd/lib/libc/net/extr_getaddrinfo.c_explore_null.c'
source_filename = "AnghaBench/freebsd/lib/libc/net/extr_getaddrinfo.c_explore_null.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PF_LOCAL = common local_unnamed_addr global i64 0, align 8
@SOCK_DGRAM = common local_unnamed_addr global i32 0, align 4
@SOCK_CLOEXEC = common local_unnamed_addr global i32 0, align 4
@errno = common local_unnamed_addr global i64 0, align 8
@EMFILE = common local_unnamed_addr global i64 0, align 8
@AI_PASSIVE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @explore_null], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @explore_null(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) #0 {
store ptr null, ptr %2, align 8, !tbaa !6
%4 = load i64, ptr %0, align 8, !tbaa !10
%5 = load i64, ptr @PF_LOCAL, align 8, !tbaa !14
%6 = icmp eq i64 %4, %5
br i1 %6, label %34, label %7
7: ; preds = %3
%8 = load i32, ptr @SOCK_DGRAM, align 4, !tbaa !15
%9 = load i32, ptr @SOCK_CLOEXEC, align 4, !tbaa !15
%10 = or i32 %9, %8
%11 = tail call i32 @_socket(i64 noundef %4, i32 noundef %10, i32 noundef 0) #2
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %7
%14 = load i64, ptr @errno, align 8, !tbaa !14
%15 = load i64, ptr @EMFILE, align 8, !tbaa !14
%16 = icmp eq i64 %14, %15
br i1 %16, label %19, label %34
17: ; preds = %7
%18 = tail call i32 @_close(i32 noundef %11) #2
br label %19
19: ; preds = %13, %17
%20 = load i64, ptr %0, align 8, !tbaa !10
%21 = tail call ptr @find_afd(i64 noundef %20) #2
%22 = icmp eq ptr %21, null
br i1 %22, label %34, label %23
23: ; preds = %19
%24 = getelementptr inbounds i8, ptr %0, i64 8
%25 = load i32, ptr %24, align 8, !tbaa !16
%26 = load i32, ptr @AI_PASSIVE, align 4, !tbaa !15
%27 = and i32 %26, %25
%28 = icmp eq i32 %27, 0
%29 = select i1 %28, i64 0, i64 4
%30 = getelementptr inbounds i8, ptr %21, i64 %29
%31 = load i32, ptr %30, align 4, !tbaa !15
%32 = tail call i32 @GET_AI(ptr noundef null, ptr noundef nonnull %21, i32 noundef %31) #2
%33 = tail call i32 @GET_PORT(ptr noundef null, ptr noundef %1) #2
store ptr null, ptr %2, align 8, !tbaa !6
br label %34
34: ; preds = %19, %13, %3, %23
ret i32 0
}
declare i32 @_socket(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @_close(i32 noundef) local_unnamed_addr #1
declare ptr @find_afd(i64 noundef) local_unnamed_addr #1
declare i32 @GET_AI(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @GET_PORT(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"addrinfo", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!11, !13, i64 8}
| freebsd_lib_libc_net_extr_getaddrinfo.c_explore_null |
; ModuleID = 'AnghaBench/openssl/providers/common/extr_provider_err.c_ERR_load_PROV_strings.c'
source_filename = "AnghaBench/openssl/providers/common/extr_provider_err.c_ERR_load_PROV_strings.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PROV_str_reasons = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @ERR_load_PROV_strings() local_unnamed_addr #0 {
%1 = load ptr, ptr @PROV_str_reasons, align 8, !tbaa !5
%2 = load i32, ptr %1, align 4, !tbaa !9
%3 = tail call ptr @ERR_reason_error_string(i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load ptr, ptr @PROV_str_reasons, align 8, !tbaa !5
%7 = tail call i32 @ERR_load_strings_const(ptr noundef %6) #2
br label %8
8: ; preds = %5, %0
ret i32 1
}
declare ptr @ERR_reason_error_string(i32 noundef) local_unnamed_addr #1
declare i32 @ERR_load_strings_const(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0}
!11 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/openssl/providers/common/extr_provider_err.c_ERR_load_PROV_strings.c'
source_filename = "AnghaBench/openssl/providers/common/extr_provider_err.c_ERR_load_PROV_strings.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PROV_str_reasons = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @ERR_load_PROV_strings() local_unnamed_addr #0 {
%1 = load ptr, ptr @PROV_str_reasons, align 8, !tbaa !6
%2 = load i32, ptr %1, align 4, !tbaa !10
%3 = tail call ptr @ERR_reason_error_string(i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load ptr, ptr @PROV_str_reasons, align 8, !tbaa !6
%7 = tail call i32 @ERR_load_strings_const(ptr noundef %6) #2
br label %8
8: ; preds = %5, %0
ret i32 1
}
declare ptr @ERR_reason_error_string(i32 noundef) local_unnamed_addr #1
declare i32 @ERR_load_strings_const(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| openssl_providers_common_extr_provider_err.c_ERR_load_PROV_strings |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/s390/net/extr_qeth_core_main.c_qeth_core_driver_group.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/s390/net/extr_qeth_core_main.c_qeth_core_driver_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"
@qeth_ccw_driver = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @qeth_core_driver_group], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @qeth_core_driver_group(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = tail call i32 @ccwgroup_create_from_string(ptr noundef %1, i64 noundef %2, ptr noundef nonnull @qeth_ccw_driver, i32 noundef 3, ptr noundef %0) #2
ret i32 %4
}
declare i32 @ccwgroup_create_from_string(ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/s390/net/extr_qeth_core_main.c_qeth_core_driver_group.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/s390/net/extr_qeth_core_main.c_qeth_core_driver_group.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@qeth_ccw_driver = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @qeth_core_driver_group], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @qeth_core_driver_group(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = tail call i32 @ccwgroup_create_from_string(ptr noundef %1, i64 noundef %2, ptr noundef nonnull @qeth_ccw_driver, i32 noundef 3, ptr noundef %0) #2
ret i32 %4
}
declare i32 @ccwgroup_create_from_string(ptr noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_drivers_s390_net_extr_qeth_core_main.c_qeth_core_driver_group |
; ModuleID = 'AnghaBench/linux/drivers/hwtracing/coresight/extr_coresight-etm4x-sysfs.c_addr_context_show.c'
source_filename = "AnghaBench/linux/drivers/hwtracing/coresight/extr_coresight-etm4x-sysfs.c_addr_context_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"
%struct.etmv4_drvdata = type { i32, %struct.etmv4_config }
%struct.etmv4_config = type { i64, ptr }
@PAGE_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%#lx\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @addr_context_show], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @addr_context_show(ptr nocapture noundef readonly %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = load i32, ptr %0, align 4, !tbaa !5
%5 = tail call ptr @dev_get_drvdata(i32 noundef %4) #2
%6 = getelementptr inbounds %struct.etmv4_drvdata, ptr %5, i64 0, i32 1
%7 = tail call i32 @spin_lock(ptr noundef %5) #2
%8 = load i64, ptr %6, align 8, !tbaa !10
%9 = getelementptr inbounds %struct.etmv4_drvdata, ptr %5, i64 0, i32 1, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !14
%11 = getelementptr inbounds i32, ptr %10, i64 %8
%12 = load i32, ptr %11, align 4, !tbaa !15
%13 = tail call i64 @BMVAL(i32 noundef %12, i32 noundef 4, i32 noundef 6) #2
%14 = tail call i32 @spin_unlock(ptr noundef %5) #2
%15 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !15
%16 = tail call i32 @scnprintf(ptr noundef %2, i32 noundef %15, ptr noundef nonnull @.str, i64 noundef %13) #2
ret i32 %16
}
declare ptr @dev_get_drvdata(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i64 @BMVAL(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @scnprintf(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 = !{!"device", !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 = !{!"etmv4_config", !12, i64 0, !13, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !13, i64 8}
!15 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/hwtracing/coresight/extr_coresight-etm4x-sysfs.c_addr_context_show.c'
source_filename = "AnghaBench/linux/drivers/hwtracing/coresight/extr_coresight-etm4x-sysfs.c_addr_context_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 [6 x i8] c"%#lx\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @addr_context_show], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @addr_context_show(ptr nocapture noundef readonly %0, ptr nocapture readnone %1, ptr noundef %2) #0 {
%4 = load i32, ptr %0, align 4, !tbaa !6
%5 = tail call ptr @dev_get_drvdata(i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %5, i64 8
%7 = tail call i32 @spin_lock(ptr noundef %5) #2
%8 = load i64, ptr %6, align 8, !tbaa !11
%9 = getelementptr inbounds i8, ptr %5, i64 16
%10 = load ptr, ptr %9, align 8, !tbaa !15
%11 = getelementptr inbounds i32, ptr %10, i64 %8
%12 = load i32, ptr %11, align 4, !tbaa !16
%13 = tail call i64 @BMVAL(i32 noundef %12, i32 noundef 4, i32 noundef 6) #2
%14 = tail call i32 @spin_unlock(ptr noundef %5) #2
%15 = load i32, ptr @PAGE_SIZE, align 4, !tbaa !16
%16 = tail call i32 @scnprintf(ptr noundef %2, i32 noundef %15, ptr noundef nonnull @.str, i64 noundef %13) #2
ret i32 %16
}
declare ptr @dev_get_drvdata(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i64 @BMVAL(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @scnprintf(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 = !{!"device", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"etmv4_config", !13, i64 0, !14, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!12, !14, i64 8}
!16 = !{!8, !8, i64 0}
| linux_drivers_hwtracing_coresight_extr_coresight-etm4x-sysfs.c_addr_context_show |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/btrfs/extr_extent_io.c_clean_io_failure.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/btrfs/extr_extent_io.c_clean_io_failure.c"
target datalayout = "e-m:e-p270:32:32-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__, i32 }
%struct.TYPE_9__ = type { i32 }
%struct.io_failure_record = type { i64, i32, i32, i32, i64, i32 }
@EXTENT_DIRTY = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"clean_io_failure: freeing dummy error at %llu\0A\00", align 1
@EXTENT_LOCKED = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @clean_io_failure], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @clean_io_failure(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = load ptr, ptr %1, align 8, !tbaa !5
%6 = load ptr, ptr %5, align 8, !tbaa !10
store i64 0, ptr %3, align 8, !tbaa !12
%7 = tail call ptr @BTRFS_I(ptr noundef %6) #3
%8 = getelementptr inbounds %struct.TYPE_10__, ptr %7, i64 0, i32 2
%9 = load i32, ptr @EXTENT_DIRTY, align 4, !tbaa !14
%10 = call i32 @count_range_bits(ptr noundef nonnull %8, ptr noundef nonnull %3, i64 noundef -1, i32 noundef 1, i32 noundef %9, i32 noundef 0) #3
%11 = icmp eq i32 %10, 0
br i1 %11, label %68, label %12
12: ; preds = %2
%13 = call ptr @BTRFS_I(ptr noundef %6) #3
%14 = getelementptr inbounds %struct.TYPE_10__, ptr %13, i64 0, i32 2
%15 = call i32 @get_state_private(ptr noundef nonnull %14, i64 noundef %0, ptr noundef nonnull %4) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %68
17: ; preds = %12
%18 = load i64, ptr %4, align 8, !tbaa !12
%19 = inttoptr i64 %18 to ptr
%20 = getelementptr inbounds %struct.io_failure_record, ptr %19, i64 0, i32 5
%21 = load i32, ptr %20, align 8, !tbaa !16
%22 = icmp eq i32 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @BUG_ON(i32 noundef %23) #3
%25 = getelementptr inbounds %struct.io_failure_record, ptr %19, i64 0, i32 4
%26 = load i64, ptr %25, align 8, !tbaa !18
%27 = icmp eq i64 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %17
%29 = load i64, ptr %19, align 8, !tbaa !19
%30 = call i32 @pr_debug(ptr noundef nonnull @.str, i64 noundef %29) #3
br label %65
31: ; preds = %17
%32 = call ptr @BTRFS_I(ptr noundef %6) #3
%33 = getelementptr inbounds %struct.TYPE_10__, ptr %32, i64 0, i32 1
%34 = call i32 @spin_lock(ptr noundef nonnull %33) #3
%35 = call ptr @BTRFS_I(ptr noundef %6) #3
%36 = getelementptr inbounds %struct.TYPE_10__, ptr %35, i64 0, i32 1
%37 = load i64, ptr %19, align 8, !tbaa !19
%38 = load i32, ptr @EXTENT_LOCKED, align 4, !tbaa !14
%39 = call ptr @find_first_extent_bit_state(ptr noundef nonnull %36, i64 noundef %37, i32 noundef %38) #3
%40 = call ptr @BTRFS_I(ptr noundef %6) #3
%41 = getelementptr inbounds %struct.TYPE_10__, ptr %40, i64 0, i32 1
%42 = call i32 @spin_unlock(ptr noundef nonnull %41) #3
%43 = icmp eq ptr %39, null
br i1 %43, label %65, label %44
44: ; preds = %31
%45 = load i64, ptr %39, align 8, !tbaa !20
%46 = load i64, ptr %19, align 8, !tbaa !19
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %65
48: ; preds = %44
%49 = call ptr @BTRFS_I(ptr noundef %6) #3
%50 = load ptr, ptr %49, align 8, !tbaa !22
%51 = load ptr, ptr %50, align 8, !tbaa !25
%52 = getelementptr inbounds %struct.io_failure_record, ptr %19, i64 0, i32 2
%53 = load i32, ptr %52, align 4, !tbaa !27
%54 = getelementptr inbounds %struct.io_failure_record, ptr %19, i64 0, i32 3
%55 = load i32, ptr %54, align 8, !tbaa !28
%56 = call i32 @btrfs_num_copies(ptr noundef %51, i32 noundef %53, i32 noundef %55) #3
%57 = icmp sgt i32 %56, 1
br i1 %57, label %58, label %65
58: ; preds = %48
%59 = load i32, ptr %54, align 8, !tbaa !28
%60 = load i32, ptr %52, align 4, !tbaa !27
%61 = getelementptr inbounds %struct.io_failure_record, ptr %19, i64 0, i32 1
%62 = load i32, ptr %61, align 8, !tbaa !29
%63 = call i32 @repair_io_failure(ptr noundef %51, i64 noundef %0, i32 noundef %59, i32 noundef %60, ptr noundef nonnull %1, i32 noundef %62) #3
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %31, %44, %48, %28, %58
%66 = phi i32 [ 1, %58 ], [ 0, %31 ], [ 0, %44 ], [ 0, %48 ], [ 1, %28 ]
%67 = call i32 @free_io_failure(ptr noundef %6, ptr noundef nonnull %19, i32 noundef %66) #3
br label %68
68: ; preds = %58, %65, %12, %2
%69 = phi i32 [ 0, %2 ], [ 0, %12 ], [ %63, %58 ], [ %67, %65 ]
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 %69
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @count_range_bits(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @BTRFS_I(ptr noundef) local_unnamed_addr #2
declare i32 @get_state_private(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #2
declare i32 @pr_debug(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #2
declare ptr @find_first_extent_bit_state(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #2
declare i32 @btrfs_num_copies(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @repair_io_failure(ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free_io_failure(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, !7, i64 0}
!6 = !{!"page", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_6__", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !15, i64 32}
!17 = !{!"io_failure_record", !13, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !13, i64 24, !15, i64 32}
!18 = !{!17, !13, i64 24}
!19 = !{!17, !13, i64 0}
!20 = !{!21, !13, i64 0}
!21 = !{!"extent_state", !13, i64 0}
!22 = !{!23, !7, i64 0}
!23 = !{!"TYPE_10__", !7, i64 0, !24, i64 8, !15, i64 12}
!24 = !{!"TYPE_9__", !15, i64 0}
!25 = !{!26, !7, i64 0}
!26 = !{!"TYPE_8__", !7, i64 0}
!27 = !{!17, !15, i64 12}
!28 = !{!17, !15, i64 16}
!29 = !{!17, !15, i64 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/btrfs/extr_extent_io.c_clean_io_failure.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/btrfs/extr_extent_io.c_clean_io_failure.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EXTENT_DIRTY = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"clean_io_failure: freeing dummy error at %llu\0A\00", align 1
@EXTENT_LOCKED = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @clean_io_failure], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @clean_io_failure(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
%5 = load ptr, ptr %1, align 8, !tbaa !6
%6 = load ptr, ptr %5, align 8, !tbaa !11
store i64 0, ptr %3, align 8, !tbaa !13
%7 = tail call ptr @BTRFS_I(ptr noundef %6) #3
%8 = getelementptr inbounds i8, ptr %7, i64 12
%9 = load i32, ptr @EXTENT_DIRTY, align 4, !tbaa !15
%10 = call i32 @count_range_bits(ptr noundef nonnull %8, ptr noundef nonnull %3, i64 noundef -1, i32 noundef 1, i32 noundef %9, i32 noundef 0) #3
%11 = icmp eq i32 %10, 0
br i1 %11, label %68, label %12
12: ; preds = %2
%13 = call ptr @BTRFS_I(ptr noundef %6) #3
%14 = getelementptr inbounds i8, ptr %13, i64 12
%15 = call i32 @get_state_private(ptr noundef nonnull %14, i64 noundef %0, ptr noundef nonnull %4) #3
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %68
17: ; preds = %12
%18 = load i64, ptr %4, align 8, !tbaa !13
%19 = inttoptr i64 %18 to ptr
%20 = getelementptr inbounds i8, ptr %19, i64 32
%21 = load i32, ptr %20, align 8, !tbaa !17
%22 = icmp eq i32 %21, 0
%23 = zext i1 %22 to i32
%24 = call i32 @BUG_ON(i32 noundef %23) #3
%25 = getelementptr inbounds i8, ptr %19, i64 24
%26 = load i64, ptr %25, align 8, !tbaa !19
%27 = icmp eq i64 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %17
%29 = load i64, ptr %19, align 8, !tbaa !20
%30 = call i32 @pr_debug(ptr noundef nonnull @.str, i64 noundef %29) #3
br label %65
31: ; preds = %17
%32 = call ptr @BTRFS_I(ptr noundef %6) #3
%33 = getelementptr inbounds i8, ptr %32, i64 8
%34 = call i32 @spin_lock(ptr noundef nonnull %33) #3
%35 = call ptr @BTRFS_I(ptr noundef %6) #3
%36 = getelementptr inbounds i8, ptr %35, i64 8
%37 = load i64, ptr %19, align 8, !tbaa !20
%38 = load i32, ptr @EXTENT_LOCKED, align 4, !tbaa !15
%39 = call ptr @find_first_extent_bit_state(ptr noundef nonnull %36, i64 noundef %37, i32 noundef %38) #3
%40 = call ptr @BTRFS_I(ptr noundef %6) #3
%41 = getelementptr inbounds i8, ptr %40, i64 8
%42 = call i32 @spin_unlock(ptr noundef nonnull %41) #3
%43 = icmp eq ptr %39, null
br i1 %43, label %65, label %44
44: ; preds = %31
%45 = load i64, ptr %39, align 8, !tbaa !21
%46 = load i64, ptr %19, align 8, !tbaa !20
%47 = icmp eq i64 %45, %46
br i1 %47, label %48, label %65
48: ; preds = %44
%49 = call ptr @BTRFS_I(ptr noundef %6) #3
%50 = load ptr, ptr %49, align 8, !tbaa !23
%51 = load ptr, ptr %50, align 8, !tbaa !26
%52 = getelementptr inbounds i8, ptr %19, i64 12
%53 = load i32, ptr %52, align 4, !tbaa !28
%54 = getelementptr inbounds i8, ptr %19, i64 16
%55 = load i32, ptr %54, align 8, !tbaa !29
%56 = call i32 @btrfs_num_copies(ptr noundef %51, i32 noundef %53, i32 noundef %55) #3
%57 = icmp sgt i32 %56, 1
br i1 %57, label %58, label %65
58: ; preds = %48
%59 = load i32, ptr %54, align 8, !tbaa !29
%60 = load i32, ptr %52, align 4, !tbaa !28
%61 = getelementptr inbounds i8, ptr %19, i64 8
%62 = load i32, ptr %61, align 8, !tbaa !30
%63 = call i32 @repair_io_failure(ptr noundef %51, i64 noundef %0, i32 noundef %59, i32 noundef %60, ptr noundef nonnull %1, i32 noundef %62) #3
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %31, %44, %48, %28, %58
%66 = phi i32 [ 1, %58 ], [ 0, %31 ], [ 0, %44 ], [ 0, %48 ], [ 1, %28 ]
%67 = call i32 @free_io_failure(ptr noundef %6, ptr noundef nonnull %19, i32 noundef %66) #3
br label %68
68: ; preds = %58, %65, %12, %2
%69 = phi i32 [ 0, %2 ], [ 0, %12 ], [ %63, %58 ], [ %67, %65 ]
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 %69
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @count_range_bits(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @BTRFS_I(ptr noundef) local_unnamed_addr #2
declare i32 @get_state_private(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #2
declare i32 @pr_debug(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #2
declare ptr @find_first_extent_bit_state(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #2
declare i32 @btrfs_num_copies(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @repair_io_failure(ptr noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free_io_failure(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, !8, i64 0}
!7 = !{!"page", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_6__", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!18, !16, i64 32}
!18 = !{!"io_failure_record", !14, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !14, i64 24, !16, i64 32}
!19 = !{!18, !14, i64 24}
!20 = !{!18, !14, i64 0}
!21 = !{!22, !14, i64 0}
!22 = !{!"extent_state", !14, i64 0}
!23 = !{!24, !8, i64 0}
!24 = !{!"TYPE_10__", !8, i64 0, !25, i64 8, !16, i64 12}
!25 = !{!"TYPE_9__", !16, i64 0}
!26 = !{!27, !8, i64 0}
!27 = !{!"TYPE_8__", !8, i64 0}
!28 = !{!18, !16, i64 12}
!29 = !{!18, !16, i64 16}
!30 = !{!18, !16, i64 8}
| fastsocket_kernel_fs_btrfs_extr_extent_io.c_clean_io_failure |
; ModuleID = 'AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_snd_asihpi_proc_init.c'
source_filename = "AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_snd_asihpi_proc_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"
@.str = private unnamed_addr constant [5 x i8] c"info\00", align 1
@snd_asihpi_proc_read = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_asihpi_proc_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @snd_asihpi_proc_init(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = load i32, ptr @snd_asihpi_proc_read, align 4, !tbaa !10
%4 = tail call i32 @snd_card_ro_proc_new(i32 noundef %2, ptr noundef nonnull @.str, ptr noundef nonnull %0, i32 noundef %3) #2
ret void
}
declare i32 @snd_card_ro_proc_new(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"snd_card_asihpi", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_snd_asihpi_proc_init.c'
source_filename = "AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_snd_asihpi_proc_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 [5 x i8] c"info\00", align 1
@snd_asihpi_proc_read = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @snd_asihpi_proc_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @snd_asihpi_proc_init(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = load i32, ptr @snd_asihpi_proc_read, align 4, !tbaa !11
%4 = tail call i32 @snd_card_ro_proc_new(i32 noundef %2, ptr noundef nonnull @.str, ptr noundef nonnull %0, i32 noundef %3) #2
ret void
}
declare i32 @snd_card_ro_proc_new(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"snd_card_asihpi", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| linux_sound_pci_asihpi_extr_asihpi.c_snd_asihpi_proc_init |
; ModuleID = 'AnghaBench/linux/sound/synth/emux/extr_emux_seq.c_snd_emux_dec_count.c'
source_filename = "AnghaBench/linux/sound/synth/emux/extr_emux_seq.c_snd_emux_dec_count.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @snd_emux_dec_count(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @mutex_lock(ptr noundef %0) #2
%3 = tail call i32 @__snd_emux_dec_count(ptr noundef %0) #2
%4 = tail call i32 @mutex_unlock(ptr noundef %0) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @__snd_emux_dec_count(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)"}
| ; ModuleID = 'AnghaBench/linux/sound/synth/emux/extr_emux_seq.c_snd_emux_dec_count.c'
source_filename = "AnghaBench/linux/sound/synth/emux/extr_emux_seq.c_snd_emux_dec_count.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @snd_emux_dec_count(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @mutex_lock(ptr noundef %0) #2
%3 = tail call i32 @__snd_emux_dec_count(ptr noundef %0) #2
%4 = tail call i32 @mutex_unlock(ptr noundef %0) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @__snd_emux_dec_count(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)"}
| linux_sound_synth_emux_extr_emux_seq.c_snd_emux_dec_count |
; ModuleID = 'AnghaBench/linux/drivers/power/supply/extr_power_supply_core.c_power_supply_find_ocv2cap_table.c'
source_filename = "AnghaBench/linux/drivers/power/supply/extr_power_supply_core.c_power_supply_find_ocv2cap_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.power_supply_battery_info = type { ptr, ptr, ptr }
@INT_MAX = dso_local local_unnamed_addr global i32 0, align 4
@POWER_SUPPLY_OCV_TEMP_MAX = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @power_supply_find_ocv2cap_table(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds %struct.power_supply_battery_info, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = icmp eq ptr %6, null
br i1 %7, label %40, label %8
8: ; preds = %3
%9 = load i64, ptr @POWER_SUPPLY_OCV_TEMP_MAX, align 8, !tbaa !11
%10 = icmp eq i64 %9, 0
br i1 %10, label %34, label %11
11: ; preds = %8
%12 = load i32, ptr @INT_MAX, align 4, !tbaa !13
%13 = getelementptr inbounds %struct.power_supply_battery_info, ptr %0, i64 0, i32 2
%14 = sext i32 %1 to i64
br label %15
15: ; preds = %11, %15
%16 = phi i64 [ 0, %11 ], [ %26, %15 ]
%17 = phi i64 [ 0, %11 ], [ %27, %15 ]
%18 = phi i32 [ %12, %11 ], [ %25, %15 ]
%19 = load ptr, ptr %13, align 8, !tbaa !15
%20 = getelementptr inbounds i64, ptr %19, i64 %17
%21 = load i64, ptr %20, align 8, !tbaa !11
%22 = sub nsw i64 %21, %14
%23 = tail call i32 @abs(i64 noundef %22) #3
%24 = icmp slt i32 %23, %18
%25 = tail call i32 @llvm.smin.i32(i32 %23, i32 %18)
%26 = select i1 %24, i64 %17, i64 %16
%27 = add nuw i64 %17, 1
%28 = load i64, ptr @POWER_SUPPLY_OCV_TEMP_MAX, align 8, !tbaa !11
%29 = icmp ult i64 %27, %28
br i1 %29, label %15, label %30, !llvm.loop !16
30: ; preds = %15
%31 = load ptr, ptr %4, align 8, !tbaa !5
%32 = getelementptr inbounds ptr, ptr %31, i64 %26
%33 = load ptr, ptr %32, align 8, !tbaa !10
br label %34
34: ; preds = %30, %8
%35 = phi ptr [ %6, %8 ], [ %33, %30 ]
%36 = phi i64 [ 0, %8 ], [ %26, %30 ]
%37 = load ptr, ptr %0, align 8, !tbaa !18
%38 = getelementptr inbounds i32, ptr %37, i64 %36
%39 = load i32, ptr %38, align 4, !tbaa !13
store i32 %39, ptr %2, align 4, !tbaa !13
br label %40
40: ; preds = %3, %34
%41 = phi ptr [ %35, %34 ], [ null, %3 ]
ret ptr %41
}
declare i32 @abs(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"power_supply_battery_info", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!6, !7, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/power/supply/extr_power_supply_core.c_power_supply_find_ocv2cap_table.c'
source_filename = "AnghaBench/linux/drivers/power/supply/extr_power_supply_core.c_power_supply_find_ocv2cap_table.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@INT_MAX = common local_unnamed_addr global i32 0, align 4
@POWER_SUPPLY_OCV_TEMP_MAX = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @power_supply_find_ocv2cap_table(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #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 !11
%7 = icmp eq ptr %6, null
br i1 %7, label %40, label %8
8: ; preds = %3
%9 = load i64, ptr @POWER_SUPPLY_OCV_TEMP_MAX, align 8, !tbaa !12
%10 = icmp eq i64 %9, 0
br i1 %10, label %34, label %11
11: ; preds = %8
%12 = load i32, ptr @INT_MAX, align 4, !tbaa !14
%13 = getelementptr inbounds i8, ptr %0, i64 16
%14 = sext i32 %1 to i64
br label %15
15: ; preds = %11, %15
%16 = phi i64 [ 0, %11 ], [ %26, %15 ]
%17 = phi i64 [ 0, %11 ], [ %27, %15 ]
%18 = phi i32 [ %12, %11 ], [ %25, %15 ]
%19 = load ptr, ptr %13, align 8, !tbaa !16
%20 = getelementptr inbounds i64, ptr %19, i64 %17
%21 = load i64, ptr %20, align 8, !tbaa !12
%22 = sub nsw i64 %21, %14
%23 = tail call i32 @abs(i64 noundef %22) #3
%24 = icmp slt i32 %23, %18
%25 = tail call i32 @llvm.smin.i32(i32 %23, i32 %18)
%26 = select i1 %24, i64 %17, i64 %16
%27 = add nuw i64 %17, 1
%28 = load i64, ptr @POWER_SUPPLY_OCV_TEMP_MAX, align 8, !tbaa !12
%29 = icmp ult i64 %27, %28
br i1 %29, label %15, label %30, !llvm.loop !17
30: ; preds = %15
%31 = load ptr, ptr %4, align 8, !tbaa !6
%32 = getelementptr inbounds ptr, ptr %31, i64 %26
%33 = load ptr, ptr %32, align 8, !tbaa !11
br label %34
34: ; preds = %30, %8
%35 = phi ptr [ %6, %8 ], [ %33, %30 ]
%36 = phi i64 [ 0, %8 ], [ %26, %30 ]
%37 = load ptr, ptr %0, align 8, !tbaa !19
%38 = getelementptr inbounds i32, ptr %37, i64 %36
%39 = load i32, ptr %38, align 4, !tbaa !14
store i32 %39, ptr %2, align 4, !tbaa !14
br label %40
40: ; preds = %3, %34
%41 = phi ptr [ %35, %34 ], [ null, %3 ]
ret ptr %41
}
declare i32 @abs(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"power_supply_battery_info", !8, i64 0, !8, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !9, i64 0}
!16 = !{!7, !8, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!7, !8, i64 0}
| linux_drivers_power_supply_extr_power_supply_core.c_power_supply_find_ocv2cap_table |
; ModuleID = 'AnghaBench/freebsd/sys/dev/msk/extr_if_msk.c_mskc_shutdown.c'
source_filename = "AnghaBench/freebsd/sys/dev/msk/extr_if_msk.c_mskc_shutdown.c"
target datalayout = "e-m:e-p270:32:32-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.msk_softc = type { i32, ptr }
@IFF_DRV_RUNNING = dso_local local_unnamed_addr global i32 0, align 4
@B0_CTST = dso_local local_unnamed_addr global i32 0, align 4
@CS_RST_SET = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mskc_shutdown], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @mskc_shutdown(i32 noundef %0) #0 {
%2 = tail call ptr @device_get_softc(i32 noundef %0) #2
%3 = tail call i32 @MSK_LOCK(ptr noundef %2) #2
%4 = load i32, ptr %2, align 8, !tbaa !5
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %31
6: ; preds = %1
%7 = getelementptr inbounds %struct.msk_softc, ptr %2, i64 0, i32 1
br label %8
8: ; preds = %6, %26
%9 = phi i32 [ %4, %6 ], [ %27, %26 ]
%10 = phi i64 [ 0, %6 ], [ %28, %26 ]
%11 = load ptr, ptr %7, align 8, !tbaa !11
%12 = getelementptr inbounds ptr, ptr %11, i64 %10
%13 = load ptr, ptr %12, align 8, !tbaa !12
%14 = icmp eq ptr %13, null
br i1 %14, label %26, label %15
15: ; preds = %8
%16 = load ptr, ptr %13, align 8, !tbaa !13
%17 = icmp eq ptr %16, null
br i1 %17, label %26, label %18
18: ; preds = %15
%19 = load i32, ptr %16, align 4, !tbaa !15
%20 = load i32, ptr @IFF_DRV_RUNNING, align 4, !tbaa !17
%21 = and i32 %20, %19
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %18
%24 = tail call i32 @msk_stop(ptr noundef nonnull %13) #2
%25 = load i32, ptr %2, align 8, !tbaa !5
br label %26
26: ; preds = %8, %15, %18, %23
%27 = phi i32 [ %9, %8 ], [ %9, %15 ], [ %9, %18 ], [ %25, %23 ]
%28 = add nuw nsw i64 %10, 1
%29 = sext i32 %27 to i64
%30 = icmp slt i64 %28, %29
br i1 %30, label %8, label %31, !llvm.loop !18
31: ; preds = %26, %1
%32 = tail call i32 @MSK_UNLOCK(ptr noundef nonnull %2) #2
%33 = load i32, ptr @B0_CTST, align 4, !tbaa !17
%34 = load i32, ptr @CS_RST_SET, align 4, !tbaa !17
%35 = tail call i32 @CSR_WRITE_2(ptr noundef nonnull %2, i32 noundef %33, i32 noundef %34) #2
ret i32 0
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @MSK_LOCK(ptr noundef) local_unnamed_addr #1
declare i32 @msk_stop(ptr noundef) local_unnamed_addr #1
declare i32 @MSK_UNLOCK(ptr noundef) local_unnamed_addr #1
declare i32 @CSR_WRITE_2(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"msk_softc", !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, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"TYPE_4__", !10, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"TYPE_3__", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/msk/extr_if_msk.c_mskc_shutdown.c'
source_filename = "AnghaBench/freebsd/sys/dev/msk/extr_if_msk.c_mskc_shutdown.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IFF_DRV_RUNNING = common local_unnamed_addr global i32 0, align 4
@B0_CTST = common local_unnamed_addr global i32 0, align 4
@CS_RST_SET = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mskc_shutdown], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @mskc_shutdown(i32 noundef %0) #0 {
%2 = tail call ptr @device_get_softc(i32 noundef %0) #2
%3 = tail call i32 @MSK_LOCK(ptr noundef %2) #2
%4 = load i32, ptr %2, align 8, !tbaa !6
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %31
6: ; preds = %1
%7 = getelementptr inbounds i8, ptr %2, i64 8
br label %8
8: ; preds = %6, %26
%9 = phi i32 [ %4, %6 ], [ %27, %26 ]
%10 = phi i64 [ 0, %6 ], [ %28, %26 ]
%11 = load ptr, ptr %7, align 8, !tbaa !12
%12 = getelementptr inbounds ptr, ptr %11, i64 %10
%13 = load ptr, ptr %12, align 8, !tbaa !13
%14 = icmp eq ptr %13, null
br i1 %14, label %26, label %15
15: ; preds = %8
%16 = load ptr, ptr %13, align 8, !tbaa !14
%17 = icmp eq ptr %16, null
br i1 %17, label %26, label %18
18: ; preds = %15
%19 = load i32, ptr %16, align 4, !tbaa !16
%20 = load i32, ptr @IFF_DRV_RUNNING, align 4, !tbaa !18
%21 = and i32 %20, %19
%22 = icmp eq i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %18
%24 = tail call i32 @msk_stop(ptr noundef nonnull %13) #2
%25 = load i32, ptr %2, align 8, !tbaa !6
br label %26
26: ; preds = %8, %15, %18, %23
%27 = phi i32 [ %9, %8 ], [ %9, %15 ], [ %9, %18 ], [ %25, %23 ]
%28 = add nuw nsw i64 %10, 1
%29 = sext i32 %27 to i64
%30 = icmp slt i64 %28, %29
br i1 %30, label %8, label %31, !llvm.loop !19
31: ; preds = %26, %1
%32 = tail call i32 @MSK_UNLOCK(ptr noundef nonnull %2) #2
%33 = load i32, ptr @B0_CTST, align 4, !tbaa !18
%34 = load i32, ptr @CS_RST_SET, align 4, !tbaa !18
%35 = tail call i32 @CSR_WRITE_2(ptr noundef nonnull %2, i32 noundef %33, i32 noundef %34) #2
ret i32 0
}
declare ptr @device_get_softc(i32 noundef) local_unnamed_addr #1
declare i32 @MSK_LOCK(ptr noundef) local_unnamed_addr #1
declare i32 @msk_stop(ptr noundef) local_unnamed_addr #1
declare i32 @MSK_UNLOCK(ptr noundef) local_unnamed_addr #1
declare i32 @CSR_WRITE_2(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"msk_softc", !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, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_4__", !11, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"TYPE_3__", !8, i64 0}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_dev_msk_extr_if_msk.c_mskc_shutdown |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/qib/extr_qib_wc_x86_64.c_qib_unordered_wc.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/qib/extr_qib_wc_x86_64.c_qib_unordered_wc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64 }
@boot_cpu_data = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 8
@X86_VENDOR_AMD = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @qib_unordered_wc() local_unnamed_addr #0 {
%1 = load i64, ptr @boot_cpu_data, align 8, !tbaa !5
%2 = load i64, ptr @X86_VENDOR_AMD, align 8, !tbaa !10
%3 = icmp ne i64 %1, %2
%4 = zext i1 %3 to i32
ret i32 %4
}
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, !7, i64 0}
!6 = !{!"TYPE_2__", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/qib/extr_qib_wc_x86_64.c_qib_unordered_wc.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/qib/extr_qib_wc_x86_64.c_qib_unordered_wc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i64 }
@boot_cpu_data = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 8
@X86_VENDOR_AMD = common local_unnamed_addr global i64 0, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define range(i32 0, 2) i32 @qib_unordered_wc() local_unnamed_addr #0 {
%1 = load i64, ptr @boot_cpu_data, align 8, !tbaa !6
%2 = load i64, ptr @X86_VENDOR_AMD, align 8, !tbaa !11
%3 = icmp ne i64 %1, %2
%4 = zext i1 %3 to i32
ret i32 %4
}
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, !8, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
| fastsocket_kernel_drivers_infiniband_hw_qib_extr_qib_wc_x86_64.c_qib_unordered_wc |
; ModuleID = 'AnghaBench/git/builtin/extr_clone.c_dir_exists.c'
source_filename = "AnghaBench/git/builtin/extr_clone.c_dir_exists.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.stat = type { i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @dir_exists], section "llvm.metadata"
; Function Attrs: nofree nounwind uwtable
define internal noundef i32 @dir_exists(ptr nocapture noundef readonly %0) #0 {
%2 = alloca %struct.stat, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = call i32 @stat(ptr noundef %0, ptr noundef nonnull %2)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 %5
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/git/builtin/extr_clone.c_dir_exists.c'
source_filename = "AnghaBench/git/builtin/extr_clone.c_dir_exists.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.stat = type { i32 }
@llvm.used = appending global [1 x ptr] [ptr @dir_exists], section "llvm.metadata"
; Function Attrs: nofree nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @dir_exists(ptr nocapture noundef readonly %0) #0 {
%2 = alloca %struct.stat, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%3 = call i32 @stat(ptr noundef %0, ptr noundef nonnull %2)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 %5
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nofree nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| git_builtin_extr_clone.c_dir_exists |
; ModuleID = 'AnghaBench/freebsd/bin/ed/extr_glbl.c_exec_global.c'
source_filename = "AnghaBench/freebsd/bin/ed/extr_glbl.c_exec_global.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@ERR = dso_local local_unnamed_addr global i64 0, align 8
@current_addr = dso_local local_unnamed_addr global i32 0, align 4
@ibuf = dso_local local_unnamed_addr global ptr null, align 8
@stdin = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"unexpected end-of-file\00", align 1
@errmsg = dso_local local_unnamed_addr global ptr null, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"&\0A\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"no previous command\00", align 1
@ibufp = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local i64 @exec_global(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
%4 = icmp eq i32 %0, 0
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call ptr @get_extended_line(ptr noundef nonnull %3, i32 noundef 0) #5
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
10: ; preds = %5, %2
%11 = phi ptr [ null, %2 ], [ %6, %5 ]
%12 = call i32 (...) @clear_undo_stack() #5
br label %13
13: ; preds = %54, %10
%14 = call ptr (...) @next_active_node() #5
%15 = icmp eq ptr %14, null
br i1 %15, label %96, label %16
16: ; preds = %13
%17 = call i32 @get_line_node_addr(ptr noundef nonnull %14) #5
store i32 %17, ptr @current_addr, align 4, !tbaa !9
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
21: ; preds = %16
br i1 %4, label %74, label %22
22: ; preds = %21
%23 = call i32 @display_lines(i32 noundef %17, i32 noundef %17, i32 noundef %1) #5
%24 = icmp slt i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = call i32 (...) @get_tty_line() #5
store i32 %26, ptr %3, align 4, !tbaa !9
%27 = icmp sgt i32 %26, 0
br i1 %27, label %30, label %43
28: ; preds = %22
%29 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
30: ; preds = %25, %38
%31 = phi i32 [ %41, %38 ], [ %26, %25 ]
%32 = load ptr, ptr @ibuf, align 8, !tbaa !11
%33 = zext nneg i32 %31 to i64
%34 = getelementptr i8, ptr %32, i64 %33
%35 = getelementptr i8, ptr %34, i64 -1
%36 = load i8, ptr %35, align 1, !tbaa !13
%37 = icmp eq i8 %36, 10
br i1 %37, label %48, label %38
38: ; preds = %30
%39 = load i32, ptr @stdin, align 4, !tbaa !9
%40 = call i32 @clearerr(i32 noundef %39) #5
%41 = call i32 (...) @get_tty_line() #5
store i32 %41, ptr %3, align 4, !tbaa !9
%42 = icmp sgt i32 %41, 0
br i1 %42, label %30, label %43, !llvm.loop !14
43: ; preds = %25, %38
%44 = phi i32 [ %41, %38 ], [ %26, %25 ]
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
48: ; preds = %30
switch i32 %31, label %61 [
i32 1, label %51
i32 2, label %55
]
49: ; preds = %43
store ptr @.str, ptr @errmsg, align 8, !tbaa !11
%50 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
51: ; preds = %48
%52 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %32, ptr noundef nonnull dereferenceable(2) @.str.1)
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %92, %51, %74
br label %13, !llvm.loop !16
55: ; preds = %48
%56 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %32, ptr noundef nonnull dereferenceable(3) @.str.2)
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = icmp eq ptr %11, null
call void @llvm.assume(i1 %59)
store ptr @.str.3, ptr @errmsg, align 8, !tbaa !11
%60 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
61: ; preds = %48, %51, %55
%62 = call ptr @get_extended_line(ptr noundef nonnull %3, i32 noundef 0) #5
%63 = icmp eq ptr %62, null
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = load i64, ptr @ERR, align 8, !tbaa !5
br label %96
66: ; preds = %61
%67 = load i32, ptr %3, align 4, !tbaa !9
%68 = add nsw i32 %67, 1
%69 = load i64, ptr @ERR, align 8, !tbaa !5
%70 = call i32 @REALLOC(ptr noundef null, i32 noundef 0, i32 noundef %68, i64 noundef %69) #5
%71 = load i32, ptr %3, align 4, !tbaa !9
%72 = add nsw i32 %71, 1
%73 = call i32 @memcpy(ptr noundef null, ptr noundef nonnull %62, i32 noundef %72) #5
unreachable
74: ; preds = %21
store ptr %11, ptr @ibufp, align 8, !tbaa !11
%75 = load i8, ptr %11, align 1, !tbaa !13
%76 = icmp eq i8 %75, 0
br i1 %76, label %54, label %77
77: ; preds = %74, %92
%78 = call i32 (...) @extract_addr_range() #5
%79 = icmp slt i32 %78, 0
br i1 %79, label %89, label %80
80: ; preds = %77
%81 = call i32 (...) @exec_command() #5
%82 = icmp slt i32 %81, 0
br i1 %82, label %89, label %83
83: ; preds = %80
%84 = icmp eq i32 %81, 0
br i1 %84, label %92, label %85
85: ; preds = %83
%86 = load i32, ptr @current_addr, align 4, !tbaa !9
%87 = call i32 @display_lines(i32 noundef %86, i32 noundef %86, i32 noundef %81) #5
%88 = icmp slt i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %85, %80, %77
%90 = phi i32 [ %78, %77 ], [ %81, %80 ], [ %87, %85 ]
%91 = sext i32 %90 to i64
br label %96
92: ; preds = %85, %83
%93 = load ptr, ptr @ibufp, align 8, !tbaa !11
%94 = load i8, ptr %93, align 1, !tbaa !13
%95 = icmp eq i8 %94, 0
br i1 %95, label %54, label %77, !llvm.loop !17
96: ; preds = %13, %89, %64, %58, %49, %46, %28, %19, %8
%97 = phi i64 [ %20, %19 ], [ %29, %28 ], [ %47, %46 ], [ %50, %49 ], [ %65, %64 ], [ %91, %89 ], [ %60, %58 ], [ %9, %8 ], [ 0, %13 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
ret i64 %97
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @get_extended_line(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @clear_undo_stack(...) local_unnamed_addr #2
declare ptr @next_active_node(...) local_unnamed_addr #2
declare i32 @get_line_node_addr(ptr noundef) local_unnamed_addr #2
declare i32 @display_lines(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @get_tty_line(...) local_unnamed_addr #2
declare i32 @clearerr(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3
declare i32 @REALLOC(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @extract_addr_range(...) local_unnamed_addr #2
declare i32 @exec_command(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #4
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
| ; ModuleID = 'AnghaBench/freebsd/bin/ed/extr_glbl.c_exec_global.c'
source_filename = "AnghaBench/freebsd/bin/ed/extr_glbl.c_exec_global.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ERR = common local_unnamed_addr global i64 0, align 8
@current_addr = common local_unnamed_addr global i32 0, align 4
@ibuf = common local_unnamed_addr global ptr null, align 8
@stdin = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"unexpected end-of-file\00", align 1
@errmsg = common local_unnamed_addr global ptr null, align 8
@.str.3 = private unnamed_addr constant [20 x i8] c"no previous command\00", align 1
@ibufp = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define i64 @exec_global(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
%4 = icmp eq i32 %0, 0
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call ptr @get_extended_line(ptr noundef nonnull %3, i32 noundef 0) #5
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
10: ; preds = %5, %2
%11 = phi ptr [ null, %2 ], [ %6, %5 ]
%12 = call i32 @clear_undo_stack() #5
br label %13
13: ; preds = %63, %10
%14 = call ptr @next_active_node() #5
%15 = icmp eq ptr %14, null
br i1 %15, label %106, label %16
16: ; preds = %13
%17 = call i32 @get_line_node_addr(ptr noundef nonnull %14) #5
store i32 %17, ptr @current_addr, align 4, !tbaa !10
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
21: ; preds = %16
br i1 %4, label %84, label %22
22: ; preds = %21
%23 = call i32 @display_lines(i32 noundef %17, i32 noundef %17, i32 noundef %1) #5
%24 = icmp slt i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = call i32 @get_tty_line() #5
store i32 %26, ptr %3, align 4, !tbaa !10
%27 = icmp sgt i32 %26, 0
br i1 %27, label %30, label %43
28: ; preds = %22
%29 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
30: ; preds = %25, %38
%31 = phi i32 [ %41, %38 ], [ %26, %25 ]
%32 = load ptr, ptr @ibuf, align 8, !tbaa !12
%33 = zext nneg i32 %31 to i64
%34 = getelementptr i8, ptr %32, i64 %33
%35 = getelementptr i8, ptr %34, i64 -1
%36 = load i8, ptr %35, align 1, !tbaa !14
%37 = icmp eq i8 %36, 10
br i1 %37, label %48, label %38
38: ; preds = %30
%39 = load i32, ptr @stdin, align 4, !tbaa !10
%40 = call i32 @clearerr(i32 noundef %39) #5
%41 = call i32 @get_tty_line() #5
store i32 %41, ptr %3, align 4, !tbaa !10
%42 = icmp sgt i32 %41, 0
br i1 %42, label %30, label %43, !llvm.loop !15
43: ; preds = %25, %38
%44 = phi i32 [ %41, %38 ], [ %26, %25 ]
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
48: ; preds = %30
switch i32 %31, label %78 [
i32 1, label %51
i32 2, label %64
]
49: ; preds = %43
store ptr @.str, ptr @errmsg, align 8, !tbaa !12
%50 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
51: ; preds = %48
%52 = load i8, ptr %32, align 1
%53 = zext i8 %52 to i32
%54 = add nsw i32 %53, -10
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %60
56: ; preds = %51
%57 = getelementptr inbounds i8, ptr %32, i64 1
%58 = load i8, ptr %57, align 1
%59 = zext i8 %58 to i32
br label %60
60: ; preds = %51, %56
%61 = phi i32 [ %54, %51 ], [ %59, %56 ]
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %78
63: ; preds = %102, %60, %84
br label %13, !llvm.loop !17
64: ; preds = %48
%65 = load i8, ptr %32, align 1
%66 = icmp eq i8 %65, 38
br i1 %66, label %67, label %78
67: ; preds = %64
%68 = getelementptr inbounds i8, ptr %32, i64 1
%69 = load i8, ptr %68, align 1
%70 = icmp eq i8 %69, 10
br i1 %70, label %71, label %78
71: ; preds = %67
%72 = getelementptr inbounds i8, ptr %32, i64 2
%73 = load i8, ptr %72, align 1
%74 = icmp eq i8 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %71
%76 = icmp eq ptr %11, null
call void @llvm.assume(i1 %76)
store ptr @.str.3, ptr @errmsg, align 8, !tbaa !12
%77 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
78: ; preds = %48, %60, %64, %67, %71
%79 = call ptr @get_extended_line(ptr noundef nonnull %3, i32 noundef 0) #5
%80 = icmp eq ptr %79, null
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = load i64, ptr @ERR, align 8, !tbaa !6
br label %106
83: ; preds = %78
call void @exec_global.cold.1(ptr %3, ptr %79) #6
unreachable
84: ; preds = %21
store ptr %11, ptr @ibufp, align 8, !tbaa !12
%85 = load i8, ptr %11, align 1, !tbaa !14
%86 = icmp eq i8 %85, 0
br i1 %86, label %63, label %87
87: ; preds = %84, %102
%88 = call i32 @extract_addr_range() #5
%89 = icmp slt i32 %88, 0
br i1 %89, label %99, label %90
90: ; preds = %87
%91 = call i32 @exec_command() #5
%92 = icmp slt i32 %91, 0
br i1 %92, label %99, label %93
93: ; preds = %90
%94 = icmp eq i32 %91, 0
br i1 %94, label %102, label %95
95: ; preds = %93
%96 = load i32, ptr @current_addr, align 4, !tbaa !10
%97 = call i32 @display_lines(i32 noundef %96, i32 noundef %96, i32 noundef %91) #5
%98 = icmp slt i32 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %95, %90, %87
%100 = phi i32 [ %88, %87 ], [ %91, %90 ], [ %97, %95 ]
%101 = sext i32 %100 to i64
br label %106
102: ; preds = %95, %93
%103 = load ptr, ptr @ibufp, align 8, !tbaa !12
%104 = load i8, ptr %103, align 1, !tbaa !14
%105 = icmp eq i8 %104, 0
br i1 %105, label %63, label %87, !llvm.loop !18
106: ; preds = %13, %99, %81, %75, %49, %46, %28, %19, %8
%107 = phi i64 [ %20, %19 ], [ %29, %28 ], [ %47, %46 ], [ %50, %49 ], [ %82, %81 ], [ %101, %99 ], [ %77, %75 ], [ %9, %8 ], [ 0, %13 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
ret i64 %107
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @get_extended_line(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @clear_undo_stack(...) local_unnamed_addr #2
declare ptr @next_active_node(...) local_unnamed_addr #2
declare i32 @get_line_node_addr(ptr noundef) local_unnamed_addr #2
declare i32 @display_lines(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @get_tty_line(...) local_unnamed_addr #2
declare i32 @clearerr(i32 noundef) local_unnamed_addr #2
declare i32 @REALLOC(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @extract_addr_range(...) local_unnamed_addr #2
declare i32 @exec_command(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #3
; Function Attrs: cold minsize noreturn nounwind ssp uwtable(sync)
define internal void @exec_global.cold.1(ptr %0, ptr %1) #4 {
br label %3
3: ; preds = %2
%4 = load i32, ptr %0, align 4, !tbaa !10
%5 = add nsw i32 %4, 1
%6 = load i64, ptr @ERR, align 8, !tbaa !6
%7 = call i32 @REALLOC(ptr noundef null, i32 noundef 0, i32 noundef %5, i64 noundef %6) #5
%8 = load i32, ptr %0, align 4, !tbaa !10
%9 = add nsw i32 %8, 1
%10 = call i32 @memcpy(ptr noundef null, ptr noundef nonnull %1, i32 noundef %9) #5
unreachable
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+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 willreturn memory(inaccessiblemem: write) }
attributes #4 = { cold minsize noreturn nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #5 = { nounwind }
attributes #6 = { noinline }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
| freebsd_bin_ed_extr_glbl.c_exec_global |
; ModuleID = 'AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_asl.c_asl_urb_enqueue.c'
source_filename = "AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_asl.c_asl_urb_enqueue.c"
target datalayout = "e-m:e-p270:32:32-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.whc = type { i32, i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
%struct.whc_qset = type { i32, i32 }
@GFP_ATOMIC = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @asl_urb_enqueue(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds %struct.whc, ptr %0, i64 0, i32 2
%5 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %4, i64 noundef undef) #2
%6 = getelementptr inbounds %struct.whc, ptr %0, i64 0, i32 3
%7 = tail call i32 @usb_hcd_link_urb_to_ep(ptr noundef nonnull %6, ptr noundef %1) #2
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %4, i64 noundef undef) #2
br label %41
11: ; preds = %3
%12 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !5
%13 = tail call ptr @get_qset(ptr noundef %0, ptr noundef %1, i32 noundef %12) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%17 = sub nsw i32 0, %16
br label %21
18: ; preds = %11
%19 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !5
%20 = tail call i32 @qset_add_urb(ptr noundef %0, ptr noundef nonnull %13, ptr noundef %1, i32 noundef %19) #2
br label %21
21: ; preds = %18, %15
%22 = phi i32 [ %17, %15 ], [ %20, %18 ]
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = getelementptr inbounds %struct.whc_qset, ptr %13, i64 0, i32 1
%26 = load i32, ptr %25, align 4, !tbaa !9
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %36
28: ; preds = %24
%29 = load i32, ptr %13, align 4, !tbaa !11
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = tail call i32 @asl_qset_insert_begin(ptr noundef %0, ptr noundef nonnull %13) #2
br label %36
33: ; preds = %21
%34 = tail call i32 @usb_hcd_unlink_urb_from_ep(ptr noundef nonnull %6, ptr noundef %1) #2
%35 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %4, i64 noundef undef) #2
br label %41
36: ; preds = %24, %28, %31
%37 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %4, i64 noundef undef) #2
%38 = getelementptr inbounds %struct.whc, ptr %0, i64 0, i32 1
%39 = load i32, ptr %38, align 4, !tbaa !12
%40 = tail call i32 @queue_work(i32 noundef %39, ptr noundef %0) #2
br label %41
41: ; preds = %33, %36, %9
%42 = phi i32 [ %7, %9 ], [ 0, %36 ], [ %22, %33 ]
ret i32 %42
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @usb_hcd_link_urb_to_ep(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @get_qset(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @qset_add_urb(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @asl_qset_insert_begin(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_hcd_unlink_urb_from_ep(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @queue_work(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, !6, i64 4}
!10 = !{!"whc_qset", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 0}
!12 = !{!13, !6, i64 4}
!13 = !{!"whc", !6, i64 0, !6, i64 4, !6, i64 8, !14, i64 12}
!14 = !{!"TYPE_2__", !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_asl.c_asl_urb_enqueue.c'
source_filename = "AnghaBench/linux/drivers/staging/wusbcore/host/whci/extr_asl.c_asl_urb_enqueue.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_ATOMIC = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @asl_urb_enqueue(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull %4, i64 noundef undef) #2
%6 = getelementptr inbounds i8, ptr %0, i64 12
%7 = tail call i32 @usb_hcd_link_urb_to_ep(ptr noundef nonnull %6, ptr noundef %1) #2
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %4, i64 noundef undef) #2
br label %41
11: ; preds = %3
%12 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !6
%13 = tail call ptr @get_qset(ptr noundef %0, ptr noundef %1, i32 noundef %12) #2
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%17 = sub nsw i32 0, %16
br label %21
18: ; preds = %11
%19 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !6
%20 = tail call i32 @qset_add_urb(ptr noundef %0, ptr noundef nonnull %13, ptr noundef %1, i32 noundef %19) #2
br label %21
21: ; preds = %18, %15
%22 = phi i32 [ %17, %15 ], [ %20, %18 ]
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = getelementptr inbounds i8, ptr %13, i64 4
%26 = load i32, ptr %25, align 4, !tbaa !10
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %36
28: ; preds = %24
%29 = load i32, ptr %13, align 4, !tbaa !12
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = tail call i32 @asl_qset_insert_begin(ptr noundef %0, ptr noundef nonnull %13) #2
br label %36
33: ; preds = %21
%34 = tail call i32 @usb_hcd_unlink_urb_from_ep(ptr noundef nonnull %6, ptr noundef %1) #2
%35 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %4, i64 noundef undef) #2
br label %41
36: ; preds = %24, %28, %31
%37 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull %4, i64 noundef undef) #2
%38 = getelementptr inbounds i8, ptr %0, i64 4
%39 = load i32, ptr %38, align 4, !tbaa !13
%40 = tail call i32 @queue_work(i32 noundef %39, ptr noundef %0) #2
br label %41
41: ; preds = %33, %36, %9
%42 = phi i32 [ %7, %9 ], [ 0, %36 ], [ %22, %33 ]
ret i32 %42
}
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @usb_hcd_link_urb_to_ep(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @get_qset(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @qset_add_urb(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @asl_qset_insert_begin(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @usb_hcd_unlink_urb_from_ep(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @queue_work(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, !7, i64 4}
!11 = !{!"whc_qset", !7, i64 0, !7, i64 4}
!12 = !{!11, !7, i64 0}
!13 = !{!14, !7, i64 4}
!14 = !{!"whc", !7, i64 0, !7, i64 4, !7, i64 8, !15, i64 12}
!15 = !{!"TYPE_2__", !7, i64 0}
| linux_drivers_staging_wusbcore_host_whci_extr_asl.c_asl_urb_enqueue |
; ModuleID = 'AnghaBench/kphp-kdb/bayes/extr_bayes-engine.c_memcache_get_end.c'
source_filename = "AnghaBench/kphp-kdb/bayes/extr_bayes-engine.c_memcache_get_end.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.connection = type { i32, i32, i32, i32 }
@C_INTIMEOUT = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"END\0D\0A\00", align 1
@verbosity = dso_local local_unnamed_addr global i32 0, align 4
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"memcache_get end: query time %.3fms\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @memcache_get_end(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @C_INTIMEOUT, align 4, !tbaa !5
%4 = xor i32 %3, -1
%5 = getelementptr inbounds %struct.connection, ptr %0, i64 0, i32 3
%6 = load i32, ptr %5, align 4, !tbaa !9
%7 = and i32 %6, %4
store i32 %7, ptr %5, align 4, !tbaa !9
%8 = tail call i32 (...) @mytime() #2
%9 = getelementptr inbounds %struct.connection, ptr %0, i64 0, i32 1
%10 = load i32, ptr %9, align 4, !tbaa !11
%11 = sub nsw i32 %8, %10
store i32 %11, ptr %0, align 4, !tbaa !12
%12 = getelementptr inbounds %struct.connection, ptr %0, i64 0, i32 2
%13 = tail call i32 @write_out(ptr noundef nonnull %12, ptr noundef nonnull @.str, i32 noundef 5) #2
%14 = load i32, ptr @verbosity, align 4, !tbaa !5
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4, !tbaa !5
%18 = load i32, ptr %0, align 4, !tbaa !12
%19 = mul nsw i32 %18, 1000
%20 = tail call i32 @fprintf(i32 noundef %17, ptr noundef nonnull @.str.1, i32 noundef %19) #2
br label %21
21: ; preds = %16, %2
ret i32 0
}
declare i32 @mytime(...) local_unnamed_addr #1
declare i32 @write_out(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fprintf(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, !6, i64 12}
!10 = !{!"connection", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/bayes/extr_bayes-engine.c_memcache_get_end.c'
source_filename = "AnghaBench/kphp-kdb/bayes/extr_bayes-engine.c_memcache_get_end.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@C_INTIMEOUT = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"END\0D\0A\00", align 1
@verbosity = common local_unnamed_addr global i32 0, align 4
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"memcache_get end: query time %.3fms\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @memcache_get_end(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @C_INTIMEOUT, align 4, !tbaa !6
%4 = xor i32 %3, -1
%5 = getelementptr inbounds i8, ptr %0, i64 12
%6 = load i32, ptr %5, align 4, !tbaa !10
%7 = and i32 %6, %4
store i32 %7, ptr %5, align 4, !tbaa !10
%8 = tail call i32 @mytime() #2
%9 = getelementptr inbounds i8, ptr %0, i64 4
%10 = load i32, ptr %9, align 4, !tbaa !12
%11 = sub nsw i32 %8, %10
store i32 %11, ptr %0, align 4, !tbaa !13
%12 = getelementptr inbounds i8, ptr %0, i64 8
%13 = tail call i32 @write_out(ptr noundef nonnull %12, ptr noundef nonnull @.str, i32 noundef 5) #2
%14 = load i32, ptr @verbosity, align 4, !tbaa !6
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %21
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4, !tbaa !6
%18 = load i32, ptr %0, align 4, !tbaa !13
%19 = mul nsw i32 %18, 1000
%20 = tail call i32 @fprintf(i32 noundef %17, ptr noundef nonnull @.str.1, i32 noundef %19) #2
br label %21
21: ; preds = %16, %2
ret i32 0
}
declare i32 @mytime(...) local_unnamed_addr #1
declare i32 @write_out(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @fprintf(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, !7, i64 12}
!11 = !{!"connection", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!12 = !{!11, !7, i64 4}
!13 = !{!11, !7, i64 0}
| kphp-kdb_bayes_extr_bayes-engine.c_memcache_get_end |
; ModuleID = 'AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-vmx-unavail.c_tm_vmx_unavail_test.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-vmx-unavail.c_tm_vmx_unavail_test.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@passed = dso_local local_unnamed_addr global i32 0, align 4
@_SC_NPROCESSORS_ONLN = dso_local local_unnamed_addr global i32 0, align 4
@EXIT_FAILURE = dso_local local_unnamed_addr global i32 0, align 4
@worker = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @tm_vmx_unavail_test() local_unnamed_addr #0 {
%1 = tail call i32 (...) @have_htm() #3
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @SKIP_IF(i32 noundef %3) #3
store i32 1, ptr @passed, align 4, !tbaa !5
%5 = load i32, ptr @_SC_NPROCESSORS_ONLN, align 4, !tbaa !5
%6 = tail call i32 @sysconf(i32 noundef %5) #3
%7 = shl i32 %6, 2
%8 = shl i32 %6, 4
%9 = tail call ptr @malloc(i32 noundef %8) #3
%10 = icmp eq ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = icmp sgt i32 %6, 0
br i1 %12, label %13, label %28
13: ; preds = %11
%14 = tail call i32 @llvm.smax.i32(i32 %7, i32 1)
%15 = zext nneg i32 %14 to i64
br label %22
16: ; preds = %0
%17 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !5
br label %42
18: ; preds = %22
br i1 %12, label %19, label %28
19: ; preds = %18
%20 = tail call i32 @llvm.smax.i32(i32 %7, i32 1)
%21 = zext nneg i32 %20 to i64
br label %35
22: ; preds = %13, %22
%23 = phi i64 [ 0, %13 ], [ %26, %22 ]
%24 = getelementptr inbounds i32, ptr %9, i64 %23
%25 = tail call i32 @pthread_create(ptr noundef nonnull %24, ptr noundef null, ptr noundef nonnull @worker, ptr noundef null) #3
%26 = add nuw nsw i64 %23, 1
%27 = icmp eq i64 %26, %15
br i1 %27, label %18, label %22, !llvm.loop !9
28: ; preds = %35, %11, %18
%29 = tail call i32 @free(ptr noundef nonnull %9) #3
%30 = load i32, ptr @passed, align 4, !tbaa !5
%31 = icmp eq i32 %30, 0
%32 = load i32, ptr @EXIT_SUCCESS, align 4
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = select i1 %31, i32 %33, i32 %32
br label %42
35: ; preds = %19, %35
%36 = phi i64 [ 0, %19 ], [ %40, %35 ]
%37 = getelementptr inbounds i32, ptr %9, i64 %36
%38 = load i32, ptr %37, align 4, !tbaa !5
%39 = tail call i32 @pthread_join(i32 noundef %38, ptr noundef null) #3
%40 = add nuw nsw i64 %36, 1
%41 = icmp eq i64 %40, %21
br i1 %41, label %28, label %35, !llvm.loop !11
42: ; preds = %28, %16
%43 = phi i32 [ %34, %28 ], [ %17, %16 ]
ret i32 %43
}
declare i32 @SKIP_IF(i32 noundef) local_unnamed_addr #1
declare i32 @have_htm(...) local_unnamed_addr #1
declare i32 @sysconf(i32 noundef) local_unnamed_addr #1
declare ptr @malloc(i32 noundef) local_unnamed_addr #1
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @pthread_join(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
| ; ModuleID = 'AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-vmx-unavail.c_tm_vmx_unavail_test.c'
source_filename = "AnghaBench/linux/tools/testing/selftests/powerpc/tm/extr_tm-vmx-unavail.c_tm_vmx_unavail_test.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@passed = common local_unnamed_addr global i32 0, align 4
@_SC_NPROCESSORS_ONLN = common local_unnamed_addr global i32 0, align 4
@EXIT_FAILURE = common local_unnamed_addr global i32 0, align 4
@worker = common global i32 0, align 4
@EXIT_SUCCESS = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @tm_vmx_unavail_test() local_unnamed_addr #0 {
%1 = tail call i32 @have_htm() #3
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @SKIP_IF(i32 noundef %3) #3
store i32 1, ptr @passed, align 4, !tbaa !6
%5 = load i32, ptr @_SC_NPROCESSORS_ONLN, align 4, !tbaa !6
%6 = tail call i32 @sysconf(i32 noundef %5) #3
%7 = shl i32 %6, 2
%8 = shl i32 %6, 4
%9 = tail call ptr @malloc(i32 noundef %8) #3
%10 = icmp eq ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = icmp sgt i32 %6, 0
br i1 %12, label %13, label %24
13: ; preds = %11
%14 = tail call i32 @llvm.smax.i32(i32 %7, i32 1)
%15 = zext nneg i32 %14 to i64
br label %18
16: ; preds = %0
%17 = load i32, ptr @EXIT_FAILURE, align 4, !tbaa !6
br label %38
18: ; preds = %13, %18
%19 = phi i64 [ 0, %13 ], [ %22, %18 ]
%20 = getelementptr inbounds i32, ptr %9, i64 %19
%21 = tail call i32 @pthread_create(ptr noundef nonnull %20, ptr noundef null, ptr noundef nonnull @worker, ptr noundef null) #3
%22 = add nuw nsw i64 %19, 1
%23 = icmp eq i64 %22, %15
br i1 %23, label %31, label %18, !llvm.loop !10
24: ; preds = %31, %11
%25 = tail call i32 @free(ptr noundef nonnull %9) #3
%26 = load i32, ptr @passed, align 4, !tbaa !6
%27 = icmp eq i32 %26, 0
%28 = load i32, ptr @EXIT_SUCCESS, align 4
%29 = load i32, ptr @EXIT_FAILURE, align 4
%30 = select i1 %27, i32 %29, i32 %28
br label %38
31: ; preds = %18, %31
%32 = phi i64 [ %36, %31 ], [ 0, %18 ]
%33 = getelementptr inbounds i32, ptr %9, i64 %32
%34 = load i32, ptr %33, align 4, !tbaa !6
%35 = tail call i32 @pthread_join(i32 noundef %34, ptr noundef null) #3
%36 = add nuw nsw i64 %32, 1
%37 = icmp eq i64 %36, %15
br i1 %37, label %24, label %31, !llvm.loop !12
38: ; preds = %24, %16
%39 = phi i32 [ %30, %24 ], [ %17, %16 ]
ret i32 %39
}
declare i32 @SKIP_IF(i32 noundef) local_unnamed_addr #1
declare i32 @have_htm(...) local_unnamed_addr #1
declare i32 @sysconf(i32 noundef) local_unnamed_addr #1
declare ptr @malloc(i32 noundef) local_unnamed_addr #1
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @pthread_join(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
| linux_tools_testing_selftests_powerpc_tm_extr_tm-vmx-unavail.c_tm_vmx_unavail_test |
; ModuleID = 'AnghaBench/freebsd/sys/contrib/ck/src/extr_ck_rhs.c_ck_rhs_reset.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ck/src/extr_ck_rhs.c_ck_rhs_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"
; Function Attrs: nounwind uwtable
define dso_local i32 @ck_rhs_reset(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !10
%4 = tail call i32 @ck_rhs_reset_size(ptr noundef nonnull %0, i32 noundef %3) #2
ret i32 %4
}
declare i32 @ck_rhs_reset_size(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 = !{!"ck_rhs", !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 = !{!"ck_rhs_map", !12, i64 0}
!12 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/sys/contrib/ck/src/extr_ck_rhs.c_ck_rhs_reset.c'
source_filename = "AnghaBench/freebsd/sys/contrib/ck/src/extr_ck_rhs.c_ck_rhs_reset.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ck_rhs_reset(ptr noundef %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !11
%4 = tail call i32 @ck_rhs_reset_size(ptr noundef nonnull %0, i32 noundef %3) #2
ret i32 %4
}
declare i32 @ck_rhs_reset_size(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 = !{!"ck_rhs", !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 = !{!"ck_rhs_map", !13, i64 0}
!13 = !{!"int", !9, i64 0}
| freebsd_sys_contrib_ck_src_extr_ck_rhs.c_ck_rhs_reset |
; ModuleID = 'AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_hpi_stream_start.c'
source_filename = "AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_hpi_stream_start.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@HPI_OBJ_OSTREAM = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @hpi_stream_start], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @hpi_stream_start(i32 noundef %0) #0 {
%2 = tail call i64 @hpi_handle_object(i32 noundef %0) #2
%3 = load i64, ptr @HPI_OBJ_OSTREAM, align 8, !tbaa !5
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @hpi_outstream_start(i32 noundef %0) #2
br label %9
7: ; preds = %1
%8 = tail call i32 @hpi_instream_start(i32 noundef %0) #2
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
declare i64 @hpi_handle_object(i32 noundef) local_unnamed_addr #1
declare i32 @hpi_outstream_start(i32 noundef) local_unnamed_addr #1
declare i32 @hpi_instream_start(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_hpi_stream_start.c'
source_filename = "AnghaBench/linux/sound/pci/asihpi/extr_asihpi.c_hpi_stream_start.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HPI_OBJ_OSTREAM = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @hpi_stream_start], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @hpi_stream_start(i32 noundef %0) #0 {
%2 = tail call i64 @hpi_handle_object(i32 noundef %0) #2
%3 = load i64, ptr @HPI_OBJ_OSTREAM, align 8, !tbaa !6
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @hpi_outstream_start(i32 noundef %0) #2
br label %9
7: ; preds = %1
%8 = tail call i32 @hpi_instream_start(i32 noundef %0) #2
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
declare i64 @hpi_handle_object(i32 noundef) local_unnamed_addr #1
declare i32 @hpi_outstream_start(i32 noundef) local_unnamed_addr #1
declare i32 @hpi_instream_start(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_sound_pci_asihpi_extr_asihpi.c_hpi_stream_start |
; ModuleID = 'AnghaBench/lede/package/kernel/i2c-gpio-custom/src/extr_i2c-gpio-custom.c_i2c_gpio_custom_cleanup.c'
source_filename = "AnghaBench/lede/package/kernel/i2c-gpio-custom/src/extr_i2c-gpio-custom.c_i2c_gpio_custom_cleanup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@nr_devices = dso_local local_unnamed_addr global i32 0, align 4
@devices = dso_local local_unnamed_addr global ptr null, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @i2c_gpio_custom_cleanup], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @i2c_gpio_custom_cleanup() #0 {
%1 = load i32, ptr @nr_devices, align 4, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %3, label %22
3: ; preds = %0
%4 = load ptr, ptr @devices, align 8, !tbaa !9
br label %5
5: ; preds = %3, %16
%6 = phi i32 [ %1, %3 ], [ %17, %16 ]
%7 = phi ptr [ %4, %3 ], [ %18, %16 ]
%8 = phi i64 [ 0, %3 ], [ %19, %16 ]
%9 = getelementptr inbounds i64, ptr %7, i64 %8
%10 = load i64, ptr %9, align 8, !tbaa !11
%11 = icmp eq i64 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %5
%13 = tail call i32 @platform_device_put(i64 noundef %10) #2
%14 = load ptr, ptr @devices, align 8, !tbaa !9
%15 = load i32, ptr @nr_devices, align 4, !tbaa !5
br label %16
16: ; preds = %5, %12
%17 = phi i32 [ %6, %5 ], [ %15, %12 ]
%18 = phi ptr [ %7, %5 ], [ %14, %12 ]
%19 = add nuw nsw i64 %8, 1
%20 = sext i32 %17 to i64
%21 = icmp slt i64 %19, %20
br i1 %21, label %5, label %22, !llvm.loop !13
22: ; preds = %16, %0
ret void
}
declare i32 @platform_device_put(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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/lede/package/kernel/i2c-gpio-custom/src/extr_i2c-gpio-custom.c_i2c_gpio_custom_cleanup.c'
source_filename = "AnghaBench/lede/package/kernel/i2c-gpio-custom/src/extr_i2c-gpio-custom.c_i2c_gpio_custom_cleanup.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@nr_devices = common local_unnamed_addr global i32 0, align 4
@devices = common local_unnamed_addr global ptr null, align 8
@llvm.used = appending global [1 x ptr] [ptr @i2c_gpio_custom_cleanup], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @i2c_gpio_custom_cleanup() #0 {
%1 = load i32, ptr @nr_devices, align 4, !tbaa !6
%2 = icmp sgt i32 %1, 0
br i1 %2, label %3, label %22
3: ; preds = %0
%4 = load ptr, ptr @devices, align 8, !tbaa !10
br label %5
5: ; preds = %3, %16
%6 = phi i32 [ %1, %3 ], [ %17, %16 ]
%7 = phi ptr [ %4, %3 ], [ %18, %16 ]
%8 = phi i64 [ 0, %3 ], [ %19, %16 ]
%9 = getelementptr inbounds i64, ptr %7, i64 %8
%10 = load i64, ptr %9, align 8, !tbaa !12
%11 = icmp eq i64 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %5
%13 = tail call i32 @platform_device_put(i64 noundef %10) #2
%14 = load ptr, ptr @devices, align 8, !tbaa !10
%15 = load i32, ptr @nr_devices, align 4, !tbaa !6
br label %16
16: ; preds = %5, %12
%17 = phi i32 [ %6, %5 ], [ %15, %12 ]
%18 = phi ptr [ %7, %5 ], [ %14, %12 ]
%19 = add nuw nsw i64 %8, 1
%20 = sext i32 %17 to i64
%21 = icmp slt i64 %19, %20
br i1 %21, label %5, label %22, !llvm.loop !14
22: ; preds = %16, %0
ret void
}
declare i32 @platform_device_put(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 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
| lede_package_kernel_i2c-gpio-custom_src_extr_i2c-gpio-custom.c_i2c_gpio_custom_cleanup |
; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpiolib.c_gpiod_set_value.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpiolib.c_gpiod_set_value.c"
target datalayout = "e-m:e-p270:32:32-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 @gpiod_set_value(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @VALIDATE_DESC_VOID(ptr noundef %0) #2
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = load i32, ptr %5, align 4, !tbaa !12
%7 = tail call i32 @WARN_ON(i32 noundef %6) #2
%8 = tail call i32 @gpiod_set_value_nocheck(ptr noundef nonnull %0, i32 noundef %1) #2
ret void
}
declare i32 @VALIDATE_DESC_VOID(ptr noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i32 @gpiod_set_value_nocheck(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 = !{!"gpio_desc", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpiolib.c_gpiod_set_value.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpiolib.c_gpiod_set_value.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 @gpiod_set_value(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = tail call i32 @VALIDATE_DESC_VOID(ptr noundef %0) #2
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = load i32, ptr %5, align 4, !tbaa !13
%7 = tail call i32 @WARN_ON(i32 noundef %6) #2
%8 = tail call i32 @gpiod_set_value_nocheck(ptr noundef nonnull %0, i32 noundef %1) #2
ret void
}
declare i32 @VALIDATE_DESC_VOID(ptr noundef) local_unnamed_addr #1
declare i32 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i32 @gpiod_set_value_nocheck(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 = !{!"gpio_desc", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_4__", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"int", !9, i64 0}
| linux_drivers_gpio_extr_gpiolib.c_gpiod_set_value |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_vega10_smumgr.c_vega10_set_tools_address.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_vega10_smumgr.c_vega10_set_tools_address.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i64 }
@TOOLSTABLE = dso_local local_unnamed_addr global i64 0, align 8
@PPSMC_MSG_SetToolsDramAddrHigh = dso_local local_unnamed_addr global i32 0, align 4
@PPSMC_MSG_SetToolsDramAddrLow = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @vega10_set_tools_address], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @vega10_set_tools_address(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load ptr, ptr %2, align 8, !tbaa !10
%4 = load i64, ptr @TOOLSTABLE, align 8, !tbaa !13
%5 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 %4
%6 = load i64, ptr %5, align 8, !tbaa !15
%7 = icmp eq i64 %6, 0
br i1 %7, label %19, label %8
8: ; preds = %1
%9 = load i32, ptr @PPSMC_MSG_SetToolsDramAddrHigh, align 4, !tbaa !17
%10 = tail call i32 @upper_32_bits(i64 noundef %6) #2
%11 = tail call i32 @smu9_send_msg_to_smc_with_parameter(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %10) #2
%12 = load i32, ptr @PPSMC_MSG_SetToolsDramAddrLow, align 4, !tbaa !17
%13 = load ptr, ptr %2, align 8, !tbaa !10
%14 = load i64, ptr @TOOLSTABLE, align 8, !tbaa !13
%15 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i64 %14
%16 = load i64, ptr %15, align 8, !tbaa !15
%17 = tail call i32 @lower_32_bits(i64 noundef %16) #2
%18 = tail call i32 @smu9_send_msg_to_smc_with_parameter(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %17) #2
br label %19
19: ; preds = %8, %1
ret i32 0
}
declare i32 @smu9_send_msg_to_smc_with_parameter(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @upper_32_bits(i64 noundef) local_unnamed_addr #1
declare i32 @lower_32_bits(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 = !{!"pp_hwmgr", !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 = !{!"vega10_smumgr", !12, i64 0}
!12 = !{!"TYPE_3__", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_4__", !14, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !8, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_vega10_smumgr.c_vega10_set_tools_address.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/powerplay/smumgr/extr_vega10_smumgr.c_vega10_set_tools_address.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i64 }
@TOOLSTABLE = common local_unnamed_addr global i64 0, align 8
@PPSMC_MSG_SetToolsDramAddrHigh = common local_unnamed_addr global i32 0, align 4
@PPSMC_MSG_SetToolsDramAddrLow = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @vega10_set_tools_address], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @vega10_set_tools_address(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load ptr, ptr %2, align 8, !tbaa !11
%4 = load i64, ptr @TOOLSTABLE, align 8, !tbaa !14
%5 = getelementptr inbounds %struct.TYPE_4__, ptr %3, i64 %4
%6 = load i64, ptr %5, align 8, !tbaa !16
%7 = icmp eq i64 %6, 0
br i1 %7, label %19, label %8
8: ; preds = %1
%9 = load i32, ptr @PPSMC_MSG_SetToolsDramAddrHigh, align 4, !tbaa !18
%10 = tail call i32 @upper_32_bits(i64 noundef %6) #2
%11 = tail call i32 @smu9_send_msg_to_smc_with_parameter(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %10) #2
%12 = load i32, ptr @PPSMC_MSG_SetToolsDramAddrLow, align 4, !tbaa !18
%13 = load ptr, ptr %2, align 8, !tbaa !11
%14 = load i64, ptr @TOOLSTABLE, align 8, !tbaa !14
%15 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i64 %14
%16 = load i64, ptr %15, align 8, !tbaa !16
%17 = tail call i32 @lower_32_bits(i64 noundef %16) #2
%18 = tail call i32 @smu9_send_msg_to_smc_with_parameter(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %17) #2
br label %19
19: ; preds = %8, %1
ret i32 0
}
declare i32 @smu9_send_msg_to_smc_with_parameter(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @upper_32_bits(i64 noundef) local_unnamed_addr #1
declare i32 @lower_32_bits(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 = !{!"pp_hwmgr", !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 = !{!"vega10_smumgr", !13, i64 0}
!13 = !{!"TYPE_3__", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"TYPE_4__", !15, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !9, i64 0}
| linux_drivers_gpu_drm_amd_powerplay_smumgr_extr_vega10_smumgr.c_vega10_set_tools_address |
; ModuleID = 'AnghaBench/Mirai-Source-Code/mirai/bot/extr_util.c_util_isupper.c'
source_filename = "AnghaBench/Mirai-Source-Code/mirai/bot/extr_util.c_util_isupper.c"
target datalayout = "e-m:e-p270:32:32-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 @util_isupper], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @util_isupper(i8 noundef signext %0) #0 {
%2 = add i8 %0, -65
%3 = icmp ult i8 %2, 26
%4 = zext i1 %3 to i32
ret i32 %4
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/Mirai-Source-Code/mirai/bot/extr_util.c_util_isupper.c'
source_filename = "AnghaBench/Mirai-Source-Code/mirai/bot/extr_util.c_util_isupper.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 @util_isupper], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal range(i32 0, 2) i32 @util_isupper(i8 noundef signext %0) #0 {
%2 = add i8 %0, -65
%3 = icmp ult i8 %2, 26
%4 = zext i1 %3 to i32
ret i32 %4
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| Mirai-Source-Code_mirai_bot_extr_util.c_util_isupper |
; ModuleID = 'AnghaBench/linux/net/batman-adv/extr_network-coding.h_batadv_nc_skb_store_sniffed_unicast.c'
source_filename = "AnghaBench/linux/net/batman-adv/extr_network-coding.h_batadv_nc_skb_store_sniffed_unicast.c"
target datalayout = "e-m:e-p270:32:32-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 @batadv_nc_skb_store_sniffed_unicast], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @batadv_nc_skb_store_sniffed_unicast(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/linux/net/batman-adv/extr_network-coding.h_batadv_nc_skb_store_sniffed_unicast.c'
source_filename = "AnghaBench/linux/net/batman-adv/extr_network-coding.h_batadv_nc_skb_store_sniffed_unicast.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 @batadv_nc_skb_store_sniffed_unicast], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @batadv_nc_skb_store_sniffed_unicast(ptr nocapture readnone %0, ptr nocapture readnone %1) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| linux_net_batman-adv_extr_network-coding.h_batadv_nc_skb_store_sniffed_unicast |
; ModuleID = 'AnghaBench/kphp-kdb/lists/extr_lists-data.c_load_g_tree_sub.c'
source_filename = "AnghaBench/kphp-kdb/lists/extr_lists-data.c_load_g_tree_sub.c"
target datalayout = "e-m:e-p270:32:32-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, i64, i64, ptr }
@M_List = dso_local local_unnamed_addr global ptr null, align 8
@M_metafile = dso_local local_unnamed_addr global ptr null, align 8
@M_tot_entries = dso_local local_unnamed_addr global i32 0, align 4
@M_sublist_temp_id_by_global = dso_local local_unnamed_addr global i64 0, align 8
@M_global_id_list = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @load_g_tree_sub], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @load_g_tree_sub(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = icmp ult i32 %1, 8
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 noundef %4) #2
%6 = load ptr, ptr @M_List, align 8, !tbaa !5
%7 = load ptr, ptr %6, align 8, !tbaa !9
%8 = sext i32 %1 to i64
%9 = getelementptr inbounds i32, ptr %7, i64 %8
%10 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 3
store ptr %9, ptr %10, align 8, !tbaa !11
%11 = load ptr, ptr @M_metafile, align 8, !tbaa !5
%12 = icmp eq ptr %11, null
br i1 %12, label %32, label %13
13: ; preds = %2
%14 = load ptr, ptr %11, align 8, !tbaa !15
%15 = getelementptr inbounds i32, ptr %14, i64 %8
%16 = load i32, ptr %15, align 4, !tbaa !17
%17 = getelementptr i32, ptr %15, i64 1
%18 = load i32, ptr %17, align 4, !tbaa !17
%19 = icmp sgt i32 %16, -1
%20 = icmp sle i32 %16, %18
%21 = select i1 %19, i1 %20, i1 false
%22 = load i32, ptr @M_tot_entries, align 4
%23 = icmp sle i32 %18, %22
%24 = select i1 %21, i1 %23, i1 false
%25 = zext i1 %24 to i32
%26 = tail call i32 @assert(i32 noundef %25) #2
%27 = sub nsw i32 %18, %16
%28 = load i64, ptr @M_sublist_temp_id_by_global, align 8, !tbaa !18
%29 = sext i32 %16 to i64
%30 = add nsw i64 %28, %29
%31 = load i64, ptr @M_global_id_list, align 8, !tbaa !18
br label %32
32: ; preds = %2, %13
%33 = phi i32 [ %27, %13 ], [ 0, %2 ]
%34 = phi i64 [ %30, %13 ], [ 0, %2 ]
%35 = phi i64 [ %31, %13 ], [ 0, %2 ]
store i32 %33, ptr %0, align 8
%36 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
store i64 %34, ptr %36, align 8
%37 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
store i64 %35, ptr %37, align 8
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_7__", !6, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"TYPE_5__", !13, i64 0, !14, i64 8, !14, i64 16, !6, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"TYPE_6__", !6, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!14, !14, i64 0}
| ; ModuleID = 'AnghaBench/kphp-kdb/lists/extr_lists-data.c_load_g_tree_sub.c'
source_filename = "AnghaBench/kphp-kdb/lists/extr_lists-data.c_load_g_tree_sub.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@M_List = common local_unnamed_addr global ptr null, align 8
@M_metafile = common local_unnamed_addr global ptr null, align 8
@M_tot_entries = common local_unnamed_addr global i32 0, align 4
@M_sublist_temp_id_by_global = common local_unnamed_addr global i64 0, align 8
@M_global_id_list = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @load_g_tree_sub], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @load_g_tree_sub(ptr nocapture noundef writeonly %0, i32 noundef %1) #0 {
%3 = icmp ult i32 %1, 8
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 noundef %4) #2
%6 = load ptr, ptr @M_List, align 8, !tbaa !6
%7 = load ptr, ptr %6, align 8, !tbaa !10
%8 = sext i32 %1 to i64
%9 = getelementptr inbounds i32, ptr %7, i64 %8
%10 = getelementptr inbounds i8, ptr %0, i64 24
store ptr %9, ptr %10, align 8, !tbaa !12
%11 = load ptr, ptr @M_metafile, align 8, !tbaa !6
%12 = icmp eq ptr %11, null
br i1 %12, label %32, label %13
13: ; preds = %2
%14 = load ptr, ptr %11, align 8, !tbaa !16
%15 = getelementptr inbounds i32, ptr %14, i64 %8
%16 = load i32, ptr %15, align 4, !tbaa !18
%17 = getelementptr i8, ptr %15, i64 4
%18 = load i32, ptr %17, align 4, !tbaa !18
%19 = icmp sgt i32 %16, -1
%20 = icmp sle i32 %16, %18
%21 = select i1 %19, i1 %20, i1 false
%22 = load i32, ptr @M_tot_entries, align 4
%23 = icmp sle i32 %18, %22
%24 = select i1 %21, i1 %23, i1 false
%25 = zext i1 %24 to i32
%26 = tail call i32 @assert(i32 noundef %25) #2
%27 = sub nsw i32 %18, %16
%28 = load i64, ptr @M_sublist_temp_id_by_global, align 8, !tbaa !19
%29 = sext i32 %16 to i64
%30 = add nsw i64 %28, %29
%31 = load i64, ptr @M_global_id_list, align 8, !tbaa !19
br label %32
32: ; preds = %2, %13
%33 = phi i32 [ %27, %13 ], [ 0, %2 ]
%34 = phi i64 [ %30, %13 ], [ 0, %2 ]
%35 = phi i64 [ %31, %13 ], [ 0, %2 ]
store i32 %33, ptr %0, align 8
%36 = getelementptr inbounds i8, ptr %0, i64 16
store i64 %34, ptr %36, align 8
%37 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %35, ptr %37, align 8
ret void
}
declare i32 @assert(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !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_7__", !7, i64 0}
!12 = !{!13, !7, i64 24}
!13 = !{!"TYPE_5__", !14, i64 0, !15, i64 8, !15, i64 16, !7, i64 24}
!14 = !{!"int", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"TYPE_6__", !7, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!15, !15, i64 0}
| kphp-kdb_lists_extr_lists-data.c_load_g_tree_sub |
; ModuleID = 'AnghaBench/Provenance/Cores/Mupen64Plus/png/contrib/libtests/extr_pngvalid.c_perform_gamma_threshold_tests.c'
source_filename = "AnghaBench/Provenance/Cores/Mupen64Plus/png/contrib/libtests/extr_pngvalid.c_perform_gamma_threshold_tests.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_5__ = type { i32, i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @perform_gamma_threshold_tests], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @perform_gamma_threshold_tests(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
store i32 0, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
store i32 0, ptr %3, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
store i32 0, ptr %4, align 4, !tbaa !5
%5 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%6 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
%7 = load i32, ptr %5, align 4, !tbaa !9
%8 = load i32, ptr %6, align 4, !tbaa !11
%9 = call i64 @next_format(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %7, i32 noundef %8) #3
%10 = icmp eq i64 %9, 0
br i1 %10, label %35, label %11
11: ; preds = %1, %30
%12 = load i32, ptr %4, align 4, !tbaa !5
%13 = icmp ult i32 %12, 2
br i1 %13, label %14, label %30
14: ; preds = %11, %14
%15 = phi double [ %21, %14 ], [ 1.000000e+00, %11 ]
%16 = load i32, ptr %2, align 4, !tbaa !5
%17 = load i32, ptr %3, align 4, !tbaa !5
%18 = load i32, ptr %0, align 4, !tbaa !12
%19 = fdiv double 1.000000e+00, %15
%20 = call i32 @gamma_threshold_test(ptr noundef nonnull %0, i32 noundef %16, i32 noundef %17, i32 noundef %18, double noundef %15, double noundef %19) #3
%21 = fmul double %15, 0x3FEE666666666666
%22 = fcmp ult double %21, 4.000000e-01
br i1 %22, label %23, label %14, !llvm.loop !13
23: ; preds = %14
%24 = load i32, ptr %2, align 4, !tbaa !5
%25 = load i32, ptr %3, align 4, !tbaa !5
%26 = load i32, ptr %0, align 4, !tbaa !12
%27 = call i32 @gamma_threshold_test(ptr noundef nonnull %0, i32 noundef %24, i32 noundef %25, i32 noundef %26, double noundef 4.545500e-01, double noundef 2.200000e+00) #3
%28 = call i64 @fail(ptr noundef nonnull %0) #3
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %23, %11
%31 = load i32, ptr %5, align 4, !tbaa !9
%32 = load i32, ptr %6, align 4, !tbaa !11
%33 = call i64 @next_format(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %31, i32 noundef %32) #3
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %11, !llvm.loop !15
35: ; preds = %23, %30, %1
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret 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 @next_format(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @gamma_threshold_test(ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef) local_unnamed_addr #2
declare i64 @fail(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"TYPE_5__", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Mupen64Plus/png/contrib/libtests/extr_pngvalid.c_perform_gamma_threshold_tests.c'
source_filename = "AnghaBench/Provenance/Cores/Mupen64Plus/png/contrib/libtests/extr_pngvalid.c_perform_gamma_threshold_tests.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 @perform_gamma_threshold_tests], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @perform_gamma_threshold_tests(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
store i32 0, ptr %2, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
store i32 0, ptr %3, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
store i32 0, ptr %4, align 4, !tbaa !6
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = getelementptr inbounds i8, ptr %0, i64 4
%7 = load i32, ptr %5, align 4, !tbaa !10
%8 = load i32, ptr %6, align 4, !tbaa !12
%9 = call i64 @next_format(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %7, i32 noundef %8) #3
%10 = icmp eq i64 %9, 0
br i1 %10, label %35, label %11
11: ; preds = %1, %30
%12 = load i32, ptr %4, align 4, !tbaa !6
%13 = icmp ult i32 %12, 2
br i1 %13, label %14, label %30
14: ; preds = %11, %14
%15 = phi double [ %21, %14 ], [ 1.000000e+00, %11 ]
%16 = load i32, ptr %2, align 4, !tbaa !6
%17 = load i32, ptr %3, align 4, !tbaa !6
%18 = load i32, ptr %0, align 4, !tbaa !13
%19 = fdiv double 1.000000e+00, %15
%20 = call i32 @gamma_threshold_test(ptr noundef nonnull %0, i32 noundef %16, i32 noundef %17, i32 noundef %18, double noundef %15, double noundef %19) #3
%21 = fmul double %15, 0x3FEE666666666666
%22 = fcmp ult double %21, 4.000000e-01
br i1 %22, label %23, label %14, !llvm.loop !14
23: ; preds = %14
%24 = load i32, ptr %2, align 4, !tbaa !6
%25 = load i32, ptr %3, align 4, !tbaa !6
%26 = load i32, ptr %0, align 4, !tbaa !13
%27 = call i32 @gamma_threshold_test(ptr noundef nonnull %0, i32 noundef %24, i32 noundef %25, i32 noundef %26, double noundef 4.545500e-01, double noundef 2.200000e+00) #3
%28 = call i64 @fail(ptr noundef nonnull %0) #3
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %23, %11
%31 = load i32, ptr %5, align 4, !tbaa !10
%32 = load i32, ptr %6, align 4, !tbaa !12
%33 = call i64 @next_format(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %31, i32 noundef %32) #3
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %11, !llvm.loop !16
35: ; preds = %23, %30, %1
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret 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 @next_format(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @gamma_threshold_test(ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef) local_unnamed_addr #2
declare i64 @fail(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"TYPE_5__", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!11, !7, i64 4}
!13 = !{!11, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
| Provenance_Cores_Mupen64Plus_png_contrib_libtests_extr_pngvalid.c_perform_gamma_threshold_tests |
; ModuleID = 'AnghaBench/zfs/tests/zfs-tests/tests/functional/tmpfile/extr_tmpfile_002_pos.c_main.c'
source_filename = "AnghaBench/zfs/tests/zfs-tests/tests/functional/tmpfile/extr_tmpfile_002_pos.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [8 x i8] c"TESTDIR\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"TESTFILE0\00", align 1
@stdout = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [38 x i8] c"Verify O_TMPFILE file can be linked.\0A\00", align 1
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"getenv(penv[%d])\0A\00", align 1
@O_RDWR = dso_local local_unnamed_addr global i32 0, align 4
@O_TMPFILE = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"/proc/self/fd/%d\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@AT_FDCWD = dso_local local_unnamed_addr global i32 0, align 4
@AT_SYMLINK_FOLLOW = dso_local local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [7 x i8] c"linkat\00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"sudo zpool freeze $TESTPOOL\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"system \22zpool freeze\22\00", align 1
@.str.10 = private unnamed_addr constant [28 x i8] c"zpool freeze exits with %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"sudo zpool export $TESTPOOL\00", align 1
@.str.12 = private unnamed_addr constant [22 x i8] c"system \22zpool export\22\00", align 1
@.str.13 = private unnamed_addr constant [28 x i8] c"zpool export exits with %d\0A\00", align 1
@.str.14 = private unnamed_addr constant [28 x i8] c"sudo zpool import $TESTPOOL\00", align 1
@.str.15 = private unnamed_addr constant [22 x i8] c"system \22zpool import\22\00", align 1
@.str.16 = private unnamed_addr constant [28 x i8] c"zpool import exits with %d\0A\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"stat\00", align 1
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
%3 = alloca [1024 x i8], align 16
%4 = alloca [1024 x i8], align 16
%5 = alloca %struct.stat, align 4
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #7
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #7
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
%6 = load i32, ptr @stdout, align 4, !tbaa !5
%7 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef nonnull @.str.2) #7
%8 = tail call ptr @getenv(ptr noundef nonnull @.str)
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %15, %2
%11 = phi i32 [ 0, %2 ], [ 1, %15 ]
%12 = load i32, ptr @stderr, align 4, !tbaa !5
%13 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef nonnull @.str.3, i32 noundef %11) #7
%14 = tail call i32 @exit(i32 noundef 1) #8
unreachable
15: ; preds = %2
%16 = tail call ptr @getenv(ptr noundef nonnull @.str.1)
%17 = icmp eq ptr %16, null
br i1 %17, label %10, label %18
18: ; preds = %15
%19 = load i32, ptr @O_RDWR, align 4, !tbaa !5
%20 = load i32, ptr @O_TMPFILE, align 4, !tbaa !5
%21 = or i32 %20, %19
%22 = tail call i32 @open(ptr noundef nonnull %8, i32 noundef %21, i32 noundef 438) #7
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %18
%25 = tail call i32 @perror(ptr noundef nonnull @.str.4) #7
%26 = tail call i32 @exit(i32 noundef 2) #8
unreachable
27: ; preds = %18
%28 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %3, i32 noundef 1024, ptr noundef nonnull @.str.5, i32 noundef %22) #7
%29 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %4, i32 noundef 1024, ptr noundef nonnull @.str.6, ptr noundef nonnull %8, ptr noundef nonnull %16) #7
%30 = load i32, ptr @AT_FDCWD, align 4, !tbaa !5
%31 = load i32, ptr @AT_SYMLINK_FOLLOW, align 4, !tbaa !5
%32 = call i64 @linkat(i32 noundef %30, ptr noundef nonnull %3, i32 noundef %30, ptr noundef nonnull %4, i32 noundef %31) #7
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %27
%35 = call i32 @perror(ptr noundef nonnull @.str.7) #7
%36 = call i32 @close(i32 noundef %22) #7
%37 = call i32 @exit(i32 noundef 3) #8
unreachable
38: ; preds = %27
%39 = call i32 @system(ptr noundef nonnull @.str.8) #7
switch i32 %39, label %42 [
i32 0, label %48
i32 -1, label %40
]
40: ; preds = %38
%41 = call i32 @perror(ptr noundef nonnull @.str.9) #7
br label %46
42: ; preds = %38
%43 = load i32, ptr @stderr, align 4, !tbaa !5
%44 = call i32 @WEXITSTATUS(i32 noundef %39) #7
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef nonnull @.str.10, i32 noundef %44) #7
br label %46
46: ; preds = %42, %40
%47 = call i32 @exit(i32 noundef 4) #8
unreachable
48: ; preds = %38
%49 = call i32 @close(i32 noundef %22) #7
%50 = call i32 @system(ptr noundef nonnull @.str.11) #7
switch i32 %50, label %53 [
i32 0, label %59
i32 -1, label %51
]
51: ; preds = %48
%52 = call i32 @perror(ptr noundef nonnull @.str.12) #7
br label %57
53: ; preds = %48
%54 = load i32, ptr @stderr, align 4, !tbaa !5
%55 = call i32 @WEXITSTATUS(i32 noundef %50) #7
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef nonnull @.str.13, i32 noundef %55) #7
br label %57
57: ; preds = %53, %51
%58 = call i32 @exit(i32 noundef 4) #8
unreachable
59: ; preds = %48
%60 = call i32 @system(ptr noundef nonnull @.str.14) #7
switch i32 %60, label %63 [
i32 0, label %69
i32 -1, label %61
]
61: ; preds = %59
%62 = call i32 @perror(ptr noundef nonnull @.str.15) #7
br label %67
63: ; preds = %59
%64 = load i32, ptr @stderr, align 4, !tbaa !5
%65 = call i32 @WEXITSTATUS(i32 noundef %60) #7
%66 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef nonnull @.str.16, i32 noundef %65) #7
br label %67
67: ; preds = %63, %61
%68 = call i32 @exit(i32 noundef 4) #8
unreachable
69: ; preds = %59
%70 = call i64 @stat(ptr noundef nonnull %4, ptr noundef nonnull %5) #7
%71 = icmp slt i64 %70, 0
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = call i32 @perror(ptr noundef nonnull @.str.17) #7
%74 = call i32 @unlink(ptr noundef nonnull %4)
%75 = call i32 @exit(i32 noundef 5) #8
unreachable
76: ; preds = %69
%77 = call i32 @unlink(ptr noundef nonnull %4)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #7
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #7
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @perror(ptr noundef) local_unnamed_addr #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @linkat(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #5
declare i32 @WEXITSTATUS(i32 noundef) local_unnamed_addr #2
declare i64 @stat(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @unlink(ptr nocapture noundef readonly) local_unnamed_addr #6
; 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 memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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/zfs/tests/zfs-tests/tests/functional/tmpfile/extr_tmpfile_002_pos.c_main.c'
source_filename = "AnghaBench/zfs/tests/zfs-tests/tests/functional/tmpfile/extr_tmpfile_002_pos.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [8 x i8] c"TESTDIR\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"TESTFILE0\00", align 1
@stdout = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [38 x i8] c"Verify O_TMPFILE file can be linked.\0A\00", align 1
@stderr = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"getenv(penv[%d])\0A\00", align 1
@O_RDWR = common local_unnamed_addr global i32 0, align 4
@O_TMPFILE = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"/proc/self/fd/%d\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@AT_FDCWD = common local_unnamed_addr global i32 0, align 4
@AT_SYMLINK_FOLLOW = common local_unnamed_addr global i32 0, align 4
@.str.7 = private unnamed_addr constant [7 x i8] c"linkat\00", align 1
@.str.8 = private unnamed_addr constant [28 x i8] c"sudo zpool freeze $TESTPOOL\00", align 1
@.str.9 = private unnamed_addr constant [22 x i8] c"system \22zpool freeze\22\00", align 1
@.str.10 = private unnamed_addr constant [28 x i8] c"zpool freeze exits with %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [28 x i8] c"sudo zpool export $TESTPOOL\00", align 1
@.str.12 = private unnamed_addr constant [22 x i8] c"system \22zpool export\22\00", align 1
@.str.13 = private unnamed_addr constant [28 x i8] c"zpool export exits with %d\0A\00", align 1
@.str.14 = private unnamed_addr constant [28 x i8] c"sudo zpool import $TESTPOOL\00", align 1
@.str.15 = private unnamed_addr constant [22 x i8] c"system \22zpool import\22\00", align 1
@.str.16 = private unnamed_addr constant [28 x i8] c"zpool import exits with %d\0A\00", align 1
@.str.17 = private unnamed_addr constant [5 x i8] c"stat\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
%3 = alloca [1024 x i8], align 1
%4 = alloca [1024 x i8], align 1
%5 = alloca %struct.stat, align 4
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #7
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #7
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
%6 = load i32, ptr @stdout, align 4, !tbaa !6
%7 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef nonnull @.str.2) #7
%8 = tail call ptr @getenv(ptr noundef nonnull @.str)
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %15, %2
%11 = phi i32 [ 0, %2 ], [ 1, %15 ]
%12 = load i32, ptr @stderr, align 4, !tbaa !6
%13 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef nonnull @.str.3, i32 noundef %11) #7
%14 = tail call i32 @exit(i32 noundef 1) #8
unreachable
15: ; preds = %2
%16 = tail call ptr @getenv(ptr noundef nonnull @.str.1)
%17 = icmp eq ptr %16, null
br i1 %17, label %10, label %18
18: ; preds = %15
%19 = load i32, ptr @O_RDWR, align 4, !tbaa !6
%20 = load i32, ptr @O_TMPFILE, align 4, !tbaa !6
%21 = or i32 %20, %19
%22 = tail call i32 @open(ptr noundef nonnull %8, i32 noundef %21, i32 noundef 438) #7
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %18
%25 = tail call i32 @perror(ptr noundef nonnull @.str.4) #7
%26 = tail call i32 @exit(i32 noundef 2) #8
unreachable
27: ; preds = %18
%28 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %3, i32 noundef 1024, ptr noundef nonnull @.str.5, i32 noundef %22) #7
%29 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef nonnull %4, i32 noundef 1024, ptr noundef nonnull @.str.6, ptr noundef nonnull %8, ptr noundef nonnull %16) #7
%30 = load i32, ptr @AT_FDCWD, align 4, !tbaa !6
%31 = load i32, ptr @AT_SYMLINK_FOLLOW, align 4, !tbaa !6
%32 = call i64 @linkat(i32 noundef %30, ptr noundef nonnull %3, i32 noundef %30, ptr noundef nonnull %4, i32 noundef %31) #7
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %27
%35 = call i32 @perror(ptr noundef nonnull @.str.7) #7
%36 = call i32 @close(i32 noundef %22) #7
%37 = call i32 @exit(i32 noundef 3) #8
unreachable
38: ; preds = %27
%39 = call i32 @system(ptr noundef nonnull @.str.8) #7
switch i32 %39, label %42 [
i32 0, label %48
i32 -1, label %40
]
40: ; preds = %38
%41 = call i32 @perror(ptr noundef nonnull @.str.9) #7
br label %46
42: ; preds = %38
%43 = load i32, ptr @stderr, align 4, !tbaa !6
%44 = call i32 @WEXITSTATUS(i32 noundef %39) #7
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef nonnull @.str.10, i32 noundef %44) #7
br label %46
46: ; preds = %42, %40
%47 = call i32 @exit(i32 noundef 4) #8
unreachable
48: ; preds = %38
%49 = call i32 @close(i32 noundef %22) #7
%50 = call i32 @system(ptr noundef nonnull @.str.11) #7
switch i32 %50, label %53 [
i32 0, label %59
i32 -1, label %51
]
51: ; preds = %48
%52 = call i32 @perror(ptr noundef nonnull @.str.12) #7
br label %57
53: ; preds = %48
%54 = load i32, ptr @stderr, align 4, !tbaa !6
%55 = call i32 @WEXITSTATUS(i32 noundef %50) #7
%56 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef nonnull @.str.13, i32 noundef %55) #7
br label %57
57: ; preds = %53, %51
%58 = call i32 @exit(i32 noundef 4) #8
unreachable
59: ; preds = %48
%60 = call i32 @system(ptr noundef nonnull @.str.14) #7
switch i32 %60, label %63 [
i32 0, label %69
i32 -1, label %61
]
61: ; preds = %59
%62 = call i32 @perror(ptr noundef nonnull @.str.15) #7
br label %67
63: ; preds = %59
%64 = load i32, ptr @stderr, align 4, !tbaa !6
%65 = call i32 @WEXITSTATUS(i32 noundef %60) #7
%66 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef nonnull @.str.16, i32 noundef %65) #7
br label %67
67: ; preds = %63, %61
%68 = call i32 @exit(i32 noundef 4) #8
unreachable
69: ; preds = %59
%70 = call i64 @stat(ptr noundef nonnull %4, ptr noundef nonnull %5) #7
%71 = icmp slt i64 %70, 0
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = call i32 @perror(ptr noundef nonnull @.str.17) #7
%74 = call i32 @unlink(ptr noundef nonnull %4)
%75 = call i32 @exit(i32 noundef 5) #8
unreachable
76: ; preds = %69
%77 = call i32 @unlink(ptr noundef nonnull %4)
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #7
call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #7
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #3
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #4
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @perror(ptr noundef) local_unnamed_addr #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i64 @linkat(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @close(i32 noundef) local_unnamed_addr #2
; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #5
declare i32 @WEXITSTATUS(i32 noundef) local_unnamed_addr #2
declare i64 @stat(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: nofree nounwind
declare noundef i32 @unlink(ptr nocapture noundef readonly) local_unnamed_addr #6
; 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 memory(read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { noreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #5 = { nofree "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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"}
| zfs_tests_zfs-tests_tests_functional_tmpfile_extr_tmpfile_002_pos.c_main |
; ModuleID = 'AnghaBench/postgres/src/backend/replication/logical/extr_decode.c_DecodeCommit.c'
source_filename = "AnghaBench/postgres/src/backend/replication/logical/extr_decode.c_DecodeCommit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_12__ = type { i32, i64, i32, i64, ptr, i32, i32, i32, i32 }
%struct.TYPE_13__ = type { i32, i32, i32 }
%struct.TYPE_14__ = type { i32, i64, ptr, i32 }
@InvalidXLogRecPtr = dso_local local_unnamed_addr global i32 0, align 4
@XACT_XINFO_HAS_ORIGIN = dso_local local_unnamed_addr global i32 0, align 4
@InvalidOid = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @DecodeCommit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @DecodeCommit(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3) #0 {
%5 = load i32, ptr @InvalidXLogRecPtr, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 8
%7 = load i32, ptr %6, align 4, !tbaa !9
%8 = getelementptr inbounds %struct.TYPE_13__, ptr %1, i64 0, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !13
%10 = tail call i32 @XLogRecGetOrigin(i32 noundef %9) #2
%11 = load i32, ptr %2, align 8, !tbaa !15
%12 = load i32, ptr @XACT_XINFO_HAS_ORIGIN, align 4, !tbaa !5
%13 = and i32 %12, %11
%14 = icmp eq i32 %13, 0
br i1 %14, label %20, label %15
15: ; preds = %4
%16 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 7
%17 = load i32, ptr %16, align 8, !tbaa !16
%18 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 6
%19 = load i32, ptr %18, align 4, !tbaa !17
br label %20
20: ; preds = %15, %4
%21 = phi i32 [ %19, %15 ], [ %7, %4 ]
%22 = phi i32 [ %17, %15 ], [ %5, %4 ]
%23 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 1
%24 = load i64, ptr %23, align 8, !tbaa !18
%25 = icmp sgt i64 %24, 0
br i1 %25, label %26, label %42
26: ; preds = %20
%27 = getelementptr inbounds %struct.TYPE_14__, ptr %0, i64 0, i32 1
%28 = load i64, ptr %27, align 8, !tbaa !19
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load i32, ptr %0, align 8, !tbaa !21
%32 = getelementptr inbounds %struct.TYPE_13__, ptr %1, i64 0, i32 1
%33 = load i32, ptr %32, align 4, !tbaa !22
%34 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 5
%35 = load i32, ptr %34, align 8, !tbaa !23
%36 = tail call i32 @ReorderBufferAddInvalidations(i32 noundef %31, i32 noundef %3, i32 noundef %33, i64 noundef %24, i32 noundef %35) #2
br label %37
37: ; preds = %30, %26
%38 = load i32, ptr %0, align 8, !tbaa !21
%39 = getelementptr inbounds %struct.TYPE_13__, ptr %1, i64 0, i32 1
%40 = load i32, ptr %39, align 4, !tbaa !22
%41 = tail call i32 @ReorderBufferXidSetCatalogChanges(i32 noundef %38, i32 noundef %3, i32 noundef %40) #2
br label %42
42: ; preds = %37, %20
%43 = getelementptr inbounds %struct.TYPE_14__, ptr %0, i64 0, i32 3
%44 = load i32, ptr %43, align 8, !tbaa !24
%45 = getelementptr inbounds %struct.TYPE_13__, ptr %1, i64 0, i32 1
%46 = load i32, ptr %45, align 4, !tbaa !22
%47 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 2
%48 = load i32, ptr %47, align 8, !tbaa !25
%49 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 4
%50 = load ptr, ptr %49, align 8, !tbaa !26
%51 = tail call i32 @SnapBuildCommitTxn(i32 noundef %44, i32 noundef %46, i32 noundef %3, i32 noundef %48, ptr noundef %50) #2
%52 = load i32, ptr %43, align 8, !tbaa !24
%53 = load i32, ptr %45, align 4, !tbaa !22
%54 = tail call i64 @SnapBuildXactNeedsSkip(i32 noundef %52, i32 noundef %53) #2
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %76
56: ; preds = %42
%57 = getelementptr inbounds %struct.TYPE_12__, ptr %2, i64 0, i32 3
%58 = load i64, ptr %57, align 8, !tbaa !27
%59 = load i64, ptr @InvalidOid, align 8, !tbaa !28
%60 = icmp eq i64 %58, %59
br i1 %60, label %66, label %61
61: ; preds = %56
%62 = getelementptr inbounds %struct.TYPE_14__, ptr %0, i64 0, i32 2
%63 = load ptr, ptr %62, align 8, !tbaa !29
%64 = load i64, ptr %63, align 8, !tbaa !30
%65 = icmp eq i64 %58, %64
br i1 %65, label %66, label %76
66: ; preds = %61, %56
%67 = getelementptr inbounds %struct.TYPE_14__, ptr %0, i64 0, i32 1
%68 = load i64, ptr %67, align 8, !tbaa !19
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %76
70: ; preds = %66
%71 = tail call i64 @FilterByOrigin(ptr noundef nonnull %0, i32 noundef %10) #2
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load i32, ptr %47, align 8, !tbaa !25
%75 = icmp sgt i32 %74, 0
br i1 %75, label %95, label %108
76: ; preds = %70, %66, %61, %42
%77 = load i32, ptr %47, align 8, !tbaa !25
%78 = icmp sgt i32 %77, 0
br i1 %78, label %79, label %91
79: ; preds = %76, %79
%80 = phi i64 [ %87, %79 ], [ 0, %76 ]
%81 = load i32, ptr %0, align 8, !tbaa !21
%82 = load ptr, ptr %49, align 8, !tbaa !26
%83 = getelementptr inbounds i32, ptr %82, i64 %80
%84 = load i32, ptr %83, align 4, !tbaa !5
%85 = load i32, ptr %45, align 4, !tbaa !22
%86 = tail call i32 @ReorderBufferForget(i32 noundef %81, i32 noundef %84, i32 noundef %85) #2
%87 = add nuw nsw i64 %80, 1
%88 = load i32, ptr %47, align 8, !tbaa !25
%89 = sext i32 %88 to i64
%90 = icmp slt i64 %87, %89
br i1 %90, label %79, label %91, !llvm.loop !33
91: ; preds = %79, %76
%92 = load i32, ptr %0, align 8, !tbaa !21
%93 = load i32, ptr %45, align 4, !tbaa !22
%94 = tail call i32 @ReorderBufferForget(i32 noundef %92, i32 noundef %3, i32 noundef %93) #2
br label %113
95: ; preds = %73, %95
%96 = phi i64 [ %104, %95 ], [ 0, %73 ]
%97 = load i32, ptr %0, align 8, !tbaa !21
%98 = load ptr, ptr %49, align 8, !tbaa !26
%99 = getelementptr inbounds i32, ptr %98, i64 %96
%100 = load i32, ptr %99, align 4, !tbaa !5
%101 = load i32, ptr %45, align 4, !tbaa !22
%102 = load i32, ptr %1, align 4, !tbaa !35
%103 = tail call i32 @ReorderBufferCommitChild(i32 noundef %97, i32 noundef %3, i32 noundef %100, i32 noundef %101, i32 noundef %102) #2
%104 = add nuw nsw i64 %96, 1
%105 = load i32, ptr %47, align 8, !tbaa !25
%106 = sext i32 %105 to i64
%107 = icmp slt i64 %104, %106
br i1 %107, label %95, label %108, !llvm.loop !36
108: ; preds = %95, %73
%109 = load i32, ptr %0, align 8, !tbaa !21
%110 = load i32, ptr %45, align 4, !tbaa !22
%111 = load i32, ptr %1, align 4, !tbaa !35
%112 = tail call i32 @ReorderBufferCommit(i32 noundef %109, i32 noundef %3, i32 noundef %110, i32 noundef %111, i32 noundef %21, i32 noundef %10, i32 noundef %22) #2
br label %113
113: ; preds = %108, %91
ret void
}
declare i32 @XLogRecGetOrigin(i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferAddInvalidations(i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferXidSetCatalogChanges(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SnapBuildCommitTxn(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @SnapBuildXactNeedsSkip(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @FilterByOrigin(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferForget(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferCommitChild(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferCommit(i32 noundef, i32 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 52}
!10 = !{!"TYPE_12__", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !12, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"TYPE_13__", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !6, i64 48}
!17 = !{!10, !6, i64 44}
!18 = !{!10, !11, i64 8}
!19 = !{!20, !11, i64 8}
!20 = !{!"TYPE_14__", !6, i64 0, !11, i64 8, !12, i64 16, !6, i64 24}
!21 = !{!20, !6, i64 0}
!22 = !{!14, !6, i64 4}
!23 = !{!10, !6, i64 40}
!24 = !{!20, !6, i64 24}
!25 = !{!10, !6, i64 16}
!26 = !{!10, !12, i64 32}
!27 = !{!10, !11, i64 24}
!28 = !{!11, !11, i64 0}
!29 = !{!20, !12, i64 16}
!30 = !{!31, !11, i64 0}
!31 = !{!"TYPE_11__", !32, i64 0}
!32 = !{!"TYPE_10__", !11, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!14, !6, i64 0}
!36 = distinct !{!36, !34}
| ; ModuleID = 'AnghaBench/postgres/src/backend/replication/logical/extr_decode.c_DecodeCommit.c'
source_filename = "AnghaBench/postgres/src/backend/replication/logical/extr_decode.c_DecodeCommit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@InvalidXLogRecPtr = common local_unnamed_addr global i32 0, align 4
@XACT_XINFO_HAS_ORIGIN = common local_unnamed_addr global i32 0, align 4
@InvalidOid = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @DecodeCommit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @DecodeCommit(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3) #0 {
%5 = load i32, ptr @InvalidXLogRecPtr, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %2, i64 52
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = getelementptr inbounds i8, ptr %1, i64 8
%9 = load i32, ptr %8, align 4, !tbaa !14
%10 = tail call i32 @XLogRecGetOrigin(i32 noundef %9) #2
%11 = load i32, ptr %2, align 8, !tbaa !16
%12 = load i32, ptr @XACT_XINFO_HAS_ORIGIN, align 4, !tbaa !6
%13 = and i32 %12, %11
%14 = icmp eq i32 %13, 0
br i1 %14, label %20, label %15
15: ; preds = %4
%16 = getelementptr inbounds i8, ptr %2, i64 48
%17 = load i32, ptr %16, align 8, !tbaa !17
%18 = getelementptr inbounds i8, ptr %2, i64 44
%19 = load i32, ptr %18, align 4, !tbaa !18
br label %20
20: ; preds = %15, %4
%21 = phi i32 [ %19, %15 ], [ %7, %4 ]
%22 = phi i32 [ %17, %15 ], [ %5, %4 ]
%23 = getelementptr inbounds i8, ptr %2, i64 8
%24 = load i64, ptr %23, align 8, !tbaa !19
%25 = icmp sgt i64 %24, 0
br i1 %25, label %26, label %42
26: ; preds = %20
%27 = getelementptr inbounds i8, ptr %0, i64 8
%28 = load i64, ptr %27, align 8, !tbaa !20
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load i32, ptr %0, align 8, !tbaa !22
%32 = getelementptr inbounds i8, ptr %1, i64 4
%33 = load i32, ptr %32, align 4, !tbaa !23
%34 = getelementptr inbounds i8, ptr %2, i64 40
%35 = load i32, ptr %34, align 8, !tbaa !24
%36 = tail call i32 @ReorderBufferAddInvalidations(i32 noundef %31, i32 noundef %3, i32 noundef %33, i64 noundef %24, i32 noundef %35) #2
br label %37
37: ; preds = %30, %26
%38 = load i32, ptr %0, align 8, !tbaa !22
%39 = getelementptr inbounds i8, ptr %1, i64 4
%40 = load i32, ptr %39, align 4, !tbaa !23
%41 = tail call i32 @ReorderBufferXidSetCatalogChanges(i32 noundef %38, i32 noundef %3, i32 noundef %40) #2
br label %42
42: ; preds = %37, %20
%43 = getelementptr inbounds i8, ptr %0, i64 24
%44 = load i32, ptr %43, align 8, !tbaa !25
%45 = getelementptr inbounds i8, ptr %1, i64 4
%46 = load i32, ptr %45, align 4, !tbaa !23
%47 = getelementptr inbounds i8, ptr %2, i64 16
%48 = load i32, ptr %47, align 8, !tbaa !26
%49 = getelementptr inbounds i8, ptr %2, i64 32
%50 = load ptr, ptr %49, align 8, !tbaa !27
%51 = tail call i32 @SnapBuildCommitTxn(i32 noundef %44, i32 noundef %46, i32 noundef %3, i32 noundef %48, ptr noundef %50) #2
%52 = load i32, ptr %43, align 8, !tbaa !25
%53 = load i32, ptr %45, align 4, !tbaa !23
%54 = tail call i64 @SnapBuildXactNeedsSkip(i32 noundef %52, i32 noundef %53) #2
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %76
56: ; preds = %42
%57 = getelementptr inbounds i8, ptr %2, i64 24
%58 = load i64, ptr %57, align 8, !tbaa !28
%59 = load i64, ptr @InvalidOid, align 8, !tbaa !29
%60 = icmp eq i64 %58, %59
br i1 %60, label %66, label %61
61: ; preds = %56
%62 = getelementptr inbounds i8, ptr %0, i64 16
%63 = load ptr, ptr %62, align 8, !tbaa !30
%64 = load i64, ptr %63, align 8, !tbaa !31
%65 = icmp eq i64 %58, %64
br i1 %65, label %66, label %76
66: ; preds = %61, %56
%67 = getelementptr inbounds i8, ptr %0, i64 8
%68 = load i64, ptr %67, align 8, !tbaa !20
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %76
70: ; preds = %66
%71 = tail call i64 @FilterByOrigin(ptr noundef nonnull %0, i32 noundef %10) #2
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load i32, ptr %47, align 8, !tbaa !26
%75 = icmp sgt i32 %74, 0
br i1 %75, label %95, label %108
76: ; preds = %70, %66, %61, %42
%77 = load i32, ptr %47, align 8, !tbaa !26
%78 = icmp sgt i32 %77, 0
br i1 %78, label %79, label %91
79: ; preds = %76, %79
%80 = phi i64 [ %87, %79 ], [ 0, %76 ]
%81 = load i32, ptr %0, align 8, !tbaa !22
%82 = load ptr, ptr %49, align 8, !tbaa !27
%83 = getelementptr inbounds i32, ptr %82, i64 %80
%84 = load i32, ptr %83, align 4, !tbaa !6
%85 = load i32, ptr %45, align 4, !tbaa !23
%86 = tail call i32 @ReorderBufferForget(i32 noundef %81, i32 noundef %84, i32 noundef %85) #2
%87 = add nuw nsw i64 %80, 1
%88 = load i32, ptr %47, align 8, !tbaa !26
%89 = sext i32 %88 to i64
%90 = icmp slt i64 %87, %89
br i1 %90, label %79, label %91, !llvm.loop !34
91: ; preds = %79, %76
%92 = load i32, ptr %0, align 8, !tbaa !22
%93 = load i32, ptr %45, align 4, !tbaa !23
%94 = tail call i32 @ReorderBufferForget(i32 noundef %92, i32 noundef %3, i32 noundef %93) #2
br label %113
95: ; preds = %73, %95
%96 = phi i64 [ %104, %95 ], [ 0, %73 ]
%97 = load i32, ptr %0, align 8, !tbaa !22
%98 = load ptr, ptr %49, align 8, !tbaa !27
%99 = getelementptr inbounds i32, ptr %98, i64 %96
%100 = load i32, ptr %99, align 4, !tbaa !6
%101 = load i32, ptr %45, align 4, !tbaa !23
%102 = load i32, ptr %1, align 4, !tbaa !36
%103 = tail call i32 @ReorderBufferCommitChild(i32 noundef %97, i32 noundef %3, i32 noundef %100, i32 noundef %101, i32 noundef %102) #2
%104 = add nuw nsw i64 %96, 1
%105 = load i32, ptr %47, align 8, !tbaa !26
%106 = sext i32 %105 to i64
%107 = icmp slt i64 %104, %106
br i1 %107, label %95, label %108, !llvm.loop !37
108: ; preds = %95, %73
%109 = load i32, ptr %0, align 8, !tbaa !22
%110 = load i32, ptr %45, align 4, !tbaa !23
%111 = load i32, ptr %1, align 4, !tbaa !36
%112 = tail call i32 @ReorderBufferCommit(i32 noundef %109, i32 noundef %3, i32 noundef %110, i32 noundef %111, i32 noundef %21, i32 noundef %10, i32 noundef %22) #2
br label %113
113: ; preds = %108, %91
ret void
}
declare i32 @XLogRecGetOrigin(i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferAddInvalidations(i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferXidSetCatalogChanges(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @SnapBuildCommitTxn(i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @SnapBuildXactNeedsSkip(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @FilterByOrigin(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferForget(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferCommitChild(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ReorderBufferCommit(i32 noundef, i32 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, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 52}
!11 = !{!"TYPE_12__", !7, i64 0, !12, i64 8, !7, i64 16, !12, i64 24, !13, i64 32, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 8}
!15 = !{!"TYPE_13__", !7, i64 0, !7, i64 4, !7, i64 8}
!16 = !{!11, !7, i64 0}
!17 = !{!11, !7, i64 48}
!18 = !{!11, !7, i64 44}
!19 = !{!11, !12, i64 8}
!20 = !{!21, !12, i64 8}
!21 = !{!"TYPE_14__", !7, i64 0, !12, i64 8, !13, i64 16, !7, i64 24}
!22 = !{!21, !7, i64 0}
!23 = !{!15, !7, i64 4}
!24 = !{!11, !7, i64 40}
!25 = !{!21, !7, i64 24}
!26 = !{!11, !7, i64 16}
!27 = !{!11, !13, i64 32}
!28 = !{!11, !12, i64 24}
!29 = !{!12, !12, i64 0}
!30 = !{!21, !13, i64 16}
!31 = !{!32, !12, i64 0}
!32 = !{!"TYPE_11__", !33, i64 0}
!33 = !{!"TYPE_10__", !12, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!15, !7, i64 0}
!37 = distinct !{!37, !35}
| postgres_src_backend_replication_logical_extr_decode.c_DecodeCommit |
; ModuleID = 'AnghaBench/Provenance/Cores/Atari800/atari800-src/extr_ide.c_ide_data_writew.c'
source_filename = "AnghaBench/Provenance/Cores/Atari800/atari800-src/extr_ide.c_ide_data_writew.c"
target datalayout = "e-m:e-p270:32:32-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.ide_device = type { i32, ptr, ptr, ptr }
@IDE_debug = dso_local local_unnamed_addr global i64 0, align 8
@stderr = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"data_writew: %d, %04x\0A\00", align 1
@DRQ_STAT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ide_data_writew], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ide_data_writew(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr @IDE_debug, align 8, !tbaa !5
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i32, ptr @stderr, align 4, !tbaa !9
%8 = tail call i32 @fprintf(i32 noundef %7, ptr noundef nonnull @.str, i32 noundef %1, i32 noundef %2) #2
br label %9
9: ; preds = %6, %3
%10 = load i32, ptr %0, align 8, !tbaa !11
%11 = load i32, ptr @DRQ_STAT, align 4, !tbaa !9
%12 = and i32 %11, %10
%13 = icmp eq i32 %12, 0
br i1 %13, label %28, label %14
14: ; preds = %9
%15 = getelementptr inbounds %struct.ide_device, ptr %0, i64 0, i32 1
%16 = load ptr, ptr %15, align 8, !tbaa !14
%17 = and i32 %2, 255
store i32 %17, ptr %16, align 4, !tbaa !9
%18 = ashr i32 %2, 8
%19 = getelementptr inbounds i32, ptr %16, i64 1
store i32 %18, ptr %19, align 4, !tbaa !9
%20 = getelementptr inbounds i32, ptr %16, i64 2
store ptr %20, ptr %15, align 8, !tbaa !14
%21 = getelementptr inbounds %struct.ide_device, ptr %0, i64 0, i32 2
%22 = load ptr, ptr %21, align 8, !tbaa !15
%23 = icmp ult ptr %20, %22
br i1 %23, label %28, label %24
24: ; preds = %14
%25 = getelementptr inbounds %struct.ide_device, ptr %0, i64 0, i32 3
%26 = load ptr, ptr %25, align 8, !tbaa !16
%27 = tail call i32 %26(ptr noundef nonnull %0) #2
br label %28
28: ; preds = %14, %24, %9
ret void
}
declare i32 @fprintf(i32 noundef, 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"ide_device", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !13, i64 16}
!16 = !{!12, !13, i64 24}
| ; ModuleID = 'AnghaBench/Provenance/Cores/Atari800/atari800-src/extr_ide.c_ide_data_writew.c'
source_filename = "AnghaBench/Provenance/Cores/Atari800/atari800-src/extr_ide.c_ide_data_writew.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IDE_debug = common local_unnamed_addr global i64 0, align 8
@stderr = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"data_writew: %d, %04x\0A\00", align 1
@DRQ_STAT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ide_data_writew], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ide_data_writew(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = load i64, ptr @IDE_debug, align 8, !tbaa !6
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i32, ptr @stderr, align 4, !tbaa !10
%8 = tail call i32 @fprintf(i32 noundef %7, ptr noundef nonnull @.str, i32 noundef %1, i32 noundef %2) #2
br label %9
9: ; preds = %6, %3
%10 = load i32, ptr %0, align 8, !tbaa !12
%11 = load i32, ptr @DRQ_STAT, align 4, !tbaa !10
%12 = and i32 %11, %10
%13 = icmp eq i32 %12, 0
br i1 %13, label %28, label %14
14: ; preds = %9
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load ptr, ptr %15, align 8, !tbaa !15
%17 = and i32 %2, 255
store i32 %17, ptr %16, align 4, !tbaa !10
%18 = ashr i32 %2, 8
%19 = getelementptr inbounds i8, ptr %16, i64 4
store i32 %18, ptr %19, align 4, !tbaa !10
%20 = getelementptr inbounds i8, ptr %16, i64 8
store ptr %20, ptr %15, align 8, !tbaa !15
%21 = getelementptr inbounds i8, ptr %0, i64 16
%22 = load ptr, ptr %21, align 8, !tbaa !16
%23 = icmp ult ptr %20, %22
br i1 %23, label %28, label %24
24: ; preds = %14
%25 = getelementptr inbounds i8, ptr %0, i64 24
%26 = load ptr, ptr %25, align 8, !tbaa !17
%27 = tail call i32 %26(ptr noundef nonnull %0) #2
br label %28
28: ; preds = %14, %24, %9
ret void
}
declare i32 @fprintf(i32 noundef, 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 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"ide_device", !11, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!13, !14, i64 16}
!17 = !{!13, !14, i64 24}
| Provenance_Cores_Atari800_atari800-src_extr_ide.c_ide_data_writew |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/calxeda/extr_xgmac.c_xgmac_free_dma_desc_rings.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/calxeda/extr_xgmac.c_xgmac_free_dma_desc_rings.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.xgmac_priv = type { ptr, ptr, ptr, i32, i32, ptr, i32 }
@DMA_TX_RING_SZ = dso_local local_unnamed_addr global i32 0, align 4
@DMA_RX_RING_SZ = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @xgmac_free_dma_desc_rings], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @xgmac_free_dma_desc_rings(ptr noundef %0) #0 {
%2 = tail call i32 @xgmac_free_rx_skbufs(ptr noundef %0) #2
%3 = tail call i32 @xgmac_free_tx_skbufs(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 5
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = icmp eq ptr %5, null
br i1 %6, label %15, label %7
7: ; preds = %1
%8 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 4
%9 = load i32, ptr %8, align 4, !tbaa !11
%10 = load i32, ptr @DMA_TX_RING_SZ, align 4, !tbaa !12
%11 = shl i32 %10, 2
%12 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 6
%13 = load i32, ptr %12, align 8, !tbaa !13
%14 = tail call i32 @dma_free_coherent(i32 noundef %9, i32 noundef %11, ptr noundef nonnull %5, i32 noundef %13) #2
store ptr null, ptr %4, align 8, !tbaa !5
br label %15
15: ; preds = %7, %1
%16 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 2
%17 = load ptr, ptr %16, align 8, !tbaa !14
%18 = icmp eq ptr %17, null
br i1 %18, label %27, label %19
19: ; preds = %15
%20 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 4
%21 = load i32, ptr %20, align 4, !tbaa !11
%22 = load i32, ptr @DMA_RX_RING_SZ, align 4, !tbaa !12
%23 = shl i32 %22, 2
%24 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 3
%25 = load i32, ptr %24, align 8, !tbaa !15
%26 = tail call i32 @dma_free_coherent(i32 noundef %21, i32 noundef %23, ptr noundef nonnull %17, i32 noundef %25) #2
store ptr null, ptr %16, align 8, !tbaa !14
br label %27
27: ; preds = %19, %15
%28 = getelementptr inbounds %struct.xgmac_priv, ptr %0, i64 0, i32 1
%29 = load ptr, ptr %28, align 8, !tbaa !16
%30 = tail call i32 @kfree(ptr noundef %29) #2
store ptr null, ptr %28, align 8, !tbaa !16
%31 = load ptr, ptr %0, align 8, !tbaa !17
%32 = tail call i32 @kfree(ptr noundef %31) #2
store ptr null, ptr %0, align 8, !tbaa !17
ret void
}
declare i32 @xgmac_free_rx_skbufs(ptr noundef) local_unnamed_addr #1
declare i32 @xgmac_free_tx_skbufs(ptr noundef) local_unnamed_addr #1
declare i32 @dma_free_coherent(i32 noundef, i32 noundef, 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, !7, i64 32}
!6 = !{!"xgmac_priv", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !7, i64 32, !10, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 28}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 40}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !10, i64 24}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/calxeda/extr_xgmac.c_xgmac_free_dma_desc_rings.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/calxeda/extr_xgmac.c_xgmac_free_dma_desc_rings.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DMA_TX_RING_SZ = common local_unnamed_addr global i32 0, align 4
@DMA_RX_RING_SZ = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @xgmac_free_dma_desc_rings], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @xgmac_free_dma_desc_rings(ptr noundef %0) #0 {
%2 = tail call i32 @xgmac_free_rx_skbufs(ptr noundef %0) #2
%3 = tail call i32 @xgmac_free_tx_skbufs(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %0, i64 32
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = icmp eq ptr %5, null
br i1 %6, label %15, label %7
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %0, i64 28
%9 = load i32, ptr %8, align 4, !tbaa !12
%10 = load i32, ptr @DMA_TX_RING_SZ, align 4, !tbaa !13
%11 = shl i32 %10, 2
%12 = getelementptr inbounds i8, ptr %0, i64 40
%13 = load i32, ptr %12, align 8, !tbaa !14
%14 = tail call i32 @dma_free_coherent(i32 noundef %9, i32 noundef %11, ptr noundef nonnull %5, i32 noundef %13) #2
store ptr null, ptr %4, align 8, !tbaa !6
br label %15
15: ; preds = %7, %1
%16 = getelementptr inbounds i8, ptr %0, i64 16
%17 = load ptr, ptr %16, align 8, !tbaa !15
%18 = icmp eq ptr %17, null
br i1 %18, label %27, label %19
19: ; preds = %15
%20 = getelementptr inbounds i8, ptr %0, i64 28
%21 = load i32, ptr %20, align 4, !tbaa !12
%22 = load i32, ptr @DMA_RX_RING_SZ, align 4, !tbaa !13
%23 = shl i32 %22, 2
%24 = getelementptr inbounds i8, ptr %0, i64 24
%25 = load i32, ptr %24, align 8, !tbaa !16
%26 = tail call i32 @dma_free_coherent(i32 noundef %21, i32 noundef %23, ptr noundef nonnull %17, i32 noundef %25) #2
store ptr null, ptr %16, align 8, !tbaa !15
br label %27
27: ; preds = %19, %15
%28 = getelementptr inbounds i8, ptr %0, i64 8
%29 = load ptr, ptr %28, align 8, !tbaa !17
%30 = tail call i32 @kfree(ptr noundef %29) #2
store ptr null, ptr %28, align 8, !tbaa !17
%31 = load ptr, ptr %0, align 8, !tbaa !18
%32 = tail call i32 @kfree(ptr noundef %31) #2
store ptr null, ptr %0, align 8, !tbaa !18
ret void
}
declare i32 @xgmac_free_rx_skbufs(ptr noundef) local_unnamed_addr #1
declare i32 @xgmac_free_tx_skbufs(ptr noundef) local_unnamed_addr #1
declare i32 @dma_free_coherent(i32 noundef, i32 noundef, 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, !8, i64 32}
!7 = !{!"xgmac_priv", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !11, i64 28, !8, i64 32, !11, i64 40}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!7, !11, i64 28}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !11, i64 40}
!15 = !{!7, !8, i64 16}
!16 = !{!7, !11, i64 24}
!17 = !{!7, !8, i64 8}
!18 = !{!7, !8, i64 0}
| linux_drivers_net_ethernet_calxeda_extr_xgmac.c_xgmac_free_dma_desc_rings |
; ModuleID = 'AnghaBench/linux/fs/cifs/extr_cifsacl.c_cifs_idmap_key_instantiate.c'
source_filename = "AnghaBench/linux/fs/cifs/extr_cifsacl.c_cifs_idmap_key_instantiate.c"
target datalayout = "e-m:e-p270:32:32-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.key = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { ptr }
%struct.key_preparsed_payload = type { i32, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @cifs_idmap_key_instantiate], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @cifs_idmap_key_instantiate(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = icmp ult i32 %3, 9
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = getelementptr inbounds %struct.key, ptr %0, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !10
store ptr null, ptr %7, align 8, !tbaa !14
%8 = getelementptr inbounds %struct.key_preparsed_payload, ptr %1, i64 0, i32 1
%9 = load i32, ptr %8, align 4, !tbaa !15
%10 = tail call i32 @memcpy(ptr noundef nonnull %6, i32 noundef %9, i32 noundef %3) #2
br label %23
11: ; preds = %2
%12 = getelementptr inbounds %struct.key_preparsed_payload, ptr %1, i64 0, i32 1
%13 = load i32, ptr %12, align 4, !tbaa !15
%14 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !16
%15 = tail call ptr @kmemdup(i32 noundef %13, i32 noundef %3, i32 noundef %14) #2
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, ptr @ENOMEM, align 4, !tbaa !16
%19 = sub nsw i32 0, %18
br label %25
20: ; preds = %11
%21 = getelementptr inbounds %struct.key, ptr %0, i64 0, i32 1
%22 = load ptr, ptr %21, align 8, !tbaa !10
store ptr %15, ptr %22, align 8, !tbaa !14
br label %23
23: ; preds = %20, %5
%24 = load i32, ptr %1, align 4, !tbaa !5
store i32 %24, ptr %0, align 8, !tbaa !17
br label %25
25: ; preds = %23, %17
%26 = phi i32 [ 0, %23 ], [ %19, %17 ]
ret i32 %26
}
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @kmemdup(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 = !{!"key_preparsed_payload", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 8}
!11 = !{!"key", !7, i64 0, !12, i64 8}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!6, !7, i64 4}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/fs/cifs/extr_cifsacl.c_cifs_idmap_key_instantiate.c'
source_filename = "AnghaBench/linux/fs/cifs/extr_cifsacl.c_cifs_idmap_key_instantiate.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @cifs_idmap_key_instantiate], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @cifs_idmap_key_instantiate(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
%4 = icmp ult i32 %3, 9
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !11
store ptr null, ptr %7, align 8, !tbaa !15
%8 = getelementptr inbounds i8, ptr %1, i64 4
%9 = load i32, ptr %8, align 4, !tbaa !16
%10 = tail call i32 @memcpy(ptr noundef nonnull %6, i32 noundef %9, i32 noundef %3) #2
br label %23
11: ; preds = %2
%12 = getelementptr inbounds i8, ptr %1, i64 4
%13 = load i32, ptr %12, align 4, !tbaa !16
%14 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !17
%15 = tail call ptr @kmemdup(i32 noundef %13, i32 noundef %3, i32 noundef %14) #2
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = load i32, ptr @ENOMEM, align 4, !tbaa !17
%19 = sub nsw i32 0, %18
br label %25
20: ; preds = %11
%21 = getelementptr inbounds i8, ptr %0, i64 8
%22 = load ptr, ptr %21, align 8, !tbaa !11
store ptr %15, ptr %22, align 8, !tbaa !15
br label %23
23: ; preds = %20, %5
%24 = load i32, ptr %1, align 4, !tbaa !6
store i32 %24, ptr %0, align 8, !tbaa !18
br label %25
25: ; preds = %23, %17
%26 = phi i32 [ 0, %23 ], [ %19, %17 ]
ret i32 %26
}
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare ptr @kmemdup(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 = !{!"key_preparsed_payload", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !14, i64 8}
!12 = !{!"key", !8, i64 0, !13, i64 8}
!13 = !{!"TYPE_2__", !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!7, !8, i64 4}
!17 = !{!8, !8, i64 0}
!18 = !{!12, !8, i64 0}
| linux_fs_cifs_extr_cifsacl.c_cifs_idmap_key_instantiate |
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_macrotab.c_macro_lookup_definition.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_macrotab.c_macro_lookup_definition.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local ptr @macro_lookup_definition(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @find_definition(ptr noundef %2, ptr noundef %0, i32 noundef %1) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i64, ptr %4, align 8, !tbaa !5
%8 = inttoptr i64 %7 to ptr
br label %9
9: ; preds = %3, %6
%10 = phi ptr [ %8, %6 ], [ null, %3 ]
ret ptr %10
}
declare ptr @find_definition(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 = !{!"TYPE_3__", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_macrotab.c_macro_lookup_definition.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_macrotab.c_macro_lookup_definition.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @macro_lookup_definition(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @find_definition(ptr noundef %2, ptr noundef %0, i32 noundef %1) #2
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i64, ptr %4, align 8, !tbaa !6
%8 = inttoptr i64 %7 to ptr
br label %9
9: ; preds = %3, %6
%10 = phi ptr [ %8, %6 ], [ null, %3 ]
ret ptr %10
}
declare ptr @find_definition(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 = !{!"TYPE_3__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| freebsd_contrib_gdb_gdb_extr_macrotab.c_macro_lookup_definition |
; ModuleID = 'AnghaBench/linux/net/ipv4/extr_tcp_bpf.c_tcp_bpf_push.c'
source_filename = "AnghaBench/linux/net/ipv4/extr_tcp_bpf.c_tcp_bpf_push.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i32, i64 }
%struct.scatterlist = type { i32, i32 }
@MSG_SENDPAGE_NOPOLICY = dso_local local_unnamed_addr global i32 0, align 4
@start = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @tcp_bpf_push], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @tcp_bpf_push(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = icmp eq i32 %2, 0
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %1, i64 0, i32 1
%8 = icmp eq i32 %4, 0
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %1, i64 0, i32 2
br label %10
10: ; preds = %72, %5
%11 = phi i32 [ %3, %5 ], [ %36, %72 ]
%12 = phi i32 [ %2, %5 ], [ %41, %72 ]
%13 = load i64, ptr %1, align 8, !tbaa !5
%14 = tail call ptr @sk_msg_elem(ptr noundef nonnull %1, i64 noundef %13) #3
%15 = load i32, ptr %14, align 4, !tbaa !12
%16 = tail call i32 @llvm.smin.i32(i32 %12, i32 %15)
%17 = select i1 %6, i32 %15, i32 %16
%18 = getelementptr inbounds %struct.scatterlist, ptr %14, i64 0, i32 1
%19 = load i32, ptr %18, align 4, !tbaa !14
%20 = tail call ptr @sg_page(ptr noundef nonnull %14) #3
%21 = tail call i32 @tcp_rate_check_app_limited(ptr noundef %0) #3
br label %22
22: ; preds = %52, %10
%23 = phi i32 [ %11, %10 ], [ %36, %52 ]
%24 = phi i32 [ %12, %10 ], [ %41, %52 ]
%25 = phi i32 [ %17, %10 ], [ %53, %52 ]
%26 = phi i32 [ %19, %10 ], [ %54, %52 ]
%27 = tail call i32 @tls_sw_has_ctx_tx(ptr noundef %0) #3
%28 = icmp eq i32 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %22
%30 = load i32, ptr @MSG_SENDPAGE_NOPOLICY, align 4, !tbaa !15
%31 = or i32 %30, %23
%32 = tail call i32 @kernel_sendpage_locked(ptr noundef %0, ptr noundef %20, i32 noundef %26, i32 noundef %25, i32 noundef %31) #3
br label %35
33: ; preds = %22
%34 = tail call i32 @do_tcp_sendpages(ptr noundef %0, ptr noundef %20, i32 noundef %26, i32 noundef %25, i32 noundef %23) #3
br label %35
35: ; preds = %33, %29
%36 = phi i32 [ %31, %29 ], [ %23, %33 ]
%37 = phi i32 [ %32, %29 ], [ %34, %33 ]
%38 = icmp slt i32 %37, 1
br i1 %38, label %73, label %39
39: ; preds = %35
%40 = select i1 %6, i32 0, i32 %37
%41 = sub nsw i32 %24, %40
%42 = load i32, ptr %7, align 8, !tbaa !16
%43 = sub nsw i32 %42, %37
store i32 %43, ptr %7, align 8, !tbaa !16
%44 = load i32, ptr %18, align 4, !tbaa !14
%45 = add nsw i32 %44, %37
store i32 %45, ptr %18, align 4, !tbaa !14
%46 = load i32, ptr %14, align 4, !tbaa !12
%47 = sub nsw i32 %46, %37
store i32 %47, ptr %14, align 4, !tbaa !12
br i1 %8, label %50, label %48
48: ; preds = %39
%49 = tail call i32 @sk_mem_uncharge(ptr noundef %0, i32 noundef %37) #3
br label %50
50: ; preds = %48, %39
%51 = icmp eq i32 %37, %25
br i1 %51, label %55, label %52
52: ; preds = %50
%53 = sub nsw i32 %25, %37
%54 = add nsw i32 %37, %26
br label %22
55: ; preds = %50
%56 = load i32, ptr %14, align 4, !tbaa !12
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %69
58: ; preds = %55
%59 = tail call i32 @put_page(ptr noundef %20) #3
%60 = load i32, ptr @start, align 4, !tbaa !15
%61 = tail call i32 @sk_msg_iter_next(ptr noundef nonnull %1, i32 noundef %60) #3
%62 = tail call i32 @sg_init_table(ptr noundef nonnull %14, i32 noundef 1) #3
%63 = load i64, ptr %1, align 8, !tbaa !5
%64 = load i64, ptr %9, align 8, !tbaa !17
%65 = icmp ne i64 %63, %64
%66 = icmp ne i32 %41, 0
%67 = select i1 %6, i1 true, i1 %66
%68 = select i1 %65, i1 %67, i1 false
br i1 %68, label %72, label %73
69: ; preds = %55
%70 = icmp ne i32 %41, 0
%71 = select i1 %6, i1 true, i1 %70
br i1 %71, label %72, label %73
72: ; preds = %69, %58
br label %10
73: ; preds = %69, %58, %35
%74 = phi i32 [ %37, %35 ], [ 0, %58 ], [ 0, %69 ]
ret i32 %74
}
declare ptr @sk_msg_elem(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @sg_page(ptr noundef) local_unnamed_addr #1
declare i32 @tcp_rate_check_app_limited(ptr noundef) local_unnamed_addr #1
declare i32 @tls_sw_has_ctx_tx(ptr noundef) local_unnamed_addr #1
declare i32 @kernel_sendpage_locked(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @do_tcp_sendpages(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sk_mem_uncharge(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @put_page(ptr noundef) local_unnamed_addr #1
declare i32 @sk_msg_iter_next(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sg_init_table(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"sk_msg", !7, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"scatterlist", !11, i64 0, !11, i64 4}
!14 = !{!13, !11, i64 4}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !11, i64 8}
!17 = !{!6, !8, i64 16}
| ; ModuleID = 'AnghaBench/linux/net/ipv4/extr_tcp_bpf.c_tcp_bpf_push.c'
source_filename = "AnghaBench/linux/net/ipv4/extr_tcp_bpf.c_tcp_bpf_push.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MSG_SENDPAGE_NOPOLICY = common local_unnamed_addr global i32 0, align 4
@start = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @tcp_bpf_push], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @tcp_bpf_push(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = icmp eq i32 %2, 0
%7 = getelementptr inbounds i8, ptr %1, i64 8
%8 = icmp eq i32 %4, 0
%9 = getelementptr inbounds i8, ptr %1, i64 16
br label %10
10: ; preds = %72, %5
%11 = phi i32 [ %3, %5 ], [ %36, %72 ]
%12 = phi i32 [ %2, %5 ], [ %41, %72 ]
%13 = load i64, ptr %1, align 8, !tbaa !6
%14 = tail call ptr @sk_msg_elem(ptr noundef nonnull %1, i64 noundef %13) #3
%15 = load i32, ptr %14, align 4, !tbaa !13
%16 = tail call i32 @llvm.smin.i32(i32 %12, i32 %15)
%17 = select i1 %6, i32 %15, i32 %16
%18 = getelementptr inbounds i8, ptr %14, i64 4
%19 = load i32, ptr %18, align 4, !tbaa !15
%20 = tail call ptr @sg_page(ptr noundef nonnull %14) #3
%21 = tail call i32 @tcp_rate_check_app_limited(ptr noundef %0) #3
br label %22
22: ; preds = %52, %10
%23 = phi i32 [ %11, %10 ], [ %36, %52 ]
%24 = phi i32 [ %12, %10 ], [ %41, %52 ]
%25 = phi i32 [ %17, %10 ], [ %53, %52 ]
%26 = phi i32 [ %19, %10 ], [ %54, %52 ]
%27 = tail call i32 @tls_sw_has_ctx_tx(ptr noundef %0) #3
%28 = icmp eq i32 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %22
%30 = load i32, ptr @MSG_SENDPAGE_NOPOLICY, align 4, !tbaa !16
%31 = or i32 %30, %23
%32 = tail call i32 @kernel_sendpage_locked(ptr noundef %0, ptr noundef %20, i32 noundef %26, i32 noundef %25, i32 noundef %31) #3
br label %35
33: ; preds = %22
%34 = tail call i32 @do_tcp_sendpages(ptr noundef %0, ptr noundef %20, i32 noundef %26, i32 noundef %25, i32 noundef %23) #3
br label %35
35: ; preds = %33, %29
%36 = phi i32 [ %31, %29 ], [ %23, %33 ]
%37 = phi i32 [ %32, %29 ], [ %34, %33 ]
%38 = icmp slt i32 %37, 1
br i1 %38, label %73, label %39
39: ; preds = %35
%40 = select i1 %6, i32 0, i32 %37
%41 = sub nsw i32 %24, %40
%42 = load i32, ptr %7, align 8, !tbaa !17
%43 = sub nsw i32 %42, %37
store i32 %43, ptr %7, align 8, !tbaa !17
%44 = load i32, ptr %18, align 4, !tbaa !15
%45 = add nsw i32 %44, %37
store i32 %45, ptr %18, align 4, !tbaa !15
%46 = load i32, ptr %14, align 4, !tbaa !13
%47 = sub nsw i32 %46, %37
store i32 %47, ptr %14, align 4, !tbaa !13
br i1 %8, label %50, label %48
48: ; preds = %39
%49 = tail call i32 @sk_mem_uncharge(ptr noundef %0, i32 noundef %37) #3
br label %50
50: ; preds = %48, %39
%51 = icmp eq i32 %37, %25
br i1 %51, label %55, label %52
52: ; preds = %50
%53 = sub nsw i32 %25, %37
%54 = add nsw i32 %37, %26
br label %22
55: ; preds = %50
%56 = load i32, ptr %14, align 4, !tbaa !13
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %69
58: ; preds = %55
%59 = tail call i32 @put_page(ptr noundef %20) #3
%60 = load i32, ptr @start, align 4, !tbaa !16
%61 = tail call i32 @sk_msg_iter_next(ptr noundef nonnull %1, i32 noundef %60) #3
%62 = tail call i32 @sg_init_table(ptr noundef nonnull %14, i32 noundef 1) #3
%63 = load i64, ptr %1, align 8, !tbaa !6
%64 = load i64, ptr %9, align 8, !tbaa !18
%65 = icmp ne i64 %63, %64
%66 = icmp ne i32 %41, 0
%67 = select i1 %6, i1 true, i1 %66
%68 = select i1 %65, i1 %67, i1 false
br i1 %68, label %72, label %73
69: ; preds = %55
%70 = icmp ne i32 %41, 0
%71 = select i1 %6, i1 true, i1 %70
br i1 %71, label %72, label %73
72: ; preds = %69, %58
br label %10
73: ; preds = %69, %58, %35
%74 = phi i32 [ %37, %35 ], [ 0, %58 ], [ 0, %69 ]
ret i32 %74
}
declare ptr @sk_msg_elem(ptr noundef, i64 noundef) local_unnamed_addr #1
declare ptr @sg_page(ptr noundef) local_unnamed_addr #1
declare i32 @tcp_rate_check_app_limited(ptr noundef) local_unnamed_addr #1
declare i32 @tls_sw_has_ctx_tx(ptr noundef) local_unnamed_addr #1
declare i32 @kernel_sendpage_locked(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @do_tcp_sendpages(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sk_mem_uncharge(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @put_page(ptr noundef) local_unnamed_addr #1
declare i32 @sk_msg_iter_next(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sg_init_table(ptr noundef, i32 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"sk_msg", !8, i64 0}
!8 = !{!"TYPE_2__", !9, i64 0, !12, i64 8, !9, i64 16}
!9 = !{!"long", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"scatterlist", !12, i64 0, !12, i64 4}
!15 = !{!14, !12, i64 4}
!16 = !{!12, !12, i64 0}
!17 = !{!7, !12, i64 8}
!18 = !{!7, !9, i64 16}
| linux_net_ipv4_extr_tcp_bpf.c_tcp_bpf_push |
; ModuleID = 'AnghaBench/exploitdb/exploits/linux/local/extr_25202.c_map_pte.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/local/extr_25202.c_map_pte.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local i32 @map_pte(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = shl nsw i32 %1, 12
%5 = or disjoint i32 %4, 8
%6 = tail call ptr @alloca(i32 noundef %5) #2
%7 = tail call i32 @MKPTE(i32 noundef %2) #2
%8 = shl nsw i32 %1, 10
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %6, i64 %9
store i32 %7, ptr %10, align 4, !tbaa !5
%11 = or disjoint i32 %8, 1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %6, i64 %12
store i32 0, ptr %13, align 4, !tbaa !5
%14 = tail call i32 @fixint(ptr noundef %6) #2
%15 = or disjoint i32 %4, 4
%16 = tail call i32 @kwrite(i32 noundef %0, ptr noundef %6, i32 noundef %15) #2
ret i32 %16
}
declare ptr @alloca(i32 noundef) local_unnamed_addr #1
declare i32 @MKPTE(i32 noundef) local_unnamed_addr #1
declare i32 @fixint(ptr noundef) local_unnamed_addr #1
declare i32 @kwrite(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/exploitdb/exploits/linux/local/extr_25202.c_map_pte.c'
source_filename = "AnghaBench/exploitdb/exploits/linux/local/extr_25202.c_map_pte.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @map_pte(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = shl nsw i32 %1, 12
%5 = or disjoint i32 %4, 8
%6 = tail call ptr @alloca(i32 noundef %5) #2
%7 = tail call i32 @MKPTE(i32 noundef %2) #2
%8 = shl nsw i32 %1, 10
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %6, i64 %9
store i32 %7, ptr %10, align 4, !tbaa !6
%11 = or disjoint i32 %8, 1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %6, i64 %12
store i32 0, ptr %13, align 4, !tbaa !6
%14 = tail call i32 @fixint(ptr noundef %6) #2
%15 = or disjoint i32 %4, 4
%16 = tail call i32 @kwrite(i32 noundef %0, ptr noundef %6, i32 noundef %15) #2
ret i32 %16
}
declare ptr @alloca(i32 noundef) local_unnamed_addr #1
declare i32 @MKPTE(i32 noundef) local_unnamed_addr #1
declare i32 @fixint(ptr noundef) local_unnamed_addr #1
declare i32 @kwrite(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"}
| exploitdb_exploits_linux_local_extr_25202.c_map_pte |
; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_sr030pc30.c_sr030pc30_bulk_write_reg.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_sr030pc30.c_sr030pc30_bulk_write_reg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.i2c_regval = type { i64, i32 }
@REG_TERM = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @sr030pc30_bulk_write_reg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @sr030pc30_bulk_write_reg(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
br label %3
3: ; preds = %8, %2
%4 = phi ptr [ %1, %2 ], [ %13, %8 ]
%5 = load i64, ptr %4, align 8, !tbaa !5
%6 = load i64, ptr @REG_TERM, align 8, !tbaa !11
%7 = icmp eq i64 %5, %6
br i1 %7, label %14, label %8
8: ; preds = %3
%9 = getelementptr inbounds %struct.i2c_regval, ptr %4, i64 0, i32 1
%10 = load i32, ptr %9, align 8, !tbaa !12
%11 = tail call i32 @cam_i2c_write(ptr noundef %0, i64 noundef %5, i32 noundef %10) #2
%12 = icmp eq i32 %11, 0
%13 = getelementptr inbounds %struct.i2c_regval, ptr %4, i64 1
br i1 %12, label %3, label %14
14: ; preds = %8, %3
%15 = phi i32 [ %11, %8 ], [ 0, %3 ]
ret i32 %15
}
declare i32 @cam_i2c_write(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"i2c_regval", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/media/i2c/extr_sr030pc30.c_sr030pc30_bulk_write_reg.c'
source_filename = "AnghaBench/linux/drivers/media/i2c/extr_sr030pc30.c_sr030pc30_bulk_write_reg.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@REG_TERM = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @sr030pc30_bulk_write_reg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @sr030pc30_bulk_write_reg(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
br label %3
3: ; preds = %8, %2
%4 = phi ptr [ %1, %2 ], [ %13, %8 ]
%5 = load i64, ptr %4, align 8, !tbaa !6
%6 = load i64, ptr @REG_TERM, align 8, !tbaa !12
%7 = icmp eq i64 %5, %6
br i1 %7, label %14, label %8
8: ; preds = %3
%9 = getelementptr inbounds i8, ptr %4, i64 8
%10 = load i32, ptr %9, align 8, !tbaa !13
%11 = tail call i32 @cam_i2c_write(ptr noundef %0, i64 noundef %5, i32 noundef %10) #2
%12 = icmp eq i32 %11, 0
%13 = getelementptr inbounds i8, ptr %4, i64 16
br i1 %12, label %3, label %14
14: ; preds = %8, %3
%15 = phi i32 [ %11, %8 ], [ 0, %3 ]
ret i32 %15
}
declare i32 @cam_i2c_write(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"i2c_regval", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
| linux_drivers_media_i2c_extr_sr030pc30.c_sr030pc30_bulk_write_reg |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_mdiobus_init.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_mdiobus_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.lan743x_adapter = type { ptr, %struct.TYPE_5__, ptr }
%struct.TYPE_5__ = type { i32 }
%struct.TYPE_7__ = type { ptr, i32, i32, i32, i32, ptr }
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@lan743x_mdiobus_read = dso_local local_unnamed_addr global i32 0, align 4
@lan743x_mdiobus_write = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"lan743x-mdiobus\00", align 1
@MII_BUS_ID_SIZE = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"pci-%s\00", align 1
@ID_REV_ID_MASK_ = dso_local local_unnamed_addr global i32 0, align 4
@ID_REV_ID_LAN7430_ = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @lan743x_mdiobus_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @lan743x_mdiobus_init(ptr noundef %0) #0 {
%2 = getelementptr inbounds %struct.lan743x_adapter, ptr %0, i64 0, i32 2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = tail call ptr @devm_mdiobus_alloc(ptr noundef %3) #3
store ptr %4, ptr %0, align 8, !tbaa !12
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !13
%8 = sub nsw i32 0, %7
br label %39
9: ; preds = %1
%10 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 5
store ptr %0, ptr %10, align 8, !tbaa !14
%11 = load i32, ptr @lan743x_mdiobus_read, align 4, !tbaa !13
%12 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 4
store i32 %11, ptr %12, align 4, !tbaa !16
%13 = load i32, ptr @lan743x_mdiobus_write, align 4, !tbaa !13
%14 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 3
store i32 %13, ptr %14, align 8, !tbaa !17
store ptr @.str, ptr %4, align 8, !tbaa !18
%15 = getelementptr inbounds %struct.TYPE_7__, ptr %4, i64 0, i32 2
%16 = load i32, ptr %15, align 4, !tbaa !19
%17 = load i32, ptr @MII_BUS_ID_SIZE, align 4, !tbaa !13
%18 = load ptr, ptr %2, align 8, !tbaa !5
%19 = tail call ptr @pci_name(ptr noundef %18) #3
%20 = tail call i32 @snprintf(i32 noundef %16, i32 noundef %17, ptr noundef nonnull @.str.1, ptr noundef %19) #3
%21 = getelementptr inbounds %struct.lan743x_adapter, ptr %0, i64 0, i32 1
%22 = load i32, ptr %21, align 8, !tbaa !20
%23 = load i32, ptr @ID_REV_ID_MASK_, align 4, !tbaa !13
%24 = and i32 %23, %22
%25 = load i32, ptr @ID_REV_ID_LAN7430_, align 4, !tbaa !13
%26 = icmp eq i32 %24, %25
br i1 %26, label %29, label %27
27: ; preds = %9
%28 = load ptr, ptr %0, align 8, !tbaa !12
br label %35
29: ; preds = %9
%30 = tail call i64 @BIT(i32 noundef 1) #3
%31 = trunc i64 %30 to i32
%32 = xor i32 %31, -1
%33 = load ptr, ptr %0, align 8, !tbaa !12
%34 = getelementptr inbounds %struct.TYPE_7__, ptr %33, i64 0, i32 1
store i32 %32, ptr %34, align 8, !tbaa !21
br label %35
35: ; preds = %27, %29
%36 = phi ptr [ %28, %27 ], [ %33, %29 ]
%37 = tail call i32 @mdiobus_register(ptr noundef %36) #3
%38 = tail call i32 @llvm.smin.i32(i32 %37, i32 0)
br label %39
39: ; preds = %35, %6
%40 = phi i32 [ %8, %6 ], [ %38, %35 ]
ret i32 %40
}
declare ptr @devm_mdiobus_alloc(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @pci_name(ptr noundef) local_unnamed_addr #1
declare i64 @BIT(i32 noundef) local_unnamed_addr #1
declare i32 @mdiobus_register(ptr noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"lan743x_adapter", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_5__", !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !7, i64 24}
!15 = !{!"TYPE_7__", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24}
!16 = !{!15, !11, i64 20}
!17 = !{!15, !11, i64 16}
!18 = !{!15, !7, i64 0}
!19 = !{!15, !11, i64 12}
!20 = !{!6, !11, i64 8}
!21 = !{!15, !11, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_mdiobus_init.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/microchip/extr_lan743x_main.c_lan743x_mdiobus_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@lan743x_mdiobus_read = common local_unnamed_addr global i32 0, align 4
@lan743x_mdiobus_write = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"lan743x-mdiobus\00", align 1
@MII_BUS_ID_SIZE = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"pci-%s\00", align 1
@ID_REV_ID_MASK_ = common local_unnamed_addr global i32 0, align 4
@ID_REV_ID_LAN7430_ = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @lan743x_mdiobus_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @lan743x_mdiobus_init(ptr noundef %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = tail call ptr @devm_mdiobus_alloc(ptr noundef %3) #2
store ptr %4, ptr %0, align 8, !tbaa !13
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @ENOMEM, align 4, !tbaa !14
%8 = sub nsw i32 0, %7
br label %39
9: ; preds = %1
%10 = getelementptr inbounds i8, ptr %4, i64 24
store ptr %0, ptr %10, align 8, !tbaa !15
%11 = load i32, ptr @lan743x_mdiobus_read, align 4, !tbaa !14
%12 = getelementptr inbounds i8, ptr %4, i64 20
store i32 %11, ptr %12, align 4, !tbaa !17
%13 = load i32, ptr @lan743x_mdiobus_write, align 4, !tbaa !14
%14 = getelementptr inbounds i8, ptr %4, i64 16
store i32 %13, ptr %14, align 8, !tbaa !18
store ptr @.str, ptr %4, align 8, !tbaa !19
%15 = getelementptr inbounds i8, ptr %4, i64 12
%16 = load i32, ptr %15, align 4, !tbaa !20
%17 = load i32, ptr @MII_BUS_ID_SIZE, align 4, !tbaa !14
%18 = load ptr, ptr %2, align 8, !tbaa !6
%19 = tail call ptr @pci_name(ptr noundef %18) #2
%20 = tail call i32 @snprintf(i32 noundef %16, i32 noundef %17, ptr noundef nonnull @.str.1, ptr noundef %19) #2
%21 = getelementptr inbounds i8, ptr %0, i64 8
%22 = load i32, ptr %21, align 8, !tbaa !21
%23 = load i32, ptr @ID_REV_ID_MASK_, align 4, !tbaa !14
%24 = and i32 %23, %22
%25 = load i32, ptr @ID_REV_ID_LAN7430_, align 4, !tbaa !14
%26 = icmp eq i32 %24, %25
br i1 %26, label %29, label %27
27: ; preds = %9
%28 = load ptr, ptr %0, align 8, !tbaa !13
br label %35
29: ; preds = %9
%30 = tail call i64 @BIT(i32 noundef 1) #2
%31 = trunc i64 %30 to i32
%32 = xor i32 %31, -1
%33 = load ptr, ptr %0, align 8, !tbaa !13
%34 = getelementptr inbounds i8, ptr %33, i64 8
store i32 %32, ptr %34, align 8, !tbaa !22
br label %35
35: ; preds = %27, %29
%36 = phi ptr [ %28, %27 ], [ %33, %29 ]
%37 = tail call i32 @mdiobus_register(ptr noundef %36) #2
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35, %6
%40 = phi i32 [ %37, %35 ], [ %8, %6 ]
br label %41
41: ; preds = %35, %39
%42 = phi i32 [ %40, %39 ], [ 0, %35 ]
ret i32 %42
}
declare ptr @devm_mdiobus_alloc(ptr noundef) local_unnamed_addr #1
declare i32 @snprintf(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @pci_name(ptr noundef) local_unnamed_addr #1
declare i64 @BIT(i32 noundef) local_unnamed_addr #1
declare i32 @mdiobus_register(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 16}
!7 = !{!"lan743x_adapter", !8, i64 0, !11, i64 8, !8, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!7, !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !8, i64 24}
!16 = !{!"TYPE_7__", !8, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !8, i64 24}
!17 = !{!16, !12, i64 20}
!18 = !{!16, !12, i64 16}
!19 = !{!16, !8, i64 0}
!20 = !{!16, !12, i64 12}
!21 = !{!7, !12, i64 8}
!22 = !{!16, !12, i64 8}
| linux_drivers_net_ethernet_microchip_extr_lan743x_main.c_lan743x_mdiobus_init |
; ModuleID = 'AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriverDirectory.c'
source_filename = "AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriverDirectory.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@UNIMPLEMENTED = dso_local local_unnamed_addr global i32 0, align 4
@ERROR_INVALID_FUNCTION = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @_RpcGetPrinterDriverDirectory(i32 noundef %0, ptr nocapture noundef readnone %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr nocapture noundef readnone %5) local_unnamed_addr #0 {
%7 = load i32, ptr @ERROR_INVALID_FUNCTION, align 4, !tbaa !5
ret i32 %7
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriverDirectory.c'
source_filename = "AnghaBench/reactos/win32ss/printing/base/spoolsv/extr_printerdrivers.c__RpcGetPrinterDriverDirectory.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@UNIMPLEMENTED = common local_unnamed_addr global i32 0, align 4
@ERROR_INVALID_FUNCTION = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i32 @_RpcGetPrinterDriverDirectory(i32 noundef %0, ptr nocapture noundef readnone %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr nocapture noundef readnone %5) local_unnamed_addr #0 {
%7 = load i32, ptr @ERROR_INVALID_FUNCTION, align 4, !tbaa !6
ret i32 %7
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| reactos_win32ss_printing_base_spoolsv_extr_printerdrivers.c__RpcGetPrinterDriverDirectory |
; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_pagerFreeMapHdrs.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_pagerFreeMapHdrs.c"
target datalayout = "e-m:e-p270:32:32-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 @pagerFreeMapHdrs], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @pagerFreeMapHdrs(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
br i1 %3, label %9, label %4
4: ; preds = %1, %4
%5 = phi ptr [ %6, %4 ], [ %2, %1 ]
%6 = load ptr, ptr %5, align 8, !tbaa !10
%7 = tail call i32 @sqlite3_free(ptr noundef nonnull %5) #2
%8 = icmp eq ptr %6, null
br i1 %8, label %9, label %4, !llvm.loop !12
9: ; preds = %4, %1
ret void
}
declare i32 @sqlite3_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_6__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_5__", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_pagerFreeMapHdrs.c'
source_filename = "AnghaBench/wcdb/android/sqlcipher/extr_sqlite3.c_pagerFreeMapHdrs.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 @pagerFreeMapHdrs], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @pagerFreeMapHdrs(ptr nocapture noundef readonly %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
br i1 %3, label %9, label %4
4: ; preds = %1, %4
%5 = phi ptr [ %6, %4 ], [ %2, %1 ]
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = tail call i32 @sqlite3_free(ptr noundef nonnull %5) #2
%8 = icmp eq ptr %6, null
br i1 %8, label %9, label %4, !llvm.loop !13
9: ; preds = %4, %1
ret void
}
declare i32 @sqlite3_free(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_6__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_5__", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
| wcdb_android_sqlcipher_extr_sqlite3.c_pagerFreeMapHdrs |
; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpio-wcove.c_wcove_irq_mask.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpio-wcove.c_wcove_irq_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.wcove_gpio = type { i32, i32 }
@WCOVE_GPIO_NUM = dso_local local_unnamed_addr global i64 0, align 8
@UPDATE_IRQ_MASK = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @wcove_irq_mask], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @wcove_irq_mask(ptr noundef %0) #0 {
%2 = tail call ptr @irq_data_get_irq_chip_data(ptr noundef %0) #2
%3 = tail call ptr @gpiochip_get_data(ptr noundef %2) #2
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = load i64, ptr @WCOVE_GPIO_NUM, align 8, !tbaa !10
%6 = icmp slt i64 %4, %5
br i1 %6, label %7, label %12
7: ; preds = %1
store i32 1, ptr %3, align 4, !tbaa !11
%8 = load i32, ptr @UPDATE_IRQ_MASK, align 4, !tbaa !14
%9 = getelementptr inbounds %struct.wcove_gpio, ptr %3, i64 0, i32 1
%10 = load i32, ptr %9, align 4, !tbaa !15
%11 = or i32 %10, %8
store i32 %11, ptr %9, align 4, !tbaa !15
br label %12
12: ; preds = %1, %7
ret void
}
declare ptr @irq_data_get_irq_chip_data(ptr noundef) local_unnamed_addr #1
declare ptr @gpiochip_get_data(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 = !{!"irq_data", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"wcove_gpio", !13, i64 0, !13, i64 4}
!13 = !{!"int", !8, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/gpio/extr_gpio-wcove.c_wcove_irq_mask.c'
source_filename = "AnghaBench/linux/drivers/gpio/extr_gpio-wcove.c_wcove_irq_mask.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@WCOVE_GPIO_NUM = common local_unnamed_addr global i64 0, align 8
@UPDATE_IRQ_MASK = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @wcove_irq_mask], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @wcove_irq_mask(ptr noundef %0) #0 {
%2 = tail call ptr @irq_data_get_irq_chip_data(ptr noundef %0) #2
%3 = tail call ptr @gpiochip_get_data(ptr noundef %2) #2
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = load i64, ptr @WCOVE_GPIO_NUM, align 8, !tbaa !11
%6 = icmp slt i64 %4, %5
br i1 %6, label %7, label %12
7: ; preds = %1
store i32 1, ptr %3, align 4, !tbaa !12
%8 = load i32, ptr @UPDATE_IRQ_MASK, align 4, !tbaa !15
%9 = getelementptr inbounds i8, ptr %3, i64 4
%10 = load i32, ptr %9, align 4, !tbaa !16
%11 = or i32 %10, %8
store i32 %11, ptr %9, align 4, !tbaa !16
br label %12
12: ; preds = %1, %7
ret void
}
declare ptr @irq_data_get_irq_chip_data(ptr noundef) local_unnamed_addr #1
declare ptr @gpiochip_get_data(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 = !{!"irq_data", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"wcove_gpio", !14, i64 0, !14, i64 4}
!14 = !{!"int", !9, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!13, !14, i64 4}
| linux_drivers_gpio_extr_gpio-wcove.c_wcove_irq_mask |
; ModuleID = 'AnghaBench/sumatrapdf/ext/libwebp/examples/extr_cwebp.c_WriteMetadataChunk.c'
source_filename = "AnghaBench/sumatrapdf/ext/libwebp/examples/extr_cwebp.c_WriteMetadataChunk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@kTagSize = dso_local local_unnamed_addr constant i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @WriteMetadataChunk], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @WriteMetadataChunk(ptr nocapture readnone %0, ptr nocapture readnone %1, ptr nocapture readnone %2) #0 {
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/sumatrapdf/ext/libwebp/examples/extr_cwebp.c_WriteMetadataChunk.c'
source_filename = "AnghaBench/sumatrapdf/ext/libwebp/examples/extr_cwebp.c_WriteMetadataChunk.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@kTagSize = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @WriteMetadataChunk], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @WriteMetadataChunk(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
store i8 0, ptr %4, align 1, !tbaa !6
%5 = load i32, ptr %2, align 8, !tbaa !9
%6 = and i32 %5, 1
%7 = zext nneg i32 %6 to i64
%8 = load i64, ptr @kTagSize, align 8, !tbaa !13
%9 = tail call i64 @fwrite(ptr noundef %1, i64 noundef %8, i64 noundef 1, ptr noundef %0)
%10 = icmp eq i64 %9, 1
br i1 %10, label %11, label %26
11: ; preds = %3
%12 = load i32, ptr %2, align 8, !tbaa !9
%13 = tail call i64 @WriteLE32(ptr noundef %0, i32 noundef %12) #4
%14 = icmp eq i64 %13, 0
br i1 %14, label %26, label %15
15: ; preds = %11
%16 = getelementptr inbounds i8, ptr %2, i64 8
%17 = load ptr, ptr %16, align 8, !tbaa !15
%18 = load i32, ptr %2, align 8, !tbaa !9
%19 = sext i32 %18 to i64
%20 = tail call i64 @fwrite(ptr noundef %17, i64 noundef %19, i64 noundef 1, ptr noundef %0)
%21 = icmp eq i64 %20, 1
br i1 %21, label %22, label %26
22: ; preds = %15
%23 = call i64 @fwrite(ptr noundef nonnull %4, i64 noundef %7, i64 noundef %7, ptr noundef %0)
%24 = icmp eq i64 %23, %7
%25 = zext i1 %24 to i32
br label %26
26: ; preds = %11, %3, %22, %15
%27 = phi i32 [ 0, %15 ], [ %25, %22 ], [ 0, %3 ], [ 0, %11 ]
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
ret i32 %27
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2
declare i64 @WriteLE32(ptr noundef, i32 noundef) local_unnamed_addr #3
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !12, i64 8}
| sumatrapdf_ext_libwebp_examples_extr_cwebp.c_WriteMetadataChunk |
; ModuleID = 'AnghaBench/linux/net/sunrpc/auth_gss/extr_auth_gss.c_simple_get_netobj.c'
source_filename = "AnghaBench/linux/net/sunrpc/auth_gss/extr_auth_gss.c_simple_get_netobj.c"
target datalayout = "e-m:e-p270:32:32-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.xdr_netobj = type { i32, ptr }
@EFAULT = dso_local local_unnamed_addr global i32 0, align 4
@GFP_NOFS = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @simple_get_netobj], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal ptr @simple_get_netobj(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = call ptr @simple_get_bytes(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %4, i32 noundef 4) #3
%6 = call i64 @IS_ERR(ptr noundef %5) #3
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %35
8: ; preds = %3
%9 = load i32, ptr %4, align 4, !tbaa !5
%10 = zext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %5, i64 %10
%12 = icmp ugt ptr %11, %1
%13 = zext i1 %12 to i32
%14 = call i64 @unlikely(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %8
%17 = load i32, ptr @EFAULT, align 4, !tbaa !5
%18 = sub nsw i32 0, %17
%19 = call ptr @ERR_PTR(i32 noundef %18) #3
br label %35
20: ; preds = %8
%21 = load i32, ptr %4, align 4, !tbaa !5
%22 = load i32, ptr @GFP_NOFS, align 4, !tbaa !5
%23 = call ptr @kmemdup(ptr noundef %5, i32 noundef %21, i32 noundef %22) #3
%24 = getelementptr inbounds %struct.xdr_netobj, ptr %2, i64 0, i32 1
store ptr %23, ptr %24, align 8, !tbaa !9
%25 = icmp eq ptr %23, null
%26 = zext i1 %25 to i32
%27 = call i64 @unlikely(i32 noundef %26) #3
%28 = icmp eq i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %20
%30 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%31 = sub nsw i32 0, %30
%32 = call ptr @ERR_PTR(i32 noundef %31) #3
br label %35
33: ; preds = %20
%34 = load i32, ptr %4, align 4, !tbaa !5
store i32 %34, ptr %2, align 8, !tbaa !12
br label %35
35: ; preds = %3, %33, %29, %16
%36 = phi ptr [ %19, %16 ], [ %32, %29 ], [ %11, %33 ], [ %5, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret ptr %36
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @simple_get_bytes(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #2
declare ptr @kmemdup(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { 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, !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 = !{!"xdr_netobj", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !6, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/sunrpc/auth_gss/extr_auth_gss.c_simple_get_netobj.c'
source_filename = "AnghaBench/linux/net/sunrpc/auth_gss/extr_auth_gss.c_simple_get_netobj.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@EFAULT = common local_unnamed_addr global i32 0, align 4
@GFP_NOFS = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @simple_get_netobj], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal ptr @simple_get_netobj(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%5 = call ptr @simple_get_bytes(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %4, i32 noundef 4) #3
%6 = call i64 @IS_ERR(ptr noundef %5) #3
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %35
8: ; preds = %3
%9 = load i32, ptr %4, align 4, !tbaa !6
%10 = zext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %5, i64 %10
%12 = icmp ugt ptr %11, %1
%13 = zext i1 %12 to i32
%14 = call i64 @unlikely(i32 noundef %13) #3
%15 = icmp eq i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %8
%17 = load i32, ptr @EFAULT, align 4, !tbaa !6
%18 = sub nsw i32 0, %17
%19 = call ptr @ERR_PTR(i32 noundef %18) #3
br label %35
20: ; preds = %8
%21 = load i32, ptr %4, align 4, !tbaa !6
%22 = load i32, ptr @GFP_NOFS, align 4, !tbaa !6
%23 = call ptr @kmemdup(ptr noundef %5, i32 noundef %21, i32 noundef %22) #3
%24 = getelementptr inbounds i8, ptr %2, i64 8
store ptr %23, ptr %24, align 8, !tbaa !10
%25 = icmp eq ptr %23, null
%26 = zext i1 %25 to i32
%27 = call i64 @unlikely(i32 noundef %26) #3
%28 = icmp eq i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %20
%30 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%31 = sub nsw i32 0, %30
%32 = call ptr @ERR_PTR(i32 noundef %31) #3
br label %35
33: ; preds = %20
%34 = load i32, ptr %4, align 4, !tbaa !6
store i32 %34, ptr %2, align 8, !tbaa !13
br label %35
35: ; preds = %3, %33, %29, %16
%36 = phi ptr [ %19, %16 ], [ %32, %29 ], [ %11, %33 ], [ %5, %3 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret ptr %36
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @simple_get_bytes(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i64 @IS_ERR(ptr noundef) local_unnamed_addr #2
declare i64 @unlikely(i32 noundef) local_unnamed_addr #2
declare ptr @ERR_PTR(i32 noundef) local_unnamed_addr #2
declare ptr @kmemdup(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { 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, !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 = !{!"xdr_netobj", !7, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !7, i64 0}
| linux_net_sunrpc_auth_gss_extr_auth_gss.c_simple_get_netobj |
; ModuleID = 'AnghaBench/freebsd/contrib/ntp/lib/isc/extr_timer_api.c_isc_timer_touch.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/lib/isc/extr_timer_api.c_isc_timer_touch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local i32 @isc_timer_touch(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @ISCAPI_TIMER_VALID(ptr noundef %0) #2
%3 = tail call i32 @REQUIRE(i32 noundef %2) #2
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !10
%6 = tail call i32 %5(ptr noundef nonnull %0) #2
ret i32 %6
}
declare i32 @REQUIRE(i32 noundef) local_unnamed_addr #1
declare i32 @ISCAPI_TIMER_VALID(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_7__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_6__", !7, i64 0}
| ; ModuleID = 'AnghaBench/freebsd/contrib/ntp/lib/isc/extr_timer_api.c_isc_timer_touch.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/lib/isc/extr_timer_api.c_isc_timer_touch.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @isc_timer_touch(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @ISCAPI_TIMER_VALID(ptr noundef %0) #2
%3 = tail call i32 @REQUIRE(i32 noundef %2) #2
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = tail call i32 %5(ptr noundef nonnull %0) #2
ret i32 %6
}
declare i32 @REQUIRE(i32 noundef) local_unnamed_addr #1
declare i32 @ISCAPI_TIMER_VALID(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_7__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_6__", !8, i64 0}
| freebsd_contrib_ntp_lib_isc_extr_timer_api.c_isc_timer_touch |
; ModuleID = 'AnghaBench/curl/tests/unit/extr_unit1305.c_unit_stop.c'
source_filename = "AnghaBench/curl/tests/unit/extr_unit1305.c_unit_stop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@data_node = dso_local local_unnamed_addr global ptr null, align 8
@data_key = dso_local local_unnamed_addr global ptr null, align 8
@hp = dso_local global i32 0, align 4
@data = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @unit_stop], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @unit_stop() #0 {
%1 = load ptr, ptr @data_node, align 8, !tbaa !5
%2 = icmp eq ptr %1, null
br i1 %2, label %8, label %3
3: ; preds = %0
%4 = load i32, ptr %1, align 4, !tbaa !9
%5 = tail call i32 @Curl_freeaddrinfo(i32 noundef %4) #2
%6 = load ptr, ptr @data_node, align 8, !tbaa !5
%7 = tail call i32 @free(ptr noundef %6) #2
br label %8
8: ; preds = %3, %0
%9 = load ptr, ptr @data_key, align 8, !tbaa !5
%10 = tail call i32 @free(ptr noundef %9) #2
%11 = tail call i32 @Curl_hash_destroy(ptr noundef nonnull @hp) #2
%12 = load i32, ptr @data, align 4, !tbaa !12
%13 = tail call i32 @curl_easy_cleanup(i32 noundef %12) #2
%14 = tail call i32 (...) @curl_global_cleanup() #2
ret void
}
declare i32 @Curl_freeaddrinfo(i32 noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
declare i32 @Curl_hash_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @curl_easy_cleanup(i32 noundef) local_unnamed_addr #1
declare i32 @curl_global_cleanup(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_4__", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
| ; ModuleID = 'AnghaBench/curl/tests/unit/extr_unit1305.c_unit_stop.c'
source_filename = "AnghaBench/curl/tests/unit/extr_unit1305.c_unit_stop.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@data_node = common local_unnamed_addr global ptr null, align 8
@data_key = common local_unnamed_addr global ptr null, align 8
@hp = common global i32 0, align 4
@data = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @unit_stop], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @unit_stop() #0 {
%1 = load ptr, ptr @data_node, align 8, !tbaa !6
%2 = icmp eq ptr %1, null
br i1 %2, label %8, label %3
3: ; preds = %0
%4 = load i32, ptr %1, align 4, !tbaa !10
%5 = tail call i32 @Curl_freeaddrinfo(i32 noundef %4) #2
%6 = load ptr, ptr @data_node, align 8, !tbaa !6
%7 = tail call i32 @free(ptr noundef %6) #2
br label %8
8: ; preds = %3, %0
%9 = load ptr, ptr @data_key, align 8, !tbaa !6
%10 = tail call i32 @free(ptr noundef %9) #2
%11 = tail call i32 @Curl_hash_destroy(ptr noundef nonnull @hp) #2
%12 = load i32, ptr @data, align 4, !tbaa !13
%13 = tail call i32 @curl_easy_cleanup(i32 noundef %12) #2
%14 = tail call i32 @curl_global_cleanup() #2
ret void
}
declare i32 @Curl_freeaddrinfo(i32 noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
declare i32 @Curl_hash_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @curl_easy_cleanup(i32 noundef) local_unnamed_addr #1
declare i32 @curl_global_cleanup(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!12, !12, i64 0}
| curl_tests_unit_extr_unit1305.c_unit_stop |
; ModuleID = 'AnghaBench/freebsd/crypto/openssh/extr_packet.c_ssh_packet_get_rekey_timeout.c'
source_filename = "AnghaBench/freebsd/crypto/openssh/extr_packet.c_ssh_packet_get_rekey_timeout.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local i32 @ssh_packet_get_rekey_timeout(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr %2, align 4, !tbaa !10
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %2, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !13
%6 = add nsw i32 %5, %3
%7 = tail call i32 (...) @monotime() #3
%8 = sub i32 %6, %7
%9 = tail call i32 @llvm.smax.i32(i32 %8, i32 1)
ret i32 %9
}
declare i32 @monotime(...) 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 0}
!6 = !{!"ssh", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0, !12, i64 4}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !12, i64 4}
| ; ModuleID = 'AnghaBench/freebsd/crypto/openssh/extr_packet.c_ssh_packet_get_rekey_timeout.c'
source_filename = "AnghaBench/freebsd/crypto/openssh/extr_packet.c_ssh_packet_get_rekey_timeout.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @ssh_packet_get_rekey_timeout(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr %2, align 4, !tbaa !11
%4 = getelementptr inbounds i8, ptr %2, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !14
%6 = add nsw i32 %5, %3
%7 = tail call i32 @monotime() #3
%8 = sub i32 %6, %7
%9 = tail call i32 @llvm.smax.i32(i32 %8, i32 1)
ret i32 %9
}
declare i32 @monotime(...) 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 0}
!7 = !{!"ssh", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0, !13, i64 4}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !13, i64 4}
| freebsd_crypto_openssh_extr_packet.c_ssh_packet_get_rekey_timeout |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/tipc/extr_dbg.c_tipc_printbuf_empty.c'
source_filename = "AnghaBench/fastsocket/kernel/net/tipc/extr_dbg.c_tipc_printbuf_empty.c"
target datalayout = "e-m:e-p270:32:32-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.print_buf = type { i64, i64 }
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i32 @tipc_printbuf_empty(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = icmp eq i64 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = getelementptr inbounds %struct.print_buf, ptr %0, i64 0, i32 1
%6 = load i64, ptr %5, align 8, !tbaa !10
%7 = icmp eq i64 %6, %2
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %4, %1
%10 = phi i32 [ 1, %1 ], [ %8, %4 ]
ret i32 %10
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"print_buf", !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 8}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/tipc/extr_dbg.c_tipc_printbuf_empty.c'
source_filename = "AnghaBench/fastsocket/kernel/net/tipc/extr_dbg.c_tipc_printbuf_empty.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define range(i32 0, 2) i32 @tipc_printbuf_empty(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = icmp eq i64 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load i64, ptr %5, align 8, !tbaa !11
%7 = icmp eq i64 %6, %2
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %4, %1
%10 = phi i32 [ 1, %1 ], [ %8, %4 ]
ret i32 %10
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"print_buf", !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 8}
| fastsocket_kernel_net_tipc_extr_dbg.c_tipc_printbuf_empty |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_crtc_commit.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_crtc_commit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@DRM_MODE_DPMS_ON = dso_local local_unnamed_addr global i32 0, align 4
@ATOM_DISABLE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @dce_v8_0_crtc_commit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @dce_v8_0_crtc_commit(ptr noundef %0) #0 {
%2 = load i32, ptr @DRM_MODE_DPMS_ON, align 4, !tbaa !5
%3 = tail call i32 @dce_v8_0_crtc_dpms(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr @ATOM_DISABLE, align 4, !tbaa !5
%5 = tail call i32 @amdgpu_atombios_crtc_lock(ptr noundef %0, i32 noundef %4) #2
ret void
}
declare i32 @dce_v8_0_crtc_dpms(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @amdgpu_atombios_crtc_lock(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_crtc_commit.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_dce_v8_0.c_dce_v8_0_crtc_commit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DRM_MODE_DPMS_ON = common local_unnamed_addr global i32 0, align 4
@ATOM_DISABLE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @dce_v8_0_crtc_commit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @dce_v8_0_crtc_commit(ptr noundef %0) #0 {
%2 = load i32, ptr @DRM_MODE_DPMS_ON, align 4, !tbaa !6
%3 = tail call i32 @dce_v8_0_crtc_dpms(ptr noundef %0, i32 noundef %2) #2
%4 = load i32, ptr @ATOM_DISABLE, align 4, !tbaa !6
%5 = tail call i32 @amdgpu_atombios_crtc_lock(ptr noundef %0, i32 noundef %4) #2
ret void
}
declare i32 @dce_v8_0_crtc_dpms(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @amdgpu_atombios_crtc_lock(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_amd_amdgpu_extr_dce_v8_0.c_dce_v8_0_crtc_commit |
; ModuleID = 'AnghaBench/freebsd/sys/mips/atheros/ar531x/extr_if_are.c_are_tx.c'
source_filename = "AnghaBench/freebsd/sys/mips/atheros/ar531x/extr_if_are.c_are_tx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i32, i32, i32, i32, i32, ptr, i32 }
%struct.are_softc = type { %struct.TYPE_4__, %struct.TYPE_3__, ptr }
%struct.TYPE_3__ = type { ptr }
%struct.are_desc = type { i32, i32, i64 }
%struct.are_txdesc = type { ptr, i32 }
@BUS_DMASYNC_POSTREAD = dso_local local_unnamed_addr global i32 0, align 4
@BUS_DMASYNC_POSTWRITE = dso_local local_unnamed_addr global i32 0, align 4
@IFF_DRV_OACTIVE = dso_local local_unnamed_addr global i32 0, align 4
@ADSTAT_Tx_ES = dso_local local_unnamed_addr global i32 0, align 4
@IFCOUNTER_OPACKETS = dso_local local_unnamed_addr global i32 0, align 4
@IFCOUNTER_OERRORS = dso_local local_unnamed_addr global i32 0, align 4
@ARE_TX_RING_CNT = dso_local local_unnamed_addr global i32 0, align 4
@BUS_DMASYNC_PREWRITE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @are_tx], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @are_tx(ptr noundef %0) #0 {
%2 = tail call i32 @ARE_LOCK_ASSERT(ptr noundef %0) #2
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%5 = load i32, ptr %4, align 4, !tbaa !13
%6 = icmp eq i32 %3, %5
br i1 %6, label %79, label %7
7: ; preds = %1
%8 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
%9 = load i32, ptr %8, align 4, !tbaa !14
%10 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%11 = load i32, ptr %10, align 8, !tbaa !15
%12 = load i32, ptr @BUS_DMASYNC_POSTREAD, align 4, !tbaa !16
%13 = load i32, ptr @BUS_DMASYNC_POSTWRITE, align 4, !tbaa !16
%14 = or i32 %13, %12
%15 = tail call i32 @bus_dmamap_sync(i32 noundef %9, i32 noundef %11, i32 noundef %14) #2
%16 = getelementptr inbounds %struct.are_softc, ptr %0, i64 0, i32 2
%17 = load ptr, ptr %16, align 8, !tbaa !17
%18 = getelementptr inbounds %struct.are_softc, ptr %0, i64 0, i32 1
%19 = sext i32 %3 to i64
%20 = load ptr, ptr %18, align 8, !tbaa !18
%21 = getelementptr inbounds %struct.are_desc, ptr %20, i64 %19
%22 = load i32, ptr %21, align 8, !tbaa !19
%23 = getelementptr inbounds %struct.are_desc, ptr %20, i64 %19, i32 1
%24 = load i32, ptr %23, align 4, !tbaa !22
%25 = tail call i64 @ARE_DMASIZE(i32 noundef %24) #2
%26 = icmp eq i64 %25, 0
br i1 %26, label %74, label %27
27: ; preds = %7
%28 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 6
%29 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 5
%30 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 4
br label %31
31: ; preds = %27, %63
%32 = phi ptr [ %23, %27 ], [ %70, %63 ]
%33 = phi i32 [ %22, %27 ], [ %69, %63 ]
%34 = phi ptr [ %21, %27 ], [ %68, %63 ]
%35 = phi ptr [ %20, %27 ], [ %67, %63 ]
%36 = load i32, ptr %28, align 8, !tbaa !23
%37 = add nsw i32 %36, -1
store i32 %37, ptr %28, align 8, !tbaa !23
%38 = load i32, ptr @IFF_DRV_OACTIVE, align 4, !tbaa !16
%39 = xor i32 %38, -1
%40 = load i32, ptr %17, align 4, !tbaa !24
%41 = and i32 %40, %39
store i32 %41, ptr %17, align 4, !tbaa !24
%42 = load ptr, ptr %29, align 8, !tbaa !26
%43 = getelementptr inbounds %struct.are_txdesc, ptr %42, i64 %19
%44 = load i32, ptr @ADSTAT_Tx_ES, align 4, !tbaa !16
%45 = and i32 %44, %33
%46 = icmp eq i32 %45, 0
%47 = load i32, ptr @IFCOUNTER_OPACKETS, align 4
%48 = load i32, ptr @IFCOUNTER_OERRORS, align 4
%49 = select i1 %46, i32 %47, i32 %48
%50 = tail call i32 @if_inc_counter(ptr noundef nonnull %17, i32 noundef %49, i32 noundef 1) #2
%51 = load i32, ptr %30, align 8, !tbaa !27
%52 = getelementptr inbounds %struct.are_txdesc, ptr %42, i64 %19, i32 1
%53 = load i32, ptr %52, align 8, !tbaa !28
%54 = load i32, ptr @BUS_DMASYNC_POSTWRITE, align 4, !tbaa !16
%55 = tail call i32 @bus_dmamap_sync(i32 noundef %51, i32 noundef %53, i32 noundef %54) #2
%56 = load i32, ptr %30, align 8, !tbaa !27
%57 = load i32, ptr %52, align 8, !tbaa !28
%58 = tail call i32 @bus_dmamap_unload(i32 noundef %56, i32 noundef %57) #2
%59 = load ptr, ptr %43, align 8, !tbaa !30
%60 = icmp eq ptr %59, null
br i1 %60, label %63, label %61
61: ; preds = %31
%62 = tail call i32 @m_freem(ptr noundef nonnull %59) #2
br label %63
63: ; preds = %61, %31
store ptr null, ptr %43, align 8, !tbaa !30
store i32 0, ptr %34, align 8, !tbaa !19
store i32 0, ptr %32, align 4, !tbaa !22
%64 = getelementptr inbounds %struct.are_desc, ptr %35, i64 %19, i32 2
store i64 0, ptr %64, align 8, !tbaa !31
%65 = load i32, ptr @ARE_TX_RING_CNT, align 4, !tbaa !16
%66 = tail call i32 @ARE_INC(i32 noundef %3, i32 noundef %65) #2
%67 = load ptr, ptr %18, align 8, !tbaa !18
%68 = getelementptr inbounds %struct.are_desc, ptr %67, i64 %19
%69 = load i32, ptr %68, align 8, !tbaa !19
%70 = getelementptr inbounds %struct.are_desc, ptr %67, i64 %19, i32 1
%71 = load i32, ptr %70, align 4, !tbaa !22
%72 = tail call i64 @ARE_DMASIZE(i32 noundef %71) #2
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %31, !llvm.loop !32
74: ; preds = %63, %7
store i32 %3, ptr %0, align 8, !tbaa !5
%75 = load i32, ptr %8, align 4, !tbaa !14
%76 = load i32, ptr %10, align 8, !tbaa !15
%77 = load i32, ptr @BUS_DMASYNC_PREWRITE, align 4, !tbaa !16
%78 = tail call i32 @bus_dmamap_sync(i32 noundef %75, i32 noundef %76, i32 noundef %77) #2
br label %79
79: ; preds = %1, %74
ret void
}
declare i32 @ARE_LOCK_ASSERT(ptr noundef) local_unnamed_addr #1
declare i32 @bus_dmamap_sync(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ARE_DMASIZE(i32 noundef) local_unnamed_addr #1
declare i32 @if_inc_counter(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_dmamap_unload(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @m_freem(ptr noundef) local_unnamed_addr #1
declare i32 @ARE_INC(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !8, i64 0}
!6 = !{!"are_softc", !7, i64 0, !12, i64 40, !11, i64 48}
!7 = !{!"TYPE_4__", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, 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 = !{!"TYPE_3__", !11, i64 0}
!13 = !{!6, !8, i64 4}
!14 = !{!6, !8, i64 12}
!15 = !{!6, !8, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !11, i64 48}
!18 = !{!6, !11, i64 40}
!19 = !{!20, !8, i64 0}
!20 = !{!"are_desc", !8, i64 0, !8, i64 4, !21, i64 8}
!21 = !{!"long", !9, i64 0}
!22 = !{!20, !8, i64 4}
!23 = !{!6, !8, i64 32}
!24 = !{!25, !8, i64 0}
!25 = !{!"ifnet", !8, i64 0}
!26 = !{!6, !11, i64 24}
!27 = !{!6, !8, i64 16}
!28 = !{!29, !8, i64 8}
!29 = !{!"are_txdesc", !11, i64 0, !8, i64 8}
!30 = !{!29, !11, i64 0}
!31 = !{!20, !21, i64 8}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/freebsd/sys/mips/atheros/ar531x/extr_if_are.c_are_tx.c'
source_filename = "AnghaBench/freebsd/sys/mips/atheros/ar531x/extr_if_are.c_are_tx.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.are_desc = type { i32, i32, i64 }
%struct.are_txdesc = type { ptr, i32 }
@BUS_DMASYNC_POSTREAD = common local_unnamed_addr global i32 0, align 4
@BUS_DMASYNC_POSTWRITE = common local_unnamed_addr global i32 0, align 4
@IFF_DRV_OACTIVE = common local_unnamed_addr global i32 0, align 4
@ADSTAT_Tx_ES = common local_unnamed_addr global i32 0, align 4
@IFCOUNTER_OPACKETS = common local_unnamed_addr global i32 0, align 4
@IFCOUNTER_OERRORS = common local_unnamed_addr global i32 0, align 4
@ARE_TX_RING_CNT = common local_unnamed_addr global i32 0, align 4
@BUS_DMASYNC_PREWRITE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @are_tx], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @are_tx(ptr noundef %0) #0 {
%2 = tail call i32 @ARE_LOCK_ASSERT(ptr noundef %0) #2
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 4
%5 = load i32, ptr %4, align 4, !tbaa !14
%6 = icmp eq i32 %3, %5
br i1 %6, label %78, label %7
7: ; preds = %1
%8 = getelementptr inbounds i8, ptr %0, i64 12
%9 = load i32, ptr %8, align 4, !tbaa !15
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = load i32, ptr %10, align 8, !tbaa !16
%12 = load i32, ptr @BUS_DMASYNC_POSTREAD, align 4, !tbaa !17
%13 = load i32, ptr @BUS_DMASYNC_POSTWRITE, align 4, !tbaa !17
%14 = or i32 %13, %12
%15 = tail call i32 @bus_dmamap_sync(i32 noundef %9, i32 noundef %11, i32 noundef %14) #2
%16 = getelementptr inbounds i8, ptr %0, i64 48
%17 = load ptr, ptr %16, align 8, !tbaa !18
%18 = getelementptr inbounds i8, ptr %0, i64 40
%19 = sext i32 %3 to i64
%20 = load ptr, ptr %18, align 8, !tbaa !19
%21 = getelementptr inbounds %struct.are_desc, ptr %20, i64 %19
%22 = load i32, ptr %21, align 8, !tbaa !20
%23 = getelementptr inbounds i8, ptr %21, i64 4
%24 = load i32, ptr %23, align 4, !tbaa !23
%25 = tail call i64 @ARE_DMASIZE(i32 noundef %24) #2
%26 = icmp eq i64 %25, 0
br i1 %26, label %73, label %27
27: ; preds = %7
%28 = getelementptr inbounds i8, ptr %0, i64 32
%29 = getelementptr inbounds i8, ptr %0, i64 24
%30 = getelementptr inbounds i8, ptr %0, i64 16
br label %31
31: ; preds = %27, %62
%32 = phi ptr [ %23, %27 ], [ %69, %62 ]
%33 = phi i32 [ %22, %27 ], [ %68, %62 ]
%34 = phi ptr [ %21, %27 ], [ %67, %62 ]
%35 = load i32, ptr %28, align 8, !tbaa !24
%36 = add nsw i32 %35, -1
store i32 %36, ptr %28, align 8, !tbaa !24
%37 = load i32, ptr @IFF_DRV_OACTIVE, align 4, !tbaa !17
%38 = xor i32 %37, -1
%39 = load i32, ptr %17, align 4, !tbaa !25
%40 = and i32 %39, %38
store i32 %40, ptr %17, align 4, !tbaa !25
%41 = load ptr, ptr %29, align 8, !tbaa !27
%42 = getelementptr inbounds %struct.are_txdesc, ptr %41, i64 %19
%43 = load i32, ptr @ADSTAT_Tx_ES, align 4, !tbaa !17
%44 = and i32 %43, %33
%45 = icmp eq i32 %44, 0
%46 = load i32, ptr @IFCOUNTER_OPACKETS, align 4
%47 = load i32, ptr @IFCOUNTER_OERRORS, align 4
%48 = select i1 %45, i32 %46, i32 %47
%49 = tail call i32 @if_inc_counter(ptr noundef nonnull %17, i32 noundef %48, i32 noundef 1) #2
%50 = load i32, ptr %30, align 8, !tbaa !28
%51 = getelementptr inbounds i8, ptr %42, i64 8
%52 = load i32, ptr %51, align 8, !tbaa !29
%53 = load i32, ptr @BUS_DMASYNC_POSTWRITE, align 4, !tbaa !17
%54 = tail call i32 @bus_dmamap_sync(i32 noundef %50, i32 noundef %52, i32 noundef %53) #2
%55 = load i32, ptr %30, align 8, !tbaa !28
%56 = load i32, ptr %51, align 8, !tbaa !29
%57 = tail call i32 @bus_dmamap_unload(i32 noundef %55, i32 noundef %56) #2
%58 = load ptr, ptr %42, align 8, !tbaa !31
%59 = icmp eq ptr %58, null
br i1 %59, label %62, label %60
60: ; preds = %31
%61 = tail call i32 @m_freem(ptr noundef nonnull %58) #2
br label %62
62: ; preds = %60, %31
store ptr null, ptr %42, align 8, !tbaa !31
store i32 0, ptr %34, align 8, !tbaa !20
store i32 0, ptr %32, align 4, !tbaa !23
%63 = getelementptr inbounds i8, ptr %34, i64 8
store i64 0, ptr %63, align 8, !tbaa !32
%64 = load i32, ptr @ARE_TX_RING_CNT, align 4, !tbaa !17
%65 = tail call i32 @ARE_INC(i32 noundef %3, i32 noundef %64) #2
%66 = load ptr, ptr %18, align 8, !tbaa !19
%67 = getelementptr inbounds %struct.are_desc, ptr %66, i64 %19
%68 = load i32, ptr %67, align 8, !tbaa !20
%69 = getelementptr inbounds i8, ptr %67, i64 4
%70 = load i32, ptr %69, align 4, !tbaa !23
%71 = tail call i64 @ARE_DMASIZE(i32 noundef %70) #2
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %31, !llvm.loop !33
73: ; preds = %62, %7
store i32 %3, ptr %0, align 8, !tbaa !6
%74 = load i32, ptr %8, align 4, !tbaa !15
%75 = load i32, ptr %10, align 8, !tbaa !16
%76 = load i32, ptr @BUS_DMASYNC_PREWRITE, align 4, !tbaa !17
%77 = tail call i32 @bus_dmamap_sync(i32 noundef %74, i32 noundef %75, i32 noundef %76) #2
br label %78
78: ; preds = %1, %73
ret void
}
declare i32 @ARE_LOCK_ASSERT(ptr noundef) local_unnamed_addr #1
declare i32 @bus_dmamap_sync(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @ARE_DMASIZE(i32 noundef) local_unnamed_addr #1
declare i32 @if_inc_counter(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_dmamap_unload(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @m_freem(ptr noundef) local_unnamed_addr #1
declare i32 @ARE_INC(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !9, i64 0}
!7 = !{!"are_softc", !8, i64 0, !13, i64 40, !12, i64 48}
!8 = !{!"TYPE_4__", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !12, i64 24, !9, i64 32}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!"TYPE_3__", !12, i64 0}
!14 = !{!7, !9, i64 4}
!15 = !{!7, !9, i64 12}
!16 = !{!7, !9, i64 8}
!17 = !{!9, !9, i64 0}
!18 = !{!7, !12, i64 48}
!19 = !{!7, !12, i64 40}
!20 = !{!21, !9, i64 0}
!21 = !{!"are_desc", !9, i64 0, !9, i64 4, !22, i64 8}
!22 = !{!"long", !10, i64 0}
!23 = !{!21, !9, i64 4}
!24 = !{!7, !9, i64 32}
!25 = !{!26, !9, i64 0}
!26 = !{!"ifnet", !9, i64 0}
!27 = !{!7, !12, i64 24}
!28 = !{!7, !9, i64 16}
!29 = !{!30, !9, i64 8}
!30 = !{!"are_txdesc", !12, i64 0, !9, i64 8}
!31 = !{!30, !12, i64 0}
!32 = !{!21, !22, i64 8}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
| freebsd_sys_mips_atheros_ar531x_extr_if_are.c_are_tx |
; ModuleID = 'AnghaBench/freebsd/sys/dev/ixl/extr_ixl_pf_qmgr.c_ixl_pf_qmgr_get_num_free.c'
source_filename = "AnghaBench/freebsd/sys/dev/ixl/extr_ixl_pf_qmgr.c_ixl_pf_qmgr_get_num_free.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ixl_pf_qmgr = type { i32, ptr }
%struct.TYPE_2__ = type { i32 }
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define dso_local i32 @ixl_pf_qmgr_get_num_free(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %34
4: ; preds = %1
%5 = getelementptr inbounds %struct.ixl_pf_qmgr, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = zext nneg i32 %2 to i64
%8 = icmp ult i32 %2, 8
br i1 %8, label %31, label %9
9: ; preds = %4
%10 = and i64 %7, 2147483640
br label %11
11: ; preds = %11, %9
%12 = phi i64 [ 0, %9 ], [ %25, %11 ]
%13 = phi <4 x i32> [ zeroinitializer, %9 ], [ %23, %11 ]
%14 = phi <4 x i32> [ zeroinitializer, %9 ], [ %24, %11 ]
%15 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i64 %12
%16 = getelementptr inbounds i32, ptr %15, i64 4
%17 = load <4 x i32>, ptr %15, align 4, !tbaa !12
%18 = load <4 x i32>, ptr %16, align 4, !tbaa !12
%19 = icmp eq <4 x i32> %17, zeroinitializer
%20 = icmp eq <4 x i32> %18, zeroinitializer
%21 = zext <4 x i1> %19 to <4 x i32>
%22 = zext <4 x i1> %20 to <4 x i32>
%23 = add <4 x i32> %13, %21
%24 = add <4 x i32> %14, %22
%25 = add nuw i64 %12, 8
%26 = icmp eq i64 %25, %10
br i1 %26, label %27, label %11, !llvm.loop !14
27: ; preds = %11
%28 = add <4 x i32> %24, %23
%29 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %28)
%30 = icmp eq i64 %10, %7
br i1 %30, label %34, label %31
31: ; preds = %4, %27
%32 = phi i64 [ 0, %4 ], [ %10, %27 ]
%33 = phi i32 [ 0, %4 ], [ %29, %27 ]
br label %36
34: ; preds = %36, %27, %1
%35 = phi i32 [ 0, %1 ], [ %29, %27 ], [ %43, %36 ]
ret i32 %35
36: ; preds = %31, %36
%37 = phi i64 [ %44, %36 ], [ %32, %31 ]
%38 = phi i32 [ %43, %36 ], [ %33, %31 ]
%39 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i64 %37
%40 = load i32, ptr %39, align 4, !tbaa !12
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i32
%43 = add nuw nsw i32 %38, %42
%44 = add nuw nsw i64 %37, 1
%45 = icmp eq i64 %44, %7
br i1 %45, label %34, label %36, !llvm.loop !18
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #1
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ixl_pf_qmgr", !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, !10, i64 8}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_2__", !7, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !17, !16}
| ; ModuleID = 'AnghaBench/freebsd/sys/dev/ixl/extr_ixl_pf_qmgr.c_ixl_pf_qmgr_get_num_free.c'
source_filename = "AnghaBench/freebsd/sys/dev/ixl/extr_ixl_pf_qmgr.c_ixl_pf_qmgr_get_num_free.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i32 }
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define i32 @ixl_pf_qmgr_get_num_free(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %48
4: ; preds = %1
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = zext nneg i32 %2 to i64
%8 = icmp ult i32 %2, 16
br i1 %8, label %9, label %12
9: ; preds = %42, %4
%10 = phi i64 [ 0, %4 ], [ %13, %42 ]
%11 = phi i32 [ 0, %4 ], [ %46, %42 ]
br label %50
12: ; preds = %4
%13 = and i64 %7, 2147483632
br label %14
14: ; preds = %14, %12
%15 = phi i64 [ 0, %12 ], [ %40, %14 ]
%16 = phi <4 x i32> [ zeroinitializer, %12 ], [ %36, %14 ]
%17 = phi <4 x i32> [ zeroinitializer, %12 ], [ %37, %14 ]
%18 = phi <4 x i32> [ zeroinitializer, %12 ], [ %38, %14 ]
%19 = phi <4 x i32> [ zeroinitializer, %12 ], [ %39, %14 ]
%20 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i64 %15
%21 = getelementptr inbounds i8, ptr %20, i64 16
%22 = getelementptr inbounds i8, ptr %20, i64 32
%23 = getelementptr inbounds i8, ptr %20, i64 48
%24 = load <4 x i32>, ptr %20, align 4, !tbaa !13
%25 = load <4 x i32>, ptr %21, align 4, !tbaa !13
%26 = load <4 x i32>, ptr %22, align 4, !tbaa !13
%27 = load <4 x i32>, ptr %23, align 4, !tbaa !13
%28 = icmp eq <4 x i32> %24, zeroinitializer
%29 = icmp eq <4 x i32> %25, zeroinitializer
%30 = icmp eq <4 x i32> %26, zeroinitializer
%31 = icmp eq <4 x i32> %27, zeroinitializer
%32 = zext <4 x i1> %28 to <4 x i32>
%33 = zext <4 x i1> %29 to <4 x i32>
%34 = zext <4 x i1> %30 to <4 x i32>
%35 = zext <4 x i1> %31 to <4 x i32>
%36 = add <4 x i32> %16, %32
%37 = add <4 x i32> %17, %33
%38 = add <4 x i32> %18, %34
%39 = add <4 x i32> %19, %35
%40 = add nuw i64 %15, 16
%41 = icmp eq i64 %40, %13
br i1 %41, label %42, label %14, !llvm.loop !15
42: ; preds = %14
%43 = add <4 x i32> %37, %36
%44 = add <4 x i32> %38, %43
%45 = add <4 x i32> %39, %44
%46 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %45)
%47 = icmp eq i64 %13, %7
br i1 %47, label %48, label %9
48: ; preds = %50, %42, %1
%49 = phi i32 [ 0, %1 ], [ %46, %42 ], [ %57, %50 ]
ret i32 %49
50: ; preds = %9, %50
%51 = phi i64 [ %58, %50 ], [ %10, %9 ]
%52 = phi i32 [ %57, %50 ], [ %11, %9 ]
%53 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i64 %51
%54 = load i32, ptr %53, align 4, !tbaa !13
%55 = icmp eq i32 %54, 0
%56 = zext i1 %55 to i32
%57 = add nuw nsw i32 %52, %56
%58 = add nuw nsw i64 %51, 1
%59 = icmp eq i64 %58, %7
br i1 %59, label %48, label %50, !llvm.loop !19
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #1
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ixl_pf_qmgr", !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, !11, i64 8}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_2__", !8, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !18, !17}
| freebsd_sys_dev_ixl_extr_ixl_pf_qmgr.c_ixl_pf_qmgr_get_num_free |
; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ocfs2/extr_uptodate.c_ocfs2_search_cache_array.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ocfs2/extr_uptodate.c_ocfs2_search_cache_array.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ocfs2_caching_info = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ocfs2_search_cache_array], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define internal i32 @ocfs2_search_cache_array(ptr nocapture noundef readonly %0, i64 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !5
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %19
5: ; preds = %2
%6 = getelementptr inbounds %struct.ocfs2_caching_info, ptr %0, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !12
%8 = zext nneg i32 %3 to i64
br label %9
9: ; preds = %5, %14
%10 = phi i64 [ 0, %5 ], [ %15, %14 ]
%11 = getelementptr inbounds i64, ptr %7, i64 %10
%12 = load i64, ptr %11, align 8, !tbaa !13
%13 = icmp eq i64 %12, %1
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = add nuw nsw i64 %10, 1
%16 = icmp eq i64 %15, %8
br i1 %16, label %19, label %9, !llvm.loop !15
17: ; preds = %9
%18 = trunc i64 %10 to i32
br label %19
19: ; preds = %14, %17, %2
%20 = phi i32 [ -1, %2 ], [ %18, %17 ], [ -1, %14 ]
ret i32 %20
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ocfs2_caching_info", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/fs/ocfs2/extr_uptodate.c_ocfs2_search_cache_array.c'
source_filename = "AnghaBench/fastsocket/kernel/fs/ocfs2/extr_uptodate.c_ocfs2_search_cache_array.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 @ocfs2_search_cache_array], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define internal i32 @ocfs2_search_cache_array(ptr nocapture noundef readonly %0, i64 noundef %1) #0 {
%3 = load i32, ptr %0, align 8, !tbaa !6
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %19
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = zext nneg i32 %3 to i64
br label %9
9: ; preds = %5, %14
%10 = phi i64 [ 0, %5 ], [ %15, %14 ]
%11 = getelementptr inbounds i64, ptr %7, i64 %10
%12 = load i64, ptr %11, align 8, !tbaa !14
%13 = icmp eq i64 %12, %1
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = add nuw nsw i64 %10, 1
%16 = icmp eq i64 %15, %8
br i1 %16, label %19, label %9, !llvm.loop !16
17: ; preds = %9
%18 = trunc nuw nsw i64 %10 to i32
br label %19
19: ; preds = %14, %17, %2
%20 = phi i32 [ -1, %2 ], [ %18, %17 ], [ -1, %14 ]
ret i32 %20
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ocfs2_caching_info", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!7, !12, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
| fastsocket_kernel_fs_ocfs2_extr_uptodate.c_ocfs2_search_cache_array |
; ModuleID = 'AnghaBench/linux/drivers/net/hyperv/extr_netvsc.c_move_pkt_msd.c'
source_filename = "AnghaBench/linux/drivers/net/hyperv/extr_netvsc.c_move_pkt_msd.c"
target datalayout = "e-m:e-p270:32:32-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.multi_send_data = type { i64, ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @move_pkt_msd], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define internal void @move_pkt_msd(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef %2) #0 {
%4 = getelementptr inbounds %struct.multi_send_data, ptr %2, i64 0, i32 2
%5 = load ptr, ptr %4, align 8, !tbaa !5
store ptr %5, ptr %1, align 8, !tbaa !11
%6 = getelementptr inbounds %struct.multi_send_data, ptr %2, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !12
store ptr %7, ptr %0, align 8, !tbaa !11
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, i8 0, i64 24, i1 false)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { inlinehint 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" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"multi_send_data", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/linux/drivers/net/hyperv/extr_netvsc.c_move_pkt_msd.c'
source_filename = "AnghaBench/linux/drivers/net/hyperv/extr_netvsc.c_move_pkt_msd.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 @move_pkt_msd], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) uwtable(sync)
define internal void @move_pkt_msd(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %2, i64 16
%5 = load ptr, ptr %4, align 8, !tbaa !6
store ptr %5, ptr %1, align 8, !tbaa !12
%6 = getelementptr inbounds i8, ptr %2, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !13
store ptr %7, ptr %0, align 8, !tbaa !12
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, i8 0, i64 24, i1 false)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
attributes #0 = { inlinehint 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" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 16}
!7 = !{!"multi_send_data", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !11, i64 8}
| linux_drivers_net_hyperv_extr_netvsc.c_move_pkt_msd |
; ModuleID = 'AnghaBench/RetroArch/griffin/extr_..libretro-commonfilenbionbio_linux.c_nbio_linux_get_ptr.c'
source_filename = "AnghaBench/RetroArch/griffin/extr_..libretro-commonfilenbionbio_linux.c_nbio_linux_get_ptr.c"
target datalayout = "e-m:e-p270:32:32-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.nbio_linux_t = type { i64, ptr, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @nbio_linux_get_ptr], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define internal ptr @nbio_linux_get_ptr(ptr noundef readonly %0, ptr noundef writeonly %1) #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %15, label %4
4: ; preds = %2
%5 = icmp eq ptr %1, null
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = load i64, ptr %0, align 8, !tbaa !5
store i64 %7, ptr %1, align 8, !tbaa !12
br label %8
8: ; preds = %6, %4
%9 = getelementptr inbounds %struct.nbio_linux_t, ptr %0, i64 0, i32 2
%10 = load i32, ptr %9, align 8, !tbaa !13
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = getelementptr inbounds %struct.nbio_linux_t, ptr %0, i64 0, i32 1
%14 = load ptr, ptr %13, align 8, !tbaa !14
br label %15
15: ; preds = %8, %2, %12
%16 = phi ptr [ %14, %12 ], [ null, %2 ], [ null, %8 ]
ret ptr %16
}
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 = !{!"nbio_linux_t", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !10, i64 8}
| ; ModuleID = 'AnghaBench/RetroArch/griffin/extr_..libretro-commonfilenbionbio_linux.c_nbio_linux_get_ptr.c'
source_filename = "AnghaBench/RetroArch/griffin/extr_..libretro-commonfilenbionbio_linux.c_nbio_linux_get_ptr.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 @nbio_linux_get_ptr], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: readwrite) uwtable(sync)
define internal ptr @nbio_linux_get_ptr(ptr noundef readonly %0, ptr noundef writeonly %1) #0 {
%3 = icmp eq ptr %0, null
br i1 %3, label %15, label %4
4: ; preds = %2
%5 = icmp eq ptr %1, null
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = load i64, ptr %0, align 8, !tbaa !6
store i64 %7, ptr %1, align 8, !tbaa !13
br label %8
8: ; preds = %6, %4
%9 = getelementptr inbounds i8, ptr %0, i64 16
%10 = load i32, ptr %9, align 8, !tbaa !14
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = getelementptr inbounds i8, ptr %0, i64 8
%14 = load ptr, ptr %13, align 8, !tbaa !15
br label %15
15: ; preds = %8, %2, %12
%16 = phi ptr [ %14, %12 ], [ null, %2 ], [ null, %8 ]
ret ptr %16
}
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 = !{!"nbio_linux_t", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !12, i64 16}
!15 = !{!7, !11, i64 8}
| RetroArch_griffin_extr_..libretro-commonfilenbionbio_linux.c_nbio_linux_get_ptr |
; ModuleID = 'AnghaBench/linux/drivers/bus/extr_ti-sysc.c_sysc_init_syss_mask.c'
source_filename = "AnghaBench/linux/drivers/bus/extr_ti-sysc.c_sysc_init_syss_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.sysc = type { %struct.TYPE_5__, ptr, ptr }
%struct.TYPE_5__ = type { i32, i32, i32 }
@.str = private unnamed_addr constant [13 x i8] c"ti,syss-mask\00", align 1
@TI_SYSC_OMAP4 = dso_local local_unnamed_addr global i64 0, align 8
@TI_SYSC_OMAP4_TIMER = dso_local local_unnamed_addr global i64 0, align 8
@SYSC_OMAP4_SOFTRESET = dso_local local_unnamed_addr global i32 0, align 4
@SYSC_QUIRK_RESET_STATUS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sysc_init_syss_mask], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @sysc_init_syss_mask(ptr nocapture noundef %0) #0 {
%2 = alloca i32, align 4
%3 = getelementptr inbounds %struct.sysc, ptr %0, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load ptr, ptr %4, align 8, !tbaa !12
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%6 = call i32 @of_property_read_u32(ptr noundef %5, ptr noundef nonnull @.str, ptr noundef nonnull %2) #3
%7 = icmp eq i32 %6, 0
br i1 %7, label %27, label %8
8: ; preds = %1
%9 = getelementptr inbounds %struct.sysc, ptr %0, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !14
%11 = load i64, ptr %10, align 8, !tbaa !15
%12 = load i64, ptr @TI_SYSC_OMAP4, align 8, !tbaa !18
%13 = icmp eq i64 %11, %12
%14 = load i64, ptr @TI_SYSC_OMAP4_TIMER, align 8
%15 = icmp eq i64 %11, %14
%16 = select i1 %13, i1 true, i1 %15
br i1 %16, label %17, label %43
17: ; preds = %8
%18 = load i32, ptr %0, align 8, !tbaa !19
%19 = load i32, ptr @SYSC_OMAP4_SOFTRESET, align 4, !tbaa !20
%20 = and i32 %19, %18
%21 = icmp eq i32 %20, 0
br i1 %21, label %43, label %22
22: ; preds = %17
%23 = load i32, ptr @SYSC_QUIRK_RESET_STATUS, align 4, !tbaa !20
%24 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%25 = load i32, ptr %24, align 8, !tbaa !21
%26 = or i32 %25, %23
store i32 %26, ptr %24, align 8, !tbaa !21
br label %43
27: ; preds = %1
%28 = load i32, ptr %2, align 4, !tbaa !20
%29 = and i32 %28, 1
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %27
%32 = load i32, ptr %0, align 8, !tbaa !19
%33 = load i32, ptr @SYSC_OMAP4_SOFTRESET, align 4, !tbaa !20
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %31
%37 = load i32, ptr @SYSC_QUIRK_RESET_STATUS, align 4, !tbaa !20
%38 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 2
%39 = load i32, ptr %38, align 8, !tbaa !21
%40 = or i32 %39, %37
store i32 %40, ptr %38, align 8, !tbaa !21
br label %41
41: ; preds = %36, %31, %27
%42 = getelementptr inbounds %struct.TYPE_5__, ptr %0, i64 0, i32 1
store i32 %28, ptr %42, align 4, !tbaa !22
br label %43
43: ; preds = %17, %22, %8, %41
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @of_property_read_u32(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"sysc", !7, i64 0, !11, i64 16, !11, i64 24}
!7 = !{!"TYPE_5__", !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 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_6__", !11, i64 0}
!14 = !{!6, !11, i64 16}
!15 = !{!16, !17, i64 0}
!16 = !{!"TYPE_4__", !17, i64 0}
!17 = !{!"long", !9, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!6, !8, i64 0}
!20 = !{!8, !8, i64 0}
!21 = !{!6, !8, i64 8}
!22 = !{!6, !8, i64 4}
| ; ModuleID = 'AnghaBench/linux/drivers/bus/extr_ti-sysc.c_sysc_init_syss_mask.c'
source_filename = "AnghaBench/linux/drivers/bus/extr_ti-sysc.c_sysc_init_syss_mask.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"ti,syss-mask\00", align 1
@TI_SYSC_OMAP4 = common local_unnamed_addr global i64 0, align 8
@TI_SYSC_OMAP4_TIMER = common local_unnamed_addr global i64 0, align 8
@SYSC_OMAP4_SOFTRESET = common local_unnamed_addr global i32 0, align 4
@SYSC_QUIRK_RESET_STATUS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sysc_init_syss_mask], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @sysc_init_syss_mask(ptr nocapture noundef %0) #0 {
%2 = alloca i32, align 4
%3 = getelementptr inbounds i8, ptr %0, i64 24
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load ptr, ptr %4, align 8, !tbaa !13
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
%6 = call i32 @of_property_read_u32(ptr noundef %5, ptr noundef nonnull @.str, ptr noundef nonnull %2) #3
%7 = icmp eq i32 %6, 0
br i1 %7, label %27, label %8
8: ; preds = %1
%9 = getelementptr inbounds i8, ptr %0, i64 16
%10 = load ptr, ptr %9, align 8, !tbaa !15
%11 = load i64, ptr %10, align 8, !tbaa !16
%12 = load i64, ptr @TI_SYSC_OMAP4, align 8, !tbaa !19
%13 = icmp eq i64 %11, %12
%14 = load i64, ptr @TI_SYSC_OMAP4_TIMER, align 8
%15 = icmp eq i64 %11, %14
%16 = select i1 %13, i1 true, i1 %15
br i1 %16, label %17, label %43
17: ; preds = %8
%18 = load i32, ptr %0, align 8, !tbaa !20
%19 = load i32, ptr @SYSC_OMAP4_SOFTRESET, align 4, !tbaa !21
%20 = and i32 %19, %18
%21 = icmp eq i32 %20, 0
br i1 %21, label %43, label %22
22: ; preds = %17
%23 = load i32, ptr @SYSC_QUIRK_RESET_STATUS, align 4, !tbaa !21
%24 = getelementptr inbounds i8, ptr %0, i64 8
%25 = load i32, ptr %24, align 8, !tbaa !22
%26 = or i32 %25, %23
store i32 %26, ptr %24, align 8, !tbaa !22
br label %43
27: ; preds = %1
%28 = load i32, ptr %2, align 4, !tbaa !21
%29 = and i32 %28, 1
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %27
%32 = load i32, ptr %0, align 8, !tbaa !20
%33 = load i32, ptr @SYSC_OMAP4_SOFTRESET, align 4, !tbaa !21
%34 = and i32 %33, %32
%35 = icmp eq i32 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %31
%37 = load i32, ptr @SYSC_QUIRK_RESET_STATUS, align 4, !tbaa !21
%38 = getelementptr inbounds i8, ptr %0, i64 8
%39 = load i32, ptr %38, align 8, !tbaa !22
%40 = or i32 %39, %37
store i32 %40, ptr %38, align 8, !tbaa !22
br label %41
41: ; preds = %36, %31, %27
%42 = getelementptr inbounds i8, ptr %0, i64 4
store i32 %28, ptr %42, align 4, !tbaa !23
br label %43
43: ; preds = %17, %22, %8, %41
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @of_property_read_u32(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 24}
!7 = !{!"sysc", !8, i64 0, !12, i64 16, !12, i64 24}
!8 = !{!"TYPE_5__", !9, i64 0, !9, i64 4, !9, 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, !12, i64 0}
!14 = !{!"TYPE_6__", !12, i64 0}
!15 = !{!7, !12, i64 16}
!16 = !{!17, !18, i64 0}
!17 = !{!"TYPE_4__", !18, i64 0}
!18 = !{!"long", !10, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!7, !9, i64 0}
!21 = !{!9, !9, i64 0}
!22 = !{!7, !9, i64 8}
!23 = !{!7, !9, i64 4}
| linux_drivers_bus_extr_ti-sysc.c_sysc_init_syss_mask |
; ModuleID = 'AnghaBench/freebsd/usr.bin/factor/extr_factor.c_main.c'
source_filename = "AnghaBench/freebsd/usr.bin/factor/extr_factor.c_main.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@LINE_MAX = dso_local local_unnamed_addr global i32 0, align 4
@ctx = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"can't initialise bignum\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"h\00", align 1
@hflag = dso_local local_unnamed_addr global i32 0, align 4
@optind = dso_local local_unnamed_addr global i64 0, align 8
@stdin = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [6 x i8] c"stdin\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"negative numbers aren't permitted.\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"%s: illegal numeric format.\00", align 1
; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%4 = load i32, ptr @LINE_MAX, align 4, !tbaa !5
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5, align 16
%7 = tail call i32 (...) @BN_CTX_new() #4
store i32 %7, ptr @ctx, align 4, !tbaa !5
%8 = tail call ptr (...) @BN_new() #4
store ptr %8, ptr %3, align 8, !tbaa !9
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str) #4
br label %12
12: ; preds = %10, %2
br label %13
13: ; preds = %20, %12
%14 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1) #4
switch i32 %14, label %18 [
i32 -1, label %21
i32 104, label %15
]
15: ; preds = %13
%16 = load i32, ptr @hflag, align 4, !tbaa !5
%17 = add nsw i32 %16, 1
store i32 %17, ptr @hflag, align 4, !tbaa !5
br label %20
18: ; preds = %13
%19 = tail call i32 (...) @usage() #4
br label %20
20: ; preds = %18, %15
br label %13, !llvm.loop !11
21: ; preds = %13
%22 = load i64, ptr @optind, align 8, !tbaa !13
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, %0
br i1 %24, label %29, label %25
25: ; preds = %21
%26 = getelementptr inbounds ptr, ptr %1, i64 %22
%27 = load ptr, ptr %26, align 8, !tbaa !9
%28 = icmp eq ptr %27, null
br i1 %28, label %93, label %68
29: ; preds = %21
%30 = load i32, ptr @stdin, align 4, !tbaa !5
%31 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef %4, i32 noundef %30) #4
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %41
33: ; preds = %51, %29
%34 = load i32, ptr @stdin, align 4, !tbaa !5
%35 = call i64 @ferror(i32 noundef %34) #4
%36 = icmp eq i64 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %33
%38 = call i32 @err(i32 noundef 1, ptr noundef nonnull @.str.2) #4
br label %39
39: ; preds = %37, %33
%40 = call i32 @exit(i32 noundef 0) #5
unreachable
41: ; preds = %29, %47
%42 = phi ptr [ %48, %47 ], [ %6, %29 ]
%43 = load i8, ptr %42, align 1, !tbaa !15
%44 = call i64 @isblank(i8 noundef signext %43) #4
%45 = icmp eq i64 %44, 0
%46 = getelementptr inbounds i8, ptr %42, i64 1
br i1 %45, label %49, label %47
47: ; preds = %41, %51
%48 = phi ptr [ %46, %41 ], [ %6, %51 ]
br label %41, !llvm.loop !16
49: ; preds = %41
%50 = load i8, ptr %42, align 1, !tbaa !15
switch i8 %50, label %57 [
i8 10, label %51
i8 0, label %51
i8 45, label %55
]
51: ; preds = %49, %49, %65
%52 = load i32, ptr @stdin, align 4, !tbaa !5
%53 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef %4, i32 noundef %52) #4
%54 = icmp eq ptr %53, null
br i1 %54, label %33, label %47
55: ; preds = %49
%56 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.3) #4
br label %57
57: ; preds = %49, %55
%58 = call i64 @BN_dec2bn(ptr noundef nonnull %3, ptr noundef nonnull %6) #4
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = call i64 @BN_hex2bn(ptr noundef nonnull %3, ptr noundef nonnull %6) #4
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef nonnull %6) #4
br label %65
65: ; preds = %63, %60, %57
%66 = load ptr, ptr %3, align 8, !tbaa !9
%67 = call i32 @pr_fact(ptr noundef %66) #4
br label %51
68: ; preds = %25, %87
%69 = phi ptr [ %91, %87 ], [ %27, %25 ]
%70 = phi ptr [ %90, %87 ], [ %26, %25 ]
%71 = load i8, ptr %69, align 1, !tbaa !15
%72 = icmp eq i8 %71, 45
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.3) #4
%75 = load ptr, ptr %70, align 8, !tbaa !9
br label %76
76: ; preds = %73, %68
%77 = phi ptr [ %75, %73 ], [ %69, %68 ]
%78 = call i64 @BN_dec2bn(ptr noundef nonnull %3, ptr noundef %77) #4
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %87
80: ; preds = %76
%81 = load ptr, ptr %70, align 8, !tbaa !9
%82 = call i64 @BN_hex2bn(ptr noundef nonnull %3, ptr noundef %81) #4
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = load ptr, ptr %70, align 8, !tbaa !9
%86 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef %85) #4
br label %87
87: ; preds = %84, %80, %76
%88 = load ptr, ptr %3, align 8, !tbaa !9
%89 = call i32 @pr_fact(ptr noundef %88) #4
%90 = getelementptr inbounds ptr, ptr %70, i64 1
%91 = load ptr, ptr %90, align 8, !tbaa !9
%92 = icmp eq ptr %91, null
br i1 %92, label %93, label %68, !llvm.loop !17
93: ; preds = %87, %25
%94 = call i32 @exit(i32 noundef 0) #5
unreachable
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @BN_CTX_new(...) local_unnamed_addr #2
declare ptr @BN_new(...) local_unnamed_addr #2
declare i32 @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @usage(...) local_unnamed_addr #2
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ferror(i32 noundef) local_unnamed_addr #2
declare i32 @err(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #3
declare i64 @isblank(i8 noundef signext) local_unnamed_addr #2
declare i64 @BN_dec2bn(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @BN_hex2bn(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @pr_fact(ptr noundef) local_unnamed_addr #2
attributes #0 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
| ; ModuleID = 'AnghaBench/freebsd/usr.bin/factor/extr_factor.c_main.c'
source_filename = "AnghaBench/freebsd/usr.bin/factor/extr_factor.c_main.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LINE_MAX = common local_unnamed_addr global i32 0, align 4
@ctx = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"can't initialise bignum\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"h\00", align 1
@hflag = common local_unnamed_addr global i32 0, align 4
@optind = common local_unnamed_addr global i64 0, align 8
@stdin = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [6 x i8] c"stdin\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"negative numbers aren't permitted.\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"%s: illegal numeric format.\00", align 1
; Function Attrs: noreturn nounwind ssp uwtable(sync)
define noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%4 = load i32, ptr @LINE_MAX, align 4, !tbaa !6
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5, align 1
%7 = tail call i32 @BN_CTX_new() #4
store i32 %7, ptr @ctx, align 4, !tbaa !6
%8 = tail call ptr @BN_new() #4
store ptr %8, ptr %3, align 8, !tbaa !10
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str) #4
br label %12
12: ; preds = %10, %2
br label %13
13: ; preds = %20, %12
%14 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.1) #4
switch i32 %14, label %18 [
i32 -1, label %21
i32 104, label %15
]
15: ; preds = %13
%16 = load i32, ptr @hflag, align 4, !tbaa !6
%17 = add nsw i32 %16, 1
store i32 %17, ptr @hflag, align 4, !tbaa !6
br label %20
18: ; preds = %13
%19 = tail call i32 @usage() #4
br label %20
20: ; preds = %18, %15
br label %13, !llvm.loop !12
21: ; preds = %13
%22 = load i64, ptr @optind, align 8, !tbaa !14
%23 = trunc i64 %22 to i32
%24 = icmp eq i32 %23, %0
br i1 %24, label %29, label %25
25: ; preds = %21
%26 = getelementptr inbounds ptr, ptr %1, i64 %22
%27 = load ptr, ptr %26, align 8, !tbaa !10
%28 = icmp eq ptr %27, null
br i1 %28, label %93, label %68
29: ; preds = %21
%30 = load i32, ptr @stdin, align 4, !tbaa !6
%31 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef %4, i32 noundef %30) #4
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %41
33: ; preds = %51, %29
%34 = load i32, ptr @stdin, align 4, !tbaa !6
%35 = call i64 @ferror(i32 noundef %34) #4
%36 = icmp eq i64 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %33
%38 = call i32 @err(i32 noundef 1, ptr noundef nonnull @.str.2) #4
br label %39
39: ; preds = %37, %33
%40 = call i32 @exit(i32 noundef 0) #5
unreachable
41: ; preds = %29, %47
%42 = phi ptr [ %48, %47 ], [ %6, %29 ]
%43 = load i8, ptr %42, align 1, !tbaa !16
%44 = call i64 @isblank(i8 noundef signext %43) #4
%45 = icmp eq i64 %44, 0
%46 = getelementptr inbounds i8, ptr %42, i64 1
br i1 %45, label %49, label %47
47: ; preds = %41, %51
%48 = phi ptr [ %46, %41 ], [ %6, %51 ]
br label %41, !llvm.loop !17
49: ; preds = %41
%50 = load i8, ptr %42, align 1, !tbaa !16
switch i8 %50, label %57 [
i8 10, label %51
i8 0, label %51
i8 45, label %55
]
51: ; preds = %49, %49, %65
%52 = load i32, ptr @stdin, align 4, !tbaa !6
%53 = call ptr @fgets(ptr noundef nonnull %6, i32 noundef %4, i32 noundef %52) #4
%54 = icmp eq ptr %53, null
br i1 %54, label %33, label %47
55: ; preds = %49
%56 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.3) #4
br label %57
57: ; preds = %49, %55
%58 = call i64 @BN_dec2bn(ptr noundef nonnull %3, ptr noundef nonnull %6) #4
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = call i64 @BN_hex2bn(ptr noundef nonnull %3, ptr noundef nonnull %6) #4
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef nonnull %6) #4
br label %65
65: ; preds = %63, %60, %57
%66 = load ptr, ptr %3, align 8, !tbaa !10
%67 = call i32 @pr_fact(ptr noundef %66) #4
br label %51
68: ; preds = %25, %87
%69 = phi ptr [ %91, %87 ], [ %27, %25 ]
%70 = phi ptr [ %90, %87 ], [ %26, %25 ]
%71 = load i8, ptr %69, align 1, !tbaa !16
%72 = icmp eq i8 %71, 45
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.3) #4
%75 = load ptr, ptr %70, align 8, !tbaa !10
br label %76
76: ; preds = %73, %68
%77 = phi ptr [ %75, %73 ], [ %69, %68 ]
%78 = call i64 @BN_dec2bn(ptr noundef nonnull %3, ptr noundef %77) #4
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %87
80: ; preds = %76
%81 = load ptr, ptr %70, align 8, !tbaa !10
%82 = call i64 @BN_hex2bn(ptr noundef nonnull %3, ptr noundef %81) #4
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = load ptr, ptr %70, align 8, !tbaa !10
%86 = call i32 (i32, ptr, ...) @errx(i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef %85) #4
br label %87
87: ; preds = %84, %80, %76
%88 = load ptr, ptr %3, align 8, !tbaa !10
%89 = call i32 @pr_fact(ptr noundef %88) #4
%90 = getelementptr inbounds i8, ptr %70, i64 8
%91 = load ptr, ptr %90, align 8, !tbaa !10
%92 = icmp eq ptr %91, null
br i1 %92, label %93, label %68, !llvm.loop !18
93: ; preds = %87, %25
%94 = call i32 @exit(i32 noundef 0) #5
unreachable
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @BN_CTX_new(...) local_unnamed_addr #2
declare ptr @BN_new(...) local_unnamed_addr #2
declare i32 @errx(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @usage(...) local_unnamed_addr #2
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @ferror(i32 noundef) local_unnamed_addr #2
declare i32 @err(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) local_unnamed_addr #3
declare i64 @isblank(i8 noundef signext) local_unnamed_addr #2
declare i64 @BN_dec2bn(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @BN_hex2bn(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @pr_fact(ptr noundef) local_unnamed_addr #2
attributes #0 = { noreturn nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { noreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
| freebsd_usr.bin_factor_extr_factor.c_main |
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/ttm/extr_ttm_bo.c_ttm_bo_global_release.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/ttm/extr_ttm_bo.c_ttm_bo_global_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.ttm_bo_global = type { i32 }
@ttm_bo_glob = dso_local global %struct.ttm_bo_global zeroinitializer, align 4
@ttm_global_mutex = dso_local global i32 0, align 4
@ttm_bo_glob_use_count = dso_local local_unnamed_addr global i64 0, align 8
@ttm_mem_glob = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ttm_bo_global_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ttm_bo_global_release() #0 {
%1 = tail call i32 @mutex_lock(ptr noundef nonnull @ttm_global_mutex) #2
%2 = load i64, ptr @ttm_bo_glob_use_count, align 8, !tbaa !5
%3 = add nsw i64 %2, -1
store i64 %3, ptr @ttm_bo_glob_use_count, align 8, !tbaa !5
%4 = icmp sgt i64 %2, 1
br i1 %4, label %10, label %5
5: ; preds = %0
%6 = tail call i32 @kobject_del(ptr noundef nonnull @ttm_bo_glob) #2
%7 = tail call i32 @kobject_put(ptr noundef nonnull @ttm_bo_glob) #2
%8 = tail call i32 @ttm_mem_global_release(ptr noundef nonnull @ttm_mem_glob) #2
%9 = tail call i32 @memset(ptr noundef nonnull @ttm_bo_glob, i32 noundef 0, i32 noundef 4) #2
br label %10
10: ; preds = %0, %5
%11 = tail call i32 @mutex_unlock(ptr noundef nonnull @ttm_global_mutex) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @kobject_del(ptr noundef) local_unnamed_addr #1
declare i32 @kobject_put(ptr noundef) local_unnamed_addr #1
declare i32 @ttm_mem_global_release(ptr noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/ttm/extr_ttm_bo.c_ttm_bo_global_release.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/ttm/extr_ttm_bo.c_ttm_bo_global_release.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.ttm_bo_global = type { i32 }
@ttm_bo_glob = common global %struct.ttm_bo_global zeroinitializer, align 4
@ttm_global_mutex = common global i32 0, align 4
@ttm_bo_glob_use_count = common local_unnamed_addr global i64 0, align 8
@ttm_mem_glob = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ttm_bo_global_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ttm_bo_global_release() #0 {
%1 = tail call i32 @mutex_lock(ptr noundef nonnull @ttm_global_mutex) #2
%2 = load i64, ptr @ttm_bo_glob_use_count, align 8, !tbaa !6
%3 = add nsw i64 %2, -1
store i64 %3, ptr @ttm_bo_glob_use_count, align 8, !tbaa !6
%4 = icmp sgt i64 %2, 1
br i1 %4, label %10, label %5
5: ; preds = %0
%6 = tail call i32 @kobject_del(ptr noundef nonnull @ttm_bo_glob) #2
%7 = tail call i32 @kobject_put(ptr noundef nonnull @ttm_bo_glob) #2
%8 = tail call i32 @ttm_mem_global_release(ptr noundef nonnull @ttm_mem_glob) #2
%9 = tail call i32 @memset(ptr noundef nonnull @ttm_bo_glob, i32 noundef 0, i32 noundef 4) #2
br label %10
10: ; preds = %0, %5
%11 = tail call i32 @mutex_unlock(ptr noundef nonnull @ttm_global_mutex) #2
ret void
}
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @kobject_del(ptr noundef) local_unnamed_addr #1
declare i32 @kobject_put(ptr noundef) local_unnamed_addr #1
declare i32 @ttm_mem_global_release(ptr noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_gpu_drm_ttm_extr_ttm_bo.c_ttm_bo_global_release |
; ModuleID = 'AnghaBench/linux/net/batman-adv/extr_sysfs.c_batadv_sysfs_del_vlan.c'
source_filename = "AnghaBench/linux/net/batman-adv/extr_sysfs.c_batadv_sysfs_del_vlan.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@batadv_vlan_attrs = dso_local local_unnamed_addr global ptr null, align 8
@KOBJ_REMOVE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @batadv_sysfs_del_vlan(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @batadv_vlan_attrs, align 8, !tbaa !5
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %14, label %6
6: ; preds = %2, %6
%7 = phi ptr [ %12, %6 ], [ %4, %2 ]
%8 = phi ptr [ %11, %6 ], [ %3, %2 ]
%9 = load ptr, ptr %1, align 8, !tbaa !9
%10 = tail call i32 @sysfs_remove_file(ptr noundef %9, ptr noundef nonnull %7) #2
%11 = getelementptr inbounds ptr, ptr %8, i64 1
%12 = load ptr, ptr %11, align 8, !tbaa !5
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %6, !llvm.loop !11
14: ; preds = %6, %2
%15 = load ptr, ptr %1, align 8, !tbaa !9
%16 = load ptr, ptr %0, align 8, !tbaa !13
%17 = icmp eq ptr %15, %16
br i1 %17, label %24, label %18
18: ; preds = %14
%19 = load i32, ptr @KOBJ_REMOVE, align 4, !tbaa !15
%20 = tail call i32 @kobject_uevent(ptr noundef %15, i32 noundef %19) #2
%21 = load ptr, ptr %1, align 8, !tbaa !9
%22 = tail call i32 @kobject_del(ptr noundef %21) #2
%23 = load ptr, ptr %1, align 8, !tbaa !9
br label %24
24: ; preds = %18, %14
%25 = phi ptr [ %23, %18 ], [ %15, %14 ]
%26 = tail call i32 @kobject_put(ptr noundef %25) #2
store ptr null, ptr %1, align 8, !tbaa !9
ret void
}
declare i32 @sysfs_remove_file(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kobject_uevent(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kobject_del(ptr noundef) local_unnamed_addr #1
declare i32 @kobject_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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"batadv_softif_vlan", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 0}
!14 = !{!"batadv_priv", !6, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/net/batman-adv/extr_sysfs.c_batadv_sysfs_del_vlan.c'
source_filename = "AnghaBench/linux/net/batman-adv/extr_sysfs.c_batadv_sysfs_del_vlan.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@batadv_vlan_attrs = common local_unnamed_addr global ptr null, align 8
@KOBJ_REMOVE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @batadv_sysfs_del_vlan(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
%3 = load ptr, ptr @batadv_vlan_attrs, align 8, !tbaa !6
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %14, label %6
6: ; preds = %2, %6
%7 = phi ptr [ %12, %6 ], [ %4, %2 ]
%8 = phi ptr [ %11, %6 ], [ %3, %2 ]
%9 = load ptr, ptr %1, align 8, !tbaa !10
%10 = tail call i32 @sysfs_remove_file(ptr noundef %9, ptr noundef nonnull %7) #2
%11 = getelementptr inbounds i8, ptr %8, i64 8
%12 = load ptr, ptr %11, align 8, !tbaa !6
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %6, !llvm.loop !12
14: ; preds = %6, %2
%15 = load ptr, ptr %1, align 8, !tbaa !10
%16 = load ptr, ptr %0, align 8, !tbaa !14
%17 = icmp eq ptr %15, %16
br i1 %17, label %24, label %18
18: ; preds = %14
%19 = load i32, ptr @KOBJ_REMOVE, align 4, !tbaa !16
%20 = tail call i32 @kobject_uevent(ptr noundef %15, i32 noundef %19) #2
%21 = load ptr, ptr %1, align 8, !tbaa !10
%22 = tail call i32 @kobject_del(ptr noundef %21) #2
%23 = load ptr, ptr %1, align 8, !tbaa !10
br label %24
24: ; preds = %18, %14
%25 = phi ptr [ %23, %18 ], [ %15, %14 ]
%26 = tail call i32 @kobject_put(ptr noundef %25) #2
store ptr null, ptr %1, align 8, !tbaa !10
ret void
}
declare i32 @sysfs_remove_file(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @kobject_uevent(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @kobject_del(ptr noundef) local_unnamed_addr #1
declare i32 @kobject_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, !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 = !{!"batadv_softif_vlan", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !7, i64 0}
!15 = !{!"batadv_priv", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !8, i64 0}
| linux_net_batman-adv_extr_sysfs.c_batadv_sysfs_del_vlan |
; ModuleID = 'AnghaBench/postgres/src/backend/utils/hash/extr_hashfn.c_tag_hash.c'
source_filename = "AnghaBench/postgres/src/backend/utils/hash/extr_hashfn.c_tag_hash.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local i32 @tag_hash(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = trunc i64 %1 to i32
%4 = tail call i32 @hash_any(ptr noundef %0, i32 noundef %3) #2
%5 = tail call i32 @DatumGetUInt32(i32 noundef %4) #2
ret i32 %5
}
declare i32 @DatumGetUInt32(i32 noundef) local_unnamed_addr #1
declare i32 @hash_any(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/postgres/src/backend/utils/hash/extr_hashfn.c_tag_hash.c'
source_filename = "AnghaBench/postgres/src/backend/utils/hash/extr_hashfn.c_tag_hash.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @tag_hash(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = trunc i64 %1 to i32
%4 = tail call i32 @hash_any(ptr noundef %0, i32 noundef %3) #2
%5 = tail call i32 @DatumGetUInt32(i32 noundef %4) #2
ret i32 %5
}
declare i32 @DatumGetUInt32(i32 noundef) local_unnamed_addr #1
declare i32 @hash_any(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)"}
| postgres_src_backend_utils_hash_extr_hashfn.c_tag_hash |
; ModuleID = 'AnghaBench/reactos/dll/opengl/mesa/extr_dlist.c_gl_save_End.c'
source_filename = "AnghaBench/reactos/dll/opengl/mesa/extr_dlist.c_gl_save_End.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_7__ = type { %struct.TYPE_6__, i64 }
%struct.TYPE_6__ = type { ptr }
@OPCODE_END = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @gl_save_End(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @OPCODE_END, align 4, !tbaa !5
%3 = tail call i32 @alloc_instruction(ptr noundef %0, i32 noundef %2, i32 noundef 0) #2
%4 = getelementptr inbounds %struct.TYPE_7__, ptr %0, i64 0, i32 1
%5 = load i64, ptr %4, align 8, !tbaa !9
%6 = icmp eq i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load ptr, ptr %0, align 8, !tbaa !14
%9 = tail call i32 %8(ptr noundef nonnull %0) #2
br label %10
10: ; preds = %7, %1
ret void
}
declare i32 @alloc_instruction(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, !13, i64 8}
!10 = !{!"TYPE_7__", !11, i64 0, !13, i64 8}
!11 = !{!"TYPE_6__", !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !12, i64 0}
| ; ModuleID = 'AnghaBench/reactos/dll/opengl/mesa/extr_dlist.c_gl_save_End.c'
source_filename = "AnghaBench/reactos/dll/opengl/mesa/extr_dlist.c_gl_save_End.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OPCODE_END = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @gl_save_End(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @OPCODE_END, align 4, !tbaa !6
%3 = tail call i32 @alloc_instruction(ptr noundef %0, i32 noundef %2, i32 noundef 0) #2
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load i64, ptr %4, align 8, !tbaa !10
%6 = icmp eq i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load ptr, ptr %0, align 8, !tbaa !15
%9 = tail call i32 %8(ptr noundef nonnull %0) #2
br label %10
10: ; preds = %7, %1
ret void
}
declare i32 @alloc_instruction(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, !14, i64 8}
!11 = !{!"TYPE_7__", !12, i64 0, !14, i64 8}
!12 = !{!"TYPE_6__", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!11, !13, i64 0}
| reactos_dll_opengl_mesa_extr_dlist.c_gl_save_End |
; ModuleID = 'AnghaBench/reactos/sdk/lib/3rdparty/stlport/src/extr_c_locale_dummyc_locale_dummy.c__Locale_p_sign_posn.c'
source_filename = "AnghaBench/reactos/sdk/lib/3rdparty/stlport/src/extr_c_locale_dummyc_locale_dummy.c__Locale_p_sign_posn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CHAR_MAX = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @_Locale_p_sign_posn(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = load i32, ptr @CHAR_MAX, align 4, !tbaa !5
ret i32 %2
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/reactos/sdk/lib/3rdparty/stlport/src/extr_c_locale_dummyc_locale_dummy.c__Locale_p_sign_posn.c'
source_filename = "AnghaBench/reactos/sdk/lib/3rdparty/stlport/src/extr_c_locale_dummyc_locale_dummy.c__Locale_p_sign_posn.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CHAR_MAX = common local_unnamed_addr global i32 0, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i32 @_Locale_p_sign_posn(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = load i32, ptr @CHAR_MAX, align 4, !tbaa !6
ret i32 %2
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| reactos_sdk_lib_3rdparty_stlport_src_extr_c_locale_dummyc_locale_dummy.c__Locale_p_sign_posn |
; ModuleID = 'AnghaBench/openvpn/src/plugins/auth-pam/extr_auth-pam.c_name_value_match.c'
source_filename = "AnghaBench/openvpn/src/plugins/auth-pam/extr_auth-pam.c_name_value_match.c"
target datalayout = "e-m:e-p270:32:32-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 @name_value_match], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @name_value_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i8, ptr %0, align 1, !tbaa !5
%4 = tail call i32 @isalnum(i8 noundef signext %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %2, %10
%7 = phi ptr [ %11, %10 ], [ %0, %2 ]
%8 = load i8, ptr %7, align 1, !tbaa !5
%9 = icmp eq i8 %8, 0
br i1 %9, label %21, label %10
10: ; preds = %6
%11 = getelementptr inbounds i8, ptr %7, i64 1
%12 = load i8, ptr %11, align 1, !tbaa !5
%13 = tail call i32 @isalnum(i8 noundef signext %12) #2
%14 = icmp eq i32 %13, 0
br i1 %14, label %6, label %15, !llvm.loop !8
15: ; preds = %10, %2
%16 = phi ptr [ %0, %2 ], [ %11, %10 ]
%17 = tail call i32 @strlen(ptr noundef %1) #2
%18 = tail call i64 @strncasecmp(ptr noundef %1, ptr noundef nonnull %16, i32 noundef %17) #2
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %6, %15
%22 = phi i32 [ %20, %15 ], [ 0, %6 ]
ret i32 %22
}
declare i32 @isalnum(i8 noundef signext) local_unnamed_addr #1
declare i64 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = 'AnghaBench/openvpn/src/plugins/auth-pam/extr_auth-pam.c_name_value_match.c'
source_filename = "AnghaBench/openvpn/src/plugins/auth-pam/extr_auth-pam.c_name_value_match.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 @name_value_match], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @name_value_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i8, ptr %0, align 1, !tbaa !6
%4 = tail call i32 @isalnum(i8 noundef signext %3) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %2, %10
%7 = phi ptr [ %11, %10 ], [ %0, %2 ]
%8 = load i8, ptr %7, align 1, !tbaa !6
%9 = icmp eq i8 %8, 0
br i1 %9, label %21, label %10
10: ; preds = %6
%11 = getelementptr inbounds i8, ptr %7, i64 1
%12 = load i8, ptr %11, align 1, !tbaa !6
%13 = tail call i32 @isalnum(i8 noundef signext %12) #2
%14 = icmp eq i32 %13, 0
br i1 %14, label %6, label %15, !llvm.loop !9
15: ; preds = %10, %2
%16 = phi ptr [ %0, %2 ], [ %11, %10 ]
%17 = tail call i32 @strlen(ptr noundef %1) #2
%18 = tail call i64 @strncasecmp(ptr noundef %1, ptr noundef nonnull %16, i32 noundef %17) #2
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %6, %15
%22 = phi i32 [ %20, %15 ], [ 0, %6 ]
ret i32 %22
}
declare i32 @isalnum(i8 noundef signext) local_unnamed_addr #1
declare i64 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @strlen(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
| openvpn_src_plugins_auth-pam_extr_auth-pam.c_name_value_match |
; ModuleID = 'AnghaBench/linux/drivers/infiniband/hw/ocrdma/extr_ocrdma.h_ocrdma_is_enabled_and_synced.c'
source_filename = "AnghaBench/linux/drivers/infiniband/hw/ocrdma/extr_ocrdma.h_ocrdma_is_enabled_and_synced.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@OCRDMA_STATE_FLAG_ENABLED = dso_local local_unnamed_addr global i32 0, align 4
@OCRDMA_STATE_FLAG_SYNC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ocrdma_is_enabled_and_synced], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @ocrdma_is_enabled_and_synced(i32 noundef %0) #0 {
%2 = load i32, ptr @OCRDMA_STATE_FLAG_ENABLED, align 4, !tbaa !5
%3 = and i32 %2, %0
%4 = icmp ne i32 %3, 0
%5 = load i32, ptr @OCRDMA_STATE_FLAG_SYNC, align 4
%6 = and i32 %5, %0
%7 = icmp ne i32 %6, 0
%8 = select i1 %4, i1 %7, i1 false
%9 = zext i1 %8 to i32
ret i32 %9
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/infiniband/hw/ocrdma/extr_ocrdma.h_ocrdma_is_enabled_and_synced.c'
source_filename = "AnghaBench/linux/drivers/infiniband/hw/ocrdma/extr_ocrdma.h_ocrdma_is_enabled_and_synced.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OCRDMA_STATE_FLAG_ENABLED = common local_unnamed_addr global i32 0, align 4
@OCRDMA_STATE_FLAG_SYNC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ocrdma_is_enabled_and_synced], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 2) i32 @ocrdma_is_enabled_and_synced(i32 noundef %0) #0 {
%2 = load i32, ptr @OCRDMA_STATE_FLAG_ENABLED, align 4, !tbaa !6
%3 = and i32 %2, %0
%4 = icmp ne i32 %3, 0
%5 = load i32, ptr @OCRDMA_STATE_FLAG_SYNC, align 4
%6 = and i32 %5, %0
%7 = icmp ne i32 %6, 0
%8 = select i1 %4, i1 %7, i1 false
%9 = zext i1 %8 to i32
ret i32 %9
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| linux_drivers_infiniband_hw_ocrdma_extr_ocrdma.h_ocrdma_is_enabled_and_synced |
; ModuleID = 'AnghaBench/RetroArch/wii/libogc/lwbt/extr_physbusif.c_physbusif_output.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/lwbt/extr_physbusif.c_physbusif_output.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i32, i32, i32 }
%struct.memb_blks = type { i32 }
%struct.pbuf = type { i64, i64, ptr }
%struct.usbtxbuf = type { ptr, i64 }
@__usbdev = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
@HCI_COMMAND_DATA_PACKET = dso_local local_unnamed_addr global i64 0, align 8
@ctrlbufs = dso_local global %struct.memb_blks zeroinitializer, align 4
@HCI_ACL_DATA_PACKET = dso_local local_unnamed_addr global i64 0, align 8
@aclbufs = dso_local global %struct.memb_blks zeroinitializer, align 4
@__writectrlmsgCB = dso_local local_unnamed_addr global i32 0, align 4
@__writebulkmsgCB = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @physbusif_output(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @__usbdev, align 4, !tbaa !5
%4 = icmp eq i32 %3, 2
br i1 %4, label %5, label %81
5: ; preds = %2
%6 = getelementptr inbounds %struct.pbuf, ptr %0, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !10
%8 = inttoptr i64 %7 to ptr
%9 = load i64, ptr %8, align 8, !tbaa !14
%10 = load i64, ptr @HCI_COMMAND_DATA_PACKET, align 8, !tbaa !14
%11 = icmp eq i64 %9, %10
br i1 %11, label %15, label %12
12: ; preds = %5
%13 = load i64, ptr @HCI_ACL_DATA_PACKET, align 8, !tbaa !14
%14 = icmp eq i64 %9, %13
br i1 %14, label %15, label %81
15: ; preds = %12, %5
%16 = phi ptr [ @ctrlbufs, %5 ], [ @aclbufs, %12 ]
%17 = tail call ptr @btmemb_alloc(ptr noundef nonnull %16) #2
%18 = icmp eq ptr %17, null
br i1 %18, label %81, label %19
19: ; preds = %15
%20 = add nsw i64 %1, -1
%21 = getelementptr inbounds %struct.usbtxbuf, ptr %17, i64 0, i32 1
store i64 %20, ptr %21, align 8, !tbaa !15
%22 = ptrtoint ptr %17 to i64
%23 = add i64 %22, 16
%24 = tail call i64 @ROUNDUP32(i64 noundef %23) #2
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %17, align 8, !tbaa !17
%26 = icmp sgt i64 %1, 1
br i1 %26, label %27, label %59
27: ; preds = %19
%28 = load i64, ptr %6, align 8, !tbaa !10
%29 = add nsw i64 %28, 1
%30 = load i64, ptr %0, align 8, !tbaa !18
%31 = add nsw i64 %30, -1
%32 = tail call i32 @memcpy(ptr noundef %25, i64 noundef %29, i64 noundef %31) #2
%33 = load i64, ptr %0, align 8, !tbaa !18
%34 = sub i64 %1, %33
%35 = getelementptr inbounds %struct.pbuf, ptr %0, i64 0, i32 2
%36 = load ptr, ptr %35, align 8, !tbaa !19
%37 = icmp ne ptr %36, null
%38 = icmp sgt i64 %34, 0
%39 = select i1 %37, i1 %38, i1 false
br i1 %39, label %40, label %59
40: ; preds = %27
%41 = getelementptr i64, ptr %25, i64 %33
%42 = getelementptr i64, ptr %41, i64 -1
br label %43
43: ; preds = %40, %43
%44 = phi i64 [ %53, %43 ], [ %34, %40 ]
%45 = phi ptr [ %55, %43 ], [ %36, %40 ]
%46 = phi ptr [ %52, %43 ], [ %42, %40 ]
%47 = getelementptr inbounds %struct.pbuf, ptr %45, i64 0, i32 1
%48 = load i64, ptr %47, align 8, !tbaa !10
%49 = load i64, ptr %45, align 8, !tbaa !18
%50 = tail call i32 @memcpy(ptr noundef %46, i64 noundef %48, i64 noundef %49) #2
%51 = load i64, ptr %45, align 8, !tbaa !18
%52 = getelementptr inbounds i64, ptr %46, i64 %51
%53 = sub nsw i64 %44, %51
%54 = getelementptr inbounds %struct.pbuf, ptr %45, i64 0, i32 2
%55 = load ptr, ptr %54, align 8, !tbaa !19
%56 = icmp ne ptr %55, null
%57 = icmp sgt i64 %53, 0
%58 = select i1 %56, i1 %57, i1 false
br i1 %58, label %43, label %59, !llvm.loop !20
59: ; preds = %43, %27, %19
%60 = load i64, ptr %6, align 8, !tbaa !10
%61 = inttoptr i64 %60 to ptr
%62 = load i64, ptr %61, align 8, !tbaa !14
%63 = load i64, ptr @HCI_COMMAND_DATA_PACKET, align 8, !tbaa !14
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %71
65: ; preds = %59
%66 = load i32, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @__usbdev, i64 0, i32 2), align 4, !tbaa !23
%67 = load i64, ptr %21, align 8, !tbaa !15
%68 = load ptr, ptr %17, align 8, !tbaa !17
%69 = load i32, ptr @__writectrlmsgCB, align 4, !tbaa !24
%70 = tail call i32 @USB_WriteCtrlMsgAsync(i32 noundef %66, i32 noundef 32, i32 noundef 0, i32 noundef 0, i32 noundef 0, i64 noundef %67, ptr noundef %68, i32 noundef %69, ptr noundef nonnull %17) #2
br label %81
71: ; preds = %59
%72 = load i64, ptr @HCI_ACL_DATA_PACKET, align 8, !tbaa !14
%73 = icmp eq i64 %62, %72
br i1 %73, label %74, label %81
74: ; preds = %71
%75 = load i32, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @__usbdev, i64 0, i32 2), align 4, !tbaa !23
%76 = load i32, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @__usbdev, i64 0, i32 1), align 4, !tbaa !25
%77 = load i64, ptr %21, align 8, !tbaa !15
%78 = load ptr, ptr %17, align 8, !tbaa !17
%79 = load i32, ptr @__writebulkmsgCB, align 4, !tbaa !24
%80 = tail call i32 @USB_WriteBlkMsgAsync(i32 noundef %75, i32 noundef %76, i64 noundef %77, ptr noundef %78, i32 noundef %79, ptr noundef nonnull %17) #2
br label %81
81: ; preds = %15, %71, %74, %65, %12, %2
ret void
}
declare ptr @btmemb_alloc(ptr noundef) local_unnamed_addr #1
declare i64 @ROUNDUP32(i64 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @USB_WriteCtrlMsgAsync(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @USB_WriteBlkMsgAsync(i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_2__", !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 = !{!11, !12, i64 8}
!11 = !{!"pbuf", !12, i64 0, !12, i64 8, !13, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !12, i64 8}
!16 = !{!"usbtxbuf", !13, i64 0, !12, i64 8}
!17 = !{!16, !13, i64 0}
!18 = !{!11, !12, i64 0}
!19 = !{!11, !13, i64 16}
!20 = distinct !{!20, !21, !22}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = !{!6, !7, i64 8}
!24 = !{!7, !7, i64 0}
!25 = !{!6, !7, i64 4}
| ; ModuleID = 'AnghaBench/RetroArch/wii/libogc/lwbt/extr_physbusif.c_physbusif_output.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/lwbt/extr_physbusif.c_physbusif_output.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_2__ = type { i32, i32, i32 }
%struct.memb_blks = type { i32 }
@__usbdev = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
@HCI_COMMAND_DATA_PACKET = common local_unnamed_addr global i64 0, align 8
@ctrlbufs = common global %struct.memb_blks zeroinitializer, align 4
@HCI_ACL_DATA_PACKET = common local_unnamed_addr global i64 0, align 8
@aclbufs = common global %struct.memb_blks zeroinitializer, align 4
@__writectrlmsgCB = common local_unnamed_addr global i32 0, align 4
@__writebulkmsgCB = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @physbusif_output(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr @__usbdev, align 4, !tbaa !6
%4 = icmp eq i32 %3, 2
br i1 %4, label %5, label %81
5: ; preds = %2
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = inttoptr i64 %7 to ptr
%9 = load i64, ptr %8, align 8, !tbaa !15
%10 = load i64, ptr @HCI_COMMAND_DATA_PACKET, align 8, !tbaa !15
%11 = icmp eq i64 %9, %10
br i1 %11, label %15, label %12
12: ; preds = %5
%13 = load i64, ptr @HCI_ACL_DATA_PACKET, align 8, !tbaa !15
%14 = icmp eq i64 %9, %13
br i1 %14, label %15, label %81
15: ; preds = %12, %5
%16 = phi ptr [ @ctrlbufs, %5 ], [ @aclbufs, %12 ]
%17 = tail call ptr @btmemb_alloc(ptr noundef nonnull %16) #2
%18 = icmp eq ptr %17, null
br i1 %18, label %81, label %19
19: ; preds = %15
%20 = add nsw i64 %1, -1
%21 = getelementptr inbounds i8, ptr %17, i64 8
store i64 %20, ptr %21, align 8, !tbaa !16
%22 = ptrtoint ptr %17 to i64
%23 = add i64 %22, 16
%24 = tail call i64 @ROUNDUP32(i64 noundef %23) #2
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %17, align 8, !tbaa !18
%26 = icmp sgt i64 %1, 1
br i1 %26, label %27, label %59
27: ; preds = %19
%28 = load i64, ptr %6, align 8, !tbaa !11
%29 = add nsw i64 %28, 1
%30 = load i64, ptr %0, align 8, !tbaa !19
%31 = add nsw i64 %30, -1
%32 = tail call i32 @memcpy(ptr noundef %25, i64 noundef %29, i64 noundef %31) #2
%33 = load i64, ptr %0, align 8, !tbaa !19
%34 = sub i64 %1, %33
%35 = getelementptr inbounds i8, ptr %0, i64 16
%36 = load ptr, ptr %35, align 8, !tbaa !20
%37 = icmp ne ptr %36, null
%38 = icmp sgt i64 %34, 0
%39 = select i1 %37, i1 %38, i1 false
br i1 %39, label %40, label %59
40: ; preds = %27
%41 = getelementptr i64, ptr %25, i64 %33
%42 = getelementptr i8, ptr %41, i64 -8
br label %43
43: ; preds = %40, %43
%44 = phi i64 [ %53, %43 ], [ %34, %40 ]
%45 = phi ptr [ %55, %43 ], [ %36, %40 ]
%46 = phi ptr [ %52, %43 ], [ %42, %40 ]
%47 = getelementptr inbounds i8, ptr %45, i64 8
%48 = load i64, ptr %47, align 8, !tbaa !11
%49 = load i64, ptr %45, align 8, !tbaa !19
%50 = tail call i32 @memcpy(ptr noundef %46, i64 noundef %48, i64 noundef %49) #2
%51 = load i64, ptr %45, align 8, !tbaa !19
%52 = getelementptr inbounds i64, ptr %46, i64 %51
%53 = sub nsw i64 %44, %51
%54 = getelementptr inbounds i8, ptr %45, i64 16
%55 = load ptr, ptr %54, align 8, !tbaa !20
%56 = icmp ne ptr %55, null
%57 = icmp sgt i64 %53, 0
%58 = select i1 %56, i1 %57, i1 false
br i1 %58, label %43, label %59, !llvm.loop !21
59: ; preds = %43, %27, %19
%60 = load i64, ptr %6, align 8, !tbaa !11
%61 = inttoptr i64 %60 to ptr
%62 = load i64, ptr %61, align 8, !tbaa !15
%63 = load i64, ptr @HCI_COMMAND_DATA_PACKET, align 8, !tbaa !15
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %71
65: ; preds = %59
%66 = load i32, ptr getelementptr inbounds (i8, ptr @__usbdev, i64 8), align 4, !tbaa !24
%67 = load i64, ptr %21, align 8, !tbaa !16
%68 = load ptr, ptr %17, align 8, !tbaa !18
%69 = load i32, ptr @__writectrlmsgCB, align 4, !tbaa !25
%70 = tail call i32 @USB_WriteCtrlMsgAsync(i32 noundef %66, i32 noundef 32, i32 noundef 0, i32 noundef 0, i32 noundef 0, i64 noundef %67, ptr noundef %68, i32 noundef %69, ptr noundef nonnull %17) #2
br label %81
71: ; preds = %59
%72 = load i64, ptr @HCI_ACL_DATA_PACKET, align 8, !tbaa !15
%73 = icmp eq i64 %62, %72
br i1 %73, label %74, label %81
74: ; preds = %71
%75 = load i32, ptr getelementptr inbounds (i8, ptr @__usbdev, i64 8), align 4, !tbaa !24
%76 = load i32, ptr getelementptr inbounds (i8, ptr @__usbdev, i64 4), align 4, !tbaa !26
%77 = load i64, ptr %21, align 8, !tbaa !16
%78 = load ptr, ptr %17, align 8, !tbaa !18
%79 = load i32, ptr @__writebulkmsgCB, align 4, !tbaa !25
%80 = tail call i32 @USB_WriteBlkMsgAsync(i32 noundef %75, i32 noundef %76, i64 noundef %77, ptr noundef %78, i32 noundef %79, ptr noundef nonnull %17) #2
br label %81
81: ; preds = %15, %71, %74, %65, %12, %2
ret void
}
declare ptr @btmemb_alloc(ptr noundef) local_unnamed_addr #1
declare i64 @ROUNDUP32(i64 noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @USB_WriteCtrlMsgAsync(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @USB_WriteBlkMsgAsync(i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_2__", !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 = !{!12, !13, i64 8}
!12 = !{!"pbuf", !13, i64 0, !13, i64 8, !14, i64 16}
!13 = !{!"long", !9, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !13, i64 8}
!17 = !{!"usbtxbuf", !14, i64 0, !13, i64 8}
!18 = !{!17, !14, i64 0}
!19 = !{!12, !13, i64 0}
!20 = !{!12, !14, i64 16}
!21 = distinct !{!21, !22, !23}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.peeled.count", i32 1}
!24 = !{!7, !8, i64 8}
!25 = !{!8, !8, i64 0}
!26 = !{!7, !8, i64 4}
| RetroArch_wii_libogc_lwbt_extr_physbusif.c_physbusif_output |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/video/via/extr_dvi.c_check_tmds_chip.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/video/via/extr_dvi.c_check_tmds_chip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@OK = dso_local local_unnamed_addr global i32 0, align 4
@FAIL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @check_tmds_chip], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @check_tmds_chip(i32 noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @tmds_register_read(i32 noundef %0) #2
%4 = icmp eq i32 %3, %1
%5 = load i32, ptr @OK, align 4
%6 = load i32, ptr @FAIL, align 4
%7 = select i1 %4, i32 %5, i32 %6
ret i32 %7
}
declare i32 @tmds_register_read(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/video/via/extr_dvi.c_check_tmds_chip.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/video/via/extr_dvi.c_check_tmds_chip.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@OK = common local_unnamed_addr global i32 0, align 4
@FAIL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @check_tmds_chip], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @check_tmds_chip(i32 noundef %0, i32 noundef %1) #0 {
%3 = tail call i32 @tmds_register_read(i32 noundef %0) #2
%4 = icmp eq i32 %3, %1
%5 = load i32, ptr @OK, align 4
%6 = load i32, ptr @FAIL, align 4
%7 = select i1 %4, i32 %5, i32 %6
ret i32 %7
}
declare i32 @tmds_register_read(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
| fastsocket_kernel_drivers_video_via_extr_dvi.c_check_tmds_chip |
; ModuleID = 'AnghaBench/redcarpet/ext/redcarpet/extr_html.c_rndr_raw_block.c'
source_filename = "AnghaBench/redcarpet/ext/redcarpet/extr_html.c_rndr_raw_block.c"
target datalayout = "e-m:e-p270:32:32-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.buf = type { i64, ptr }
@HTML_SKIP_STYLE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"style\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @rndr_raw_block], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @rndr_raw_block(ptr noundef %0, ptr noundef readonly %1, ptr nocapture noundef readonly %2) #0 {
%4 = icmp eq ptr %1, null
br i1 %4, label %55, label %5
5: ; preds = %3
%6 = load i64, ptr %1, align 8, !tbaa !5
%7 = icmp eq i64 %6, 0
br i1 %7, label %31, label %8
8: ; preds = %5
%9 = getelementptr inbounds %struct.buf, ptr %1, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !11
%11 = getelementptr i8, ptr %10, i64 -1
br label %12
12: ; preds = %8, %17
%13 = phi i64 [ %6, %8 ], [ %18, %17 ]
%14 = getelementptr i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1, !tbaa !12
%16 = icmp eq i8 %15, 10
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = add i64 %13, -1
%19 = icmp eq i64 %18, 0
br i1 %19, label %31, label %12, !llvm.loop !13
20: ; preds = %12
%21 = getelementptr inbounds %struct.buf, ptr %1, i64 0, i32 1
%22 = load ptr, ptr %21, align 8, !tbaa !11
br label %23
23: ; preds = %20, %28
%24 = phi i64 [ 0, %20 ], [ %29, %28 ]
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1, !tbaa !12
%27 = icmp eq i8 %26, 10
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = add nuw i64 %24, 1
%30 = icmp eq i64 %29, %13
br i1 %30, label %31, label %23, !llvm.loop !15
31: ; preds = %17, %23, %28, %5
%32 = phi i64 [ 0, %5 ], [ %13, %28 ], [ %13, %23 ], [ 0, %17 ]
%33 = phi i64 [ 0, %5 ], [ %24, %23 ], [ %13, %28 ], [ 0, %17 ]
%34 = load i32, ptr %2, align 4, !tbaa !16
%35 = load i32, ptr @HTML_SKIP_STYLE, align 4, !tbaa !19
%36 = and i32 %35, %34
%37 = icmp eq i32 %36, 0
br i1 %37, label %43, label %38
38: ; preds = %31
%39 = getelementptr inbounds %struct.buf, ptr %1, i64 0, i32 1
%40 = load ptr, ptr %39, align 8, !tbaa !11
%41 = tail call i64 @sdhtml_is_tag(ptr noundef %40, i64 noundef %32, ptr noundef nonnull @.str) #2
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %55
43: ; preds = %38, %31
%44 = load i64, ptr %0, align 8, !tbaa !5
%45 = icmp eq i64 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = tail call i32 @bufputc(ptr noundef nonnull %0, i8 noundef signext 10) #2
br label %48
48: ; preds = %46, %43
%49 = getelementptr inbounds %struct.buf, ptr %1, i64 0, i32 1
%50 = load ptr, ptr %49, align 8, !tbaa !11
%51 = getelementptr inbounds i8, ptr %50, i64 %33
%52 = sub i64 %32, %33
%53 = tail call i32 @bufput(ptr noundef nonnull %0, ptr noundef %51, i64 noundef %52) #2
%54 = tail call i32 @bufputc(ptr noundef nonnull %0, i8 noundef signext 10) #2
br label %55
55: ; preds = %38, %3, %48
ret void
}
declare i64 @sdhtml_is_tag(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @bufputc(ptr noundef, i8 noundef signext) local_unnamed_addr #1
declare i32 @bufput(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"buf", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !18, i64 0}
!17 = !{!"html_renderopt", !18, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!18, !18, i64 0}
| ; ModuleID = 'AnghaBench/redcarpet/ext/redcarpet/extr_html.c_rndr_raw_block.c'
source_filename = "AnghaBench/redcarpet/ext/redcarpet/extr_html.c_rndr_raw_block.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@HTML_SKIP_STYLE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"style\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @rndr_raw_block], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @rndr_raw_block(ptr noundef %0, ptr noundef readonly %1, ptr nocapture noundef readonly %2) #0 {
%4 = icmp eq ptr %1, null
br i1 %4, label %54, label %5
5: ; preds = %3
%6 = load i64, ptr %1, align 8, !tbaa !6
%7 = icmp eq i64 %6, 0
br i1 %7, label %30, label %8
8: ; preds = %5
%9 = getelementptr inbounds i8, ptr %1, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !12
%11 = getelementptr i8, ptr %10, i64 -1
br label %12
12: ; preds = %8, %17
%13 = phi i64 [ %6, %8 ], [ %18, %17 ]
%14 = getelementptr i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1, !tbaa !13
%16 = icmp eq i8 %15, 10
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = add i64 %13, -1
%19 = icmp eq i64 %18, 0
br i1 %19, label %30, label %12, !llvm.loop !14
20: ; preds = %12
%21 = load ptr, ptr %9, align 8, !tbaa !12
br label %22
22: ; preds = %20, %27
%23 = phi i64 [ 0, %20 ], [ %28, %27 ]
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1, !tbaa !13
%26 = icmp eq i8 %25, 10
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = add nuw i64 %23, 1
%29 = icmp eq i64 %28, %13
br i1 %29, label %30, label %22, !llvm.loop !16
30: ; preds = %17, %22, %27, %5
%31 = phi i64 [ 0, %5 ], [ %13, %27 ], [ %13, %22 ], [ 0, %17 ]
%32 = phi i64 [ 0, %5 ], [ %23, %22 ], [ %13, %27 ], [ 0, %17 ]
%33 = load i32, ptr %2, align 4, !tbaa !17
%34 = load i32, ptr @HTML_SKIP_STYLE, align 4, !tbaa !20
%35 = and i32 %34, %33
%36 = icmp eq i32 %35, 0
br i1 %36, label %42, label %37
37: ; preds = %30
%38 = getelementptr inbounds i8, ptr %1, i64 8
%39 = load ptr, ptr %38, align 8, !tbaa !12
%40 = tail call i64 @sdhtml_is_tag(ptr noundef %39, i64 noundef %31, ptr noundef nonnull @.str) #2
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %54
42: ; preds = %37, %30
%43 = load i64, ptr %0, align 8, !tbaa !6
%44 = icmp eq i64 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %42
%46 = tail call i32 @bufputc(ptr noundef nonnull %0, i8 noundef signext 10) #2
br label %47
47: ; preds = %45, %42
%48 = getelementptr inbounds i8, ptr %1, i64 8
%49 = load ptr, ptr %48, align 8, !tbaa !12
%50 = getelementptr inbounds i8, ptr %49, i64 %32
%51 = sub i64 %31, %32
%52 = tail call i32 @bufput(ptr noundef nonnull %0, ptr noundef %50, i64 noundef %51) #2
%53 = tail call i32 @bufputc(ptr noundef nonnull %0, i8 noundef signext 10) #2
br label %54
54: ; preds = %37, %3, %47
ret void
}
declare i64 @sdhtml_is_tag(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @bufputc(ptr noundef, i8 noundef signext) local_unnamed_addr #1
declare i32 @bufput(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"buf", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!7, !11, i64 8}
!13 = !{!9, !9, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !19, i64 0}
!18 = !{!"html_renderopt", !19, i64 0}
!19 = !{!"int", !9, i64 0}
!20 = !{!19, !19, i64 0}
| redcarpet_ext_redcarpet_extr_html.c_rndr_raw_block |
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_rtd520.c_rtd_ns_to_timer.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_rtd520.c_rtd_ns_to_timer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@RTD_CLOCK_BASE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @rtd_ns_to_timer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @rtd_ns_to_timer(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @RTD_CLOCK_BASE, align 4, !tbaa !5
%4 = tail call i32 @rtd_ns_to_timer_base(ptr noundef %0, i32 noundef %1, i32 noundef %3) #2
ret i32 %4
}
declare i32 @rtd_ns_to_timer_base(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_rtd520.c_rtd_ns_to_timer.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/staging/comedi/drivers/extr_rtd520.c_rtd_ns_to_timer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RTD_CLOCK_BASE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @rtd_ns_to_timer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @rtd_ns_to_timer(ptr noundef %0, i32 noundef %1) #0 {
%3 = load i32, ptr @RTD_CLOCK_BASE, align 4, !tbaa !6
%4 = tail call i32 @rtd_ns_to_timer_base(ptr noundef %0, i32 noundef %1, i32 noundef %3) #2
ret i32 %4
}
declare i32 @rtd_ns_to_timer_base(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"}
| fastsocket_kernel_drivers_staging_comedi_drivers_extr_rtd520.c_rtd_ns_to_timer |
; ModuleID = 'AnghaBench/RetroArch/wii/libogc/libogc/extr_video.c_cntlzd.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/libogc/extr_video.c_cntlzd.c"
target datalayout = "e-m:e-p270:32:32-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 @cntlzd], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @cntlzd(i32 noundef %0) #0 {
%2 = tail call i32 @cntlzw(i32 noundef poison) #2
%3 = icmp sgt i32 %2, 31
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @cntlzw(i32 noundef %0) #2
%6 = add nsw i32 %5, %2
br label %7
7: ; preds = %4, %1
%8 = phi i32 [ %6, %4 ], [ %2, %1 ]
ret i32 %8
}
declare i32 @cntlzw(i32 noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
| ; ModuleID = 'AnghaBench/RetroArch/wii/libogc/libogc/extr_video.c_cntlzd.c'
source_filename = "AnghaBench/RetroArch/wii/libogc/libogc/extr_video.c_cntlzd.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 @cntlzd], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @cntlzd(i32 noundef %0) #0 {
%2 = tail call i32 @cntlzw(i32 noundef poison) #2
%3 = icmp sgt i32 %2, 31
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @cntlzw(i32 noundef %0) #2
%6 = add nsw i32 %5, %2
br label %7
7: ; preds = %4, %1
%8 = phi i32 [ %6, %4 ], [ %2, %1 ]
ret i32 %8
}
declare i32 @cntlzw(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)"}
| RetroArch_wii_libogc_libogc_extr_video.c_cntlzd |
; ModuleID = 'AnghaBench/linux/drivers/staging/android/ion/extr_ion_heap.c_ion_heap_unmap_kernel.c'
source_filename = "AnghaBench/linux/drivers/staging/android/ion/extr_ion_heap.c_ion_heap_unmap_kernel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @ion_heap_unmap_kernel(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = load i32, ptr %1, align 4, !tbaa !5
%4 = tail call i32 @vunmap(i32 noundef %3) #2
ret void
}
declare i32 @vunmap(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 = !{!"ion_buffer", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
| ; ModuleID = 'AnghaBench/linux/drivers/staging/android/ion/extr_ion_heap.c_ion_heap_unmap_kernel.c'
source_filename = "AnghaBench/linux/drivers/staging/android/ion/extr_ion_heap.c_ion_heap_unmap_kernel.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 @ion_heap_unmap_kernel(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
%3 = load i32, ptr %1, align 4, !tbaa !6
%4 = tail call i32 @vunmap(i32 noundef %3) #2
ret void
}
declare i32 @vunmap(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 = !{!"ion_buffer", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
| linux_drivers_staging_android_ion_extr_ion_heap.c_ion_heap_unmap_kernel |
; ModuleID = 'AnghaBench/fastsocket/kernel/net/sunrpc/extr_rpc_pipe.c_rpc_info_open.c'
source_filename = "AnghaBench/fastsocket/kernel/net/sunrpc/extr_rpc_pipe.c_rpc_info_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.file = type { %struct.TYPE_4__, ptr }
%struct.TYPE_4__ = type { ptr }
@rpc_show_info = dso_local local_unnamed_addr global i32 0, align 4
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @rpc_info_open], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @rpc_info_open(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @rpc_show_info, align 4, !tbaa !5
%4 = tail call i32 @single_open(ptr noundef %1, i32 noundef %3, ptr noundef null) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %30
6: ; preds = %2
%7 = getelementptr inbounds %struct.file, ptr %1, i64 0, i32 1
%8 = load ptr, ptr %7, align 8, !tbaa !9
%9 = load ptr, ptr %1, align 8, !tbaa !13
%10 = tail call i32 @spin_lock(ptr noundef %9) #2
%11 = load ptr, ptr %1, align 8, !tbaa !13
%12 = tail call i32 @d_unhashed(ptr noundef %11) #2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %24
14: ; preds = %6
%15 = tail call ptr @RPC_I(ptr noundef %0) #2
%16 = load ptr, ptr %15, align 8, !tbaa !14
%17 = icmp eq ptr %16, null
br i1 %17, label %24, label %18
18: ; preds = %14
%19 = tail call i64 @atomic_inc_not_zero(ptr noundef nonnull %16) #2
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load ptr, ptr %1, align 8, !tbaa !13
%23 = tail call i32 @spin_unlock(ptr noundef %22) #2
store ptr %16, ptr %8, align 8, !tbaa !16
br label %30
24: ; preds = %6, %18, %14
%25 = load ptr, ptr %1, align 8, !tbaa !13
%26 = tail call i32 @spin_unlock(ptr noundef %25) #2
%27 = tail call i32 @single_release(ptr noundef %0, ptr noundef nonnull %1) #2
%28 = load i32, ptr @EINVAL, align 4, !tbaa !5
%29 = sub nsw i32 0, %28
br label %30
30: ; preds = %21, %24, %2
%31 = phi i32 [ %4, %2 ], [ 0, %21 ], [ %29, %24 ]
ret i32 %31
}
declare i32 @single_open(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @d_unhashed(ptr noundef) local_unnamed_addr #1
declare ptr @RPC_I(ptr noundef) local_unnamed_addr #1
declare i64 @atomic_inc_not_zero(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @single_release(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"file", !11, i64 0, !12, i64 8}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !12, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"TYPE_6__", !12, i64 0}
!16 = !{!17, !12, i64 0}
!17 = !{!"seq_file", !12, i64 0}
| ; ModuleID = 'AnghaBench/fastsocket/kernel/net/sunrpc/extr_rpc_pipe.c_rpc_info_open.c'
source_filename = "AnghaBench/fastsocket/kernel/net/sunrpc/extr_rpc_pipe.c_rpc_info_open.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@rpc_show_info = common local_unnamed_addr global i32 0, align 4
@EINVAL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @rpc_info_open], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @rpc_info_open(ptr noundef %0, ptr noundef %1) #0 {
%3 = load i32, ptr @rpc_show_info, align 4, !tbaa !6
%4 = tail call i32 @single_open(ptr noundef %1, i32 noundef %3, ptr noundef null) #2
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %30
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %1, i64 8
%8 = load ptr, ptr %7, align 8, !tbaa !10
%9 = load ptr, ptr %1, align 8, !tbaa !14
%10 = tail call i32 @spin_lock(ptr noundef %9) #2
%11 = load ptr, ptr %1, align 8, !tbaa !14
%12 = tail call i32 @d_unhashed(ptr noundef %11) #2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %24
14: ; preds = %6
%15 = tail call ptr @RPC_I(ptr noundef %0) #2
%16 = load ptr, ptr %15, align 8, !tbaa !15
%17 = icmp eq ptr %16, null
br i1 %17, label %24, label %18
18: ; preds = %14
%19 = tail call i64 @atomic_inc_not_zero(ptr noundef nonnull %16) #2
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load ptr, ptr %1, align 8, !tbaa !14
%23 = tail call i32 @spin_unlock(ptr noundef %22) #2
store ptr %16, ptr %8, align 8, !tbaa !17
br label %30
24: ; preds = %6, %18, %14
%25 = load ptr, ptr %1, align 8, !tbaa !14
%26 = tail call i32 @spin_unlock(ptr noundef %25) #2
%27 = tail call i32 @single_release(ptr noundef %0, ptr noundef nonnull %1) #2
%28 = load i32, ptr @EINVAL, align 4, !tbaa !6
%29 = sub nsw i32 0, %28
br label %30
30: ; preds = %21, %24, %2
%31 = phi i32 [ %4, %2 ], [ 0, %21 ], [ %29, %24 ]
ret i32 %31
}
declare i32 @single_open(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare i32 @d_unhashed(ptr noundef) local_unnamed_addr #1
declare ptr @RPC_I(ptr noundef) local_unnamed_addr #1
declare i64 @atomic_inc_not_zero(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @single_release(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !13, i64 8}
!11 = !{!"file", !12, i64 0, !13, i64 8}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!11, !13, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"TYPE_6__", !13, i64 0}
!17 = !{!18, !13, i64 0}
!18 = !{!"seq_file", !13, i64 0}
| fastsocket_kernel_net_sunrpc_extr_rpc_pipe.c_rpc_info_open |
; ModuleID = 'AnghaBench/linux/drivers/block/drbd/extr_drbd_bitmap.c_bm_set_surplus.c'
source_filename = "AnghaBench/linux/drivers/block/drbd/extr_drbd_bitmap.c_bm_set_surplus.c"
target datalayout = "e-m:e-p270:32:32-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.drbd_bitmap = type { i32, i64 }
@BITS_PER_PAGE_MASK = dso_local local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG_MASK = dso_local local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bm_set_surplus], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @bm_set_surplus(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr @BITS_PER_PAGE_MASK, align 4, !tbaa !11
%4 = and i32 %3, %2
%5 = load i32, ptr @BITS_PER_LONG_MASK, align 4, !tbaa !11
%6 = and i32 %4, %5
%7 = zext nneg i32 %6 to i64
%8 = shl nsw i64 -1, %7
%9 = xor i64 %8, -1
%10 = tail call i64 @cpu_to_lel(i64 noundef %9) #2
%11 = getelementptr inbounds %struct.drbd_bitmap, ptr %0, i64 0, i32 1
%12 = load i64, ptr %11, align 8, !tbaa !12
%13 = add nsw i64 %12, -1
%14 = tail call ptr @bm_map_pidx(ptr noundef nonnull %0, i64 noundef %13) #2
%15 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !11
%16 = sdiv i32 %4, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i64, ptr %14, i64 %17
%19 = icmp eq i64 %10, 0
br i1 %19, label %25, label %20
20: ; preds = %1
%21 = xor i64 %10, -1
%22 = load i64, ptr %18, align 8, !tbaa !13
%23 = or i64 %22, %21
store i64 %23, ptr %18, align 8, !tbaa !13
%24 = getelementptr inbounds i64, ptr %18, i64 1
br label %25
25: ; preds = %20, %1
%26 = phi ptr [ %24, %20 ], [ %18, %1 ]
%27 = icmp eq i32 %15, 32
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = ptrtoint ptr %26 to i64
%30 = ptrtoint ptr %14 to i64
%31 = sub i64 %29, %30
%32 = and i64 %31, 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %28
store i64 -1, ptr %26, align 8, !tbaa !13
br label %35
35: ; preds = %34, %28, %25
%36 = tail call i32 @bm_unmap(ptr noundef %14) #2
ret void
}
declare i64 @cpu_to_lel(i64 noundef) local_unnamed_addr #1
declare ptr @bm_map_pidx(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @bm_unmap(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 = !{!"drbd_bitmap", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!10, !10, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/block/drbd/extr_drbd_bitmap.c_bm_set_surplus.c'
source_filename = "AnghaBench/linux/drivers/block/drbd/extr_drbd_bitmap.c_bm_set_surplus.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BITS_PER_PAGE_MASK = common local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG_MASK = common local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @bm_set_surplus], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @bm_set_surplus(ptr noundef %0) #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr @BITS_PER_PAGE_MASK, align 4, !tbaa !12
%4 = and i32 %3, %2
%5 = load i32, ptr @BITS_PER_LONG_MASK, align 4, !tbaa !12
%6 = and i32 %4, %5
%7 = zext nneg i32 %6 to i64
%8 = shl nsw i64 -1, %7
%9 = xor i64 %8, -1
%10 = tail call i64 @cpu_to_lel(i64 noundef %9) #2
%11 = getelementptr inbounds i8, ptr %0, i64 8
%12 = load i64, ptr %11, align 8, !tbaa !13
%13 = add nsw i64 %12, -1
%14 = tail call ptr @bm_map_pidx(ptr noundef nonnull %0, i64 noundef %13) #2
%15 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !12
%16 = sdiv i32 %4, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i64, ptr %14, i64 %17
%19 = icmp eq i64 %10, 0
br i1 %19, label %25, label %20
20: ; preds = %1
%21 = xor i64 %10, -1
%22 = load i64, ptr %18, align 8, !tbaa !14
%23 = or i64 %22, %21
store i64 %23, ptr %18, align 8, !tbaa !14
%24 = getelementptr inbounds i8, ptr %18, i64 8
br label %25
25: ; preds = %20, %1
%26 = phi ptr [ %24, %20 ], [ %18, %1 ]
%27 = icmp eq i32 %15, 32
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = ptrtoint ptr %26 to i64
%30 = ptrtoint ptr %14 to i64
%31 = sub i64 %29, %30
%32 = and i64 %31, 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %28
store i64 -1, ptr %26, align 8, !tbaa !14
br label %35
35: ; preds = %34, %28, %25
%36 = tail call i32 @bm_unmap(ptr noundef %14) #2
ret void
}
declare i64 @cpu_to_lel(i64 noundef) local_unnamed_addr #1
declare ptr @bm_map_pidx(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @bm_unmap(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 = !{!"drbd_bitmap", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!11, !11, i64 0}
| linux_drivers_block_drbd_extr_drbd_bitmap.c_bm_set_surplus |
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atlx_vlan_mode.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atlx_vlan_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.atlx_adapter = type { i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i64 }
@REG_MAC_CTRL = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @atlx_vlan_mode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @atlx_vlan_mode(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = tail call ptr @netdev_priv(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%5 = tail call i32 @spin_lock_irqsave(ptr noundef %4, i64 noundef undef) #3
%6 = getelementptr inbounds %struct.atlx_adapter, ptr %4, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !5
%8 = load i64, ptr @REG_MAC_CTRL, align 8, !tbaa !12
%9 = add nsw i64 %8, %7
%10 = tail call i32 @ioread32(i64 noundef %9) #3
store i32 %10, ptr %3, align 4, !tbaa !13
%11 = call i32 @__atlx_vlan_mode(i32 noundef %1, ptr noundef nonnull %3) #3
%12 = load i32, ptr %3, align 4, !tbaa !13
%13 = load i64, ptr %6, align 8, !tbaa !5
%14 = load i64, ptr @REG_MAC_CTRL, align 8, !tbaa !12
%15 = add nsw i64 %14, %13
%16 = call i32 @iowrite32(i32 noundef %12, i64 noundef %15) #3
%17 = call i32 @spin_unlock_irqrestore(ptr noundef %4, i64 noundef undef) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ioread32(i64 noundef) local_unnamed_addr #2
declare i32 @__atlx_vlan_mode(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @iowrite32(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !11, i64 8}
!6 = !{!"atlx_adapter", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_2__", !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !7, i64 0}
| ; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atlx_vlan_mode.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/atheros/atlx/extr_atlx.c_atlx_vlan_mode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@REG_MAC_CTRL = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @atlx_vlan_mode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @atlx_vlan_mode(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = tail call ptr @netdev_priv(ptr noundef %0) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
%5 = tail call i32 @spin_lock_irqsave(ptr noundef %4, i64 noundef undef) #3
%6 = getelementptr inbounds i8, ptr %4, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !6
%8 = load i64, ptr @REG_MAC_CTRL, align 8, !tbaa !13
%9 = add nsw i64 %8, %7
%10 = tail call i32 @ioread32(i64 noundef %9) #3
store i32 %10, ptr %3, align 4, !tbaa !14
%11 = call i32 @__atlx_vlan_mode(i32 noundef %1, ptr noundef nonnull %3) #3
%12 = load i32, ptr %3, align 4, !tbaa !14
%13 = load i64, ptr %6, align 8, !tbaa !6
%14 = load i64, ptr @REG_MAC_CTRL, align 8, !tbaa !13
%15 = add nsw i64 %14, %13
%16 = call i32 @iowrite32(i32 noundef %12, i64 noundef %15) #3
%17 = call i32 @spin_unlock_irqrestore(ptr noundef %4, i64 noundef undef) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #2
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ioread32(i64 noundef) local_unnamed_addr #2
declare i32 @__atlx_vlan_mode(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @iowrite32(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !12, i64 8}
!7 = !{!"atlx_adapter", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!8, !8, i64 0}
| linux_drivers_net_ethernet_atheros_atlx_extr_atlx.c_atlx_vlan_mode |
; ModuleID = 'AnghaBench/reactos/dll/win32/riched20/extr_undo.c_add_undo_insert_run.c'
source_filename = "AnghaBench/reactos/dll/win32/riched20/extr_undo.c_add_undo_insert_run.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i32, i32, i32, ptr, ptr }
@undo_insert_run = dso_local local_unnamed_addr global i32 0, align 4
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @add_undo_insert_run(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = load i32, ptr @undo_insert_run, align 4, !tbaa !5
%8 = tail call ptr @add_undo(ptr noundef %0, i32 noundef %7) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %27, label %10
10: ; preds = %6
%11 = shl i32 %3, 2
%12 = add i32 %11, 4
%13 = tail call ptr @heap_alloc(i32 noundef %12) #2
%14 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 0, i32 4
store ptr %13, ptr %14, align 8, !tbaa !9
%15 = icmp eq ptr %13, null
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = tail call i32 @ME_EmptyUndoStack(ptr noundef %0) #2
br label %27
18: ; preds = %10
%19 = sext i32 %3 to i64
%20 = tail call i32 @memcpy(ptr noundef nonnull %13, ptr noundef %2, i32 noundef %11) #2
%21 = load ptr, ptr %14, align 8, !tbaa !9
%22 = getelementptr inbounds i64, ptr %21, i64 %19
store i64 0, ptr %22, align 8, !tbaa !14
store i32 %1, ptr %8, align 8, !tbaa !16
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 0, i32 1
store i32 %3, ptr %23, align 4, !tbaa !17
%24 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 0, i32 2
store i32 %4, ptr %24, align 8, !tbaa !18
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i64 0, i32 3
store ptr %5, ptr %25, align 8, !tbaa !19
%26 = tail call i32 @ME_AddRefStyle(ptr noundef %5) #2
br label %27
27: ; preds = %6, %18, %16
%28 = phi ptr [ @TRUE, %18 ], [ @FALSE, %16 ], [ @FALSE, %6 ]
%29 = load i32, ptr %28, align 4, !tbaa !5
ret i32 %29
}
declare ptr @add_undo(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @heap_alloc(i32 noundef) local_unnamed_addr #1
declare i32 @ME_EmptyUndoStack(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ME_AddRefStyle(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 24}
!10 = !{!"undo_item", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0, !6, i64 4, !6, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!10, !6, i64 0}
!17 = !{!10, !6, i64 4}
!18 = !{!10, !6, i64 8}
!19 = !{!10, !13, i64 16}
| ; ModuleID = 'AnghaBench/reactos/dll/win32/riched20/extr_undo.c_add_undo_insert_run.c'
source_filename = "AnghaBench/reactos/dll/win32/riched20/extr_undo.c_add_undo_insert_run.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@undo_insert_run = common local_unnamed_addr global i32 0, align 4
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @add_undo_insert_run(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
%7 = load i32, ptr @undo_insert_run, align 4, !tbaa !6
%8 = tail call ptr @add_undo(ptr noundef %0, i32 noundef %7) #2
%9 = icmp eq ptr %8, null
br i1 %9, label %27, label %10
10: ; preds = %6
%11 = shl i32 %3, 2
%12 = add i32 %11, 4
%13 = tail call ptr @heap_alloc(i32 noundef %12) #2
%14 = getelementptr inbounds i8, ptr %8, i64 24
store ptr %13, ptr %14, align 8, !tbaa !10
%15 = icmp eq ptr %13, null
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = tail call i32 @ME_EmptyUndoStack(ptr noundef %0) #2
br label %27
18: ; preds = %10
%19 = sext i32 %3 to i64
%20 = tail call i32 @memcpy(ptr noundef nonnull %13, ptr noundef %2, i32 noundef %11) #2
%21 = load ptr, ptr %14, align 8, !tbaa !10
%22 = getelementptr inbounds i64, ptr %21, i64 %19
store i64 0, ptr %22, align 8, !tbaa !15
store i32 %1, ptr %8, align 8, !tbaa !17
%23 = getelementptr inbounds i8, ptr %8, i64 4
store i32 %3, ptr %23, align 4, !tbaa !18
%24 = getelementptr inbounds i8, ptr %8, i64 8
store i32 %4, ptr %24, align 8, !tbaa !19
%25 = getelementptr inbounds i8, ptr %8, i64 16
store ptr %5, ptr %25, align 8, !tbaa !20
%26 = tail call i32 @ME_AddRefStyle(ptr noundef %5) #2
br label %27
27: ; preds = %6, %18, %16
%28 = phi ptr [ @TRUE, %18 ], [ @FALSE, %16 ], [ @FALSE, %6 ]
%29 = load i32, ptr %28, align 4, !tbaa !6
ret i32 %29
}
declare ptr @add_undo(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @heap_alloc(i32 noundef) local_unnamed_addr #1
declare i32 @ME_EmptyUndoStack(ptr noundef) local_unnamed_addr #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ME_AddRefStyle(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !14, i64 24}
!11 = !{!"undo_item", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0, !7, i64 4, !7, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!11, !7, i64 0}
!18 = !{!11, !7, i64 4}
!19 = !{!11, !7, i64 8}
!20 = !{!11, !14, i64 16}
| reactos_dll_win32_riched20_extr_undo.c_add_undo_insert_run |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.