IR_x86
stringlengths 592
249k
| IR_arm
stringlengths 558
250k
| filename
stringlengths 17
191
|
---|---|---|
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/trident/extr_trident_main.c_snd_trident_spdif_default_get.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/trident/extr_trident_main.c_snd_trident_spdif_default_get.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.snd_trident = type { i32, i32 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @snd_trident_spdif_default_get], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @snd_trident_spdif_default_get(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = getelementptr inbounds %struct.snd_trident, ptr %3, i64 0, i32 1
%5 = tail call i32 @spin_lock_irq(ptr noundef nonnull %4) #2
%6 = load i32, ptr %3, align 4, !tbaa !5
%7 = and i32 %6, 255
%8 = load ptr, ptr %1, align 8, !tbaa !10
store i32 %7, ptr %8, align 4, !tbaa !15
%9 = load i32, ptr %3, align 4, !tbaa !5
%10 = lshr i32 %9, 8
%11 = and i32 %10, 255
%12 = getelementptr inbounds i32, ptr %8, i64 1
store i32 %11, ptr %12, align 4, !tbaa !15
%13 = load i32, ptr %3, align 4, !tbaa !5
%14 = lshr i32 %13, 16
%15 = and i32 %14, 255
%16 = getelementptr inbounds i32, ptr %8, i64 2
store i32 %15, ptr %16, align 4, !tbaa !15
%17 = load i32, ptr %3, align 4, !tbaa !5
%18 = lshr i32 %17, 24
%19 = getelementptr inbounds i32, ptr %8, i64 3
store i32 %18, ptr %19, align 4, !tbaa !15
%20 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
ret i32 0
}
declare ptr @snd_kcontrol_chip(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"snd_trident", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !14, i64 0}
!11 = !{!"snd_ctl_elem_value", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!7, !7, i64 0}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/pci/trident/extr_trident_main.c_snd_trident_spdif_default_get.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/pci/trident/extr_trident_main.c_snd_trident_spdif_default_get.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @snd_trident_spdif_default_get], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @snd_trident_spdif_default_get(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = tail call ptr @snd_kcontrol_chip(ptr noundef %0) #2
%4 = getelementptr inbounds i8, ptr %3, i64 4
%5 = tail call i32 @spin_lock_irq(ptr noundef nonnull %4) #2
%6 = load i32, ptr %3, align 4, !tbaa !6
%7 = and i32 %6, 255
%8 = load ptr, ptr %1, align 8, !tbaa !11
store i32 %7, ptr %8, align 4, !tbaa !16
%9 = load i32, ptr %3, align 4, !tbaa !6
%10 = lshr i32 %9, 8
%11 = and i32 %10, 255
%12 = getelementptr inbounds i8, ptr %8, i64 4
store i32 %11, ptr %12, align 4, !tbaa !16
%13 = load i32, ptr %3, align 4, !tbaa !6
%14 = lshr i32 %13, 16
%15 = and i32 %14, 255
%16 = getelementptr inbounds i8, ptr %8, i64 8
store i32 %15, ptr %16, align 4, !tbaa !16
%17 = load i32, ptr %3, align 4, !tbaa !6
%18 = lshr i32 %17, 24
%19 = getelementptr inbounds i8, ptr %8, i64 12
store i32 %18, ptr %19, align 4, !tbaa !16
%20 = tail call i32 @spin_unlock_irq(ptr noundef nonnull %4) #2
ret i32 0
}
declare ptr @snd_kcontrol_chip(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"snd_trident", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !15, i64 0}
!12 = !{!"snd_ctl_elem_value", !13, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"TYPE_3__", !15, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!8, !8, i64 0}
|
fastsocket_kernel_sound_pci_trident_extr_trident_main.c_snd_trident_spdif_default_get
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_dvo_ns2501.c_ns2501_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_dvo_ns2501.c_ns2501_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.intel_dvo_device = type { i32, ptr, ptr }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@NS2501_VID_LO = dso_local local_unnamed_addr global i32 0, align 4
@NS2501_VID = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"ns2501 not detected got %d: from %s Slave %d.\0A\00", align 1
@NS2501_DID_LO = dso_local local_unnamed_addr global i32 0, align 4
@NS2501_DID = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"init ns2501 dvo controller successfully!\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @ns2501_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @ns2501_init(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
%4 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%5 = tail call ptr @kzalloc(i32 noundef 4, i32 noundef %4) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %37, label %7
7: ; preds = %2
%8 = getelementptr inbounds %struct.intel_dvo_device, ptr %0, i64 0, i32 2
store ptr %1, ptr %8, align 8, !tbaa !9
%9 = getelementptr inbounds %struct.intel_dvo_device, ptr %0, i64 0, i32 1
store ptr %5, ptr %9, align 8, !tbaa !12
store i32 1, ptr %5, align 4, !tbaa !13
%10 = load i32, ptr @NS2501_VID_LO, align 4, !tbaa !5
%11 = call i32 @ns2501_readb(ptr noundef %0, i32 noundef %10, ptr noundef nonnull %3) #3
%12 = icmp eq i32 %11, 0
br i1 %12, label %35, label %13
13: ; preds = %7
%14 = load i8, ptr %3, align 1, !tbaa !15
%15 = load i32, ptr @NS2501_VID, align 4, !tbaa !5
%16 = trunc i32 %15 to i8
%17 = icmp eq i8 %14, %16
br i1 %17, label %18, label %29
18: ; preds = %13
%19 = load i32, ptr @NS2501_DID_LO, align 4, !tbaa !5
%20 = call i32 @ns2501_readb(ptr noundef nonnull %0, i32 noundef %19, ptr noundef nonnull %3) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %35, label %22
22: ; preds = %18
%23 = load i8, ptr %3, align 1, !tbaa !15
%24 = load i32, ptr @NS2501_DID, align 4, !tbaa !5
%25 = trunc i32 %24 to i8
%26 = icmp eq i8 %23, %25
br i1 %26, label %27, label %29
27: ; preds = %22
store i32 0, ptr %5, align 4, !tbaa !13
%28 = call i32 (ptr, ...) @DRM_DEBUG_KMS(ptr noundef nonnull @.str.1) #3
br label %37
29: ; preds = %22, %13
%30 = phi i8 [ %14, %13 ], [ %23, %22 ]
%31 = zext i8 %30 to i32
%32 = load i32, ptr %1, align 4, !tbaa !16
%33 = load i32, ptr %0, align 8, !tbaa !18
%34 = call i32 (ptr, ...) @DRM_DEBUG_KMS(ptr noundef nonnull @.str, i32 noundef %31, i32 noundef %32, i32 noundef %33) #3
br label %35
35: ; preds = %29, %18, %7
%36 = call i32 @kfree(ptr noundef nonnull %5) #3
br label %37
37: ; preds = %2, %35, %27
%38 = phi i32 [ 0, %35 ], [ 1, %27 ], [ 0, %2 ]
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
ret i32 %38
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ns2501_readb(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @DRM_DEBUG_KMS(ptr noundef, ...) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"intel_dvo_device", !6, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !6, i64 0}
!14 = !{!"ns2501_priv", !6, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"i2c_adapter", !6, i64 0}
!18 = !{!10, !6, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_dvo_ns2501.c_ns2501_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_dvo_ns2501.c_ns2501_init.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
@NS2501_VID_LO = common local_unnamed_addr global i32 0, align 4
@NS2501_VID = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [47 x i8] c"ns2501 not detected got %d: from %s Slave %d.\0A\00", align 1
@NS2501_DID_LO = common local_unnamed_addr global i32 0, align 4
@NS2501_DID = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [42 x i8] c"init ns2501 dvo controller successfully!\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @ns2501_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @ns2501_init(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #3
%4 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%5 = tail call ptr @kzalloc(i32 noundef 4, i32 noundef %4) #3
%6 = icmp eq ptr %5, null
br i1 %6, label %37, label %7
7: ; preds = %2
%8 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %1, ptr %8, align 8, !tbaa !10
%9 = getelementptr inbounds i8, ptr %0, i64 8
store ptr %5, ptr %9, align 8, !tbaa !13
store i32 1, ptr %5, align 4, !tbaa !14
%10 = load i32, ptr @NS2501_VID_LO, align 4, !tbaa !6
%11 = call i32 @ns2501_readb(ptr noundef %0, i32 noundef %10, ptr noundef nonnull %3) #3
%12 = icmp eq i32 %11, 0
br i1 %12, label %35, label %13
13: ; preds = %7
%14 = load i8, ptr %3, align 1, !tbaa !16
%15 = load i32, ptr @NS2501_VID, align 4, !tbaa !6
%16 = trunc i32 %15 to i8
%17 = icmp eq i8 %14, %16
br i1 %17, label %18, label %29
18: ; preds = %13
%19 = load i32, ptr @NS2501_DID_LO, align 4, !tbaa !6
%20 = call i32 @ns2501_readb(ptr noundef nonnull %0, i32 noundef %19, ptr noundef nonnull %3) #3
%21 = icmp eq i32 %20, 0
br i1 %21, label %35, label %22
22: ; preds = %18
%23 = load i8, ptr %3, align 1, !tbaa !16
%24 = load i32, ptr @NS2501_DID, align 4, !tbaa !6
%25 = trunc i32 %24 to i8
%26 = icmp eq i8 %23, %25
br i1 %26, label %27, label %29
27: ; preds = %22
store i32 0, ptr %5, align 4, !tbaa !14
%28 = call i32 (ptr, ...) @DRM_DEBUG_KMS(ptr noundef nonnull @.str.1) #3
br label %37
29: ; preds = %22, %13
%30 = phi i8 [ %14, %13 ], [ %23, %22 ]
%31 = zext i8 %30 to i32
%32 = load i32, ptr %1, align 4, !tbaa !17
%33 = load i32, ptr %0, align 8, !tbaa !19
%34 = call i32 (ptr, ...) @DRM_DEBUG_KMS(ptr noundef nonnull @.str, i32 noundef %31, i32 noundef %32, i32 noundef %33) #3
br label %35
35: ; preds = %29, %18, %7
%36 = call i32 @kfree(ptr noundef nonnull %5) #3
br label %37
37: ; preds = %2, %35, %27
%38 = phi i32 [ 0, %35 ], [ 1, %27 ], [ 0, %2 ]
call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #3
ret i32 %38
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @ns2501_readb(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @DRM_DEBUG_KMS(ptr noundef, ...) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"intel_dvo_device", !7, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!15, !7, i64 0}
!15 = !{!"ns2501_priv", !7, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"i2c_adapter", !7, i64 0}
!19 = !{!11, !7, i64 0}
|
linux_drivers_gpu_drm_i915_display_extr_dvo_ns2501.c_ns2501_init
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/mthca/extr_mthca_srq.c_mthca_free_srq_wqe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/mthca/extr_mthca_srq.c_mthca_free_srq_wqe.c"
target datalayout = "e-m:e-p270:32:32-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.mthca_srq = type { i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @mthca_free_srq_wqe(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr %0, align 4, !tbaa !5
%4 = ashr i32 %1, %3
%5 = getelementptr inbounds %struct.mthca_srq, ptr %0, i64 0, i32 2
%6 = tail call i32 @spin_lock(ptr noundef nonnull %5) #3
%7 = getelementptr inbounds %struct.mthca_srq, ptr %0, i64 0, i32 1
%8 = load i32, ptr %7, align 4, !tbaa !10
%9 = tail call ptr @get_wqe(ptr noundef nonnull %0, i32 noundef %8) #3
%10 = tail call ptr @wqe_to_link(ptr noundef %9) #3
store i32 %4, ptr %10, align 4, !tbaa !11
%11 = load i32, ptr %0, align 4, !tbaa !5
%12 = shl i32 %4, %11
%13 = or i32 %12, 1
%14 = tail call i32 @htonl(i32 noundef %13)
store i32 %14, ptr %9, align 4, !tbaa !12
%15 = tail call ptr @get_wqe(ptr noundef nonnull %0, i32 noundef %4) #3
%16 = tail call ptr @wqe_to_link(ptr noundef %15) #3
store i32 -1, ptr %16, align 4, !tbaa !11
store i32 %4, ptr %7, align 4, !tbaa !10
%17 = tail call i32 @spin_unlock(ptr noundef nonnull %5) #3
ret void
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare ptr @get_wqe(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @wqe_to_link(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @htonl(i32 noundef) local_unnamed_addr #2
declare i32 @spin_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 = { nofree nosync nounwind memory(none) "no-trapping-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 = !{!"mthca_srq", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"mthca_next_seg", !7, i64 0}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/infiniband/hw/mthca/extr_mthca_srq.c_mthca_free_srq_wqe.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/infiniband/hw/mthca/extr_mthca_srq.c_mthca_free_srq_wqe.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 @mthca_free_srq_wqe(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
%3 = load i32, ptr %0, align 4, !tbaa !6
%4 = ashr i32 %1, %3
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = tail call i32 @spin_lock(ptr noundef nonnull %5) #3
%7 = getelementptr inbounds i8, ptr %0, i64 4
%8 = load i32, ptr %7, align 4, !tbaa !11
%9 = tail call ptr @get_wqe(ptr noundef nonnull %0, i32 noundef %8) #3
%10 = tail call ptr @wqe_to_link(ptr noundef %9) #3
store i32 %4, ptr %10, align 4, !tbaa !12
%11 = load i32, ptr %0, align 4, !tbaa !6
%12 = shl i32 %4, %11
%13 = or i32 %12, 1
%14 = tail call i32 @htonl(i32 noundef %13)
store i32 %14, ptr %9, align 4, !tbaa !13
%15 = tail call ptr @get_wqe(ptr noundef nonnull %0, i32 noundef %4) #3
%16 = tail call ptr @wqe_to_link(ptr noundef %15) #3
store i32 -1, ptr %16, align 4, !tbaa !12
store i32 %4, ptr %7, align 4, !tbaa !11
%17 = tail call i32 @spin_unlock(ptr noundef nonnull %5) #3
ret void
}
declare i32 @spin_lock(ptr noundef) local_unnamed_addr #1
declare ptr @get_wqe(ptr noundef, i32 noundef) local_unnamed_addr #1
declare ptr @wqe_to_link(ptr noundef) local_unnamed_addr #1
; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @htonl(i32 noundef) local_unnamed_addr #2
declare i32 @spin_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 = { nofree nosync nounwind memory(none) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+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 = !{!"mthca_srq", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"mthca_next_seg", !8, i64 0}
|
fastsocket_kernel_drivers_infiniband_hw_mthca_extr_mthca_srq.c_mthca_free_srq_wqe
|
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/mips/pci/extr_ops-titan-ht.c_titan_ht_config_write_dword.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/mips/pci/extr_ops-titan-ht.c_titan_ht_config_write_dword.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PCIBIOS_SUCCESSFUL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @titan_ht_config_write_dword], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal i32 @titan_ht_config_write_dword(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5)
%6 = load i32, ptr %0, align 4, !tbaa !5
%7 = shl i32 %6, 16
%8 = shl i32 %1, 8
%9 = and i32 %2, 252
%10 = or disjoint i32 %8, %9
%11 = or i32 %10, %7
%12 = or i32 %11, -2147483648
store volatile i32 %12, ptr %5, align 4, !tbaa !10
%13 = icmp eq i32 %6, 0
br i1 %13, label %17, label %14
14: ; preds = %4
%15 = load volatile i32, ptr %5, align 4, !tbaa !10
%16 = or i32 %15, 1
store volatile i32 %16, ptr %5, align 4, !tbaa !10
br label %17
17: ; preds = %14, %4
%18 = load volatile i32, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !10
%19 = or i32 %18, 2
store volatile i32 %19, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !10
%20 = tail call i32 @udelay(i32 noundef 30) #3
%21 = load volatile i32, ptr %5, align 4, !tbaa !10
store volatile i32 %21, ptr inttoptr (i64 4211083000 to ptr), align 8, !tbaa !10
store volatile i32 %3, ptr inttoptr (i64 4211083004 to ptr), align 4, !tbaa !10
%22 = tail call i32 @udelay(i32 noundef 30) #3
%23 = load volatile i32, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !10
%24 = or i32 %23, 2
store volatile i32 %24, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !10
%25 = load i32, ptr @PCIBIOS_SUCCESSFUL, align 4, !tbaa !10
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5)
ret i32 %25
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"pci_bus", !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/fastsocket/kernel/arch/mips/pci/extr_ops-titan-ht.c_titan_ht_config_write_dword.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/mips/pci/extr_ops-titan-ht.c_titan_ht_config_write_dword.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCIBIOS_SUCCESSFUL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @titan_ht_config_write_dword], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal i32 @titan_ht_config_write_dword(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5)
%6 = load i32, ptr %0, align 4, !tbaa !6
%7 = shl i32 %6, 16
%8 = shl i32 %1, 8
%9 = and i32 %2, 252
%10 = or disjoint i32 %8, %9
%11 = or i32 %10, %7
%12 = or i32 %11, -2147483648
store volatile i32 %12, ptr %5, align 4, !tbaa !11
%13 = icmp eq i32 %6, 0
br i1 %13, label %17, label %14
14: ; preds = %4
%15 = load volatile i32, ptr %5, align 4, !tbaa !11
%16 = or i32 %15, 1
store volatile i32 %16, ptr %5, align 4, !tbaa !11
br label %17
17: ; preds = %14, %4
%18 = load volatile i32, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !11
%19 = or i32 %18, 2
store volatile i32 %19, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !11
%20 = tail call i32 @udelay(i32 noundef 30) #3
%21 = load volatile i32, ptr %5, align 4, !tbaa !11
store volatile i32 %21, ptr inttoptr (i64 4211083000 to ptr), align 8, !tbaa !11
store volatile i32 %3, ptr inttoptr (i64 4211083004 to ptr), align 4, !tbaa !11
%22 = tail call i32 @udelay(i32 noundef 30) #3
%23 = load volatile i32, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !11
%24 = or i32 %23, 2
store volatile i32 %24, ptr inttoptr (i64 4211081456 to ptr), align 16, !tbaa !11
%25 = load i32, ptr @PCIBIOS_SUCCESSFUL, align 4, !tbaa !11
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5)
ret i32 %25
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @udelay(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"pci_bus", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
|
fastsocket_kernel_arch_mips_pci_extr_ops-titan-ht.c_titan_ht_config_write_dword
|
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/usb/6fire/extr_comm.c_usb6fire_comm_init_buffer.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/usb/6fire/extr_comm.c_usb6fire_comm_init_buffer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @usb6fire_comm_init_buffer], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define internal void @usb6fire_comm_init_buffer(ptr nocapture noundef writeonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
store i32 1, ptr %0, align 4, !tbaa !5
%7 = getelementptr inbounds i32, ptr %0, i64 2
store i32 %2, ptr %7, align 4, !tbaa !5
%8 = getelementptr inbounds i32, ptr %0, i64 3
store i32 %1, ptr %8, align 4, !tbaa !5
switch i32 %2, label %33 [
i32 2, label %13
i32 18, label %9
i32 32, label %23
i32 33, label %23
i32 34, label %23
]
9: ; preds = %6
%10 = getelementptr inbounds i32, ptr %0, i64 1
store i32 11, ptr %10, align 4, !tbaa !5
%11 = getelementptr inbounds i32, ptr %0, i64 4
store <4 x i32> <i32 0, i32 24, i32 5, i32 0>, ptr %11, align 4, !tbaa !5
%12 = getelementptr inbounds i32, ptr %0, i64 8
store i32 1, ptr %12, align 4, !tbaa !5
br label %13
13: ; preds = %6, %9
%14 = phi i64 [ 9, %9 ], [ 1, %6 ]
%15 = phi i32 [ 0, %9 ], [ 5, %6 ]
%16 = phi i64 [ 10, %9 ], [ 4, %6 ]
%17 = phi i32 [ 158, %9 ], [ %3, %6 ]
%18 = phi i64 [ 11, %9 ], [ 5, %6 ]
%19 = phi i32 [ %3, %9 ], [ %4, %6 ]
%20 = phi i64 [ 12, %9 ], [ 6, %6 ]
%21 = phi i32 [ %4, %9 ], [ %5, %6 ]
%22 = getelementptr inbounds i32, ptr %0, i64 %14
store i32 %15, ptr %22, align 4, !tbaa !5
br label %23
23: ; preds = %13, %6, %6, %6
%24 = phi i64 [ 1, %6 ], [ 1, %6 ], [ 1, %6 ], [ %16, %13 ]
%25 = phi i32 [ 4, %6 ], [ 4, %6 ], [ 4, %6 ], [ %17, %13 ]
%26 = phi i64 [ 4, %6 ], [ 4, %6 ], [ 4, %6 ], [ %18, %13 ]
%27 = phi i32 [ %3, %6 ], [ %3, %6 ], [ %3, %6 ], [ %19, %13 ]
%28 = phi i64 [ 5, %6 ], [ 5, %6 ], [ 5, %6 ], [ %20, %13 ]
%29 = phi i32 [ %4, %6 ], [ %4, %6 ], [ %4, %6 ], [ %21, %13 ]
%30 = getelementptr inbounds i32, ptr %0, i64 %24
store i32 %25, ptr %30, align 4, !tbaa !5
%31 = getelementptr inbounds i32, ptr %0, i64 %26
store i32 %27, ptr %31, align 4, !tbaa !5
%32 = getelementptr inbounds i32, ptr %0, i64 %28
store i32 %29, ptr %32, align 4, !tbaa !5
br label %33
33: ; preds = %23, %6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/usb/6fire/extr_comm.c_usb6fire_comm_init_buffer.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/usb/6fire/extr_comm.c_usb6fire_comm_init_buffer.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 @usb6fire_comm_init_buffer], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync)
define internal void @usb6fire_comm_init_buffer(ptr nocapture noundef writeonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
store i32 1, ptr %0, align 4, !tbaa !6
%7 = getelementptr inbounds i8, ptr %0, i64 8
store i32 %2, ptr %7, align 4, !tbaa !6
%8 = getelementptr inbounds i8, ptr %0, i64 12
store i32 %1, ptr %8, align 4, !tbaa !6
switch i32 %2, label %33 [
i32 2, label %13
i32 18, label %9
i32 32, label %23
i32 33, label %23
i32 34, label %23
]
9: ; preds = %6
%10 = getelementptr inbounds i8, ptr %0, i64 4
store i32 11, ptr %10, align 4, !tbaa !6
%11 = getelementptr inbounds i8, ptr %0, i64 16
store <4 x i32> <i32 0, i32 24, i32 5, i32 0>, ptr %11, align 4, !tbaa !6
%12 = getelementptr inbounds i8, ptr %0, i64 32
store i32 1, ptr %12, align 4, !tbaa !6
br label %13
13: ; preds = %6, %9
%14 = phi i64 [ 36, %9 ], [ 4, %6 ]
%15 = phi i32 [ 0, %9 ], [ 5, %6 ]
%16 = phi i64 [ 40, %9 ], [ 16, %6 ]
%17 = phi i32 [ 158, %9 ], [ %3, %6 ]
%18 = phi i64 [ 44, %9 ], [ 20, %6 ]
%19 = phi i32 [ %3, %9 ], [ %4, %6 ]
%20 = phi i64 [ 48, %9 ], [ 24, %6 ]
%21 = phi i32 [ %4, %9 ], [ %5, %6 ]
%22 = getelementptr inbounds i8, ptr %0, i64 %14
store i32 %15, ptr %22, align 4, !tbaa !6
br label %23
23: ; preds = %13, %6, %6, %6
%24 = phi i64 [ 4, %6 ], [ 4, %6 ], [ 4, %6 ], [ %16, %13 ]
%25 = phi i32 [ 4, %6 ], [ 4, %6 ], [ 4, %6 ], [ %17, %13 ]
%26 = phi i64 [ 16, %6 ], [ 16, %6 ], [ 16, %6 ], [ %18, %13 ]
%27 = phi i32 [ %3, %6 ], [ %3, %6 ], [ %3, %6 ], [ %19, %13 ]
%28 = phi i64 [ 20, %6 ], [ 20, %6 ], [ 20, %6 ], [ %20, %13 ]
%29 = phi i32 [ %4, %6 ], [ %4, %6 ], [ %4, %6 ], [ %21, %13 ]
%30 = getelementptr inbounds i8, ptr %0, i64 %24
store i32 %25, ptr %30, align 4, !tbaa !6
%31 = getelementptr inbounds i8, ptr %0, i64 %26
store i32 %27, ptr %31, align 4, !tbaa !6
%32 = getelementptr inbounds i8, ptr %0, i64 %28
store i32 %29, ptr %32, align 4, !tbaa !6
br label %33
33: ; preds = %23, %6
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: write) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
fastsocket_kernel_sound_usb_6fire_extr_comm.c_usb6fire_comm_init_buffer
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/isdn/hardware/mISDN/extr_hfcmulti.c_readpcibridge.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/isdn/hardware/mISDN/extr_hfcmulti.c_readpcibridge.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@R_CTRL = dso_local local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"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/isdn/hardware/mISDN/extr_hfcmulti.c_readpcibridge.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/isdn/hardware/mISDN/extr_hfcmulti.c_readpcibridge.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@R_CTRL = common local_unnamed_addr global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{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_isdn_hardware_mISDN_extr_hfcmulti.c_readpcibridge
|
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_mips-tdep.c_heuristic_proc_start.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_mips-tdep.c_heuristic_proc_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"
@heuristic_fence_post = dso_local local_unnamed_addr global i64 0, align 8
@UINT_MAX = dso_local local_unnamed_addr global i64 0, align 8
@VM_MIN_ADDRESS = dso_local local_unnamed_addr global i64 0, align 8
@MIPS16_INSTLEN = dso_local local_unnamed_addr global i32 0, align 4
@MIPS_INSTLEN = dso_local local_unnamed_addr global i32 0, align 4
@stop_soon = dso_local local_unnamed_addr global i64 0, align 8
@NO_STOP_QUIETLY = dso_local local_unnamed_addr global i64 0, align 8
@heuristic_proc_start.blurb_printed = internal unnamed_addr global i1 false, align 4
@.str = private unnamed_addr constant [59 x i8] c"Warning: GDB can't find the start of the function at 0x%s.\00", align 1
@.str.1 = private unnamed_addr constant [517 x i8] c"\0A GDB is unable to find the start of the function at 0x%s\0Aand thus can't determine the size of that function's stack frame.\0AThis means that GDB may be unable to access that stack frame, or\0Athe frames below it.\0A This problem is most likely caused by an invalid program counter or\0Astack pointer.\0A However, if you think GDB should simply search farther back\0Afrom 0x%s for code which looks like the beginning of a\0Afunction, you can increase the range of the search using the `set\0Aheuristic-fence-post' command.\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @heuristic_proc_start], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @heuristic_proc_start(i64 noundef %0) #0 {
%2 = tail call i64 @ADDR_BITS_REMOVE(i64 noundef %0) #3
%3 = icmp eq i64 %2, 0
br i1 %3, label %70, label %4
4: ; preds = %1
%5 = load i64, ptr @heuristic_fence_post, align 8, !tbaa !5
%6 = sub nsw i64 %2, %5
%7 = load i64, ptr @UINT_MAX, align 8, !tbaa !5
%8 = icmp eq i64 %5, %7
%9 = load i64, ptr @VM_MIN_ADDRESS, align 8
%10 = tail call i64 @llvm.smax.i64(i64 %6, i64 %9)
%11 = select i1 %8, i64 %9, i64 %10
%12 = tail call i64 @pc_is_mips16(i64 noundef %2) #3
%13 = icmp eq i64 %12, 0
%14 = load i32, ptr @MIPS16_INSTLEN, align 4
%15 = load i32, ptr @MIPS_INSTLEN, align 4
%16 = select i1 %13, i32 %15, i32 %14
%17 = sext i32 %16 to i64
%18 = sub nsw i64 %2, %17
%19 = icmp slt i64 %18, %11
br i1 %19, label %20, label %32
20: ; preds = %66, %4
%21 = load i64, ptr @stop_soon, align 8, !tbaa !5
%22 = load i64, ptr @NO_STOP_QUIETLY, align 8, !tbaa !5
%23 = icmp eq i64 %21, %22
br i1 %23, label %24, label %70
24: ; preds = %20
%25 = tail call i32 @paddr_nz(i64 noundef %2) #3
%26 = tail call i32 @warning(ptr noundef nonnull @.str, i32 noundef %25) #3
%27 = load i1, ptr @heuristic_proc_start.blurb_printed, align 4
br i1 %27, label %70, label %28
28: ; preds = %24
%29 = tail call i32 @paddr_nz(i64 noundef %2) #3
%30 = tail call i32 @paddr_nz(i64 noundef %2) #3
%31 = tail call i32 @printf_filtered(ptr noundef nonnull @.str.1, i32 noundef %29, i32 noundef %30) #3
store i1 true, ptr @heuristic_proc_start.blurb_printed, align 4
br label %70
32: ; preds = %4, %66
%33 = phi i64 [ %68, %66 ], [ %18, %4 ]
%34 = phi i32 [ %67, %66 ], [ 0, %4 ]
%35 = tail call i64 @pc_is_mips16(i64 noundef %33) #3
%36 = icmp eq i64 %35, 0
br i1 %36, label %58, label %37
37: ; preds = %32
%38 = tail call zeroext i16 @mips_fetch_instruction(i64 noundef %33) #3
%39 = zext i16 %38 to i32
%40 = and i32 %39, 63519
%41 = icmp ne i32 %40, 59401
%42 = and i32 %39, 1792
%43 = icmp eq i32 %42, 1792
%44 = or i1 %41, %43
br i1 %44, label %45, label %70
45: ; preds = %37
%46 = and i16 %38, -128
switch i16 %46, label %47 [
i16 25472, label %70
i16 -1152, label %70
]
47: ; preds = %45
%48 = and i32 %39, 63504
%49 = icmp eq i32 %48, 61456
%50 = icmp ne i32 %34, 0
%51 = select i1 %49, i1 %50, i1 false
br i1 %51, label %70, label %52
52: ; preds = %47
%53 = and i32 %39, 65280
%54 = icmp eq i32 %53, 25344
%55 = icmp eq i32 %53, 64256
%56 = or i1 %54, %55
%57 = zext i1 %56 to i32
br label %66
58: ; preds = %32
%59 = tail call i64 @mips_about_to_return(i64 noundef %33) #3
%60 = icmp eq i64 %59, 0
br i1 %60, label %66, label %61
61: ; preds = %58
%62 = load i32, ptr @MIPS_INSTLEN, align 4, !tbaa !9
%63 = shl nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = add nsw i64 %33, %64
br label %70
66: ; preds = %52, %58
%67 = phi i32 [ %34, %58 ], [ %57, %52 ]
%68 = sub nsw i64 %33, %17
%69 = icmp slt i64 %68, %11
br i1 %69, label %20, label %32
70: ; preds = %47, %37, %45, %45, %61, %20, %28, %24, %1
%71 = phi i64 [ 0, %1 ], [ 0, %24 ], [ 0, %28 ], [ 0, %20 ], [ %65, %61 ], [ %33, %45 ], [ %33, %45 ], [ %33, %37 ], [ %33, %47 ]
ret i64 %71
}
declare i64 @ADDR_BITS_REMOVE(i64 noundef) local_unnamed_addr #1
declare i64 @pc_is_mips16(i64 noundef) local_unnamed_addr #1
declare i32 @warning(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @paddr_nz(i64 noundef) local_unnamed_addr #1
declare i32 @printf_filtered(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare zeroext i16 @mips_fetch_instruction(i64 noundef) local_unnamed_addr #1
declare i64 @mips_about_to_return(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
|
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_mips-tdep.c_heuristic_proc_start.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_mips-tdep.c_heuristic_proc_start.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@heuristic_fence_post = common local_unnamed_addr global i64 0, align 8
@UINT_MAX = common local_unnamed_addr global i64 0, align 8
@VM_MIN_ADDRESS = common local_unnamed_addr global i64 0, align 8
@MIPS16_INSTLEN = common local_unnamed_addr global i32 0, align 4
@MIPS_INSTLEN = common local_unnamed_addr global i32 0, align 4
@stop_soon = common local_unnamed_addr global i64 0, align 8
@NO_STOP_QUIETLY = common local_unnamed_addr global i64 0, align 8
@heuristic_proc_start.blurb_printed = internal unnamed_addr global i1 false, align 4
@.str = private unnamed_addr constant [59 x i8] c"Warning: GDB can't find the start of the function at 0x%s.\00", align 1
@.str.1 = private unnamed_addr constant [517 x i8] c"\0A GDB is unable to find the start of the function at 0x%s\0Aand thus can't determine the size of that function's stack frame.\0AThis means that GDB may be unable to access that stack frame, or\0Athe frames below it.\0A This problem is most likely caused by an invalid program counter or\0Astack pointer.\0A However, if you think GDB should simply search farther back\0Afrom 0x%s for code which looks like the beginning of a\0Afunction, you can increase the range of the search using the `set\0Aheuristic-fence-post' command.\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @heuristic_proc_start], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @heuristic_proc_start(i64 noundef %0) #0 {
%2 = tail call i64 @ADDR_BITS_REMOVE(i64 noundef %0) #3
%3 = icmp eq i64 %2, 0
br i1 %3, label %70, label %4
4: ; preds = %1
%5 = load i64, ptr @heuristic_fence_post, align 8, !tbaa !6
%6 = sub nsw i64 %2, %5
%7 = load i64, ptr @UINT_MAX, align 8, !tbaa !6
%8 = icmp eq i64 %5, %7
%9 = load i64, ptr @VM_MIN_ADDRESS, align 8
%10 = tail call i64 @llvm.smax.i64(i64 %6, i64 %9)
%11 = select i1 %8, i64 %9, i64 %10
%12 = tail call i64 @pc_is_mips16(i64 noundef %2) #3
%13 = icmp eq i64 %12, 0
%14 = load i32, ptr @MIPS16_INSTLEN, align 4
%15 = load i32, ptr @MIPS_INSTLEN, align 4
%16 = select i1 %13, i32 %15, i32 %14
%17 = sext i32 %16 to i64
%18 = sub nsw i64 %2, %17
%19 = icmp slt i64 %18, %11
br i1 %19, label %20, label %32
20: ; preds = %66, %4
%21 = load i64, ptr @stop_soon, align 8, !tbaa !6
%22 = load i64, ptr @NO_STOP_QUIETLY, align 8, !tbaa !6
%23 = icmp eq i64 %21, %22
br i1 %23, label %24, label %70
24: ; preds = %20
%25 = tail call i32 @paddr_nz(i64 noundef %2) #3
%26 = tail call i32 @warning(ptr noundef nonnull @.str, i32 noundef %25) #3
%27 = load i1, ptr @heuristic_proc_start.blurb_printed, align 4
br i1 %27, label %70, label %28
28: ; preds = %24
%29 = tail call i32 @paddr_nz(i64 noundef %2) #3
%30 = tail call i32 @paddr_nz(i64 noundef %2) #3
%31 = tail call i32 @printf_filtered(ptr noundef nonnull @.str.1, i32 noundef %29, i32 noundef %30) #3
store i1 true, ptr @heuristic_proc_start.blurb_printed, align 4
br label %70
32: ; preds = %4, %66
%33 = phi i64 [ %68, %66 ], [ %18, %4 ]
%34 = phi i32 [ %67, %66 ], [ 0, %4 ]
%35 = tail call i64 @pc_is_mips16(i64 noundef %33) #3
%36 = icmp eq i64 %35, 0
br i1 %36, label %58, label %37
37: ; preds = %32
%38 = tail call zeroext i16 @mips_fetch_instruction(i64 noundef %33) #3
%39 = zext i16 %38 to i32
%40 = and i32 %39, 63519
%41 = icmp ne i32 %40, 59401
%42 = and i32 %39, 1792
%43 = icmp eq i32 %42, 1792
%44 = or i1 %41, %43
br i1 %44, label %45, label %70
45: ; preds = %37
%46 = and i16 %38, -128
switch i16 %46, label %47 [
i16 25472, label %70
i16 -1152, label %70
]
47: ; preds = %45
%48 = and i32 %39, 63504
%49 = icmp eq i32 %48, 61456
%50 = icmp ne i32 %34, 0
%51 = select i1 %49, i1 %50, i1 false
br i1 %51, label %70, label %52
52: ; preds = %47
%53 = and i32 %39, 65280
%54 = icmp eq i32 %53, 25344
%55 = icmp eq i32 %53, 64256
%56 = or i1 %54, %55
%57 = zext i1 %56 to i32
br label %66
58: ; preds = %32
%59 = tail call i64 @mips_about_to_return(i64 noundef %33) #3
%60 = icmp eq i64 %59, 0
br i1 %60, label %66, label %61
61: ; preds = %58
%62 = load i32, ptr @MIPS_INSTLEN, align 4, !tbaa !10
%63 = shl nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = add nsw i64 %33, %64
br label %70
66: ; preds = %52, %58
%67 = phi i32 [ %34, %58 ], [ %57, %52 ]
%68 = sub nsw i64 %33, %17
%69 = icmp slt i64 %68, %11
br i1 %69, label %20, label %32
70: ; preds = %47, %37, %45, %45, %61, %20, %28, %24, %1
%71 = phi i64 [ 0, %1 ], [ 0, %24 ], [ 0, %28 ], [ 0, %20 ], [ %65, %61 ], [ %33, %45 ], [ %33, %45 ], [ %33, %37 ], [ %33, %47 ]
ret i64 %71
}
declare i64 @ADDR_BITS_REMOVE(i64 noundef) local_unnamed_addr #1
declare i64 @pc_is_mips16(i64 noundef) local_unnamed_addr #1
declare i32 @warning(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @paddr_nz(i64 noundef) local_unnamed_addr #1
declare i32 @printf_filtered(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare zeroext i16 @mips_fetch_instruction(i64 noundef) local_unnamed_addr #1
declare i64 @mips_about_to_return(i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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}
|
freebsd_contrib_gdb_gdb_extr_mips-tdep.c_heuristic_proc_start
|
; ModuleID = 'AnghaBench/citus/src/backend/distributed/commands/extr_grant.c_PlanGrantStmt.c'
source_filename = "AnghaBench/citus/src/backend/distributed/commands/extr_grant.c_PlanGrantStmt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@NIL = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local ptr @PlanGrantStmt(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = load ptr, ptr @NIL, align 8, !tbaa !5
ret ptr %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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/citus/src/backend/distributed/commands/extr_grant.c_PlanGrantStmt.c'
source_filename = "AnghaBench/citus/src/backend/distributed/commands/extr_grant.c_PlanGrantStmt.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NIL = common local_unnamed_addr global ptr null, align 8
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define ptr @PlanGrantStmt(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
%2 = load ptr, ptr @NIL, align 8, !tbaa !6
ret ptr %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 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
citus_src_backend_distributed_commands_extr_grant.c_PlanGrantStmt
|
; ModuleID = 'AnghaBench/freebsd/contrib/ntp/ntpd/extr_keyword-gen.c_create_keyword_scanner.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/ntpd/extr_keyword-gen.c_create_keyword_scanner.c"
target datalayout = "e-m:e-p270:32:32-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 }
@sst_highwater = dso_local local_unnamed_addr global i32 0, align 4
@ntp_keywords = dso_local local_unnamed_addr global ptr null, align 8
@current_keyword = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @create_keyword_scanner], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @create_keyword_scanner() #0 {
store i32 1, ptr @sst_highwater, align 4, !tbaa !5
%1 = load ptr, ptr @ntp_keywords, align 8, !tbaa !9
%2 = tail call i64 @COUNTOF(ptr noundef %1) #2
%3 = icmp eq i64 %2, 0
br i1 %3, label %19, label %4
4: ; preds = %0, %4
%5 = phi i64 [ %15, %4 ], [ 0, %0 ]
%6 = phi i64 [ %14, %4 ], [ 0, %0 ]
%7 = load ptr, ptr @ntp_keywords, align 8, !tbaa !9
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 %5, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !11
store i32 %9, ptr @current_keyword, align 4, !tbaa !5
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 %5
%11 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 %5, i32 1
%12 = load i32, ptr %11, align 4, !tbaa !13
%13 = load i32, ptr %10, align 4, !tbaa !14
%14 = tail call i64 @create_scan_states(i32 noundef %9, i32 noundef %12, i32 noundef %13, i64 noundef %6) #2
%15 = add nuw i64 %5, 1
%16 = load ptr, ptr @ntp_keywords, align 8, !tbaa !9
%17 = tail call i64 @COUNTOF(ptr noundef %16) #2
%18 = icmp ult i64 %15, %17
br i1 %18, label %4, label %19, !llvm.loop !15
19: ; preds = %4, %0
%20 = phi i64 [ 0, %0 ], [ %14, %4 ]
ret i64 %20
}
declare i64 @COUNTOF(ptr noundef) local_unnamed_addr #1
declare i64 @create_scan_states(i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"TYPE_3__", !6, i64 0, !6, i64 4, !6, i64 8}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !6, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/freebsd/contrib/ntp/ntpd/extr_keyword-gen.c_create_keyword_scanner.c'
source_filename = "AnghaBench/freebsd/contrib/ntp/ntpd/extr_keyword-gen.c_create_keyword_scanner.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_3__ = type { i32, i32, i32 }
@sst_highwater = common local_unnamed_addr global i32 0, align 4
@ntp_keywords = common local_unnamed_addr global ptr null, align 8
@current_keyword = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @create_keyword_scanner], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i64 @create_keyword_scanner() #0 {
store i32 1, ptr @sst_highwater, align 4, !tbaa !6
%1 = load ptr, ptr @ntp_keywords, align 8, !tbaa !10
%2 = tail call i64 @COUNTOF(ptr noundef %1) #2
%3 = icmp eq i64 %2, 0
br i1 %3, label %19, label %4
4: ; preds = %0, %4
%5 = phi i64 [ %15, %4 ], [ 0, %0 ]
%6 = phi i64 [ %14, %4 ], [ 0, %0 ]
%7 = load ptr, ptr @ntp_keywords, align 8, !tbaa !10
%8 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 %5, i32 2
%9 = load i32, ptr %8, align 4, !tbaa !12
store i32 %9, ptr @current_keyword, align 4, !tbaa !6
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %7, i64 %5
%11 = getelementptr inbounds i8, ptr %10, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !14
%13 = load i32, ptr %10, align 4, !tbaa !15
%14 = tail call i64 @create_scan_states(i32 noundef %9, i32 noundef %12, i32 noundef %13, i64 noundef %6) #2
%15 = add nuw i64 %5, 1
%16 = load ptr, ptr @ntp_keywords, align 8, !tbaa !10
%17 = tail call i64 @COUNTOF(ptr noundef %16) #2
%18 = icmp ult i64 %15, %17
br i1 %18, label %4, label %19, !llvm.loop !16
19: ; preds = %4, %0
%20 = phi i64 [ 0, %0 ], [ %14, %4 ]
ret i64 %20
}
declare i64 @COUNTOF(ptr noundef) local_unnamed_addr #1
declare i64 @create_scan_states(i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"TYPE_3__", !7, i64 0, !7, i64 4, !7, i64 8}
!14 = !{!13, !7, i64 4}
!15 = !{!13, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
|
freebsd_contrib_ntp_ntpd_extr_keyword-gen.c_create_keyword_scanner
|
; ModuleID = 'AnghaBench/reactos/dll/cpl/sysdm/extr_hardprof.c_UpdateButtons.c'
source_filename = "AnghaBench/reactos/dll/cpl/sysdm/extr_hardprof.c_UpdateButtons.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i64, i32 }
@IDC_HRDPROFPROP = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFCOPY = dso_local local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFRENAME = dso_local local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFDEL = dso_local local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFUP = dso_local local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFDWN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @UpdateButtons], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @UpdateButtons(i32 noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr @IDC_HRDPROFPROP, align 4, !tbaa !5
%4 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %3) #2
%5 = load i64, ptr %1, align 8, !tbaa !9
%6 = icmp eq i64 %5, -1
%7 = load i32, ptr @TRUE, align 4
%8 = load i32, ptr @FALSE, align 4
%9 = select i1 %6, i32 %8, i32 %7
%10 = tail call i32 @EnableWindow(i32 noundef %4, i32 noundef %9) #2
%11 = load i32, ptr @IDC_HRDPROFCOPY, align 4, !tbaa !5
%12 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %11) #2
%13 = load i64, ptr %1, align 8, !tbaa !9
%14 = icmp eq i64 %13, -1
%15 = load i32, ptr @TRUE, align 4
%16 = load i32, ptr @FALSE, align 4
%17 = select i1 %14, i32 %16, i32 %15
%18 = tail call i32 @EnableWindow(i32 noundef %12, i32 noundef %17) #2
%19 = load i32, ptr @IDC_HRDPROFRENAME, align 4, !tbaa !5
%20 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %19) #2
%21 = load i64, ptr %1, align 8, !tbaa !9
%22 = icmp eq i64 %21, -1
%23 = load i32, ptr @TRUE, align 4
%24 = load i32, ptr @FALSE, align 4
%25 = select i1 %22, i32 %24, i32 %23
%26 = tail call i32 @EnableWindow(i32 noundef %20, i32 noundef %25) #2
%27 = load i32, ptr @IDC_HRDPROFDEL, align 4, !tbaa !5
%28 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %27) #2
%29 = load i64, ptr %1, align 8, !tbaa !9
%30 = icmp eq i64 %29, -1
%31 = load i32, ptr @TRUE, align 4
%32 = load i32, ptr @FALSE, align 4
%33 = select i1 %30, i32 %32, i32 %31
%34 = tail call i32 @EnableWindow(i32 noundef %28, i32 noundef %33) #2
%35 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 1
%36 = load i32, ptr %35, align 8, !tbaa !12
%37 = icmp slt i32 %36, 2
%38 = load i32, ptr @IDC_HRDPROFUP, align 4, !tbaa !5
%39 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %38) #2
br i1 %37, label %40, label %47
40: ; preds = %2
%41 = load i32, ptr @FALSE, align 4, !tbaa !5
%42 = tail call i32 @EnableWindow(i32 noundef %39, i32 noundef %41) #2
%43 = load i32, ptr @IDC_HRDPROFDWN, align 4, !tbaa !5
%44 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %43) #2
%45 = load i32, ptr @FALSE, align 4, !tbaa !5
%46 = tail call i32 @EnableWindow(i32 noundef %44, i32 noundef %45) #2
br label %65
47: ; preds = %2
%48 = load i64, ptr %1, align 8, !tbaa !9
%49 = icmp sgt i64 %48, 0
%50 = load i32, ptr @TRUE, align 4
%51 = load i32, ptr @FALSE, align 4
%52 = select i1 %49, i32 %50, i32 %51
%53 = tail call i32 @EnableWindow(i32 noundef %39, i32 noundef %52) #2
%54 = load i32, ptr @IDC_HRDPROFDWN, align 4, !tbaa !5
%55 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %54) #2
%56 = load i64, ptr %1, align 8, !tbaa !9
%57 = load i32, ptr %35, align 8, !tbaa !12
%58 = add nsw i32 %57, -1
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %56, %59
%61 = load i32, ptr @TRUE, align 4
%62 = load i32, ptr @FALSE, align 4
%63 = select i1 %60, i32 %61, i32 %62
%64 = tail call i32 @EnableWindow(i32 noundef %55, i32 noundef %63) #2
br label %65
65: ; preds = %47, %40
ret i32 undef
}
declare i32 @EnableWindow(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @GetDlgItem(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, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0, !6, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 8}
|
; ModuleID = 'AnghaBench/reactos/dll/cpl/sysdm/extr_hardprof.c_UpdateButtons.c'
source_filename = "AnghaBench/reactos/dll/cpl/sysdm/extr_hardprof.c_UpdateButtons.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IDC_HRDPROFPROP = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@FALSE = common local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFCOPY = common local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFRENAME = common local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFDEL = common local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFUP = common local_unnamed_addr global i32 0, align 4
@IDC_HRDPROFDWN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @UpdateButtons], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @UpdateButtons(i32 noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i32, ptr @IDC_HRDPROFPROP, align 4, !tbaa !6
%4 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %3) #2
%5 = load i64, ptr %1, align 8, !tbaa !10
%6 = icmp eq i64 %5, -1
%7 = load i32, ptr @TRUE, align 4
%8 = load i32, ptr @FALSE, align 4
%9 = select i1 %6, i32 %8, i32 %7
%10 = tail call i32 @EnableWindow(i32 noundef %4, i32 noundef %9) #2
%11 = load i32, ptr @IDC_HRDPROFCOPY, align 4, !tbaa !6
%12 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %11) #2
%13 = load i64, ptr %1, align 8, !tbaa !10
%14 = icmp eq i64 %13, -1
%15 = load i32, ptr @TRUE, align 4
%16 = load i32, ptr @FALSE, align 4
%17 = select i1 %14, i32 %16, i32 %15
%18 = tail call i32 @EnableWindow(i32 noundef %12, i32 noundef %17) #2
%19 = load i32, ptr @IDC_HRDPROFRENAME, align 4, !tbaa !6
%20 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %19) #2
%21 = load i64, ptr %1, align 8, !tbaa !10
%22 = icmp eq i64 %21, -1
%23 = load i32, ptr @TRUE, align 4
%24 = load i32, ptr @FALSE, align 4
%25 = select i1 %22, i32 %24, i32 %23
%26 = tail call i32 @EnableWindow(i32 noundef %20, i32 noundef %25) #2
%27 = load i32, ptr @IDC_HRDPROFDEL, align 4, !tbaa !6
%28 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %27) #2
%29 = load i64, ptr %1, align 8, !tbaa !10
%30 = icmp eq i64 %29, -1
%31 = load i32, ptr @TRUE, align 4
%32 = load i32, ptr @FALSE, align 4
%33 = select i1 %30, i32 %32, i32 %31
%34 = tail call i32 @EnableWindow(i32 noundef %28, i32 noundef %33) #2
%35 = getelementptr inbounds i8, ptr %1, i64 8
%36 = load i32, ptr %35, align 8, !tbaa !13
%37 = icmp slt i32 %36, 2
%38 = load i32, ptr @IDC_HRDPROFUP, align 4, !tbaa !6
%39 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %38) #2
br i1 %37, label %40, label %47
40: ; preds = %2
%41 = load i32, ptr @FALSE, align 4, !tbaa !6
%42 = tail call i32 @EnableWindow(i32 noundef %39, i32 noundef %41) #2
%43 = load i32, ptr @IDC_HRDPROFDWN, align 4, !tbaa !6
%44 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %43) #2
%45 = load i32, ptr @FALSE, align 4, !tbaa !6
%46 = tail call i32 @EnableWindow(i32 noundef %44, i32 noundef %45) #2
br label %65
47: ; preds = %2
%48 = load i64, ptr %1, align 8, !tbaa !10
%49 = icmp sgt i64 %48, 0
%50 = load i32, ptr @TRUE, align 4
%51 = load i32, ptr @FALSE, align 4
%52 = select i1 %49, i32 %50, i32 %51
%53 = tail call i32 @EnableWindow(i32 noundef %39, i32 noundef %52) #2
%54 = load i32, ptr @IDC_HRDPROFDWN, align 4, !tbaa !6
%55 = tail call i32 @GetDlgItem(i32 noundef %0, i32 noundef %54) #2
%56 = load i64, ptr %1, align 8, !tbaa !10
%57 = load i32, ptr %35, align 8, !tbaa !13
%58 = add nsw i32 %57, -1
%59 = sext i32 %58 to i64
%60 = icmp slt i64 %56, %59
%61 = load i32, ptr @TRUE, align 4
%62 = load i32, ptr @FALSE, align 4
%63 = select i1 %60, i32 %61, i32 %62
%64 = tail call i32 @EnableWindow(i32 noundef %55, i32 noundef %63) #2
br label %65
65: ; preds = %47, %40
ret i32 undef
}
declare i32 @EnableWindow(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @GetDlgItem(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, !12, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0, !7, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !7, i64 8}
|
reactos_dll_cpl_sysdm_extr_hardprof.c_UpdateButtons
|
; ModuleID = 'AnghaBench/linux/drivers/net/dsa/sja1105/extr_sja1105_main.c_sja1105_hw_reset.c'
source_filename = "AnghaBench/linux/drivers/net/dsa/sja1105/extr_sja1105_main.c_sja1105_hw_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"
@llvm.compiler.used = appending global [1 x ptr] [ptr @sja1105_hw_reset], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @sja1105_hw_reset(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @gpiod_set_value_cansleep(ptr noundef %0, i32 noundef 1) #2
%5 = tail call i32 @msleep(i32 noundef %1) #2
%6 = tail call i32 @gpiod_set_value_cansleep(ptr noundef %0, i32 noundef 0) #2
%7 = tail call i32 @msleep(i32 noundef %2) #2
ret void
}
declare i32 @gpiod_set_value_cansleep(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(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/dsa/sja1105/extr_sja1105_main.c_sja1105_hw_reset.c'
source_filename = "AnghaBench/linux/drivers/net/dsa/sja1105/extr_sja1105_main.c_sja1105_hw_reset.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 @sja1105_hw_reset], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @sja1105_hw_reset(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = tail call i32 @gpiod_set_value_cansleep(ptr noundef %0, i32 noundef 1) #2
%5 = tail call i32 @msleep(i32 noundef %1) #2
%6 = tail call i32 @gpiod_set_value_cansleep(ptr noundef %0, i32 noundef 0) #2
%7 = tail call i32 @msleep(i32 noundef %2) #2
ret void
}
declare i32 @gpiod_set_value_cansleep(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @msleep(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_dsa_sja1105_extr_sja1105_main.c_sja1105_hw_reset
|
; ModuleID = 'AnghaBench/linux/drivers/hid/extr_hid-wiimote-core.c_handler_drm_KAI.c'
source_filename = "AnghaBench/linux/drivers/hid/extr_hid-wiimote-core.c_handler_drm_KAI.c"
target datalayout = "e-m:e-p270:32:32-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 @handler_drm_KAI], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @handler_drm_KAI(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @handler_keys(ptr noundef %0, ptr noundef %1) #2
%4 = tail call i32 @handler_accel(ptr noundef %0, ptr noundef %1) #2
%5 = getelementptr inbounds i32, ptr %1, i64 5
%6 = tail call i32 @ir_to_input0(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 0) #2
%7 = getelementptr inbounds i32, ptr %1, i64 8
%8 = tail call i32 @ir_to_input1(ptr noundef %0, ptr noundef nonnull %7, i32 noundef 0) #2
%9 = getelementptr inbounds i32, ptr %1, i64 11
%10 = tail call i32 @ir_to_input2(ptr noundef %0, ptr noundef nonnull %9, i32 noundef 0) #2
%11 = getelementptr inbounds i32, ptr %1, i64 14
%12 = tail call i32 @ir_to_input3(ptr noundef %0, ptr noundef nonnull %11, i32 noundef 0) #2
ret void
}
declare i32 @handler_keys(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @handler_accel(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ir_to_input0(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ir_to_input1(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ir_to_input2(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ir_to_input3(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/linux/drivers/hid/extr_hid-wiimote-core.c_handler_drm_KAI.c'
source_filename = "AnghaBench/linux/drivers/hid/extr_hid-wiimote-core.c_handler_drm_KAI.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 @handler_drm_KAI], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @handler_drm_KAI(ptr noundef %0, ptr noundef %1) #0 {
%3 = tail call i32 @handler_keys(ptr noundef %0, ptr noundef %1) #2
%4 = tail call i32 @handler_accel(ptr noundef %0, ptr noundef %1) #2
%5 = getelementptr inbounds i8, ptr %1, i64 20
%6 = tail call i32 @ir_to_input0(ptr noundef %0, ptr noundef nonnull %5, i32 noundef 0) #2
%7 = getelementptr inbounds i8, ptr %1, i64 32
%8 = tail call i32 @ir_to_input1(ptr noundef %0, ptr noundef nonnull %7, i32 noundef 0) #2
%9 = getelementptr inbounds i8, ptr %1, i64 44
%10 = tail call i32 @ir_to_input2(ptr noundef %0, ptr noundef nonnull %9, i32 noundef 0) #2
%11 = getelementptr inbounds i8, ptr %1, i64 56
%12 = tail call i32 @ir_to_input3(ptr noundef %0, ptr noundef nonnull %11, i32 noundef 0) #2
ret void
}
declare i32 @handler_keys(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @handler_accel(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @ir_to_input0(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ir_to_input1(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ir_to_input2(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ir_to_input3(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_drivers_hid_extr_hid-wiimote-core.c_handler_drm_KAI
|
; ModuleID = 'AnghaBench/lab/engine/code/botlib/extr_l_precomp.c_PC_ReadTokenHandle.c'
source_filename = "AnghaBench/lab/engine/code/botlib/extr_l_precomp.c_PC_ReadTokenHandle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_6__ = type { i32, i32, i32, i32, i32 }
%struct.TYPE_5__ = type { i32, i32, i32, i32, i32 }
@MAX_SOURCEFILES = dso_local local_unnamed_addr global i32 0, align 4
@sourceFiles = dso_local local_unnamed_addr global i32* null, align 8
@TT_STRING = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @PC_ReadTokenHandle(i32 noundef %0, %struct.TYPE_6__* nocapture noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.TYPE_5__, align 16
%4 = bitcast %struct.TYPE_5__* %3 to i8*
call void @llvm.lifetime.start.p0i8(i64 20, i8* nonnull %4) #3
%5 = icmp sgt i32 %0, 0
%6 = load i32, i32* @MAX_SOURCEFILES, align 4
%7 = icmp sgt i32 %6, %0
%8 = select i1 %5, i1 %7, i1 false
br i1 %8, label %9, label %33
9: ; preds = %2
%10 = load i32*, i32** @sourceFiles, align 8, !tbaa !5
%11 = zext i32 %0 to i64
%12 = getelementptr inbounds i32, i32* %10, i64 %11
%13 = load i32, i32* %12, align 4, !tbaa !9
%14 = icmp eq i32 %13, 0
br i1 %14, label %33, label %15
15: ; preds = %9
%16 = call i32 @PC_ReadToken(i32 noundef %13, %struct.TYPE_5__* noundef nonnull %3) #3
%17 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %1, i64 0, i32 0
%18 = load i32, i32* %17, align 4, !tbaa !11
%19 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i64 0, i32 4
%20 = load i32, i32* %19, align 16, !tbaa !13
%21 = call i32 @strcpy(i32 noundef %18, i32 noundef %20) #3
%22 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %1, i64 0, i32 1
%23 = bitcast %struct.TYPE_5__* %3 to <4 x i32>*
%24 = load <4 x i32>, <4 x i32>* %23, align 16, !tbaa !9
%25 = shufflevector <4 x i32> %24, <4 x i32> poison, <4 x i32> <i32 3, i32 0, i32 1, i32 2>
%26 = bitcast i32* %22 to <4 x i32>*
store <4 x i32> %25, <4 x i32>* %26, align 4, !tbaa !9
%27 = load i32, i32* @TT_STRING, align 4, !tbaa !9
%28 = extractelement <4 x i32> %24, i64 3
%29 = icmp eq i32 %28, %27
br i1 %29, label %30, label %33
30: ; preds = %15
%31 = load i32, i32* %17, align 4, !tbaa !11
%32 = call i32 @StripDoubleQuotes(i32 noundef %31) #3
br label %33
33: ; preds = %15, %30, %9, %2
%34 = phi i32 [ 0, %2 ], [ 0, %9 ], [ %16, %30 ], [ %16, %15 ]
call void @llvm.lifetime.end.p0i8(i64 20, i8* nonnull %4) #3
ret i32 %34
}
; Function Attrs: argmemonly mustprogress nofree nosync nounwind willreturn
declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #1
declare i32 @PC_ReadToken(i32 noundef, %struct.TYPE_5__* noundef) local_unnamed_addr #2
declare i32 @strcpy(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @StripDoubleQuotes(i32 noundef) local_unnamed_addr #2
; Function Attrs: argmemonly mustprogress nofree nosync nounwind willreturn
declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #1
attributes #0 = { nounwind uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { argmemonly mustprogress nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{!"Ubuntu clang version 14.0.0-1ubuntu1.1"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"TYPE_6__", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!13 = !{!14, !10, i64 16}
!14 = !{!"TYPE_5__", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
|
; ModuleID = 'AnghaBench/lab/engine/code/botlib/extr_l_precomp.c_PC_ReadTokenHandle.c'
source_filename = "AnghaBench/lab/engine/code/botlib/extr_l_precomp.c_PC_ReadTokenHandle.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { i32, i32, i32, i32, i32 }
@MAX_SOURCEFILES = common local_unnamed_addr global i32 0, align 4
@sourceFiles = common local_unnamed_addr global ptr null, align 8
@TT_STRING = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @PC_ReadTokenHandle(i32 noundef %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
%3 = alloca %struct.TYPE_5__, align 16
call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #3
%4 = icmp sgt i32 %0, 0
%5 = load i32, ptr @MAX_SOURCEFILES, align 4
%6 = icmp sgt i32 %5, %0
%7 = select i1 %4, i1 %6, i1 false
br i1 %7, label %8, label %29
8: ; preds = %2
%9 = load ptr, ptr @sourceFiles, align 8, !tbaa !6
%10 = zext nneg i32 %0 to i64
%11 = getelementptr inbounds i32, ptr %9, i64 %10
%12 = load i32, ptr %11, align 4, !tbaa !10
%13 = icmp eq i32 %12, 0
br i1 %13, label %29, label %14
14: ; preds = %8
%15 = call i32 @PC_ReadToken(i32 noundef %12, ptr noundef nonnull %3) #3
%16 = load i32, ptr %1, align 4, !tbaa !12
%17 = getelementptr inbounds i8, ptr %3, i64 16
%18 = load i32, ptr %17, align 16, !tbaa !14
%19 = call i32 @strcpy(i32 noundef %16, i32 noundef %18) #3
%20 = getelementptr inbounds i8, ptr %1, i64 4
%21 = load <4 x i32>, ptr %3, align 16, !tbaa !10
%22 = shufflevector <4 x i32> %21, <4 x i32> poison, <4 x i32> <i32 3, i32 0, i32 1, i32 2>
store <4 x i32> %22, ptr %20, align 4, !tbaa !10
%23 = load i32, ptr @TT_STRING, align 4, !tbaa !10
%24 = extractelement <4 x i32> %21, i64 3
%25 = icmp eq i32 %24, %23
br i1 %25, label %26, label %29
26: ; preds = %14
%27 = load i32, ptr %1, align 4, !tbaa !12
%28 = call i32 @StripDoubleQuotes(i32 noundef %27) #3
br label %29
29: ; preds = %14, %26, %8, %2
%30 = phi i32 [ 0, %2 ], [ 0, %8 ], [ %15, %26 ], [ %15, %14 ]
call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #3
ret i32 %30
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @PC_ReadToken(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @strcpy(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @StripDoubleQuotes(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"TYPE_6__", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!14 = !{!15, !11, i64 16}
!15 = !{!"TYPE_5__", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
|
lab_engine_code_botlib_extr_l_precomp.c_PC_ReadTokenHandle
|
; ModuleID = 'AnghaBench/linux/drivers/net/phy/extr_phy.c_phy_link_up.c'
source_filename = "AnghaBench/linux/drivers/net/phy/extr_phy.c_phy_link_up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @phy_link_up], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @phy_link_up(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 %2(ptr noundef nonnull %0, i32 noundef 1, i32 noundef 1) #2
%4 = tail call i32 @phy_led_trigger_change_speed(ptr noundef nonnull %0) #2
ret void
}
declare i32 @phy_led_trigger_change_speed(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 = !{!"phy_device", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/linux/drivers/net/phy/extr_phy.c_phy_link_up.c'
source_filename = "AnghaBench/linux/drivers/net/phy/extr_phy.c_phy_link_up.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 @phy_link_up], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @phy_link_up(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 %2(ptr noundef nonnull %0, i32 noundef 1, i32 noundef 1) #2
%4 = tail call i32 @phy_led_trigger_change_speed(ptr noundef nonnull %0) #2
ret void
}
declare i32 @phy_led_trigger_change_speed(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 = !{!"phy_device", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
|
linux_drivers_net_phy_extr_phy.c_phy_link_up
|
; ModuleID = 'AnghaBench/linux/drivers/media/common/b2c2/extr_flexcop-i2c.c_flexcop_master_xfer.c'
source_filename = "AnghaBench/linux/drivers/media/common/b2c2/extr_flexcop-i2c.c_flexcop_master_xfer.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.i2c_msg = type { i64, i32, ptr, i32 }
%struct.TYPE_2__ = type { ptr, i32 }
@I2C_M_RD = dso_local local_unnamed_addr global i64 0, align 8
@ERESTARTSYS = dso_local local_unnamed_addr global i32 0, align 4
@FC_READ = dso_local local_unnamed_addr global i32 0, align 4
@FC_WRITE = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"i2c master_xfer failed\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @flexcop_master_xfer], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @flexcop_master_xfer(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = tail call ptr @i2c_get_adapdata(ptr noundef %0) #2
%5 = icmp eq i32 %2, 1
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = load i64, ptr %1, align 8, !tbaa !5
%8 = load i64, ptr @I2C_M_RD, align 8, !tbaa !12
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 0, i32 1
%12 = load i32, ptr %11, align 8, !tbaa !13
%13 = icmp slt i32 %12, 2
br i1 %13, label %87, label %14
14: ; preds = %10, %6, %3
%15 = load ptr, ptr %4, align 8, !tbaa !14
%16 = getelementptr inbounds %struct.TYPE_2__, ptr %15, i64 0, i32 1
%17 = tail call i64 @mutex_lock_interruptible(ptr noundef nonnull %16) #2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = icmp sgt i32 %2, 0
br i1 %20, label %31, label %21
21: ; preds = %19
%22 = load ptr, ptr %4, align 8, !tbaa !14
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i64 0, i32 1
%24 = tail call i32 @mutex_unlock(ptr noundef nonnull %23) #2
br label %86
25: ; preds = %14
%26 = load i32, ptr @ERESTARTSYS, align 4, !tbaa !16
%27 = sub nsw i32 0, %26
br label %87
28: ; preds = %71
%29 = add nsw i32 %72, 1
%30 = icmp slt i32 %29, %2
br i1 %30, label %31, label %81, !llvm.loop !17
31: ; preds = %19, %28
%32 = phi i32 [ %29, %28 ], [ 0, %19 ]
%33 = add nsw i32 %32, 1
%34 = icmp slt i32 %33, %2
br i1 %34, label %35, label %56
35: ; preds = %31
%36 = sext i32 %33 to i64
%37 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %36
%38 = load i64, ptr %37, align 8, !tbaa !5
%39 = load i64, ptr @I2C_M_RD, align 8, !tbaa !12
%40 = icmp eq i64 %38, %39
br i1 %40, label %41, label %56
41: ; preds = %35
%42 = load ptr, ptr %4, align 8, !tbaa !14
%43 = load ptr, ptr %42, align 8, !tbaa !19
%44 = load i32, ptr @FC_READ, align 4, !tbaa !16
%45 = sext i32 %32 to i64
%46 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %45, i32 3
%47 = load i32, ptr %46, align 8, !tbaa !21
%48 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %45, i32 2
%49 = load ptr, ptr %48, align 8, !tbaa !22
%50 = load i32, ptr %49, align 4, !tbaa !16
%51 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %36, i32 2
%52 = load ptr, ptr %51, align 8, !tbaa !22
%53 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %36, i32 1
%54 = load i32, ptr %53, align 8, !tbaa !13
%55 = tail call i32 %43(ptr noundef nonnull %4, i32 noundef %44, i32 noundef %47, i32 noundef %50, ptr noundef %52, i32 noundef %54) #2
br label %71
56: ; preds = %35, %31
%57 = load ptr, ptr %4, align 8, !tbaa !14
%58 = load ptr, ptr %57, align 8, !tbaa !19
%59 = load i32, ptr @FC_WRITE, align 4, !tbaa !16
%60 = sext i32 %32 to i64
%61 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %60, i32 3
%62 = load i32, ptr %61, align 8, !tbaa !21
%63 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %60, i32 2
%64 = load ptr, ptr %63, align 8, !tbaa !22
%65 = load i32, ptr %64, align 4, !tbaa !16
%66 = getelementptr inbounds i32, ptr %64, i64 1
%67 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %60, i32 1
%68 = load i32, ptr %67, align 8, !tbaa !13
%69 = add nsw i32 %68, -1
%70 = tail call i32 %58(ptr noundef nonnull %4, i32 noundef %59, i32 noundef %62, i32 noundef %65, ptr noundef nonnull %66, i32 noundef %69) #2
br label %71
71: ; preds = %56, %41
%72 = phi i32 [ %33, %41 ], [ %32, %56 ]
%73 = phi i32 [ %55, %41 ], [ %70, %56 ]
%74 = freeze i32 %73
%75 = icmp slt i32 %74, 0
br i1 %75, label %76, label %28
76: ; preds = %71
%77 = tail call i32 @deb_i2c(ptr noundef nonnull @.str) #2
%78 = load ptr, ptr %4, align 8, !tbaa !14
%79 = getelementptr inbounds %struct.TYPE_2__, ptr %78, i64 0, i32 1
%80 = tail call i32 @mutex_unlock(ptr noundef nonnull %79) #2
br label %87
81: ; preds = %28
%82 = load ptr, ptr %4, align 8, !tbaa !14
%83 = getelementptr inbounds %struct.TYPE_2__, ptr %82, i64 0, i32 1
%84 = tail call i32 @mutex_unlock(ptr noundef nonnull %83) #2
%85 = icmp eq i32 %74, 0
br i1 %85, label %86, label %87
86: ; preds = %21, %81
br label %87
87: ; preds = %86, %81, %76, %10, %25
%88 = phi i32 [ %27, %25 ], [ 1, %10 ], [ %2, %86 ], [ %74, %81 ], [ %74, %76 ]
ret i32 %88
}
declare ptr @i2c_get_adapdata(ptr noundef) local_unnamed_addr #1
declare i64 @mutex_lock_interruptible(ptr noundef) local_unnamed_addr #1
declare i32 @deb_i2c(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"i2c_msg", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !11, i64 0}
!15 = !{!"flexcop_i2c_adapter", !11, i64 0}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !11, i64 0}
!20 = !{!"TYPE_2__", !11, i64 0, !10, i64 8}
!21 = !{!6, !10, i64 24}
!22 = !{!6, !11, i64 16}
|
; ModuleID = 'AnghaBench/linux/drivers/media/common/b2c2/extr_flexcop-i2c.c_flexcop_master_xfer.c'
source_filename = "AnghaBench/linux/drivers/media/common/b2c2/extr_flexcop-i2c.c_flexcop_master_xfer.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.i2c_msg = type { i64, i32, ptr, i32 }
@I2C_M_RD = common local_unnamed_addr global i64 0, align 8
@ERESTARTSYS = common local_unnamed_addr global i32 0, align 4
@FC_READ = common local_unnamed_addr global i32 0, align 4
@FC_WRITE = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"i2c master_xfer failed\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @flexcop_master_xfer], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @flexcop_master_xfer(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = tail call ptr @i2c_get_adapdata(ptr noundef %0) #2
%5 = icmp eq i32 %2, 1
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = load i64, ptr %1, align 8, !tbaa !6
%8 = load i64, ptr @I2C_M_RD, align 8, !tbaa !13
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = getelementptr inbounds i8, ptr %1, i64 8
%12 = load i32, ptr %11, align 8, !tbaa !14
%13 = icmp slt i32 %12, 2
br i1 %13, label %89, label %14
14: ; preds = %10, %6, %3
%15 = load ptr, ptr %4, align 8, !tbaa !15
%16 = getelementptr inbounds i8, ptr %15, i64 8
%17 = tail call i64 @mutex_lock_interruptible(ptr noundef nonnull %16) #2
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = icmp sgt i32 %2, 0
br i1 %20, label %31, label %21
21: ; preds = %19
%22 = load ptr, ptr %4, align 8, !tbaa !15
%23 = getelementptr inbounds i8, ptr %22, i64 8
%24 = tail call i32 @mutex_unlock(ptr noundef nonnull %23) #2
br label %88
25: ; preds = %14
%26 = load i32, ptr @ERESTARTSYS, align 4, !tbaa !17
%27 = sub nsw i32 0, %26
br label %89
28: ; preds = %73
%29 = add nsw i32 %74, 1
%30 = icmp slt i32 %29, %2
br i1 %30, label %31, label %83, !llvm.loop !18
31: ; preds = %19, %28
%32 = phi i32 [ %29, %28 ], [ 0, %19 ]
%33 = add nsw i32 %32, 1
%34 = icmp slt i32 %33, %2
br i1 %34, label %35, label %57
35: ; preds = %31
%36 = sext i32 %33 to i64
%37 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %36
%38 = load i64, ptr %37, align 8, !tbaa !6
%39 = load i64, ptr @I2C_M_RD, align 8, !tbaa !13
%40 = icmp eq i64 %38, %39
br i1 %40, label %41, label %57
41: ; preds = %35
%42 = load ptr, ptr %4, align 8, !tbaa !15
%43 = load ptr, ptr %42, align 8, !tbaa !20
%44 = load i32, ptr @FC_READ, align 4, !tbaa !17
%45 = sext i32 %32 to i64
%46 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %45
%47 = getelementptr inbounds i8, ptr %46, i64 24
%48 = load i32, ptr %47, align 8, !tbaa !22
%49 = getelementptr inbounds i8, ptr %46, i64 16
%50 = load ptr, ptr %49, align 8, !tbaa !23
%51 = load i32, ptr %50, align 4, !tbaa !17
%52 = getelementptr inbounds i8, ptr %37, i64 16
%53 = load ptr, ptr %52, align 8, !tbaa !23
%54 = getelementptr inbounds i8, ptr %37, i64 8
%55 = load i32, ptr %54, align 8, !tbaa !14
%56 = tail call i32 %43(ptr noundef nonnull %4, i32 noundef %44, i32 noundef %48, i32 noundef %51, ptr noundef %53, i32 noundef %55) #2
br label %73
57: ; preds = %35, %31
%58 = load ptr, ptr %4, align 8, !tbaa !15
%59 = load ptr, ptr %58, align 8, !tbaa !20
%60 = load i32, ptr @FC_WRITE, align 4, !tbaa !17
%61 = sext i32 %32 to i64
%62 = getelementptr inbounds %struct.i2c_msg, ptr %1, i64 %61
%63 = getelementptr inbounds i8, ptr %62, i64 24
%64 = load i32, ptr %63, align 8, !tbaa !22
%65 = getelementptr inbounds i8, ptr %62, i64 16
%66 = load ptr, ptr %65, align 8, !tbaa !23
%67 = load i32, ptr %66, align 4, !tbaa !17
%68 = getelementptr inbounds i8, ptr %66, i64 4
%69 = getelementptr inbounds i8, ptr %62, i64 8
%70 = load i32, ptr %69, align 8, !tbaa !14
%71 = add nsw i32 %70, -1
%72 = tail call i32 %59(ptr noundef nonnull %4, i32 noundef %60, i32 noundef %64, i32 noundef %67, ptr noundef nonnull %68, i32 noundef %71) #2
br label %73
73: ; preds = %57, %41
%74 = phi i32 [ %33, %41 ], [ %32, %57 ]
%75 = phi i32 [ %56, %41 ], [ %72, %57 ]
%76 = freeze i32 %75
%77 = icmp slt i32 %76, 0
br i1 %77, label %78, label %28
78: ; preds = %73
%79 = tail call i32 @deb_i2c(ptr noundef nonnull @.str) #2
%80 = load ptr, ptr %4, align 8, !tbaa !15
%81 = getelementptr inbounds i8, ptr %80, i64 8
%82 = tail call i32 @mutex_unlock(ptr noundef nonnull %81) #2
br label %89
83: ; preds = %28
%84 = load ptr, ptr %4, align 8, !tbaa !15
%85 = getelementptr inbounds i8, ptr %84, i64 8
%86 = tail call i32 @mutex_unlock(ptr noundef nonnull %85) #2
%87 = icmp eq i32 %76, 0
br i1 %87, label %88, label %89
88: ; preds = %21, %83
br label %89
89: ; preds = %88, %83, %78, %10, %25
%90 = phi i32 [ %27, %25 ], [ 1, %10 ], [ %2, %88 ], [ %76, %83 ], [ %76, %78 ]
ret i32 %90
}
declare ptr @i2c_get_adapdata(ptr noundef) local_unnamed_addr #1
declare i64 @mutex_lock_interruptible(ptr noundef) local_unnamed_addr #1
declare i32 @deb_i2c(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"i2c_msg", !8, i64 0, !11, i64 8, !12, i64 16, !11, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !11, i64 8}
!15 = !{!16, !12, i64 0}
!16 = !{!"flexcop_i2c_adapter", !12, i64 0}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !12, i64 0}
!21 = !{!"TYPE_2__", !12, i64 0, !11, i64 8}
!22 = !{!7, !11, i64 24}
!23 = !{!7, !12, i64 16}
|
linux_drivers_media_common_b2c2_extr_flexcop-i2c.c_flexcop_master_xfer
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_fbdev.h_intel_fbdev_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_fbdev.h_intel_fbdev_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 @intel_fbdev_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @intel_fbdev_init(ptr nocapture readnone %0) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_fbdev.h_intel_fbdev_init.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/i915/display/extr_intel_fbdev.h_intel_fbdev_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 @intel_fbdev_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @intel_fbdev_init(ptr nocapture readnone %0) #0 {
ret i32 0
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_drivers_gpu_drm_i915_display_extr_intel_fbdev.h_intel_fbdev_init
|
; ModuleID = 'AnghaBench/tengine/src/stream/extr_ngx_stream_geo_module.c_ngx_stream_geo_create_binary_base.c'
source_filename = "AnghaBench/tengine/src/stream/extr_ngx_stream_geo_module.c_ngx_stream_geo_create_binary_base.c"
target datalayout = "e-m:e-p270:32:32-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_27__ = type { i64, ptr }
%struct.TYPE_28__ = type { i64, ptr, ptr, i32 }
%struct.TYPE_26__ = type { %struct.TYPE_18__, %struct.TYPE_21__, ptr, i64, %struct.TYPE_19__, i32 }
%struct.TYPE_18__ = type { i32, i32 }
%struct.TYPE_21__ = type { ptr }
%struct.TYPE_19__ = type { i64 }
%struct.TYPE_22__ = type { ptr, i64 }
%struct.TYPE_24__ = type { ptr, i32, i32 }
@.str = private unnamed_addr constant [9 x i8] c"%V.bin%Z\00", align 1
@NGX_LOG_NOTICE = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [36 x i8] c"creating binary geo range base \22%s\22\00", align 1
@NGX_OK = dso_local local_unnamed_addr global i64 0, align 8
@ngx_stream_geo_header = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @ngx_stream_geo_create_binary_base], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @ngx_stream_geo_create_binary_base(ptr noundef %0) #0 {
%2 = alloca %struct.TYPE_27__, align 8
%3 = alloca %struct.TYPE_28__, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #3
%4 = getelementptr inbounds %struct.TYPE_26__, ptr %0, i64 0, i32 5
%5 = load i32, ptr %4, align 8, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_26__, ptr %0, i64 0, i32 4
%7 = load i64, ptr %6, align 8, !tbaa !15
%8 = add nsw i64 %7, 5
%9 = tail call ptr @ngx_pnalloc(i32 noundef %5, i64 noundef %8) #3
%10 = getelementptr inbounds %struct.TYPE_28__, ptr %3, i64 0, i32 2
store ptr %9, ptr %10, align 8, !tbaa !16
%11 = icmp eq ptr %9, null
br i1 %11, label %86, label %12
12: ; preds = %1
%13 = tail call i32 @ngx_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str, ptr noundef nonnull %6) #3
%14 = getelementptr inbounds %struct.TYPE_26__, ptr %0, i64 0, i32 3
%15 = load i64, ptr %14, align 8, !tbaa !18
store i64 %15, ptr %3, align 8, !tbaa !19
%16 = getelementptr inbounds %struct.TYPE_26__, ptr %0, i64 0, i32 2
%17 = load ptr, ptr %16, align 8, !tbaa !20
%18 = load i32, ptr %17, align 4, !tbaa !21
%19 = getelementptr inbounds %struct.TYPE_28__, ptr %3, i64 0, i32 3
store i32 %18, ptr %19, align 8, !tbaa !23
%20 = load i32, ptr @NGX_LOG_NOTICE, align 4, !tbaa !24
%21 = tail call i32 @ngx_log_error(i32 noundef %20, i32 noundef %18, i32 noundef 0, ptr noundef nonnull @.str.1, ptr noundef nonnull %9) #3
%22 = call i64 @ngx_create_file_mapping(ptr noundef nonnull %3) #3
%23 = load i64, ptr @NGX_OK, align 8, !tbaa !25
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %86
25: ; preds = %12
%26 = getelementptr inbounds %struct.TYPE_28__, ptr %3, i64 0, i32 1
%27 = load ptr, ptr %26, align 8, !tbaa !26
%28 = call ptr @ngx_cpymem(ptr noundef %27, ptr noundef nonnull @ngx_stream_geo_header, i32 noundef 8) #3
%29 = load ptr, ptr %26, align 8, !tbaa !26
%30 = getelementptr inbounds %struct.TYPE_18__, ptr %0, i64 0, i32 1
%31 = load i32, ptr %30, align 4, !tbaa !27
%32 = load i32, ptr %0, align 8, !tbaa !28
%33 = call ptr @ngx_stream_geo_copy_values(ptr noundef %29, ptr noundef %28, i32 noundef %31, i32 noundef %32) #3
%34 = getelementptr inbounds i32, ptr %33, i64 16
%35 = getelementptr inbounds i32, ptr %33, i64 524304
%36 = getelementptr inbounds %struct.TYPE_26__, ptr %0, i64 0, i32 1
%37 = getelementptr inbounds %struct.TYPE_27__, ptr %2, i64 0, i32 1
br label %38
38: ; preds = %25, %75
%39 = phi i64 [ 0, %25 ], [ %77, %75 ]
%40 = phi ptr [ %35, %25 ], [ %76, %75 ]
%41 = load ptr, ptr %36, align 8, !tbaa !29
%42 = getelementptr inbounds ptr, ptr %41, i64 %39
%43 = load ptr, ptr %42, align 8, !tbaa !30
%44 = icmp eq ptr %43, null
br i1 %44, label %75, label %45
45: ; preds = %38
%46 = load ptr, ptr %26, align 8, !tbaa !26
%47 = ptrtoint ptr %40 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = ashr exact i64 %49, 2
%51 = inttoptr i64 %50 to ptr
%52 = getelementptr inbounds ptr, ptr %34, i64 %39
store ptr %51, ptr %52, align 8, !tbaa !30
%53 = load ptr, ptr %43, align 8, !tbaa !31
br label %54
54: ; preds = %54, %45
%55 = phi ptr [ %53, %45 ], [ %71, %54 ]
%56 = phi ptr [ %40, %45 ], [ %69, %54 ]
%57 = phi ptr [ %43, %45 ], [ %70, %54 ]
%58 = getelementptr inbounds %struct.TYPE_22__, ptr %55, i64 0, i32 1
%59 = load i64, ptr %58, align 8, !tbaa !33
store i64 %59, ptr %2, align 8, !tbaa !35
%60 = load ptr, ptr %55, align 8, !tbaa !37
store ptr %60, ptr %37, align 8, !tbaa !38
%61 = call ptr @ngx_crc32_long(ptr noundef %60, i64 noundef %59) #3
%62 = call i64 @ngx_str_rbtree_lookup(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef %61) #3
%63 = inttoptr i64 %62 to ptr
%64 = load i64, ptr %63, align 8, !tbaa !39
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %56, align 8, !tbaa !31
%66 = getelementptr inbounds %struct.TYPE_24__, ptr %57, i64 0, i32 1
%67 = getelementptr inbounds %struct.TYPE_24__, ptr %56, i64 0, i32 1
%68 = load <2 x i32>, ptr %66, align 8, !tbaa !24
store <2 x i32> %68, ptr %67, align 8, !tbaa !24
%69 = getelementptr inbounds %struct.TYPE_24__, ptr %56, i64 1
%70 = getelementptr inbounds %struct.TYPE_24__, ptr %57, i64 1
%71 = load ptr, ptr %70, align 8, !tbaa !31
%72 = icmp eq ptr %71, null
br i1 %72, label %73, label %54, !llvm.loop !41
73: ; preds = %54
store ptr null, ptr %69, align 8, !tbaa !31
%74 = getelementptr inbounds %struct.TYPE_24__, ptr %56, i64 3
br label %75
75: ; preds = %38, %73
%76 = phi ptr [ %40, %38 ], [ %74, %73 ]
%77 = add nuw nsw i64 %39, 1
%78 = icmp eq i64 %77, 65536
br i1 %78, label %79, label %38, !llvm.loop !43
79: ; preds = %75
%80 = load ptr, ptr %26, align 8, !tbaa !26
%81 = getelementptr inbounds i32, ptr %80, i64 8
%82 = load i64, ptr %3, align 8, !tbaa !19
%83 = add i64 %82, -8
%84 = call ptr @ngx_crc32_long(ptr noundef nonnull %81, i64 noundef %83) #3
store ptr %84, ptr %80, align 8, !tbaa !44
%85 = call i32 @ngx_close_file_mapping(ptr noundef nonnull %3) #3
br label %86
86: ; preds = %12, %1, %79
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @ngx_pnalloc(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ngx_sprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ngx_log_error(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ngx_create_file_mapping(ptr noundef) local_unnamed_addr #2
declare ptr @ngx_cpymem(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ngx_stream_geo_copy_values(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ngx_crc32_long(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i64 @ngx_str_rbtree_lookup(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ngx_close_file_mapping(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, !8, i64 40}
!6 = !{!"TYPE_26__", !7, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !14, i64 32, !8, i64 40}
!7 = !{!"TYPE_18__", !8, i64 0, !8, i64 4}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_21__", !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!"TYPE_19__", !13, i64 0}
!15 = !{!6, !13, i64 32}
!16 = !{!17, !12, i64 16}
!17 = !{!"TYPE_28__", !13, i64 0, !12, i64 8, !12, i64 16, !8, i64 24}
!18 = !{!6, !13, i64 24}
!19 = !{!17, !13, i64 0}
!20 = !{!6, !12, i64 16}
!21 = !{!22, !8, i64 0}
!22 = !{!"TYPE_20__", !8, i64 0}
!23 = !{!17, !8, i64 24}
!24 = !{!8, !8, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{!17, !12, i64 8}
!27 = !{!6, !8, i64 4}
!28 = !{!6, !8, i64 0}
!29 = !{!6, !12, i64 8}
!30 = !{!12, !12, i64 0}
!31 = !{!32, !12, i64 0}
!32 = !{!"TYPE_24__", !12, i64 0, !8, i64 8, !8, i64 12}
!33 = !{!34, !13, i64 8}
!34 = !{!"TYPE_22__", !12, i64 0, !13, i64 8}
!35 = !{!36, !13, i64 0}
!36 = !{!"TYPE_27__", !13, i64 0, !12, i64 8}
!37 = !{!34, !12, i64 0}
!38 = !{!36, !12, i64 8}
!39 = !{!40, !13, i64 0}
!40 = !{!"TYPE_23__", !13, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = !{!45, !12, i64 0}
!45 = !{!"TYPE_25__", !12, i64 0}
|
; ModuleID = 'AnghaBench/tengine/src/stream/extr_ngx_stream_geo_module.c_ngx_stream_geo_create_binary_base.c'
source_filename = "AnghaBench/tengine/src/stream/extr_ngx_stream_geo_module.c_ngx_stream_geo_create_binary_base.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_27__ = type { i64, ptr }
%struct.TYPE_28__ = type { i64, ptr, ptr, i32 }
@.str = private unnamed_addr constant [9 x i8] c"%V.bin%Z\00", align 1
@NGX_LOG_NOTICE = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [36 x i8] c"creating binary geo range base \22%s\22\00", align 1
@NGX_OK = common local_unnamed_addr global i64 0, align 8
@ngx_stream_geo_header = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @ngx_stream_geo_create_binary_base], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @ngx_stream_geo_create_binary_base(ptr noundef %0) #0 {
%2 = alloca %struct.TYPE_27__, align 8
%3 = alloca %struct.TYPE_28__, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #3
%4 = getelementptr inbounds i8, ptr %0, i64 40
%5 = load i32, ptr %4, align 8, !tbaa !6
%6 = getelementptr inbounds i8, ptr %0, i64 32
%7 = load i64, ptr %6, align 8, !tbaa !16
%8 = add nsw i64 %7, 5
%9 = tail call ptr @ngx_pnalloc(i32 noundef %5, i64 noundef %8) #3
%10 = getelementptr inbounds i8, ptr %3, i64 16
store ptr %9, ptr %10, align 8, !tbaa !17
%11 = icmp eq ptr %9, null
br i1 %11, label %86, label %12
12: ; preds = %1
%13 = tail call i32 @ngx_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str, ptr noundef nonnull %6) #3
%14 = getelementptr inbounds i8, ptr %0, i64 24
%15 = load i64, ptr %14, align 8, !tbaa !19
store i64 %15, ptr %3, align 8, !tbaa !20
%16 = getelementptr inbounds i8, ptr %0, i64 16
%17 = load ptr, ptr %16, align 8, !tbaa !21
%18 = load i32, ptr %17, align 4, !tbaa !22
%19 = getelementptr inbounds i8, ptr %3, i64 24
store i32 %18, ptr %19, align 8, !tbaa !24
%20 = load i32, ptr @NGX_LOG_NOTICE, align 4, !tbaa !25
%21 = tail call i32 @ngx_log_error(i32 noundef %20, i32 noundef %18, i32 noundef 0, ptr noundef nonnull @.str.1, ptr noundef nonnull %9) #3
%22 = call i64 @ngx_create_file_mapping(ptr noundef nonnull %3) #3
%23 = load i64, ptr @NGX_OK, align 8, !tbaa !26
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %86
25: ; preds = %12
%26 = getelementptr inbounds i8, ptr %3, i64 8
%27 = load ptr, ptr %26, align 8, !tbaa !27
%28 = call ptr @ngx_cpymem(ptr noundef %27, ptr noundef nonnull @ngx_stream_geo_header, i32 noundef 8) #3
%29 = load ptr, ptr %26, align 8, !tbaa !27
%30 = getelementptr inbounds i8, ptr %0, i64 4
%31 = load i32, ptr %30, align 4, !tbaa !28
%32 = load i32, ptr %0, align 8, !tbaa !29
%33 = call ptr @ngx_stream_geo_copy_values(ptr noundef %29, ptr noundef %28, i32 noundef %31, i32 noundef %32) #3
%34 = getelementptr inbounds i8, ptr %33, i64 64
%35 = getelementptr inbounds i8, ptr %33, i64 2097216
%36 = getelementptr inbounds i8, ptr %0, i64 8
%37 = getelementptr inbounds i8, ptr %2, i64 8
br label %38
38: ; preds = %25, %75
%39 = phi i64 [ 0, %25 ], [ %77, %75 ]
%40 = phi ptr [ %35, %25 ], [ %76, %75 ]
%41 = load ptr, ptr %36, align 8, !tbaa !30
%42 = getelementptr inbounds ptr, ptr %41, i64 %39
%43 = load ptr, ptr %42, align 8, !tbaa !31
%44 = icmp eq ptr %43, null
br i1 %44, label %75, label %45
45: ; preds = %38
%46 = load ptr, ptr %26, align 8, !tbaa !27
%47 = ptrtoint ptr %40 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = ashr exact i64 %49, 2
%51 = inttoptr i64 %50 to ptr
%52 = getelementptr inbounds ptr, ptr %34, i64 %39
store ptr %51, ptr %52, align 8, !tbaa !31
%53 = load ptr, ptr %43, align 8, !tbaa !32
br label %54
54: ; preds = %54, %45
%55 = phi ptr [ %53, %45 ], [ %71, %54 ]
%56 = phi ptr [ %40, %45 ], [ %69, %54 ]
%57 = phi ptr [ %43, %45 ], [ %70, %54 ]
%58 = getelementptr inbounds i8, ptr %55, i64 8
%59 = load i64, ptr %58, align 8, !tbaa !34
store i64 %59, ptr %2, align 8, !tbaa !36
%60 = load ptr, ptr %55, align 8, !tbaa !38
store ptr %60, ptr %37, align 8, !tbaa !39
%61 = call ptr @ngx_crc32_long(ptr noundef %60, i64 noundef %59) #3
%62 = call i64 @ngx_str_rbtree_lookup(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef %61) #3
%63 = inttoptr i64 %62 to ptr
%64 = load i64, ptr %63, align 8, !tbaa !40
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %56, align 8, !tbaa !32
%66 = getelementptr inbounds i8, ptr %57, i64 8
%67 = getelementptr inbounds i8, ptr %56, i64 8
%68 = load <2 x i32>, ptr %66, align 8, !tbaa !25
store <2 x i32> %68, ptr %67, align 8, !tbaa !25
%69 = getelementptr inbounds i8, ptr %56, i64 16
%70 = getelementptr inbounds i8, ptr %57, i64 16
%71 = load ptr, ptr %70, align 8, !tbaa !32
%72 = icmp eq ptr %71, null
br i1 %72, label %73, label %54, !llvm.loop !42
73: ; preds = %54
store ptr null, ptr %69, align 8, !tbaa !32
%74 = getelementptr inbounds i8, ptr %56, i64 48
br label %75
75: ; preds = %38, %73
%76 = phi ptr [ %40, %38 ], [ %74, %73 ]
%77 = add nuw nsw i64 %39, 1
%78 = icmp eq i64 %77, 65536
br i1 %78, label %79, label %38, !llvm.loop !44
79: ; preds = %75
%80 = load ptr, ptr %26, align 8, !tbaa !27
%81 = getelementptr inbounds i8, ptr %80, i64 32
%82 = load i64, ptr %3, align 8, !tbaa !20
%83 = add i64 %82, -8
%84 = call ptr @ngx_crc32_long(ptr noundef nonnull %81, i64 noundef %83) #3
store ptr %84, ptr %80, align 8, !tbaa !45
%85 = call i32 @ngx_close_file_mapping(ptr noundef nonnull %3) #3
br label %86
86: ; preds = %12, %1, %79
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #3
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @ngx_pnalloc(i32 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @ngx_sprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ngx_log_error(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @ngx_create_file_mapping(ptr noundef) local_unnamed_addr #2
declare ptr @ngx_cpymem(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ngx_stream_geo_copy_values(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @ngx_crc32_long(ptr noundef, i64 noundef) local_unnamed_addr #2
declare i64 @ngx_str_rbtree_lookup(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @ngx_close_file_mapping(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, !9, i64 40}
!7 = !{!"TYPE_26__", !8, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !15, i64 32, !9, i64 40}
!8 = !{!"TYPE_18__", !9, i64 0, !9, i64 4}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"TYPE_21__", !13, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!"long", !10, i64 0}
!15 = !{!"TYPE_19__", !14, i64 0}
!16 = !{!7, !14, i64 32}
!17 = !{!18, !13, i64 16}
!18 = !{!"TYPE_28__", !14, i64 0, !13, i64 8, !13, i64 16, !9, i64 24}
!19 = !{!7, !14, i64 24}
!20 = !{!18, !14, i64 0}
!21 = !{!7, !13, i64 16}
!22 = !{!23, !9, i64 0}
!23 = !{!"TYPE_20__", !9, i64 0}
!24 = !{!18, !9, i64 24}
!25 = !{!9, !9, i64 0}
!26 = !{!14, !14, i64 0}
!27 = !{!18, !13, i64 8}
!28 = !{!7, !9, i64 4}
!29 = !{!7, !9, i64 0}
!30 = !{!7, !13, i64 8}
!31 = !{!13, !13, i64 0}
!32 = !{!33, !13, i64 0}
!33 = !{!"TYPE_24__", !13, i64 0, !9, i64 8, !9, i64 12}
!34 = !{!35, !14, i64 8}
!35 = !{!"TYPE_22__", !13, i64 0, !14, i64 8}
!36 = !{!37, !14, i64 0}
!37 = !{!"TYPE_27__", !14, i64 0, !13, i64 8}
!38 = !{!35, !13, i64 0}
!39 = !{!37, !13, i64 8}
!40 = !{!41, !14, i64 0}
!41 = !{!"TYPE_23__", !14, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = !{!46, !13, i64 0}
!46 = !{!"TYPE_25__", !13, i64 0}
|
tengine_src_stream_extr_ngx_stream_geo_module.c_ngx_stream_geo_create_binary_base
|
; ModuleID = 'AnghaBench/linux/drivers/usb/storage/extr_....scsisd.h_sd_zbc_setup_reset_cmnd.c'
source_filename = "AnghaBench/linux/drivers/usb/storage/extr_....scsisd.h_sd_zbc_setup_reset_cmnd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@BLK_STS_TARGET = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sd_zbc_setup_reset_cmnd], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define internal i32 @sd_zbc_setup_reset_cmnd(ptr nocapture readnone %0, i32 %1) #0 {
%3 = load i32, ptr @BLK_STS_TARGET, align 4, !tbaa !5
ret i32 %3
}
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/usb/storage/extr_....scsisd.h_sd_zbc_setup_reset_cmnd.c'
source_filename = "AnghaBench/linux/drivers/usb/storage/extr_....scsisd.h_sd_zbc_setup_reset_cmnd.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@BLK_STS_TARGET = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sd_zbc_setup_reset_cmnd], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define internal i32 @sd_zbc_setup_reset_cmnd(ptr nocapture readnone %0, i32 %1) #0 {
%3 = load i32, ptr @BLK_STS_TARGET, align 4, !tbaa !6
ret i32 %3
}
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_usb_storage_extr_....scsisd.h_sd_zbc_setup_reset_cmnd
|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_main.c_ixgbe_mdio_write.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_main.c_ixgbe_mdio_write.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.ixgbe_adapter = type { i64, %struct.ixgbe_hw }
%struct.ixgbe_hw = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { %struct.TYPE_5__, %struct.TYPE_4__ }
%struct.TYPE_5__ = type { ptr }
%struct.TYPE_4__ = type { i32 }
@MDIO_DEVAD_NONE = dso_local local_unnamed_addr global i32 0, align 4
@MII_ADDR_C45 = 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 @ixgbe_mdio_write], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @ixgbe_mdio_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call ptr @netdev_priv(ptr noundef %0) #2
%7 = getelementptr inbounds %struct.ixgbe_adapter, ptr %6, i64 0, i32 1
%8 = load i64, ptr %6, align 8, !tbaa !5
%9 = icmp eq i64 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %5
%11 = load i32, ptr @MDIO_DEVAD_NONE, align 4, !tbaa !16
%12 = icmp eq i32 %11, %2
%13 = shl i32 %2, 16
%14 = load i32, ptr @MII_ADDR_C45, align 4
%15 = or i32 %14, %13
%16 = select i1 %12, i32 0, i32 %15
%17 = or i32 %16, %3
%18 = tail call i32 @mdiobus_write(i64 noundef %8, i32 noundef %1, i32 noundef %17, i32 noundef %4) #2
br label %29
19: ; preds = %5
%20 = getelementptr inbounds %struct.ixgbe_adapter, ptr %6, i64 0, i32 1, i32 0, i32 1
%21 = load i32, ptr %20, align 8, !tbaa !17
%22 = icmp eq i32 %21, %1
br i1 %22, label %26, label %23
23: ; preds = %19
%24 = load i32, ptr @EINVAL, align 4, !tbaa !16
%25 = sub nsw i32 0, %24
br label %29
26: ; preds = %19
%27 = load ptr, ptr %7, align 8, !tbaa !18
%28 = tail call i32 %27(ptr noundef nonnull %7, i32 noundef %3, i32 noundef %2, i32 noundef %4) #2
br label %29
29: ; preds = %26, %23, %10
%30 = phi i32 [ %18, %10 ], [ %25, %23 ], [ %28, %26 ]
ret i32 %30
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @mdiobus_write(i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ixgbe_adapter", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"ixgbe_hw", !11, i64 0}
!11 = !{!"TYPE_6__", !12, i64 0, !14, i64 8}
!12 = !{!"TYPE_5__", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"TYPE_4__", !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!10, !15, i64 8}
!18 = !{!10, !13, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_main.c_ixgbe_mdio_write.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/intel/ixgbe/extr_ixgbe_main.c_ixgbe_mdio_write.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MDIO_DEVAD_NONE = common local_unnamed_addr global i32 0, align 4
@MII_ADDR_C45 = 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 @ixgbe_mdio_write], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @ixgbe_mdio_write(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = tail call ptr @netdev_priv(ptr noundef %0) #2
%7 = getelementptr inbounds i8, ptr %6, i64 8
%8 = load i64, ptr %6, align 8, !tbaa !6
%9 = icmp eq i64 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %5
%11 = load i32, ptr @MDIO_DEVAD_NONE, align 4, !tbaa !17
%12 = icmp eq i32 %11, %2
%13 = shl i32 %2, 16
%14 = load i32, ptr @MII_ADDR_C45, align 4
%15 = or i32 %14, %13
%16 = select i1 %12, i32 0, i32 %15
%17 = or i32 %16, %3
%18 = tail call i32 @mdiobus_write(i64 noundef %8, i32 noundef %1, i32 noundef %17, i32 noundef %4) #2
br label %29
19: ; preds = %5
%20 = getelementptr inbounds i8, ptr %6, i64 16
%21 = load i32, ptr %20, align 8, !tbaa !18
%22 = icmp eq i32 %21, %1
br i1 %22, label %26, label %23
23: ; preds = %19
%24 = load i32, ptr @EINVAL, align 4, !tbaa !17
%25 = sub nsw i32 0, %24
br label %29
26: ; preds = %19
%27 = load ptr, ptr %7, align 8, !tbaa !19
%28 = tail call i32 %27(ptr noundef nonnull %7, i32 noundef %3, i32 noundef %2, i32 noundef %4) #2
br label %29
29: ; preds = %26, %23, %10
%30 = phi i32 [ %18, %10 ], [ %25, %23 ], [ %28, %26 ]
ret i32 %30
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @mdiobus_write(i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ixgbe_adapter", !8, i64 0, !11, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"ixgbe_hw", !12, i64 0}
!12 = !{!"TYPE_6__", !13, i64 0, !15, i64 8}
!13 = !{!"TYPE_5__", !14, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"TYPE_4__", !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!11, !16, i64 8}
!19 = !{!11, !14, i64 0}
|
linux_drivers_net_ethernet_intel_ixgbe_extr_ixgbe_main.c_ixgbe_mdio_write
|
; ModuleID = 'AnghaBench/linux/arch/arc/kernel/extr_ptrace.c_ptrace_disable.c'
source_filename = "AnghaBench/linux/arch/arc/kernel/extr_ptrace.c_ptrace_disable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local void @ptrace_disable(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/linux/arch/arc/kernel/extr_ptrace.c_ptrace_disable.c'
source_filename = "AnghaBench/linux/arch/arc/kernel/extr_ptrace.c_ptrace_disable.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define void @ptrace_disable(ptr nocapture noundef readnone %0) local_unnamed_addr #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_arch_arc_kernel_extr_ptrace.c_ptrace_disable
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/igb/extr_e1000_82575.c_igb_acquire_swfw_sync_82575.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/igb/extr_e1000_82575.c_igb_acquire_swfw_sync_82575.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@E1000_ERR_SWFW_SYNC = dso_local local_unnamed_addr global i64 0, align 8
@E1000_SW_FW_SYNC = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [51 x i8] c"Driver can't access resource, SW_FW_SYNC timeout.\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @igb_acquire_swfw_sync_82575], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i64 @igb_acquire_swfw_sync_82575(ptr noundef %0, i32 noundef %1) #0 {
%3 = shl i32 %1, 16
%4 = or i32 %3, %1
br label %5
5: ; preds = %2, %17
%6 = phi i64 [ 0, %2 ], [ %20, %17 ]
%7 = tail call i64 @igb_get_hw_semaphore(ptr noundef %0) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = load i64, ptr @E1000_ERR_SWFW_SYNC, align 8, !tbaa !5
%11 = sub nsw i64 0, %10
br label %31
12: ; preds = %5
%13 = load i32, ptr @E1000_SW_FW_SYNC, align 4, !tbaa !9
%14 = tail call i32 @rd32(i32 noundef %13) #2
%15 = and i32 %14, %4
%16 = icmp eq i32 %15, 0
br i1 %16, label %26, label %17
17: ; preds = %12
%18 = tail call i32 @igb_put_hw_semaphore(ptr noundef %0) #2
%19 = tail call i32 @mdelay(i32 noundef 5) #2
%20 = add nuw nsw i64 %6, 1
%21 = icmp eq i64 %20, 200
br i1 %21, label %22, label %5, !llvm.loop !11
22: ; preds = %17
%23 = tail call i32 @hw_dbg(ptr noundef nonnull @.str) #2
%24 = load i64, ptr @E1000_ERR_SWFW_SYNC, align 8, !tbaa !5
%25 = sub nsw i64 0, %24
br label %31
26: ; preds = %12
%27 = or i32 %14, %1
%28 = load i32, ptr @E1000_SW_FW_SYNC, align 4, !tbaa !9
%29 = tail call i32 @wr32(i32 noundef %28, i32 noundef %27) #2
%30 = tail call i32 @igb_put_hw_semaphore(ptr noundef %0) #2
br label %31
31: ; preds = %26, %22, %9
%32 = phi i64 [ %11, %9 ], [ %25, %22 ], [ 0, %26 ]
ret i64 %32
}
declare i64 @igb_get_hw_semaphore(ptr noundef) local_unnamed_addr #1
declare i32 @rd32(i32 noundef) local_unnamed_addr #1
declare i32 @igb_put_hw_semaphore(ptr noundef) local_unnamed_addr #1
declare i32 @mdelay(i32 noundef) local_unnamed_addr #1
declare i32 @hw_dbg(ptr noundef) local_unnamed_addr #1
declare i32 @wr32(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/igb/extr_e1000_82575.c_igb_acquire_swfw_sync_82575.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/igb/extr_e1000_82575.c_igb_acquire_swfw_sync_82575.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@E1000_ERR_SWFW_SYNC = common local_unnamed_addr global i64 0, align 8
@E1000_SW_FW_SYNC = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [51 x i8] c"Driver can't access resource, SW_FW_SYNC timeout.\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @igb_acquire_swfw_sync_82575], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i64 -9223372036854775807, -9223372036854775808) i64 @igb_acquire_swfw_sync_82575(ptr noundef %0, i32 noundef %1) #0 {
%3 = shl i32 %1, 16
%4 = or i32 %3, %1
br label %5
5: ; preds = %2, %17
%6 = phi i64 [ 0, %2 ], [ %20, %17 ]
%7 = tail call i64 @igb_get_hw_semaphore(ptr noundef %0) #2
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = load i64, ptr @E1000_ERR_SWFW_SYNC, align 8, !tbaa !6
%11 = sub nsw i64 0, %10
br label %31
12: ; preds = %5
%13 = load i32, ptr @E1000_SW_FW_SYNC, align 4, !tbaa !10
%14 = tail call i32 @rd32(i32 noundef %13) #2
%15 = and i32 %14, %4
%16 = icmp eq i32 %15, 0
br i1 %16, label %26, label %17
17: ; preds = %12
%18 = tail call i32 @igb_put_hw_semaphore(ptr noundef %0) #2
%19 = tail call i32 @mdelay(i32 noundef 5) #2
%20 = add nuw nsw i64 %6, 1
%21 = icmp eq i64 %20, 200
br i1 %21, label %22, label %5, !llvm.loop !12
22: ; preds = %17
%23 = tail call i32 @hw_dbg(ptr noundef nonnull @.str) #2
%24 = load i64, ptr @E1000_ERR_SWFW_SYNC, align 8, !tbaa !6
%25 = sub nsw i64 0, %24
br label %31
26: ; preds = %12
%27 = or i32 %14, %1
%28 = load i32, ptr @E1000_SW_FW_SYNC, align 4, !tbaa !10
%29 = tail call i32 @wr32(i32 noundef %28, i32 noundef %27) #2
%30 = tail call i32 @igb_put_hw_semaphore(ptr noundef %0) #2
br label %31
31: ; preds = %26, %22, %9
%32 = phi i64 [ %11, %9 ], [ %25, %22 ], [ 0, %26 ]
ret i64 %32
}
declare i64 @igb_get_hw_semaphore(ptr noundef) local_unnamed_addr #1
declare i32 @rd32(i32 noundef) local_unnamed_addr #1
declare i32 @igb_put_hw_semaphore(ptr noundef) local_unnamed_addr #1
declare i32 @mdelay(i32 noundef) local_unnamed_addr #1
declare i32 @hw_dbg(ptr noundef) local_unnamed_addr #1
declare i32 @wr32(i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
|
fastsocket_kernel_drivers_net_igb_extr_e1000_82575.c_igb_acquire_swfw_sync_82575
|
; ModuleID = 'AnghaBench/RetroArch/input/drivers_joypad/extr_gx_joypad.c_gx_joypad_query_pad.c'
source_filename = "AnghaBench/RetroArch/input/drivers_joypad/extr_gx_joypad.c_gx_joypad_query_pad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MAX_USERS = dso_local local_unnamed_addr global i32 0, align 4
@pad_type = dso_local local_unnamed_addr global ptr null, align 8
@WPAD_EXP_NOCONTROLLER = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @gx_joypad_query_pad], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable
define internal i32 @gx_joypad_query_pad(i32 noundef %0) #0 {
%2 = load i32, ptr @MAX_USERS, align 4, !tbaa !5
%3 = icmp ugt i32 %2, %0
br i1 %3, label %4, label %12
4: ; preds = %1
%5 = load ptr, ptr @pad_type, align 8, !tbaa !9
%6 = zext i32 %0 to i64
%7 = getelementptr inbounds i64, ptr %5, i64 %6
%8 = load i64, ptr %7, align 8, !tbaa !11
%9 = load i64, ptr @WPAD_EXP_NOCONTROLLER, align 8, !tbaa !11
%10 = icmp ne i64 %8, %9
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %4, %1
%13 = phi i32 [ 0, %1 ], [ %11, %4 ]
ret i32 %13
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
|
; ModuleID = 'AnghaBench/RetroArch/input/drivers_joypad/extr_gx_joypad.c_gx_joypad_query_pad.c'
source_filename = "AnghaBench/RetroArch/input/drivers_joypad/extr_gx_joypad.c_gx_joypad_query_pad.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MAX_USERS = common local_unnamed_addr global i32 0, align 4
@pad_type = common local_unnamed_addr global ptr null, align 8
@WPAD_EXP_NOCONTROLLER = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @gx_joypad_query_pad], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync)
define internal range(i32 0, 2) i32 @gx_joypad_query_pad(i32 noundef %0) #0 {
%2 = load i32, ptr @MAX_USERS, align 4, !tbaa !6
%3 = icmp ugt i32 %2, %0
br i1 %3, label %4, label %12
4: ; preds = %1
%5 = load ptr, ptr @pad_type, align 8, !tbaa !10
%6 = zext i32 %0 to i64
%7 = getelementptr inbounds i64, ptr %5, i64 %6
%8 = load i64, ptr %7, align 8, !tbaa !12
%9 = load i64, ptr @WPAD_EXP_NOCONTROLLER, align 8, !tbaa !12
%10 = icmp ne i64 %8, %9
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %4, %1
%13 = phi i32 [ 0, %1 ], [ %11, %4 ]
ret i32 %13
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
|
RetroArch_input_drivers_joypad_extr_gx_joypad.c_gx_joypad_query_pad
|
; ModuleID = 'AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsFileControlHint.c'
source_filename = "AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsFileControlHint.c"
target datalayout = "e-m:e-p270:32:32-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 @sqlite3OsFileControlHint(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load ptr, ptr %4, align 8, !tbaa !10
%8 = tail call i32 %7(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #1
br label %9
9: ; preds = %6, %3
ret void
}
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_6__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_5__", !7, i64 0}
|
; ModuleID = 'AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsFileControlHint.c'
source_filename = "AnghaBench/sqlcipher/src/extr_os.c_sqlite3OsFileControlHint.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 @sqlite3OsFileControlHint(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = load ptr, ptr %0, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load ptr, ptr %4, align 8, !tbaa !11
%8 = tail call i32 %7(ptr noundef nonnull %0, i32 noundef %1, ptr noundef %2) #1
br label %9
9: ; preds = %6, %3
ret void
}
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_6__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"TYPE_5__", !8, i64 0}
|
sqlcipher_src_extr_os.c_sqlite3OsFileControlHint
|
; ModuleID = 'AnghaBench/linux/drivers/media/rc/img-ir/extr_img-ir-hw.c_img_ir_remove_hw.c'
source_filename = "AnghaBench/linux/drivers/media/rc/img-ir/extr_img-ir-hw.c_img_ir_remove_hw.c"
target datalayout = "e-m:e-p270:32:32-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.img_ir_priv = type { i32, %struct.img_ir_priv_hw }
%struct.img_ir_priv_hw = type { i32, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @img_ir_remove_hw(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.img_ir_priv, ptr %0, i64 0, i32 1, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = icmp eq ptr %3, null
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = tail call i32 @img_ir_set_decoder(ptr noundef nonnull %0, ptr noundef null, i32 noundef 0) #2
store ptr null, ptr %2, align 8, !tbaa !5
%7 = tail call i32 @rc_unregister_device(ptr noundef nonnull %3) #2
br label %8
8: ; preds = %1, %5
ret void
}
declare i32 @img_ir_set_decoder(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rc_unregister_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, !10, i64 8}
!6 = !{!"img_ir_priv_hw", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/media/rc/img-ir/extr_img-ir-hw.c_img_ir_remove_hw.c'
source_filename = "AnghaBench/linux/drivers/media/rc/img-ir/extr_img-ir-hw.c_img_ir_remove_hw.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 @img_ir_remove_hw(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 16
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = icmp eq ptr %3, null
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = tail call i32 @img_ir_set_decoder(ptr noundef nonnull %0, ptr noundef null, i32 noundef 0) #2
store ptr null, ptr %2, align 8, !tbaa !6
%7 = tail call i32 @rc_unregister_device(ptr noundef nonnull %3) #2
br label %8
8: ; preds = %1, %5
ret void
}
declare i32 @img_ir_set_decoder(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @rc_unregister_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, !11, i64 8}
!7 = !{!"img_ir_priv_hw", !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}
|
linux_drivers_media_rc_img-ir_extr_img-ir-hw.c_img_ir_remove_hw
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_halt_smc.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_halt_smc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@PPSMC_MSG_Halt = dso_local local_unnamed_addr global i32 0, align 4
@PPSMC_Result_OK = dso_local local_unnamed_addr global i64 0, align 8
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @rv770_halt_smc(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @PPSMC_MSG_Halt, align 4, !tbaa !5
%3 = tail call i64 @rv770_send_msg_to_smc(ptr noundef %0, i32 noundef %2) #2
%4 = load i64, ptr @PPSMC_Result_OK, align 8, !tbaa !9
%5 = icmp eq i64 %3, %4
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4, !tbaa !5
%8 = sub nsw i32 0, %7
br label %16
9: ; preds = %1
%10 = tail call i64 @rv770_wait_for_smc_inactive(ptr noundef %0) #2
%11 = load i64, ptr @PPSMC_Result_OK, align 8, !tbaa !9
%12 = icmp eq i64 %10, %11
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = load i32, ptr @EINVAL, align 4, !tbaa !5
%15 = sub nsw i32 0, %14
br label %16
16: ; preds = %9, %13, %6
%17 = phi i32 [ %8, %6 ], [ %15, %13 ], [ 0, %9 ]
ret i32 %17
}
declare i64 @rv770_send_msg_to_smc(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @rv770_wait_for_smc_inactive(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_halt_smc.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/radeon/extr_rv770_dpm.c_rv770_halt_smc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PPSMC_MSG_Halt = common local_unnamed_addr global i32 0, align 4
@PPSMC_Result_OK = common local_unnamed_addr global i64 0, align 8
@EINVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @rv770_halt_smc(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i32, ptr @PPSMC_MSG_Halt, align 4, !tbaa !6
%3 = tail call i64 @rv770_send_msg_to_smc(ptr noundef %0, i32 noundef %2) #2
%4 = load i64, ptr @PPSMC_Result_OK, align 8, !tbaa !10
%5 = icmp eq i64 %3, %4
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4, !tbaa !6
%8 = sub nsw i32 0, %7
br label %16
9: ; preds = %1
%10 = tail call i64 @rv770_wait_for_smc_inactive(ptr noundef %0) #2
%11 = load i64, ptr @PPSMC_Result_OK, align 8, !tbaa !10
%12 = icmp eq i64 %10, %11
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = load i32, ptr @EINVAL, align 4, !tbaa !6
%15 = sub nsw i32 0, %14
br label %16
16: ; preds = %9, %13, %6
%17 = phi i32 [ %8, %6 ], [ %15, %13 ], [ 0, %9 ]
ret i32 %17
}
declare i64 @rv770_send_msg_to_smc(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @rv770_wait_for_smc_inactive(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
|
linux_drivers_gpu_drm_radeon_extr_rv770_dpm.c_rv770_halt_smc
|
; ModuleID = 'AnghaBench/linux/drivers/base/extr_class.c_class_release.c'
source_filename = "AnghaBench/linux/drivers/base/extr_class.c_class_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.class = type { i32, ptr }
@.str = private unnamed_addr constant [22 x i8] c"class '%s': release.\0A\00", align 1
@.str.1 = private unnamed_addr constant [59 x i8] c"class '%s' does not have a release() function, be careful\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @class_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @class_release(ptr noundef %0) #0 {
%2 = tail call ptr @to_subsys_private(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = load i32, ptr %3, align 8, !tbaa !10
%5 = tail call i32 @pr_debug(ptr noundef nonnull @.str, i32 noundef %4) #2
%6 = getelementptr inbounds %struct.class, ptr %3, i64 0, i32 1
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = icmp eq ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = tail call i32 %7(ptr noundef nonnull %3) #2
br label %14
11: ; preds = %1
%12 = load i32, ptr %3, align 8, !tbaa !10
%13 = tail call i32 @pr_debug(ptr noundef nonnull @.str.1, i32 noundef %12) #2
br label %14
14: ; preds = %11, %9
%15 = tail call i32 @kfree(ptr noundef nonnull %2) #2
ret void
}
declare ptr @to_subsys_private(ptr noundef) local_unnamed_addr #1
declare i32 @pr_debug(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 0}
!6 = !{!"subsys_private", !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 = !{!"class", !12, i64 0, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 8}
|
; ModuleID = 'AnghaBench/linux/drivers/base/extr_class.c_class_release.c'
source_filename = "AnghaBench/linux/drivers/base/extr_class.c_class_release.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [22 x i8] c"class '%s': release.\0A\00", align 1
@.str.1 = private unnamed_addr constant [59 x i8] c"class '%s' does not have a release() function, be careful\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @class_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @class_release(ptr noundef %0) #0 {
%2 = tail call ptr @to_subsys_private(ptr noundef %0) #2
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = load i32, ptr %3, align 8, !tbaa !11
%5 = tail call i32 @pr_debug(ptr noundef nonnull @.str, i32 noundef %4) #2
%6 = getelementptr inbounds i8, ptr %3, i64 8
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = icmp eq ptr %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = tail call i32 %7(ptr noundef nonnull %3) #2
br label %14
11: ; preds = %1
%12 = load i32, ptr %3, align 8, !tbaa !11
%13 = tail call i32 @pr_debug(ptr noundef nonnull @.str.1, i32 noundef %12) #2
br label %14
14: ; preds = %11, %9
%15 = tail call i32 @kfree(ptr noundef nonnull %2) #2
ret void
}
declare ptr @to_subsys_private(ptr noundef) local_unnamed_addr #1
declare i32 @pr_debug(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 0}
!7 = !{!"subsys_private", !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 = !{!"class", !13, i64 0, !8, i64 8}
!13 = !{!"int", !9, i64 0}
!14 = !{!12, !8, i64 8}
|
linux_drivers_base_extr_class.c_class_release
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/ieee1394/extr_ieee1394_core.c_build_speed_map.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/ieee1394/extr_ieee1394_core.c_build_speed_map.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hpsb_host = type { i32, ptr, %struct.TYPE_2__, ptr, ptr }
%struct.TYPE_2__ = type { i64 }
%struct.selfid = type { i64, i64, i64, i64, i64 }
%struct.ext_selfid = type { i64, i64, i64, i64, i64, i64, i64, i64 }
@IEEE1394_SPEED_MAX = dso_local local_unnamed_addr global i64 0, align 8
@SELFID_PORT_CHILD = dso_local local_unnamed_addr global i64 0, align 8
@SELFID_SPEED_UNKNOWN = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @build_speed_map], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @build_speed_map(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = zext i32 %1 to i64
%4 = alloca i64, i64 %3, align 16
%5 = getelementptr inbounds %struct.hpsb_host, ptr %0, i64 0, i32 4
%6 = load ptr, ptr %5, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.hpsb_host, ptr %0, i64 0, i32 3
%8 = load ptr, ptr %7, align 8, !tbaa !13
%9 = getelementptr inbounds %struct.hpsb_host, ptr %0, i64 0, i32 2
%10 = load i64, ptr %9, align 8, !tbaa !14
%11 = icmp sgt i32 %1, 0
br i1 %11, label %12, label %45
12: ; preds = %2
%13 = shl nsw i32 %1, 6
%14 = zext nneg i32 %13 to i64
%15 = icmp ult i32 %1, 4
%16 = and i64 %3, 2147483644
%17 = icmp eq i64 %16, %3
br label %18
18: ; preds = %42, %12
%19 = phi i64 [ 0, %12 ], [ %43, %42 ]
%20 = load i64, ptr @IEEE1394_SPEED_MAX, align 8, !tbaa !15
%21 = getelementptr i64, ptr %6, i64 %19
br i1 %15, label %32, label %22
22: ; preds = %18
%23 = insertelement <2 x i64> poison, i64 %20, i64 0
%24 = shufflevector <2 x i64> %23, <2 x i64> poison, <2 x i32> zeroinitializer
br label %25
25: ; preds = %25, %22
%26 = phi i64 [ 0, %22 ], [ %29, %25 ]
%27 = getelementptr i64, ptr %21, i64 %26
%28 = getelementptr i64, ptr %27, i64 2
store <2 x i64> %24, ptr %27, align 8, !tbaa !15
store <2 x i64> %24, ptr %28, align 8, !tbaa !15
%29 = add nuw i64 %26, 4
%30 = icmp eq i64 %29, %16
br i1 %30, label %31, label %25, !llvm.loop !16
31: ; preds = %25
br i1 %17, label %42, label %32
32: ; preds = %18, %31
%33 = phi i64 [ 0, %18 ], [ %16, %31 ]
br label %37
34: ; preds = %42
br i1 %11, label %35, label %45
35: ; preds = %34
%36 = shl nuw nsw i64 %3, 3
call void @llvm.memset.p0.i64(ptr nonnull align 16 %4, i8 0, i64 %36, i1 false), !tbaa !15
br label %45
37: ; preds = %32, %37
%38 = phi i64 [ %40, %37 ], [ %33, %32 ]
%39 = getelementptr i64, ptr %21, i64 %38
store i64 %20, ptr %39, align 8, !tbaa !15
%40 = add nuw nsw i64 %38, 1
%41 = icmp eq i64 %40, %3
br i1 %41, label %42, label %37, !llvm.loop !20
42: ; preds = %37, %31
%43 = add nuw nsw i64 %19, 64
%44 = icmp ult i64 %43, %14
br i1 %44, label %18, label %34, !llvm.loop !21
45: ; preds = %2, %35, %34
%46 = getelementptr inbounds %struct.hpsb_host, ptr %0, i64 0, i32 1
%47 = load ptr, ptr %46, align 8, !tbaa !22
%48 = load i32, ptr %0, align 8, !tbaa !23
%49 = sext i32 %48 to i64
%50 = getelementptr i32, ptr %47, i64 %49
%51 = getelementptr i32, ptr %50, i64 -1
%52 = icmp ult ptr %51, %47
br i1 %52, label %55, label %53
53: ; preds = %45
%54 = add nsw i32 %1, -1
br label %61
55: ; preds = %167, %45
br i1 %11, label %56, label %350
56: ; preds = %55
%57 = and i64 %3, 3
%58 = icmp ult i32 %1, 4
br i1 %58, label %171, label %59
59: ; preds = %56
%60 = and i64 %3, 2147483644
br label %186
61: ; preds = %53, %167
%62 = phi i32 [ %168, %167 ], [ %54, %53 ]
%63 = phi ptr [ %169, %167 ], [ %51, %53 ]
%64 = getelementptr inbounds %struct.selfid, ptr %63, i64 0, i32 4
%65 = load i64, ptr %64, align 8, !tbaa !15
%66 = icmp eq i64 %65, 0
%67 = load i64, ptr %63, align 8, !tbaa !15
%68 = load i64, ptr @SELFID_PORT_CHILD, align 8, !tbaa !15
%69 = icmp eq i64 %67, %68
br i1 %66, label %137, label %70
70: ; preds = %61
br i1 %69, label %71, label %76
71: ; preds = %70
%72 = sext i32 %62 to i64
%73 = getelementptr inbounds i64, ptr %4, i64 %72
%74 = load i64, ptr %73, align 8, !tbaa !15
%75 = add nsw i64 %74, 1
store i64 %75, ptr %73, align 8, !tbaa !15
br label %76
76: ; preds = %71, %70
%77 = getelementptr inbounds %struct.ext_selfid, ptr %63, i64 0, i32 1
%78 = load i64, ptr %77, align 8, !tbaa !24
%79 = icmp eq i64 %78, %68
br i1 %79, label %80, label %85
80: ; preds = %76
%81 = sext i32 %62 to i64
%82 = getelementptr inbounds i64, ptr %4, i64 %81
%83 = load i64, ptr %82, align 8, !tbaa !15
%84 = add nsw i64 %83, 1
store i64 %84, ptr %82, align 8, !tbaa !15
br label %85
85: ; preds = %80, %76
%86 = getelementptr inbounds %struct.ext_selfid, ptr %63, i64 0, i32 2
%87 = load i64, ptr %86, align 8, !tbaa !26
%88 = icmp eq i64 %87, %68
br i1 %88, label %89, label %94
89: ; preds = %85
%90 = sext i32 %62 to i64
%91 = getelementptr inbounds i64, ptr %4, i64 %90
%92 = load i64, ptr %91, align 8, !tbaa !15
%93 = add nsw i64 %92, 1
store i64 %93, ptr %91, align 8, !tbaa !15
br label %94
94: ; preds = %89, %85
%95 = getelementptr inbounds %struct.ext_selfid, ptr %63, i64 0, i32 3
%96 = load i64, ptr %95, align 8, !tbaa !27
%97 = icmp eq i64 %96, %68
br i1 %97, label %98, label %103
98: ; preds = %94
%99 = sext i32 %62 to i64
%100 = getelementptr inbounds i64, ptr %4, i64 %99
%101 = load i64, ptr %100, align 8, !tbaa !15
%102 = add nsw i64 %101, 1
store i64 %102, ptr %100, align 8, !tbaa !15
br label %103
103: ; preds = %98, %94
%104 = icmp eq i64 %65, %68
br i1 %104, label %105, label %110
105: ; preds = %103
%106 = sext i32 %62 to i64
%107 = getelementptr inbounds i64, ptr %4, i64 %106
%108 = load i64, ptr %107, align 8, !tbaa !15
%109 = add nsw i64 %108, 1
store i64 %109, ptr %107, align 8, !tbaa !15
br label %110
110: ; preds = %105, %103
%111 = getelementptr inbounds %struct.ext_selfid, ptr %63, i64 0, i32 5
%112 = load i64, ptr %111, align 8, !tbaa !28
%113 = icmp eq i64 %112, %68
br i1 %113, label %114, label %119
114: ; preds = %110
%115 = sext i32 %62 to i64
%116 = getelementptr inbounds i64, ptr %4, i64 %115
%117 = load i64, ptr %116, align 8, !tbaa !15
%118 = add nsw i64 %117, 1
store i64 %118, ptr %116, align 8, !tbaa !15
br label %119
119: ; preds = %114, %110
%120 = getelementptr inbounds %struct.ext_selfid, ptr %63, i64 0, i32 6
%121 = load i64, ptr %120, align 8, !tbaa !29
%122 = icmp eq i64 %121, %68
br i1 %122, label %123, label %128
123: ; preds = %119
%124 = sext i32 %62 to i64
%125 = getelementptr inbounds i64, ptr %4, i64 %124
%126 = load i64, ptr %125, align 8, !tbaa !15
%127 = add nsw i64 %126, 1
store i64 %127, ptr %125, align 8, !tbaa !15
br label %128
128: ; preds = %123, %119
%129 = getelementptr inbounds %struct.ext_selfid, ptr %63, i64 0, i32 7
%130 = load i64, ptr %129, align 8, !tbaa !30
%131 = icmp eq i64 %130, %68
br i1 %131, label %132, label %167
132: ; preds = %128
%133 = sext i32 %62 to i64
%134 = getelementptr inbounds i64, ptr %4, i64 %133
%135 = load i64, ptr %134, align 8, !tbaa !15
%136 = add nsw i64 %135, 1
store i64 %136, ptr %134, align 8, !tbaa !15
br label %167
137: ; preds = %61
br i1 %69, label %138, label %143
138: ; preds = %137
%139 = sext i32 %62 to i64
%140 = getelementptr inbounds i64, ptr %4, i64 %139
%141 = load i64, ptr %140, align 8, !tbaa !15
%142 = add nsw i64 %141, 1
store i64 %142, ptr %140, align 8, !tbaa !15
br label %143
143: ; preds = %138, %137
%144 = getelementptr inbounds %struct.selfid, ptr %63, i64 0, i32 1
%145 = load i64, ptr %144, align 8, !tbaa !31
%146 = icmp eq i64 %145, %68
br i1 %146, label %147, label %152
147: ; preds = %143
%148 = sext i32 %62 to i64
%149 = getelementptr inbounds i64, ptr %4, i64 %148
%150 = load i64, ptr %149, align 8, !tbaa !15
%151 = add nsw i64 %150, 1
store i64 %151, ptr %149, align 8, !tbaa !15
br label %152
152: ; preds = %147, %143
%153 = getelementptr inbounds %struct.selfid, ptr %63, i64 0, i32 2
%154 = load i64, ptr %153, align 8, !tbaa !33
%155 = icmp eq i64 %154, %68
%156 = sext i32 %62 to i64
br i1 %155, label %157, label %161
157: ; preds = %152
%158 = getelementptr inbounds i64, ptr %4, i64 %156
%159 = load i64, ptr %158, align 8, !tbaa !15
%160 = add nsw i64 %159, 1
store i64 %160, ptr %158, align 8, !tbaa !15
br label %161
161: ; preds = %152, %157
%162 = getelementptr inbounds %struct.selfid, ptr %63, i64 0, i32 3
%163 = load i64, ptr %162, align 8, !tbaa !34
%164 = getelementptr inbounds i64, ptr %8, i64 %156
%165 = tail call i64 @llvm.smin.i64(i64 %163, i64 %10)
store i64 %165, ptr %164, align 8, !tbaa !15
%166 = add nsw i32 %62, -1
br label %167
167: ; preds = %161, %132, %128
%168 = phi i32 [ %62, %132 ], [ %62, %128 ], [ %166, %161 ]
%169 = getelementptr inbounds %struct.selfid, ptr %63, i64 -1
%170 = icmp ult ptr %169, %47
br i1 %170, label %55, label %61, !llvm.loop !35
171: ; preds = %186, %56
%172 = phi i64 [ 0, %56 ], [ %208, %186 ]
%173 = icmp eq i64 %57, 0
br i1 %173, label %184, label %174
174: ; preds = %171, %174
%175 = phi i64 [ %181, %174 ], [ %172, %171 ]
%176 = phi i64 [ %182, %174 ], [ 0, %171 ]
%177 = getelementptr inbounds i64, ptr %8, i64 %175
%178 = load i64, ptr %177, align 8, !tbaa !15
%179 = mul nuw nsw i64 %175, 65
%180 = getelementptr inbounds i64, ptr %6, i64 %179
store i64 %178, ptr %180, align 8, !tbaa !15
%181 = add nuw nsw i64 %175, 1
%182 = add i64 %176, 1
%183 = icmp eq i64 %182, %57
br i1 %183, label %184, label %174, !llvm.loop !36
184: ; preds = %174, %171
%185 = icmp eq i32 %1, 1
br i1 %185, label %211, label %214
186: ; preds = %186, %59
%187 = phi i64 [ 0, %59 ], [ %208, %186 ]
%188 = phi i64 [ 0, %59 ], [ %209, %186 ]
%189 = getelementptr inbounds i64, ptr %8, i64 %187
%190 = load i64, ptr %189, align 8, !tbaa !15
%191 = mul nuw nsw i64 %187, 65
%192 = getelementptr inbounds i64, ptr %6, i64 %191
store i64 %190, ptr %192, align 8, !tbaa !15
%193 = or disjoint i64 %187, 1
%194 = getelementptr inbounds i64, ptr %8, i64 %193
%195 = load i64, ptr %194, align 8, !tbaa !15
%196 = mul nuw nsw i64 %193, 65
%197 = getelementptr inbounds i64, ptr %6, i64 %196
store i64 %195, ptr %197, align 8, !tbaa !15
%198 = or disjoint i64 %187, 2
%199 = getelementptr inbounds i64, ptr %8, i64 %198
%200 = load i64, ptr %199, align 8, !tbaa !15
%201 = mul nuw nsw i64 %198, 65
%202 = getelementptr inbounds i64, ptr %6, i64 %201
store i64 %200, ptr %202, align 8, !tbaa !15
%203 = or disjoint i64 %187, 3
%204 = getelementptr inbounds i64, ptr %8, i64 %203
%205 = load i64, ptr %204, align 8, !tbaa !15
%206 = mul nuw nsw i64 %203, 65
%207 = getelementptr inbounds i64, ptr %6, i64 %206
store i64 %205, ptr %207, align 8, !tbaa !15
%208 = add nuw nsw i64 %187, 4
%209 = add i64 %188, 4
%210 = icmp eq i64 %209, %60
br i1 %210, label %171, label %186, !llvm.loop !38
211: ; preds = %242, %184
br i1 %11, label %212, label %350
212: ; preds = %211
%213 = zext nneg i32 %1 to i64
br label %245
214: ; preds = %184, %242
%215 = phi i64 [ %243, %242 ], [ 1, %184 ]
%216 = getelementptr inbounds i64, ptr %4, i64 %215
%217 = load i64, ptr %216, align 8, !tbaa !15
%218 = trunc i64 %217 to i32
%219 = icmp sgt i32 %218, 0
br i1 %219, label %220, label %242
220: ; preds = %214
%221 = getelementptr inbounds i64, ptr %8, i64 %215
%222 = trunc i64 %215 to i32
%223 = add i32 %222, -1
br label %224
224: ; preds = %220, %224
%225 = phi i64 [ %217, %220 ], [ %231, %224 ]
%226 = phi i32 [ %223, %220 ], [ %239, %224 ]
%227 = phi i32 [ %218, %220 ], [ %240, %224 ]
%228 = sext i32 %226 to i64
%229 = getelementptr inbounds i64, ptr %4, i64 %228
%230 = load i64, ptr %229, align 8, !tbaa !15
%231 = add nsw i64 %225, %230
store i64 %231, ptr %216, align 8, !tbaa !15
%232 = getelementptr inbounds i64, ptr %8, i64 %228
%233 = load i64, ptr %232, align 8, !tbaa !15
%234 = load i64, ptr %221, align 8, !tbaa !15
%235 = tail call i64 @min(i64 noundef %233, i64 noundef %234) #4
store i64 %235, ptr %232, align 8, !tbaa !15
%236 = load i64, ptr %229, align 8, !tbaa !15
%237 = trunc i64 %236 to i32
%238 = xor i32 %237, -1
%239 = add i32 %226, %238
%240 = add nsw i32 %227, -1
%241 = icmp ugt i32 %227, 1
br i1 %241, label %224, label %242, !llvm.loop !39
242: ; preds = %224, %214
%243 = add nuw nsw i64 %215, 1
%244 = icmp eq i64 %243, %3
br i1 %244, label %211, label %214, !llvm.loop !40
245: ; preds = %212, %306
%246 = phi i64 [ 0, %212 ], [ %307, %306 ]
%247 = phi i64 [ 1, %212 ], [ %308, %306 ]
%248 = trunc i64 %247 to i32
%249 = getelementptr inbounds i64, ptr %4, i64 %246
%250 = load i64, ptr %249, align 8, !tbaa !15
%251 = sub i64 %246, %250
%252 = shl i64 %251, 32
%253 = ashr exact i64 %252, 32
%254 = icmp sgt i64 %253, %246
br i1 %254, label %255, label %257
255: ; preds = %245
%256 = add nuw nsw i64 %246, 1
br label %306
257: ; preds = %245
%258 = sub nsw i64 %246, %250
%259 = icmp sgt i64 %258, 0
%260 = getelementptr inbounds i64, ptr %8, i64 %246
%261 = add nuw nsw i64 %246, 1
%262 = icmp slt i64 %261, %213
br label %263
263: ; preds = %257, %302
%264 = phi i64 [ %253, %257 ], [ %303, %302 ]
br i1 %259, label %265, label %271
265: ; preds = %263
%266 = trunc i64 %264 to i32
%267 = shl nsw i32 %266, 6
%268 = sext i32 %267 to i64
%269 = getelementptr i64, ptr %6, i64 %268
%270 = getelementptr i64, ptr %6, i64 %264
br label %278
271: ; preds = %278, %263
br i1 %262, label %272, label %302
272: ; preds = %271
%273 = trunc i64 %264 to i32
%274 = shl nsw i32 %273, 6
%275 = sext i32 %274 to i64
%276 = getelementptr i64, ptr %6, i64 %275
%277 = getelementptr i64, ptr %6, i64 %264
br label %290
278: ; preds = %265, %278
%279 = phi i64 [ 0, %265 ], [ %288, %278 ]
%280 = getelementptr i64, ptr %269, i64 %279
%281 = load i64, ptr %280, align 8, !tbaa !15
%282 = load i64, ptr %260, align 8, !tbaa !15
%283 = tail call i64 @min(i64 noundef %281, i64 noundef %282) #4
store i64 %283, ptr %280, align 8, !tbaa !15
%284 = trunc i64 %279 to i32
%285 = shl nsw i32 %284, 6
%286 = sext i32 %285 to i64
%287 = getelementptr i64, ptr %270, i64 %286
store i64 %283, ptr %287, align 8, !tbaa !15
%288 = add nuw nsw i64 %279, 1
%289 = icmp sgt i64 %258, %288
br i1 %289, label %278, label %271, !llvm.loop !41
290: ; preds = %272, %290
%291 = phi i64 [ %247, %272 ], [ %300, %290 ]
%292 = getelementptr i64, ptr %276, i64 %291
%293 = load i64, ptr %292, align 8, !tbaa !15
%294 = load i64, ptr %260, align 8, !tbaa !15
%295 = tail call i64 @min(i64 noundef %293, i64 noundef %294) #4
store i64 %295, ptr %292, align 8, !tbaa !15
%296 = trunc i64 %291 to i32
%297 = shl nsw i32 %296, 6
%298 = sext i32 %297 to i64
%299 = getelementptr i64, ptr %277, i64 %298
store i64 %295, ptr %299, align 8, !tbaa !15
%300 = add nuw nsw i64 %291, 1
%301 = icmp eq i64 %300, %3
br i1 %301, label %302, label %290, !llvm.loop !42
302: ; preds = %290, %271
%303 = add nsw i64 %264, 1
%304 = trunc i64 %303 to i32
%305 = icmp eq i32 %304, %248
br i1 %305, label %306, label %263, !llvm.loop !43
306: ; preds = %302, %255
%307 = phi i64 [ %256, %255 ], [ %261, %302 ]
%308 = add nuw nsw i64 %247, 1
%309 = icmp eq i64 %307, %3
br i1 %309, label %310, label %245, !llvm.loop !44
310: ; preds = %306
%311 = load i64, ptr @SELFID_SPEED_UNKNOWN, align 8, !tbaa !15
%312 = icmp sgt i64 %10, %311
%313 = and i1 %312, %11
br i1 %313, label %314, label %350
314: ; preds = %310
%315 = and i64 %3, 1
%316 = icmp eq i32 %1, 1
br i1 %316, label %341, label %317
317: ; preds = %314
%318 = and i64 %3, 2147483646
br label %319
319: ; preds = %336, %317
%320 = phi i64 [ %311, %317 ], [ %337, %336 ]
%321 = phi i64 [ 0, %317 ], [ %338, %336 ]
%322 = phi i64 [ 0, %317 ], [ %339, %336 ]
%323 = getelementptr inbounds i64, ptr %8, i64 %321
%324 = load i64, ptr %323, align 8, !tbaa !15
%325 = icmp eq i64 %324, %320
br i1 %325, label %326, label %328
326: ; preds = %319
store i64 %10, ptr %323, align 8, !tbaa !15
%327 = load i64, ptr @SELFID_SPEED_UNKNOWN, align 8, !tbaa !15
br label %328
328: ; preds = %319, %326
%329 = phi i64 [ %320, %319 ], [ %327, %326 ]
%330 = or disjoint i64 %321, 1
%331 = getelementptr inbounds i64, ptr %8, i64 %330
%332 = load i64, ptr %331, align 8, !tbaa !15
%333 = icmp eq i64 %332, %329
br i1 %333, label %334, label %336
334: ; preds = %328
store i64 %10, ptr %331, align 8, !tbaa !15
%335 = load i64, ptr @SELFID_SPEED_UNKNOWN, align 8, !tbaa !15
br label %336
336: ; preds = %334, %328
%337 = phi i64 [ %329, %328 ], [ %335, %334 ]
%338 = add nuw nsw i64 %321, 2
%339 = add i64 %322, 2
%340 = icmp eq i64 %339, %318
br i1 %340, label %341, label %319, !llvm.loop !45
341: ; preds = %336, %314
%342 = phi i64 [ %311, %314 ], [ %337, %336 ]
%343 = phi i64 [ 0, %314 ], [ %338, %336 ]
%344 = icmp eq i64 %315, 0
br i1 %344, label %350, label %345
345: ; preds = %341
%346 = getelementptr inbounds i64, ptr %8, i64 %343
%347 = load i64, ptr %346, align 8, !tbaa !15
%348 = icmp eq i64 %347, %342
br i1 %348, label %349, label %350
349: ; preds = %345
store i64 %10, ptr %346, align 8, !tbaa !15
br label %350
350: ; preds = %341, %349, %345, %55, %211, %310
ret void
}
declare i64 @min(i64 noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 32}
!6 = !{!"hpsb_host", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !12, i64 16}
!15 = !{!12, !12, i64 0}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !19, !18}
!21 = distinct !{!21, !17}
!22 = !{!6, !10, i64 8}
!23 = !{!6, !7, i64 0}
!24 = !{!25, !12, i64 8}
!25 = !{!"ext_selfid", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56}
!26 = !{!25, !12, i64 16}
!27 = !{!25, !12, i64 24}
!28 = !{!25, !12, i64 40}
!29 = !{!25, !12, i64 48}
!30 = !{!25, !12, i64 56}
!31 = !{!32, !12, i64 8}
!32 = !{!"selfid", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!33 = !{!32, !12, i64 16}
!34 = !{!32, !12, i64 24}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.unroll.disable"}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}
!43 = distinct !{!43, !17}
!44 = distinct !{!44, !17}
!45 = distinct !{!45, !17}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/ieee1394/extr_ieee1394_core.c_build_speed_map.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/ieee1394/extr_ieee1394_core.c_build_speed_map.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IEEE1394_SPEED_MAX = common local_unnamed_addr global i64 0, align 8
@SELFID_PORT_CHILD = common local_unnamed_addr global i64 0, align 8
@SELFID_SPEED_UNKNOWN = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @build_speed_map], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @build_speed_map(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = zext i32 %1 to i64
%4 = alloca i64, i64 %3, align 8
%5 = getelementptr inbounds i8, ptr %0, i64 32
%6 = load ptr, ptr %5, align 8, !tbaa !6
%7 = getelementptr inbounds i8, ptr %0, i64 24
%8 = load ptr, ptr %7, align 8, !tbaa !14
%9 = getelementptr inbounds i8, ptr %0, i64 16
%10 = load i64, ptr %9, align 8, !tbaa !15
%11 = icmp sgt i32 %1, 0
br i1 %11, label %12, label %46
12: ; preds = %2
%13 = shl nsw i32 %1, 6
%14 = zext nneg i32 %13 to i64
%15 = icmp ult i32 %1, 8
%16 = and i64 %3, 2147483640
%17 = icmp eq i64 %16, %3
br label %18
18: ; preds = %43, %12
%19 = phi i64 [ 0, %12 ], [ %44, %43 ]
%20 = load i64, ptr @IEEE1394_SPEED_MAX, align 8, !tbaa !16
%21 = getelementptr inbounds i64, ptr %6, i64 %19
br i1 %15, label %22, label %24
22: ; preds = %35, %18
%23 = phi i64 [ 0, %18 ], [ %16, %35 ]
br label %38
24: ; preds = %18
%25 = insertelement <2 x i64> poison, i64 %20, i64 0
%26 = shufflevector <2 x i64> %25, <2 x i64> poison, <2 x i32> zeroinitializer
br label %27
27: ; preds = %27, %24
%28 = phi i64 [ 0, %24 ], [ %33, %27 ]
%29 = getelementptr inbounds i64, ptr %21, i64 %28
%30 = getelementptr inbounds i8, ptr %29, i64 16
%31 = getelementptr inbounds i8, ptr %29, i64 32
%32 = getelementptr inbounds i8, ptr %29, i64 48
store <2 x i64> %26, ptr %29, align 8, !tbaa !16
store <2 x i64> %26, ptr %30, align 8, !tbaa !16
store <2 x i64> %26, ptr %31, align 8, !tbaa !16
store <2 x i64> %26, ptr %32, align 8, !tbaa !16
%33 = add nuw i64 %28, 8
%34 = icmp eq i64 %33, %16
br i1 %34, label %35, label %27, !llvm.loop !17
35: ; preds = %27
br i1 %17, label %43, label %22
36: ; preds = %43
%37 = shl nuw nsw i64 %3, 3
call void @llvm.memset.p0.i64(ptr nonnull align 8 %4, i8 0, i64 %37, i1 false), !tbaa !16
br label %46
38: ; preds = %22, %38
%39 = phi i64 [ %41, %38 ], [ %23, %22 ]
%40 = getelementptr inbounds i64, ptr %21, i64 %39
store i64 %20, ptr %40, align 8, !tbaa !16
%41 = add nuw nsw i64 %39, 1
%42 = icmp eq i64 %41, %3
br i1 %42, label %43, label %38, !llvm.loop !21
43: ; preds = %38, %35
%44 = add nuw nsw i64 %19, 64
%45 = icmp ult i64 %44, %14
br i1 %45, label %18, label %36, !llvm.loop !22
46: ; preds = %2, %36
%47 = getelementptr inbounds i8, ptr %0, i64 8
%48 = load ptr, ptr %47, align 8, !tbaa !23
%49 = load i32, ptr %0, align 8, !tbaa !24
%50 = sext i32 %49 to i64
%51 = getelementptr i32, ptr %48, i64 %50
%52 = getelementptr i8, ptr %51, i64 -4
%53 = icmp ult ptr %52, %48
br i1 %53, label %56, label %54
54: ; preds = %46
%55 = add nsw i32 %1, -1
br label %57
56: ; preds = %163, %46
br i1 %11, label %169, label %280
57: ; preds = %54, %163
%58 = phi i32 [ %164, %163 ], [ %55, %54 ]
%59 = phi ptr [ %165, %163 ], [ %52, %54 ]
%60 = getelementptr inbounds i8, ptr %59, i64 32
%61 = load i64, ptr %60, align 8, !tbaa !16
%62 = icmp eq i64 %61, 0
%63 = load i64, ptr %59, align 8, !tbaa !16
%64 = load i64, ptr @SELFID_PORT_CHILD, align 8, !tbaa !16
%65 = icmp eq i64 %63, %64
br i1 %62, label %133, label %66
66: ; preds = %57
br i1 %65, label %67, label %72
67: ; preds = %66
%68 = sext i32 %58 to i64
%69 = getelementptr inbounds i64, ptr %4, i64 %68
%70 = load i64, ptr %69, align 8, !tbaa !16
%71 = add nsw i64 %70, 1
store i64 %71, ptr %69, align 8, !tbaa !16
br label %72
72: ; preds = %67, %66
%73 = getelementptr inbounds i8, ptr %59, i64 8
%74 = load i64, ptr %73, align 8, !tbaa !25
%75 = icmp eq i64 %74, %64
br i1 %75, label %76, label %81
76: ; preds = %72
%77 = sext i32 %58 to i64
%78 = getelementptr inbounds i64, ptr %4, i64 %77
%79 = load i64, ptr %78, align 8, !tbaa !16
%80 = add nsw i64 %79, 1
store i64 %80, ptr %78, align 8, !tbaa !16
br label %81
81: ; preds = %76, %72
%82 = getelementptr inbounds i8, ptr %59, i64 16
%83 = load i64, ptr %82, align 8, !tbaa !27
%84 = icmp eq i64 %83, %64
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = sext i32 %58 to i64
%87 = getelementptr inbounds i64, ptr %4, i64 %86
%88 = load i64, ptr %87, align 8, !tbaa !16
%89 = add nsw i64 %88, 1
store i64 %89, ptr %87, align 8, !tbaa !16
br label %90
90: ; preds = %85, %81
%91 = getelementptr inbounds i8, ptr %59, i64 24
%92 = load i64, ptr %91, align 8, !tbaa !28
%93 = icmp eq i64 %92, %64
br i1 %93, label %94, label %99
94: ; preds = %90
%95 = sext i32 %58 to i64
%96 = getelementptr inbounds i64, ptr %4, i64 %95
%97 = load i64, ptr %96, align 8, !tbaa !16
%98 = add nsw i64 %97, 1
store i64 %98, ptr %96, align 8, !tbaa !16
br label %99
99: ; preds = %94, %90
%100 = icmp eq i64 %61, %64
br i1 %100, label %101, label %106
101: ; preds = %99
%102 = sext i32 %58 to i64
%103 = getelementptr inbounds i64, ptr %4, i64 %102
%104 = load i64, ptr %103, align 8, !tbaa !16
%105 = add nsw i64 %104, 1
store i64 %105, ptr %103, align 8, !tbaa !16
br label %106
106: ; preds = %101, %99
%107 = getelementptr inbounds i8, ptr %59, i64 40
%108 = load i64, ptr %107, align 8, !tbaa !29
%109 = icmp eq i64 %108, %64
br i1 %109, label %110, label %115
110: ; preds = %106
%111 = sext i32 %58 to i64
%112 = getelementptr inbounds i64, ptr %4, i64 %111
%113 = load i64, ptr %112, align 8, !tbaa !16
%114 = add nsw i64 %113, 1
store i64 %114, ptr %112, align 8, !tbaa !16
br label %115
115: ; preds = %110, %106
%116 = getelementptr inbounds i8, ptr %59, i64 48
%117 = load i64, ptr %116, align 8, !tbaa !30
%118 = icmp eq i64 %117, %64
br i1 %118, label %119, label %124
119: ; preds = %115
%120 = sext i32 %58 to i64
%121 = getelementptr inbounds i64, ptr %4, i64 %120
%122 = load i64, ptr %121, align 8, !tbaa !16
%123 = add nsw i64 %122, 1
store i64 %123, ptr %121, align 8, !tbaa !16
br label %124
124: ; preds = %119, %115
%125 = getelementptr inbounds i8, ptr %59, i64 56
%126 = load i64, ptr %125, align 8, !tbaa !31
%127 = icmp eq i64 %126, %64
br i1 %127, label %128, label %163
128: ; preds = %124
%129 = sext i32 %58 to i64
%130 = getelementptr inbounds i64, ptr %4, i64 %129
%131 = load i64, ptr %130, align 8, !tbaa !16
%132 = add nsw i64 %131, 1
store i64 %132, ptr %130, align 8, !tbaa !16
br label %163
133: ; preds = %57
br i1 %65, label %134, label %139
134: ; preds = %133
%135 = sext i32 %58 to i64
%136 = getelementptr inbounds i64, ptr %4, i64 %135
%137 = load i64, ptr %136, align 8, !tbaa !16
%138 = add nsw i64 %137, 1
store i64 %138, ptr %136, align 8, !tbaa !16
br label %139
139: ; preds = %134, %133
%140 = getelementptr inbounds i8, ptr %59, i64 8
%141 = load i64, ptr %140, align 8, !tbaa !32
%142 = icmp eq i64 %141, %64
br i1 %142, label %143, label %148
143: ; preds = %139
%144 = sext i32 %58 to i64
%145 = getelementptr inbounds i64, ptr %4, i64 %144
%146 = load i64, ptr %145, align 8, !tbaa !16
%147 = add nsw i64 %146, 1
store i64 %147, ptr %145, align 8, !tbaa !16
br label %148
148: ; preds = %143, %139
%149 = getelementptr inbounds i8, ptr %59, i64 16
%150 = load i64, ptr %149, align 8, !tbaa !34
%151 = icmp eq i64 %150, %64
%152 = sext i32 %58 to i64
br i1 %151, label %153, label %157
153: ; preds = %148
%154 = getelementptr inbounds i64, ptr %4, i64 %152
%155 = load i64, ptr %154, align 8, !tbaa !16
%156 = add nsw i64 %155, 1
store i64 %156, ptr %154, align 8, !tbaa !16
br label %157
157: ; preds = %148, %153
%158 = getelementptr inbounds i8, ptr %59, i64 24
%159 = load i64, ptr %158, align 8, !tbaa !35
%160 = getelementptr inbounds i64, ptr %8, i64 %152
%161 = tail call i64 @llvm.smin.i64(i64 %159, i64 %10)
store i64 %161, ptr %160, align 8, !tbaa !16
%162 = add nsw i32 %58, -1
br label %163
163: ; preds = %157, %128, %124
%164 = phi i32 [ %58, %128 ], [ %58, %124 ], [ %162, %157 ]
%165 = getelementptr inbounds i8, ptr %59, i64 -40
%166 = icmp ult ptr %165, %48
br i1 %166, label %56, label %57, !llvm.loop !36
167: ; preds = %169
%168 = icmp eq i32 %1, 1
br i1 %168, label %177, label %178
169: ; preds = %56, %169
%170 = phi i64 [ %175, %169 ], [ 0, %56 ]
%171 = getelementptr inbounds i64, ptr %8, i64 %170
%172 = load i64, ptr %171, align 8, !tbaa !16
%173 = mul i64 %170, 520
%174 = getelementptr inbounds i8, ptr %6, i64 %173
store i64 %172, ptr %174, align 8, !tbaa !16
%175 = add nuw nsw i64 %170, 1
%176 = icmp eq i64 %175, %3
br i1 %176, label %167, label %169, !llvm.loop !37
177: ; preds = %206, %167
br i1 %11, label %209, label %280
178: ; preds = %167, %206
%179 = phi i64 [ %207, %206 ], [ 1, %167 ]
%180 = getelementptr inbounds i64, ptr %4, i64 %179
%181 = load i64, ptr %180, align 8, !tbaa !16
%182 = trunc i64 %181 to i32
%183 = icmp sgt i32 %182, 0
br i1 %183, label %184, label %206
184: ; preds = %178
%185 = getelementptr inbounds i64, ptr %8, i64 %179
%186 = trunc i64 %179 to i32
%187 = add i32 %186, -1
br label %188
188: ; preds = %184, %188
%189 = phi i64 [ %181, %184 ], [ %195, %188 ]
%190 = phi i32 [ %187, %184 ], [ %203, %188 ]
%191 = phi i32 [ %182, %184 ], [ %204, %188 ]
%192 = sext i32 %190 to i64
%193 = getelementptr inbounds i64, ptr %4, i64 %192
%194 = load i64, ptr %193, align 8, !tbaa !16
%195 = add nsw i64 %189, %194
store i64 %195, ptr %180, align 8, !tbaa !16
%196 = getelementptr inbounds i64, ptr %8, i64 %192
%197 = load i64, ptr %196, align 8, !tbaa !16
%198 = load i64, ptr %185, align 8, !tbaa !16
%199 = tail call i64 @min(i64 noundef %197, i64 noundef %198) #4
store i64 %199, ptr %196, align 8, !tbaa !16
%200 = load i64, ptr %193, align 8, !tbaa !16
%201 = trunc i64 %200 to i32
%202 = xor i32 %201, -1
%203 = add i32 %190, %202
%204 = add nsw i32 %191, -1
%205 = icmp ugt i32 %191, 1
br i1 %205, label %188, label %206, !llvm.loop !38
206: ; preds = %188, %178
%207 = add nuw nsw i64 %179, 1
%208 = icmp eq i64 %207, %3
br i1 %208, label %177, label %178, !llvm.loop !39
209: ; preds = %177, %261
%210 = phi i64 [ %263, %261 ], [ 1, %177 ]
%211 = phi i64 [ %262, %261 ], [ 0, %177 ]
%212 = trunc i64 %210 to i32
%213 = getelementptr inbounds i64, ptr %4, i64 %211
%214 = load i64, ptr %213, align 8, !tbaa !16
%215 = sub i64 %211, %214
%216 = shl i64 %215, 32
%217 = ashr exact i64 %216, 32
%218 = icmp sgt i64 %217, %211
br i1 %218, label %219, label %221
219: ; preds = %209
%220 = add nuw nsw i64 %211, 1
br label %261
221: ; preds = %209
%222 = icmp sgt i64 %215, 0
%223 = getelementptr inbounds i64, ptr %8, i64 %211
%224 = add nuw nsw i64 %211, 1
%225 = icmp slt i64 %224, %3
br label %226
226: ; preds = %221, %257
%227 = phi i64 [ %217, %221 ], [ %258, %257 ]
br i1 %222, label %228, label %232
228: ; preds = %226
%229 = shl i64 %227, 9
%230 = getelementptr i8, ptr %6, i64 %229
%231 = getelementptr i64, ptr %6, i64 %227
br label %237
232: ; preds = %237, %226
br i1 %225, label %233, label %257
233: ; preds = %232
%234 = shl i64 %227, 9
%235 = getelementptr i8, ptr %6, i64 %234
%236 = getelementptr i64, ptr %6, i64 %227
br label %247
237: ; preds = %228, %237
%238 = phi i64 [ 0, %228 ], [ %245, %237 ]
%239 = getelementptr i64, ptr %230, i64 %238
%240 = load i64, ptr %239, align 8, !tbaa !16
%241 = load i64, ptr %223, align 8, !tbaa !16
%242 = tail call i64 @min(i64 noundef %240, i64 noundef %241) #4
store i64 %242, ptr %239, align 8, !tbaa !16
%243 = shl i64 %238, 9
%244 = getelementptr i8, ptr %231, i64 %243
store i64 %242, ptr %244, align 8, !tbaa !16
%245 = add nuw nsw i64 %238, 1
%246 = icmp eq i64 %245, %215
br i1 %246, label %232, label %237, !llvm.loop !40
247: ; preds = %233, %247
%248 = phi i64 [ %210, %233 ], [ %255, %247 ]
%249 = getelementptr i64, ptr %235, i64 %248
%250 = load i64, ptr %249, align 8, !tbaa !16
%251 = load i64, ptr %223, align 8, !tbaa !16
%252 = tail call i64 @min(i64 noundef %250, i64 noundef %251) #4
store i64 %252, ptr %249, align 8, !tbaa !16
%253 = shl i64 %248, 9
%254 = getelementptr i8, ptr %236, i64 %253
store i64 %252, ptr %254, align 8, !tbaa !16
%255 = add nuw nsw i64 %248, 1
%256 = icmp eq i64 %255, %3
br i1 %256, label %257, label %247, !llvm.loop !41
257: ; preds = %247, %232
%258 = add nsw i64 %227, 1
%259 = trunc i64 %258 to i32
%260 = icmp eq i32 %259, %212
br i1 %260, label %261, label %226, !llvm.loop !42
261: ; preds = %257, %219
%262 = phi i64 [ %220, %219 ], [ %224, %257 ]
%263 = add nuw nsw i64 %210, 1
%264 = icmp eq i64 %262, %3
br i1 %264, label %265, label %209, !llvm.loop !43
265: ; preds = %261
%266 = load i64, ptr @SELFID_SPEED_UNKNOWN, align 8, !tbaa !16
%267 = icmp sgt i64 %10, %266
br i1 %267, label %268, label %280
268: ; preds = %265, %276
%269 = phi i64 [ %277, %276 ], [ %266, %265 ]
%270 = phi i64 [ %278, %276 ], [ 0, %265 ]
%271 = getelementptr inbounds i64, ptr %8, i64 %270
%272 = load i64, ptr %271, align 8, !tbaa !16
%273 = icmp eq i64 %272, %269
br i1 %273, label %274, label %276
274: ; preds = %268
store i64 %10, ptr %271, align 8, !tbaa !16
%275 = load i64, ptr @SELFID_SPEED_UNKNOWN, align 8, !tbaa !16
br label %276
276: ; preds = %268, %274
%277 = phi i64 [ %269, %268 ], [ %275, %274 ]
%278 = add nuw nsw i64 %270, 1
%279 = icmp eq i64 %278, %3
br i1 %279, label %280, label %268, !llvm.loop !44
280: ; preds = %276, %56, %177, %265
ret void
}
declare i64 @min(i64 noundef, i64 noundef) local_unnamed_addr #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 32}
!7 = !{!"hpsb_host", !8, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !11, i64 32}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0}
!13 = !{!"long", !9, i64 0}
!14 = !{!7, !11, i64 24}
!15 = !{!7, !13, i64 16}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !20, !19}
!22 = distinct !{!22, !18}
!23 = !{!7, !11, i64 8}
!24 = !{!7, !8, i64 0}
!25 = !{!26, !13, i64 8}
!26 = !{!"ext_selfid", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56}
!27 = !{!26, !13, i64 16}
!28 = !{!26, !13, i64 24}
!29 = !{!26, !13, i64 40}
!30 = !{!26, !13, i64 48}
!31 = !{!26, !13, i64 56}
!32 = !{!33, !13, i64 8}
!33 = !{!"selfid", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!34 = !{!33, !13, i64 16}
!35 = !{!33, !13, i64 24}
!36 = distinct !{!36, !18}
!37 = distinct !{!37, !18}
!38 = distinct !{!38, !18}
!39 = distinct !{!39, !18}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !18}
!42 = distinct !{!42, !18}
!43 = distinct !{!43, !18}
!44 = distinct !{!44, !18}
|
fastsocket_kernel_drivers_ieee1394_extr_ieee1394_core.c_build_speed_map
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/i915/extr_i915_dma.c_i915_kernel_lost_context.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/i915/extr_i915_dma.c_i915_kernel_lost_context.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.drm_device = type { ptr, ptr }
%struct.intel_ring_buffer = type { i32, i32, i64, i64 }
@DRIVER_MODESET = dso_local local_unnamed_addr global i32 0, align 4
@HEAD_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@TAIL_ADDR = dso_local local_unnamed_addr global i32 0, align 4
@I915_RING_FREE_SPACE = dso_local local_unnamed_addr global i64 0, align 8
@I915_BOX_RING_EMPTY = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @i915_kernel_lost_context(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.drm_device, ptr %0, i64 0, i32 1
%3 = load ptr, ptr %2, align 8, !tbaa !5
%4 = tail call ptr @LP_RING(ptr noundef %3) #2
%5 = load i32, ptr @DRIVER_MODESET, align 4, !tbaa !10
%6 = tail call i64 @drm_core_check_feature(ptr noundef %0, i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %42
8: ; preds = %1
%9 = tail call i32 @I915_READ_HEAD(ptr noundef %4) #2
%10 = load i32, ptr @HEAD_ADDR, align 4, !tbaa !10
%11 = and i32 %10, %9
store i32 %11, ptr %4, align 8, !tbaa !12
%12 = tail call i32 @I915_READ_TAIL(ptr noundef nonnull %4) #2
%13 = load i32, ptr @TAIL_ADDR, align 4, !tbaa !10
%14 = and i32 %13, %12
%15 = getelementptr inbounds %struct.intel_ring_buffer, ptr %4, i64 0, i32 1
store i32 %14, ptr %15, align 4, !tbaa !15
%16 = load i32, ptr %4, align 8, !tbaa !12
%17 = sext i32 %16 to i64
%18 = sext i32 %14 to i64
%19 = load i64, ptr @I915_RING_FREE_SPACE, align 8, !tbaa !16
%20 = add i64 %19, %18
%21 = sub i64 %17, %20
%22 = getelementptr inbounds %struct.intel_ring_buffer, ptr %4, i64 0, i32 2
store i64 %21, ptr %22, align 8, !tbaa !17
%23 = icmp slt i64 %21, 0
br i1 %23, label %24, label %28
24: ; preds = %8
%25 = getelementptr inbounds %struct.intel_ring_buffer, ptr %4, i64 0, i32 3
%26 = load i64, ptr %25, align 8, !tbaa !18
%27 = add nsw i64 %26, %21
store i64 %27, ptr %22, align 8, !tbaa !17
br label %28
28: ; preds = %24, %8
%29 = load ptr, ptr %0, align 8, !tbaa !19
%30 = load ptr, ptr %29, align 8, !tbaa !20
%31 = icmp ne ptr %30, null
%32 = icmp eq i32 %16, %14
%33 = and i1 %32, %31
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load ptr, ptr %30, align 8, !tbaa !22
%36 = load ptr, ptr %35, align 8, !tbaa !24
%37 = icmp eq ptr %36, null
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i32, ptr @I915_BOX_RING_EMPTY, align 4, !tbaa !10
%40 = load i32, ptr %36, align 4, !tbaa !26
%41 = or i32 %40, %39
store i32 %41, ptr %36, align 4, !tbaa !26
br label %42
42: ; preds = %34, %38, %28, %1
ret void
}
declare ptr @LP_RING(ptr noundef) local_unnamed_addr #1
declare i64 @drm_core_check_feature(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @I915_READ_HEAD(ptr noundef) local_unnamed_addr #1
declare i32 @I915_READ_TAIL(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"drm_device", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"intel_ring_buffer", !11, i64 0, !11, i64 4, !14, i64 8, !14, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!13, !11, i64 4}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !14, i64 8}
!18 = !{!13, !14, i64 16}
!19 = !{!6, !7, i64 0}
!20 = !{!21, !7, i64 0}
!21 = !{!"TYPE_5__", !7, i64 0}
!22 = !{!23, !7, i64 0}
!23 = !{!"TYPE_4__", !7, i64 0}
!24 = !{!25, !7, i64 0}
!25 = !{!"drm_i915_master_private", !7, i64 0}
!26 = !{!27, !11, i64 0}
!27 = !{!"TYPE_6__", !11, i64 0}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/gpu/drm/i915/extr_i915_dma.c_i915_kernel_lost_context.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/gpu/drm/i915/extr_i915_dma.c_i915_kernel_lost_context.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DRIVER_MODESET = common local_unnamed_addr global i32 0, align 4
@HEAD_ADDR = common local_unnamed_addr global i32 0, align 4
@TAIL_ADDR = common local_unnamed_addr global i32 0, align 4
@I915_RING_FREE_SPACE = common local_unnamed_addr global i64 0, align 8
@I915_BOX_RING_EMPTY = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @i915_kernel_lost_context(ptr noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load ptr, ptr %2, align 8, !tbaa !6
%4 = tail call ptr @LP_RING(ptr noundef %3) #2
%5 = load i32, ptr @DRIVER_MODESET, align 4, !tbaa !11
%6 = tail call i64 @drm_core_check_feature(ptr noundef %0, i32 noundef %5) #2
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %42
8: ; preds = %1
%9 = tail call i32 @I915_READ_HEAD(ptr noundef %4) #2
%10 = load i32, ptr @HEAD_ADDR, align 4, !tbaa !11
%11 = and i32 %10, %9
store i32 %11, ptr %4, align 8, !tbaa !13
%12 = tail call i32 @I915_READ_TAIL(ptr noundef nonnull %4) #2
%13 = load i32, ptr @TAIL_ADDR, align 4, !tbaa !11
%14 = and i32 %13, %12
%15 = getelementptr inbounds i8, ptr %4, i64 4
store i32 %14, ptr %15, align 4, !tbaa !16
%16 = load i32, ptr %4, align 8, !tbaa !13
%17 = sext i32 %16 to i64
%18 = sext i32 %14 to i64
%19 = load i64, ptr @I915_RING_FREE_SPACE, align 8, !tbaa !17
%20 = add i64 %19, %18
%21 = sub i64 %17, %20
%22 = getelementptr inbounds i8, ptr %4, i64 8
store i64 %21, ptr %22, align 8, !tbaa !18
%23 = icmp slt i64 %21, 0
br i1 %23, label %24, label %28
24: ; preds = %8
%25 = getelementptr inbounds i8, ptr %4, i64 16
%26 = load i64, ptr %25, align 8, !tbaa !19
%27 = add nsw i64 %26, %21
store i64 %27, ptr %22, align 8, !tbaa !18
br label %28
28: ; preds = %24, %8
%29 = load ptr, ptr %0, align 8, !tbaa !20
%30 = load ptr, ptr %29, align 8, !tbaa !21
%31 = icmp ne ptr %30, null
%32 = icmp eq i32 %16, %14
%33 = and i1 %32, %31
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load ptr, ptr %30, align 8, !tbaa !23
%36 = load ptr, ptr %35, align 8, !tbaa !25
%37 = icmp eq ptr %36, null
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i32, ptr @I915_BOX_RING_EMPTY, align 4, !tbaa !11
%40 = load i32, ptr %36, align 4, !tbaa !27
%41 = or i32 %40, %39
store i32 %41, ptr %36, align 4, !tbaa !27
br label %42
42: ; preds = %34, %38, %28, %1
ret void
}
declare ptr @LP_RING(ptr noundef) local_unnamed_addr #1
declare i64 @drm_core_check_feature(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @I915_READ_HEAD(ptr noundef) local_unnamed_addr #1
declare i32 @I915_READ_TAIL(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"drm_device", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"intel_ring_buffer", !12, i64 0, !12, i64 4, !15, i64 8, !15, i64 16}
!15 = !{!"long", !9, i64 0}
!16 = !{!14, !12, i64 4}
!17 = !{!15, !15, i64 0}
!18 = !{!14, !15, i64 8}
!19 = !{!14, !15, i64 16}
!20 = !{!7, !8, i64 0}
!21 = !{!22, !8, i64 0}
!22 = !{!"TYPE_5__", !8, i64 0}
!23 = !{!24, !8, i64 0}
!24 = !{!"TYPE_4__", !8, i64 0}
!25 = !{!26, !8, i64 0}
!26 = !{!"drm_i915_master_private", !8, i64 0}
!27 = !{!28, !12, i64 0}
!28 = !{!"TYPE_6__", !12, i64 0}
|
fastsocket_kernel_drivers_gpu_drm_i915_extr_i915_dma.c_i915_kernel_lost_context
|
; ModuleID = 'AnghaBench/linux/drivers/pci/extr_pci.h_pci_ats_init.c'
source_filename = "AnghaBench/linux/drivers/pci/extr_pci.h_pci_ats_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 @pci_ats_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @pci_ats_init(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/linux/drivers/pci/extr_pci.h_pci_ats_init.c'
source_filename = "AnghaBench/linux/drivers/pci/extr_pci.h_pci_ats_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 @pci_ats_init], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @pci_ats_init(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_drivers_pci_extr_pci.h_pci_ats_init
|
; ModuleID = 'AnghaBench/poco/Data/SQLite/src/extr_sqlite3.c_resolveOrderByTermToExprList.c'
source_filename = "AnghaBench/poco/Data/SQLite/src/extr_sqlite3.c_resolveOrderByTermToExprList.c"
target datalayout = "e-m:e-p270:32:32-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_17__ = type { i32, i64, %struct.TYPE_12__, i32, ptr }
%struct.TYPE_12__ = type { ptr }
%struct.TYPE_15__ = type { i32, ptr }
%struct.TYPE_18__ = type { i32, ptr }
%struct.TYPE_13__ = type { i32 }
@NC_AllowAgg = dso_local local_unnamed_addr global i32 0, align 4
@NC_UEList = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @resolveOrderByTermToExprList], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @resolveOrderByTermToExprList(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca %struct.TYPE_17__, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
%6 = call i64 @sqlite3ExprIsInteger(ptr noundef %2, ptr noundef nonnull %4) #3
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8) #3
%10 = getelementptr inbounds %struct.TYPE_15__, ptr %1, i64 0, i32 1
%11 = load ptr, ptr %10, align 8, !tbaa !5
%12 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 40) #3
%13 = getelementptr inbounds %struct.TYPE_17__, ptr %5, i64 0, i32 4
store ptr %0, ptr %13, align 8, !tbaa !11
%14 = load i32, ptr %1, align 8, !tbaa !15
%15 = getelementptr inbounds %struct.TYPE_17__, ptr %5, i64 0, i32 3
store i32 %14, ptr %15, align 8, !tbaa !16
%16 = getelementptr inbounds %struct.TYPE_17__, ptr %5, i64 0, i32 2
store ptr %11, ptr %16, align 8, !tbaa !17
%17 = load i32, ptr @NC_AllowAgg, align 4, !tbaa !18
%18 = load i32, ptr @NC_UEList, align 4, !tbaa !18
%19 = or i32 %18, %17
store i32 %19, ptr %5, align 8, !tbaa !19
%20 = getelementptr inbounds %struct.TYPE_17__, ptr %5, i64 0, i32 1
store i64 0, ptr %20, align 8, !tbaa !20
%21 = load ptr, ptr %0, align 8, !tbaa !21
%22 = load i32, ptr %21, align 4, !tbaa !23
store i32 1, ptr %21, align 4, !tbaa !23
%23 = call i32 @sqlite3ResolveExprNames(ptr noundef nonnull %5, ptr noundef %2) #3
store i32 %22, ptr %21, align 4, !tbaa !23
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %3
store i32 0, ptr %4, align 4, !tbaa !18
%26 = load i32, ptr %11, align 8, !tbaa !25
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = getelementptr inbounds %struct.TYPE_18__, ptr %11, i64 0, i32 1
br label %30
30: ; preds = %28, %40
%31 = phi i32 [ 0, %28 ], [ %39, %40 ]
%32 = load ptr, ptr %29, align 8, !tbaa !27
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds %struct.TYPE_13__, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4, !tbaa !28
%36 = call i32 @sqlite3ExprCompare(i32 noundef 0, i32 noundef %35, ptr noundef %2, i32 noundef -1) #3
%37 = icmp slt i32 %36, 2
%38 = load i32, ptr %4, align 4, !tbaa !18
%39 = add nsw i32 %38, 1
br i1 %37, label %43, label %40
40: ; preds = %30
store i32 %39, ptr %4, align 4, !tbaa !18
%41 = load i32, ptr %11, align 8, !tbaa !25
%42 = icmp slt i32 %39, %41
br i1 %42, label %30, label %43, !llvm.loop !30
43: ; preds = %40, %30, %25, %3
%44 = phi i32 [ 0, %3 ], [ 0, %25 ], [ %39, %30 ], [ 0, %40 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %44
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i64 @sqlite3ExprIsInteger(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sqlite3ResolveExprNames(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sqlite3ExprCompare(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"TYPE_15__", !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, !10, i64 32}
!12 = !{!"TYPE_17__", !7, i64 0, !13, i64 8, !14, i64 16, !7, i64 24, !10, i64 32}
!13 = !{!"long", !8, i64 0}
!14 = !{!"TYPE_12__", !10, i64 0}
!15 = !{!6, !7, i64 0}
!16 = !{!12, !7, i64 24}
!17 = !{!12, !10, i64 16}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !7, i64 0}
!20 = !{!12, !13, i64 8}
!21 = !{!22, !10, i64 0}
!22 = !{!"TYPE_16__", !10, i64 0}
!23 = !{!24, !7, i64 0}
!24 = !{!"TYPE_14__", !7, i64 0}
!25 = !{!26, !7, i64 0}
!26 = !{!"TYPE_18__", !7, i64 0, !10, i64 8}
!27 = !{!26, !10, i64 8}
!28 = !{!29, !7, i64 0}
!29 = !{!"TYPE_13__", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/poco/Data/SQLite/src/extr_sqlite3.c_resolveOrderByTermToExprList.c'
source_filename = "AnghaBench/poco/Data/SQLite/src/extr_sqlite3.c_resolveOrderByTermToExprList.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_17__ = type { i32, i64, %struct.TYPE_12__, i32, ptr }
%struct.TYPE_12__ = type { ptr }
%struct.TYPE_13__ = type { i32 }
@NC_AllowAgg = common local_unnamed_addr global i32 0, align 4
@NC_UEList = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @resolveOrderByTermToExprList], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @resolveOrderByTermToExprList(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca %struct.TYPE_17__, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
%6 = call i64 @sqlite3ExprIsInteger(ptr noundef %2, ptr noundef nonnull %4) #3
%7 = icmp eq i64 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8) #3
%10 = getelementptr inbounds i8, ptr %1, i64 8
%11 = load ptr, ptr %10, align 8, !tbaa !6
%12 = call i32 @memset(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 40) #3
%13 = getelementptr inbounds i8, ptr %5, i64 32
store ptr %0, ptr %13, align 8, !tbaa !12
%14 = load i32, ptr %1, align 8, !tbaa !16
%15 = getelementptr inbounds i8, ptr %5, i64 24
store i32 %14, ptr %15, align 8, !tbaa !17
%16 = getelementptr inbounds i8, ptr %5, i64 16
store ptr %11, ptr %16, align 8, !tbaa !18
%17 = load i32, ptr @NC_AllowAgg, align 4, !tbaa !19
%18 = load i32, ptr @NC_UEList, align 4, !tbaa !19
%19 = or i32 %18, %17
store i32 %19, ptr %5, align 8, !tbaa !20
%20 = getelementptr inbounds i8, ptr %5, i64 8
store i64 0, ptr %20, align 8, !tbaa !21
%21 = load ptr, ptr %0, align 8, !tbaa !22
%22 = load i32, ptr %21, align 4, !tbaa !24
store i32 1, ptr %21, align 4, !tbaa !24
%23 = call i32 @sqlite3ResolveExprNames(ptr noundef nonnull %5, ptr noundef %2) #3
store i32 %22, ptr %21, align 4, !tbaa !24
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %3
store i32 0, ptr %4, align 4, !tbaa !19
%26 = load i32, ptr %11, align 8, !tbaa !26
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = getelementptr inbounds i8, ptr %11, i64 8
br label %30
30: ; preds = %28, %40
%31 = phi i32 [ 0, %28 ], [ %39, %40 ]
%32 = load ptr, ptr %29, align 8, !tbaa !28
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds %struct.TYPE_13__, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4, !tbaa !29
%36 = call i32 @sqlite3ExprCompare(i32 noundef 0, i32 noundef %35, ptr noundef %2, i32 noundef -1) #3
%37 = icmp slt i32 %36, 2
%38 = load i32, ptr %4, align 4, !tbaa !19
%39 = add nsw i32 %38, 1
br i1 %37, label %43, label %40
40: ; preds = %30
store i32 %39, ptr %4, align 4, !tbaa !19
%41 = load i32, ptr %11, align 8, !tbaa !26
%42 = icmp slt i32 %39, %41
br i1 %42, label %30, label %43, !llvm.loop !31
43: ; preds = %40, %30, %25, %3
%44 = phi i32 [ 0, %3 ], [ 0, %25 ], [ %39, %30 ], [ 0, %40 ]
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %44
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i64 @sqlite3ExprIsInteger(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sqlite3ResolveExprNames(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @sqlite3ExprCompare(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"TYPE_15__", !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, !11, i64 32}
!13 = !{!"TYPE_17__", !8, i64 0, !14, i64 8, !15, i64 16, !8, i64 24, !11, i64 32}
!14 = !{!"long", !9, i64 0}
!15 = !{!"TYPE_12__", !11, i64 0}
!16 = !{!7, !8, i64 0}
!17 = !{!13, !8, i64 24}
!18 = !{!13, !11, i64 16}
!19 = !{!8, !8, i64 0}
!20 = !{!13, !8, i64 0}
!21 = !{!13, !14, i64 8}
!22 = !{!23, !11, i64 0}
!23 = !{!"TYPE_16__", !11, i64 0}
!24 = !{!25, !8, i64 0}
!25 = !{!"TYPE_14__", !8, i64 0}
!26 = !{!27, !8, i64 0}
!27 = !{!"TYPE_18__", !8, i64 0, !11, i64 8}
!28 = !{!27, !11, i64 8}
!29 = !{!30, !8, i64 0}
!30 = !{!"TYPE_13__", !8, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
|
poco_Data_SQLite_src_extr_sqlite3.c_resolveOrderByTermToExprList
|
; ModuleID = 'AnghaBench/linux/drivers/nvme/target/extr_loop.c_nvme_loop_init_admin_hctx.c'
source_filename = "AnghaBench/linux/drivers/nvme/target/extr_loop.c_nvme_loop_init_admin_hctx.c"
target datalayout = "e-m:e-p270:32:32-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 @nvme_loop_init_admin_hctx], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @nvme_loop_init_admin_hctx(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !5
%5 = icmp ne i32 %2, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @BUG_ON(i32 noundef %6) #2
store ptr %4, ptr %0, align 8, !tbaa !10
ret i32 0
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"nvme_loop_ctrl", !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 = !{!"blk_mq_hw_ctx", !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/nvme/target/extr_loop.c_nvme_loop_init_admin_hctx.c'
source_filename = "AnghaBench/linux/drivers/nvme/target/extr_loop.c_nvme_loop_init_admin_hctx.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 @nvme_loop_init_admin_hctx], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @nvme_loop_init_admin_hctx(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = load ptr, ptr %1, align 8, !tbaa !6
%5 = icmp ne i32 %2, 0
%6 = zext i1 %5 to i32
%7 = tail call i32 @BUG_ON(i32 noundef %6) #2
store ptr %4, ptr %0, align 8, !tbaa !11
ret i32 0
}
declare i32 @BUG_ON(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"nvme_loop_ctrl", !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 = !{!"blk_mq_hw_ctx", !8, i64 0}
|
linux_drivers_nvme_target_extr_loop.c_nvme_loop_init_admin_hctx
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/hptrr/extr_hptrr_os_bsd.c_os_timer_for_ldm.c'
source_filename = "AnghaBench/freebsd/sys/dev/hptrr/extr_hptrr_os_bsd.c_os_timer_for_ldm.c"
target datalayout = "e-m:e-p270:32:32-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 @os_timer_for_ldm], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @os_timer_for_ldm(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = trunc i64 %2 to i32
%4 = tail call i32 @ldm_on_timer(i32 noundef %3) #2
ret void
}
declare i32 @ldm_on_timer(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_2__", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/hptrr/extr_hptrr_os_bsd.c_os_timer_for_ldm.c'
source_filename = "AnghaBench/freebsd/sys/dev/hptrr/extr_hptrr_os_bsd.c_os_timer_for_ldm.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 @os_timer_for_ldm], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @os_timer_for_ldm(ptr nocapture noundef readonly %0) #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = trunc i64 %2 to i32
%4 = tail call i32 @ldm_on_timer(i32 noundef %3) #2
ret void
}
declare i32 @ldm_on_timer(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
|
freebsd_sys_dev_hptrr_extr_hptrr_os_bsd.c_os_timer_for_ldm
|
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/marvell/mwifiex/extr_scan.c_mwifiex_save_curr_bcn.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/marvell/mwifiex/extr_scan.c_mwifiex_save_curr_bcn.c"
target datalayout = "e-m:e-p270:32:32-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.mwifiex_private = type { i64, i64, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { %struct.mwifiex_bssdescriptor }
%struct.mwifiex_bssdescriptor = type { i64, i64, i64, ptr, i64, i64, i64, i64, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr }
@GFP_ATOMIC = dso_local local_unnamed_addr global i32 0, align 4
@INFO = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"info: current beacon saved %d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @mwifiex_save_curr_bcn(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = icmp eq i64 %3, 0
br i1 %4, label %110, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 1
%7 = load i64, ptr %6, align 8, !tbaa !11
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = load i64, ptr %0, align 8, !tbaa !15
%11 = icmp eq i64 %10, %3
br i1 %11, label %20, label %12
12: ; preds = %9, %5
store i64 %3, ptr %0, align 8, !tbaa !15
%13 = tail call i32 @kfree(i64 noundef %7) #2
%14 = load i64, ptr %2, align 8, !tbaa !5
%15 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !16
%16 = tail call i64 @kmalloc(i64 noundef %14, i32 noundef %15) #2
store i64 %16, ptr %6, align 8, !tbaa !11
%17 = icmp eq i64 %16, 0
br i1 %17, label %110, label %18
18: ; preds = %12
%19 = load i64, ptr %2, align 8, !tbaa !5
br label %20
20: ; preds = %18, %9
%21 = phi i64 [ %19, %18 ], [ %3, %9 ]
%22 = phi i64 [ %16, %18 ], [ %7, %9 ]
%23 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 2
%24 = load i64, ptr %23, align 8, !tbaa !17
%25 = tail call i32 @memcpy(i64 noundef %22, i64 noundef %24, i64 noundef %21) #2
%26 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 2
%27 = load i32, ptr %26, align 8, !tbaa !18
%28 = load i32, ptr @INFO, align 4, !tbaa !16
%29 = load i64, ptr %0, align 8, !tbaa !15
%30 = tail call i32 @mwifiex_dbg(i32 noundef %27, i32 noundef %28, ptr noundef nonnull @.str, i64 noundef %29) #2
%31 = load i64, ptr %6, align 8, !tbaa !11
store i64 %31, ptr %23, align 8, !tbaa !17
%32 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 19
%33 = load ptr, ptr %32, align 8, !tbaa !19
%34 = icmp eq ptr %33, null
br i1 %34, label %40, label %35
35: ; preds = %20
%36 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 18
%37 = load i64, ptr %36, align 8, !tbaa !20
%38 = add nsw i64 %37, %31
%39 = inttoptr i64 %38 to ptr
store ptr %39, ptr %32, align 8, !tbaa !19
br label %40
40: ; preds = %35, %20
%41 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 17
%42 = load ptr, ptr %41, align 8, !tbaa !21
%43 = icmp eq ptr %42, null
br i1 %43, label %49, label %44
44: ; preds = %40
%45 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 16
%46 = load i64, ptr %45, align 8, !tbaa !22
%47 = add nsw i64 %46, %31
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %41, align 8, !tbaa !21
br label %49
49: ; preds = %44, %40
%50 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 15
%51 = load ptr, ptr %50, align 8, !tbaa !23
%52 = icmp eq ptr %51, null
br i1 %52, label %58, label %53
53: ; preds = %49
%54 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 14
%55 = load i64, ptr %54, align 8, !tbaa !24
%56 = add nsw i64 %55, %31
%57 = inttoptr i64 %56 to ptr
store ptr %57, ptr %50, align 8, !tbaa !23
br label %58
58: ; preds = %53, %49
%59 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 13
%60 = load ptr, ptr %59, align 8, !tbaa !25
%61 = icmp eq ptr %60, null
br i1 %61, label %67, label %62
62: ; preds = %58
%63 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 12
%64 = load i64, ptr %63, align 8, !tbaa !26
%65 = add nsw i64 %64, %31
%66 = inttoptr i64 %65 to ptr
store ptr %66, ptr %59, align 8, !tbaa !25
br label %67
67: ; preds = %62, %58
%68 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 11
%69 = load ptr, ptr %68, align 8, !tbaa !27
%70 = icmp eq ptr %69, null
br i1 %70, label %76, label %71
71: ; preds = %67
%72 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 10
%73 = load i64, ptr %72, align 8, !tbaa !28
%74 = add nsw i64 %73, %31
%75 = inttoptr i64 %74 to ptr
store ptr %75, ptr %68, align 8, !tbaa !27
br label %76
76: ; preds = %71, %67
%77 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 9
%78 = load ptr, ptr %77, align 8, !tbaa !29
%79 = icmp eq ptr %78, null
br i1 %79, label %85, label %80
80: ; preds = %76
%81 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 8
%82 = load i64, ptr %81, align 8, !tbaa !30
%83 = add nsw i64 %82, %31
%84 = inttoptr i64 %83 to ptr
store ptr %84, ptr %77, align 8, !tbaa !29
br label %85
85: ; preds = %80, %76
%86 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 7
%87 = load i64, ptr %86, align 8, !tbaa !31
%88 = icmp eq i64 %87, 0
br i1 %88, label %93, label %89
89: ; preds = %85
%90 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 6
%91 = load i64, ptr %90, align 8, !tbaa !32
%92 = add nsw i64 %91, %31
store i64 %92, ptr %86, align 8, !tbaa !31
br label %93
93: ; preds = %89, %85
%94 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 5
%95 = load i64, ptr %94, align 8, !tbaa !33
%96 = icmp eq i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %93
%98 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 4
%99 = load i64, ptr %98, align 8, !tbaa !34
%100 = add nsw i64 %99, %31
store i64 %100, ptr %94, align 8, !tbaa !33
br label %101
101: ; preds = %97, %93
%102 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 3
%103 = load ptr, ptr %102, align 8, !tbaa !35
%104 = icmp eq ptr %103, null
br i1 %104, label %110, label %105
105: ; preds = %101
%106 = getelementptr inbounds %struct.mwifiex_private, ptr %0, i64 0, i32 3, i32 0, i32 1
%107 = load i64, ptr %106, align 8, !tbaa !36
%108 = add nsw i64 %107, %31
%109 = inttoptr i64 %108 to ptr
store ptr %109, ptr %102, align 8, !tbaa !35
br label %110
110: ; preds = %101, %105, %12, %1
ret void
}
declare i32 @kfree(i64 noundef) local_unnamed_addr #1
declare i64 @kmalloc(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @mwifiex_dbg(i32 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 = !{!"mwifiex_bssdescriptor", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !10, i64 104, !7, i64 112, !10, i64 120, !7, i64 128, !10, i64 136, !7, i64 144, !10, i64 152}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 8}
!12 = !{!"mwifiex_private", !7, i64 0, !7, i64 8, !13, i64 16, !14, i64 24}
!13 = !{!"int", !8, i64 0}
!14 = !{!"TYPE_2__", !6, i64 0}
!15 = !{!12, !7, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!6, !7, i64 16}
!18 = !{!12, !13, i64 16}
!19 = !{!6, !10, i64 152}
!20 = !{!6, !7, i64 144}
!21 = !{!6, !10, i64 136}
!22 = !{!6, !7, i64 128}
!23 = !{!6, !10, i64 120}
!24 = !{!6, !7, i64 112}
!25 = !{!6, !10, i64 104}
!26 = !{!6, !7, i64 96}
!27 = !{!6, !10, i64 88}
!28 = !{!6, !7, i64 80}
!29 = !{!6, !10, i64 72}
!30 = !{!6, !7, i64 64}
!31 = !{!6, !7, i64 56}
!32 = !{!6, !7, i64 48}
!33 = !{!6, !7, i64 40}
!34 = !{!6, !7, i64 32}
!35 = !{!6, !10, i64 24}
!36 = !{!6, !7, i64 8}
|
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/marvell/mwifiex/extr_scan.c_mwifiex_save_curr_bcn.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/marvell/mwifiex/extr_scan.c_mwifiex_save_curr_bcn.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
@INFO = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"info: current beacon saved %d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @mwifiex_save_curr_bcn(ptr nocapture noundef %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 24
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
br i1 %4, label %110, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 8
%7 = load i64, ptr %6, align 8, !tbaa !12
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = load i64, ptr %0, align 8, !tbaa !16
%11 = icmp eq i64 %10, %3
br i1 %11, label %20, label %12
12: ; preds = %9, %5
store i64 %3, ptr %0, align 8, !tbaa !16
%13 = tail call i32 @kfree(i64 noundef %7) #2
%14 = load i64, ptr %2, align 8, !tbaa !6
%15 = load i32, ptr @GFP_ATOMIC, align 4, !tbaa !17
%16 = tail call i64 @kmalloc(i64 noundef %14, i32 noundef %15) #2
store i64 %16, ptr %6, align 8, !tbaa !12
%17 = icmp eq i64 %16, 0
br i1 %17, label %110, label %18
18: ; preds = %12
%19 = load i64, ptr %2, align 8, !tbaa !6
br label %20
20: ; preds = %18, %9
%21 = phi i64 [ %19, %18 ], [ %3, %9 ]
%22 = phi i64 [ %16, %18 ], [ %7, %9 ]
%23 = getelementptr inbounds i8, ptr %0, i64 40
%24 = load i64, ptr %23, align 8, !tbaa !18
%25 = tail call i32 @memcpy(i64 noundef %22, i64 noundef %24, i64 noundef %21) #2
%26 = getelementptr inbounds i8, ptr %0, i64 16
%27 = load i32, ptr %26, align 8, !tbaa !19
%28 = load i32, ptr @INFO, align 4, !tbaa !17
%29 = load i64, ptr %0, align 8, !tbaa !16
%30 = tail call i32 @mwifiex_dbg(i32 noundef %27, i32 noundef %28, ptr noundef nonnull @.str, i64 noundef %29) #2
%31 = load i64, ptr %6, align 8, !tbaa !12
store i64 %31, ptr %23, align 8, !tbaa !18
%32 = getelementptr inbounds i8, ptr %0, i64 176
%33 = load ptr, ptr %32, align 8, !tbaa !20
%34 = icmp eq ptr %33, null
br i1 %34, label %40, label %35
35: ; preds = %20
%36 = getelementptr inbounds i8, ptr %0, i64 168
%37 = load i64, ptr %36, align 8, !tbaa !21
%38 = add nsw i64 %37, %31
%39 = inttoptr i64 %38 to ptr
store ptr %39, ptr %32, align 8, !tbaa !20
br label %40
40: ; preds = %35, %20
%41 = getelementptr inbounds i8, ptr %0, i64 160
%42 = load ptr, ptr %41, align 8, !tbaa !22
%43 = icmp eq ptr %42, null
br i1 %43, label %49, label %44
44: ; preds = %40
%45 = getelementptr inbounds i8, ptr %0, i64 152
%46 = load i64, ptr %45, align 8, !tbaa !23
%47 = add nsw i64 %46, %31
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %41, align 8, !tbaa !22
br label %49
49: ; preds = %44, %40
%50 = getelementptr inbounds i8, ptr %0, i64 144
%51 = load ptr, ptr %50, align 8, !tbaa !24
%52 = icmp eq ptr %51, null
br i1 %52, label %58, label %53
53: ; preds = %49
%54 = getelementptr inbounds i8, ptr %0, i64 136
%55 = load i64, ptr %54, align 8, !tbaa !25
%56 = add nsw i64 %55, %31
%57 = inttoptr i64 %56 to ptr
store ptr %57, ptr %50, align 8, !tbaa !24
br label %58
58: ; preds = %53, %49
%59 = getelementptr inbounds i8, ptr %0, i64 128
%60 = load ptr, ptr %59, align 8, !tbaa !26
%61 = icmp eq ptr %60, null
br i1 %61, label %67, label %62
62: ; preds = %58
%63 = getelementptr inbounds i8, ptr %0, i64 120
%64 = load i64, ptr %63, align 8, !tbaa !27
%65 = add nsw i64 %64, %31
%66 = inttoptr i64 %65 to ptr
store ptr %66, ptr %59, align 8, !tbaa !26
br label %67
67: ; preds = %62, %58
%68 = getelementptr inbounds i8, ptr %0, i64 112
%69 = load ptr, ptr %68, align 8, !tbaa !28
%70 = icmp eq ptr %69, null
br i1 %70, label %76, label %71
71: ; preds = %67
%72 = getelementptr inbounds i8, ptr %0, i64 104
%73 = load i64, ptr %72, align 8, !tbaa !29
%74 = add nsw i64 %73, %31
%75 = inttoptr i64 %74 to ptr
store ptr %75, ptr %68, align 8, !tbaa !28
br label %76
76: ; preds = %71, %67
%77 = getelementptr inbounds i8, ptr %0, i64 96
%78 = load ptr, ptr %77, align 8, !tbaa !30
%79 = icmp eq ptr %78, null
br i1 %79, label %85, label %80
80: ; preds = %76
%81 = getelementptr inbounds i8, ptr %0, i64 88
%82 = load i64, ptr %81, align 8, !tbaa !31
%83 = add nsw i64 %82, %31
%84 = inttoptr i64 %83 to ptr
store ptr %84, ptr %77, align 8, !tbaa !30
br label %85
85: ; preds = %80, %76
%86 = getelementptr inbounds i8, ptr %0, i64 80
%87 = load i64, ptr %86, align 8, !tbaa !32
%88 = icmp eq i64 %87, 0
br i1 %88, label %93, label %89
89: ; preds = %85
%90 = getelementptr inbounds i8, ptr %0, i64 72
%91 = load i64, ptr %90, align 8, !tbaa !33
%92 = add nsw i64 %91, %31
store i64 %92, ptr %86, align 8, !tbaa !32
br label %93
93: ; preds = %89, %85
%94 = getelementptr inbounds i8, ptr %0, i64 64
%95 = load i64, ptr %94, align 8, !tbaa !34
%96 = icmp eq i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %93
%98 = getelementptr inbounds i8, ptr %0, i64 56
%99 = load i64, ptr %98, align 8, !tbaa !35
%100 = add nsw i64 %99, %31
store i64 %100, ptr %94, align 8, !tbaa !34
br label %101
101: ; preds = %97, %93
%102 = getelementptr inbounds i8, ptr %0, i64 48
%103 = load ptr, ptr %102, align 8, !tbaa !36
%104 = icmp eq ptr %103, null
br i1 %104, label %110, label %105
105: ; preds = %101
%106 = getelementptr inbounds i8, ptr %0, i64 32
%107 = load i64, ptr %106, align 8, !tbaa !37
%108 = add nsw i64 %107, %31
%109 = inttoptr i64 %108 to ptr
store ptr %109, ptr %102, align 8, !tbaa !36
br label %110
110: ; preds = %101, %105, %12, %1
ret void
}
declare i32 @kfree(i64 noundef) local_unnamed_addr #1
declare i64 @kmalloc(i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memcpy(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @mwifiex_dbg(i32 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 = !{!"mwifiex_bssdescriptor", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !11, i64 72, !8, i64 80, !11, i64 88, !8, i64 96, !11, i64 104, !8, i64 112, !11, i64 120, !8, i64 128, !11, i64 136, !8, i64 144, !11, i64 152}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 8}
!13 = !{!"mwifiex_private", !8, i64 0, !8, i64 8, !14, i64 16, !15, i64 24}
!14 = !{!"int", !9, i64 0}
!15 = !{!"TYPE_2__", !7, i64 0}
!16 = !{!13, !8, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!7, !8, i64 16}
!19 = !{!13, !14, i64 16}
!20 = !{!7, !11, i64 152}
!21 = !{!7, !8, i64 144}
!22 = !{!7, !11, i64 136}
!23 = !{!7, !8, i64 128}
!24 = !{!7, !11, i64 120}
!25 = !{!7, !8, i64 112}
!26 = !{!7, !11, i64 104}
!27 = !{!7, !8, i64 96}
!28 = !{!7, !11, i64 88}
!29 = !{!7, !8, i64 80}
!30 = !{!7, !11, i64 72}
!31 = !{!7, !8, i64 64}
!32 = !{!7, !8, i64 56}
!33 = !{!7, !8, i64 48}
!34 = !{!7, !8, i64 40}
!35 = !{!7, !8, i64 32}
!36 = !{!7, !11, i64 24}
!37 = !{!7, !8, i64 8}
|
linux_drivers_net_wireless_marvell_mwifiex_extr_scan.c_mwifiex_save_curr_bcn
|
; ModuleID = 'AnghaBench/linux/drivers/staging/speakup/extr_speakup_dtlk.c_do_catch_up.c'
source_filename = "AnghaBench/linux/drivers/staging/speakup/extr_speakup_dtlk.c_do_catch_up.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { i32, i64 }
@JIFFY = dso_local local_unnamed_addr global i32 0, align 4
@DELAY = dso_local local_unnamed_addr global i32 0, align 4
@speakup_info = dso_local global %struct.TYPE_6__ zeroinitializer, align 8
@jiffies = dso_local local_unnamed_addr global i32 0, align 4
@TASK_INTERRUPTIBLE = dso_local local_unnamed_addr global i32 0, align 4
@TASK_RUNNING = dso_local local_unnamed_addr global i32 0, align 4
@PROCSPEECH = dso_local local_unnamed_addr global i8 0, align 1
@SPACE = dso_local local_unnamed_addr global i8 0, align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @do_catch_up], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @do_catch_up(ptr noundef %0) #0 {
%2 = load i32, ptr @JIFFY, align 4, !tbaa !5
%3 = tail call ptr @spk_get_var(i32 noundef %2) #2
%4 = load i32, ptr @DELAY, align 4, !tbaa !5
%5 = tail call ptr @spk_get_var(i32 noundef %4) #2
%6 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%7 = load i32, ptr %3, align 4, !tbaa !9
%8 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%9 = load i32, ptr @jiffies, align 4, !tbaa !5
%10 = tail call i32 (...) @kthread_should_stop() #2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %76
12: ; preds = %1
%13 = add nsw i32 %9, %7
%14 = sext i32 %13 to i64
br label %15
15: ; preds = %12, %72
%16 = phi i64 [ %73, %72 ], [ %14, %12 ]
br label %17
17: ; preds = %15, %25
%18 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%19 = load i64, ptr getelementptr inbounds (%struct.TYPE_6__, ptr @speakup_info, i64 0, i32 1), align 8, !tbaa !13
%20 = icmp eq i64 %19, 0
br i1 %20, label %28, label %21
21: ; preds = %17
store i64 0, ptr getelementptr inbounds (%struct.TYPE_6__, ptr @speakup_info, i64 0, i32 1), align 8, !tbaa !13
%22 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%23 = load ptr, ptr %0, align 8, !tbaa !16
%24 = tail call i32 %23(ptr noundef nonnull %0) #2
br label %25
25: ; preds = %21, %41
%26 = tail call i32 (...) @kthread_should_stop() #2
%27 = icmp eq i32 %26, 0
br i1 %27, label %17, label %76, !llvm.loop !19
28: ; preds = %17
%29 = tail call i32 (...) @synth_buffer_skip_nonlatin1() #2
%30 = tail call i64 (...) @synth_buffer_empty() #2
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %28
%33 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
br label %76
34: ; preds = %28
%35 = load i32, ptr @TASK_INTERRUPTIBLE, align 4, !tbaa !5
%36 = tail call i32 @set_current_state(i32 noundef %35) #2
%37 = load i32, ptr %5, align 4, !tbaa !9
%38 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%39 = tail call i64 (...) @synth_full() #2
%40 = icmp eq i64 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %34
%42 = tail call i32 @msecs_to_jiffies(i32 noundef %37) #2
%43 = tail call i32 @schedule_timeout(i32 noundef %42) #2
br label %25
44: ; preds = %34
%45 = load i32, ptr @TASK_RUNNING, align 4, !tbaa !5
%46 = tail call i32 @set_current_state(i32 noundef %45) #2
%47 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%48 = tail call signext i8 (...) @synth_buffer_getc() #2
%49 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%50 = icmp eq i8 %48, 10
%51 = load i8, ptr @PROCSPEECH, align 1
%52 = select i1 %50, i8 %51, i8 %48
%53 = tail call i32 @spk_out(i8 noundef signext %52) #2
%54 = load i32, ptr @jiffies, align 4, !tbaa !5
%55 = tail call i64 @time_after_eq(i32 noundef %54, i64 noundef %16) #2
%56 = icmp ne i64 %55, 0
%57 = load i8, ptr @SPACE, align 1
%58 = icmp eq i8 %52, %57
%59 = select i1 %56, i1 %58, i1 false
br i1 %59, label %60, label %72
60: ; preds = %44
%61 = load i8, ptr @PROCSPEECH, align 1, !tbaa !21
%62 = tail call i32 @spk_out(i8 noundef signext %61) #2
%63 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%64 = load i32, ptr %5, align 4, !tbaa !9
%65 = load i32, ptr %3, align 4, !tbaa !9
%66 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%67 = tail call i32 @msecs_to_jiffies(i32 noundef %64) #2
%68 = tail call i32 @schedule_timeout(i32 noundef %67) #2
%69 = load i32, ptr @jiffies, align 4, !tbaa !5
%70 = add nsw i32 %69, %65
%71 = sext i32 %70 to i64
br label %72
72: ; preds = %60, %44
%73 = phi i64 [ %71, %60 ], [ %16, %44 ]
%74 = tail call i32 (...) @kthread_should_stop() #2
%75 = icmp eq i32 %74, 0
br i1 %75, label %15, label %76, !llvm.loop !19
76: ; preds = %72, %25, %1, %32
%77 = load i8, ptr @PROCSPEECH, align 1, !tbaa !21
%78 = tail call i32 @spk_out(i8 noundef signext %77) #2
ret void
}
declare ptr @spk_get_var(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @kthread_should_stop(...) local_unnamed_addr #1
declare i32 @synth_buffer_skip_nonlatin1(...) local_unnamed_addr #1
declare i64 @synth_buffer_empty(...) local_unnamed_addr #1
declare i32 @set_current_state(i32 noundef) local_unnamed_addr #1
declare i64 @synth_full(...) local_unnamed_addr #1
declare i32 @schedule_timeout(i32 noundef) local_unnamed_addr #1
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare signext i8 @synth_buffer_getc(...) local_unnamed_addr #1
declare i32 @spk_out(i8 noundef signext) local_unnamed_addr #1
declare i64 @time_after_eq(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"var_t", !11, i64 0}
!11 = !{!"TYPE_5__", !12, i64 0}
!12 = !{!"TYPE_4__", !6, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"TYPE_6__", !6, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"spk_synth", !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!7, !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/staging/speakup/extr_speakup_dtlk.c_do_catch_up.c'
source_filename = "AnghaBench/linux/drivers/staging/speakup/extr_speakup_dtlk.c_do_catch_up.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_6__ = type { i32, i64 }
@JIFFY = common local_unnamed_addr global i32 0, align 4
@DELAY = common local_unnamed_addr global i32 0, align 4
@speakup_info = common global %struct.TYPE_6__ zeroinitializer, align 8
@jiffies = common local_unnamed_addr global i32 0, align 4
@TASK_INTERRUPTIBLE = common local_unnamed_addr global i32 0, align 4
@TASK_RUNNING = common local_unnamed_addr global i32 0, align 4
@PROCSPEECH = common local_unnamed_addr global i8 0, align 1
@SPACE = common local_unnamed_addr global i8 0, align 1
@llvm.used = appending global [1 x ptr] [ptr @do_catch_up], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @do_catch_up(ptr noundef %0) #0 {
%2 = load i32, ptr @JIFFY, align 4, !tbaa !6
%3 = tail call ptr @spk_get_var(i32 noundef %2) #2
%4 = load i32, ptr @DELAY, align 4, !tbaa !6
%5 = tail call ptr @spk_get_var(i32 noundef %4) #2
%6 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%7 = load i32, ptr %3, align 4, !tbaa !10
%8 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%9 = load i32, ptr @jiffies, align 4, !tbaa !6
%10 = tail call i32 @kthread_should_stop() #2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %76
12: ; preds = %1
%13 = add nsw i32 %9, %7
%14 = sext i32 %13 to i64
br label %15
15: ; preds = %12, %72
%16 = phi i64 [ %73, %72 ], [ %14, %12 ]
br label %17
17: ; preds = %15, %25
%18 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%19 = load i64, ptr getelementptr inbounds (i8, ptr @speakup_info, i64 8), align 8, !tbaa !14
%20 = icmp eq i64 %19, 0
br i1 %20, label %28, label %21
21: ; preds = %17
store i64 0, ptr getelementptr inbounds (i8, ptr @speakup_info, i64 8), align 8, !tbaa !14
%22 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%23 = load ptr, ptr %0, align 8, !tbaa !17
%24 = tail call i32 %23(ptr noundef nonnull %0) #2
br label %25
25: ; preds = %21, %41
%26 = tail call i32 @kthread_should_stop() #2
%27 = icmp eq i32 %26, 0
br i1 %27, label %17, label %76, !llvm.loop !20
28: ; preds = %17
%29 = tail call i32 @synth_buffer_skip_nonlatin1() #2
%30 = tail call i64 @synth_buffer_empty() #2
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %28
%33 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
br label %76
34: ; preds = %28
%35 = load i32, ptr @TASK_INTERRUPTIBLE, align 4, !tbaa !6
%36 = tail call i32 @set_current_state(i32 noundef %35) #2
%37 = load i32, ptr %5, align 4, !tbaa !10
%38 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%39 = tail call i64 @synth_full() #2
%40 = icmp eq i64 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %34
%42 = tail call i32 @msecs_to_jiffies(i32 noundef %37) #2
%43 = tail call i32 @schedule_timeout(i32 noundef %42) #2
br label %25
44: ; preds = %34
%45 = load i32, ptr @TASK_RUNNING, align 4, !tbaa !6
%46 = tail call i32 @set_current_state(i32 noundef %45) #2
%47 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%48 = tail call signext i8 @synth_buffer_getc() #2
%49 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%50 = icmp eq i8 %48, 10
%51 = load i8, ptr @PROCSPEECH, align 1
%52 = select i1 %50, i8 %51, i8 %48
%53 = tail call i32 @spk_out(i8 noundef signext %52) #2
%54 = load i32, ptr @jiffies, align 4, !tbaa !6
%55 = tail call i64 @time_after_eq(i32 noundef %54, i64 noundef %16) #2
%56 = icmp ne i64 %55, 0
%57 = load i8, ptr @SPACE, align 1
%58 = icmp eq i8 %52, %57
%59 = select i1 %56, i1 %58, i1 false
br i1 %59, label %60, label %72
60: ; preds = %44
%61 = load i8, ptr @PROCSPEECH, align 1, !tbaa !22
%62 = tail call i32 @spk_out(i8 noundef signext %61) #2
%63 = tail call i32 @spin_lock_irqsave(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%64 = load i32, ptr %5, align 4, !tbaa !10
%65 = load i32, ptr %3, align 4, !tbaa !10
%66 = tail call i32 @spin_unlock_irqrestore(ptr noundef nonnull @speakup_info, i64 noundef undef) #2
%67 = tail call i32 @msecs_to_jiffies(i32 noundef %64) #2
%68 = tail call i32 @schedule_timeout(i32 noundef %67) #2
%69 = load i32, ptr @jiffies, align 4, !tbaa !6
%70 = add nsw i32 %69, %65
%71 = sext i32 %70 to i64
br label %72
72: ; preds = %60, %44
%73 = phi i64 [ %71, %60 ], [ %16, %44 ]
%74 = tail call i32 @kthread_should_stop() #2
%75 = icmp eq i32 %74, 0
br i1 %75, label %15, label %76, !llvm.loop !20
76: ; preds = %72, %25, %1, %32
%77 = load i8, ptr @PROCSPEECH, align 1, !tbaa !22
%78 = tail call i32 @spk_out(i8 noundef signext %77) #2
ret void
}
declare ptr @spk_get_var(i32 noundef) local_unnamed_addr #1
declare i32 @spin_lock_irqsave(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irqrestore(ptr noundef, i64 noundef) local_unnamed_addr #1
declare i32 @kthread_should_stop(...) local_unnamed_addr #1
declare i32 @synth_buffer_skip_nonlatin1(...) local_unnamed_addr #1
declare i64 @synth_buffer_empty(...) local_unnamed_addr #1
declare i32 @set_current_state(i32 noundef) local_unnamed_addr #1
declare i64 @synth_full(...) local_unnamed_addr #1
declare i32 @schedule_timeout(i32 noundef) local_unnamed_addr #1
declare i32 @msecs_to_jiffies(i32 noundef) local_unnamed_addr #1
declare signext i8 @synth_buffer_getc(...) local_unnamed_addr #1
declare i32 @spk_out(i8 noundef signext) local_unnamed_addr #1
declare i64 @time_after_eq(i32 noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"var_t", !12, i64 0}
!12 = !{!"TYPE_5__", !13, i64 0}
!13 = !{!"TYPE_4__", !7, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"TYPE_6__", !7, i64 0, !16, i64 8}
!16 = !{!"long", !8, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"spk_synth", !19, i64 0}
!19 = !{!"any pointer", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!8, !8, i64 0}
|
linux_drivers_staging_speakup_extr_speakup_dtlk.c_do_catch_up
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_REG_DSI_28nm_PHY_LN_TEST_DATAPATH.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_REG_DSI_28nm_PHY_LN_TEST_DATAPATH.c"
target datalayout = "e-m:e-p270:32:32-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 @REG_DSI_28nm_PHY_LN_TEST_DATAPATH], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal i32 @REG_DSI_28nm_PHY_LN_TEST_DATAPATH(i32 noundef %0) #0 {
%2 = shl nsw i32 %0, 6
%3 = or disjoint i32 %2, 20
ret i32 %3
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_REG_DSI_28nm_PHY_LN_TEST_DATAPATH.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/msm/dsi/extr_dsi.xml.h_REG_DSI_28nm_PHY_LN_TEST_DATAPATH.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 @REG_DSI_28nm_PHY_LN_TEST_DATAPATH], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal range(i32 -2147483628, -2147483648) i32 @REG_DSI_28nm_PHY_LN_TEST_DATAPATH(i32 noundef %0) #0 {
%2 = shl nsw i32 %0, 6
%3 = or disjoint i32 %2, 20
ret i32 %3
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_drivers_gpu_drm_msm_dsi_extr_dsi.xml.h_REG_DSI_28nm_PHY_LN_TEST_DATAPATH
|
; ModuleID = 'AnghaBench/RetroArch/deps/mbedtls/extr_cipher_wrap.c_aes_crypt_cfb128_wrap.c'
source_filename = "AnghaBench/RetroArch/deps/mbedtls/extr_cipher_wrap.c_aes_crypt_cfb128_wrap.c"
target datalayout = "e-m:e-p270:32:32-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 @aes_crypt_cfb128_wrap], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @aes_crypt_cfb128_wrap(ptr noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = tail call i32 @mbedtls_aes_crypt_cfb128(ptr noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2
ret i32 %8
}
declare i32 @mbedtls_aes_crypt_cfb128(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/RetroArch/deps/mbedtls/extr_cipher_wrap.c_aes_crypt_cfb128_wrap.c'
source_filename = "AnghaBench/RetroArch/deps/mbedtls/extr_cipher_wrap.c_aes_crypt_cfb128_wrap.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 @aes_crypt_cfb128_wrap], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @aes_crypt_cfb128_wrap(ptr noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = tail call i32 @mbedtls_aes_crypt_cfb128(ptr noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2
ret i32 %8
}
declare i32 @mbedtls_aes_crypt_cfb128(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
RetroArch_deps_mbedtls_extr_cipher_wrap.c_aes_crypt_cfb128_wrap
|
; ModuleID = 'AnghaBench/kphp-kdb/mutual-friends/extr_maccub.c__golomb_decode_list.c'
source_filename = "AnghaBench/kphp-kdb/mutual-friends/extr_maccub.c__golomb_decode_list.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@LEN_BITS = dso_local local_unnamed_addr global i32 0, align 4
@cur_bit = dso_local local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @_golomb_decode_list(ptr nocapture noundef readnone %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
%5 = load i32, ptr @LEN_BITS, align 4, !tbaa !5
%6 = icmp sgt i32 %5, -1
br i1 %6, label %7, label %18
7: ; preds = %4, %7
%8 = phi i32 [ %14, %7 ], [ 0, %4 ]
%9 = phi i32 [ %16, %7 ], [ %5, %4 ]
%10 = load i64, ptr @cur_bit, align 8, !tbaa !9
%11 = icmp eq i64 %10, 0
%12 = shl nuw i32 1, %9
%13 = select i1 %11, i32 0, i32 %12
%14 = add nsw i32 %13, %8
%15 = tail call i32 (...) @load_bit() #2
%16 = add nsw i32 %9, -1
%17 = icmp eq i32 %9, 0
br i1 %17, label %18, label %7, !llvm.loop !11
18: ; preds = %7, %4
%19 = phi i32 [ 0, %4 ], [ %14, %7 ]
%20 = add nsw i32 %19, %1
%21 = add nsw i32 %20, 1
%22 = tail call i32 @compute_golomb_parameter(i32 noundef %20, i32 noundef %19) #2
%23 = icmp slt i32 %22, 1
br i1 %23, label %30, label %24
24: ; preds = %18, %24
%25 = phi i32 [ %27, %24 ], [ 1, %18 ]
%26 = phi i32 [ %28, %24 ], [ 0, %18 ]
%27 = shl i32 %25, 1
%28 = add nuw nsw i32 %26, 1
%29 = icmp slt i32 %22, %27
br i1 %29, label %30, label %24, !llvm.loop !13
30: ; preds = %24, %18
%31 = phi i32 [ 0, %18 ], [ %28, %24 ]
%32 = phi i32 [ 1, %18 ], [ %27, %24 ]
%33 = sub nsw i32 %32, %22
%34 = icmp eq i32 %19, 0
br i1 %34, label %84, label %35
35: ; preds = %30
%36 = icmp sgt i32 %31, 1
br label %37
37: ; preds = %35, %75
%38 = phi i32 [ %19, %35 ], [ %41, %75 ]
%39 = phi i32 [ %21, %35 ], [ %77, %75 ]
%40 = phi ptr [ %3, %35 ], [ %82, %75 ]
%41 = add nsw i32 %38, -1
%42 = load i64, ptr @cur_bit, align 8, !tbaa !9
%43 = icmp eq i64 %42, 0
br i1 %43, label %50, label %44
44: ; preds = %37, %44
%45 = phi i32 [ %46, %44 ], [ %39, %37 ]
%46 = sub nsw i32 %45, %22
%47 = tail call i32 (...) @load_bit() #2
%48 = load i64, ptr @cur_bit, align 8, !tbaa !9
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %44, !llvm.loop !14
50: ; preds = %44, %37
%51 = phi i32 [ %39, %37 ], [ %46, %44 ]
%52 = tail call i32 (...) @load_bit() #2
br i1 %36, label %53, label %64
53: ; preds = %50, %53
%54 = phi i32 [ %62, %53 ], [ %31, %50 ]
%55 = phi i32 [ %60, %53 ], [ 0, %50 ]
%56 = shl i32 %55, 1
%57 = load i64, ptr @cur_bit, align 8, !tbaa !9
%58 = icmp ne i64 %57, 0
%59 = zext i1 %58 to i32
%60 = or disjoint i32 %56, %59
%61 = tail call i32 (...) @load_bit() #2
%62 = add nsw i32 %54, -1
%63 = icmp ugt i32 %54, 2
br i1 %63, label %53, label %64, !llvm.loop !15
64: ; preds = %53, %50
%65 = phi i32 [ 0, %50 ], [ %60, %53 ]
%66 = icmp slt i32 %65, %33
br i1 %66, label %75, label %67
67: ; preds = %64
%68 = shl i32 %65, 1
%69 = load i64, ptr @cur_bit, align 8, !tbaa !9
%70 = icmp ne i64 %69, 0
%71 = zext i1 %70 to i32
%72 = tail call i32 (...) @load_bit() #2
%73 = sub i32 %68, %33
%74 = add i32 %73, %71
br label %75
75: ; preds = %67, %64
%76 = phi i32 [ %74, %67 ], [ %65, %64 ]
%77 = sub nsw i32 %51, %76
%78 = load i32, ptr %40, align 4, !tbaa !5
%79 = icmp eq i32 %77, %78
%80 = zext i1 %79 to i32
%81 = tail call i32 @assert(i32 noundef %80) #2
%82 = getelementptr inbounds i32, ptr %40, i64 1
%83 = icmp eq i32 %41, 0
br i1 %83, label %84, label %37, !llvm.loop !16
84: ; preds = %75, %30
%85 = icmp eq i32 %2, 0
%86 = zext i1 %85 to i32
%87 = tail call i32 @assert(i32 noundef %86) #2
ret i32 %19
}
declare i32 @load_bit(...) local_unnamed_addr #1
declare i32 @compute_golomb_parameter(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @assert(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
|
; ModuleID = 'AnghaBench/kphp-kdb/mutual-friends/extr_maccub.c__golomb_decode_list.c'
source_filename = "AnghaBench/kphp-kdb/mutual-friends/extr_maccub.c__golomb_decode_list.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LEN_BITS = common local_unnamed_addr global i32 0, align 4
@cur_bit = common local_unnamed_addr global i64 0, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define noundef i32 @_golomb_decode_list(ptr nocapture noundef readnone %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
%5 = load i32, ptr @LEN_BITS, align 4, !tbaa !6
%6 = icmp sgt i32 %5, -1
br i1 %6, label %7, label %18
7: ; preds = %4, %7
%8 = phi i32 [ %14, %7 ], [ 0, %4 ]
%9 = phi i32 [ %16, %7 ], [ %5, %4 ]
%10 = load i64, ptr @cur_bit, align 8, !tbaa !10
%11 = icmp eq i64 %10, 0
%12 = shl nuw i32 1, %9
%13 = select i1 %11, i32 0, i32 %12
%14 = add nsw i32 %13, %8
%15 = tail call i32 @load_bit() #2
%16 = add nsw i32 %9, -1
%17 = icmp eq i32 %9, 0
br i1 %17, label %18, label %7, !llvm.loop !12
18: ; preds = %7, %4
%19 = phi i32 [ 0, %4 ], [ %14, %7 ]
%20 = add nsw i32 %19, %1
%21 = add nsw i32 %20, 1
%22 = tail call i32 @compute_golomb_parameter(i32 noundef %20, i32 noundef %19) #2
%23 = icmp slt i32 %22, 1
br i1 %23, label %30, label %24
24: ; preds = %18, %24
%25 = phi i32 [ %27, %24 ], [ 1, %18 ]
%26 = phi i32 [ %28, %24 ], [ 0, %18 ]
%27 = shl i32 %25, 1
%28 = add nuw nsw i32 %26, 1
%29 = icmp slt i32 %22, %27
br i1 %29, label %30, label %24, !llvm.loop !14
30: ; preds = %24, %18
%31 = phi i32 [ 0, %18 ], [ %28, %24 ]
%32 = phi i32 [ 1, %18 ], [ %27, %24 ]
%33 = sub nsw i32 %32, %22
%34 = icmp eq i32 %19, 0
br i1 %34, label %84, label %35
35: ; preds = %30
%36 = icmp sgt i32 %31, 1
br label %37
37: ; preds = %35, %75
%38 = phi i32 [ %19, %35 ], [ %41, %75 ]
%39 = phi i32 [ %21, %35 ], [ %77, %75 ]
%40 = phi ptr [ %3, %35 ], [ %82, %75 ]
%41 = add nsw i32 %38, -1
%42 = load i64, ptr @cur_bit, align 8, !tbaa !10
%43 = icmp eq i64 %42, 0
br i1 %43, label %50, label %44
44: ; preds = %37, %44
%45 = phi i32 [ %46, %44 ], [ %39, %37 ]
%46 = sub nsw i32 %45, %22
%47 = tail call i32 @load_bit() #2
%48 = load i64, ptr @cur_bit, align 8, !tbaa !10
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %44, !llvm.loop !15
50: ; preds = %44, %37
%51 = phi i32 [ %39, %37 ], [ %46, %44 ]
%52 = tail call i32 @load_bit() #2
br i1 %36, label %53, label %64
53: ; preds = %50, %53
%54 = phi i32 [ %62, %53 ], [ %31, %50 ]
%55 = phi i32 [ %60, %53 ], [ 0, %50 ]
%56 = shl i32 %55, 1
%57 = load i64, ptr @cur_bit, align 8, !tbaa !10
%58 = icmp ne i64 %57, 0
%59 = zext i1 %58 to i32
%60 = or disjoint i32 %56, %59
%61 = tail call i32 @load_bit() #2
%62 = add nsw i32 %54, -1
%63 = icmp ugt i32 %54, 2
br i1 %63, label %53, label %64, !llvm.loop !16
64: ; preds = %53, %50
%65 = phi i32 [ 0, %50 ], [ %60, %53 ]
%66 = icmp slt i32 %65, %33
br i1 %66, label %75, label %67
67: ; preds = %64
%68 = shl i32 %65, 1
%69 = load i64, ptr @cur_bit, align 8, !tbaa !10
%70 = icmp ne i64 %69, 0
%71 = zext i1 %70 to i32
%72 = tail call i32 @load_bit() #2
%73 = sub i32 %68, %33
%74 = add i32 %73, %71
br label %75
75: ; preds = %67, %64
%76 = phi i32 [ %74, %67 ], [ %65, %64 ]
%77 = sub nsw i32 %51, %76
%78 = load i32, ptr %40, align 4, !tbaa !6
%79 = icmp eq i32 %77, %78
%80 = zext i1 %79 to i32
%81 = tail call i32 @assert(i32 noundef %80) #2
%82 = getelementptr inbounds i8, ptr %40, i64 4
%83 = icmp eq i32 %41, 0
br i1 %83, label %84, label %37, !llvm.loop !17
84: ; preds = %75, %30
%85 = icmp eq i32 %2, 0
%86 = zext i1 %85 to i32
%87 = tail call i32 @assert(i32 noundef %86) #2
ret i32 %19
}
declare i32 @load_bit(...) local_unnamed_addr #1
declare i32 @compute_golomb_parameter(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @assert(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
|
kphp-kdb_mutual-friends_extr_maccub.c__golomb_decode_list
|
; ModuleID = 'AnghaBench/linux/kernel/trace/extr_trace_events_hist.c_create_var_fields.c'
source_filename = "AnghaBench/linux/kernel/trace/extr_trace_events_hist.c_create_var_fields.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hist_trigger_data = type { i32, ptr }
%struct.TYPE_3__ = type { i32, ptr, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @create_var_fields], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @create_var_fields(ptr noundef %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds %struct.hist_trigger_data, ptr %0, i64 0, i32 1
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = load i32, ptr %4, align 8, !tbaa !11
%6 = icmp eq i32 %5, 0
br i1 %6, label %28, label %7
7: ; preds = %2
%8 = load i32, ptr %0, align 8, !tbaa !14
%9 = zext i32 %5 to i64
br label %10
10: ; preds = %7, %24
%11 = phi i64 [ 0, %7 ], [ %26, %24 ]
%12 = phi i32 [ %8, %7 ], [ %25, %24 ]
%13 = load ptr, ptr %3, align 8, !tbaa !5
%14 = getelementptr inbounds %struct.TYPE_3__, ptr %13, i64 0, i32 1
%15 = load ptr, ptr %14, align 8, !tbaa !15
%16 = getelementptr inbounds ptr, ptr %15, i64 %11
%17 = load ptr, ptr %16, align 8, !tbaa !16
%18 = getelementptr inbounds %struct.TYPE_3__, ptr %13, i64 0, i32 2
%19 = load ptr, ptr %18, align 8, !tbaa !17
%20 = getelementptr inbounds ptr, ptr %19, i64 %11
%21 = load ptr, ptr %20, align 8, !tbaa !16
%22 = tail call i32 @create_var_field(ptr noundef nonnull %0, i32 noundef %12, ptr noundef %1, ptr noundef %17, ptr noundef %21) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %10
%25 = add i32 %12, 1
%26 = add nuw nsw i64 %11, 1
%27 = icmp eq i64 %26, %9
br i1 %27, label %28, label %10, !llvm.loop !18
28: ; preds = %24, %10, %2
%29 = phi i32 [ 0, %2 ], [ %22, %10 ], [ 0, %24 ]
ret i32 %29
}
declare i32 @create_var_field(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"hist_trigger_data", !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, !7, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0, !10, i64 8, !10, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!12, !10, i64 8}
!16 = !{!10, !10, i64 0}
!17 = !{!12, !10, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/linux/kernel/trace/extr_trace_events_hist.c_create_var_fields.c'
source_filename = "AnghaBench/linux/kernel/trace/extr_trace_events_hist.c_create_var_fields.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 @create_var_fields], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @create_var_fields(ptr noundef %0, ptr noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 8
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = load i32, ptr %4, align 8, !tbaa !12
%6 = icmp eq i32 %5, 0
br i1 %6, label %28, label %7
7: ; preds = %2
%8 = load i32, ptr %0, align 8, !tbaa !15
%9 = zext i32 %5 to i64
br label %10
10: ; preds = %7, %24
%11 = phi i64 [ 0, %7 ], [ %26, %24 ]
%12 = phi i32 [ %8, %7 ], [ %25, %24 ]
%13 = load ptr, ptr %3, align 8, !tbaa !6
%14 = getelementptr inbounds i8, ptr %13, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !16
%16 = getelementptr inbounds ptr, ptr %15, i64 %11
%17 = load ptr, ptr %16, align 8, !tbaa !17
%18 = getelementptr inbounds i8, ptr %13, i64 16
%19 = load ptr, ptr %18, align 8, !tbaa !18
%20 = getelementptr inbounds ptr, ptr %19, i64 %11
%21 = load ptr, ptr %20, align 8, !tbaa !17
%22 = tail call i32 @create_var_field(ptr noundef nonnull %0, i32 noundef %12, ptr noundef %1, ptr noundef %17, ptr noundef %21) #2
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %10
%25 = add i32 %12, 1
%26 = add nuw nsw i64 %11, 1
%27 = icmp eq i64 %26, %9
br i1 %27, label %28, label %10, !llvm.loop !19
28: ; preds = %24, %10, %2
%29 = phi i32 [ 0, %2 ], [ %22, %10 ], [ 0, %24 ]
ret i32 %29
}
declare i32 @create_var_field(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"hist_trigger_data", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"TYPE_3__", !8, i64 0, !11, i64 8, !11, i64 16}
!15 = !{!7, !8, i64 0}
!16 = !{!13, !11, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!13, !11, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
|
linux_kernel_trace_extr_trace_events_hist.c_create_var_fields
|
; ModuleID = 'AnghaBench/netdata/libnetdata/threads/extr_..inlined.h_simple_hash_strcmp.c'
source_filename = "AnghaBench/netdata/libnetdata/threads/extr_..inlined.h_simple_hash_strcmp.c"
target datalayout = "e-m:e-p270:32:32-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 @simple_hash_strcmp], section "llvm.metadata"
; Function Attrs: inlinehint nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define internal i32 @simple_hash_strcmp(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) #0 {
%4 = load i8, ptr %0, align 1, !tbaa !5
%5 = icmp eq i8 %4, 0
br i1 %5, label %27, label %6
6: ; preds = %3, %19
%7 = phi i8 [ %25, %19 ], [ %4, %3 ]
%8 = phi i32 [ %21, %19 ], [ 0, %3 ]
%9 = phi i32 [ %24, %19 ], [ -2128831035, %3 ]
%10 = phi ptr [ %23, %19 ], [ %0, %3 ]
%11 = phi ptr [ %20, %19 ], [ %1, %3 ]
%12 = icmp eq i32 %8, 0
%13 = zext i8 %7 to i32
br i1 %12, label %14, label %19
14: ; preds = %6
%15 = getelementptr inbounds i8, ptr %11, i64 1
%16 = load i8, ptr %11, align 1, !tbaa !5
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %13, %17
br label %19
19: ; preds = %6, %14
%20 = phi ptr [ %15, %14 ], [ %11, %6 ]
%21 = phi i32 [ %18, %14 ], [ %8, %6 ]
%22 = mul nsw i32 %9, 16777619
%23 = getelementptr inbounds i8, ptr %10, i64 1
%24 = xor i32 %22, %13
%25 = load i8, ptr %23, align 1, !tbaa !5
%26 = icmp eq i8 %25, 0
br i1 %26, label %27, label %6, !llvm.loop !8
27: ; preds = %19, %3
%28 = phi i32 [ -2128831035, %3 ], [ %24, %19 ]
%29 = phi i32 [ 0, %3 ], [ %21, %19 ]
store i32 %28, ptr %2, align 4, !tbaa !10
ret i32 %29
}
attributes #0 = { inlinehint nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
|
; ModuleID = 'AnghaBench/netdata/libnetdata/threads/extr_..inlined.h_simple_hash_strcmp.c'
source_filename = "AnghaBench/netdata/libnetdata/threads/extr_..inlined.h_simple_hash_strcmp.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 @simple_hash_strcmp], section "llvm.metadata"
; Function Attrs: inlinehint nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define internal range(i32 -126, 384) i32 @simple_hash_strcmp(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) #0 {
%4 = load i8, ptr %0, align 1, !tbaa !6
%5 = icmp eq i8 %4, 0
br i1 %5, label %27, label %6
6: ; preds = %3, %19
%7 = phi i8 [ %25, %19 ], [ %4, %3 ]
%8 = phi i32 [ %21, %19 ], [ 0, %3 ]
%9 = phi i32 [ %24, %19 ], [ -2128831035, %3 ]
%10 = phi ptr [ %23, %19 ], [ %0, %3 ]
%11 = phi ptr [ %20, %19 ], [ %1, %3 ]
%12 = icmp eq i32 %8, 0
%13 = zext i8 %7 to i32
br i1 %12, label %14, label %19
14: ; preds = %6
%15 = getelementptr inbounds i8, ptr %11, i64 1
%16 = load i8, ptr %11, align 1, !tbaa !6
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %13, %17
br label %19
19: ; preds = %6, %14
%20 = phi ptr [ %15, %14 ], [ %11, %6 ]
%21 = phi i32 [ %18, %14 ], [ %8, %6 ]
%22 = mul nsw i32 %9, 16777619
%23 = getelementptr inbounds i8, ptr %10, i64 1
%24 = xor i32 %22, %13
%25 = load i8, ptr %23, align 1, !tbaa !6
%26 = icmp eq i8 %25, 0
br i1 %26, label %27, label %6, !llvm.loop !9
27: ; preds = %19, %3
%28 = phi i32 [ -2128831035, %3 ], [ %24, %19 ]
%29 = phi i32 [ 0, %3 ], [ %21, %19 ]
store i32 %28, ptr %2, align 4, !tbaa !11
ret i32 %29
}
attributes #0 = { inlinehint nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
|
netdata_libnetdata_threads_extr_..inlined.h_simple_hash_strcmp
|
; ModuleID = 'AnghaBench/h2o/deps/hiredis/extr_test.c_test_blocking_io_errors.c'
source_filename = "AnghaBench/h2o/deps/hiredis/extr_test.c_test_blocking_io_errors.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_11__ = type { i64, i32 }
@.str = private unnamed_addr constant [15 x i8] c"redis_version:\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"INFO\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Returns I/O error when the connection is lost: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"QUIT\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"OK\00", align 1
@REDIS_ERR = dso_local local_unnamed_addr global i64 0, align 8
@REDIS_ERR_EOF = dso_local local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [29 x i8] c"Server closed the connection\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"Returns I/O error on socket timeout: \00", align 1
@REDIS_OK = dso_local local_unnamed_addr global i64 0, align 8
@REDIS_ERR_IO = dso_local local_unnamed_addr global i64 0, align 8
@errno = dso_local local_unnamed_addr global i64 0, align 8
@EAGAIN = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_blocking_io_errors], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_blocking_io_errors(i32 %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%4 = tail call ptr @connect(i32 %0) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%5 = tail call ptr @redisCommand(ptr noundef %4, ptr noundef nonnull @.str.1) #4
%6 = load i32, ptr %5, align 4, !tbaa !5
%7 = tail call ptr @strstr(i32 noundef %6, ptr noundef nonnull @.str) #4
%8 = tail call i32 @strlen(ptr noundef nonnull @.str) #4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = call i32 @strtol(ptr noundef %10, ptr noundef nonnull %3, i32 noundef 10)
%12 = load ptr, ptr %3, align 8, !tbaa !10
%13 = getelementptr inbounds i8, ptr %12, i64 1
%14 = call i32 @strtol(ptr noundef nonnull %13, ptr noundef nonnull %3, i32 noundef 10)
%15 = tail call i32 @freeReplyObject(ptr noundef nonnull %5) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
%16 = tail call i32 @test(ptr noundef nonnull @.str.2) #4
%17 = tail call ptr @redisCommand(ptr noundef %4, ptr noundef nonnull @.str.3) #4
%18 = icmp sgt i32 %11, 2
br i1 %18, label %23, label %19
19: ; preds = %1
%20 = icmp eq i32 %11, 2
%21 = icmp sgt i32 %14, 0
%22 = select i1 %20, i1 %21, i1 false
br i1 %22, label %23, label %36
23: ; preds = %19, %1
%24 = load i32, ptr %17, align 4, !tbaa !5
%25 = tail call i64 @strcasecmp(i32 noundef %24, ptr noundef nonnull @.str.4) #4
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %23
%28 = call i64 @redisGetReply(ptr noundef %4, ptr noundef nonnull %2) #4
%29 = load i64, ptr @REDIS_ERR, align 8, !tbaa !12
%30 = icmp eq i64 %28, %29
%31 = zext i1 %30 to i32
br label %32
32: ; preds = %27, %23
%33 = phi i32 [ 0, %23 ], [ %31, %27 ]
%34 = call i32 @test_cond(i32 noundef %33) #4
%35 = call i32 @freeReplyObject(ptr noundef nonnull %17) #4
br label %40
36: ; preds = %19
%37 = icmp eq ptr %17, null
%38 = zext i1 %37 to i32
%39 = tail call i32 @test_cond(i32 noundef %38) #4
br label %40
40: ; preds = %36, %32
%41 = load i64, ptr %4, align 8, !tbaa !14
%42 = load i64, ptr @REDIS_ERR_EOF, align 8, !tbaa !12
%43 = icmp eq i64 %41, %42
br i1 %43, label %44, label %50
44: ; preds = %40
%45 = getelementptr inbounds %struct.TYPE_11__, ptr %4, i64 0, i32 1
%46 = load i32, ptr %45, align 8, !tbaa !16
%47 = call i64 @strcmp(i32 noundef %46, ptr noundef nonnull @.str.5) #4
%48 = icmp eq i64 %47, 0
%49 = zext i1 %48 to i32
br label %50
50: ; preds = %44, %40
%51 = phi i32 [ 0, %40 ], [ %49, %44 ]
%52 = call i32 @assert(i32 noundef %51) #4
%53 = call i32 @redisFree(ptr noundef nonnull %4) #4
%54 = call ptr @connect(i32 %0) #4
%55 = call i32 @test(ptr noundef nonnull @.str.6) #4
%56 = call i64 @redisSetTimeout(ptr noundef %54, i64 4294967296000) #4
%57 = load i64, ptr @REDIS_OK, align 8, !tbaa !12
%58 = icmp eq i64 %56, %57
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 noundef %59) #4
%61 = call i64 @redisGetReply(ptr noundef %54, ptr noundef nonnull %2) #4
%62 = load i64, ptr @REDIS_ERR, align 8, !tbaa !12
%63 = icmp eq i64 %61, %62
br i1 %63, label %64, label %73
64: ; preds = %50
%65 = load i64, ptr %54, align 8, !tbaa !14
%66 = load i64, ptr @REDIS_ERR_IO, align 8, !tbaa !12
%67 = icmp eq i64 %65, %66
br i1 %67, label %68, label %73
68: ; preds = %64
%69 = load i64, ptr @errno, align 8, !tbaa !12
%70 = load i64, ptr @EAGAIN, align 8, !tbaa !12
%71 = icmp eq i64 %69, %70
%72 = zext i1 %71 to i32
br label %73
73: ; preds = %68, %64, %50
%74 = phi i32 [ 0, %64 ], [ 0, %50 ], [ %72, %68 ]
%75 = call i32 @test_cond(i32 noundef %74) #4
%76 = call i32 @redisFree(ptr noundef %54) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @connect(i32) local_unnamed_addr #2
declare ptr @redisCommand(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @strstr(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn
declare i32 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3
declare i32 @strlen(ptr noundef) local_unnamed_addr #2
declare i32 @freeReplyObject(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @test(ptr noundef) local_unnamed_addr #2
declare i32 @test_cond(i32 noundef) local_unnamed_addr #2
declare i64 @strcasecmp(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @redisGetReply(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i64 @strcmp(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @redisFree(ptr noundef) local_unnamed_addr #2
declare i64 @redisSetTimeout(ptr noundef, i64) local_unnamed_addr #2
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_10__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"TYPE_11__", !13, i64 0, !7, i64 8}
!16 = !{!15, !7, i64 8}
|
; ModuleID = 'AnghaBench/h2o/deps/hiredis/extr_test.c_test_blocking_io_errors.c'
source_filename = "AnghaBench/h2o/deps/hiredis/extr_test.c_test_blocking_io_errors.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [15 x i8] c"redis_version:\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"INFO\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Returns I/O error when the connection is lost: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"QUIT\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"OK\00", align 1
@REDIS_ERR = common local_unnamed_addr global i64 0, align 8
@REDIS_ERR_EOF = common local_unnamed_addr global i64 0, align 8
@.str.5 = private unnamed_addr constant [29 x i8] c"Server closed the connection\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"Returns I/O error on socket timeout: \00", align 1
@REDIS_OK = common local_unnamed_addr global i64 0, align 8
@REDIS_ERR_IO = common local_unnamed_addr global i64 0, align 8
@errno = common local_unnamed_addr global i64 0, align 8
@EAGAIN = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @test_blocking_io_errors], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_blocking_io_errors(i64 %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
%4 = and i64 %0, 4294967295
%5 = tail call ptr @connect(i64 %4) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%6 = tail call ptr @redisCommand(ptr noundef %5, ptr noundef nonnull @.str.1) #4
%7 = load i32, ptr %6, align 4, !tbaa !6
%8 = tail call ptr @strstr(i32 noundef %7, ptr noundef nonnull @.str) #4
%9 = tail call i32 @strlen(ptr noundef nonnull @.str) #4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = call i32 @strtol(ptr noundef %11, ptr noundef nonnull %3, i32 noundef 10)
%13 = load ptr, ptr %3, align 8, !tbaa !11
%14 = getelementptr inbounds i8, ptr %13, i64 1
%15 = call i32 @strtol(ptr noundef nonnull %14, ptr noundef nonnull %3, i32 noundef 10)
%16 = tail call i32 @freeReplyObject(ptr noundef nonnull %6) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
%17 = tail call i32 @test(ptr noundef nonnull @.str.2) #4
%18 = tail call ptr @redisCommand(ptr noundef %5, ptr noundef nonnull @.str.3) #4
%19 = icmp sgt i32 %12, 2
br i1 %19, label %24, label %20
20: ; preds = %1
%21 = icmp eq i32 %12, 2
%22 = icmp sgt i32 %15, 0
%23 = select i1 %21, i1 %22, i1 false
br i1 %23, label %24, label %37
24: ; preds = %20, %1
%25 = load i32, ptr %18, align 4, !tbaa !6
%26 = tail call i64 @strcasecmp(i32 noundef %25, ptr noundef nonnull @.str.4) #4
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = call i64 @redisGetReply(ptr noundef %5, ptr noundef nonnull %2) #4
%30 = load i64, ptr @REDIS_ERR, align 8, !tbaa !13
%31 = icmp eq i64 %29, %30
%32 = zext i1 %31 to i32
br label %33
33: ; preds = %28, %24
%34 = phi i32 [ 0, %24 ], [ %32, %28 ]
%35 = call i32 @test_cond(i32 noundef %34) #4
%36 = call i32 @freeReplyObject(ptr noundef nonnull %18) #4
br label %41
37: ; preds = %20
%38 = icmp eq ptr %18, null
%39 = zext i1 %38 to i32
%40 = tail call i32 @test_cond(i32 noundef %39) #4
br label %41
41: ; preds = %37, %33
%42 = load i64, ptr %5, align 8, !tbaa !15
%43 = load i64, ptr @REDIS_ERR_EOF, align 8, !tbaa !13
%44 = icmp eq i64 %42, %43
br i1 %44, label %45, label %51
45: ; preds = %41
%46 = getelementptr inbounds i8, ptr %5, i64 8
%47 = load i32, ptr %46, align 8, !tbaa !17
%48 = call i64 @strcmp(i32 noundef %47, ptr noundef nonnull @.str.5) #4
%49 = icmp eq i64 %48, 0
%50 = zext i1 %49 to i32
br label %51
51: ; preds = %45, %41
%52 = phi i32 [ 0, %41 ], [ %50, %45 ]
%53 = call i32 @assert(i32 noundef %52) #4
%54 = call i32 @redisFree(ptr noundef nonnull %5) #4
%55 = call ptr @connect(i64 %4) #4
%56 = call i32 @test(ptr noundef nonnull @.str.6) #4
%57 = call i64 @redisSetTimeout(ptr noundef %55, i64 4294967296000) #4
%58 = load i64, ptr @REDIS_OK, align 8, !tbaa !13
%59 = icmp eq i64 %57, %58
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60) #4
%62 = call i64 @redisGetReply(ptr noundef %55, ptr noundef nonnull %2) #4
%63 = load i64, ptr @REDIS_ERR, align 8, !tbaa !13
%64 = icmp eq i64 %62, %63
br i1 %64, label %65, label %74
65: ; preds = %51
%66 = load i64, ptr %55, align 8, !tbaa !15
%67 = load i64, ptr @REDIS_ERR_IO, align 8, !tbaa !13
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %74
69: ; preds = %65
%70 = load i64, ptr @errno, align 8, !tbaa !13
%71 = load i64, ptr @EAGAIN, align 8, !tbaa !13
%72 = icmp eq i64 %70, %71
%73 = zext i1 %72 to i32
br label %74
74: ; preds = %69, %65, %51
%75 = phi i32 [ 0, %65 ], [ 0, %51 ], [ %73, %69 ]
%76 = call i32 @test_cond(i32 noundef %75) #4
%77 = call i32 @redisFree(ptr noundef %55) #4
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @connect(i64) local_unnamed_addr #2
declare ptr @redisCommand(ptr noundef, ptr noundef) local_unnamed_addr #2
declare ptr @strstr(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nofree nounwind willreturn
declare i32 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3
declare i32 @strlen(ptr noundef) local_unnamed_addr #2
declare i32 @freeReplyObject(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @test(ptr noundef) local_unnamed_addr #2
declare i32 @test_cond(i32 noundef) local_unnamed_addr #2
declare i64 @strcasecmp(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @redisGetReply(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @assert(i32 noundef) local_unnamed_addr #2
declare i64 @strcmp(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @redisFree(ptr noundef) local_unnamed_addr #2
declare i64 @redisSetTimeout(ptr noundef, i64) local_unnamed_addr #2
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { mustprogress nofree nounwind willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_10__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"TYPE_11__", !14, i64 0, !8, i64 8}
!17 = !{!16, !8, i64 8}
|
h2o_deps_hiredis_extr_test.c_test_blocking_io_errors
|
; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/extr_composite.c_usb_remove_function.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/extr_composite.c_usb_remove_function.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.usb_function = type { i64, ptr, i32, i32, ptr }
; Function Attrs: nounwind uwtable
define dso_local void @usb_remove_function(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds %struct.usb_function, ptr %1, i64 0, i32 4
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 %4(ptr noundef nonnull %1) #2
br label %8
8: ; preds = %6, %2
%9 = getelementptr inbounds %struct.usb_function, ptr %1, i64 0, i32 3
%10 = load i32, ptr %9, align 4, !tbaa !12
%11 = tail call i32 @bitmap_zero(i32 noundef %10, i32 noundef 32) #2
%12 = getelementptr inbounds %struct.usb_function, ptr %1, i64 0, i32 2
%13 = tail call i32 @list_del(ptr noundef nonnull %12) #2
%14 = getelementptr inbounds %struct.usb_function, ptr %1, i64 0, i32 1
%15 = load ptr, ptr %14, align 8, !tbaa !13
%16 = icmp eq ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %8
%18 = tail call i32 %15(ptr noundef %0, ptr noundef nonnull %1) #2
br label %19
19: ; preds = %17, %8
%20 = load i64, ptr %1, align 8, !tbaa !14
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @usb_function_activate(ptr noundef nonnull %1) #2
br label %24
24: ; preds = %22, %19
ret void
}
declare i32 @bitmap_zero(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i32 @usb_function_activate(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 24}
!6 = !{!"usb_function", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !10, i64 24}
!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 = !{!6, !11, i64 20}
!13 = !{!6, !10, i64 8}
!14 = !{!6, !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/usb/gadget/extr_composite.c_usb_remove_function.c'
source_filename = "AnghaBench/linux/drivers/usb/gadget/extr_composite.c_usb_remove_function.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 @usb_remove_function(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
%3 = getelementptr inbounds i8, ptr %1, i64 24
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 %4(ptr noundef nonnull %1) #2
br label %8
8: ; preds = %6, %2
%9 = getelementptr inbounds i8, ptr %1, i64 20
%10 = load i32, ptr %9, align 4, !tbaa !13
%11 = tail call i32 @bitmap_zero(i32 noundef %10, i32 noundef 32) #2
%12 = getelementptr inbounds i8, ptr %1, i64 16
%13 = tail call i32 @list_del(ptr noundef nonnull %12) #2
%14 = getelementptr inbounds i8, ptr %1, i64 8
%15 = load ptr, ptr %14, align 8, !tbaa !14
%16 = icmp eq ptr %15, null
br i1 %16, label %19, label %17
17: ; preds = %8
%18 = tail call i32 %15(ptr noundef %0, ptr noundef nonnull %1) #2
br label %19
19: ; preds = %17, %8
%20 = load i64, ptr %1, align 8, !tbaa !15
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @usb_function_activate(ptr noundef nonnull %1) #2
br label %24
24: ; preds = %22, %19
ret void
}
declare i32 @bitmap_zero(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i32 @usb_function_activate(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 24}
!7 = !{!"usb_function", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !11, i64 24}
!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 = !{!7, !12, i64 20}
!14 = !{!7, !11, i64 8}
!15 = !{!7, !8, i64 0}
|
linux_drivers_usb_gadget_extr_composite.c_usb_remove_function
|
; ModuleID = 'AnghaBench/linux/drivers/remoteproc/extr_qcom_q6v5_mss.c_q6v5_clk_enable.c'
source_filename = "AnghaBench/linux/drivers/remoteproc/extr_qcom_q6v5_mss.c_q6v5_clk_enable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Clock enable failed\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @q6v5_clk_enable], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @q6v5_clk_enable(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %28
5: ; preds = %3
%6 = zext nneg i32 %2 to i64
br label %7
7: ; preds = %5, %17
%8 = phi i64 [ 0, %5 ], [ %18, %17 ]
%9 = getelementptr inbounds ptr, ptr %1, i64 %8
%10 = load ptr, ptr %9, align 8, !tbaa !5
%11 = tail call i32 @clk_prepare_enable(ptr noundef %10) #2
%12 = icmp eq i32 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %7
%14 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str) #2
%15 = and i64 %8, 4294967295
%16 = icmp eq i64 %15, 0
br i1 %16, label %28, label %20
17: ; preds = %7
%18 = add nuw nsw i64 %8, 1
%19 = icmp eq i64 %18, %6
br i1 %19, label %28, label %7, !llvm.loop !9
20: ; preds = %13, %20
%21 = phi i64 [ %22, %20 ], [ %8, %13 ]
%22 = add nsw i64 %21, -1
%23 = and i64 %22, 4294967295
%24 = getelementptr inbounds ptr, ptr %1, i64 %23
%25 = load ptr, ptr %24, align 8, !tbaa !5
%26 = tail call i32 @clk_disable_unprepare(ptr noundef %25) #2
%27 = icmp sgt i64 %21, 1
br i1 %27, label %20, label %28, !llvm.loop !11
28: ; preds = %17, %20, %3, %13
%29 = phi i32 [ %11, %13 ], [ 0, %3 ], [ %11, %20 ], [ 0, %17 ]
ret i32 %29
}
declare i32 @clk_prepare_enable(ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
|
; ModuleID = 'AnghaBench/linux/drivers/remoteproc/extr_qcom_q6v5_mss.c_q6v5_clk_enable.c'
source_filename = "AnghaBench/linux/drivers/remoteproc/extr_qcom_q6v5_mss.c_q6v5_clk_enable.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 [21 x i8] c"Clock enable failed\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @q6v5_clk_enable], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @q6v5_clk_enable(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) #0 {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %27
5: ; preds = %3
%6 = zext nneg i32 %2 to i64
br label %7
7: ; preds = %5, %16
%8 = phi i64 [ 0, %5 ], [ %17, %16 ]
%9 = getelementptr inbounds ptr, ptr %1, i64 %8
%10 = load ptr, ptr %9, align 8, !tbaa !6
%11 = tail call i32 @clk_prepare_enable(ptr noundef %10) #2
%12 = icmp eq i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %7
%14 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str) #2
%15 = icmp eq i64 %8, 0
br i1 %15, label %27, label %19
16: ; preds = %7
%17 = add nuw nsw i64 %8, 1
%18 = icmp eq i64 %17, %6
br i1 %18, label %27, label %7, !llvm.loop !10
19: ; preds = %13, %19
%20 = phi i64 [ %21, %19 ], [ %8, %13 ]
%21 = add nsw i64 %20, -1
%22 = and i64 %21, 4294967295
%23 = getelementptr inbounds ptr, ptr %1, i64 %22
%24 = load ptr, ptr %23, align 8, !tbaa !6
%25 = tail call i32 @clk_disable_unprepare(ptr noundef %24) #2
%26 = icmp sgt i64 %20, 1
br i1 %26, label %19, label %27, !llvm.loop !12
27: ; preds = %16, %19, %3, %13
%28 = phi i32 [ %11, %13 ], [ 0, %3 ], [ %11, %19 ], [ 0, %16 ]
ret i32 %28
}
declare i32 @clk_prepare_enable(ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @clk_disable_unprepare(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
|
linux_drivers_remoteproc_extr_qcom_q6v5_mss.c_q6v5_clk_enable
|
; ModuleID = 'AnghaBench/linux/drivers/iio/proximity/extr_srf04.c_srf04_read_raw.c'
source_filename = "AnghaBench/linux/drivers/iio/proximity/extr_srf04.c_srf04_read_raw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@IIO_DISTANCE = dso_local local_unnamed_addr global i64 0, align 8
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
@IIO_VAL_INT = dso_local local_unnamed_addr global i32 0, align 4
@IIO_VAL_INT_PLUS_MICRO = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @srf04_read_raw], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @srf04_read_raw(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, i64 noundef %4) #0 {
%6 = tail call ptr @iio_priv(ptr noundef %0) #2
%7 = load i64, ptr %1, align 8, !tbaa !5
%8 = load i64, ptr @IIO_DISTANCE, align 8, !tbaa !10
%9 = icmp eq i64 %7, %8
br i1 %9, label %13, label %10
10: ; preds = %5
%11 = load i32, ptr @EINVAL, align 4, !tbaa !11
%12 = sub nsw i32 0, %11
br label %24
13: ; preds = %5
switch i64 %4, label %21 [
i64 129, label %14
i64 128, label %19
]
14: ; preds = %13
%15 = tail call i32 @srf04_read(ptr noundef %6) #2
%16 = icmp slt i32 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %14
store i32 %15, ptr %2, align 4, !tbaa !11
%18 = load i32, ptr @IIO_VAL_INT, align 4, !tbaa !11
br label %24
19: ; preds = %13
store i32 0, ptr %2, align 4, !tbaa !11
store i32 1000, ptr %3, align 4, !tbaa !11
%20 = load i32, ptr @IIO_VAL_INT_PLUS_MICRO, align 4, !tbaa !11
br label %24
21: ; preds = %13
%22 = load i32, ptr @EINVAL, align 4, !tbaa !11
%23 = sub nsw i32 0, %22
br label %24
24: ; preds = %14, %21, %19, %17, %10
%25 = phi i32 [ %12, %10 ], [ %23, %21 ], [ %20, %19 ], [ %18, %17 ], [ %15, %14 ]
ret i32 %25
}
declare ptr @iio_priv(ptr noundef) local_unnamed_addr #1
declare i32 @srf04_read(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 = !{!"iio_chan_spec", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/iio/proximity/extr_srf04.c_srf04_read_raw.c'
source_filename = "AnghaBench/linux/drivers/iio/proximity/extr_srf04.c_srf04_read_raw.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@IIO_DISTANCE = common local_unnamed_addr global i64 0, align 8
@EINVAL = common local_unnamed_addr global i32 0, align 4
@IIO_VAL_INT = common local_unnamed_addr global i32 0, align 4
@IIO_VAL_INT_PLUS_MICRO = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @srf04_read_raw], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @srf04_read_raw(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, i64 noundef %4) #0 {
%6 = tail call ptr @iio_priv(ptr noundef %0) #2
%7 = load i64, ptr %1, align 8, !tbaa !6
%8 = load i64, ptr @IIO_DISTANCE, align 8, !tbaa !11
%9 = icmp eq i64 %7, %8
br i1 %9, label %13, label %10
10: ; preds = %5
%11 = load i32, ptr @EINVAL, align 4, !tbaa !12
%12 = sub nsw i32 0, %11
br label %24
13: ; preds = %5
switch i64 %4, label %21 [
i64 129, label %14
i64 128, label %19
]
14: ; preds = %13
%15 = tail call i32 @srf04_read(ptr noundef %6) #2
%16 = icmp slt i32 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %14
store i32 %15, ptr %2, align 4, !tbaa !12
%18 = load i32, ptr @IIO_VAL_INT, align 4, !tbaa !12
br label %24
19: ; preds = %13
store i32 0, ptr %2, align 4, !tbaa !12
store i32 1000, ptr %3, align 4, !tbaa !12
%20 = load i32, ptr @IIO_VAL_INT_PLUS_MICRO, align 4, !tbaa !12
br label %24
21: ; preds = %13
%22 = load i32, ptr @EINVAL, align 4, !tbaa !12
%23 = sub nsw i32 0, %22
br label %24
24: ; preds = %14, %21, %19, %17, %10
%25 = phi i32 [ %12, %10 ], [ %23, %21 ], [ %20, %19 ], [ %18, %17 ], [ %15, %14 ]
ret i32 %25
}
declare ptr @iio_priv(ptr noundef) local_unnamed_addr #1
declare i32 @srf04_read(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 = !{!"iio_chan_spec", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!8, !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
|
linux_drivers_iio_proximity_extr_srf04.c_srf04_read_raw
|
; ModuleID = 'AnghaBench/linux/drivers/scsi/lpfc/extr_lpfc_nvme.c_lpfc_nvme_wait_for_io_drain.c'
source_filename = "AnghaBench/linux/drivers/scsi/lpfc/extr_lpfc_nvme.c_lpfc_nvme_wait_for_io_drain.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.lpfc_hba = type { i64, i64, %struct.TYPE_6__ }
%struct.TYPE_6__ = type { ptr }
%struct.TYPE_5__ = type { ptr }
@LPFC_SLI_REV4 = dso_local local_unnamed_addr global i64 0, align 8
@LPFC_XRI_EXCH_BUSY_WAIT_T1 = dso_local local_unnamed_addr global i32 0, align 4
@KERN_ERR = dso_local local_unnamed_addr global i32 0, align 4
@LOG_NVME_IOERR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"6178 NVME IO not empty, cnt %d\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local void @lpfc_nvme_wait_for_io_drain(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i64, ptr %0, align 8, !tbaa !5
%3 = load i64, ptr @LPFC_SLI_REV4, align 8, !tbaa !12
%4 = icmp slt i64 %2, %3
br i1 %4, label %45, label %5
5: ; preds = %1
%6 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 2
%7 = load ptr, ptr %6, align 8, !tbaa !13
%8 = icmp eq ptr %7, null
br i1 %8, label %45, label %9
9: ; preds = %5
%10 = getelementptr inbounds %struct.lpfc_hba, ptr %0, i64 0, i32 1
%11 = load i64, ptr %10, align 8, !tbaa !14
%12 = icmp eq i64 %11, 0
br i1 %12, label %45, label %13
13: ; preds = %9, %40
%14 = phi i64 [ %41, %40 ], [ 0, %9 ]
%15 = phi i64 [ %42, %40 ], [ 0, %9 ]
%16 = load ptr, ptr %6, align 8, !tbaa !13
%17 = getelementptr inbounds %struct.TYPE_5__, ptr %16, i64 %15
%18 = load ptr, ptr %17, align 8, !tbaa !15
%19 = icmp eq ptr %18, null
br i1 %19, label %40, label %20
20: ; preds = %13
%21 = load ptr, ptr %18, align 8, !tbaa !17
%22 = icmp eq ptr %21, null
br i1 %22, label %40, label %23
23: ; preds = %20
%24 = tail call i32 @list_empty(ptr noundef nonnull %21) #2
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %40
26: ; preds = %23, %37
%27 = phi i64 [ %30, %37 ], [ %14, %23 ]
%28 = load i32, ptr @LPFC_XRI_EXCH_BUSY_WAIT_T1, align 4, !tbaa !19
%29 = tail call i32 @msleep(i32 noundef %28) #2
%30 = add i64 %27, 1
%31 = urem i64 %30, 1000
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %26
%34 = load i32, ptr @KERN_ERR, align 4, !tbaa !19
%35 = load i32, ptr @LOG_NVME_IOERR, align 4, !tbaa !19
%36 = tail call i32 @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %34, i32 noundef %35, ptr noundef nonnull @.str, i64 noundef %30) #2
br label %37
37: ; preds = %33, %26
%38 = tail call i32 @list_empty(ptr noundef nonnull %21) #2
%39 = icmp eq i32 %38, 0
br i1 %39, label %26, label %40, !llvm.loop !21
40: ; preds = %37, %23, %20, %13
%41 = phi i64 [ %14, %20 ], [ %14, %13 ], [ %14, %23 ], [ %30, %37 ]
%42 = add nuw i64 %15, 1
%43 = load i64, ptr %10, align 8, !tbaa !14
%44 = icmp ult i64 %42, %43
br i1 %44, label %13, label %45, !llvm.loop !23
45: ; preds = %40, %9, %1, %5
ret void
}
declare i32 @list_empty(ptr noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_printf_log(ptr noundef, i32 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 = !{!"lpfc_hba", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_6__", !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !7, i64 8}
!15 = !{!16, !11, i64 0}
!16 = !{!"TYPE_5__", !11, i64 0}
!17 = !{!18, !11, i64 0}
!18 = !{!"TYPE_4__", !11, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
|
; ModuleID = 'AnghaBench/linux/drivers/scsi/lpfc/extr_lpfc_nvme.c_lpfc_nvme_wait_for_io_drain.c'
source_filename = "AnghaBench/linux/drivers/scsi/lpfc/extr_lpfc_nvme.c_lpfc_nvme_wait_for_io_drain.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_5__ = type { ptr }
@LPFC_SLI_REV4 = common local_unnamed_addr global i64 0, align 8
@LPFC_XRI_EXCH_BUSY_WAIT_T1 = common local_unnamed_addr global i32 0, align 4
@KERN_ERR = common local_unnamed_addr global i32 0, align 4
@LOG_NVME_IOERR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"6178 NVME IO not empty, cnt %d\0A\00", align 1
; Function Attrs: nounwind ssp uwtable(sync)
define void @lpfc_nvme_wait_for_io_drain(ptr noundef %0) local_unnamed_addr #0 {
%2 = load i64, ptr %0, align 8, !tbaa !6
%3 = load i64, ptr @LPFC_SLI_REV4, align 8, !tbaa !13
%4 = icmp slt i64 %2, %3
br i1 %4, label %45, label %5
5: ; preds = %1
%6 = getelementptr inbounds i8, ptr %0, i64 16
%7 = load ptr, ptr %6, align 8, !tbaa !14
%8 = icmp eq ptr %7, null
br i1 %8, label %45, label %9
9: ; preds = %5
%10 = getelementptr inbounds i8, ptr %0, i64 8
%11 = load i64, ptr %10, align 8, !tbaa !15
%12 = icmp eq i64 %11, 0
br i1 %12, label %45, label %13
13: ; preds = %9, %40
%14 = phi i64 [ %41, %40 ], [ 0, %9 ]
%15 = phi i64 [ %42, %40 ], [ 0, %9 ]
%16 = load ptr, ptr %6, align 8, !tbaa !14
%17 = getelementptr inbounds %struct.TYPE_5__, ptr %16, i64 %15
%18 = load ptr, ptr %17, align 8, !tbaa !16
%19 = icmp eq ptr %18, null
br i1 %19, label %40, label %20
20: ; preds = %13
%21 = load ptr, ptr %18, align 8, !tbaa !18
%22 = icmp eq ptr %21, null
br i1 %22, label %40, label %23
23: ; preds = %20
%24 = tail call i32 @list_empty(ptr noundef nonnull %21) #2
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %40
26: ; preds = %23, %37
%27 = phi i64 [ %30, %37 ], [ %14, %23 ]
%28 = load i32, ptr @LPFC_XRI_EXCH_BUSY_WAIT_T1, align 4, !tbaa !20
%29 = tail call i32 @msleep(i32 noundef %28) #2
%30 = add i64 %27, 1
%31 = urem i64 %30, 1000
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %26
%34 = load i32, ptr @KERN_ERR, align 4, !tbaa !20
%35 = load i32, ptr @LOG_NVME_IOERR, align 4, !tbaa !20
%36 = tail call i32 @lpfc_printf_log(ptr noundef nonnull %0, i32 noundef %34, i32 noundef %35, ptr noundef nonnull @.str, i64 noundef %30) #2
br label %37
37: ; preds = %33, %26
%38 = tail call i32 @list_empty(ptr noundef nonnull %21) #2
%39 = icmp eq i32 %38, 0
br i1 %39, label %26, label %40, !llvm.loop !22
40: ; preds = %37, %23, %20, %13
%41 = phi i64 [ %14, %20 ], [ %14, %13 ], [ %14, %23 ], [ %30, %37 ]
%42 = add nuw i64 %15, 1
%43 = load i64, ptr %10, align 8, !tbaa !15
%44 = icmp ult i64 %42, %43
br i1 %44, label %13, label %45, !llvm.loop !24
45: ; preds = %40, %9, %1, %5
ret void
}
declare i32 @list_empty(ptr noundef) local_unnamed_addr #1
declare i32 @msleep(i32 noundef) local_unnamed_addr #1
declare i32 @lpfc_printf_log(ptr noundef, i32 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 = !{!"lpfc_hba", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_6__", !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !12, i64 16}
!15 = !{!7, !8, i64 8}
!16 = !{!17, !12, i64 0}
!17 = !{!"TYPE_5__", !12, i64 0}
!18 = !{!19, !12, i64 0}
!19 = !{!"TYPE_4__", !12, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !9, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
|
linux_drivers_scsi_lpfc_extr_lpfc_nvme.c_lpfc_nvme_wait_for_io_drain
|
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/soc/blackfin/extr_bf5xx-ac97-pcm.c_bf5xx_pcm_hw_params.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/soc/blackfin/extr_bf5xx-ac97-pcm.c_bf5xx_pcm_hw_params.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i32 }
@bf5xx_pcm_hardware = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @bf5xx_pcm_hw_params], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @bf5xx_pcm_hw_params(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = load i32, ptr @bf5xx_pcm_hardware, align 4, !tbaa !5
%4 = sext i32 %3 to i64
%5 = and i64 %4, 4611686018427387903
%6 = tail call i32 @snd_pcm_lib_malloc_pages(ptr noundef %0, i64 noundef %5) #2
ret i32 0
}
declare i32 @snd_pcm_lib_malloc_pages(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_2__", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/sound/soc/blackfin/extr_bf5xx-ac97-pcm.c_bf5xx_pcm_hw_params.c'
source_filename = "AnghaBench/fastsocket/kernel/sound/soc/blackfin/extr_bf5xx-ac97-pcm.c_bf5xx_pcm_hw_params.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 }
@bf5xx_pcm_hardware = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
@llvm.used = appending global [1 x ptr] [ptr @bf5xx_pcm_hw_params], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @bf5xx_pcm_hw_params(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = load i32, ptr @bf5xx_pcm_hardware, align 4, !tbaa !6
%4 = sext i32 %3 to i64
%5 = and i64 %4, 4611686018427387903
%6 = tail call i32 @snd_pcm_lib_malloc_pages(ptr noundef %0, i64 noundef %5) #2
ret i32 0
}
declare i32 @snd_pcm_lib_malloc_pages(ptr noundef, i64 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
|
fastsocket_kernel_sound_soc_blackfin_extr_bf5xx-ac97-pcm.c_bf5xx_pcm_hw_params
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/isci/scil/extr_scif_sas_controller_state_handlers.c_scif_sas_controller_failed_reset_handler.c'
source_filename = "AnghaBench/freebsd/sys/dev/isci/scil/extr_scif_sas_controller_state_handlers.c_scif_sas_controller_failed_reset_handler.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @scif_sas_controller_failed_reset_handler], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @scif_sas_controller_failed_reset_handler(ptr noundef %0) #0 {
%2 = tail call i32 @scif_sas_controller_execute_reset(ptr noundef %0) #2
ret i32 %2
}
declare i32 @scif_sas_controller_execute_reset(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/isci/scil/extr_scif_sas_controller_state_handlers.c_scif_sas_controller_failed_reset_handler.c'
source_filename = "AnghaBench/freebsd/sys/dev/isci/scil/extr_scif_sas_controller_state_handlers.c_scif_sas_controller_failed_reset_handler.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 @scif_sas_controller_failed_reset_handler], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @scif_sas_controller_failed_reset_handler(ptr noundef %0) #0 {
%2 = tail call i32 @scif_sas_controller_execute_reset(ptr noundef %0) #2
ret i32 %2
}
declare i32 @scif_sas_controller_execute_reset(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
freebsd_sys_dev_isci_scil_extr_scif_sas_controller_state_handlers.c_scif_sas_controller_failed_reset_handler
|
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/arm/mm/extr_cache-feroceon-l2.c_l2_inv_all.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/arm/mm/extr_cache-feroceon-l2.c_l2_inv_all.c"
target datalayout = "e-m:e-p270:32:32-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 @l2_inv_all], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @l2_inv_all() #0 {
tail call void asm sideeffect "mcr p15, 1, $0, c15, c11, 0", "r,~{dirflag},~{fpsr},~{flags}"(i32 0) #1, !srcloc !5
ret void
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{i64 462}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/arm/mm/extr_cache-feroceon-l2.c_l2_inv_all.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/arm/mm/extr_cache-feroceon-l2.c_l2_inv_all.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 @l2_inv_all], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @l2_inv_all() #0 {
tail call void asm sideeffect "mcr p15, 1, $0, c15, c11, 0", "r"(i32 0) #1, !srcloc !6
ret void
}
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{i64 462}
|
fastsocket_kernel_arch_arm_mm_extr_cache-feroceon-l2.c_l2_inv_all
|
; ModuleID = 'AnghaBench/linux/drivers/reset/extr_reset-zynq.c_zynq_reset_probe.c'
source_filename = "AnghaBench/linux/drivers/reset/extr_reset-zynq.c_zynq_reset_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.zynq_reset_data = type { %struct.TYPE_6__, i32, i32 }
%struct.TYPE_6__ = type { i32, i32, ptr, i32 }
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"syscon\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"unable to get zynq-slcr regmap\00", align 1
@IORESOURCE_MEM = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"missing IO resource\0A\00", align 1
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@THIS_MODULE = dso_local local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG = dso_local local_unnamed_addr global i32 0, align 4
@zynq_reset_ops = dso_local global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @zynq_reset_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @zynq_reset_probe(ptr noundef %0) #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%3 = tail call ptr @devm_kzalloc(ptr noundef %0, i32 noundef 32, i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%7 = sub nsw i32 0, %6
br label %40
8: ; preds = %1
%9 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %3) #2
%10 = load i32, ptr %0, align 4, !tbaa !9
%11 = tail call i32 @syscon_regmap_lookup_by_phandle(i32 noundef %10, ptr noundef nonnull @.str) #2
%12 = getelementptr inbounds %struct.zynq_reset_data, ptr %3, i64 0, i32 2
store i32 %11, ptr %12, align 4, !tbaa !12
%13 = tail call i64 @IS_ERR(i32 noundef %11) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %8
%16 = tail call i32 @dev_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #2
%17 = load i32, ptr %12, align 4, !tbaa !12
%18 = tail call i32 @PTR_ERR(i32 noundef %17) #2
br label %40
19: ; preds = %8
%20 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !5
%21 = tail call ptr @platform_get_resource(ptr noundef nonnull %0, i32 noundef %20, i32 noundef 0) #2
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = tail call i32 @dev_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #2
%25 = load i32, ptr @ENODEV, align 4, !tbaa !5
%26 = sub nsw i32 0, %25
br label %40
27: ; preds = %19
%28 = load i32, ptr %21, align 4, !tbaa !16
%29 = getelementptr inbounds %struct.zynq_reset_data, ptr %3, i64 0, i32 1
store i32 %28, ptr %29, align 8, !tbaa !18
%30 = load i32, ptr @THIS_MODULE, align 4, !tbaa !5
%31 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 0, i32 3
store i32 %30, ptr %31, align 8, !tbaa !19
%32 = tail call i32 @resource_size(ptr noundef nonnull %21) #2
%33 = sdiv i32 %32, 4
%34 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !5
%35 = mul nsw i32 %33, %34
store i32 %35, ptr %3, align 8, !tbaa !20
%36 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 0, i32 2
store ptr @zynq_reset_ops, ptr %36, align 8, !tbaa !21
%37 = load i32, ptr %0, align 4, !tbaa !9
%38 = getelementptr inbounds %struct.TYPE_6__, ptr %3, i64 0, i32 1
store i32 %37, ptr %38, align 4, !tbaa !22
%39 = tail call i32 @devm_reset_controller_register(ptr noundef nonnull %0, ptr noundef nonnull %3) #2
br label %40
40: ; preds = %27, %23, %15, %5
%41 = phi i32 [ %18, %15 ], [ %39, %27 ], [ %26, %23 ], [ %7, %5 ]
ret i32 %41
}
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @syscon_regmap_lookup_by_phandle(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #1
declare ptr @platform_get_resource(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @resource_size(ptr noundef) local_unnamed_addr #1
declare i32 @devm_reset_controller_register(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"platform_device", !11, i64 0}
!11 = !{!"TYPE_5__", !6, i64 0}
!12 = !{!13, !6, i64 28}
!13 = !{!"zynq_reset_data", !14, i64 0, !6, i64 24, !6, i64 28}
!14 = !{!"TYPE_6__", !6, i64 0, !6, i64 4, !15, i64 8, !6, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"resource", !6, i64 0}
!18 = !{!13, !6, i64 24}
!19 = !{!13, !6, i64 16}
!20 = !{!13, !6, i64 0}
!21 = !{!13, !15, i64 8}
!22 = !{!13, !6, i64 4}
|
; ModuleID = 'AnghaBench/linux/drivers/reset/extr_reset-zynq.c_zynq_reset_probe.c'
source_filename = "AnghaBench/linux/drivers/reset/extr_reset-zynq.c_zynq_reset_probe.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"syscon\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"unable to get zynq-slcr regmap\00", align 1
@IORESOURCE_MEM = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"missing IO resource\0A\00", align 1
@ENODEV = common local_unnamed_addr global i32 0, align 4
@THIS_MODULE = common local_unnamed_addr global i32 0, align 4
@BITS_PER_LONG = common local_unnamed_addr global i32 0, align 4
@zynq_reset_ops = common global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @zynq_reset_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @zynq_reset_probe(ptr noundef %0) #0 {
%2 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%3 = tail call ptr @devm_kzalloc(ptr noundef %0, i32 noundef 32, i32 noundef %2) #2
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%7 = sub nsw i32 0, %6
br label %40
8: ; preds = %1
%9 = tail call i32 @platform_set_drvdata(ptr noundef %0, ptr noundef nonnull %3) #2
%10 = load i32, ptr %0, align 4, !tbaa !10
%11 = tail call i32 @syscon_regmap_lookup_by_phandle(i32 noundef %10, ptr noundef nonnull @.str) #2
%12 = getelementptr inbounds i8, ptr %3, i64 28
store i32 %11, ptr %12, align 4, !tbaa !13
%13 = tail call i64 @IS_ERR(i32 noundef %11) #2
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %8
%16 = tail call i32 @dev_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #2
%17 = load i32, ptr %12, align 4, !tbaa !13
%18 = tail call i32 @PTR_ERR(i32 noundef %17) #2
br label %40
19: ; preds = %8
%20 = load i32, ptr @IORESOURCE_MEM, align 4, !tbaa !6
%21 = tail call ptr @platform_get_resource(ptr noundef nonnull %0, i32 noundef %20, i32 noundef 0) #2
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = tail call i32 @dev_err(ptr noundef nonnull %0, ptr noundef nonnull @.str.2) #2
%25 = load i32, ptr @ENODEV, align 4, !tbaa !6
%26 = sub nsw i32 0, %25
br label %40
27: ; preds = %19
%28 = load i32, ptr %21, align 4, !tbaa !17
%29 = getelementptr inbounds i8, ptr %3, i64 24
store i32 %28, ptr %29, align 8, !tbaa !19
%30 = load i32, ptr @THIS_MODULE, align 4, !tbaa !6
%31 = getelementptr inbounds i8, ptr %3, i64 16
store i32 %30, ptr %31, align 8, !tbaa !20
%32 = tail call i32 @resource_size(ptr noundef nonnull %21) #2
%33 = sdiv i32 %32, 4
%34 = load i32, ptr @BITS_PER_LONG, align 4, !tbaa !6
%35 = mul nsw i32 %33, %34
store i32 %35, ptr %3, align 8, !tbaa !21
%36 = getelementptr inbounds i8, ptr %3, i64 8
store ptr @zynq_reset_ops, ptr %36, align 8, !tbaa !22
%37 = load i32, ptr %0, align 4, !tbaa !10
%38 = getelementptr inbounds i8, ptr %3, i64 4
store i32 %37, ptr %38, align 4, !tbaa !23
%39 = tail call i32 @devm_reset_controller_register(ptr noundef nonnull %0, ptr noundef nonnull %3) #2
br label %40
40: ; preds = %27, %23, %15, %5
%41 = phi i32 [ %18, %15 ], [ %39, %27 ], [ %26, %23 ], [ %7, %5 ]
ret i32 %41
}
declare ptr @devm_kzalloc(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @platform_set_drvdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @syscon_regmap_lookup_by_phandle(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i64 @IS_ERR(i32 noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @PTR_ERR(i32 noundef) local_unnamed_addr #1
declare ptr @platform_get_resource(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @resource_size(ptr noundef) local_unnamed_addr #1
declare i32 @devm_reset_controller_register(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"platform_device", !12, i64 0}
!12 = !{!"TYPE_5__", !7, i64 0}
!13 = !{!14, !7, i64 28}
!14 = !{!"zynq_reset_data", !15, i64 0, !7, i64 24, !7, i64 28}
!15 = !{!"TYPE_6__", !7, i64 0, !7, i64 4, !16, i64 8, !7, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"resource", !7, i64 0}
!19 = !{!14, !7, i64 24}
!20 = !{!14, !7, i64 16}
!21 = !{!14, !7, i64 0}
!22 = !{!14, !16, i64 8}
!23 = !{!14, !7, i64 4}
|
linux_drivers_reset_extr_reset-zynq.c_zynq_reset_probe
|
; ModuleID = 'AnghaBench/vlc/src/posix/extr_thread.c_vlc_cond_broadcast.c'
source_filename = "AnghaBench/vlc/src/posix/extr_thread.c_vlc_cond_broadcast.c"
target datalayout = "e-m:e-p270:32:32-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 @vlc_cond_broadcast(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @pthread_cond_broadcast(ptr noundef %0) #2
ret void
}
declare i32 @pthread_cond_broadcast(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/vlc/src/posix/extr_thread.c_vlc_cond_broadcast.c'
source_filename = "AnghaBench/vlc/src/posix/extr_thread.c_vlc_cond_broadcast.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 @vlc_cond_broadcast(ptr noundef %0) local_unnamed_addr #0 {
%2 = tail call i32 @pthread_cond_broadcast(ptr noundef %0) #2
ret void
}
declare i32 @pthread_cond_broadcast(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)"}
|
vlc_src_posix_extr_thread.c_vlc_cond_broadcast
|
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_frame.c_frame_unwind_register.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_frame.c_frame_unwind_register.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: nounwind uwtable
define dso_local void @frame_unwind_register(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
%8 = call i32 @frame_register_unwind(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %2) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @frame_register_unwind(ptr noundef, i32 noundef, ptr noundef, ptr noundef, 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)"}
|
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_frame.c_frame_unwind_register.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_frame.c_frame_unwind_register.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 @frame_unwind_register(ptr noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
%8 = call i32 @frame_register_unwind(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %2) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @frame_register_unwind(ptr noundef, i32 noundef, ptr noundef, ptr noundef, 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)"}
|
freebsd_contrib_gdb_gdb_extr_frame.c_frame_unwind_register
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_gfx_v6_0.c_gfx_v6_0_init_ao_cu_mask.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_gfx_v6_0.c_gfx_v6_0_init_ao_cu_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.TYPE_3__ = type { i32, i32 }
@mmRLC_PG_ALWAYS_ON_CU_MASK = dso_local local_unnamed_addr global i32 0, align 4
@mmRLC_MAX_PG_CU = dso_local local_unnamed_addr global i32 0, align 4
@RLC_MAX_PG_CU__MAX_POWERED_UP_CU_MASK = dso_local local_unnamed_addr global i32 0, align 4
@RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @gfx_v6_0_init_ao_cu_mask], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @gfx_v6_0_init_ao_cu_mask(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @mmRLC_PG_ALWAYS_ON_CU_MASK, align 4, !tbaa !5
%3 = load i32, ptr %0, align 4, !tbaa !9
%4 = tail call i32 @WREG32(i32 noundef %2, i32 noundef %3) #2
%5 = load i32, ptr @mmRLC_MAX_PG_CU, align 4, !tbaa !5
%6 = tail call i32 @RREG32(i32 noundef %5) #2
%7 = load i32, ptr @RLC_MAX_PG_CU__MAX_POWERED_UP_CU_MASK, align 4, !tbaa !5
%8 = xor i32 %7, -1
%9 = and i32 %6, %8
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%11 = load i32, ptr %10, align 4, !tbaa !13
%12 = load i32, ptr @RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT, align 4, !tbaa !5
%13 = shl i32 %11, %12
%14 = or i32 %13, %9
%15 = load i32, ptr @mmRLC_MAX_PG_CU, align 4, !tbaa !5
%16 = tail call i32 @WREG32(i32 noundef %15, i32 noundef %14) #2
ret void
}
declare i32 @WREG32(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @RREG32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"amdgpu_device", !11, i64 0}
!11 = !{!"TYPE_4__", !12, i64 0}
!12 = !{!"TYPE_3__", !6, i64 0, !6, i64 4}
!13 = !{!10, !6, i64 4}
|
; ModuleID = 'AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_gfx_v6_0.c_gfx_v6_0_init_ao_cu_mask.c'
source_filename = "AnghaBench/linux/drivers/gpu/drm/amd/amdgpu/extr_gfx_v6_0.c_gfx_v6_0_init_ao_cu_mask.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@mmRLC_PG_ALWAYS_ON_CU_MASK = common local_unnamed_addr global i32 0, align 4
@mmRLC_MAX_PG_CU = common local_unnamed_addr global i32 0, align 4
@RLC_MAX_PG_CU__MAX_POWERED_UP_CU_MASK = common local_unnamed_addr global i32 0, align 4
@RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @gfx_v6_0_init_ao_cu_mask], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @gfx_v6_0_init_ao_cu_mask(ptr nocapture noundef readonly %0) #0 {
%2 = load i32, ptr @mmRLC_PG_ALWAYS_ON_CU_MASK, align 4, !tbaa !6
%3 = load i32, ptr %0, align 4, !tbaa !10
%4 = tail call i32 @WREG32(i32 noundef %2, i32 noundef %3) #2
%5 = load i32, ptr @mmRLC_MAX_PG_CU, align 4, !tbaa !6
%6 = tail call i32 @RREG32(i32 noundef %5) #2
%7 = load i32, ptr @RLC_MAX_PG_CU__MAX_POWERED_UP_CU_MASK, align 4, !tbaa !6
%8 = xor i32 %7, -1
%9 = and i32 %6, %8
%10 = getelementptr inbounds i8, ptr %0, i64 4
%11 = load i32, ptr %10, align 4, !tbaa !14
%12 = load i32, ptr @RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT, align 4, !tbaa !6
%13 = shl i32 %11, %12
%14 = or i32 %13, %9
%15 = load i32, ptr @mmRLC_MAX_PG_CU, align 4, !tbaa !6
%16 = tail call i32 @WREG32(i32 noundef %15, i32 noundef %14) #2
ret void
}
declare i32 @WREG32(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @RREG32(i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"amdgpu_device", !12, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0, !7, i64 4}
!14 = !{!11, !7, i64 4}
|
linux_drivers_gpu_drm_amd_amdgpu_extr_gfx_v6_0.c_gfx_v6_0_init_ao_cu_mask
|
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/mips/extr_hevc_mc_bi_msa.c_hevc_vt_bi_4t_4x8multiple_msa.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/mips/extr_hevc_mc_bi_msa.c_hevc_vt_bi_4t_4x8multiple_msa.c"
target datalayout = "e-m:e-p270:32:32-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 @hevc_vt_bi_4t_4x8multiple_msa], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @hevc_vt_bi_4t_4x8multiple_msa(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = sext i32 %1 to i64
%10 = sub nsw i64 0, %9
%11 = getelementptr inbounds i32, ptr %0, i64 %10
%12 = tail call i32 @__msa_ldi_h(i32 noundef 128) #2
%13 = shl i32 %12, 6
%14 = tail call i32 @LD_SH(ptr noundef %6) #2
%15 = tail call i32 @SPLATI_H2_SH(i32 noundef %14, i32 noundef 0, i32 noundef 1, i32 noundef undef, i32 noundef undef) #2
%16 = tail call i32 @LD_SB3(ptr noundef %11, i32 noundef %1, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%17 = tail call i32 @ILVR_B2_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%18 = tail call i64 @__msa_ilvr_d(i32 noundef undef, i32 noundef undef) #2
%19 = trunc i64 %18 to i32
%20 = tail call i64 @__msa_xori_b(i32 noundef %19, i32 noundef 128) #2
%21 = icmp ult i32 %7, 8
br i1 %21, label %67, label %22
22: ; preds = %8
%23 = ashr i32 %7, 3
%24 = mul nsw i32 %1, 3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %11, i64 %25
%27 = mul nsw i32 %1, 6
%28 = sext i32 %27 to i64
%29 = shl nsw i32 %3, 3
%30 = sext i32 %29 to i64
%31 = shl nsw i32 %1, 1
%32 = sext i32 %31 to i64
%33 = shl nsw i32 %5, 3
%34 = sext i32 %33 to i64
br label %35
35: ; preds = %22, %35
%36 = phi ptr [ %26, %22 ], [ %56, %35 ]
%37 = phi ptr [ %2, %22 ], [ %45, %35 ]
%38 = phi ptr [ %4, %22 ], [ %65, %35 ]
%39 = phi i32 [ %23, %22 ], [ %41, %35 ]
%40 = phi i64 [ %20, %22 ], [ %60, %35 ]
%41 = add nsw i32 %39, -1
%42 = tail call i32 @LD_SB6(ptr noundef %36, i32 noundef %1, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%43 = getelementptr inbounds i32, ptr %36, i64 %28
%44 = tail call i32 @LD_SH8(ptr noundef %37, i32 noundef %3, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%45 = getelementptr inbounds i32, ptr %37, i64 %30
%46 = tail call i32 @ILVR_D2_SH(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%47 = tail call i32 @ILVR_D2_SH(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%48 = tail call i32 @ILVR_B4_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%49 = tail call i32 @ILVR_B2_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%50 = tail call i32 @ILVR_D3_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%51 = tail call i32 @XORI_B3_128_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%52 = tail call i32 @DPADD_SB2_SH(i64 noundef %40, i64 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%53 = tail call i32 @DPADD_SB2_SH(i64 noundef undef, i64 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%54 = tail call i32 @DPADD_SB2_SH(i64 noundef undef, i64 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%55 = tail call i32 @LD_SB2(ptr noundef %43, i32 noundef %1, i64 noundef undef, i64 noundef undef) #2
%56 = getelementptr inbounds i32, ptr %43, i64 %32
%57 = tail call i32 @ILVR_B2_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%58 = tail call i64 @__msa_ilvr_d(i32 noundef undef, i32 noundef undef) #2
%59 = trunc i64 %58 to i32
%60 = tail call i64 @__msa_xori_b(i32 noundef %59, i32 noundef 128) #2
%61 = tail call i32 @DPADD_SB2_SH(i64 noundef undef, i64 noundef %60, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%62 = tail call i32 @HEVC_BI_RND_CLIP4(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef 7, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13) #2
%63 = tail call i32 @PCKEV_B2_SH(i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13) #2
%64 = tail call i32 @ST_W8(i32 noundef %13, i32 noundef %13, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, ptr noundef %38, i32 noundef %5) #2
%65 = getelementptr inbounds i32, ptr %38, i64 %34
%66 = icmp eq i32 %41, 0
br i1 %66, label %67, label %35, !llvm.loop !5
67: ; preds = %35, %8
ret void
}
declare i32 @__msa_ldi_h(i32 noundef) local_unnamed_addr #1
declare i32 @LD_SH(ptr noundef) local_unnamed_addr #1
declare i32 @SPLATI_H2_SH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB3(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ILVR_B2_SB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @__msa_ilvr_d(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @__msa_xori_b(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB6(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @LD_SH8(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ILVR_D2_SH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ILVR_B4_SB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ILVR_D3_SB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @XORI_B3_128_SB(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @DPADD_SB2_SH(i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB2(ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @HEVC_BI_RND_CLIP4(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PCKEV_B2_SH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ST_W8(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/mips/extr_hevc_mc_bi_msa.c_hevc_vt_bi_4t_4x8multiple_msa.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/mips/extr_hevc_mc_bi_msa.c_hevc_vt_bi_4t_4x8multiple_msa.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 @hevc_vt_bi_4t_4x8multiple_msa], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @hevc_vt_bi_4t_4x8multiple_msa(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7) #0 {
%9 = sext i32 %1 to i64
%10 = sub nsw i64 0, %9
%11 = getelementptr inbounds i32, ptr %0, i64 %10
%12 = tail call i32 @__msa_ldi_h(i32 noundef 128) #2
%13 = shl i32 %12, 6
%14 = tail call i32 @LD_SH(ptr noundef %6) #2
%15 = tail call i32 @SPLATI_H2_SH(i32 noundef %14, i32 noundef 0, i32 noundef 1, i32 noundef undef, i32 noundef undef) #2
%16 = tail call i32 @LD_SB3(ptr noundef %11, i32 noundef %1, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%17 = tail call i32 @ILVR_B2_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%18 = tail call i64 @__msa_ilvr_d(i32 noundef undef, i32 noundef undef) #2
%19 = trunc i64 %18 to i32
%20 = tail call i64 @__msa_xori_b(i32 noundef %19, i32 noundef 128) #2
%21 = icmp ult i32 %7, 8
br i1 %21, label %67, label %22
22: ; preds = %8
%23 = ashr i32 %7, 3
%24 = mul nsw i32 %1, 3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %11, i64 %25
%27 = mul nsw i32 %1, 6
%28 = sext i32 %27 to i64
%29 = shl nsw i32 %3, 3
%30 = sext i32 %29 to i64
%31 = shl nsw i32 %1, 1
%32 = sext i32 %31 to i64
%33 = shl nsw i32 %5, 3
%34 = sext i32 %33 to i64
br label %35
35: ; preds = %22, %35
%36 = phi ptr [ %26, %22 ], [ %56, %35 ]
%37 = phi ptr [ %2, %22 ], [ %45, %35 ]
%38 = phi ptr [ %4, %22 ], [ %65, %35 ]
%39 = phi i32 [ %23, %22 ], [ %41, %35 ]
%40 = phi i64 [ %20, %22 ], [ %60, %35 ]
%41 = add nsw i32 %39, -1
%42 = tail call i32 @LD_SB6(ptr noundef %36, i32 noundef %1, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%43 = getelementptr inbounds i32, ptr %36, i64 %28
%44 = tail call i32 @LD_SH8(ptr noundef %37, i32 noundef %3, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%45 = getelementptr inbounds i32, ptr %37, i64 %30
%46 = tail call i32 @ILVR_D2_SH(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%47 = tail call i32 @ILVR_D2_SH(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef) #2
%48 = tail call i32 @ILVR_B4_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%49 = tail call i32 @ILVR_B2_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%50 = tail call i32 @ILVR_D3_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%51 = tail call i32 @XORI_B3_128_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%52 = tail call i32 @DPADD_SB2_SH(i64 noundef %40, i64 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%53 = tail call i32 @DPADD_SB2_SH(i64 noundef undef, i64 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%54 = tail call i32 @DPADD_SB2_SH(i64 noundef undef, i64 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%55 = tail call i32 @LD_SB2(ptr noundef %43, i32 noundef %1, i64 noundef undef, i64 noundef undef) #2
%56 = getelementptr inbounds i32, ptr %43, i64 %32
%57 = tail call i32 @ILVR_B2_SB(i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef, i64 noundef undef) #2
%58 = tail call i64 @__msa_ilvr_d(i32 noundef undef, i32 noundef undef) #2
%59 = trunc i64 %58 to i32
%60 = tail call i64 @__msa_xori_b(i32 noundef %59, i32 noundef 128) #2
%61 = tail call i32 @DPADD_SB2_SH(i64 noundef undef, i64 noundef %60, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13) #2
%62 = tail call i32 @HEVC_BI_RND_CLIP4(i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef undef, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef 7, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13) #2
%63 = tail call i32 @PCKEV_B2_SH(i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13, i32 noundef %13) #2
%64 = tail call i32 @ST_W8(i32 noundef %13, i32 noundef %13, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, i32 noundef 0, i32 noundef 1, i32 noundef 2, i32 noundef 3, ptr noundef %38, i32 noundef %5) #2
%65 = getelementptr inbounds i32, ptr %38, i64 %34
%66 = icmp eq i32 %41, 0
br i1 %66, label %67, label %35, !llvm.loop !6
67: ; preds = %35, %8
ret void
}
declare i32 @__msa_ldi_h(i32 noundef) local_unnamed_addr #1
declare i32 @LD_SH(ptr noundef) local_unnamed_addr #1
declare i32 @SPLATI_H2_SH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB3(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ILVR_B2_SB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i64 @__msa_ilvr_d(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i64 @__msa_xori_b(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB6(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @LD_SH8(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ILVR_D2_SH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ILVR_B4_SB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @ILVR_D3_SB(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @XORI_B3_128_SB(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @DPADD_SB2_SH(i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LD_SB2(ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1
declare i32 @HEVC_BI_RND_CLIP4(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PCKEV_B2_SH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @ST_W8(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 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"}
|
FFmpeg_libavcodec_mips_extr_hevc_mc_bi_msa.c_hevc_vt_bi_4t_4x8multiple_msa
|
; ModuleID = 'AnghaBench/freebsd/contrib/ncurses/ncurses/tinfo/extr_tinfo_driver.c_drv_kyExist.c'
source_filename = "AnghaBench/freebsd/contrib/ncurses/ncurses/tinfo/extr_tinfo_driver.c_drv_kyExist.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @drv_kyExist], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @drv_kyExist(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr @FALSE, align 4, !tbaa !5
%4 = tail call i32 (...) @AssertTCB() #2
%5 = load i64, ptr %0, align 8, !tbaa !9
%6 = icmp eq i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %2
%8 = tail call i64 @TINFO_HAS_KEY(i64 noundef %5, i32 noundef %1) #2
%9 = icmp eq i64 %8, 0
%10 = load i32, ptr @FALSE, align 4
%11 = load i32, ptr @TRUE, align 4
%12 = select i1 %9, i32 %10, i32 %11
br label %13
13: ; preds = %7, %2
%14 = phi i32 [ %12, %7 ], [ %3, %2 ]
ret i32 %14
}
declare i32 @AssertTCB(...) local_unnamed_addr #1
declare i64 @TINFO_HAS_KEY(i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_3__", !11, i64 0}
!11 = !{!"long", !7, i64 0}
|
; ModuleID = 'AnghaBench/freebsd/contrib/ncurses/ncurses/tinfo/extr_tinfo_driver.c_drv_kyExist.c'
source_filename = "AnghaBench/freebsd/contrib/ncurses/ncurses/tinfo/extr_tinfo_driver.c_drv_kyExist.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FALSE = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @drv_kyExist], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @drv_kyExist(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = load i32, ptr @FALSE, align 4, !tbaa !6
%4 = tail call i32 @AssertTCB() #2
%5 = load i64, ptr %0, align 8, !tbaa !10
%6 = icmp eq i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %2
%8 = tail call i64 @TINFO_HAS_KEY(i64 noundef %5, i32 noundef %1) #2
%9 = icmp eq i64 %8, 0
%10 = load i32, ptr @FALSE, align 4
%11 = load i32, ptr @TRUE, align 4
%12 = select i1 %9, i32 %10, i32 %11
br label %13
13: ; preds = %7, %2
%14 = phi i32 [ %12, %7 ], [ %3, %2 ]
ret i32 %14
}
declare i32 @AssertTCB(...) local_unnamed_addr #1
declare i64 @TINFO_HAS_KEY(i64 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_3__", !12, i64 0}
!12 = !{!"long", !8, i64 0}
|
freebsd_contrib_ncurses_ncurses_tinfo_extr_tinfo_driver.c_drv_kyExist
|
; ModuleID = 'AnghaBench/freebsd/lib/libc/string/extr_strstr.c_fourbyte_strstr.c'
source_filename = "AnghaBench/freebsd/lib/libc/string/extr_strstr.c_fourbyte_strstr.c"
target datalayout = "e-m:e-p270:32:32-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 @fourbyte_strstr], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable
define internal ptr @fourbyte_strstr(ptr noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i8, ptr %1, align 1, !tbaa !5
%4 = zext i8 %3 to i32
%5 = shl nuw i32 %4, 24
%6 = getelementptr inbounds i8, ptr %1, i64 1
%7 = load i8, ptr %6, align 1, !tbaa !5
%8 = zext i8 %7 to i32
%9 = shl nuw nsw i32 %8, 16
%10 = or disjoint i32 %9, %5
%11 = getelementptr inbounds i8, ptr %1, i64 2
%12 = load i8, ptr %11, align 1, !tbaa !5
%13 = zext i8 %12 to i32
%14 = shl nuw nsw i32 %13, 8
%15 = or disjoint i32 %10, %14
%16 = getelementptr inbounds i8, ptr %1, i64 3
%17 = load i8, ptr %16, align 1, !tbaa !5
%18 = zext i8 %17 to i32
%19 = or disjoint i32 %15, %18
%20 = load i8, ptr %0, align 1, !tbaa !5
%21 = zext i8 %20 to i32
%22 = shl nuw i32 %21, 24
%23 = getelementptr inbounds i8, ptr %0, i64 1
%24 = load i8, ptr %23, align 1, !tbaa !5
%25 = zext i8 %24 to i32
%26 = shl nuw nsw i32 %25, 16
%27 = or disjoint i32 %26, %22
%28 = getelementptr inbounds i8, ptr %0, i64 2
%29 = load i8, ptr %28, align 1, !tbaa !5
%30 = zext i8 %29 to i32
%31 = shl nuw nsw i32 %30, 8
%32 = or disjoint i32 %27, %31
%33 = getelementptr inbounds i8, ptr %0, i64 3
%34 = load i8, ptr %33, align 1, !tbaa !5
%35 = zext i8 %34 to i32
%36 = or disjoint i32 %32, %35
%37 = icmp ne i8 %34, 0
%38 = icmp ne i32 %36, %19
%39 = select i1 %37, i1 %38, i1 false
br i1 %39, label %40, label %51
40: ; preds = %2, %40
%41 = phi i32 [ %47, %40 ], [ %36, %2 ]
%42 = phi ptr [ %44, %40 ], [ %33, %2 ]
%43 = shl i32 %41, 8
%44 = getelementptr inbounds i8, ptr %42, i64 1
%45 = load i8, ptr %44, align 1, !tbaa !5
%46 = zext i8 %45 to i32
%47 = or disjoint i32 %43, %46
%48 = icmp ne i8 %45, 0
%49 = icmp ne i32 %47, %19
%50 = select i1 %48, i1 %49, i1 false
br i1 %50, label %40, label %51, !llvm.loop !8
51: ; preds = %40, %2
%52 = phi ptr [ %33, %2 ], [ %44, %40 ]
%53 = phi i1 [ %37, %2 ], [ %48, %40 ]
%54 = getelementptr inbounds i8, ptr %52, i64 -3
%55 = select i1 %53, ptr %54, ptr null
ret ptr %55
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/freebsd/lib/libc/string/extr_strstr.c_fourbyte_strstr.c'
source_filename = "AnghaBench/freebsd/lib/libc/string/extr_strstr.c_fourbyte_strstr.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 @fourbyte_strstr], section "llvm.metadata"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync)
define internal ptr @fourbyte_strstr(ptr noundef readonly %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i8, ptr %1, align 1, !tbaa !6
%4 = zext i8 %3 to i32
%5 = shl nuw i32 %4, 24
%6 = getelementptr inbounds i8, ptr %1, i64 1
%7 = load i8, ptr %6, align 1, !tbaa !6
%8 = zext i8 %7 to i32
%9 = shl nuw nsw i32 %8, 16
%10 = or disjoint i32 %9, %5
%11 = getelementptr inbounds i8, ptr %1, i64 2
%12 = load i8, ptr %11, align 1, !tbaa !6
%13 = zext i8 %12 to i32
%14 = shl nuw nsw i32 %13, 8
%15 = or disjoint i32 %10, %14
%16 = getelementptr inbounds i8, ptr %1, i64 3
%17 = load i8, ptr %16, align 1, !tbaa !6
%18 = zext i8 %17 to i32
%19 = or disjoint i32 %15, %18
%20 = load i8, ptr %0, align 1, !tbaa !6
%21 = zext i8 %20 to i32
%22 = shl nuw i32 %21, 24
%23 = getelementptr inbounds i8, ptr %0, i64 1
%24 = load i8, ptr %23, align 1, !tbaa !6
%25 = zext i8 %24 to i32
%26 = shl nuw nsw i32 %25, 16
%27 = or disjoint i32 %26, %22
%28 = getelementptr inbounds i8, ptr %0, i64 2
%29 = load i8, ptr %28, align 1, !tbaa !6
%30 = zext i8 %29 to i32
%31 = shl nuw nsw i32 %30, 8
%32 = or disjoint i32 %27, %31
%33 = getelementptr inbounds i8, ptr %0, i64 3
%34 = load i8, ptr %33, align 1, !tbaa !6
%35 = zext i8 %34 to i32
%36 = or disjoint i32 %32, %35
%37 = icmp ne i8 %34, 0
%38 = icmp ne i32 %36, %19
%39 = select i1 %37, i1 %38, i1 false
br i1 %39, label %40, label %51
40: ; preds = %2, %40
%41 = phi i32 [ %47, %40 ], [ %36, %2 ]
%42 = phi ptr [ %44, %40 ], [ %33, %2 ]
%43 = shl i32 %41, 8
%44 = getelementptr inbounds i8, ptr %42, i64 1
%45 = load i8, ptr %44, align 1, !tbaa !6
%46 = zext i8 %45 to i32
%47 = or disjoint i32 %43, %46
%48 = icmp ne i8 %45, 0
%49 = icmp ne i32 %47, %19
%50 = select i1 %48, i1 %49, i1 false
br i1 %50, label %40, label %51, !llvm.loop !9
51: ; preds = %40, %2
%52 = phi ptr [ %33, %2 ], [ %44, %40 ]
%53 = phi i1 [ %37, %2 ], [ %48, %40 ]
%54 = getelementptr inbounds i8, ptr %52, i64 -3
%55 = select i1 %53, ptr %54, ptr null
ret ptr %55
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
freebsd_lib_libc_string_extr_strstr.c_fourbyte_strstr
|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_main.c_mlx5e_features_check.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_main.c_mlx5e_features_check.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@NETIF_F_CSUM_MASK = dso_local local_unnamed_addr global i32 0, align 4
@NETIF_F_GSO_MASK = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @mlx5e_features_check(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @netdev_priv(ptr noundef %1) #2
%5 = tail call i32 @vlan_features_check(ptr noundef %0, i32 noundef %2) #2
%6 = tail call i32 @vxlan_features_check(ptr noundef %0, i32 noundef %5) #2
%7 = load i64, ptr %0, align 8, !tbaa !5
%8 = icmp eq i64 %7, 0
br i1 %8, label %19, label %9
9: ; preds = %3
%10 = load i32, ptr @NETIF_F_CSUM_MASK, align 4, !tbaa !10
%11 = and i32 %10, %6
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i32, ptr @NETIF_F_GSO_MASK, align 4, !tbaa !10
%15 = and i32 %14, %6
%16 = icmp eq i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13, %9
%18 = tail call i32 @mlx5e_tunnel_features_check(ptr noundef %4, ptr noundef nonnull %0, i32 noundef %6) #2
br label %19
19: ; preds = %3, %13, %17
%20 = phi i32 [ %18, %17 ], [ %6, %13 ], [ %6, %3 ]
ret i32 %20
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @vlan_features_check(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @vxlan_features_check(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlx5e_tunnel_features_check(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 = !{!"sk_buff", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_main.c_mlx5e_features_check.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/mellanox/mlx5/core/extr_en_main.c_mlx5e_features_check.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@NETIF_F_CSUM_MASK = common local_unnamed_addr global i32 0, align 4
@NETIF_F_GSO_MASK = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define i32 @mlx5e_features_check(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
%4 = tail call ptr @netdev_priv(ptr noundef %1) #2
%5 = tail call i32 @vlan_features_check(ptr noundef %0, i32 noundef %2) #2
%6 = tail call i32 @vxlan_features_check(ptr noundef %0, i32 noundef %5) #2
%7 = load i64, ptr %0, align 8, !tbaa !6
%8 = icmp eq i64 %7, 0
br i1 %8, label %19, label %9
9: ; preds = %3
%10 = load i32, ptr @NETIF_F_CSUM_MASK, align 4, !tbaa !11
%11 = and i32 %10, %6
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i32, ptr @NETIF_F_GSO_MASK, align 4, !tbaa !11
%15 = and i32 %14, %6
%16 = icmp eq i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13, %9
%18 = tail call i32 @mlx5e_tunnel_features_check(ptr noundef %4, ptr noundef nonnull %0, i32 noundef %6) #2
br label %19
19: ; preds = %3, %13, %17
%20 = phi i32 [ %18, %17 ], [ %6, %13 ], [ %6, %3 ]
ret i32 %20
}
declare ptr @netdev_priv(ptr noundef) local_unnamed_addr #1
declare i32 @vlan_features_check(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @vxlan_features_check(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mlx5e_tunnel_features_check(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 = !{!"sk_buff", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
|
linux_drivers_net_ethernet_mellanox_mlx5_core_extr_en_main.c_mlx5e_features_check
|
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs.c_svn_fs_x__initialize_shared_data.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs.c_svn_fs_x__initialize_shared_data.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@SVN_NO_ERROR = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local ptr @svn_fs_x__initialize_shared_data(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = tail call i32 @x_serialized_init(ptr noundef %0, ptr noundef %3, ptr noundef %2) #2
%6 = tail call i32 @SVN_MUTEX__WITH_LOCK(ptr noundef %1, i32 noundef %5) #2
%7 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !5
ret ptr %7
}
declare i32 @SVN_MUTEX__WITH_LOCK(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @x_serialized_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs.c_svn_fs_x__initialize_shared_data.c'
source_filename = "AnghaBench/freebsd/contrib/subversion/subversion/libsvn_fs_x/extr_fs.c_svn_fs_x__initialize_shared_data.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@SVN_NO_ERROR = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define ptr @svn_fs_x__initialize_shared_data(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
%5 = tail call i32 @x_serialized_init(ptr noundef %0, ptr noundef %3, ptr noundef %2) #2
%6 = tail call i32 @SVN_MUTEX__WITH_LOCK(ptr noundef %1, i32 noundef %5) #2
%7 = load ptr, ptr @SVN_NO_ERROR, align 8, !tbaa !6
ret ptr %7
}
declare i32 @SVN_MUTEX__WITH_LOCK(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @x_serialized_init(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
freebsd_contrib_subversion_subversion_libsvn_fs_x_extr_fs.c_svn_fs_x__initialize_shared_data
|
; ModuleID = 'AnghaBench/linux/kernel/time/extr_timekeeping.c___ktime_get_real_seconds.c'
source_filename = "AnghaBench/linux/kernel/time/extr_timekeeping.c___ktime_get_real_seconds.c"
target datalayout = "e-m:e-p270:32:32-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 { %struct.timekeeper }
%struct.timekeeper = type { i32 }
@tk_core = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable
define dso_local i32 @__ktime_get_real_seconds() local_unnamed_addr #0 {
%1 = load i32, ptr @tk_core, align 4, !tbaa !5
ret i32 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"timekeeper", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/linux/kernel/time/extr_timekeeping.c___ktime_get_real_seconds.c'
source_filename = "AnghaBench/linux/kernel/time/extr_timekeeping.c___ktime_get_real_seconds.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 { %struct.timekeeper }
%struct.timekeeper = type { i32 }
@tk_core = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync)
define i32 @__ktime_get_real_seconds() local_unnamed_addr #0 {
%1 = load i32, ptr @tk_core, align 4, !tbaa !6
ret i32 %1
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: none, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"timekeeper", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
|
linux_kernel_time_extr_timekeeping.c___ktime_get_real_seconds
|
; ModuleID = 'AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_passthru.c_passthru_init.c'
source_filename = "AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_passthru.c_passthru_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"
@PCIOCREAD = dso_local local_unnamed_addr global i32 0, align 4
@PCIOCWRITE = dso_local local_unnamed_addr global i32 0, align 4
@PCIOCGETBAR = dso_local local_unnamed_addr global i32 0, align 4
@IODEV_PIO = dso_local local_unnamed_addr global i32 0, align 4
@CAP_IOCTL = dso_local local_unnamed_addr global i32 0, align 4
@CAP_READ = dso_local local_unnamed_addr global i32 0, align 4
@CAP_WRITE = dso_local local_unnamed_addr global i32 0, align 4
@VM_MEM_F_WIRED = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"passthru requires guest memory to be wired\00", align 1
@pcifd = dso_local local_unnamed_addr global i64 0, align 8
@_PATH_DEVPCI = dso_local local_unnamed_addr global i32 0, align 4
@O_RDWR = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [18 x i8] c"failed to open %s\00", align 1
@EX_OSERR = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"Unable to apply rights for sandbox\00", align 1
@iofd = dso_local local_unnamed_addr global i64 0, align 8
@_PATH_DEVIO = dso_local local_unnamed_addr global i32 0, align 4
@memfd = dso_local local_unnamed_addr global i64 0, align 8
@_PATH_MEM = dso_local local_unnamed_addr global i32 0, align 4
@CAP_MMAP_RW = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"%d/%d/%d\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"invalid passthru options\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"PCI device at %d/%d/%d is not using the ppt(4) driver\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @passthru_init], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @passthru_init(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [3 x i32], align 4
%9 = alloca [1 x i32], align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #3
%10 = load i32, ptr @PCIOCREAD, align 4, !tbaa !5
store i32 %10, ptr %8, align 4, !tbaa !5
%11 = getelementptr inbounds i32, ptr %8, i64 1
%12 = load i32, ptr @PCIOCWRITE, align 4, !tbaa !5
store i32 %12, ptr %11, align 4, !tbaa !5
%13 = getelementptr inbounds i32, ptr %8, i64 2
%14 = load i32, ptr @PCIOCGETBAR, align 4, !tbaa !5
store i32 %14, ptr %13, align 4, !tbaa !5
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
%15 = load i32, ptr @IODEV_PIO, align 4, !tbaa !5
store i32 %15, ptr %9, align 4, !tbaa !5
%16 = load i32, ptr @CAP_IOCTL, align 4, !tbaa !5
%17 = load i32, ptr @CAP_READ, align 4, !tbaa !5
%18 = load i32, ptr @CAP_WRITE, align 4, !tbaa !5
%19 = call i32 @cap_rights_init(ptr noundef nonnull %7, i32 noundef %16, i32 noundef %17, i32 noundef %18) #3
%20 = call i32 @vm_get_memflags(ptr noundef %0) #3
%21 = load i32, ptr @VM_MEM_F_WIRED, align 4, !tbaa !5
%22 = and i32 %21, %20
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %3
%25 = call i32 (ptr, ...) @warnx(ptr noundef nonnull @.str) #3
br label %133
26: ; preds = %3
%27 = load i64, ptr @pcifd, align 8, !tbaa !9
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %37
29: ; preds = %26
%30 = load i32, ptr @_PATH_DEVPCI, align 4, !tbaa !5
%31 = load i32, ptr @O_RDWR, align 4, !tbaa !5
%32 = call i64 @open(i32 noundef %30, i32 noundef %31, i32 noundef 0) #3
store i64 %32, ptr @pcifd, align 8, !tbaa !9
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load i32, ptr @_PATH_DEVPCI, align 4, !tbaa !5
%36 = call i32 @warn(ptr noundef nonnull @.str.1, i32 noundef %35) #3
br label %133
37: ; preds = %29, %26
%38 = phi i64 [ %32, %29 ], [ %27, %26 ]
%39 = call i32 @caph_rights_limit(i64 noundef %38, ptr noundef nonnull %7) #3
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load i32, ptr @EX_OSERR, align 4, !tbaa !5
%43 = call i32 @errx(i32 noundef %42, ptr noundef nonnull @.str.2) #3
br label %44
44: ; preds = %41, %37
%45 = load i64, ptr @pcifd, align 8, !tbaa !9
%46 = call i32 @nitems(ptr noundef nonnull %8) #3
%47 = call i32 @caph_ioctls_limit(i64 noundef %45, ptr noundef nonnull %8, i32 noundef %46) #3
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = load i32, ptr @EX_OSERR, align 4, !tbaa !5
%51 = call i32 @errx(i32 noundef %50, ptr noundef nonnull @.str.2) #3
br label %52
52: ; preds = %49, %44
%53 = load i64, ptr @iofd, align 8, !tbaa !9
%54 = icmp slt i64 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = load i32, ptr @_PATH_DEVIO, align 4, !tbaa !5
%57 = load i32, ptr @O_RDWR, align 4, !tbaa !5
%58 = call i64 @open(i32 noundef %56, i32 noundef %57, i32 noundef 0) #3
store i64 %58, ptr @iofd, align 8, !tbaa !9
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %55
%61 = load i32, ptr @_PATH_DEVIO, align 4, !tbaa !5
%62 = call i32 @warn(ptr noundef nonnull @.str.1, i32 noundef %61) #3
br label %133
63: ; preds = %55, %52
%64 = phi i64 [ %58, %55 ], [ %53, %52 ]
%65 = call i32 @caph_rights_limit(i64 noundef %64, ptr noundef nonnull %7) #3
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load i32, ptr @EX_OSERR, align 4, !tbaa !5
%69 = call i32 @errx(i32 noundef %68, ptr noundef nonnull @.str.2) #3
br label %70
70: ; preds = %67, %63
%71 = load i64, ptr @iofd, align 8, !tbaa !9
%72 = call i32 @nitems(ptr noundef nonnull %9) #3
%73 = call i32 @caph_ioctls_limit(i64 noundef %71, ptr noundef nonnull %9, i32 noundef %72) #3
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %78
75: ; preds = %70
%76 = load i32, ptr @EX_OSERR, align 4, !tbaa !5
%77 = call i32 @errx(i32 noundef %76, ptr noundef nonnull @.str.2) #3
br label %78
78: ; preds = %75, %70
%79 = load i64, ptr @memfd, align 8, !tbaa !9
%80 = icmp slt i64 %79, 0
br i1 %80, label %81, label %89
81: ; preds = %78
%82 = load i32, ptr @_PATH_MEM, align 4, !tbaa !5
%83 = load i32, ptr @O_RDWR, align 4, !tbaa !5
%84 = call i64 @open(i32 noundef %82, i32 noundef %83, i32 noundef 0) #3
store i64 %84, ptr @memfd, align 8, !tbaa !9
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = load i32, ptr @_PATH_MEM, align 4, !tbaa !5
%88 = call i32 @warn(ptr noundef nonnull @.str.1, i32 noundef %87) #3
br label %133
89: ; preds = %81, %78
%90 = load i32, ptr @CAP_IOCTL, align 4, !tbaa !5
%91 = call i32 @cap_rights_clear(ptr noundef nonnull %7, i32 noundef %90) #3
%92 = load i32, ptr @CAP_MMAP_RW, align 4, !tbaa !5
%93 = call i32 @cap_rights_set(ptr noundef nonnull %7, i32 noundef %92) #3
%94 = load i64, ptr @memfd, align 8, !tbaa !9
%95 = call i32 @caph_rights_limit(i64 noundef %94, ptr noundef nonnull %7) #3
%96 = icmp eq i32 %95, -1
br i1 %96, label %97, label %100
97: ; preds = %89
%98 = load i32, ptr @EX_OSERR, align 4, !tbaa !5
%99 = call i32 @errx(i32 noundef %98, ptr noundef nonnull @.str.2) #3
br label %100
100: ; preds = %97, %89
%101 = icmp eq ptr %2, null
br i1 %101, label %105, label %102
102: ; preds = %100
%103 = call i32 @sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
%104 = icmp eq i32 %103, 3
br i1 %104, label %107, label %105
105: ; preds = %102, %100
%106 = call i32 (ptr, ...) @warnx(ptr noundef nonnull @.str.4) #3
br label %133
107: ; preds = %102
%108 = load i32, ptr %4, align 4, !tbaa !5
%109 = load i32, ptr %5, align 4, !tbaa !5
%110 = load i32, ptr %6, align 4, !tbaa !5
%111 = call i64 @vm_assign_pptdev(ptr noundef %0, i32 noundef %108, i32 noundef %109, i32 noundef %110) #3
%112 = icmp eq i64 %111, 0
br i1 %112, label %118, label %113
113: ; preds = %107
%114 = load i32, ptr %4, align 4, !tbaa !5
%115 = load i32, ptr %5, align 4, !tbaa !5
%116 = load i32, ptr %6, align 4, !tbaa !5
%117 = call i32 (ptr, ...) @warnx(ptr noundef nonnull @.str.5, i32 noundef %114, i32 noundef %115, i32 noundef %116) #3
br label %125
118: ; preds = %107
%119 = call ptr @calloc(i32 noundef 1, i32 noundef 8) #3
store ptr %119, ptr %1, align 8, !tbaa !11
store ptr %1, ptr %119, align 8, !tbaa !14
%120 = load i32, ptr %4, align 4, !tbaa !5
%121 = load i32, ptr %5, align 4, !tbaa !5
%122 = load i32, ptr %6, align 4, !tbaa !5
%123 = call i32 @cfginit(ptr noundef %0, ptr noundef nonnull %1, i32 noundef %120, i32 noundef %121, i32 noundef %122) #3
%124 = icmp eq i32 %123, 0
br i1 %124, label %133, label %125
125: ; preds = %113, %118
%126 = phi ptr [ null, %113 ], [ %119, %118 ]
%127 = phi i32 [ 1, %113 ], [ %123, %118 ]
%128 = call i32 @free(ptr noundef %126) #3
%129 = load i32, ptr %4, align 4, !tbaa !5
%130 = load i32, ptr %5, align 4, !tbaa !5
%131 = load i32, ptr %6, align 4, !tbaa !5
%132 = call i32 @vm_unassign_pptdev(ptr noundef %0, i32 noundef %129, i32 noundef %130, i32 noundef %131) #3
br label %133
133: ; preds = %118, %125, %105, %86, %60, %34, %24
%134 = phi i32 [ 1, %34 ], [ 1, %60 ], [ 1, %86 ], [ 1, %105 ], [ 1, %24 ], [ %127, %125 ], [ 0, %118 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %134
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @cap_rights_init(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vm_get_memflags(ptr noundef) local_unnamed_addr #2
declare i32 @warnx(ptr noundef, ...) local_unnamed_addr #2
declare i64 @open(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @warn(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @caph_rights_limit(i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @errx(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @caph_ioctls_limit(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nitems(ptr noundef) local_unnamed_addr #2
declare i32 @cap_rights_clear(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cap_rights_set(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @vm_assign_pptdev(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @calloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cfginit(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @vm_unassign_pptdev(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"pci_devinst", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"passthru_softc", !13, i64 0}
|
; ModuleID = 'AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_passthru.c_passthru_init.c'
source_filename = "AnghaBench/freebsd/usr.sbin/bhyve/extr_pci_passthru.c_passthru_init.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@PCIOCREAD = common local_unnamed_addr global i32 0, align 4
@PCIOCWRITE = common local_unnamed_addr global i32 0, align 4
@PCIOCGETBAR = common local_unnamed_addr global i32 0, align 4
@IODEV_PIO = common local_unnamed_addr global i32 0, align 4
@CAP_IOCTL = common local_unnamed_addr global i32 0, align 4
@CAP_READ = common local_unnamed_addr global i32 0, align 4
@CAP_WRITE = common local_unnamed_addr global i32 0, align 4
@VM_MEM_F_WIRED = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"passthru requires guest memory to be wired\00", align 1
@pcifd = common local_unnamed_addr global i64 0, align 8
@_PATH_DEVPCI = common local_unnamed_addr global i32 0, align 4
@O_RDWR = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [18 x i8] c"failed to open %s\00", align 1
@EX_OSERR = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"Unable to apply rights for sandbox\00", align 1
@iofd = common local_unnamed_addr global i64 0, align 8
@_PATH_DEVIO = common local_unnamed_addr global i32 0, align 4
@memfd = common local_unnamed_addr global i64 0, align 8
@_PATH_MEM = common local_unnamed_addr global i32 0, align 4
@CAP_MMAP_RW = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"%d/%d/%d\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"invalid passthru options\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"PCI device at %d/%d/%d is not using the ppt(4) driver\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @passthru_init], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @passthru_init(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [3 x i32], align 4
%9 = alloca [1 x i32], align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #3
%10 = load i32, ptr @PCIOCREAD, align 4, !tbaa !6
store i32 %10, ptr %8, align 4, !tbaa !6
%11 = getelementptr inbounds i8, ptr %8, i64 4
%12 = load i32, ptr @PCIOCWRITE, align 4, !tbaa !6
store i32 %12, ptr %11, align 4, !tbaa !6
%13 = getelementptr inbounds i8, ptr %8, i64 8
%14 = load i32, ptr @PCIOCGETBAR, align 4, !tbaa !6
store i32 %14, ptr %13, align 4, !tbaa !6
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
%15 = load i32, ptr @IODEV_PIO, align 4, !tbaa !6
store i32 %15, ptr %9, align 4, !tbaa !6
%16 = load i32, ptr @CAP_IOCTL, align 4, !tbaa !6
%17 = load i32, ptr @CAP_READ, align 4, !tbaa !6
%18 = load i32, ptr @CAP_WRITE, align 4, !tbaa !6
%19 = call i32 @cap_rights_init(ptr noundef nonnull %7, i32 noundef %16, i32 noundef %17, i32 noundef %18) #3
%20 = call i32 @vm_get_memflags(ptr noundef %0) #3
%21 = load i32, ptr @VM_MEM_F_WIRED, align 4, !tbaa !6
%22 = and i32 %21, %20
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %3
%25 = call i32 (ptr, ...) @warnx(ptr noundef nonnull @.str) #3
br label %133
26: ; preds = %3
%27 = load i64, ptr @pcifd, align 8, !tbaa !10
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %37
29: ; preds = %26
%30 = load i32, ptr @_PATH_DEVPCI, align 4, !tbaa !6
%31 = load i32, ptr @O_RDWR, align 4, !tbaa !6
%32 = call i64 @open(i32 noundef %30, i32 noundef %31, i32 noundef 0) #3
store i64 %32, ptr @pcifd, align 8, !tbaa !10
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load i32, ptr @_PATH_DEVPCI, align 4, !tbaa !6
%36 = call i32 @warn(ptr noundef nonnull @.str.1, i32 noundef %35) #3
br label %133
37: ; preds = %29, %26
%38 = phi i64 [ %32, %29 ], [ %27, %26 ]
%39 = call i32 @caph_rights_limit(i64 noundef %38, ptr noundef nonnull %7) #3
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %44
41: ; preds = %37
%42 = load i32, ptr @EX_OSERR, align 4, !tbaa !6
%43 = call i32 @errx(i32 noundef %42, ptr noundef nonnull @.str.2) #3
br label %44
44: ; preds = %41, %37
%45 = load i64, ptr @pcifd, align 8, !tbaa !10
%46 = call i32 @nitems(ptr noundef nonnull %8) #3
%47 = call i32 @caph_ioctls_limit(i64 noundef %45, ptr noundef nonnull %8, i32 noundef %46) #3
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = load i32, ptr @EX_OSERR, align 4, !tbaa !6
%51 = call i32 @errx(i32 noundef %50, ptr noundef nonnull @.str.2) #3
br label %52
52: ; preds = %49, %44
%53 = load i64, ptr @iofd, align 8, !tbaa !10
%54 = icmp slt i64 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = load i32, ptr @_PATH_DEVIO, align 4, !tbaa !6
%57 = load i32, ptr @O_RDWR, align 4, !tbaa !6
%58 = call i64 @open(i32 noundef %56, i32 noundef %57, i32 noundef 0) #3
store i64 %58, ptr @iofd, align 8, !tbaa !10
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %55
%61 = load i32, ptr @_PATH_DEVIO, align 4, !tbaa !6
%62 = call i32 @warn(ptr noundef nonnull @.str.1, i32 noundef %61) #3
br label %133
63: ; preds = %55, %52
%64 = phi i64 [ %58, %55 ], [ %53, %52 ]
%65 = call i32 @caph_rights_limit(i64 noundef %64, ptr noundef nonnull %7) #3
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load i32, ptr @EX_OSERR, align 4, !tbaa !6
%69 = call i32 @errx(i32 noundef %68, ptr noundef nonnull @.str.2) #3
br label %70
70: ; preds = %67, %63
%71 = load i64, ptr @iofd, align 8, !tbaa !10
%72 = call i32 @nitems(ptr noundef nonnull %9) #3
%73 = call i32 @caph_ioctls_limit(i64 noundef %71, ptr noundef nonnull %9, i32 noundef %72) #3
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %78
75: ; preds = %70
%76 = load i32, ptr @EX_OSERR, align 4, !tbaa !6
%77 = call i32 @errx(i32 noundef %76, ptr noundef nonnull @.str.2) #3
br label %78
78: ; preds = %75, %70
%79 = load i64, ptr @memfd, align 8, !tbaa !10
%80 = icmp slt i64 %79, 0
br i1 %80, label %81, label %89
81: ; preds = %78
%82 = load i32, ptr @_PATH_MEM, align 4, !tbaa !6
%83 = load i32, ptr @O_RDWR, align 4, !tbaa !6
%84 = call i64 @open(i32 noundef %82, i32 noundef %83, i32 noundef 0) #3
store i64 %84, ptr @memfd, align 8, !tbaa !10
%85 = icmp slt i64 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = load i32, ptr @_PATH_MEM, align 4, !tbaa !6
%88 = call i32 @warn(ptr noundef nonnull @.str.1, i32 noundef %87) #3
br label %133
89: ; preds = %81, %78
%90 = load i32, ptr @CAP_IOCTL, align 4, !tbaa !6
%91 = call i32 @cap_rights_clear(ptr noundef nonnull %7, i32 noundef %90) #3
%92 = load i32, ptr @CAP_MMAP_RW, align 4, !tbaa !6
%93 = call i32 @cap_rights_set(ptr noundef nonnull %7, i32 noundef %92) #3
%94 = load i64, ptr @memfd, align 8, !tbaa !10
%95 = call i32 @caph_rights_limit(i64 noundef %94, ptr noundef nonnull %7) #3
%96 = icmp eq i32 %95, -1
br i1 %96, label %97, label %100
97: ; preds = %89
%98 = load i32, ptr @EX_OSERR, align 4, !tbaa !6
%99 = call i32 @errx(i32 noundef %98, ptr noundef nonnull @.str.2) #3
br label %100
100: ; preds = %97, %89
%101 = icmp eq ptr %2, null
br i1 %101, label %105, label %102
102: ; preds = %100
%103 = call i32 @sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
%104 = icmp eq i32 %103, 3
br i1 %104, label %107, label %105
105: ; preds = %102, %100
%106 = call i32 (ptr, ...) @warnx(ptr noundef nonnull @.str.4) #3
br label %133
107: ; preds = %102
%108 = load i32, ptr %4, align 4, !tbaa !6
%109 = load i32, ptr %5, align 4, !tbaa !6
%110 = load i32, ptr %6, align 4, !tbaa !6
%111 = call i64 @vm_assign_pptdev(ptr noundef %0, i32 noundef %108, i32 noundef %109, i32 noundef %110) #3
%112 = icmp eq i64 %111, 0
br i1 %112, label %118, label %113
113: ; preds = %107
%114 = load i32, ptr %4, align 4, !tbaa !6
%115 = load i32, ptr %5, align 4, !tbaa !6
%116 = load i32, ptr %6, align 4, !tbaa !6
%117 = call i32 (ptr, ...) @warnx(ptr noundef nonnull @.str.5, i32 noundef %114, i32 noundef %115, i32 noundef %116) #3
br label %125
118: ; preds = %107
%119 = call ptr @calloc(i32 noundef 1, i32 noundef 8) #3
store ptr %119, ptr %1, align 8, !tbaa !12
store ptr %1, ptr %119, align 8, !tbaa !15
%120 = load i32, ptr %4, align 4, !tbaa !6
%121 = load i32, ptr %5, align 4, !tbaa !6
%122 = load i32, ptr %6, align 4, !tbaa !6
%123 = call i32 @cfginit(ptr noundef %0, ptr noundef nonnull %1, i32 noundef %120, i32 noundef %121, i32 noundef %122) #3
%124 = icmp eq i32 %123, 0
br i1 %124, label %133, label %125
125: ; preds = %113, %118
%126 = phi ptr [ null, %113 ], [ %119, %118 ]
%127 = phi i32 [ 1, %113 ], [ %123, %118 ]
%128 = call i32 @free(ptr noundef %126) #3
%129 = load i32, ptr %4, align 4, !tbaa !6
%130 = load i32, ptr %5, align 4, !tbaa !6
%131 = load i32, ptr %6, align 4, !tbaa !6
%132 = call i32 @vm_unassign_pptdev(ptr noundef %0, i32 noundef %129, i32 noundef %130, i32 noundef %131) #3
br label %133
133: ; preds = %118, %125, %105, %86, %60, %34, %24
%134 = phi i32 [ 1, %34 ], [ 1, %60 ], [ 1, %86 ], [ 1, %105 ], [ 1, %24 ], [ %127, %125 ], [ 0, %118 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %134
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @cap_rights_init(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @vm_get_memflags(ptr noundef) local_unnamed_addr #2
declare i32 @warnx(ptr noundef, ...) local_unnamed_addr #2
declare i64 @open(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @warn(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @caph_rights_limit(i64 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @errx(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @caph_ioctls_limit(i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @nitems(ptr noundef) local_unnamed_addr #2
declare i32 @cap_rights_clear(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cap_rights_set(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i64 @vm_assign_pptdev(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare ptr @calloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @cfginit(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free(ptr noundef) local_unnamed_addr #2
declare i32 @vm_unassign_pptdev(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"pci_devinst", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"passthru_softc", !14, i64 0}
|
freebsd_usr.sbin_bhyve_extr_pci_passthru.c_passthru_init
|
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/arm/extr_model_dep.c_paniclog_flush.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/arm/extr_model_dep.c_paniclog_flush.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i64 }
@debug_buf_ptr = dso_local local_unnamed_addr global i64 0, align 8
@gPanicBase = dso_local local_unnamed_addr global i64 0, align 8
@panic_info = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local void @paniclog_flush() local_unnamed_addr #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = load i64, ptr @debug_buf_ptr, align 8, !tbaa !5
%3 = load i64, ptr @gPanicBase, align 8, !tbaa !5
%4 = sub nsw i64 %2, %3
%5 = trunc i64 %4 to i32
store i32 %5, ptr %1, align 4, !tbaa !9
%6 = icmp eq i32 %5, 0
br i1 %6, label %21, label %7
7: ; preds = %0
%8 = tail call i64 @PE_get_offset_into_panic_region(i64 noundef %2) #3
%9 = load ptr, ptr @panic_info, align 8, !tbaa !11
%10 = load i64, ptr %9, align 8, !tbaa !13
%11 = sub nsw i64 %8, %10
%12 = getelementptr inbounds %struct.TYPE_2__, ptr %9, i64 0, i32 1
store i64 %11, ptr %12, align 8, !tbaa !15
%13 = load i64, ptr @gPanicBase, align 8, !tbaa !5
%14 = inttoptr i64 %13 to ptr
%15 = call i32 @PE_save_buffer_to_vram(ptr noundef %14, ptr noundef nonnull %1) #3
%16 = load i64, ptr @gPanicBase, align 8, !tbaa !5
%17 = inttoptr i64 %16 to ptr
%18 = load i32, ptr %1, align 4, !tbaa !9
%19 = call i32 @PESavePanicInfo(ptr noundef %17, i32 noundef %18) #3
%20 = call i32 (...) @PE_sync_panic_buffers() #3
br label %21
21: ; preds = %0, %7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @PE_get_offset_into_panic_region(i64 noundef) local_unnamed_addr #2
declare i32 @PE_save_buffer_to_vram(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @PESavePanicInfo(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @PE_sync_panic_buffers(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"TYPE_2__", !6, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
|
; ModuleID = 'AnghaBench/darwin-xnu/osfmk/arm/extr_model_dep.c_paniclog_flush.c'
source_filename = "AnghaBench/darwin-xnu/osfmk/arm/extr_model_dep.c_paniclog_flush.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@debug_buf_ptr = common local_unnamed_addr global i64 0, align 8
@gPanicBase = common local_unnamed_addr global i64 0, align 8
@panic_info = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define void @paniclog_flush() local_unnamed_addr #0 {
%1 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = load i64, ptr @debug_buf_ptr, align 8, !tbaa !6
%3 = load i64, ptr @gPanicBase, align 8, !tbaa !6
%4 = sub nsw i64 %2, %3
%5 = trunc i64 %4 to i32
store i32 %5, ptr %1, align 4, !tbaa !10
%6 = icmp eq i32 %5, 0
br i1 %6, label %21, label %7
7: ; preds = %0
%8 = tail call i64 @PE_get_offset_into_panic_region(i64 noundef %2) #3
%9 = load ptr, ptr @panic_info, align 8, !tbaa !12
%10 = load i64, ptr %9, align 8, !tbaa !14
%11 = sub nsw i64 %8, %10
%12 = getelementptr inbounds i8, ptr %9, i64 8
store i64 %11, ptr %12, align 8, !tbaa !16
%13 = load i64, ptr @gPanicBase, align 8, !tbaa !6
%14 = inttoptr i64 %13 to ptr
%15 = call i32 @PE_save_buffer_to_vram(ptr noundef %14, ptr noundef nonnull %1) #3
%16 = load i64, ptr @gPanicBase, align 8, !tbaa !6
%17 = inttoptr i64 %16 to ptr
%18 = load i32, ptr %1, align 4, !tbaa !10
%19 = call i32 @PESavePanicInfo(ptr noundef %17, i32 noundef %18) #3
%20 = call i32 @PE_sync_panic_buffers() #3
br label %21
21: ; preds = %0, %7
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @PE_get_offset_into_panic_region(i64 noundef) local_unnamed_addr #2
declare i32 @PE_save_buffer_to_vram(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @PESavePanicInfo(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @PE_sync_panic_buffers(...) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_2__", !7, i64 0, !7, i64 8}
!16 = !{!15, !7, i64 8}
|
darwin-xnu_osfmk_arm_extr_model_dep.c_paniclog_flush
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_if_sdio.c_if_sdio_prog_real.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_if_sdio.c_if_sdio_prog_real.c"
target datalayout = "e-m:e-p270:32:32-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.if_sdio_card = type { ptr, i32, i32 }
%struct.firmware = type { ptr, i64 }
@LBS_DEB_SDIO = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"can't load firmware\0A\00", align 1
@GFP_KERNEL = dso_local local_unnamed_addr global i32 0, align 4
@ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@jiffies = dso_local local_unnamed_addr global i64 0, align 8
@HZ = dso_local local_unnamed_addr global i64 0, align 8
@IF_SDIO_STATUS = dso_local local_unnamed_addr global i64 0, align 8
@IF_SDIO_IO_RDY = dso_local local_unnamed_addr global i32 0, align 4
@IF_SDIO_DL_RDY = dso_local local_unnamed_addr global i32 0, align 4
@ETIMEDOUT = dso_local local_unnamed_addr global i32 0, align 4
@IF_SDIO_RD_BASE = dso_local local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [31 x i8] c"firmware helper gave up early\0A\00", align 1
@EIO = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"firmware helper signalled error\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"waiting for firmware to boot...\0A\00", align 1
@IF_SDIO_FIRMWARE_OK = dso_local local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [25 x i8] c"failed to load firmware\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"ret %d\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @if_sdio_prog_real], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @if_sdio_prog_real(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%4 = load i32, ptr @LBS_DEB_SDIO, align 4, !tbaa !5
%5 = tail call i32 @lbs_deb_enter(i32 noundef %4) #4
%6 = getelementptr inbounds %struct.if_sdio_card, ptr %0, i64 0, i32 2
%7 = load i32, ptr %6, align 4, !tbaa !9
%8 = load ptr, ptr %0, align 8, !tbaa !12
%9 = call i32 @request_firmware(ptr noundef nonnull %3, i32 noundef %7, ptr noundef %8) #4
store i32 %9, ptr %2, align 4, !tbaa !5
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %1
%12 = call i32 @lbs_pr_err(ptr noundef nonnull @.str) #4
br label %149
13: ; preds = %1
%14 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !5
%15 = call ptr @kzalloc(i32 noundef 512, i32 noundef %14) #4
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr @ENOMEM, align 4, !tbaa !5
%19 = sub nsw i32 0, %18
store i32 %19, ptr %2, align 4, !tbaa !5
br label %146
20: ; preds = %13
%21 = load ptr, ptr %0, align 8, !tbaa !12
%22 = call i32 @sdio_claim_host(ptr noundef %21) #4
%23 = load ptr, ptr %0, align 8, !tbaa !12
%24 = call i32 @sdio_set_block_size(ptr noundef %23, i32 noundef 32) #4
store i32 %24, ptr %2, align 4, !tbaa !5
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %142
26: ; preds = %20
%27 = load ptr, ptr %3, align 8, !tbaa !13
%28 = getelementptr inbounds %struct.firmware, ptr %27, i64 0, i32 1
%29 = load i64, ptr %28, align 8, !tbaa !14
%30 = icmp eq i64 %29, 0
br i1 %30, label %117, label %31
31: ; preds = %26
%32 = load ptr, ptr %27, align 8, !tbaa !17
%33 = getelementptr inbounds %struct.if_sdio_card, ptr %0, i64 0, i32 1
br label %36
34: ; preds = %112
%35 = icmp eq i64 %114, 0
br i1 %35, label %117, label %36, !llvm.loop !18
36: ; preds = %31, %34
%37 = phi i64 [ %29, %31 ], [ %114, %34 ]
%38 = phi ptr [ %32, %31 ], [ %113, %34 ]
%39 = load i64, ptr @jiffies, align 8, !tbaa !20
%40 = load i64, ptr @HZ, align 8, !tbaa !20
%41 = add i64 %40, %39
%42 = load ptr, ptr %0, align 8, !tbaa !12
%43 = load i64, ptr @IF_SDIO_STATUS, align 8, !tbaa !20
%44 = call i32 @sdio_readb(ptr noundef %42, i64 noundef %43, ptr noundef nonnull %2) #4
%45 = load i32, ptr %2, align 4, !tbaa !5
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %142
47: ; preds = %36, %63
%48 = phi i32 [ %67, %63 ], [ %44, %36 ]
%49 = load i32, ptr @IF_SDIO_IO_RDY, align 4, !tbaa !5
%50 = and i32 %49, %48
%51 = icmp eq i32 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %47
%53 = load i32, ptr @IF_SDIO_DL_RDY, align 4, !tbaa !5
%54 = and i32 %53, %48
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %70
56: ; preds = %52, %47
%57 = load i64, ptr @jiffies, align 8, !tbaa !20
%58 = call i64 @time_after(i64 noundef %57, i64 noundef %41) #4
%59 = icmp eq i64 %58, 0
br i1 %59, label %63, label %60
60: ; preds = %56
%61 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%62 = sub nsw i32 0, %61
store i32 %62, ptr %2, align 4, !tbaa !5
br label %142
63: ; preds = %56
%64 = call i32 @mdelay(i32 noundef 1) #4
%65 = load ptr, ptr %0, align 8, !tbaa !12
%66 = load i64, ptr @IF_SDIO_STATUS, align 8, !tbaa !20
%67 = call i32 @sdio_readb(ptr noundef %65, i64 noundef %66, ptr noundef nonnull %2) #4
%68 = load i32, ptr %2, align 4, !tbaa !5
%69 = icmp eq i32 %68, 0
br i1 %69, label %47, label %142
70: ; preds = %52
%71 = load ptr, ptr %0, align 8, !tbaa !12
%72 = load i64, ptr @IF_SDIO_RD_BASE, align 8, !tbaa !20
%73 = call i32 @sdio_readb(ptr noundef %71, i64 noundef %72, ptr noundef nonnull %2) #4
%74 = load i32, ptr %2, align 4, !tbaa !5
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %142
76: ; preds = %70
%77 = load ptr, ptr %0, align 8, !tbaa !12
%78 = load i64, ptr @IF_SDIO_RD_BASE, align 8, !tbaa !20
%79 = add nsw i64 %78, 1
%80 = call i32 @sdio_readb(ptr noundef %77, i64 noundef %79, ptr noundef nonnull %2) #4
%81 = shl i32 %80, 8
%82 = or i32 %81, %73
%83 = sext i32 %82 to i64
%84 = load i32, ptr %2, align 4, !tbaa !5
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %142
86: ; preds = %76
%87 = icmp eq i32 %82, 0
br i1 %87, label %88, label %92
88: ; preds = %86
%89 = call i32 @lbs_deb_sdio(ptr noundef nonnull @.str.1) #4
%90 = load i32, ptr @EIO, align 4, !tbaa !5
%91 = sub nsw i32 0, %90
store i32 %91, ptr %2, align 4, !tbaa !5
br label %142
92: ; preds = %86
%93 = and i64 %83, 1
%94 = icmp eq i64 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %92
%96 = call i32 @lbs_deb_sdio(ptr noundef nonnull @.str.2) #4
%97 = load i32, ptr @EIO, align 4, !tbaa !5
%98 = sub nsw i32 0, %97
store i32 %98, ptr %2, align 4, !tbaa !5
br label %142
99: ; preds = %92
%100 = call i64 @llvm.umin.i64(i64 %37, i64 %83)
br label %101
101: ; preds = %99, %112
%102 = phi i64 [ %100, %99 ], [ %115, %112 ]
%103 = phi i64 [ %37, %99 ], [ %114, %112 ]
%104 = phi ptr [ %38, %99 ], [ %113, %112 ]
%105 = call i64 @min(i64 noundef %102, i64 noundef 512) #4
%106 = call i32 @memcpy(ptr noundef nonnull %15, ptr noundef %104, i64 noundef %105) #4
%107 = load ptr, ptr %0, align 8, !tbaa !12
%108 = load i32, ptr %33, align 8, !tbaa !21
%109 = call i32 @roundup(i64 noundef %105, i32 noundef 32) #4
%110 = call i32 @sdio_writesb(ptr noundef %107, i32 noundef %108, ptr noundef nonnull %15, i32 noundef %109) #4
store i32 %110, ptr %2, align 4, !tbaa !5
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %142
112: ; preds = %101
%113 = getelementptr inbounds i32, ptr %104, i64 %105
%114 = sub i64 %103, %105
%115 = sub i64 %102, %105
%116 = icmp eq i64 %115, 0
br i1 %116, label %34, label %101, !llvm.loop !22
117: ; preds = %34, %26
store i32 0, ptr %2, align 4, !tbaa !5
%118 = call i32 @lbs_deb_sdio(ptr noundef nonnull @.str.3) #4
%119 = load i64, ptr @jiffies, align 8, !tbaa !20
%120 = load i64, ptr @HZ, align 8, !tbaa !20
%121 = add i64 %120, %119
%122 = call i64 @if_sdio_read_scratch(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
%123 = load i32, ptr %2, align 4, !tbaa !5
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %142
125: ; preds = %117, %136
%126 = phi i64 [ %138, %136 ], [ %122, %117 ]
%127 = load i64, ptr @IF_SDIO_FIRMWARE_OK, align 8, !tbaa !20
%128 = icmp eq i64 %126, %127
br i1 %128, label %141, label %129
129: ; preds = %125
%130 = load i64, ptr @jiffies, align 8, !tbaa !20
%131 = call i64 @time_after(i64 noundef %130, i64 noundef %121) #4
%132 = icmp eq i64 %131, 0
br i1 %132, label %136, label %133
133: ; preds = %129
%134 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !5
%135 = sub nsw i32 0, %134
store i32 %135, ptr %2, align 4, !tbaa !5
br label %142
136: ; preds = %129
%137 = call i32 @msleep(i32 noundef 10) #4
%138 = call i64 @if_sdio_read_scratch(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
%139 = load i32, ptr %2, align 4, !tbaa !5
%140 = icmp eq i32 %139, 0
br i1 %140, label %125, label %142
141: ; preds = %125
store i32 0, ptr %2, align 4, !tbaa !5
br label %142
142: ; preds = %76, %70, %36, %63, %101, %136, %117, %133, %20, %141, %95, %88, %60
%143 = load ptr, ptr %0, align 8, !tbaa !12
%144 = call i32 @sdio_release_host(ptr noundef %143) #4
%145 = call i32 @kfree(ptr noundef nonnull %15) #4
br label %146
146: ; preds = %142, %17
%147 = load ptr, ptr %3, align 8, !tbaa !13
%148 = call i32 @release_firmware(ptr noundef %147) #4
br label %149
149: ; preds = %146, %11
%150 = load i32, ptr %2, align 4, !tbaa !5
%151 = icmp eq i32 %150, 0
br i1 %151, label %155, label %152
152: ; preds = %149
%153 = call i32 @lbs_pr_err(ptr noundef nonnull @.str.4) #4
%154 = load i32, ptr %2, align 4, !tbaa !5
br label %155
155: ; preds = %149, %152
%156 = phi i32 [ 0, %149 ], [ %154, %152 ]
%157 = load i32, ptr @LBS_DEB_SDIO, align 4, !tbaa !5
%158 = call i32 @lbs_deb_leave_args(i32 noundef %157, ptr noundef nonnull @.str.5, i32 noundef %156) #4
%159 = load i32, ptr %2, align 4, !tbaa !5
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
ret i32 %159
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @lbs_deb_enter(i32 noundef) local_unnamed_addr #2
declare i32 @request_firmware(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @lbs_pr_err(ptr noundef) local_unnamed_addr #2
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sdio_claim_host(ptr noundef) local_unnamed_addr #2
declare i32 @sdio_set_block_size(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sdio_readb(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @time_after(i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @mdelay(i32 noundef) local_unnamed_addr #2
declare i32 @lbs_deb_sdio(ptr noundef) local_unnamed_addr #2
declare i64 @min(i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @sdio_writesb(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @roundup(i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @if_sdio_read_scratch(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @msleep(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @sdio_release_host(ptr noundef) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
declare i32 @release_firmware(ptr noundef) local_unnamed_addr #2
declare i32 @lbs_deb_leave_args(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 12}
!10 = !{!"if_sdio_card", !11, i64 0, !6, i64 8, !6, i64 12}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"firmware", !11, i64 0, !16, i64 8}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !16, i64 0}
!21 = !{!10, !6, i64 8}
!22 = distinct !{!22, !19}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_if_sdio.c_if_sdio_prog_real.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/libertas/extr_if_sdio.c_if_sdio_prog_real.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@LBS_DEB_SDIO = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"can't load firmware\0A\00", align 1
@GFP_KERNEL = common local_unnamed_addr global i32 0, align 4
@ENOMEM = common local_unnamed_addr global i32 0, align 4
@jiffies = common local_unnamed_addr global i64 0, align 8
@HZ = common local_unnamed_addr global i64 0, align 8
@IF_SDIO_STATUS = common local_unnamed_addr global i64 0, align 8
@IF_SDIO_IO_RDY = common local_unnamed_addr global i32 0, align 4
@IF_SDIO_DL_RDY = common local_unnamed_addr global i32 0, align 4
@ETIMEDOUT = common local_unnamed_addr global i32 0, align 4
@IF_SDIO_RD_BASE = common local_unnamed_addr global i64 0, align 8
@.str.1 = private unnamed_addr constant [31 x i8] c"firmware helper gave up early\0A\00", align 1
@EIO = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"firmware helper signalled error\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"waiting for firmware to boot...\0A\00", align 1
@IF_SDIO_FIRMWARE_OK = common local_unnamed_addr global i64 0, align 8
@.str.4 = private unnamed_addr constant [25 x i8] c"failed to load firmware\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"ret %d\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @if_sdio_prog_real], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @if_sdio_prog_real(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
%4 = load i32, ptr @LBS_DEB_SDIO, align 4, !tbaa !6
%5 = tail call i32 @lbs_deb_enter(i32 noundef %4) #4
%6 = getelementptr inbounds i8, ptr %0, i64 12
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = load ptr, ptr %0, align 8, !tbaa !13
%9 = call i32 @request_firmware(ptr noundef nonnull %3, i32 noundef %7, ptr noundef %8) #4
store i32 %9, ptr %2, align 4, !tbaa !6
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %1
%12 = call i32 @lbs_pr_err(ptr noundef nonnull @.str) #4
br label %149
13: ; preds = %1
%14 = load i32, ptr @GFP_KERNEL, align 4, !tbaa !6
%15 = call ptr @kzalloc(i32 noundef 512, i32 noundef %14) #4
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i32, ptr @ENOMEM, align 4, !tbaa !6
%19 = sub nsw i32 0, %18
store i32 %19, ptr %2, align 4, !tbaa !6
br label %146
20: ; preds = %13
%21 = load ptr, ptr %0, align 8, !tbaa !13
%22 = call i32 @sdio_claim_host(ptr noundef %21) #4
%23 = load ptr, ptr %0, align 8, !tbaa !13
%24 = call i32 @sdio_set_block_size(ptr noundef %23, i32 noundef 32) #4
store i32 %24, ptr %2, align 4, !tbaa !6
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %142
26: ; preds = %20
%27 = load ptr, ptr %3, align 8, !tbaa !14
%28 = getelementptr inbounds i8, ptr %27, i64 8
%29 = load i64, ptr %28, align 8, !tbaa !15
%30 = icmp eq i64 %29, 0
br i1 %30, label %117, label %31
31: ; preds = %26
%32 = load ptr, ptr %27, align 8, !tbaa !18
%33 = getelementptr inbounds i8, ptr %0, i64 8
br label %36
34: ; preds = %112
%35 = icmp eq i64 %114, 0
br i1 %35, label %117, label %36, !llvm.loop !19
36: ; preds = %31, %34
%37 = phi i64 [ %29, %31 ], [ %114, %34 ]
%38 = phi ptr [ %32, %31 ], [ %113, %34 ]
%39 = load i64, ptr @jiffies, align 8, !tbaa !21
%40 = load i64, ptr @HZ, align 8, !tbaa !21
%41 = add i64 %40, %39
%42 = load ptr, ptr %0, align 8, !tbaa !13
%43 = load i64, ptr @IF_SDIO_STATUS, align 8, !tbaa !21
%44 = call i32 @sdio_readb(ptr noundef %42, i64 noundef %43, ptr noundef nonnull %2) #4
%45 = load i32, ptr %2, align 4, !tbaa !6
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %142
47: ; preds = %36, %63
%48 = phi i32 [ %67, %63 ], [ %44, %36 ]
%49 = load i32, ptr @IF_SDIO_IO_RDY, align 4, !tbaa !6
%50 = and i32 %49, %48
%51 = icmp eq i32 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %47
%53 = load i32, ptr @IF_SDIO_DL_RDY, align 4, !tbaa !6
%54 = and i32 %53, %48
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %70
56: ; preds = %52, %47
%57 = load i64, ptr @jiffies, align 8, !tbaa !21
%58 = call i64 @time_after(i64 noundef %57, i64 noundef %41) #4
%59 = icmp eq i64 %58, 0
br i1 %59, label %63, label %60
60: ; preds = %56
%61 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%62 = sub nsw i32 0, %61
store i32 %62, ptr %2, align 4, !tbaa !6
br label %142
63: ; preds = %56
%64 = call i32 @mdelay(i32 noundef 1) #4
%65 = load ptr, ptr %0, align 8, !tbaa !13
%66 = load i64, ptr @IF_SDIO_STATUS, align 8, !tbaa !21
%67 = call i32 @sdio_readb(ptr noundef %65, i64 noundef %66, ptr noundef nonnull %2) #4
%68 = load i32, ptr %2, align 4, !tbaa !6
%69 = icmp eq i32 %68, 0
br i1 %69, label %47, label %142
70: ; preds = %52
%71 = load ptr, ptr %0, align 8, !tbaa !13
%72 = load i64, ptr @IF_SDIO_RD_BASE, align 8, !tbaa !21
%73 = call i32 @sdio_readb(ptr noundef %71, i64 noundef %72, ptr noundef nonnull %2) #4
%74 = load i32, ptr %2, align 4, !tbaa !6
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %142
76: ; preds = %70
%77 = load ptr, ptr %0, align 8, !tbaa !13
%78 = load i64, ptr @IF_SDIO_RD_BASE, align 8, !tbaa !21
%79 = add nsw i64 %78, 1
%80 = call i32 @sdio_readb(ptr noundef %77, i64 noundef %79, ptr noundef nonnull %2) #4
%81 = shl i32 %80, 8
%82 = or i32 %81, %73
%83 = sext i32 %82 to i64
%84 = load i32, ptr %2, align 4, !tbaa !6
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %142
86: ; preds = %76
%87 = icmp eq i32 %82, 0
br i1 %87, label %88, label %92
88: ; preds = %86
%89 = call i32 @lbs_deb_sdio(ptr noundef nonnull @.str.1) #4
%90 = load i32, ptr @EIO, align 4, !tbaa !6
%91 = sub nsw i32 0, %90
store i32 %91, ptr %2, align 4, !tbaa !6
br label %142
92: ; preds = %86
%93 = and i64 %83, 1
%94 = icmp eq i64 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %92
%96 = call i32 @lbs_deb_sdio(ptr noundef nonnull @.str.2) #4
%97 = load i32, ptr @EIO, align 4, !tbaa !6
%98 = sub nsw i32 0, %97
store i32 %98, ptr %2, align 4, !tbaa !6
br label %142
99: ; preds = %92
%100 = call i64 @llvm.umin.i64(i64 %37, i64 %83)
br label %101
101: ; preds = %99, %112
%102 = phi i64 [ %100, %99 ], [ %115, %112 ]
%103 = phi i64 [ %37, %99 ], [ %114, %112 ]
%104 = phi ptr [ %38, %99 ], [ %113, %112 ]
%105 = call i64 @min(i64 noundef %102, i64 noundef 512) #4
%106 = call i32 @memcpy(ptr noundef nonnull %15, ptr noundef %104, i64 noundef %105) #4
%107 = load ptr, ptr %0, align 8, !tbaa !13
%108 = load i32, ptr %33, align 8, !tbaa !22
%109 = call i32 @roundup(i64 noundef %105, i32 noundef 32) #4
%110 = call i32 @sdio_writesb(ptr noundef %107, i32 noundef %108, ptr noundef nonnull %15, i32 noundef %109) #4
store i32 %110, ptr %2, align 4, !tbaa !6
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %142
112: ; preds = %101
%113 = getelementptr inbounds i32, ptr %104, i64 %105
%114 = sub i64 %103, %105
%115 = sub i64 %102, %105
%116 = icmp eq i64 %115, 0
br i1 %116, label %34, label %101, !llvm.loop !23
117: ; preds = %34, %26
store i32 0, ptr %2, align 4, !tbaa !6
%118 = call i32 @lbs_deb_sdio(ptr noundef nonnull @.str.3) #4
%119 = load i64, ptr @jiffies, align 8, !tbaa !21
%120 = load i64, ptr @HZ, align 8, !tbaa !21
%121 = add i64 %120, %119
%122 = call i64 @if_sdio_read_scratch(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
%123 = load i32, ptr %2, align 4, !tbaa !6
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %142
125: ; preds = %117, %136
%126 = phi i64 [ %138, %136 ], [ %122, %117 ]
%127 = load i64, ptr @IF_SDIO_FIRMWARE_OK, align 8, !tbaa !21
%128 = icmp eq i64 %126, %127
br i1 %128, label %141, label %129
129: ; preds = %125
%130 = load i64, ptr @jiffies, align 8, !tbaa !21
%131 = call i64 @time_after(i64 noundef %130, i64 noundef %121) #4
%132 = icmp eq i64 %131, 0
br i1 %132, label %136, label %133
133: ; preds = %129
%134 = load i32, ptr @ETIMEDOUT, align 4, !tbaa !6
%135 = sub nsw i32 0, %134
store i32 %135, ptr %2, align 4, !tbaa !6
br label %142
136: ; preds = %129
%137 = call i32 @msleep(i32 noundef 10) #4
%138 = call i64 @if_sdio_read_scratch(ptr noundef nonnull %0, ptr noundef nonnull %2) #4
%139 = load i32, ptr %2, align 4, !tbaa !6
%140 = icmp eq i32 %139, 0
br i1 %140, label %125, label %142
141: ; preds = %125
store i32 0, ptr %2, align 4, !tbaa !6
br label %142
142: ; preds = %76, %70, %36, %63, %101, %136, %117, %133, %20, %141, %95, %88, %60
%143 = load ptr, ptr %0, align 8, !tbaa !13
%144 = call i32 @sdio_release_host(ptr noundef %143) #4
%145 = call i32 @kfree(ptr noundef nonnull %15) #4
br label %146
146: ; preds = %142, %17
%147 = load ptr, ptr %3, align 8, !tbaa !14
%148 = call i32 @release_firmware(ptr noundef %147) #4
br label %149
149: ; preds = %146, %11
%150 = load i32, ptr %2, align 4, !tbaa !6
%151 = icmp eq i32 %150, 0
br i1 %151, label %155, label %152
152: ; preds = %149
%153 = call i32 @lbs_pr_err(ptr noundef nonnull @.str.4) #4
%154 = load i32, ptr %2, align 4, !tbaa !6
br label %155
155: ; preds = %149, %152
%156 = phi i32 [ %154, %152 ], [ 0, %149 ]
%157 = load i32, ptr @LBS_DEB_SDIO, align 4, !tbaa !6
%158 = call i32 @lbs_deb_leave_args(i32 noundef %157, ptr noundef nonnull @.str.5, i32 noundef %156) #4
%159 = load i32, ptr %2, align 4, !tbaa !6
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
ret i32 %159
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @lbs_deb_enter(i32 noundef) local_unnamed_addr #2
declare i32 @request_firmware(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @lbs_pr_err(ptr noundef) local_unnamed_addr #2
declare ptr @kzalloc(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sdio_claim_host(ptr noundef) local_unnamed_addr #2
declare i32 @sdio_set_block_size(ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @sdio_readb(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @time_after(i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @mdelay(i32 noundef) local_unnamed_addr #2
declare i32 @lbs_deb_sdio(ptr noundef) local_unnamed_addr #2
declare i64 @min(i64 noundef, i64 noundef) local_unnamed_addr #2
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2
declare i32 @sdio_writesb(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @roundup(i64 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @if_sdio_read_scratch(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @msleep(i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @sdio_release_host(ptr noundef) local_unnamed_addr #2
declare i32 @kfree(ptr noundef) local_unnamed_addr #2
declare i32 @release_firmware(ptr noundef) local_unnamed_addr #2
declare i32 @lbs_deb_leave_args(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 12}
!11 = !{!"if_sdio_card", !12, i64 0, !7, i64 8, !7, i64 12}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !12, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !17, i64 8}
!16 = !{!"firmware", !12, i64 0, !17, i64 8}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !17, i64 0}
!22 = !{!11, !7, i64 8}
!23 = distinct !{!23, !20}
|
fastsocket_kernel_drivers_net_wireless_libertas_extr_if_sdio.c_if_sdio_prog_real
|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_config_action.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_config_action.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.hclge_fd_ad_data = type { i32, i32, i32, i32, i32, i32, i32, i64, i64, i64 }
%struct.hclge_fd_rule = type { i64, i32, i64 }
@HCLGE_FD_ACTION_DROP_PACKET = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @hclge_config_action], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @hclge_config_action(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = alloca %struct.hclge_fd_ad_data, align 8
call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #4
%5 = getelementptr inbounds %struct.hclge_fd_rule, ptr %2, i64 0, i32 1
%6 = load i32, ptr %5, align 8, !tbaa !5
%7 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 5
store i32 %6, ptr %7, align 4, !tbaa !11
%8 = load i64, ptr %2, align 8, !tbaa !13
%9 = load i64, ptr @HCLGE_FD_ACTION_DROP_PACKET, align 8, !tbaa !14
%10 = icmp eq i64 %8, %9
br i1 %10, label %14, label %11
11: ; preds = %3
%12 = getelementptr inbounds %struct.hclge_fd_rule, ptr %2, i64 0, i32 2
%13 = load i64, ptr %12, align 8, !tbaa !15
br label %14
14: ; preds = %3, %11
%15 = phi i64 [ %13, %11 ], [ 0, %3 ]
%16 = phi <2 x i32> [ <i32 0, i32 1>, %11 ], [ <i32 1, i32 0>, %3 ]
store <2 x i32> %16, ptr %4, align 8
%17 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 9
store i64 %15, ptr %17, align 8
%18 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 2
store i32 0, ptr %18, align 8, !tbaa !16
%19 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 3
store i32 0, ptr %19, align 4, !tbaa !17
%20 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 7
%21 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, i8 0, i64 16, i1 false)
store i32 1, ptr %21, align 8, !tbaa !18
%22 = getelementptr inbounds %struct.hclge_fd_ad_data, ptr %4, i64 0, i32 6
store i32 %6, ptr %22, align 8, !tbaa !19
%23 = call i32 @hclge_fd_ad_config(ptr noundef %0, i32 noundef %1, i32 noundef %6, ptr noundef nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #4
ret i32 %23
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @hclge_fd_ad_config(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"hclge_fd_rule", !7, i64 0, !10, i64 8, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 20}
!12 = !{!"hclge_fd_ad_data", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!13 = !{!6, !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !7, i64 16}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 12}
!18 = !{!12, !10, i64 16}
!19 = !{!12, !10, i64 24}
|
; ModuleID = 'AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_config_action.c'
source_filename = "AnghaBench/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/extr_hclge_main.c_hclge_config_action.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.hclge_fd_ad_data = type { i32, i32, i32, i32, i32, i32, i32, i64, i64, i64 }
@HCLGE_FD_ACTION_DROP_PACKET = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @hclge_config_action], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @hclge_config_action(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2) #0 {
%4 = alloca %struct.hclge_fd_ad_data, align 8
call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #4
%5 = getelementptr inbounds i8, ptr %2, i64 8
%6 = load i32, ptr %5, align 8, !tbaa !6
%7 = getelementptr inbounds i8, ptr %4, i64 20
store i32 %6, ptr %7, align 4, !tbaa !12
%8 = load i64, ptr %2, align 8, !tbaa !14
%9 = load i64, ptr @HCLGE_FD_ACTION_DROP_PACKET, align 8, !tbaa !15
%10 = icmp eq i64 %8, %9
br i1 %10, label %14, label %11
11: ; preds = %3
%12 = getelementptr inbounds i8, ptr %2, i64 16
%13 = load i64, ptr %12, align 8, !tbaa !16
br label %14
14: ; preds = %3, %11
%15 = phi i64 [ %13, %11 ], [ 0, %3 ]
%16 = phi <2 x i32> [ <i32 0, i32 1>, %11 ], [ <i32 1, i32 0>, %3 ]
store <2 x i32> %16, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %4, i64 48
store i64 %15, ptr %17, align 8
%18 = getelementptr inbounds i8, ptr %4, i64 8
store <2 x i32> zeroinitializer, ptr %18, align 8, !tbaa !17
%19 = getelementptr inbounds i8, ptr %4, i64 32
%20 = getelementptr inbounds i8, ptr %4, i64 16
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, i8 0, i64 16, i1 false)
store i32 1, ptr %20, align 8, !tbaa !18
%21 = getelementptr inbounds i8, ptr %4, i64 24
store i32 %6, ptr %21, align 8, !tbaa !19
%22 = call i32 @hclge_fd_ad_config(ptr noundef %0, i32 noundef %1, i32 noundef %6, ptr noundef nonnull %4) #4
call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #4
ret i32 %22
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @hclge_fd_ad_config(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !11, i64 8}
!7 = !{!"hclge_fd_rule", !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 20}
!13 = !{!"hclge_fd_ad_data", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!14 = !{!7, !8, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!7, !8, i64 16}
!17 = !{!11, !11, i64 0}
!18 = !{!13, !11, i64 16}
!19 = !{!13, !11, i64 24}
|
linux_drivers_net_ethernet_hisilicon_hns3_hns3pf_extr_hclge_main.c_hclge_config_action
|
; ModuleID = 'AnghaBench/freebsd/usr.bin/truss/extr_setup.c_report_signal.c'
source_filename = "AnghaBench/freebsd/usr.bin/truss/extr_setup.c_report_signal.c"
target datalayout = "e-m:e-p270:32:32-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.trussinfo = type { i32, ptr }
%struct.ptrace_lwpinfo = type { i64, i32, i32 }
@CLOCK_REALTIME = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"SIGNAL %u (%s)\00", align 1
@PL_EVENT_SIGNAL = dso_local local_unnamed_addr global i64 0, align 8
@PL_FLAG_SI = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @report_signal], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @report_signal(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) #0 {
%4 = getelementptr inbounds %struct.trussinfo, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load i32, ptr @CLOCK_REALTIME, align 4, !tbaa !11
%7 = tail call i32 @clock_gettime(i32 noundef %6, ptr noundef %5) #2
%8 = tail call i32 @print_line_prefix(ptr noundef %0) #2
%9 = load i32, ptr %1, align 4, !tbaa !12
%10 = tail call ptr @sysdecode_signal(i32 noundef %9) #2
%11 = icmp eq ptr %10, null
%12 = select i1 %11, ptr @.str, ptr %10
%13 = load i32, ptr %0, align 8, !tbaa !14
%14 = load i32, ptr %1, align 4, !tbaa !12
%15 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef nonnull @.str.1, i32 noundef %14, ptr noundef nonnull %12) #2
%16 = load i64, ptr %2, align 8, !tbaa !15
%17 = load i64, ptr @PL_EVENT_SIGNAL, align 8, !tbaa !18
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %29
19: ; preds = %3
%20 = getelementptr inbounds %struct.ptrace_lwpinfo, ptr %2, i64 0, i32 1
%21 = load i32, ptr %20, align 8, !tbaa !19
%22 = load i32, ptr @PL_FLAG_SI, align 4, !tbaa !11
%23 = and i32 %22, %21
%24 = icmp eq i32 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %19
%26 = load i32, ptr %0, align 8, !tbaa !14
%27 = getelementptr inbounds %struct.ptrace_lwpinfo, ptr %2, i64 0, i32 2
%28 = tail call i32 @decode_siginfo(i32 noundef %26, ptr noundef nonnull %27) #2
br label %29
29: ; preds = %25, %19, %3
%30 = load i32, ptr %0, align 8, !tbaa !14
%31 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef nonnull @.str.2) #2
ret void
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @print_line_prefix(ptr noundef) local_unnamed_addr #1
declare ptr @sysdecode_signal(i32 noundef) local_unnamed_addr #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @decode_siginfo(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, !10, i64 8}
!6 = !{!"trussinfo", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_3__", !7, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"ptrace_lwpinfo", !17, i64 0, !7, i64 8, !7, i64 12}
!17 = !{!"long", !8, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!16, !7, i64 8}
|
; ModuleID = 'AnghaBench/freebsd/usr.bin/truss/extr_setup.c_report_signal.c'
source_filename = "AnghaBench/freebsd/usr.bin/truss/extr_setup.c_report_signal.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CLOCK_REALTIME = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"SIGNAL %u (%s)\00", align 1
@PL_EVENT_SIGNAL = common local_unnamed_addr global i64 0, align 8
@PL_FLAG_SI = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @report_signal], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @report_signal(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) #0 {
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load i32, ptr @CLOCK_REALTIME, align 4, !tbaa !12
%7 = tail call i32 @clock_gettime(i32 noundef %6, ptr noundef %5) #2
%8 = tail call i32 @print_line_prefix(ptr noundef %0) #2
%9 = load i32, ptr %1, align 4, !tbaa !13
%10 = tail call ptr @sysdecode_signal(i32 noundef %9) #2
%11 = icmp eq ptr %10, null
%12 = select i1 %11, ptr @.str, ptr %10
%13 = load i32, ptr %0, align 8, !tbaa !15
%14 = load i32, ptr %1, align 4, !tbaa !13
%15 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %13, ptr noundef nonnull @.str.1, i32 noundef %14, ptr noundef nonnull %12) #2
%16 = load i64, ptr %2, align 8, !tbaa !16
%17 = load i64, ptr @PL_EVENT_SIGNAL, align 8, !tbaa !19
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %29
19: ; preds = %3
%20 = getelementptr inbounds i8, ptr %2, i64 8
%21 = load i32, ptr %20, align 8, !tbaa !20
%22 = load i32, ptr @PL_FLAG_SI, align 4, !tbaa !12
%23 = and i32 %22, %21
%24 = icmp eq i32 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %19
%26 = load i32, ptr %0, align 8, !tbaa !15
%27 = getelementptr inbounds i8, ptr %2, i64 12
%28 = tail call i32 @decode_siginfo(i32 noundef %26, ptr noundef nonnull %27) #2
br label %29
29: ; preds = %25, %19, %3
%30 = load i32, ptr %0, align 8, !tbaa !15
%31 = tail call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef nonnull @.str.2) #2
ret void
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @print_line_prefix(ptr noundef) local_unnamed_addr #1
declare ptr @sysdecode_signal(i32 noundef) local_unnamed_addr #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) local_unnamed_addr #1
declare i32 @decode_siginfo(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, !11, i64 8}
!7 = !{!"trussinfo", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_3__", !8, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"ptrace_lwpinfo", !18, i64 0, !8, i64 8, !8, i64 12}
!18 = !{!"long", !9, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!17, !8, i64 8}
|
freebsd_usr.bin_truss_extr_setup.c_report_signal
|
; ModuleID = 'AnghaBench/freebsd/sys/arm/arm/extr_generic_timer.c_get_ctrl.c'
source_filename = "AnghaBench/freebsd/sys/arm/arm/extr_generic_timer.c_get_ctrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@cntp_ctl = dso_local local_unnamed_addr global i32 0, align 4
@cntv_ctl = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @get_ctrl], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @get_ctrl(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 0
%3 = load i32, ptr @cntv_ctl, align 4
%4 = load i32, ptr @cntp_ctl, align 4
%5 = select i1 %2, i32 %3, i32 %4
%6 = tail call i32 @get_el0(i32 noundef %5) #2
ret i32 %6
}
declare i32 @get_el0(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/arm/arm/extr_generic_timer.c_get_ctrl.c'
source_filename = "AnghaBench/freebsd/sys/arm/arm/extr_generic_timer.c_get_ctrl.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@cntp_ctl = common local_unnamed_addr global i32 0, align 4
@cntv_ctl = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @get_ctrl], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @get_ctrl(i32 noundef %0) #0 {
%2 = icmp eq i32 %0, 0
%3 = load i32, ptr @cntv_ctl, align 4
%4 = load i32, ptr @cntp_ctl, align 4
%5 = select i1 %2, i32 %3, i32 %4
%6 = tail call i32 @get_el0(i32 noundef %5) #2
ret i32 %6
}
declare i32 @get_el0(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_arm_arm_extr_generic_timer.c_get_ctrl
|
; ModuleID = 'AnghaBench/linux/kernel/power/extr_snapshot.c_mark_unsafe_pages.c'
source_filename = "AnghaBench/linux/kernel/power/extr_snapshot.c_mark_unsafe_pages.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@free_pages_map = dso_local local_unnamed_addr global i32 0, align 4
@BM_END_OF_MAP = dso_local local_unnamed_addr global i64 0, align 8
@allocated_unsafe_pages = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @mark_unsafe_pages], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @mark_unsafe_pages(ptr noundef %0) #0 {
%2 = load i32, ptr @free_pages_map, align 4, !tbaa !5
%3 = tail call i32 @memory_bm_position_reset(i32 noundef %2) #2
%4 = load i32, ptr @free_pages_map, align 4, !tbaa !5
%5 = tail call i64 @memory_bm_next_pfn(i32 noundef %4) #2
%6 = load i64, ptr @BM_END_OF_MAP, align 8, !tbaa !9
%7 = icmp eq i64 %5, %6
br i1 %7, label %15, label %8
8: ; preds = %1, %8
%9 = load i32, ptr @free_pages_map, align 4, !tbaa !5
%10 = tail call i32 @memory_bm_clear_current(i32 noundef %9) #2
%11 = load i32, ptr @free_pages_map, align 4, !tbaa !5
%12 = tail call i64 @memory_bm_next_pfn(i32 noundef %11) #2
%13 = load i64, ptr @BM_END_OF_MAP, align 8, !tbaa !9
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %8, !llvm.loop !11
15: ; preds = %8, %1
%16 = load i32, ptr @free_pages_map, align 4, !tbaa !5
%17 = tail call i32 @duplicate_memory_bitmap(i32 noundef %16, ptr noundef %0) #2
store i64 0, ptr @allocated_unsafe_pages, align 8, !tbaa !9
ret void
}
declare i32 @memory_bm_position_reset(i32 noundef) local_unnamed_addr #1
declare i64 @memory_bm_next_pfn(i32 noundef) local_unnamed_addr #1
declare i32 @memory_bm_clear_current(i32 noundef) local_unnamed_addr #1
declare i32 @duplicate_memory_bitmap(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/linux/kernel/power/extr_snapshot.c_mark_unsafe_pages.c'
source_filename = "AnghaBench/linux/kernel/power/extr_snapshot.c_mark_unsafe_pages.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@free_pages_map = common local_unnamed_addr global i32 0, align 4
@BM_END_OF_MAP = common local_unnamed_addr global i64 0, align 8
@allocated_unsafe_pages = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @mark_unsafe_pages], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @mark_unsafe_pages(ptr noundef %0) #0 {
%2 = load i32, ptr @free_pages_map, align 4, !tbaa !6
%3 = tail call i32 @memory_bm_position_reset(i32 noundef %2) #2
%4 = load i32, ptr @free_pages_map, align 4, !tbaa !6
%5 = tail call i64 @memory_bm_next_pfn(i32 noundef %4) #2
%6 = load i64, ptr @BM_END_OF_MAP, align 8, !tbaa !10
%7 = icmp eq i64 %5, %6
br i1 %7, label %15, label %8
8: ; preds = %1, %8
%9 = load i32, ptr @free_pages_map, align 4, !tbaa !6
%10 = tail call i32 @memory_bm_clear_current(i32 noundef %9) #2
%11 = load i32, ptr @free_pages_map, align 4, !tbaa !6
%12 = tail call i64 @memory_bm_next_pfn(i32 noundef %11) #2
%13 = load i64, ptr @BM_END_OF_MAP, align 8, !tbaa !10
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %8, !llvm.loop !12
15: ; preds = %8, %1
%16 = load i32, ptr @free_pages_map, align 4, !tbaa !6
%17 = tail call i32 @duplicate_memory_bitmap(i32 noundef %16, ptr noundef %0) #2
store i64 0, ptr @allocated_unsafe_pages, align 8, !tbaa !10
ret void
}
declare i32 @memory_bm_position_reset(i32 noundef) local_unnamed_addr #1
declare i64 @memory_bm_next_pfn(i32 noundef) local_unnamed_addr #1
declare i32 @memory_bm_clear_current(i32 noundef) local_unnamed_addr #1
declare i32 @duplicate_memory_bitmap(i32 noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
|
linux_kernel_power_extr_snapshot.c_mark_unsafe_pages
|
; ModuleID = 'AnghaBench/linux/arch/mips/jazz/extr_jazzdma.c_vdma_pgtbl_init.c'
source_filename = "AnghaBench/linux/arch/mips/jazz/extr_jazzdma.c_vdma_pgtbl_init.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i32 }
@VDMA_PGTBL_ENTRIES = dso_local local_unnamed_addr global i32 0, align 4
@pgtbl = dso_local local_unnamed_addr global ptr null, align 8
@VDMA_PAGE_EMPTY = dso_local local_unnamed_addr global i32 0, align 4
@VDMA_PAGESIZE = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @vdma_pgtbl_init], section "llvm.metadata"
; Function Attrs: inlinehint nofree norecurse nosync nounwind memory(readwrite, argmem: write, inaccessiblemem: none) uwtable
define internal void @vdma_pgtbl_init() #0 {
%1 = load i32, ptr @VDMA_PGTBL_ENTRIES, align 4, !tbaa !5
%2 = icmp sgt i32 %1, 0
br i1 %2, label %3, label %17
3: ; preds = %0
%4 = load ptr, ptr @pgtbl, align 8, !tbaa !9
%5 = load i32, ptr @VDMA_PAGE_EMPTY, align 4, !tbaa !5
br label %6
6: ; preds = %3, %6
%7 = phi i64 [ 0, %3 ], [ %13, %6 ]
%8 = phi i64 [ 0, %3 ], [ %12, %6 ]
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i64 %7
store i64 %8, ptr %9, align 8, !tbaa !11
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i64 %7, i32 1
store i32 %5, ptr %10, align 8, !tbaa !14
%11 = load i64, ptr @VDMA_PAGESIZE, align 8, !tbaa !15
%12 = add i64 %11, %8
%13 = add nuw nsw i64 %7, 1
%14 = load i32, ptr @VDMA_PGTBL_ENTRIES, align 4, !tbaa !5
%15 = sext i32 %14 to i64
%16 = icmp slt i64 %13, %15
br i1 %16, label %6, label %17, !llvm.loop !16
17: ; preds = %6, %0
ret void
}
attributes #0 = { inlinehint nofree norecurse nosync nounwind memory(readwrite, argmem: write, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13, i64 0}
!12 = !{!"TYPE_2__", !13, i64 0, !6, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!13, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/linux/arch/mips/jazz/extr_jazzdma.c_vdma_pgtbl_init.c'
source_filename = "AnghaBench/linux/arch/mips/jazz/extr_jazzdma.c_vdma_pgtbl_init.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, i32 }
@VDMA_PGTBL_ENTRIES = common local_unnamed_addr global i32 0, align 4
@pgtbl = common local_unnamed_addr global ptr null, align 8
@VDMA_PAGE_EMPTY = common local_unnamed_addr global i32 0, align 4
@VDMA_PAGESIZE = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @vdma_pgtbl_init], section "llvm.metadata"
; Function Attrs: inlinehint nofree norecurse nosync nounwind ssp memory(readwrite, argmem: write, inaccessiblemem: none) uwtable(sync)
define internal void @vdma_pgtbl_init() #0 {
%1 = load i32, ptr @VDMA_PGTBL_ENTRIES, align 4, !tbaa !6
%2 = icmp sgt i32 %1, 0
br i1 %2, label %3, label %17
3: ; preds = %0
%4 = load ptr, ptr @pgtbl, align 8, !tbaa !10
%5 = load i32, ptr @VDMA_PAGE_EMPTY, align 4, !tbaa !6
br label %6
6: ; preds = %3, %6
%7 = phi i64 [ 0, %3 ], [ %13, %6 ]
%8 = phi i64 [ 0, %3 ], [ %12, %6 ]
%9 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i64 %7
store i64 %8, ptr %9, align 8, !tbaa !12
%10 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i64 %7, i32 1
store i32 %5, ptr %10, align 8, !tbaa !15
%11 = load i64, ptr @VDMA_PAGESIZE, align 8, !tbaa !16
%12 = add i64 %11, %8
%13 = add nuw nsw i64 %7, 1
%14 = load i32, ptr @VDMA_PGTBL_ENTRIES, align 4, !tbaa !6
%15 = sext i32 %14 to i64
%16 = icmp slt i64 %13, %15
br i1 %16, label %6, label %17, !llvm.loop !17
17: ; preds = %6, %0
ret void
}
attributes #0 = { inlinehint nofree norecurse nosync nounwind ssp memory(readwrite, argmem: write, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"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, !14, i64 0}
!13 = !{!"TYPE_2__", !14, i64 0, !7, i64 8}
!14 = !{!"long", !8, i64 0}
!15 = !{!13, !7, i64 8}
!16 = !{!14, !14, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
|
linux_arch_mips_jazz_extr_jazzdma.c_vdma_pgtbl_init
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_common.c_il_check_rxon_cmd.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_common.c_il_check_rxon_cmd.c"
target datalayout = "e-m:e-p270:32:32-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.il_rxon_cmd = type { i32, ptr, ptr, i32, i32, i32, i32 }
@RXON_FLG_BAND_24G_MSK = dso_local local_unnamed_addr global i32 0, align 4
@RXON_FLG_TGJ_NARROW_BAND_MSK = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"check 2.4G: wrong narrow\0A\00", align 1
@RXON_FLG_RADAR_DETECT_MSK = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"check 2.4G: wrong radar\0A\00", align 1
@RXON_FLG_SHORT_SLOT_MSK = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"check 5.2G: not short slot!\0A\00", align 1
@RXON_FLG_CCK_MSK = dso_local local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"check 5.2G: CCK!\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"mac/bssid mcast!\0A\00", align 1
@RATE_6M_MASK = dso_local local_unnamed_addr global i32 0, align 4
@RATE_1M_MASK = dso_local local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [27 x i8] c"neither 1 nor 6 are basic\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"aid > 2007\0A\00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"CCK and short slot\0A\00", align 1
@RXON_FLG_AUTO_DETECT_MSK = dso_local local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [20 x i8] c"CCK and auto detect\00", align 1
@RXON_FLG_TGG_PROTECT_MSK = dso_local local_unnamed_addr global i32 0, align 4
@.str.9 = private unnamed_addr constant [24 x i8] c"TGg but no auto-detect\0A\00", align 1
@.str.10 = private unnamed_addr constant [22 x i8] c"Tuning to channel %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"Invalid RXON\0A\00", align 1
@EINVAL = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local i32 @il_check_rxon_cmd(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !5
%3 = load i32, ptr @RXON_FLG_BAND_24G_MSK, align 4, !tbaa !11
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %19, label %6
6: ; preds = %1
%7 = load i32, ptr @RXON_FLG_TGJ_NARROW_BAND_MSK, align 4, !tbaa !11
%8 = and i32 %7, %2
%9 = icmp eq i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %6
%11 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str) #2
%12 = load i32, ptr %0, align 8, !tbaa !5
br label %13
13: ; preds = %10, %6
%14 = phi i32 [ %12, %10 ], [ %2, %6 ]
%15 = phi i32 [ 1, %10 ], [ 0, %6 ]
%16 = load i32, ptr @RXON_FLG_RADAR_DETECT_MSK, align 4, !tbaa !11
%17 = and i32 %16, %14
%18 = icmp eq i32 %17, 0
br i1 %18, label %35, label %32
19: ; preds = %1
%20 = load i32, ptr @RXON_FLG_SHORT_SLOT_MSK, align 4, !tbaa !11
%21 = and i32 %20, %2
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.2) #2
%25 = load i32, ptr %0, align 8, !tbaa !5
br label %26
26: ; preds = %23, %19
%27 = phi i32 [ %2, %19 ], [ %25, %23 ]
%28 = phi i32 [ 0, %19 ], [ 1, %23 ]
%29 = load i32, ptr @RXON_FLG_CCK_MSK, align 4, !tbaa !11
%30 = and i32 %29, %27
%31 = icmp eq i32 %30, 0
br i1 %31, label %35, label %32
32: ; preds = %26, %13
%33 = phi ptr [ @.str.1, %13 ], [ @.str.3, %26 ]
%34 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull %33) #2
br label %35
35: ; preds = %32, %26, %13
%36 = phi i32 [ %15, %13 ], [ %28, %26 ], [ 1, %32 ]
%37 = getelementptr inbounds %struct.il_rxon_cmd, ptr %0, i64 0, i32 1
%38 = load ptr, ptr %37, align 8, !tbaa !12
%39 = load i32, ptr %38, align 4, !tbaa !11
%40 = getelementptr inbounds %struct.il_rxon_cmd, ptr %0, i64 0, i32 2
%41 = load ptr, ptr %40, align 8, !tbaa !13
%42 = load i32, ptr %41, align 4, !tbaa !11
%43 = or i32 %42, %39
%44 = and i32 %43, 1
%45 = icmp eq i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %35
%47 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.4) #2
br label %48
48: ; preds = %46, %35
%49 = phi i32 [ 1, %46 ], [ %36, %35 ]
%50 = getelementptr inbounds %struct.il_rxon_cmd, ptr %0, i64 0, i32 3
%51 = load i32, ptr %50, align 8, !tbaa !14
%52 = load i32, ptr @RATE_6M_MASK, align 4, !tbaa !11
%53 = and i32 %52, %51
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %48
%56 = getelementptr inbounds %struct.il_rxon_cmd, ptr %0, i64 0, i32 4
%57 = load i32, ptr %56, align 4, !tbaa !15
%58 = load i32, ptr @RATE_1M_MASK, align 4, !tbaa !11
%59 = and i32 %58, %57
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %55
%62 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.5) #2
br label %63
63: ; preds = %61, %55, %48
%64 = phi i32 [ 1, %61 ], [ %49, %55 ], [ %49, %48 ]
%65 = getelementptr inbounds %struct.il_rxon_cmd, ptr %0, i64 0, i32 6
%66 = load i32, ptr %65, align 4, !tbaa !16
%67 = tail call i32 @le16_to_cpu(i32 noundef %66) #2
%68 = icmp sgt i32 %67, 2007
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.6) #2
br label %71
71: ; preds = %69, %63
%72 = phi i32 [ 1, %69 ], [ %64, %63 ]
%73 = load i32, ptr %0, align 8, !tbaa !5
%74 = load i32, ptr @RXON_FLG_CCK_MSK, align 4, !tbaa !11
%75 = load i32, ptr @RXON_FLG_SHORT_SLOT_MSK, align 4, !tbaa !11
%76 = or i32 %75, %74
%77 = and i32 %76, %73
%78 = icmp eq i32 %77, %76
br i1 %78, label %79, label %83
79: ; preds = %71
%80 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.7) #2
%81 = load i32, ptr %0, align 8, !tbaa !5
%82 = load i32, ptr @RXON_FLG_CCK_MSK, align 4, !tbaa !11
br label %83
83: ; preds = %79, %71
%84 = phi i32 [ %82, %79 ], [ %74, %71 ]
%85 = phi i32 [ %81, %79 ], [ %73, %71 ]
%86 = phi i32 [ 1, %79 ], [ %72, %71 ]
%87 = load i32, ptr @RXON_FLG_AUTO_DETECT_MSK, align 4, !tbaa !11
%88 = or i32 %87, %84
%89 = and i32 %88, %85
%90 = icmp eq i32 %89, %88
br i1 %90, label %96, label %91
91: ; preds = %83
%92 = load i32, ptr @RXON_FLG_TGG_PROTECT_MSK, align 4, !tbaa !11
%93 = or i32 %92, %87
%94 = and i32 %93, %85
%95 = icmp eq i32 %94, %92
br i1 %95, label %104, label %106
96: ; preds = %83
%97 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.8) #2
%98 = load i32, ptr %0, align 8, !tbaa !5
%99 = load i32, ptr @RXON_FLG_AUTO_DETECT_MSK, align 4, !tbaa !11
%100 = load i32, ptr @RXON_FLG_TGG_PROTECT_MSK, align 4, !tbaa !11
%101 = or i32 %100, %99
%102 = and i32 %101, %98
%103 = icmp eq i32 %102, %100
br i1 %103, label %104, label %108
104: ; preds = %96, %91
%105 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.9) #2
br label %108
106: ; preds = %91
%107 = icmp eq i32 %86, 0
br i1 %107, label %116, label %108
108: ; preds = %96, %104, %106
%109 = getelementptr inbounds %struct.il_rxon_cmd, ptr %0, i64 0, i32 5
%110 = load i32, ptr %109, align 8, !tbaa !17
%111 = tail call i32 @le16_to_cpu(i32 noundef %110) #2
%112 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.10, i32 noundef %111) #2
%113 = tail call i32 @IL_ERR(ptr noundef nonnull @.str.11) #2
%114 = load i32, ptr @EINVAL, align 4, !tbaa !11
%115 = sub nsw i32 0, %114
br label %116
116: ; preds = %106, %108
%117 = phi i32 [ %115, %108 ], [ 0, %106 ]
ret i32 %117
}
declare i32 @IL_WARN(ptr noundef, ...) local_unnamed_addr #1
declare i32 @le16_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @IL_ERR(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 = !{!"il_rxon_cmd", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 28}
!16 = !{!6, !7, i64 36}
!17 = !{!6, !7, i64 32}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_common.c_il_check_rxon_cmd.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/net/wireless/iwlegacy/extr_common.c_il_check_rxon_cmd.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@RXON_FLG_BAND_24G_MSK = common local_unnamed_addr global i32 0, align 4
@RXON_FLG_TGJ_NARROW_BAND_MSK = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"check 2.4G: wrong narrow\0A\00", align 1
@RXON_FLG_RADAR_DETECT_MSK = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [25 x i8] c"check 2.4G: wrong radar\0A\00", align 1
@RXON_FLG_SHORT_SLOT_MSK = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"check 5.2G: not short slot!\0A\00", align 1
@RXON_FLG_CCK_MSK = common local_unnamed_addr global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"check 5.2G: CCK!\0A\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"mac/bssid mcast!\0A\00", align 1
@RATE_6M_MASK = common local_unnamed_addr global i32 0, align 4
@RATE_1M_MASK = common local_unnamed_addr global i32 0, align 4
@.str.5 = private unnamed_addr constant [27 x i8] c"neither 1 nor 6 are basic\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"aid > 2007\0A\00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"CCK and short slot\0A\00", align 1
@RXON_FLG_AUTO_DETECT_MSK = common local_unnamed_addr global i32 0, align 4
@.str.8 = private unnamed_addr constant [20 x i8] c"CCK and auto detect\00", align 1
@RXON_FLG_TGG_PROTECT_MSK = common local_unnamed_addr global i32 0, align 4
@.str.9 = private unnamed_addr constant [24 x i8] c"TGg but no auto-detect\0A\00", align 1
@.str.10 = private unnamed_addr constant [22 x i8] c"Tuning to channel %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"Invalid RXON\0A\00", align 1
@EINVAL = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 -2147483647, -2147483648) i32 @il_check_rxon_cmd(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 8, !tbaa !6
%3 = load i32, ptr @RXON_FLG_BAND_24G_MSK, align 4, !tbaa !12
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %19, label %6
6: ; preds = %1
%7 = load i32, ptr @RXON_FLG_TGJ_NARROW_BAND_MSK, align 4, !tbaa !12
%8 = and i32 %7, %2
%9 = icmp eq i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %6
%11 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str) #2
%12 = load i32, ptr %0, align 8, !tbaa !6
br label %13
13: ; preds = %10, %6
%14 = phi i32 [ %12, %10 ], [ %2, %6 ]
%15 = phi i32 [ 1, %10 ], [ 0, %6 ]
%16 = load i32, ptr @RXON_FLG_RADAR_DETECT_MSK, align 4, !tbaa !12
%17 = and i32 %16, %14
%18 = icmp eq i32 %17, 0
br i1 %18, label %35, label %32
19: ; preds = %1
%20 = load i32, ptr @RXON_FLG_SHORT_SLOT_MSK, align 4, !tbaa !12
%21 = and i32 %20, %2
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.2) #2
%25 = load i32, ptr %0, align 8, !tbaa !6
br label %26
26: ; preds = %23, %19
%27 = phi i32 [ %2, %19 ], [ %25, %23 ]
%28 = phi i32 [ 0, %19 ], [ 1, %23 ]
%29 = load i32, ptr @RXON_FLG_CCK_MSK, align 4, !tbaa !12
%30 = and i32 %29, %27
%31 = icmp eq i32 %30, 0
br i1 %31, label %35, label %32
32: ; preds = %26, %13
%33 = phi ptr [ @.str.1, %13 ], [ @.str.3, %26 ]
%34 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull %33) #2
br label %35
35: ; preds = %32, %26, %13
%36 = phi i32 [ %15, %13 ], [ %28, %26 ], [ 1, %32 ]
%37 = getelementptr inbounds i8, ptr %0, i64 8
%38 = load ptr, ptr %37, align 8, !tbaa !13
%39 = load i32, ptr %38, align 4, !tbaa !12
%40 = getelementptr inbounds i8, ptr %0, i64 16
%41 = load ptr, ptr %40, align 8, !tbaa !14
%42 = load i32, ptr %41, align 4, !tbaa !12
%43 = or i32 %42, %39
%44 = and i32 %43, 1
%45 = icmp eq i32 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %35
%47 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.4) #2
br label %48
48: ; preds = %46, %35
%49 = phi i32 [ 1, %46 ], [ %36, %35 ]
%50 = getelementptr inbounds i8, ptr %0, i64 24
%51 = load i32, ptr %50, align 8, !tbaa !15
%52 = load i32, ptr @RATE_6M_MASK, align 4, !tbaa !12
%53 = and i32 %52, %51
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %48
%56 = getelementptr inbounds i8, ptr %0, i64 28
%57 = load i32, ptr %56, align 4, !tbaa !16
%58 = load i32, ptr @RATE_1M_MASK, align 4, !tbaa !12
%59 = and i32 %58, %57
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %55
%62 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.5) #2
br label %63
63: ; preds = %61, %55, %48
%64 = phi i32 [ 1, %61 ], [ %49, %55 ], [ %49, %48 ]
%65 = getelementptr inbounds i8, ptr %0, i64 36
%66 = load i32, ptr %65, align 4, !tbaa !17
%67 = tail call i32 @le16_to_cpu(i32 noundef %66) #2
%68 = icmp sgt i32 %67, 2007
br i1 %68, label %69, label %71
69: ; preds = %63
%70 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.6) #2
br label %71
71: ; preds = %69, %63
%72 = phi i32 [ 1, %69 ], [ %64, %63 ]
%73 = load i32, ptr %0, align 8, !tbaa !6
%74 = load i32, ptr @RXON_FLG_CCK_MSK, align 4, !tbaa !12
%75 = load i32, ptr @RXON_FLG_SHORT_SLOT_MSK, align 4, !tbaa !12
%76 = or i32 %75, %74
%77 = and i32 %76, %73
%78 = icmp eq i32 %77, %76
br i1 %78, label %79, label %83
79: ; preds = %71
%80 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.7) #2
%81 = load i32, ptr %0, align 8, !tbaa !6
%82 = load i32, ptr @RXON_FLG_CCK_MSK, align 4, !tbaa !12
br label %83
83: ; preds = %79, %71
%84 = phi i32 [ %82, %79 ], [ %74, %71 ]
%85 = phi i32 [ %81, %79 ], [ %73, %71 ]
%86 = phi i32 [ 1, %79 ], [ %72, %71 ]
%87 = load i32, ptr @RXON_FLG_AUTO_DETECT_MSK, align 4, !tbaa !12
%88 = or i32 %87, %84
%89 = and i32 %88, %85
%90 = icmp eq i32 %89, %88
br i1 %90, label %96, label %91
91: ; preds = %83
%92 = load i32, ptr @RXON_FLG_TGG_PROTECT_MSK, align 4, !tbaa !12
%93 = or i32 %92, %87
%94 = and i32 %93, %85
%95 = icmp eq i32 %94, %92
br i1 %95, label %104, label %106
96: ; preds = %83
%97 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.8) #2
%98 = load i32, ptr %0, align 8, !tbaa !6
%99 = load i32, ptr @RXON_FLG_AUTO_DETECT_MSK, align 4, !tbaa !12
%100 = load i32, ptr @RXON_FLG_TGG_PROTECT_MSK, align 4, !tbaa !12
%101 = or i32 %100, %99
%102 = and i32 %101, %98
%103 = icmp eq i32 %102, %100
br i1 %103, label %104, label %108
104: ; preds = %96, %91
%105 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.9) #2
br label %108
106: ; preds = %91
%107 = icmp eq i32 %86, 0
br i1 %107, label %116, label %108
108: ; preds = %96, %104, %106
%109 = getelementptr inbounds i8, ptr %0, i64 32
%110 = load i32, ptr %109, align 8, !tbaa !18
%111 = tail call i32 @le16_to_cpu(i32 noundef %110) #2
%112 = tail call i32 (ptr, ...) @IL_WARN(ptr noundef nonnull @.str.10, i32 noundef %111) #2
%113 = tail call i32 @IL_ERR(ptr noundef nonnull @.str.11) #2
%114 = load i32, ptr @EINVAL, align 4, !tbaa !12
%115 = sub nsw i32 0, %114
br label %116
116: ; preds = %106, %108
%117 = phi i32 [ %115, %108 ], [ 0, %106 ]
ret i32 %117
}
declare i32 @IL_WARN(ptr noundef, ...) local_unnamed_addr #1
declare i32 @le16_to_cpu(i32 noundef) local_unnamed_addr #1
declare i32 @IL_ERR(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 = !{!"il_rxon_cmd", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 8}
!14 = !{!7, !11, i64 16}
!15 = !{!7, !8, i64 24}
!16 = !{!7, !8, i64 28}
!17 = !{!7, !8, i64 36}
!18 = !{!7, !8, i64 32}
|
fastsocket_kernel_drivers_net_wireless_iwlegacy_extr_common.c_il_check_rxon_cmd
|
; ModuleID = 'AnghaBench/linux/drivers/greybus/extr_connection.c_gb_connection_destroy.c'
source_filename = "AnghaBench/linux/drivers/greybus/extr_connection.c_gb_connection_destroy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.gb_connection = type { i64, i32, i32, i32, i32, i32 }
@GB_CONNECTION_STATE_DISABLED = dso_local local_unnamed_addr global i64 0, align 8
@gb_connection_mutex = dso_local global i32 0, align 4
@gb_connections_lock = dso_local global i32 0, align 4
@CPORT_ID_BAD = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @gb_connection_destroy(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %31, label %3
3: ; preds = %1
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = load i64, ptr @GB_CONNECTION_STATE_DISABLED, align 8, !tbaa !11
%6 = icmp ne i64 %4, %5
%7 = zext i1 %6 to i32
%8 = tail call i64 @WARN_ON(i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %3
%11 = tail call i32 @gb_connection_disable(ptr noundef nonnull %0) #2
br label %12
12: ; preds = %10, %3
%13 = tail call i32 @mutex_lock(ptr noundef nonnull @gb_connection_mutex) #2
%14 = tail call i32 @spin_lock_irq(ptr noundef nonnull @gb_connections_lock) #2
%15 = getelementptr inbounds %struct.gb_connection, ptr %0, i64 0, i32 5
%16 = tail call i32 @list_del(ptr noundef nonnull %15) #2
%17 = getelementptr inbounds %struct.gb_connection, ptr %0, i64 0, i32 4
%18 = tail call i32 @list_del(ptr noundef nonnull %17) #2
%19 = tail call i32 @spin_unlock_irq(ptr noundef nonnull @gb_connections_lock) #2
%20 = getelementptr inbounds %struct.gb_connection, ptr %0, i64 0, i32 3
%21 = load i32, ptr %20, align 8, !tbaa !12
%22 = tail call i32 @destroy_workqueue(i32 noundef %21) #2
%23 = getelementptr inbounds %struct.gb_connection, ptr %0, i64 0, i32 2
%24 = load i32, ptr %23, align 4, !tbaa !13
%25 = getelementptr inbounds %struct.gb_connection, ptr %0, i64 0, i32 1
%26 = load i32, ptr %25, align 8, !tbaa !14
%27 = tail call i32 @gb_hd_cport_release(i32 noundef %24, i32 noundef %26) #2
%28 = load i32, ptr @CPORT_ID_BAD, align 4, !tbaa !15
store i32 %28, ptr %25, align 8, !tbaa !14
%29 = tail call i32 @mutex_unlock(ptr noundef nonnull @gb_connection_mutex) #2
%30 = tail call i32 @gb_connection_put(ptr noundef nonnull %0) #2
br label %31
31: ; preds = %1, %12
ret void
}
declare i64 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i32 @gb_connection_disable(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @destroy_workqueue(i32 noundef) local_unnamed_addr #1
declare i32 @gb_hd_cport_release(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @gb_connection_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, !7, i64 0}
!6 = !{!"gb_connection", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 12}
!14 = !{!6, !10, i64 8}
!15 = !{!10, !10, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/greybus/extr_connection.c_gb_connection_destroy.c'
source_filename = "AnghaBench/linux/drivers/greybus/extr_connection.c_gb_connection_destroy.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@GB_CONNECTION_STATE_DISABLED = common local_unnamed_addr global i64 0, align 8
@gb_connection_mutex = common global i32 0, align 4
@gb_connections_lock = common global i32 0, align 4
@CPORT_ID_BAD = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @gb_connection_destroy(ptr noundef %0) local_unnamed_addr #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %31, label %3
3: ; preds = %1
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = load i64, ptr @GB_CONNECTION_STATE_DISABLED, align 8, !tbaa !12
%6 = icmp ne i64 %4, %5
%7 = zext i1 %6 to i32
%8 = tail call i64 @WARN_ON(i32 noundef %7) #2
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %3
%11 = tail call i32 @gb_connection_disable(ptr noundef nonnull %0) #2
br label %12
12: ; preds = %10, %3
%13 = tail call i32 @mutex_lock(ptr noundef nonnull @gb_connection_mutex) #2
%14 = tail call i32 @spin_lock_irq(ptr noundef nonnull @gb_connections_lock) #2
%15 = getelementptr inbounds i8, ptr %0, i64 24
%16 = tail call i32 @list_del(ptr noundef nonnull %15) #2
%17 = getelementptr inbounds i8, ptr %0, i64 20
%18 = tail call i32 @list_del(ptr noundef nonnull %17) #2
%19 = tail call i32 @spin_unlock_irq(ptr noundef nonnull @gb_connections_lock) #2
%20 = getelementptr inbounds i8, ptr %0, i64 16
%21 = load i32, ptr %20, align 8, !tbaa !13
%22 = tail call i32 @destroy_workqueue(i32 noundef %21) #2
%23 = getelementptr inbounds i8, ptr %0, i64 12
%24 = load i32, ptr %23, align 4, !tbaa !14
%25 = getelementptr inbounds i8, ptr %0, i64 8
%26 = load i32, ptr %25, align 8, !tbaa !15
%27 = tail call i32 @gb_hd_cport_release(i32 noundef %24, i32 noundef %26) #2
%28 = load i32, ptr @CPORT_ID_BAD, align 4, !tbaa !16
store i32 %28, ptr %25, align 8, !tbaa !15
%29 = tail call i32 @mutex_unlock(ptr noundef nonnull @gb_connection_mutex) #2
%30 = tail call i32 @gb_connection_put(ptr noundef nonnull %0) #2
br label %31
31: ; preds = %1, %12
ret void
}
declare i64 @WARN_ON(i32 noundef) local_unnamed_addr #1
declare i32 @gb_connection_disable(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @spin_lock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @list_del(ptr noundef) local_unnamed_addr #1
declare i32 @spin_unlock_irq(ptr noundef) local_unnamed_addr #1
declare i32 @destroy_workqueue(i32 noundef) local_unnamed_addr #1
declare i32 @gb_hd_cport_release(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
declare i32 @gb_connection_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, !8, i64 0}
!7 = !{!"gb_connection", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !11, i64 16}
!14 = !{!7, !11, i64 12}
!15 = !{!7, !11, i64 8}
!16 = !{!11, !11, i64 0}
|
linux_drivers_greybus_extr_connection.c_gb_connection_destroy
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/usb/controller/extr_ohci.c_ohci_device_bulk_enter.c'
source_filename = "AnghaBench/freebsd/sys/dev/usb/controller/extr_ohci.c_ohci_device_bulk_enter.c"
target datalayout = "e-m:e-p270:32:32-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 @ohci_device_bulk_enter], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @ohci_device_bulk_enter(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/usb/controller/extr_ohci.c_ohci_device_bulk_enter.c'
source_filename = "AnghaBench/freebsd/sys/dev/usb/controller/extr_ohci.c_ohci_device_bulk_enter.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 @ohci_device_bulk_enter], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @ohci_device_bulk_enter(ptr nocapture readnone %0) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
freebsd_sys_dev_usb_controller_extr_ohci.c_ohci_device_bulk_enter
|
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/m68k/amiga/extr_pcmcia.c_pcmcia_write_enable.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/m68k/amiga/extr_pcmcia.c_pcmcia_write_enable.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i32 }
@GAYLE_CS_WR = dso_local local_unnamed_addr global i32 0, align 4
@GAYLE_CS_DA = dso_local local_unnamed_addr global i32 0, align 4
@gayle = dso_local local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable
define dso_local void @pcmcia_write_enable() local_unnamed_addr #0 {
%1 = load i32, ptr @GAYLE_CS_WR, align 4, !tbaa !5
%2 = load i32, ptr @GAYLE_CS_DA, align 4, !tbaa !5
%3 = or i32 %2, %1
store i32 %3, ptr @gayle, align 4, !tbaa !9
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, 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"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_2__", !6, i64 0}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/arch/m68k/amiga/extr_pcmcia.c_pcmcia_write_enable.c'
source_filename = "AnghaBench/fastsocket/kernel/arch/m68k/amiga/extr_pcmcia.c_pcmcia_write_enable.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 }
@GAYLE_CS_WR = common local_unnamed_addr global i32 0, align 4
@GAYLE_CS_DA = common local_unnamed_addr global i32 0, align 4
@gayle = common local_unnamed_addr global %struct.TYPE_2__ zeroinitializer, align 4
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, argmem: none, inaccessiblemem: none) uwtable(sync)
define void @pcmcia_write_enable() local_unnamed_addr #0 {
%1 = load i32, ptr @GAYLE_CS_WR, align 4, !tbaa !6
%2 = load i32, ptr @GAYLE_CS_DA, align 4, !tbaa !6
%3 = or i32 %2, %1
store i32 %3, ptr @gayle, align 4, !tbaa !10
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(readwrite, 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"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_2__", !7, i64 0}
|
fastsocket_kernel_arch_m68k_amiga_extr_pcmcia.c_pcmcia_write_enable
|
; ModuleID = 'AnghaBench/linux/drivers/perf/extr_thunderx2_pmu.c_init_cntr_base_dmc.c'
source_filename = "AnghaBench/linux/drivers/perf/extr_thunderx2_pmu.c_init_cntr_base_dmc.c"
target datalayout = "e-m:e-p270:32:32-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.hw_perf_event = type { i64, i64 }
@DMC_COUNTER_CTL = dso_local local_unnamed_addr global i64 0, align 8
@DMC_COUNTER_DATA = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @init_cntr_base_dmc], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @init_cntr_base_dmc(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %1, align 8, !tbaa !5
%4 = load i64, ptr @DMC_COUNTER_CTL, align 8, !tbaa !10
%5 = add i64 %4, %3
%6 = getelementptr inbounds %struct.hw_perf_event, ptr %0, i64 0, i32 1
store i64 %5, ptr %6, align 8, !tbaa !11
%7 = load i64, ptr @DMC_COUNTER_DATA, align 8, !tbaa !10
%8 = add i64 %7, %3
%9 = tail call i32 @GET_COUNTERID(ptr noundef %0) #2
%10 = mul nsw i32 %9, 12
%11 = sext i32 %10 to i64
%12 = add i64 %8, %11
store i64 %12, ptr %0, align 8, !tbaa !13
ret void
}
declare i32 @GET_COUNTERID(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 = !{!"tx2_uncore_pmu", !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, !7, i64 8}
!12 = !{!"hw_perf_event", !7, i64 0, !7, i64 8}
!13 = !{!12, !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/perf/extr_thunderx2_pmu.c_init_cntr_base_dmc.c'
source_filename = "AnghaBench/linux/drivers/perf/extr_thunderx2_pmu.c_init_cntr_base_dmc.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@DMC_COUNTER_CTL = common local_unnamed_addr global i64 0, align 8
@DMC_COUNTER_DATA = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @init_cntr_base_dmc], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @init_cntr_base_dmc(ptr noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = load i64, ptr %1, align 8, !tbaa !6
%4 = load i64, ptr @DMC_COUNTER_CTL, align 8, !tbaa !11
%5 = add i64 %4, %3
%6 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %5, ptr %6, align 8, !tbaa !12
%7 = load i64, ptr @DMC_COUNTER_DATA, align 8, !tbaa !11
%8 = add i64 %7, %3
%9 = tail call i32 @GET_COUNTERID(ptr noundef %0) #2
%10 = mul nsw i32 %9, 12
%11 = sext i32 %10 to i64
%12 = add i64 %8, %11
store i64 %12, ptr %0, align 8, !tbaa !14
ret void
}
declare i32 @GET_COUNTERID(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 = !{!"tx2_uncore_pmu", !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, !8, i64 8}
!13 = !{!"hw_perf_event", !8, i64 0, !8, i64 8}
!14 = !{!13, !8, i64 0}
|
linux_drivers_perf_extr_thunderx2_pmu.c_init_cntr_base_dmc
|
; ModuleID = 'AnghaBench/linux/arch/mips/sibyte/common/extr_sb_tbprof.c_sbprof_tb_release.c'
source_filename = "AnghaBench/linux/arch/mips/sibyte/common/extr_sb_tbprof.c_sbprof_tb_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.TYPE_2__ = type { i64, i32, i32, i64, i64 }
@sbp = dso_local global %struct.TYPE_2__ zeroinitializer, align 8
@SB_CLOSED = dso_local local_unnamed_addr global i64 0, align 8
@ENODEV = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @sbprof_tb_release], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @sbprof_tb_release(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call i32 @iminor(ptr noundef %0) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = load i64, ptr @sbp, align 8, !tbaa !5
%7 = load i64, ptr @SB_CLOSED, align 8, !tbaa !11
%8 = icmp eq i64 %6, %7
br i1 %8, label %12, label %9
9: ; preds = %5, %2
%10 = load i32, ptr @ENODEV, align 4, !tbaa !12
%11 = sub nsw i32 0, %10
br label %27
12: ; preds = %5
%13 = tail call i32 @mutex_lock(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_2__, ptr @sbp, i64 0, i32 1)) #2
%14 = load i64, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @sbp, i64 0, i32 4), align 8, !tbaa !13
%15 = icmp ne i64 %14, 0
%16 = load i64, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @sbp, i64 0, i32 3), align 8
%17 = icmp ne i64 %16, 0
%18 = select i1 %15, i1 true, i1 %17
br i1 %18, label %19, label %21
19: ; preds = %12
%20 = tail call i32 (...) @sbprof_zbprof_stop() #2
br label %21
21: ; preds = %12, %19
%22 = load i32, ptr getelementptr inbounds (%struct.TYPE_2__, ptr @sbp, i64 0, i32 2), align 4, !tbaa !14
%23 = tail call i32 @vfree(i32 noundef %22) #2
%24 = load i64, ptr @SB_CLOSED, align 8, !tbaa !11
store i64 %24, ptr @sbp, align 8, !tbaa !5
%25 = tail call i32 (...) @wmb() #2
%26 = tail call i32 @mutex_unlock(ptr noundef nonnull getelementptr inbounds (%struct.TYPE_2__, ptr @sbp, i64 0, i32 1)) #2
br label %27
27: ; preds = %21, %9
%28 = phi i32 [ %11, %9 ], [ 0, %21 ]
ret i32 %28
}
declare i32 @iminor(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @sbprof_zbprof_stop(...) local_unnamed_addr #1
declare i32 @vfree(i32 noundef) local_unnamed_addr #1
declare i32 @wmb(...) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_2__", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !10, i64 12}
|
; ModuleID = 'AnghaBench/linux/arch/mips/sibyte/common/extr_sb_tbprof.c_sbprof_tb_release.c'
source_filename = "AnghaBench/linux/arch/mips/sibyte/common/extr_sb_tbprof.c_sbprof_tb_release.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, i32, i32, i64, i64 }
@sbp = common global %struct.TYPE_2__ zeroinitializer, align 8
@SB_CLOSED = common local_unnamed_addr global i64 0, align 8
@ENODEV = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @sbprof_tb_release], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 -2147483647, -2147483648) i32 @sbprof_tb_release(ptr noundef %0, ptr nocapture readnone %1) #0 {
%3 = tail call i32 @iminor(ptr noundef %0) #2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = load i64, ptr @sbp, align 8, !tbaa !6
%7 = load i64, ptr @SB_CLOSED, align 8, !tbaa !12
%8 = icmp eq i64 %6, %7
br i1 %8, label %12, label %9
9: ; preds = %5, %2
%10 = load i32, ptr @ENODEV, align 4, !tbaa !13
%11 = sub nsw i32 0, %10
br label %27
12: ; preds = %5
%13 = tail call i32 @mutex_lock(ptr noundef nonnull getelementptr inbounds (i8, ptr @sbp, i64 8)) #2
%14 = load i64, ptr getelementptr inbounds (i8, ptr @sbp, i64 24), align 8, !tbaa !14
%15 = icmp ne i64 %14, 0
%16 = load i64, ptr getelementptr inbounds (i8, ptr @sbp, i64 16), align 8
%17 = icmp ne i64 %16, 0
%18 = select i1 %15, i1 true, i1 %17
br i1 %18, label %19, label %21
19: ; preds = %12
%20 = tail call i32 @sbprof_zbprof_stop() #2
br label %21
21: ; preds = %12, %19
%22 = load i32, ptr getelementptr inbounds (i8, ptr @sbp, i64 12), align 4, !tbaa !15
%23 = tail call i32 @vfree(i32 noundef %22) #2
%24 = load i64, ptr @SB_CLOSED, align 8, !tbaa !12
store i64 %24, ptr @sbp, align 8, !tbaa !6
%25 = tail call i32 @wmb() #2
%26 = tail call i32 @mutex_unlock(ptr noundef nonnull getelementptr inbounds (i8, ptr @sbp, i64 8)) #2
br label %27
27: ; preds = %21, %9
%28 = phi i32 [ %11, %9 ], [ 0, %21 ]
ret i32 %28
}
declare i32 @iminor(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_lock(ptr noundef) local_unnamed_addr #1
declare i32 @sbprof_zbprof_stop(...) local_unnamed_addr #1
declare i32 @vfree(i32 noundef) local_unnamed_addr #1
declare i32 @wmb(...) local_unnamed_addr #1
declare i32 @mutex_unlock(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_2__", !8, i64 0, !11, i64 8, !11, i64 12, !8, i64 16, !8, i64 24}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !8, i64 24}
!15 = !{!7, !11, i64 12}
|
linux_arch_mips_sibyte_common_extr_sb_tbprof.c_sbprof_tb_release
|
; ModuleID = 'AnghaBench/i3/src/extr_bindings.c_load_keymap.c'
source_filename = "AnghaBench/i3/src/extr_bindings.c_load_keymap.c"
target datalayout = "e-m:e-p270:32:32-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.xkb_rule_names = type { ptr, ptr, ptr, ptr, ptr }
@xkb_context = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [36 x i8] c"Could not create xkbcommon context\0A\00", align 1
@xkb_supported = dso_local local_unnamed_addr global i64 0, align 8
@conn = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [39 x i8] c"xkb_x11_keymap_new_from_device failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [68 x i8] c"No XKB / core keyboard device? Assembling keymap from local RMLVO.\0A\00", align 1
@.str.3 = private unnamed_addr constant [81 x i8] c"Could not get _XKB_RULES_NAMES atom from root window, falling back to defaults.\0A\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"xkb_keymap_new_from_names failed\0A\00", align 1
@xkb_keymap = dso_local local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind uwtable
define dso_local noundef i32 @load_keymap() local_unnamed_addr #0 {
%1 = alloca %struct.xkb_rule_names, align 8
%2 = load ptr, ptr @xkb_context, align 8, !tbaa !5
%3 = icmp eq ptr %2, null
br i1 %3, label %4, label %9
4: ; preds = %0
%5 = tail call ptr @xkb_context_new(i32 noundef 0) #4
store ptr %5, ptr @xkb_context, align 8, !tbaa !5
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i32 @ELOG(ptr noundef nonnull @.str) #4
br label %54
9: ; preds = %4, %0
%10 = load i64, ptr @xkb_supported, align 8, !tbaa !9
%11 = icmp eq i64 %10, 0
br i1 %11, label %23, label %12
12: ; preds = %9
%13 = load i32, ptr @conn, align 4, !tbaa !11
%14 = tail call i32 @xkb_x11_get_core_keyboard_device_id(i32 noundef %13) #4
%15 = icmp sgt i32 %14, -1
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load ptr, ptr @xkb_context, align 8, !tbaa !5
%18 = load i32, ptr @conn, align 4, !tbaa !11
%19 = tail call ptr @xkb_x11_keymap_new_from_device(ptr noundef %17, i32 noundef %18, i32 noundef %14, i32 noundef 0) #4
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %50
21: ; preds = %16
%22 = tail call i32 @ELOG(ptr noundef nonnull @.str.1) #4
br label %54
23: ; preds = %12, %9
%24 = tail call i32 @LOG(ptr noundef nonnull @.str.2) #4
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %1, i8 0, i64 40, i1 false)
%25 = call i32 @fill_rmlvo_from_root(ptr noundef nonnull %1) #4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @ELOG(ptr noundef nonnull @.str.3) #4
br label %29
29: ; preds = %27, %23
%30 = load ptr, ptr @xkb_context, align 8, !tbaa !5
%31 = call ptr @xkb_keymap_new_from_names(ptr noundef %30, ptr noundef nonnull %1, i32 noundef 0) #4
%32 = getelementptr inbounds %struct.xkb_rule_names, ptr %1, i64 0, i32 4
%33 = load ptr, ptr %32, align 8, !tbaa !13
%34 = call i32 @free(ptr noundef %33) #4
%35 = getelementptr inbounds %struct.xkb_rule_names, ptr %1, i64 0, i32 3
%36 = load ptr, ptr %35, align 8, !tbaa !15
%37 = call i32 @free(ptr noundef %36) #4
%38 = getelementptr inbounds %struct.xkb_rule_names, ptr %1, i64 0, i32 2
%39 = load ptr, ptr %38, align 8, !tbaa !16
%40 = call i32 @free(ptr noundef %39) #4
%41 = getelementptr inbounds %struct.xkb_rule_names, ptr %1, i64 0, i32 1
%42 = load ptr, ptr %41, align 8, !tbaa !17
%43 = call i32 @free(ptr noundef %42) #4
%44 = load ptr, ptr %1, align 8, !tbaa !18
%45 = call i32 @free(ptr noundef %44) #4
%46 = icmp eq ptr %31, null
br i1 %46, label %47, label %49
47: ; preds = %29
%48 = call i32 @ELOG(ptr noundef nonnull @.str.4) #4
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #4
br label %54
49: ; preds = %29
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #4
br label %50
50: ; preds = %49, %16
%51 = phi ptr [ %19, %16 ], [ %31, %49 ]
%52 = load ptr, ptr @xkb_keymap, align 8, !tbaa !5
%53 = call i32 @xkb_keymap_unref(ptr noundef %52) #4
store ptr %51, ptr @xkb_keymap, align 8, !tbaa !5
br label %54
54: ; preds = %47, %21, %50, %7
%55 = phi i32 [ 0, %7 ], [ 0, %21 ], [ 1, %50 ], [ 0, %47 ]
ret i32 %55
}
declare ptr @xkb_context_new(i32 noundef) local_unnamed_addr #1
declare i32 @ELOG(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @xkb_x11_get_core_keyboard_device_id(i32 noundef) local_unnamed_addr #1
declare ptr @xkb_x11_keymap_new_from_device(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LOG(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @fill_rmlvo_from_root(ptr noundef) local_unnamed_addr #1
declare ptr @xkb_keymap_new_from_names(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
declare i32 @xkb_keymap_unref(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"xkb_rule_names", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!14, !6, i64 24}
!16 = !{!14, !6, i64 16}
!17 = !{!14, !6, i64 8}
!18 = !{!14, !6, i64 0}
|
; ModuleID = 'AnghaBench/i3/src/extr_bindings.c_load_keymap.c'
source_filename = "AnghaBench/i3/src/extr_bindings.c_load_keymap.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.xkb_rule_names = type { ptr, ptr, ptr, ptr, ptr }
@xkb_context = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [36 x i8] c"Could not create xkbcommon context\0A\00", align 1
@xkb_supported = common local_unnamed_addr global i64 0, align 8
@conn = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [39 x i8] c"xkb_x11_keymap_new_from_device failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [68 x i8] c"No XKB / core keyboard device? Assembling keymap from local RMLVO.\0A\00", align 1
@.str.3 = private unnamed_addr constant [81 x i8] c"Could not get _XKB_RULES_NAMES atom from root window, falling back to defaults.\0A\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"xkb_keymap_new_from_names failed\0A\00", align 1
@xkb_keymap = common local_unnamed_addr global ptr null, align 8
; Function Attrs: nounwind ssp uwtable(sync)
define range(i32 0, 2) i32 @load_keymap() local_unnamed_addr #0 {
%1 = alloca %struct.xkb_rule_names, align 8
%2 = load ptr, ptr @xkb_context, align 8, !tbaa !6
%3 = icmp eq ptr %2, null
br i1 %3, label %4, label %9
4: ; preds = %0
%5 = tail call ptr @xkb_context_new(i32 noundef 0) #4
store ptr %5, ptr @xkb_context, align 8, !tbaa !6
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i32 @ELOG(ptr noundef nonnull @.str) #4
br label %54
9: ; preds = %4, %0
%10 = load i64, ptr @xkb_supported, align 8, !tbaa !10
%11 = icmp eq i64 %10, 0
br i1 %11, label %23, label %12
12: ; preds = %9
%13 = load i32, ptr @conn, align 4, !tbaa !12
%14 = tail call i32 @xkb_x11_get_core_keyboard_device_id(i32 noundef %13) #4
%15 = icmp sgt i32 %14, -1
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load ptr, ptr @xkb_context, align 8, !tbaa !6
%18 = load i32, ptr @conn, align 4, !tbaa !12
%19 = tail call ptr @xkb_x11_keymap_new_from_device(ptr noundef %17, i32 noundef %18, i32 noundef %14, i32 noundef 0) #4
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %50
21: ; preds = %16
%22 = tail call i32 @ELOG(ptr noundef nonnull @.str.1) #4
br label %54
23: ; preds = %12, %9
%24 = tail call i32 @LOG(ptr noundef nonnull @.str.2) #4
call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #4
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %1, i8 0, i64 40, i1 false)
%25 = call i32 @fill_rmlvo_from_root(ptr noundef nonnull %1) #4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @ELOG(ptr noundef nonnull @.str.3) #4
br label %29
29: ; preds = %27, %23
%30 = load ptr, ptr @xkb_context, align 8, !tbaa !6
%31 = call ptr @xkb_keymap_new_from_names(ptr noundef %30, ptr noundef nonnull %1, i32 noundef 0) #4
%32 = getelementptr inbounds i8, ptr %1, i64 32
%33 = load ptr, ptr %32, align 8, !tbaa !14
%34 = call i32 @free(ptr noundef %33) #4
%35 = getelementptr inbounds i8, ptr %1, i64 24
%36 = load ptr, ptr %35, align 8, !tbaa !16
%37 = call i32 @free(ptr noundef %36) #4
%38 = getelementptr inbounds i8, ptr %1, i64 16
%39 = load ptr, ptr %38, align 8, !tbaa !17
%40 = call i32 @free(ptr noundef %39) #4
%41 = getelementptr inbounds i8, ptr %1, i64 8
%42 = load ptr, ptr %41, align 8, !tbaa !18
%43 = call i32 @free(ptr noundef %42) #4
%44 = load ptr, ptr %1, align 8, !tbaa !19
%45 = call i32 @free(ptr noundef %44) #4
%46 = icmp eq ptr %31, null
br i1 %46, label %47, label %49
47: ; preds = %29
%48 = call i32 @ELOG(ptr noundef nonnull @.str.4) #4
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #4
br label %54
49: ; preds = %29
call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #4
br label %50
50: ; preds = %49, %16
%51 = phi ptr [ %19, %16 ], [ %31, %49 ]
%52 = load ptr, ptr @xkb_keymap, align 8, !tbaa !6
%53 = call i32 @xkb_keymap_unref(ptr noundef %52) #4
store ptr %51, ptr @xkb_keymap, align 8, !tbaa !6
br label %54
54: ; preds = %47, %21, %50, %7
%55 = phi i32 [ 0, %7 ], [ 0, %21 ], [ 1, %50 ], [ 0, %47 ]
ret i32 %55
}
declare ptr @xkb_context_new(i32 noundef) local_unnamed_addr #1
declare i32 @ELOG(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2
declare i32 @xkb_x11_get_core_keyboard_device_id(i32 noundef) local_unnamed_addr #1
declare ptr @xkb_x11_keymap_new_from_device(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @LOG(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @fill_rmlvo_from_root(ptr noundef) local_unnamed_addr #1
declare ptr @xkb_keymap_new_from_names(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @free(ptr noundef) local_unnamed_addr #1
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2
declare i32 @xkb_keymap_unref(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !7, i64 32}
!15 = !{!"xkb_rule_names", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!16 = !{!15, !7, i64 24}
!17 = !{!15, !7, i64 16}
!18 = !{!15, !7, i64 8}
!19 = !{!15, !7, i64 0}
|
i3_src_extr_bindings.c_load_keymap
|
; ModuleID = 'AnghaBench/linux/drivers/misc/mei/extr_bus.c_mei_cldev_ver.c'
source_filename = "AnghaBench/linux/drivers/misc/mei/extr_bus.c_mei_cldev_ver.c"
target datalayout = "e-m:e-p270:32:32-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 @mei_cldev_ver(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !5
%3 = tail call i32 @mei_me_cl_ver(i32 noundef %2) #2
ret i32 %3
}
declare i32 @mei_me_cl_ver(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 = !{!"mei_cl_device", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/linux/drivers/misc/mei/extr_bus.c_mei_cldev_ver.c'
source_filename = "AnghaBench/linux/drivers/misc/mei/extr_bus.c_mei_cldev_ver.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 @mei_cldev_ver(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
%2 = load i32, ptr %0, align 4, !tbaa !6
%3 = tail call i32 @mei_me_cl_ver(i32 noundef %2) #2
ret i32 %3
}
declare i32 @mei_me_cl_ver(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 = !{!"mei_cl_device", !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
|
linux_drivers_misc_mei_extr_bus.c_mei_cldev_ver
|
; ModuleID = 'AnghaBench/linux/crypto/extr_aegis128-core.c_aegis128_do_simd.c'
source_filename = "AnghaBench/linux/crypto/extr_aegis128-core.c_aegis128_do_simd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@have_simd = dso_local local_unnamed_addr global i64 0, align 8
@llvm.compiler.used = appending global [1 x ptr] [ptr @aegis128_do_simd], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal noundef i32 @aegis128_do_simd() #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/linux/crypto/extr_aegis128-core.c_aegis128_do_simd.c'
source_filename = "AnghaBench/linux/crypto/extr_aegis128-core.c_aegis128_do_simd.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@have_simd = common local_unnamed_addr global i64 0, align 8
@llvm.used = appending global [1 x ptr] [ptr @aegis128_do_simd], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal noundef i32 @aegis128_do_simd() #0 {
ret i32 0
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_crypto_extr_aegis128-core.c_aegis128_do_simd
|
; ModuleID = 'AnghaBench/borg/src/borg/algorithms/zstd/lib/compress/extr_zstd_ldm.c_ZSTD_ldm_getMaxNbSeq.c'
source_filename = "AnghaBench/borg/src/borg/algorithms/zstd/lib/compress/extr_zstd_ldm.c_ZSTD_ldm_getMaxNbSeq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local i64 @ZSTD_ldm_getMaxNbSeq(i64 %0, i64 %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = icmp eq i64 %1, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = udiv i64 %2, %0
br label %7
7: ; preds = %3, %5
%8 = phi i64 [ %6, %5 ], [ 0, %3 ]
ret i64 %8
}
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/borg/src/borg/algorithms/zstd/lib/compress/extr_zstd_ldm.c_ZSTD_ldm_getMaxNbSeq.c'
source_filename = "AnghaBench/borg/src/borg/algorithms/zstd/lib/compress/extr_zstd_ldm.c_ZSTD_ldm_getMaxNbSeq.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define i64 @ZSTD_ldm_getMaxNbSeq([2 x i64] %0, i64 noundef %1) local_unnamed_addr #0 {
%3 = extractvalue [2 x i64] %0, 1
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = extractvalue [2 x i64] %0, 0
%7 = udiv i64 %1, %6
br label %8
8: ; preds = %2, %5
%9 = phi i64 [ %7, %5 ], [ 0, %2 ]
ret i64 %9
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
borg_src_borg_algorithms_zstd_lib_compress_extr_zstd_ldm.c_ZSTD_ldm_getMaxNbSeq
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/drm2/extr_drm_pci.c___drm_pci_free.c'
source_filename = "AnghaBench/freebsd/sys/dev/drm2/extr_drm_pci.c___drm_pci_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.TYPE_3__ = type { i32, i32, i32 }
; Function Attrs: nounwind uwtable
define dso_local void @__drm_pci_free(ptr nocapture noundef readnone %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %16, label %4
4: ; preds = %2
%5 = load i32, ptr %1, align 4, !tbaa !5
%6 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 1
%7 = load i32, ptr %6, align 4, !tbaa !10
%8 = tail call i32 @bus_dmamap_unload(i32 noundef %5, i32 noundef %7) #2
%9 = load i32, ptr %1, align 4, !tbaa !5
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %1, i64 0, i32 2
%11 = load i32, ptr %10, align 4, !tbaa !11
%12 = load i32, ptr %6, align 4, !tbaa !10
%13 = tail call i32 @bus_dmamem_free(i32 noundef %9, i32 noundef %11, i32 noundef %12) #2
%14 = load i32, ptr %1, align 4, !tbaa !5
%15 = tail call i32 @bus_dma_tag_destroy(i32 noundef %14) #2
br label %16
16: ; preds = %2, %4
ret void
}
declare i32 @bus_dmamap_unload(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_dmamem_free(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_dma_tag_destroy(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, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/drm2/extr_drm_pci.c___drm_pci_free.c'
source_filename = "AnghaBench/freebsd/sys/dev/drm2/extr_drm_pci.c___drm_pci_free.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nounwind ssp uwtable(sync)
define void @__drm_pci_free(ptr nocapture noundef readnone %0, ptr noundef readonly %1) local_unnamed_addr #0 {
%3 = icmp eq ptr %1, null
br i1 %3, label %16, label %4
4: ; preds = %2
%5 = load i32, ptr %1, align 4, !tbaa !6
%6 = getelementptr inbounds i8, ptr %1, i64 4
%7 = load i32, ptr %6, align 4, !tbaa !11
%8 = tail call i32 @bus_dmamap_unload(i32 noundef %5, i32 noundef %7) #2
%9 = load i32, ptr %1, align 4, !tbaa !6
%10 = getelementptr inbounds i8, ptr %1, i64 8
%11 = load i32, ptr %10, align 4, !tbaa !12
%12 = load i32, ptr %6, align 4, !tbaa !11
%13 = tail call i32 @bus_dmamem_free(i32 noundef %9, i32 noundef %11, i32 noundef %12) #2
%14 = load i32, ptr %1, align 4, !tbaa !6
%15 = tail call i32 @bus_dma_tag_destroy(i32 noundef %14) #2
br label %16
16: ; preds = %2, %4
ret void
}
declare i32 @bus_dmamap_unload(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_dmamem_free(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @bus_dma_tag_destroy(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, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!7, !8, i64 8}
|
freebsd_sys_dev_drm2_extr_drm_pci.c___drm_pci_free
|
; ModuleID = 'AnghaBench/libgit2/tests/checkout/extr_index.c_test_checkout_index__donot_overwrite_modified_file_by_default.c'
source_filename = "AnghaBench/libgit2/tests/checkout/extr_index.c_test_checkout_index__donot_overwrite_modified_file_by_default.c"
target datalayout = "e-m:e-p270:32:32-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 }
@GIT_CHECKOUT_OPTIONS_INIT = dso_local local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 4
@.str = private unnamed_addr constant [19 x i8] c"./testrepo/new.txt\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"This isn't what's stored!\00", align 1
@GIT_CHECKOUT_SAFE = dso_local local_unnamed_addr global i32 0, align 4
@GIT_CHECKOUT_ALLOW_CONFLICTS = dso_local local_unnamed_addr global i32 0, align 4
@g_repo = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @test_checkout_index__donot_overwrite_modified_file_by_default() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_4__, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = tail call i32 @cl_git_mkfile(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #3
%3 = load i32, ptr @GIT_CHECKOUT_SAFE, align 4, !tbaa !5
%4 = load i32, ptr @GIT_CHECKOUT_ALLOW_CONFLICTS, align 4, !tbaa !5
%5 = or i32 %4, %3
store i32 %5, ptr %1, align 4, !tbaa !9
%6 = load i32, ptr @g_repo, align 4, !tbaa !5
%7 = call i32 @git_checkout_index(i32 noundef %6, ptr noundef null, ptr noundef nonnull %1) #3
%8 = call i32 @cl_git_pass(i32 noundef %7) #3
%9 = call i32 @check_file_contents(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @cl_git_mkfile(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cl_git_pass(i32 noundef) local_unnamed_addr #2
declare i32 @git_checkout_index(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @check_file_contents(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_4__", !6, i64 0}
|
; ModuleID = 'AnghaBench/libgit2/tests/checkout/extr_index.c_test_checkout_index__donot_overwrite_modified_file_by_default.c'
source_filename = "AnghaBench/libgit2/tests/checkout/extr_index.c_test_checkout_index__donot_overwrite_modified_file_by_default.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
%struct.TYPE_4__ = type { i32 }
@GIT_CHECKOUT_OPTIONS_INIT = common local_unnamed_addr global %struct.TYPE_4__ zeroinitializer, align 4
@.str = private unnamed_addr constant [19 x i8] c"./testrepo/new.txt\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"This isn't what's stored!\00", align 1
@GIT_CHECKOUT_SAFE = common local_unnamed_addr global i32 0, align 4
@GIT_CHECKOUT_ALLOW_CONFLICTS = common local_unnamed_addr global i32 0, align 4
@g_repo = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @test_checkout_index__donot_overwrite_modified_file_by_default() local_unnamed_addr #0 {
%1 = alloca %struct.TYPE_4__, align 4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
%2 = tail call i32 @cl_git_mkfile(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #3
%3 = load i32, ptr @GIT_CHECKOUT_SAFE, align 4, !tbaa !6
%4 = load i32, ptr @GIT_CHECKOUT_ALLOW_CONFLICTS, align 4, !tbaa !6
%5 = or i32 %4, %3
store i32 %5, ptr %1, align 4, !tbaa !10
%6 = load i32, ptr @g_repo, align 4, !tbaa !6
%7 = call i32 @git_checkout_index(i32 noundef %6, ptr noundef null, ptr noundef nonnull %1) #3
%8 = call i32 @cl_git_pass(i32 noundef %7) #3
%9 = call i32 @check_file_contents(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @cl_git_mkfile(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @cl_git_pass(i32 noundef) local_unnamed_addr #2
declare i32 @git_checkout_index(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @check_file_contents(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
|
libgit2_tests_checkout_extr_index.c_test_checkout_index__donot_overwrite_modified_file_by_default
|
; ModuleID = 'AnghaBench/TDengine/src/client/src/extr_tscSQLParser.c_addColumnFilterInfo.c'
source_filename = "AnghaBench/TDengine/src/client/src/extr_tscSQLParser.c_addColumnFilterInfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i32, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @addColumnFilterInfo], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef ptr @addColumnFilterInfo(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %21, label %3
3: ; preds = %1
%4 = load i32, ptr %0, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%6 = load ptr, ptr %5, align 8, !tbaa !11
%7 = shl i32 %4, 2
%8 = add i32 %7, 4
%9 = tail call ptr @realloc(ptr noundef %6, i32 noundef %8) #2
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load ptr, ptr %5, align 8, !tbaa !11
br label %14
13: ; preds = %3
store ptr %9, ptr %5, align 8, !tbaa !11
br label %14
14: ; preds = %11, %13
%15 = phi ptr [ %12, %11 ], [ %9, %13 ]
%16 = load i32, ptr %0, align 8, !tbaa !5
%17 = add nsw i32 %16, 1
store i32 %17, ptr %0, align 8, !tbaa !5
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds i32, ptr %15, i64 %18
%20 = tail call i32 @memset(ptr noundef %19, i32 noundef 0, i32 noundef 4) #2
br label %21
21: ; preds = %1, %14
%22 = phi ptr [ %19, %14 ], [ null, %1 ]
ret ptr %22
}
declare ptr @realloc(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_3__", !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}
|
; ModuleID = 'AnghaBench/TDengine/src/client/src/extr_tscSQLParser.c_addColumnFilterInfo.c'
source_filename = "AnghaBench/TDengine/src/client/src/extr_tscSQLParser.c_addColumnFilterInfo.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 @addColumnFilterInfo], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef ptr @addColumnFilterInfo(ptr noundef %0) #0 {
%2 = icmp eq ptr %0, null
br i1 %2, label %21, label %3
3: ; preds = %1
%4 = load i32, ptr %0, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %0, i64 8
%6 = load ptr, ptr %5, align 8, !tbaa !12
%7 = shl i32 %4, 2
%8 = add i32 %7, 4
%9 = tail call ptr @realloc(ptr noundef %6, i32 noundef %8) #2
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load ptr, ptr %5, align 8, !tbaa !12
br label %14
13: ; preds = %3
store ptr %9, ptr %5, align 8, !tbaa !12
br label %14
14: ; preds = %11, %13
%15 = phi ptr [ %12, %11 ], [ %9, %13 ]
%16 = load i32, ptr %0, align 8, !tbaa !6
%17 = add nsw i32 %16, 1
store i32 %17, ptr %0, align 8, !tbaa !6
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds i32, ptr %15, i64 %18
%20 = tail call i32 @memset(ptr noundef %19, i32 noundef 0, i32 noundef 4) #2
br label %21
21: ; preds = %1, %14
%22 = phi ptr [ %19, %14 ], [ null, %1 ]
ret ptr %22
}
declare ptr @realloc(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_3__", !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}
|
TDengine_src_client_src_extr_tscSQLParser.c_addColumnFilterInfo
|
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/gdiplus/extr_graphics.c_test_GdipIsVisiblePoint.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/gdiplus/extr_graphics.c_test_GdipIsVisiblePoint.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@hwnd = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"Expected HDC to be initialized\0A\00", align 1
@Ok = dso_local local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"Expected graphics to be initialized\0A\00", align 1
@InvalidParameter = dso_local local_unnamed_addr global i32 0, align 4
@TRUE = dso_local local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [37 x i8] c"Expected (%.2f, %.2f) to be visible\0A\00", align 1
@FALSE = dso_local local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [41 x i8] c"Expected (%.2f, %.2f) not to be visible\0A\00", align 1
@CombineModeReplace = dso_local local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [57 x i8] c"After clipping, expected (%.2f, %.2f) not to be visible\0A\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"After clipping, expected (%.2f, %.2f) to be visible\0A\00", align 1
@MatrixOrderAppend = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @test_GdipIsVisiblePoint], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @test_GdipIsVisiblePoint() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
store ptr null, ptr %1, align 8, !tbaa !5
%3 = load i32, ptr @hwnd, align 4, !tbaa !9
%4 = tail call ptr @GetDC(i32 noundef %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%5 = icmp ne ptr %4, null
%6 = zext i1 %5 to i32
%7 = tail call i32 (i32, ptr, ...) @ok(i32 noundef %6, ptr noundef nonnull @.str) #3
%8 = call i32 @GdipCreateFromHDC(ptr noundef %4, ptr noundef nonnull %1) #3
%9 = load i32, ptr @Ok, align 4, !tbaa !9
%10 = call i32 @expect(i32 noundef %9, i32 noundef %8) #3
%11 = load ptr, ptr %1, align 8, !tbaa !5
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = call i32 (i32, ptr, ...) @ok(i32 noundef %13, ptr noundef nonnull @.str.1) #3
%15 = call i32 @GdipIsVisiblePoint(ptr noundef null, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%16 = load i32, ptr @InvalidParameter, align 4, !tbaa !9
%17 = call i32 @expect(i32 noundef %16, i32 noundef %15) #3
%18 = load ptr, ptr %1, align 8, !tbaa !5
%19 = call i32 @GdipIsVisiblePoint(ptr noundef %18, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef null) #3
%20 = load i32, ptr @InvalidParameter, align 4, !tbaa !9
%21 = call i32 @expect(i32 noundef %20, i32 noundef %19) #3
%22 = call i32 @GdipIsVisiblePointI(ptr noundef null, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %2) #3
%23 = load i32, ptr @InvalidParameter, align 4, !tbaa !9
%24 = call i32 @expect(i32 noundef %23, i32 noundef %22) #3
%25 = load ptr, ptr %1, align 8, !tbaa !5
%26 = call i32 @GdipIsVisiblePointI(ptr noundef %25, i32 noundef 0, i32 noundef 0, ptr noundef null) #3
%27 = load i32, ptr @InvalidParameter, align 4, !tbaa !9
%28 = call i32 @expect(i32 noundef %27, i32 noundef %26) #3
%29 = load ptr, ptr %1, align 8, !tbaa !5
%30 = call i32 @GdipIsVisiblePoint(ptr noundef %29, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%31 = load i32, ptr @Ok, align 4, !tbaa !9
%32 = call i32 @expect(i32 noundef %31, i32 noundef %30) #3
%33 = load i64, ptr %2, align 8, !tbaa !11
%34 = load i64, ptr @TRUE, align 8, !tbaa !11
%35 = icmp eq i64 %33, %34
%36 = zext i1 %35 to i32
%37 = call i32 (i32, ptr, ...) @ok(i32 noundef %36, ptr noundef nonnull @.str.2, double noundef 0.000000e+00, double noundef 0.000000e+00) #3
%38 = load ptr, ptr %1, align 8, !tbaa !5
%39 = call i32 @GdipIsVisiblePoint(ptr noundef %38, double noundef -1.000000e+01, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%40 = load i32, ptr @Ok, align 4, !tbaa !9
%41 = call i32 @expect(i32 noundef %40, i32 noundef %39) #3
%42 = load i64, ptr %2, align 8, !tbaa !11
%43 = load i64, ptr @FALSE, align 8, !tbaa !11
%44 = icmp eq i64 %42, %43
%45 = zext i1 %44 to i32
%46 = call i32 (i32, ptr, ...) @ok(i32 noundef %45, ptr noundef nonnull @.str.3, double noundef -1.000000e+01, double noundef 0.000000e+00) #3
%47 = load ptr, ptr %1, align 8, !tbaa !5
%48 = call i32 @GdipIsVisiblePoint(ptr noundef %47, double noundef 0.000000e+00, double noundef -5.000000e+00, ptr noundef nonnull %2) #3
%49 = load i32, ptr @Ok, align 4, !tbaa !9
%50 = call i32 @expect(i32 noundef %49, i32 noundef %48) #3
%51 = load i64, ptr %2, align 8, !tbaa !11
%52 = load i64, ptr @FALSE, align 8, !tbaa !11
%53 = icmp eq i64 %51, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ptr, ...) @ok(i32 noundef %54, ptr noundef nonnull @.str.3, double noundef 0.000000e+00, double noundef -5.000000e+00) #3
%56 = load ptr, ptr %1, align 8, !tbaa !5
%57 = call i32 @GdipIsVisiblePoint(ptr noundef %56, double noundef 1.000000e+00, double noundef 1.000000e+00, ptr noundef nonnull %2) #3
%58 = load i32, ptr @Ok, align 4, !tbaa !9
%59 = call i32 @expect(i32 noundef %58, i32 noundef %57) #3
%60 = load i64, ptr %2, align 8, !tbaa !11
%61 = load i64, ptr @TRUE, align 8, !tbaa !11
%62 = icmp eq i64 %60, %61
%63 = zext i1 %62 to i32
%64 = call i32 (i32, ptr, ...) @ok(i32 noundef %63, ptr noundef nonnull @.str.2, double noundef 1.000000e+00, double noundef 1.000000e+00) #3
%65 = load ptr, ptr %1, align 8, !tbaa !5
%66 = load i32, ptr @CombineModeReplace, align 4, !tbaa !9
%67 = call i32 @GdipSetClipRect(ptr noundef %65, i32 noundef 10, i32 noundef 20, i32 noundef 30, i32 noundef 40, i32 noundef %66) #3
%68 = load i32, ptr @Ok, align 4, !tbaa !9
%69 = call i32 @expect(i32 noundef %68, i32 noundef %67) #3
%70 = load ptr, ptr %1, align 8, !tbaa !5
%71 = call i32 @GdipIsVisiblePoint(ptr noundef %70, double noundef 1.000000e+00, double noundef 1.000000e+00, ptr noundef nonnull %2) #3
%72 = load i32, ptr @Ok, align 4, !tbaa !9
%73 = call i32 @expect(i32 noundef %72, i32 noundef %71) #3
%74 = load i64, ptr %2, align 8, !tbaa !11
%75 = load i64, ptr @FALSE, align 8, !tbaa !11
%76 = icmp eq i64 %74, %75
%77 = zext i1 %76 to i32
%78 = call i32 (i32, ptr, ...) @ok(i32 noundef %77, ptr noundef nonnull @.str.4, double noundef 1.000000e+00, double noundef 1.000000e+00) #3
%79 = load ptr, ptr %1, align 8, !tbaa !5
%80 = call i32 @GdipIsVisiblePoint(ptr noundef %79, double noundef 1.550000e+01, double noundef 4.050000e+01, ptr noundef nonnull %2) #3
%81 = load i32, ptr @Ok, align 4, !tbaa !9
%82 = call i32 @expect(i32 noundef %81, i32 noundef %80) #3
%83 = load i64, ptr %2, align 8, !tbaa !11
%84 = load i64, ptr @TRUE, align 8, !tbaa !11
%85 = icmp eq i64 %83, %84
%86 = zext i1 %85 to i32
%87 = call i32 (i32, ptr, ...) @ok(i32 noundef %86, ptr noundef nonnull @.str.5, double noundef 1.550000e+01, double noundef 4.050000e+01) #3
%88 = load ptr, ptr %1, align 8, !tbaa !5
%89 = load i32, ptr @MatrixOrderAppend, align 4, !tbaa !9
%90 = call i32 @GdipTranslateWorldTransform(ptr noundef %88, i32 noundef 25, i32 noundef 40, i32 noundef %89) #3
%91 = load ptr, ptr %1, align 8, !tbaa !5
%92 = call i32 @GdipIsVisiblePoint(ptr noundef %91, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%93 = load i32, ptr @Ok, align 4, !tbaa !9
%94 = call i32 @expect(i32 noundef %93, i32 noundef %92) #3
%95 = load i64, ptr %2, align 8, !tbaa !11
%96 = load i64, ptr @TRUE, align 8, !tbaa !11
%97 = icmp eq i64 %95, %96
%98 = zext i1 %97 to i32
%99 = call i32 (i32, ptr, ...) @ok(i32 noundef %98, ptr noundef nonnull @.str.2, double noundef 0.000000e+00, double noundef 0.000000e+00) #3
%100 = load ptr, ptr %1, align 8, !tbaa !5
%101 = call i32 @GdipIsVisiblePoint(ptr noundef %100, double noundef 2.500000e+01, double noundef 4.000000e+01, ptr noundef nonnull %2) #3
%102 = load i32, ptr @Ok, align 4, !tbaa !9
%103 = call i32 @expect(i32 noundef %102, i32 noundef %101) #3
%104 = load i64, ptr %2, align 8, !tbaa !11
%105 = load i64, ptr @FALSE, align 8, !tbaa !11
%106 = icmp eq i64 %104, %105
%107 = zext i1 %106 to i32
%108 = call i32 (i32, ptr, ...) @ok(i32 noundef %107, ptr noundef nonnull @.str.3, double noundef 2.500000e+01, double noundef 4.000000e+01) #3
%109 = load ptr, ptr %1, align 8, !tbaa !5
%110 = load i32, ptr @MatrixOrderAppend, align 4, !tbaa !9
%111 = call i32 @GdipTranslateWorldTransform(ptr noundef %109, i32 noundef -25, i32 noundef -40, i32 noundef %110) #3
%112 = load ptr, ptr %1, align 8, !tbaa !5
%113 = call i32 @GdipIsVisiblePoint(ptr noundef %112, double noundef 9.000000e+00, double noundef 1.900000e+01, ptr noundef nonnull %2) #3
%114 = load i32, ptr @Ok, align 4, !tbaa !9
%115 = call i32 @expect(i32 noundef %114, i32 noundef %113) #3
%116 = load i64, ptr %2, align 8, !tbaa !11
%117 = load i64, ptr @FALSE, align 8, !tbaa !11
%118 = icmp eq i64 %116, %117
%119 = zext i1 %118 to i32
%120 = call i32 (i32, ptr, ...) @ok(i32 noundef %119, ptr noundef nonnull @.str.4, double noundef 9.000000e+00, double noundef 1.900000e+01) #3
%121 = load ptr, ptr %1, align 8, !tbaa !5
%122 = call i32 @GdipIsVisiblePoint(ptr noundef %121, double noundef 9.250000e+00, double noundef 1.925000e+01, ptr noundef nonnull %2) #3
%123 = load i32, ptr @Ok, align 4, !tbaa !9
%124 = call i32 @expect(i32 noundef %123, i32 noundef %122) #3
%125 = load i64, ptr %2, align 8, !tbaa !11
%126 = load i64, ptr @FALSE, align 8, !tbaa !11
%127 = icmp eq i64 %125, %126
%128 = zext i1 %127 to i32
%129 = call i32 (i32, ptr, ...) @ok(i32 noundef %128, ptr noundef nonnull @.str.4, double noundef 9.250000e+00, double noundef 1.925000e+01) #3
%130 = load ptr, ptr %1, align 8, !tbaa !5
%131 = call i32 @GdipIsVisiblePoint(ptr noundef %130, double noundef 9.500000e+00, double noundef 1.950000e+01, ptr noundef nonnull %2) #3
%132 = load i32, ptr @Ok, align 4, !tbaa !9
%133 = call i32 @expect(i32 noundef %132, i32 noundef %131) #3
%134 = load i64, ptr %2, align 8, !tbaa !11
%135 = load i64, ptr @TRUE, align 8, !tbaa !11
%136 = icmp eq i64 %134, %135
%137 = zext i1 %136 to i32
%138 = call i32 (i32, ptr, ...) @ok(i32 noundef %137, ptr noundef nonnull @.str.5, double noundef 9.500000e+00, double noundef 1.950000e+01) #3
%139 = load ptr, ptr %1, align 8, !tbaa !5
%140 = call i32 @GdipIsVisiblePoint(ptr noundef %139, double noundef 9.750000e+00, double noundef 1.975000e+01, ptr noundef nonnull %2) #3
%141 = load i32, ptr @Ok, align 4, !tbaa !9
%142 = call i32 @expect(i32 noundef %141, i32 noundef %140) #3
%143 = load i64, ptr %2, align 8, !tbaa !11
%144 = load i64, ptr @TRUE, align 8, !tbaa !11
%145 = icmp eq i64 %143, %144
%146 = zext i1 %145 to i32
%147 = call i32 (i32, ptr, ...) @ok(i32 noundef %146, ptr noundef nonnull @.str.5, double noundef 9.750000e+00, double noundef 1.975000e+01) #3
%148 = load ptr, ptr %1, align 8, !tbaa !5
%149 = call i32 @GdipIsVisiblePoint(ptr noundef %148, double noundef 1.000000e+01, double noundef 2.000000e+01, ptr noundef nonnull %2) #3
%150 = load i32, ptr @Ok, align 4, !tbaa !9
%151 = call i32 @expect(i32 noundef %150, i32 noundef %149) #3
%152 = load i64, ptr %2, align 8, !tbaa !11
%153 = load i64, ptr @TRUE, align 8, !tbaa !11
%154 = icmp eq i64 %152, %153
%155 = zext i1 %154 to i32
%156 = call i32 (i32, ptr, ...) @ok(i32 noundef %155, ptr noundef nonnull @.str.5, double noundef 1.000000e+01, double noundef 2.000000e+01) #3
%157 = load ptr, ptr %1, align 8, !tbaa !5
%158 = call i32 @GdipIsVisiblePoint(ptr noundef %157, double noundef 4.000000e+01, double noundef 2.000000e+01, ptr noundef nonnull %2) #3
%159 = load i32, ptr @Ok, align 4, !tbaa !9
%160 = call i32 @expect(i32 noundef %159, i32 noundef %158) #3
%161 = load i64, ptr %2, align 8, !tbaa !11
%162 = load i64, ptr @FALSE, align 8, !tbaa !11
%163 = icmp eq i64 %161, %162
%164 = zext i1 %163 to i32
%165 = call i32 (i32, ptr, ...) @ok(i32 noundef %164, ptr noundef nonnull @.str.4, double noundef 4.000000e+01, double noundef 2.000000e+01) #3
%166 = load ptr, ptr %1, align 8, !tbaa !5
%167 = call i32 @GdipIsVisiblePoint(ptr noundef %166, double noundef 3.900000e+01, double noundef 5.900000e+01, ptr noundef nonnull %2) #3
%168 = load i32, ptr @Ok, align 4, !tbaa !9
%169 = call i32 @expect(i32 noundef %168, i32 noundef %167) #3
%170 = load i64, ptr %2, align 8, !tbaa !11
%171 = load i64, ptr @TRUE, align 8, !tbaa !11
%172 = icmp eq i64 %170, %171
%173 = zext i1 %172 to i32
%174 = call i32 (i32, ptr, ...) @ok(i32 noundef %173, ptr noundef nonnull @.str.5, double noundef 3.900000e+01, double noundef 5.900000e+01) #3
%175 = load ptr, ptr %1, align 8, !tbaa !5
%176 = call i32 @GdipIsVisiblePoint(ptr noundef %175, double noundef 3.925000e+01, double noundef 5.925000e+01, ptr noundef nonnull %2) #3
%177 = load i32, ptr @Ok, align 4, !tbaa !9
%178 = call i32 @expect(i32 noundef %177, i32 noundef %176) #3
%179 = load i64, ptr %2, align 8, !tbaa !11
%180 = load i64, ptr @TRUE, align 8, !tbaa !11
%181 = icmp eq i64 %179, %180
%182 = zext i1 %181 to i32
%183 = call i32 (i32, ptr, ...) @ok(i32 noundef %182, ptr noundef nonnull @.str.5, double noundef 3.925000e+01, double noundef 5.925000e+01) #3
%184 = load ptr, ptr %1, align 8, !tbaa !5
%185 = call i32 @GdipIsVisiblePoint(ptr noundef %184, double noundef 3.950000e+01, double noundef 3.950000e+01, ptr noundef nonnull %2) #3
%186 = load i32, ptr @Ok, align 4, !tbaa !9
%187 = call i32 @expect(i32 noundef %186, i32 noundef %185) #3
%188 = load i64, ptr %2, align 8, !tbaa !11
%189 = load i64, ptr @FALSE, align 8, !tbaa !11
%190 = icmp eq i64 %188, %189
%191 = zext i1 %190 to i32
%192 = call i32 (i32, ptr, ...) @ok(i32 noundef %191, ptr noundef nonnull @.str.4, double noundef 3.950000e+01, double noundef 3.950000e+01) #3
%193 = load ptr, ptr %1, align 8, !tbaa !5
%194 = call i32 @GdipIsVisiblePoint(ptr noundef %193, double noundef 3.975000e+01, double noundef 5.975000e+01, ptr noundef nonnull %2) #3
%195 = load i32, ptr @Ok, align 4, !tbaa !9
%196 = call i32 @expect(i32 noundef %195, i32 noundef %194) #3
%197 = load i64, ptr %2, align 8, !tbaa !11
%198 = load i64, ptr @FALSE, align 8, !tbaa !11
%199 = icmp eq i64 %197, %198
%200 = zext i1 %199 to i32
%201 = call i32 (i32, ptr, ...) @ok(i32 noundef %200, ptr noundef nonnull @.str.4, double noundef 3.975000e+01, double noundef 5.975000e+01) #3
%202 = load ptr, ptr %1, align 8, !tbaa !5
%203 = call i32 @GdipIsVisiblePoint(ptr noundef %202, double noundef 4.000000e+01, double noundef 6.000000e+01, ptr noundef nonnull %2) #3
%204 = load i32, ptr @Ok, align 4, !tbaa !9
%205 = call i32 @expect(i32 noundef %204, i32 noundef %203) #3
%206 = load i64, ptr %2, align 8, !tbaa !11
%207 = load i64, ptr @FALSE, align 8, !tbaa !11
%208 = icmp eq i64 %206, %207
%209 = zext i1 %208 to i32
%210 = call i32 (i32, ptr, ...) @ok(i32 noundef %209, ptr noundef nonnull @.str.4, double noundef 4.000000e+01, double noundef 6.000000e+01) #3
%211 = load ptr, ptr %1, align 8, !tbaa !5
%212 = call i32 @GdipIsVisiblePoint(ptr noundef %211, double noundef 4.015000e+01, double noundef 0x404E133333333333, ptr noundef nonnull %2) #3
%213 = load i32, ptr @Ok, align 4, !tbaa !9
%214 = call i32 @expect(i32 noundef %213, i32 noundef %212) #3
%215 = load i64, ptr %2, align 8, !tbaa !11
%216 = load i64, ptr @FALSE, align 8, !tbaa !11
%217 = icmp eq i64 %215, %216
%218 = zext i1 %217 to i32
%219 = call i32 (i32, ptr, ...) @ok(i32 noundef %218, ptr noundef nonnull @.str.4, double noundef 4.015000e+01, double noundef 0x404E133333333333) #3
%220 = load ptr, ptr %1, align 8, !tbaa !5
%221 = call i32 @GdipIsVisiblePoint(ptr noundef %220, double noundef 1.000000e+01, double noundef 6.000000e+01, ptr noundef nonnull %2) #3
%222 = load i32, ptr @Ok, align 4, !tbaa !9
%223 = call i32 @expect(i32 noundef %222, i32 noundef %221) #3
%224 = load i64, ptr %2, align 8, !tbaa !11
%225 = load i64, ptr @FALSE, align 8, !tbaa !11
%226 = icmp eq i64 %224, %225
%227 = zext i1 %226 to i32
%228 = call i32 (i32, ptr, ...) @ok(i32 noundef %227, ptr noundef nonnull @.str.4, double noundef 1.000000e+01, double noundef 6.000000e+01) #3
%229 = load ptr, ptr %1, align 8, !tbaa !5
%230 = call i32 @GdipIsVisiblePointI(ptr noundef %229, i32 noundef 25, i32 noundef 30, ptr noundef nonnull %2) #3
%231 = load i32, ptr @Ok, align 4, !tbaa !9
%232 = call i32 @expect(i32 noundef %231, i32 noundef %230) #3
%233 = load i64, ptr %2, align 8, !tbaa !11
%234 = load i64, ptr @TRUE, align 8, !tbaa !11
%235 = icmp eq i64 %233, %234
%236 = zext i1 %235 to i32
%237 = call i32 (i32, ptr, ...) @ok(i32 noundef %236, ptr noundef nonnull @.str.5, double noundef 2.500000e+01, double noundef 3.000000e+01) #3
%238 = load ptr, ptr %1, align 8, !tbaa !5
%239 = call i32 @GdipIsVisiblePointI(ptr noundef %238, i32 noundef 50, i32 noundef 100, ptr noundef nonnull %2) #3
%240 = load i32, ptr @Ok, align 4, !tbaa !9
%241 = call i32 @expect(i32 noundef %240, i32 noundef %239) #3
%242 = load i64, ptr %2, align 8, !tbaa !11
%243 = load i64, ptr @FALSE, align 8, !tbaa !11
%244 = icmp eq i64 %242, %243
%245 = zext i1 %244 to i32
%246 = call i32 (i32, ptr, ...) @ok(i32 noundef %245, ptr noundef nonnull @.str.4, double noundef 5.000000e+01, double noundef 1.000000e+02) #3
%247 = load ptr, ptr %1, align 8, !tbaa !5
%248 = call i32 @GdipDeleteGraphics(ptr noundef %247) #3
%249 = load i32, ptr @hwnd, align 4, !tbaa !9
%250 = call i32 @ReleaseDC(i32 noundef %249, ptr noundef %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @GetDC(i32 noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @GdipCreateFromHDC(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @expect(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GdipIsVisiblePoint(ptr noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GdipIsVisiblePointI(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GdipSetClipRect(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GdipTranslateWorldTransform(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GdipDeleteGraphics(ptr noundef) local_unnamed_addr #2
declare i32 @ReleaseDC(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
|
; ModuleID = 'AnghaBench/reactos/modules/rostests/winetests/gdiplus/extr_graphics.c_test_GdipIsVisiblePoint.c'
source_filename = "AnghaBench/reactos/modules/rostests/winetests/gdiplus/extr_graphics.c_test_GdipIsVisiblePoint.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@hwnd = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"Expected HDC to be initialized\0A\00", align 1
@Ok = common local_unnamed_addr global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"Expected graphics to be initialized\0A\00", align 1
@InvalidParameter = common local_unnamed_addr global i32 0, align 4
@TRUE = common local_unnamed_addr global i64 0, align 8
@.str.2 = private unnamed_addr constant [37 x i8] c"Expected (%.2f, %.2f) to be visible\0A\00", align 1
@FALSE = common local_unnamed_addr global i64 0, align 8
@.str.3 = private unnamed_addr constant [41 x i8] c"Expected (%.2f, %.2f) not to be visible\0A\00", align 1
@CombineModeReplace = common local_unnamed_addr global i32 0, align 4
@.str.4 = private unnamed_addr constant [57 x i8] c"After clipping, expected (%.2f, %.2f) not to be visible\0A\00", align 1
@.str.5 = private unnamed_addr constant [53 x i8] c"After clipping, expected (%.2f, %.2f) to be visible\0A\00", align 1
@MatrixOrderAppend = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @test_GdipIsVisiblePoint], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @test_GdipIsVisiblePoint() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
store ptr null, ptr %1, align 8, !tbaa !6
%3 = load i32, ptr @hwnd, align 4, !tbaa !10
%4 = tail call ptr @GetDC(i32 noundef %3) #3
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
%5 = icmp ne ptr %4, null
%6 = zext i1 %5 to i32
%7 = tail call i32 (i32, ptr, ...) @ok(i32 noundef %6, ptr noundef nonnull @.str) #3
%8 = call i32 @GdipCreateFromHDC(ptr noundef %4, ptr noundef nonnull %1) #3
%9 = load i32, ptr @Ok, align 4, !tbaa !10
%10 = call i32 @expect(i32 noundef %9, i32 noundef %8) #3
%11 = load ptr, ptr %1, align 8, !tbaa !6
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = call i32 (i32, ptr, ...) @ok(i32 noundef %13, ptr noundef nonnull @.str.1) #3
%15 = call i32 @GdipIsVisiblePoint(ptr noundef null, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%16 = load i32, ptr @InvalidParameter, align 4, !tbaa !10
%17 = call i32 @expect(i32 noundef %16, i32 noundef %15) #3
%18 = load ptr, ptr %1, align 8, !tbaa !6
%19 = call i32 @GdipIsVisiblePoint(ptr noundef %18, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef null) #3
%20 = load i32, ptr @InvalidParameter, align 4, !tbaa !10
%21 = call i32 @expect(i32 noundef %20, i32 noundef %19) #3
%22 = call i32 @GdipIsVisiblePointI(ptr noundef null, i32 noundef 0, i32 noundef 0, ptr noundef nonnull %2) #3
%23 = load i32, ptr @InvalidParameter, align 4, !tbaa !10
%24 = call i32 @expect(i32 noundef %23, i32 noundef %22) #3
%25 = load ptr, ptr %1, align 8, !tbaa !6
%26 = call i32 @GdipIsVisiblePointI(ptr noundef %25, i32 noundef 0, i32 noundef 0, ptr noundef null) #3
%27 = load i32, ptr @InvalidParameter, align 4, !tbaa !10
%28 = call i32 @expect(i32 noundef %27, i32 noundef %26) #3
%29 = load ptr, ptr %1, align 8, !tbaa !6
%30 = call i32 @GdipIsVisiblePoint(ptr noundef %29, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%31 = load i32, ptr @Ok, align 4, !tbaa !10
%32 = call i32 @expect(i32 noundef %31, i32 noundef %30) #3
%33 = load i64, ptr %2, align 8, !tbaa !12
%34 = load i64, ptr @TRUE, align 8, !tbaa !12
%35 = icmp eq i64 %33, %34
%36 = zext i1 %35 to i32
%37 = call i32 (i32, ptr, ...) @ok(i32 noundef %36, ptr noundef nonnull @.str.2, double noundef 0.000000e+00, double noundef 0.000000e+00) #3
%38 = load ptr, ptr %1, align 8, !tbaa !6
%39 = call i32 @GdipIsVisiblePoint(ptr noundef %38, double noundef -1.000000e+01, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%40 = load i32, ptr @Ok, align 4, !tbaa !10
%41 = call i32 @expect(i32 noundef %40, i32 noundef %39) #3
%42 = load i64, ptr %2, align 8, !tbaa !12
%43 = load i64, ptr @FALSE, align 8, !tbaa !12
%44 = icmp eq i64 %42, %43
%45 = zext i1 %44 to i32
%46 = call i32 (i32, ptr, ...) @ok(i32 noundef %45, ptr noundef nonnull @.str.3, double noundef -1.000000e+01, double noundef 0.000000e+00) #3
%47 = load ptr, ptr %1, align 8, !tbaa !6
%48 = call i32 @GdipIsVisiblePoint(ptr noundef %47, double noundef 0.000000e+00, double noundef -5.000000e+00, ptr noundef nonnull %2) #3
%49 = load i32, ptr @Ok, align 4, !tbaa !10
%50 = call i32 @expect(i32 noundef %49, i32 noundef %48) #3
%51 = load i64, ptr %2, align 8, !tbaa !12
%52 = load i64, ptr @FALSE, align 8, !tbaa !12
%53 = icmp eq i64 %51, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ptr, ...) @ok(i32 noundef %54, ptr noundef nonnull @.str.3, double noundef 0.000000e+00, double noundef -5.000000e+00) #3
%56 = load ptr, ptr %1, align 8, !tbaa !6
%57 = call i32 @GdipIsVisiblePoint(ptr noundef %56, double noundef 1.000000e+00, double noundef 1.000000e+00, ptr noundef nonnull %2) #3
%58 = load i32, ptr @Ok, align 4, !tbaa !10
%59 = call i32 @expect(i32 noundef %58, i32 noundef %57) #3
%60 = load i64, ptr %2, align 8, !tbaa !12
%61 = load i64, ptr @TRUE, align 8, !tbaa !12
%62 = icmp eq i64 %60, %61
%63 = zext i1 %62 to i32
%64 = call i32 (i32, ptr, ...) @ok(i32 noundef %63, ptr noundef nonnull @.str.2, double noundef 1.000000e+00, double noundef 1.000000e+00) #3
%65 = load ptr, ptr %1, align 8, !tbaa !6
%66 = load i32, ptr @CombineModeReplace, align 4, !tbaa !10
%67 = call i32 @GdipSetClipRect(ptr noundef %65, i32 noundef 10, i32 noundef 20, i32 noundef 30, i32 noundef 40, i32 noundef %66) #3
%68 = load i32, ptr @Ok, align 4, !tbaa !10
%69 = call i32 @expect(i32 noundef %68, i32 noundef %67) #3
%70 = load ptr, ptr %1, align 8, !tbaa !6
%71 = call i32 @GdipIsVisiblePoint(ptr noundef %70, double noundef 1.000000e+00, double noundef 1.000000e+00, ptr noundef nonnull %2) #3
%72 = load i32, ptr @Ok, align 4, !tbaa !10
%73 = call i32 @expect(i32 noundef %72, i32 noundef %71) #3
%74 = load i64, ptr %2, align 8, !tbaa !12
%75 = load i64, ptr @FALSE, align 8, !tbaa !12
%76 = icmp eq i64 %74, %75
%77 = zext i1 %76 to i32
%78 = call i32 (i32, ptr, ...) @ok(i32 noundef %77, ptr noundef nonnull @.str.4, double noundef 1.000000e+00, double noundef 1.000000e+00) #3
%79 = load ptr, ptr %1, align 8, !tbaa !6
%80 = call i32 @GdipIsVisiblePoint(ptr noundef %79, double noundef 1.550000e+01, double noundef 4.050000e+01, ptr noundef nonnull %2) #3
%81 = load i32, ptr @Ok, align 4, !tbaa !10
%82 = call i32 @expect(i32 noundef %81, i32 noundef %80) #3
%83 = load i64, ptr %2, align 8, !tbaa !12
%84 = load i64, ptr @TRUE, align 8, !tbaa !12
%85 = icmp eq i64 %83, %84
%86 = zext i1 %85 to i32
%87 = call i32 (i32, ptr, ...) @ok(i32 noundef %86, ptr noundef nonnull @.str.5, double noundef 1.550000e+01, double noundef 4.050000e+01) #3
%88 = load ptr, ptr %1, align 8, !tbaa !6
%89 = load i32, ptr @MatrixOrderAppend, align 4, !tbaa !10
%90 = call i32 @GdipTranslateWorldTransform(ptr noundef %88, i32 noundef 25, i32 noundef 40, i32 noundef %89) #3
%91 = load ptr, ptr %1, align 8, !tbaa !6
%92 = call i32 @GdipIsVisiblePoint(ptr noundef %91, double noundef 0.000000e+00, double noundef 0.000000e+00, ptr noundef nonnull %2) #3
%93 = load i32, ptr @Ok, align 4, !tbaa !10
%94 = call i32 @expect(i32 noundef %93, i32 noundef %92) #3
%95 = load i64, ptr %2, align 8, !tbaa !12
%96 = load i64, ptr @TRUE, align 8, !tbaa !12
%97 = icmp eq i64 %95, %96
%98 = zext i1 %97 to i32
%99 = call i32 (i32, ptr, ...) @ok(i32 noundef %98, ptr noundef nonnull @.str.2, double noundef 0.000000e+00, double noundef 0.000000e+00) #3
%100 = load ptr, ptr %1, align 8, !tbaa !6
%101 = call i32 @GdipIsVisiblePoint(ptr noundef %100, double noundef 2.500000e+01, double noundef 4.000000e+01, ptr noundef nonnull %2) #3
%102 = load i32, ptr @Ok, align 4, !tbaa !10
%103 = call i32 @expect(i32 noundef %102, i32 noundef %101) #3
%104 = load i64, ptr %2, align 8, !tbaa !12
%105 = load i64, ptr @FALSE, align 8, !tbaa !12
%106 = icmp eq i64 %104, %105
%107 = zext i1 %106 to i32
%108 = call i32 (i32, ptr, ...) @ok(i32 noundef %107, ptr noundef nonnull @.str.3, double noundef 2.500000e+01, double noundef 4.000000e+01) #3
%109 = load ptr, ptr %1, align 8, !tbaa !6
%110 = load i32, ptr @MatrixOrderAppend, align 4, !tbaa !10
%111 = call i32 @GdipTranslateWorldTransform(ptr noundef %109, i32 noundef -25, i32 noundef -40, i32 noundef %110) #3
%112 = load ptr, ptr %1, align 8, !tbaa !6
%113 = call i32 @GdipIsVisiblePoint(ptr noundef %112, double noundef 9.000000e+00, double noundef 1.900000e+01, ptr noundef nonnull %2) #3
%114 = load i32, ptr @Ok, align 4, !tbaa !10
%115 = call i32 @expect(i32 noundef %114, i32 noundef %113) #3
%116 = load i64, ptr %2, align 8, !tbaa !12
%117 = load i64, ptr @FALSE, align 8, !tbaa !12
%118 = icmp eq i64 %116, %117
%119 = zext i1 %118 to i32
%120 = call i32 (i32, ptr, ...) @ok(i32 noundef %119, ptr noundef nonnull @.str.4, double noundef 9.000000e+00, double noundef 1.900000e+01) #3
%121 = load ptr, ptr %1, align 8, !tbaa !6
%122 = call i32 @GdipIsVisiblePoint(ptr noundef %121, double noundef 9.250000e+00, double noundef 1.925000e+01, ptr noundef nonnull %2) #3
%123 = load i32, ptr @Ok, align 4, !tbaa !10
%124 = call i32 @expect(i32 noundef %123, i32 noundef %122) #3
%125 = load i64, ptr %2, align 8, !tbaa !12
%126 = load i64, ptr @FALSE, align 8, !tbaa !12
%127 = icmp eq i64 %125, %126
%128 = zext i1 %127 to i32
%129 = call i32 (i32, ptr, ...) @ok(i32 noundef %128, ptr noundef nonnull @.str.4, double noundef 9.250000e+00, double noundef 1.925000e+01) #3
%130 = load ptr, ptr %1, align 8, !tbaa !6
%131 = call i32 @GdipIsVisiblePoint(ptr noundef %130, double noundef 9.500000e+00, double noundef 1.950000e+01, ptr noundef nonnull %2) #3
%132 = load i32, ptr @Ok, align 4, !tbaa !10
%133 = call i32 @expect(i32 noundef %132, i32 noundef %131) #3
%134 = load i64, ptr %2, align 8, !tbaa !12
%135 = load i64, ptr @TRUE, align 8, !tbaa !12
%136 = icmp eq i64 %134, %135
%137 = zext i1 %136 to i32
%138 = call i32 (i32, ptr, ...) @ok(i32 noundef %137, ptr noundef nonnull @.str.5, double noundef 9.500000e+00, double noundef 1.950000e+01) #3
%139 = load ptr, ptr %1, align 8, !tbaa !6
%140 = call i32 @GdipIsVisiblePoint(ptr noundef %139, double noundef 9.750000e+00, double noundef 1.975000e+01, ptr noundef nonnull %2) #3
%141 = load i32, ptr @Ok, align 4, !tbaa !10
%142 = call i32 @expect(i32 noundef %141, i32 noundef %140) #3
%143 = load i64, ptr %2, align 8, !tbaa !12
%144 = load i64, ptr @TRUE, align 8, !tbaa !12
%145 = icmp eq i64 %143, %144
%146 = zext i1 %145 to i32
%147 = call i32 (i32, ptr, ...) @ok(i32 noundef %146, ptr noundef nonnull @.str.5, double noundef 9.750000e+00, double noundef 1.975000e+01) #3
%148 = load ptr, ptr %1, align 8, !tbaa !6
%149 = call i32 @GdipIsVisiblePoint(ptr noundef %148, double noundef 1.000000e+01, double noundef 2.000000e+01, ptr noundef nonnull %2) #3
%150 = load i32, ptr @Ok, align 4, !tbaa !10
%151 = call i32 @expect(i32 noundef %150, i32 noundef %149) #3
%152 = load i64, ptr %2, align 8, !tbaa !12
%153 = load i64, ptr @TRUE, align 8, !tbaa !12
%154 = icmp eq i64 %152, %153
%155 = zext i1 %154 to i32
%156 = call i32 (i32, ptr, ...) @ok(i32 noundef %155, ptr noundef nonnull @.str.5, double noundef 1.000000e+01, double noundef 2.000000e+01) #3
%157 = load ptr, ptr %1, align 8, !tbaa !6
%158 = call i32 @GdipIsVisiblePoint(ptr noundef %157, double noundef 4.000000e+01, double noundef 2.000000e+01, ptr noundef nonnull %2) #3
%159 = load i32, ptr @Ok, align 4, !tbaa !10
%160 = call i32 @expect(i32 noundef %159, i32 noundef %158) #3
%161 = load i64, ptr %2, align 8, !tbaa !12
%162 = load i64, ptr @FALSE, align 8, !tbaa !12
%163 = icmp eq i64 %161, %162
%164 = zext i1 %163 to i32
%165 = call i32 (i32, ptr, ...) @ok(i32 noundef %164, ptr noundef nonnull @.str.4, double noundef 4.000000e+01, double noundef 2.000000e+01) #3
%166 = load ptr, ptr %1, align 8, !tbaa !6
%167 = call i32 @GdipIsVisiblePoint(ptr noundef %166, double noundef 3.900000e+01, double noundef 5.900000e+01, ptr noundef nonnull %2) #3
%168 = load i32, ptr @Ok, align 4, !tbaa !10
%169 = call i32 @expect(i32 noundef %168, i32 noundef %167) #3
%170 = load i64, ptr %2, align 8, !tbaa !12
%171 = load i64, ptr @TRUE, align 8, !tbaa !12
%172 = icmp eq i64 %170, %171
%173 = zext i1 %172 to i32
%174 = call i32 (i32, ptr, ...) @ok(i32 noundef %173, ptr noundef nonnull @.str.5, double noundef 3.900000e+01, double noundef 5.900000e+01) #3
%175 = load ptr, ptr %1, align 8, !tbaa !6
%176 = call i32 @GdipIsVisiblePoint(ptr noundef %175, double noundef 3.925000e+01, double noundef 5.925000e+01, ptr noundef nonnull %2) #3
%177 = load i32, ptr @Ok, align 4, !tbaa !10
%178 = call i32 @expect(i32 noundef %177, i32 noundef %176) #3
%179 = load i64, ptr %2, align 8, !tbaa !12
%180 = load i64, ptr @TRUE, align 8, !tbaa !12
%181 = icmp eq i64 %179, %180
%182 = zext i1 %181 to i32
%183 = call i32 (i32, ptr, ...) @ok(i32 noundef %182, ptr noundef nonnull @.str.5, double noundef 3.925000e+01, double noundef 5.925000e+01) #3
%184 = load ptr, ptr %1, align 8, !tbaa !6
%185 = call i32 @GdipIsVisiblePoint(ptr noundef %184, double noundef 3.950000e+01, double noundef 3.950000e+01, ptr noundef nonnull %2) #3
%186 = load i32, ptr @Ok, align 4, !tbaa !10
%187 = call i32 @expect(i32 noundef %186, i32 noundef %185) #3
%188 = load i64, ptr %2, align 8, !tbaa !12
%189 = load i64, ptr @FALSE, align 8, !tbaa !12
%190 = icmp eq i64 %188, %189
%191 = zext i1 %190 to i32
%192 = call i32 (i32, ptr, ...) @ok(i32 noundef %191, ptr noundef nonnull @.str.4, double noundef 3.950000e+01, double noundef 3.950000e+01) #3
%193 = load ptr, ptr %1, align 8, !tbaa !6
%194 = call i32 @GdipIsVisiblePoint(ptr noundef %193, double noundef 3.975000e+01, double noundef 5.975000e+01, ptr noundef nonnull %2) #3
%195 = load i32, ptr @Ok, align 4, !tbaa !10
%196 = call i32 @expect(i32 noundef %195, i32 noundef %194) #3
%197 = load i64, ptr %2, align 8, !tbaa !12
%198 = load i64, ptr @FALSE, align 8, !tbaa !12
%199 = icmp eq i64 %197, %198
%200 = zext i1 %199 to i32
%201 = call i32 (i32, ptr, ...) @ok(i32 noundef %200, ptr noundef nonnull @.str.4, double noundef 3.975000e+01, double noundef 5.975000e+01) #3
%202 = load ptr, ptr %1, align 8, !tbaa !6
%203 = call i32 @GdipIsVisiblePoint(ptr noundef %202, double noundef 4.000000e+01, double noundef 6.000000e+01, ptr noundef nonnull %2) #3
%204 = load i32, ptr @Ok, align 4, !tbaa !10
%205 = call i32 @expect(i32 noundef %204, i32 noundef %203) #3
%206 = load i64, ptr %2, align 8, !tbaa !12
%207 = load i64, ptr @FALSE, align 8, !tbaa !12
%208 = icmp eq i64 %206, %207
%209 = zext i1 %208 to i32
%210 = call i32 (i32, ptr, ...) @ok(i32 noundef %209, ptr noundef nonnull @.str.4, double noundef 4.000000e+01, double noundef 6.000000e+01) #3
%211 = load ptr, ptr %1, align 8, !tbaa !6
%212 = call i32 @GdipIsVisiblePoint(ptr noundef %211, double noundef 4.015000e+01, double noundef 0x404E133333333333, ptr noundef nonnull %2) #3
%213 = load i32, ptr @Ok, align 4, !tbaa !10
%214 = call i32 @expect(i32 noundef %213, i32 noundef %212) #3
%215 = load i64, ptr %2, align 8, !tbaa !12
%216 = load i64, ptr @FALSE, align 8, !tbaa !12
%217 = icmp eq i64 %215, %216
%218 = zext i1 %217 to i32
%219 = call i32 (i32, ptr, ...) @ok(i32 noundef %218, ptr noundef nonnull @.str.4, double noundef 4.015000e+01, double noundef 0x404E133333333333) #3
%220 = load ptr, ptr %1, align 8, !tbaa !6
%221 = call i32 @GdipIsVisiblePoint(ptr noundef %220, double noundef 1.000000e+01, double noundef 6.000000e+01, ptr noundef nonnull %2) #3
%222 = load i32, ptr @Ok, align 4, !tbaa !10
%223 = call i32 @expect(i32 noundef %222, i32 noundef %221) #3
%224 = load i64, ptr %2, align 8, !tbaa !12
%225 = load i64, ptr @FALSE, align 8, !tbaa !12
%226 = icmp eq i64 %224, %225
%227 = zext i1 %226 to i32
%228 = call i32 (i32, ptr, ...) @ok(i32 noundef %227, ptr noundef nonnull @.str.4, double noundef 1.000000e+01, double noundef 6.000000e+01) #3
%229 = load ptr, ptr %1, align 8, !tbaa !6
%230 = call i32 @GdipIsVisiblePointI(ptr noundef %229, i32 noundef 25, i32 noundef 30, ptr noundef nonnull %2) #3
%231 = load i32, ptr @Ok, align 4, !tbaa !10
%232 = call i32 @expect(i32 noundef %231, i32 noundef %230) #3
%233 = load i64, ptr %2, align 8, !tbaa !12
%234 = load i64, ptr @TRUE, align 8, !tbaa !12
%235 = icmp eq i64 %233, %234
%236 = zext i1 %235 to i32
%237 = call i32 (i32, ptr, ...) @ok(i32 noundef %236, ptr noundef nonnull @.str.5, double noundef 2.500000e+01, double noundef 3.000000e+01) #3
%238 = load ptr, ptr %1, align 8, !tbaa !6
%239 = call i32 @GdipIsVisiblePointI(ptr noundef %238, i32 noundef 50, i32 noundef 100, ptr noundef nonnull %2) #3
%240 = load i32, ptr @Ok, align 4, !tbaa !10
%241 = call i32 @expect(i32 noundef %240, i32 noundef %239) #3
%242 = load i64, ptr %2, align 8, !tbaa !12
%243 = load i64, ptr @FALSE, align 8, !tbaa !12
%244 = icmp eq i64 %242, %243
%245 = zext i1 %244 to i32
%246 = call i32 (i32, ptr, ...) @ok(i32 noundef %245, ptr noundef nonnull @.str.4, double noundef 5.000000e+01, double noundef 1.000000e+02) #3
%247 = load ptr, ptr %1, align 8, !tbaa !6
%248 = call i32 @GdipDeleteGraphics(ptr noundef %247) #3
%249 = load i32, ptr @hwnd, align 4, !tbaa !10
%250 = call i32 @ReleaseDC(i32 noundef %249, ptr noundef %4) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @GetDC(i32 noundef) local_unnamed_addr #2
declare i32 @ok(i32 noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @GdipCreateFromHDC(ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @expect(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GdipIsVisiblePoint(ptr noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GdipIsVisiblePointI(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @GdipSetClipRect(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GdipTranslateWorldTransform(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @GdipDeleteGraphics(ptr noundef) local_unnamed_addr #2
declare i32 @ReleaseDC(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
|
reactos_modules_rostests_winetests_gdiplus_extr_graphics.c_test_GdipIsVisiblePoint
|
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_ada-valprint.c_val_print_packed_array_elements.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_ada-valprint.c_val_print_packed_array_elements.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@print_max = dso_local local_unnamed_addr global i32 0, align 4
@prettyprint_arrays = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [3 x i8] c",\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c", \00", align 1
@HOST_CHAR_BIT = dso_local local_unnamed_addr global i32 0, align 4
@repeat_count_threshold = dso_local local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c" <repeats %u times>\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"...\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @val_print_packed_array_elements], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @val_print_packed_array_elements(ptr noundef %0, ptr noundef %1, i32 %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = tail call i64 @TYPE_FIELD_BITSIZE(ptr noundef %0, i32 noundef 0) #4
%11 = tail call ptr (...) @value_mark() #4
%12 = tail call ptr @TYPE_TARGET_TYPE(ptr noundef %0) #4
%13 = tail call i32 @check_typedef(ptr noundef %12) #4
%14 = tail call i32 @TYPE_LENGTH(i32 noundef %13) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
%15 = tail call i32 @TYPE_FIELD_TYPE(ptr noundef %0, i32 noundef 0) #4
%16 = call i64 @get_discrete_bounds(i32 noundef %15, ptr noundef nonnull %8, ptr noundef nonnull %9) #4
%17 = icmp slt i64 %16, 0
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %8, align 4
%20 = add i32 %18, 1
%21 = sub i32 %20, %19
%22 = select i1 %17, i32 1, i32 %21
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
%23 = call i32 @annotate_array_section_begin(i32 noundef 0, ptr noundef %12) #4
%24 = icmp ne i32 %22, 0
%25 = load i32, ptr @print_max, align 4
%26 = icmp ne i32 %25, 0
%27 = select i1 %24, i1 %26, i1 false
br i1 %27, label %28, label %121
28: ; preds = %7
%29 = shl nsw i32 %5, 1
%30 = add nsw i32 %29, 2
%31 = add nsw i32 %5, 1
%32 = zext i32 %22 to i64
br label %33
33: ; preds = %28, %115
%34 = phi i32 [ 0, %28 ], [ %83, %115 ]
%35 = phi i32 [ 0, %28 ], [ %116, %115 ]
%36 = icmp eq i32 %34, 0
br i1 %36, label %45, label %37
37: ; preds = %33
%38 = load i64, ptr @prettyprint_arrays, align 8, !tbaa !5
%39 = icmp eq i64 %38, 0
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str) #4
%42 = call i32 @print_spaces_filtered(i32 noundef %30, ptr noundef %3) #4
br label %45
43: ; preds = %37
%44 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.1) #4
br label %45
45: ; preds = %40, %43, %33
%46 = call i32 @n_spaces(i32 noundef %30) #4
%47 = call i32 @wrap_here(i32 noundef %46) #4
%48 = sext i32 %34 to i64
%49 = mul i64 %10, %48
%50 = load i32, ptr @HOST_CHAR_BIT, align 4, !tbaa !9
%51 = sext i32 %50 to i64
%52 = udiv i64 %49, %51
%53 = trunc i64 %52 to i32
%54 = urem i64 %49, %51
%55 = trunc i64 %54 to i32
%56 = call ptr @ada_value_primitive_packed_val(ptr noundef null, ptr noundef %1, i32 noundef %53, i32 noundef %55, i64 noundef %10, ptr noundef %12) #4
%57 = zext i32 %34 to i64
%58 = add nuw i32 %34, 1
%59 = call i32 @llvm.umax.i32(i32 %22, i32 %58)
%60 = add i32 %59, -1
br label %61
61: ; preds = %65, %45
%62 = phi i64 [ %63, %65 ], [ %57, %45 ]
%63 = add nuw nsw i64 %62, 1
%64 = icmp ult i64 %63, %32
br i1 %64, label %65, label %81
65: ; preds = %61
%66 = mul i64 %10, %63
%67 = load i32, ptr @HOST_CHAR_BIT, align 4, !tbaa !9
%68 = sext i32 %67 to i64
%69 = udiv i64 %66, %68
%70 = trunc i64 %69 to i32
%71 = urem i64 %66, %68
%72 = trunc i64 %71 to i32
%73 = call ptr @ada_value_primitive_packed_val(ptr noundef null, ptr noundef %1, i32 noundef %70, i32 noundef %72, i64 noundef %10, ptr noundef %12) #4
%74 = call i32 @VALUE_CONTENTS(ptr noundef %56) #4
%75 = call i32 @VALUE_CONTENTS(ptr noundef %73) #4
%76 = call i64 @memcmp(i32 noundef %74, i32 noundef %75, i32 noundef %14) #4
%77 = icmp eq i64 %76, 0
br i1 %77, label %61, label %78
78: ; preds = %65
%79 = trunc i64 %62 to i32
%80 = trunc i64 %63 to i32
br label %81
81: ; preds = %61, %78
%82 = phi i32 [ %79, %78 ], [ %60, %61 ]
%83 = phi i32 [ %80, %78 ], [ %59, %61 ]
%84 = sub i32 %83, %34
%85 = load i32, ptr @repeat_count_threshold, align 4, !tbaa !9
%86 = icmp ugt i32 %84, %85
br i1 %86, label %89, label %87
87: ; preds = %81
%88 = icmp ugt i32 %34, %82
br i1 %88, label %115, label %95
89: ; preds = %81
%90 = call i32 @VALUE_CONTENTS(ptr noundef %56) #4
%91 = call i32 @val_print(ptr noundef %12, i32 noundef %90, i32 noundef 0, i32 noundef 0, ptr noundef %3, i32 noundef %4, i32 noundef 0, i32 noundef %31, i32 noundef %6) #4
%92 = call i32 @annotate_elt_rep(i32 noundef %84) #4
%93 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.2, i32 noundef %84) #4
%94 = call i32 (...) @annotate_elt_rep_end() #4
br label %115
95: ; preds = %87, %109
%96 = phi i32 [ %113, %109 ], [ %34, %87 ]
%97 = icmp sgt i32 %96, %34
br i1 %97, label %98, label %109
98: ; preds = %95
%99 = load i64, ptr @prettyprint_arrays, align 8, !tbaa !5
%100 = icmp eq i64 %99, 0
br i1 %100, label %104, label %101
101: ; preds = %98
%102 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str) #4
%103 = call i32 @print_spaces_filtered(i32 noundef %30, ptr noundef %3) #4
br label %106
104: ; preds = %98
%105 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.1) #4
br label %106
106: ; preds = %104, %101
%107 = call i32 @n_spaces(i32 noundef %30) #4
%108 = call i32 @wrap_here(i32 noundef %107) #4
br label %109
109: ; preds = %106, %95
%110 = call i32 @VALUE_CONTENTS(ptr noundef %56) #4
%111 = call i32 @val_print(ptr noundef %12, i32 noundef %110, i32 noundef 0, i32 noundef 0, ptr noundef %3, i32 noundef %4, i32 noundef 0, i32 noundef %31, i32 noundef %6) #4
%112 = call i32 (...) @annotate_elt() #4
%113 = add i32 %96, 1
%114 = icmp eq i32 %96, %82
br i1 %114, label %115, label %95, !llvm.loop !11
115: ; preds = %109, %87, %89
%116 = add i32 %84, %35
%117 = icmp ult i32 %83, %22
%118 = load i32, ptr @print_max, align 4
%119 = icmp ult i32 %116, %118
%120 = select i1 %117, i1 %119, i1 false
br i1 %120, label %33, label %121, !llvm.loop !13
121: ; preds = %115, %7
%122 = phi i1 [ %24, %7 ], [ %117, %115 ]
%123 = call i32 (...) @annotate_array_section_end() #4
br i1 %122, label %124, label %126
124: ; preds = %121
%125 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.3) #4
br label %126
126: ; preds = %124, %121
%127 = call i32 @value_free_to_mark(ptr noundef %11) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @TYPE_FIELD_BITSIZE(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @value_mark(...) local_unnamed_addr #2
declare ptr @TYPE_TARGET_TYPE(ptr noundef) local_unnamed_addr #2
declare i32 @TYPE_LENGTH(i32 noundef) local_unnamed_addr #2
declare i32 @check_typedef(ptr noundef) local_unnamed_addr #2
declare i64 @get_discrete_bounds(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @TYPE_FIELD_TYPE(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @annotate_array_section_begin(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @fprintf_filtered(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @print_spaces_filtered(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @wrap_here(i32 noundef) local_unnamed_addr #2
declare i32 @n_spaces(i32 noundef) local_unnamed_addr #2
declare ptr @ada_value_primitive_packed_val(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @memcmp(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @VALUE_CONTENTS(ptr noundef) local_unnamed_addr #2
declare i32 @val_print(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @annotate_elt_rep(i32 noundef) local_unnamed_addr #2
declare i32 @annotate_elt_rep_end(...) local_unnamed_addr #2
declare i32 @annotate_elt(...) local_unnamed_addr #2
declare i32 @annotate_array_section_end(...) local_unnamed_addr #2
declare i32 @value_free_to_mark(ptr noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
|
; ModuleID = 'AnghaBench/freebsd/contrib/gdb/gdb/extr_ada-valprint.c_val_print_packed_array_elements.c'
source_filename = "AnghaBench/freebsd/contrib/gdb/gdb/extr_ada-valprint.c_val_print_packed_array_elements.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@print_max = common local_unnamed_addr global i32 0, align 4
@prettyprint_arrays = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [3 x i8] c",\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c", \00", align 1
@HOST_CHAR_BIT = common local_unnamed_addr global i32 0, align 4
@repeat_count_threshold = common local_unnamed_addr global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c" <repeats %u times>\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"...\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @val_print_packed_array_elements], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @val_print_packed_array_elements(ptr noundef %0, ptr noundef %1, i32 %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = tail call i64 @TYPE_FIELD_BITSIZE(ptr noundef %0, i32 noundef 0) #4
%11 = tail call ptr @value_mark() #4
%12 = tail call ptr @TYPE_TARGET_TYPE(ptr noundef %0) #4
%13 = tail call i32 @check_typedef(ptr noundef %12) #4
%14 = tail call i32 @TYPE_LENGTH(i32 noundef %13) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
%15 = tail call i32 @TYPE_FIELD_TYPE(ptr noundef %0, i32 noundef 0) #4
%16 = call i64 @get_discrete_bounds(i32 noundef %15, ptr noundef nonnull %8, ptr noundef nonnull %9) #4
%17 = icmp slt i64 %16, 0
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %8, align 4
%20 = add i32 %18, 1
%21 = sub i32 %20, %19
%22 = select i1 %17, i32 1, i32 %21
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
%23 = call i32 @annotate_array_section_begin(i32 noundef 0, ptr noundef %12) #4
%24 = icmp ne i32 %22, 0
%25 = load i32, ptr @print_max, align 4
%26 = icmp ne i32 %25, 0
%27 = select i1 %24, i1 %26, i1 false
br i1 %27, label %28, label %127
28: ; preds = %7
%29 = shl nsw i32 %5, 1
%30 = add nsw i32 %29, 2
%31 = add nsw i32 %5, 1
%32 = zext i32 %22 to i64
br label %33
33: ; preds = %28, %121
%34 = phi i32 [ 0, %28 ], [ %89, %121 ]
%35 = phi i32 [ 0, %28 ], [ %122, %121 ]
%36 = icmp eq i32 %34, 0
br i1 %36, label %45, label %37
37: ; preds = %33
%38 = load i64, ptr @prettyprint_arrays, align 8, !tbaa !6
%39 = icmp eq i64 %38, 0
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str) #4
%42 = call i32 @print_spaces_filtered(i32 noundef %30, ptr noundef %3) #4
br label %45
43: ; preds = %37
%44 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.1) #4
br label %45
45: ; preds = %40, %43, %33
%46 = call i32 @n_spaces(i32 noundef %30) #4
%47 = call i32 @wrap_here(i32 noundef %46) #4
%48 = sext i32 %34 to i64
%49 = mul i64 %10, %48
%50 = load i32, ptr @HOST_CHAR_BIT, align 4, !tbaa !10
%51 = sext i32 %50 to i64
%52 = freeze i64 %49
%53 = freeze i64 %51
%54 = udiv i64 %52, %53
%55 = trunc i64 %54 to i32
%56 = mul i64 %54, %53
%57 = sub i64 %52, %56
%58 = trunc i64 %57 to i32
%59 = call ptr @ada_value_primitive_packed_val(ptr noundef null, ptr noundef %1, i32 noundef %55, i32 noundef %58, i64 noundef %10, ptr noundef %12) #4
%60 = zext i32 %34 to i64
%61 = add nuw i32 %34, 1
%62 = call i32 @llvm.umax.i32(i32 %22, i32 %61)
%63 = add i32 %62, -1
br label %64
64: ; preds = %68, %45
%65 = phi i64 [ %66, %68 ], [ %60, %45 ]
%66 = add nuw nsw i64 %65, 1
%67 = icmp ult i64 %66, %32
br i1 %67, label %68, label %87
68: ; preds = %64
%69 = mul i64 %10, %66
%70 = load i32, ptr @HOST_CHAR_BIT, align 4, !tbaa !10
%71 = sext i32 %70 to i64
%72 = freeze i64 %69
%73 = freeze i64 %71
%74 = udiv i64 %72, %73
%75 = trunc i64 %74 to i32
%76 = mul i64 %74, %73
%77 = sub i64 %72, %76
%78 = trunc i64 %77 to i32
%79 = call ptr @ada_value_primitive_packed_val(ptr noundef null, ptr noundef %1, i32 noundef %75, i32 noundef %78, i64 noundef %10, ptr noundef %12) #4
%80 = call i32 @VALUE_CONTENTS(ptr noundef %59) #4
%81 = call i32 @VALUE_CONTENTS(ptr noundef %79) #4
%82 = call i64 @memcmp(i32 noundef %80, i32 noundef %81, i32 noundef %14) #4
%83 = icmp eq i64 %82, 0
br i1 %83, label %64, label %84
84: ; preds = %68
%85 = trunc nuw i64 %65 to i32
%86 = trunc nuw i64 %66 to i32
br label %87
87: ; preds = %64, %84
%88 = phi i32 [ %85, %84 ], [ %63, %64 ]
%89 = phi i32 [ %86, %84 ], [ %62, %64 ]
%90 = sub i32 %89, %34
%91 = load i32, ptr @repeat_count_threshold, align 4, !tbaa !10
%92 = icmp ugt i32 %90, %91
br i1 %92, label %95, label %93
93: ; preds = %87
%94 = icmp ugt i32 %34, %88
br i1 %94, label %121, label %101
95: ; preds = %87
%96 = call i32 @VALUE_CONTENTS(ptr noundef %59) #4
%97 = call i32 @val_print(ptr noundef %12, i32 noundef %96, i32 noundef 0, i32 noundef 0, ptr noundef %3, i32 noundef %4, i32 noundef 0, i32 noundef %31, i32 noundef %6) #4
%98 = call i32 @annotate_elt_rep(i32 noundef %90) #4
%99 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.2, i32 noundef %90) #4
%100 = call i32 @annotate_elt_rep_end() #4
br label %121
101: ; preds = %93, %115
%102 = phi i32 [ %119, %115 ], [ %34, %93 ]
%103 = icmp sgt i32 %102, %34
br i1 %103, label %104, label %115
104: ; preds = %101
%105 = load i64, ptr @prettyprint_arrays, align 8, !tbaa !6
%106 = icmp eq i64 %105, 0
br i1 %106, label %110, label %107
107: ; preds = %104
%108 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str) #4
%109 = call i32 @print_spaces_filtered(i32 noundef %30, ptr noundef %3) #4
br label %112
110: ; preds = %104
%111 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.1) #4
br label %112
112: ; preds = %110, %107
%113 = call i32 @n_spaces(i32 noundef %30) #4
%114 = call i32 @wrap_here(i32 noundef %113) #4
br label %115
115: ; preds = %112, %101
%116 = call i32 @VALUE_CONTENTS(ptr noundef %59) #4
%117 = call i32 @val_print(ptr noundef %12, i32 noundef %116, i32 noundef 0, i32 noundef 0, ptr noundef %3, i32 noundef %4, i32 noundef 0, i32 noundef %31, i32 noundef %6) #4
%118 = call i32 @annotate_elt() #4
%119 = add i32 %102, 1
%120 = icmp eq i32 %102, %88
br i1 %120, label %121, label %101, !llvm.loop !12
121: ; preds = %115, %93, %95
%122 = add i32 %90, %35
%123 = icmp ult i32 %89, %22
%124 = load i32, ptr @print_max, align 4
%125 = icmp ult i32 %122, %124
%126 = select i1 %123, i1 %125, i1 false
br i1 %126, label %33, label %127, !llvm.loop !14
127: ; preds = %121, %7
%128 = phi i1 [ %24, %7 ], [ %123, %121 ]
%129 = call i32 @annotate_array_section_end() #4
br i1 %128, label %130, label %132
130: ; preds = %127
%131 = call i32 (ptr, ptr, ...) @fprintf_filtered(ptr noundef %3, ptr noundef nonnull @.str.3) #4
br label %132
132: ; preds = %130, %127
%133 = call i32 @value_free_to_mark(ptr noundef %11) #4
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @TYPE_FIELD_BITSIZE(ptr noundef, i32 noundef) local_unnamed_addr #2
declare ptr @value_mark(...) local_unnamed_addr #2
declare ptr @TYPE_TARGET_TYPE(ptr noundef) local_unnamed_addr #2
declare i32 @TYPE_LENGTH(i32 noundef) local_unnamed_addr #2
declare i32 @check_typedef(ptr noundef) local_unnamed_addr #2
declare i64 @get_discrete_bounds(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @TYPE_FIELD_TYPE(ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
declare i32 @annotate_array_section_begin(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @fprintf_filtered(ptr noundef, ptr noundef, ...) local_unnamed_addr #2
declare i32 @print_spaces_filtered(i32 noundef, ptr noundef) local_unnamed_addr #2
declare i32 @wrap_here(i32 noundef) local_unnamed_addr #2
declare i32 @n_spaces(i32 noundef) local_unnamed_addr #2
declare ptr @ada_value_primitive_packed_val(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @memcmp(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @VALUE_CONTENTS(ptr noundef) local_unnamed_addr #2
declare i32 @val_print(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @annotate_elt_rep(i32 noundef) local_unnamed_addr #2
declare i32 @annotate_elt_rep_end(...) local_unnamed_addr #2
declare i32 @annotate_elt(...) local_unnamed_addr #2
declare i32 @annotate_array_section_end(...) local_unnamed_addr #2
declare i32 @value_free_to_mark(ptr noundef) local_unnamed_addr #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
|
freebsd_contrib_gdb_gdb_extr_ada-valprint.c_val_print_packed_array_elements
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/mvs/extr_mvs_pci.c_mvs_probe.c'
source_filename = "AnghaBench/freebsd/sys/dev/mvs/extr_mvs_pci.c_mvs_probe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_2__ = type { i64, i64, ptr }
@mvs_ids = dso_local local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [19 x i8] c"%s SATA controller\00", align 1
@BUS_PROBE_DEFAULT = dso_local local_unnamed_addr global i32 0, align 4
@ENXIO = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @mvs_probe], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @mvs_probe(i32 noundef %0) #0 {
%2 = alloca [64 x i8], align 16
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #3
%3 = tail call i64 @pci_get_devid(i32 noundef %0) #3
%4 = tail call i64 @pci_get_revid(i32 noundef %0) #3
%5 = load ptr, ptr @mvs_ids, align 8, !tbaa !5
%6 = load i64, ptr %5, align 8, !tbaa !9
%7 = icmp eq i64 %6, 0
br i1 %7, label %26, label %8
8: ; preds = %1, %21
%9 = phi i64 [ %22, %21 ], [ 0, %1 ]
%10 = phi i64 [ %24, %21 ], [ %6, %1 ]
%11 = icmp eq i64 %10, %3
br i1 %11, label %12, label %21
12: ; preds = %8
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 %9, i32 1
%14 = load i64, ptr %13, align 8, !tbaa !12
%15 = icmp sgt i64 %14, %4
br i1 %15, label %21, label %16
16: ; preds = %12
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 %9, i32 2
%18 = load ptr, ptr %17, align 8, !tbaa !13
%19 = call i32 @snprintf(ptr noundef nonnull %2, i32 noundef 64, ptr noundef nonnull @.str, ptr noundef %18) #3
%20 = call i32 @device_set_desc_copy(i32 noundef %0, ptr noundef nonnull %2) #3
br label %26
21: ; preds = %8, %12
%22 = add nuw i64 %9, 1
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 %22
%24 = load i64, ptr %23, align 8, !tbaa !9
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %8, !llvm.loop !14
26: ; preds = %21, %1, %16
%27 = phi ptr [ @BUS_PROBE_DEFAULT, %16 ], [ @ENXIO, %1 ], [ @ENXIO, %21 ]
%28 = load i32, ptr %27, align 4, !tbaa !16
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #3
ret i32 %28
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @pci_get_devid(i32 noundef) local_unnamed_addr #2
declare i64 @pci_get_revid(i32 noundef) local_unnamed_addr #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_set_desc_copy(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_2__", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
|
; ModuleID = 'AnghaBench/freebsd/sys/dev/mvs/extr_mvs_pci.c_mvs_probe.c'
source_filename = "AnghaBench/freebsd/sys/dev/mvs/extr_mvs_pci.c_mvs_probe.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, i64, ptr }
@mvs_ids = common local_unnamed_addr global ptr null, align 8
@.str = private unnamed_addr constant [19 x i8] c"%s SATA controller\00", align 1
@BUS_PROBE_DEFAULT = common local_unnamed_addr global i32 0, align 4
@ENXIO = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @mvs_probe], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @mvs_probe(i32 noundef %0) #0 {
%2 = alloca [64 x i8], align 1
call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #3
%3 = tail call i64 @pci_get_devid(i32 noundef %0) #3
%4 = tail call i64 @pci_get_revid(i32 noundef %0) #3
%5 = load ptr, ptr @mvs_ids, align 8, !tbaa !6
%6 = load i64, ptr %5, align 8, !tbaa !10
%7 = icmp eq i64 %6, 0
br i1 %7, label %27, label %8
8: ; preds = %1, %22
%9 = phi i64 [ %23, %22 ], [ 0, %1 ]
%10 = phi i64 [ %25, %22 ], [ %6, %1 ]
%11 = icmp eq i64 %10, %3
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 %9
%14 = getelementptr inbounds i8, ptr %13, i64 8
%15 = load i64, ptr %14, align 8, !tbaa !13
%16 = icmp sgt i64 %15, %4
br i1 %16, label %22, label %17
17: ; preds = %12
%18 = getelementptr inbounds i8, ptr %13, i64 16
%19 = load ptr, ptr %18, align 8, !tbaa !14
%20 = call i32 @snprintf(ptr noundef nonnull %2, i32 noundef 64, ptr noundef nonnull @.str, ptr noundef %19) #3
%21 = call i32 @device_set_desc_copy(i32 noundef %0, ptr noundef nonnull %2) #3
br label %27
22: ; preds = %8, %12
%23 = add nuw nsw i64 %9, 1
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %5, i64 %23
%25 = load i64, ptr %24, align 8, !tbaa !10
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %8, !llvm.loop !15
27: ; preds = %22, %1, %17
%28 = phi ptr [ @BUS_PROBE_DEFAULT, %17 ], [ @ENXIO, %1 ], [ @ENXIO, %22 ]
%29 = load i32, ptr %28, align 4, !tbaa !17
call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #3
ret i32 %29
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i64 @pci_get_devid(i32 noundef) local_unnamed_addr #2
declare i64 @pci_get_revid(i32 noundef) local_unnamed_addr #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @device_set_desc_copy(i32 noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_2__", !12, i64 0, !12, i64 8, !7, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!11, !7, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !8, i64 0}
|
freebsd_sys_dev_mvs_extr_mvs_pci.c_mvs_probe
|
; ModuleID = 'AnghaBench/RetroArch/gfx/drivers_font_renderer/extr_freetype.c_font_renderer_create_atlas.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers_font_renderer/extr_freetype.c_font_renderer_create_atlas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_13__ = type { ptr, %struct.TYPE_11__, ptr }
%struct.TYPE_11__ = type { i32, i32, ptr }
%struct.TYPE_10__ = type { float, %struct.TYPE_9__ }
%struct.TYPE_9__ = type { float, float, float, float }
%struct.TYPE_12__ = type { i32, i32 }
%struct.TYPE_14__ = type { %struct.TYPE_12__ }
@FT_ATLAS_COLS = dso_local local_unnamed_addr global i32 0, align 4
@FT_ATLAS_ROWS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @font_renderer_create_atlas], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @font_renderer_create_atlas(ptr noundef %0, float noundef %1) #0 {
%3 = getelementptr inbounds %struct.TYPE_13__, ptr %0, i64 0, i32 2
%4 = load ptr, ptr %3, align 8, !tbaa !5
%5 = getelementptr inbounds %struct.TYPE_10__, ptr %4, i64 0, i32 1
%6 = load float, ptr %5, align 4, !tbaa !12
%7 = getelementptr inbounds %struct.TYPE_10__, ptr %4, i64 0, i32 1, i32 1
%8 = load float, ptr %7, align 4, !tbaa !16
%9 = fsub float %6, %8
%10 = fmul float %9, %1
%11 = load float, ptr %4, align 4, !tbaa !17
%12 = fdiv float %10, %11
%13 = tail call i32 @round(float noundef %12) #2
%14 = load ptr, ptr %3, align 8, !tbaa !5
%15 = getelementptr inbounds %struct.TYPE_10__, ptr %14, i64 0, i32 1, i32 2
%16 = load float, ptr %15, align 4, !tbaa !18
%17 = getelementptr inbounds %struct.TYPE_10__, ptr %14, i64 0, i32 1, i32 3
%18 = load float, ptr %17, align 4, !tbaa !19
%19 = fsub float %16, %18
%20 = fmul float %19, %1
%21 = load float, ptr %14, align 4, !tbaa !17
%22 = fdiv float %20, %21
%23 = tail call i32 @round(float noundef %22) #2
%24 = load i32, ptr @FT_ATLAS_COLS, align 4, !tbaa !20
%25 = mul i32 %24, %13
%26 = load i32, ptr @FT_ATLAS_ROWS, align 4, !tbaa !20
%27 = mul i32 %26, %23
%28 = mul i32 %27, %25
%29 = tail call i64 @calloc(i32 noundef %28, i32 noundef 1) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %81, label %31
31: ; preds = %2
%32 = inttoptr i64 %29 to ptr
%33 = getelementptr inbounds %struct.TYPE_13__, ptr %0, i64 0, i32 1
%34 = getelementptr inbounds %struct.TYPE_13__, ptr %0, i64 0, i32 1, i32 2
store ptr %32, ptr %34, align 8, !tbaa !21
store i32 %25, ptr %33, align 8, !tbaa !22
%35 = getelementptr inbounds %struct.TYPE_13__, ptr %0, i64 0, i32 1, i32 1
store i32 %27, ptr %35, align 4, !tbaa !23
%36 = load i32, ptr @FT_ATLAS_ROWS, align 4, !tbaa !20
%37 = icmp eq i32 %36, 0
br i1 %37, label %66, label %38
38: ; preds = %31
%39 = load ptr, ptr %0, align 8, !tbaa !24
%40 = load i32, ptr @FT_ATLAS_COLS, align 4, !tbaa !20
br label %41
41: ; preds = %38, %60
%42 = phi i32 [ %61, %60 ], [ %36, %38 ]
%43 = phi i32 [ %62, %60 ], [ %40, %38 ]
%44 = phi i32 [ %64, %60 ], [ 0, %38 ]
%45 = phi ptr [ %63, %60 ], [ %39, %38 ]
%46 = icmp eq i32 %43, 0
br i1 %46, label %60, label %47
47: ; preds = %41
%48 = mul i32 %44, %23
br label %49
49: ; preds = %47, %49
%50 = phi i32 [ 0, %47 ], [ %55, %49 ]
%51 = phi ptr [ %45, %47 ], [ %54, %49 ]
%52 = mul i32 %50, %13
store i32 %52, ptr %51, align 4, !tbaa !25
%53 = getelementptr inbounds %struct.TYPE_12__, ptr %51, i64 0, i32 1
store i32 %48, ptr %53, align 4, !tbaa !28
%54 = getelementptr inbounds %struct.TYPE_14__, ptr %51, i64 1
%55 = add nuw i32 %50, 1
%56 = load i32, ptr @FT_ATLAS_COLS, align 4, !tbaa !20
%57 = icmp ult i32 %55, %56
br i1 %57, label %49, label %58, !llvm.loop !29
58: ; preds = %49
%59 = load i32, ptr @FT_ATLAS_ROWS, align 4, !tbaa !20
br label %60
60: ; preds = %58, %41
%61 = phi i32 [ %42, %41 ], [ %59, %58 ]
%62 = phi i32 [ 0, %41 ], [ %56, %58 ]
%63 = phi ptr [ %45, %41 ], [ %54, %58 ]
%64 = add nuw i32 %44, 1
%65 = icmp ult i32 %64, %61
br i1 %65, label %41, label %66, !llvm.loop !31
66: ; preds = %60, %31
br label %67
67: ; preds = %66, %67
%68 = phi i32 [ %70, %67 ], [ 0, %66 ]
%69 = tail call i32 @font_renderer_ft_get_glyph(ptr noundef nonnull %0, i32 noundef %68) #2
%70 = add nuw nsw i32 %68, 1
%71 = icmp eq i32 %70, 256
br i1 %71, label %72, label %67, !llvm.loop !32
72: ; preds = %67, %78
%73 = phi i32 [ %79, %78 ], [ 0, %67 ]
%74 = tail call i64 @isalnum(i32 noundef %73) #2
%75 = icmp eq i64 %74, 0
br i1 %75, label %78, label %76
76: ; preds = %72
%77 = tail call i32 @font_renderer_ft_get_glyph(ptr noundef nonnull %0, i32 noundef %73) #2
br label %78
78: ; preds = %72, %76
%79 = add nuw nsw i32 %73, 1
%80 = icmp eq i32 %79, 256
br i1 %80, label %81, label %72, !llvm.loop !33
81: ; preds = %78, %2
%82 = phi i32 [ 0, %2 ], [ 1, %78 ]
ret i32 %82
}
declare i32 @round(float noundef) local_unnamed_addr #1
declare i64 @calloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @font_renderer_ft_get_glyph(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @isalnum(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 24}
!6 = !{!"TYPE_13__", !7, i64 0, !10, i64 8, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"TYPE_11__", !11, i64 0, !11, i64 4, !7, i64 8}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !14, i64 4}
!13 = !{!"TYPE_10__", !14, i64 0, !15, i64 4}
!14 = !{!"float", !8, i64 0}
!15 = !{!"TYPE_9__", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!16 = !{!13, !14, i64 8}
!17 = !{!13, !14, i64 0}
!18 = !{!13, !14, i64 12}
!19 = !{!13, !14, i64 16}
!20 = !{!11, !11, i64 0}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !11, i64 8}
!23 = !{!6, !11, i64 12}
!24 = !{!6, !7, i64 0}
!25 = !{!26, !11, i64 0}
!26 = !{!"TYPE_14__", !27, i64 0}
!27 = !{!"TYPE_12__", !11, i64 0, !11, i64 4}
!28 = !{!26, !11, i64 4}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}
|
; ModuleID = 'AnghaBench/RetroArch/gfx/drivers_font_renderer/extr_freetype.c_font_renderer_create_atlas.c'
source_filename = "AnghaBench/RetroArch/gfx/drivers_font_renderer/extr_freetype.c_font_renderer_create_atlas.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@FT_ATLAS_COLS = common local_unnamed_addr global i32 0, align 4
@FT_ATLAS_ROWS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @font_renderer_create_atlas], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @font_renderer_create_atlas(ptr noundef %0, float noundef %1) #0 {
%3 = getelementptr inbounds i8, ptr %0, i64 24
%4 = load ptr, ptr %3, align 8, !tbaa !6
%5 = getelementptr inbounds i8, ptr %4, i64 4
%6 = load float, ptr %5, align 4, !tbaa !13
%7 = getelementptr inbounds i8, ptr %4, i64 8
%8 = load float, ptr %7, align 4, !tbaa !17
%9 = fsub float %6, %8
%10 = fmul float %9, %1
%11 = load float, ptr %4, align 4, !tbaa !18
%12 = fdiv float %10, %11
%13 = tail call i32 @round(float noundef %12) #2
%14 = load ptr, ptr %3, align 8, !tbaa !6
%15 = getelementptr inbounds i8, ptr %14, i64 12
%16 = load float, ptr %15, align 4, !tbaa !19
%17 = getelementptr inbounds i8, ptr %14, i64 16
%18 = load float, ptr %17, align 4, !tbaa !20
%19 = fsub float %16, %18
%20 = fmul float %19, %1
%21 = load float, ptr %14, align 4, !tbaa !18
%22 = fdiv float %20, %21
%23 = tail call i32 @round(float noundef %22) #2
%24 = load i32, ptr @FT_ATLAS_COLS, align 4, !tbaa !21
%25 = mul i32 %24, %13
%26 = load i32, ptr @FT_ATLAS_ROWS, align 4, !tbaa !21
%27 = mul i32 %26, %23
%28 = mul i32 %27, %25
%29 = tail call i64 @calloc(i32 noundef %28, i32 noundef 1) #2
%30 = icmp eq i64 %29, 0
br i1 %30, label %81, label %31
31: ; preds = %2
%32 = inttoptr i64 %29 to ptr
%33 = getelementptr inbounds i8, ptr %0, i64 8
%34 = getelementptr inbounds i8, ptr %0, i64 16
store ptr %32, ptr %34, align 8, !tbaa !22
store i32 %25, ptr %33, align 8, !tbaa !23
%35 = getelementptr inbounds i8, ptr %0, i64 12
store i32 %27, ptr %35, align 4, !tbaa !24
%36 = load i32, ptr @FT_ATLAS_ROWS, align 4, !tbaa !21
%37 = icmp eq i32 %36, 0
br i1 %37, label %66, label %38
38: ; preds = %31
%39 = load ptr, ptr %0, align 8, !tbaa !25
%40 = load i32, ptr @FT_ATLAS_COLS, align 4, !tbaa !21
br label %41
41: ; preds = %38, %60
%42 = phi i32 [ %61, %60 ], [ %36, %38 ]
%43 = phi i32 [ %62, %60 ], [ %40, %38 ]
%44 = phi i32 [ %64, %60 ], [ 0, %38 ]
%45 = phi ptr [ %63, %60 ], [ %39, %38 ]
%46 = icmp eq i32 %43, 0
br i1 %46, label %60, label %47
47: ; preds = %41
%48 = mul i32 %44, %23
br label %49
49: ; preds = %47, %49
%50 = phi i32 [ 0, %47 ], [ %55, %49 ]
%51 = phi ptr [ %45, %47 ], [ %54, %49 ]
%52 = mul i32 %50, %13
store i32 %52, ptr %51, align 4, !tbaa !26
%53 = getelementptr inbounds i8, ptr %51, i64 4
store i32 %48, ptr %53, align 4, !tbaa !29
%54 = getelementptr inbounds i8, ptr %51, i64 8
%55 = add nuw i32 %50, 1
%56 = load i32, ptr @FT_ATLAS_COLS, align 4, !tbaa !21
%57 = icmp ult i32 %55, %56
br i1 %57, label %49, label %58, !llvm.loop !30
58: ; preds = %49
%59 = load i32, ptr @FT_ATLAS_ROWS, align 4, !tbaa !21
br label %60
60: ; preds = %58, %41
%61 = phi i32 [ %42, %41 ], [ %59, %58 ]
%62 = phi i32 [ 0, %41 ], [ %56, %58 ]
%63 = phi ptr [ %45, %41 ], [ %54, %58 ]
%64 = add nuw i32 %44, 1
%65 = icmp ult i32 %64, %61
br i1 %65, label %41, label %66, !llvm.loop !32
66: ; preds = %60, %31
br label %67
67: ; preds = %66, %67
%68 = phi i32 [ %70, %67 ], [ 0, %66 ]
%69 = tail call i32 @font_renderer_ft_get_glyph(ptr noundef nonnull %0, i32 noundef %68) #2
%70 = add nuw nsw i32 %68, 1
%71 = icmp eq i32 %70, 256
br i1 %71, label %72, label %67, !llvm.loop !33
72: ; preds = %67, %78
%73 = phi i32 [ %79, %78 ], [ 0, %67 ]
%74 = tail call i64 @isalnum(i32 noundef %73) #2
%75 = icmp eq i64 %74, 0
br i1 %75, label %78, label %76
76: ; preds = %72
%77 = tail call i32 @font_renderer_ft_get_glyph(ptr noundef nonnull %0, i32 noundef %73) #2
br label %78
78: ; preds = %72, %76
%79 = add nuw nsw i32 %73, 1
%80 = icmp eq i32 %79, 256
br i1 %80, label %81, label %72, !llvm.loop !34
81: ; preds = %78, %2
%82 = phi i32 [ 0, %2 ], [ 1, %78 ]
ret i32 %82
}
declare i32 @round(float noundef) local_unnamed_addr #1
declare i64 @calloc(i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @font_renderer_ft_get_glyph(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i64 @isalnum(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 24}
!7 = !{!"TYPE_13__", !8, i64 0, !11, i64 8, !8, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"TYPE_11__", !12, i64 0, !12, i64 4, !8, i64 8}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !15, i64 4}
!14 = !{!"TYPE_10__", !15, i64 0, !16, i64 4}
!15 = !{!"float", !9, i64 0}
!16 = !{!"TYPE_9__", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!17 = !{!14, !15, i64 8}
!18 = !{!14, !15, i64 0}
!19 = !{!14, !15, i64 12}
!20 = !{!14, !15, i64 16}
!21 = !{!12, !12, i64 0}
!22 = !{!7, !8, i64 16}
!23 = !{!7, !12, i64 8}
!24 = !{!7, !12, i64 12}
!25 = !{!7, !8, i64 0}
!26 = !{!27, !12, i64 0}
!27 = !{!"TYPE_14__", !28, i64 0}
!28 = !{!"TYPE_12__", !12, i64 0, !12, i64 4}
!29 = !{!27, !12, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}
|
RetroArch_gfx_drivers_font_renderer_extr_freetype.c_font_renderer_create_atlas
|
; ModuleID = 'AnghaBench/linux/drivers/staging/rtl8188eu/os_dep/extr_usb_intf.c_usb_dvobj_deinit.c'
source_filename = "AnghaBench/linux/drivers/staging/rtl8188eu/os_dep/extr_usb_intf.c_usb_dvobj_deinit.c"
target datalayout = "e-m:e-p270:32:32-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.dvobj_priv = type { i32, i32, i32 }
@USB_STATE_NOTATTACHED = dso_local local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [42 x i8] c"usb attached..., try to reset usb device\0A\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @usb_dvobj_deinit], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @usb_dvobj_deinit(ptr noundef %0) #0 {
%2 = tail call ptr @usb_get_intfdata(ptr noundef %0) #2
%3 = tail call i32 @usb_set_intfdata(ptr noundef %0, ptr noundef null) #2
%4 = icmp eq ptr %2, null
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = load i32, ptr %2, align 4, !tbaa !5
%7 = and i32 %6, -2
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = getelementptr inbounds %struct.dvobj_priv, ptr %2, i64 0, i32 1
%11 = load i32, ptr %10, align 4, !tbaa !10
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %22
13: ; preds = %5, %9
%14 = tail call ptr @interface_to_usbdev(ptr noundef %0) #2
%15 = load i64, ptr %14, align 8, !tbaa !11
%16 = load i64, ptr @USB_STATE_NOTATTACHED, align 8, !tbaa !14
%17 = icmp eq i64 %15, %16
br i1 %17, label %22, label %18
18: ; preds = %13
%19 = tail call i32 @pr_debug(ptr noundef nonnull @.str) #2
%20 = tail call ptr @interface_to_usbdev(ptr noundef %0) #2
%21 = tail call i32 @usb_reset_device(ptr noundef %20) #2
br label %22
22: ; preds = %13, %18, %9
%23 = getelementptr inbounds %struct.dvobj_priv, ptr %2, i64 0, i32 2
%24 = tail call i32 @mutex_destroy(ptr noundef nonnull %23) #2
%25 = tail call i32 @kfree(ptr noundef nonnull %2) #2
br label %26
26: ; preds = %22, %1
%27 = tail call ptr @interface_to_usbdev(ptr noundef %0) #2
%28 = tail call i32 @usb_put_dev(ptr noundef %27) #2
ret void
}
declare ptr @usb_get_intfdata(ptr noundef) local_unnamed_addr #1
declare i32 @usb_set_intfdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @interface_to_usbdev(ptr noundef) local_unnamed_addr #1
declare i32 @pr_debug(ptr noundef) local_unnamed_addr #1
declare i32 @usb_reset_device(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @usb_put_dev(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"dvobj_priv", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !13, i64 0}
!12 = !{!"TYPE_4__", !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!13, !13, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/staging/rtl8188eu/os_dep/extr_usb_intf.c_usb_dvobj_deinit.c'
source_filename = "AnghaBench/linux/drivers/staging/rtl8188eu/os_dep/extr_usb_intf.c_usb_dvobj_deinit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@USB_STATE_NOTATTACHED = common local_unnamed_addr global i64 0, align 8
@.str = private unnamed_addr constant [42 x i8] c"usb attached..., try to reset usb device\0A\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @usb_dvobj_deinit], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @usb_dvobj_deinit(ptr noundef %0) #0 {
%2 = tail call ptr @usb_get_intfdata(ptr noundef %0) #2
%3 = tail call i32 @usb_set_intfdata(ptr noundef %0, ptr noundef null) #2
%4 = icmp eq ptr %2, null
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = load i32, ptr %2, align 4, !tbaa !6
%7 = and i32 %6, -2
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %13
9: ; preds = %5
%10 = getelementptr inbounds i8, ptr %2, i64 4
%11 = load i32, ptr %10, align 4, !tbaa !11
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %22
13: ; preds = %5, %9
%14 = tail call ptr @interface_to_usbdev(ptr noundef %0) #2
%15 = load i64, ptr %14, align 8, !tbaa !12
%16 = load i64, ptr @USB_STATE_NOTATTACHED, align 8, !tbaa !15
%17 = icmp eq i64 %15, %16
br i1 %17, label %22, label %18
18: ; preds = %13
%19 = tail call i32 @pr_debug(ptr noundef nonnull @.str) #2
%20 = tail call ptr @interface_to_usbdev(ptr noundef %0) #2
%21 = tail call i32 @usb_reset_device(ptr noundef %20) #2
br label %22
22: ; preds = %13, %18, %9
%23 = getelementptr inbounds i8, ptr %2, i64 8
%24 = tail call i32 @mutex_destroy(ptr noundef nonnull %23) #2
%25 = tail call i32 @kfree(ptr noundef nonnull %2) #2
br label %26
26: ; preds = %22, %1
%27 = tail call ptr @interface_to_usbdev(ptr noundef %0) #2
%28 = tail call i32 @usb_put_dev(ptr noundef %27) #2
ret void
}
declare ptr @usb_get_intfdata(ptr noundef) local_unnamed_addr #1
declare i32 @usb_set_intfdata(ptr noundef, ptr noundef) local_unnamed_addr #1
declare ptr @interface_to_usbdev(ptr noundef) local_unnamed_addr #1
declare i32 @pr_debug(ptr noundef) local_unnamed_addr #1
declare i32 @usb_reset_device(ptr noundef) local_unnamed_addr #1
declare i32 @mutex_destroy(ptr noundef) local_unnamed_addr #1
declare i32 @kfree(ptr noundef) local_unnamed_addr #1
declare i32 @usb_put_dev(ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"dvobj_priv", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 4}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_4__", !14, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!14, !14, i64 0}
|
linux_drivers_staging_rtl8188eu_os_dep_extr_usb_intf.c_usb_dvobj_deinit
|
; ModuleID = 'AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_erl1.c_iscsit_create_recovery_datain_values_datasequenceinorder_yes.c'
source_filename = "AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_erl1.c_iscsit_create_recovery_datain_values_datasequenceinorder_yes.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.iscsi_cmd = type { i64, i64, i64, ptr }
%struct.iscsi_datain_req = type { i64, i64, i32 }
%struct.iscsi_conn = type { ptr, ptr }
%struct.TYPE_5__ = type { i64, i32 }
; Function Attrs: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local noundef i32 @iscsit_create_recovery_datain_values_datasequenceinorder_yes(ptr nocapture noundef %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %1, align 8, !tbaa !5
%4 = getelementptr inbounds %struct.iscsi_cmd, ptr %0, i64 0, i32 3
%5 = load ptr, ptr %4, align 8, !tbaa !11
%6 = icmp sgt i64 %3, 0
br i1 %6, label %7, label %45
7: ; preds = %2
%8 = getelementptr inbounds %struct.iscsi_datain_req, ptr %1, i64 0, i32 1
%9 = getelementptr inbounds %struct.iscsi_conn, ptr %5, i64 0, i32 1
%10 = load ptr, ptr %9, align 8, !tbaa !14
%11 = load i64, ptr %10, align 8, !tbaa !16
%12 = load ptr, ptr %5, align 8, !tbaa !18
%13 = load ptr, ptr %12, align 8, !tbaa !19
%14 = load i64, ptr %13, align 8, !tbaa !21
%15 = getelementptr inbounds %struct.iscsi_datain_req, ptr %1, i64 0, i32 2
%16 = trunc i64 %11 to i32
%17 = load i64, ptr %8, align 8, !tbaa !23
br label %18
18: ; preds = %7, %37
%19 = phi i64 [ %17, %7 ], [ %38, %37 ]
%20 = phi i64 [ 1, %7 ], [ %42, %37 ]
%21 = phi i64 [ 0, %7 ], [ %41, %37 ]
%22 = phi i64 [ 0, %7 ], [ %40, %37 ]
%23 = phi i64 [ 0, %7 ], [ %39, %37 ]
%24 = add nsw i64 %21, 1
%25 = add nsw i64 %11, %19
%26 = icmp slt i64 %25, %14
br i1 %26, label %27, label %30
27: ; preds = %18
%28 = load i32, ptr %15, align 8, !tbaa !24
%29 = add i32 %28, %16
store i32 %29, ptr %15, align 8, !tbaa !24
br label %37
30: ; preds = %18
%31 = sub nsw i64 %14, %19
%32 = load i32, ptr %15, align 8, !tbaa !24
%33 = trunc i64 %31 to i32
%34 = add i32 %32, %33
store i32 %34, ptr %15, align 8, !tbaa !24
%35 = add nsw i64 %24, %23
%36 = add nsw i64 %22, 1
br label %37
37: ; preds = %30, %27
%38 = phi i64 [ %25, %27 ], [ 0, %30 ]
%39 = phi i64 [ %23, %27 ], [ %35, %30 ]
%40 = phi i64 [ %22, %27 ], [ %36, %30 ]
%41 = phi i64 [ %24, %27 ], [ 0, %30 ]
%42 = add nuw i64 %20, 1
%43 = icmp eq i64 %20, %3
br i1 %43, label %44, label %18, !llvm.loop !25
44: ; preds = %37
store i64 %38, ptr %8, align 8
br label %45
45: ; preds = %44, %2
%46 = phi i64 [ 0, %2 ], [ %39, %44 ]
%47 = phi i64 [ 0, %2 ], [ %40, %44 ]
%48 = phi i64 [ 0, %2 ], [ %41, %44 ]
%49 = load ptr, ptr %5, align 8, !tbaa !18
%50 = load ptr, ptr %49, align 8, !tbaa !19
%51 = getelementptr inbounds %struct.TYPE_5__, ptr %50, i64 0, i32 1
%52 = load i32, ptr %51, align 8, !tbaa !27
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %45
%55 = getelementptr inbounds %struct.iscsi_cmd, ptr %0, i64 0, i32 2
store i64 %47, ptr %55, align 8, !tbaa !28
%56 = getelementptr inbounds %struct.iscsi_cmd, ptr %0, i64 0, i32 1
store i64 %46, ptr %56, align 8, !tbaa !29
store i64 %48, ptr %0, align 8, !tbaa !30
br label %57
57: ; preds = %54, %45
ret i32 0
}
attributes #0 = { nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"iscsi_datain_req", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"iscsi_cmd", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"iscsi_conn", !13, i64 0, !13, i64 8}
!16 = !{!17, !7, i64 0}
!17 = !{!"TYPE_4__", !7, i64 0}
!18 = !{!15, !13, i64 0}
!19 = !{!20, !13, i64 0}
!20 = !{!"TYPE_6__", !13, i64 0}
!21 = !{!22, !7, i64 0}
!22 = !{!"TYPE_5__", !7, i64 0, !10, i64 8}
!23 = !{!6, !7, i64 8}
!24 = !{!6, !10, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!22, !10, i64 8}
!28 = !{!12, !7, i64 16}
!29 = !{!12, !7, i64 8}
!30 = !{!12, !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_erl1.c_iscsit_create_recovery_datain_values_datasequenceinorder_yes.c'
source_filename = "AnghaBench/linux/drivers/target/iscsi/extr_iscsi_target_erl1.c_iscsit_create_recovery_datain_values_datasequenceinorder_yes.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
; Function Attrs: nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync)
define noundef i32 @iscsit_create_recovery_datain_values_datasequenceinorder_yes(ptr nocapture noundef %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
%3 = load i64, ptr %1, align 8, !tbaa !6
%4 = getelementptr inbounds i8, ptr %0, i64 24
%5 = load ptr, ptr %4, align 8, !tbaa !12
%6 = icmp sgt i64 %3, 0
br i1 %6, label %7, label %45
7: ; preds = %2
%8 = getelementptr inbounds i8, ptr %1, i64 8
%9 = getelementptr inbounds i8, ptr %5, i64 8
%10 = load ptr, ptr %9, align 8, !tbaa !15
%11 = load i64, ptr %10, align 8, !tbaa !17
%12 = load ptr, ptr %5, align 8, !tbaa !19
%13 = load ptr, ptr %12, align 8, !tbaa !20
%14 = load i64, ptr %13, align 8, !tbaa !22
%15 = getelementptr inbounds i8, ptr %1, i64 16
%16 = trunc i64 %11 to i32
%17 = load i64, ptr %8, align 8, !tbaa !24
br label %18
18: ; preds = %7, %37
%19 = phi i64 [ %17, %7 ], [ %38, %37 ]
%20 = phi i64 [ 1, %7 ], [ %42, %37 ]
%21 = phi i64 [ 0, %7 ], [ %41, %37 ]
%22 = phi i64 [ 0, %7 ], [ %40, %37 ]
%23 = phi i64 [ 0, %7 ], [ %39, %37 ]
%24 = add nsw i64 %21, 1
%25 = add nsw i64 %11, %19
%26 = icmp slt i64 %25, %14
br i1 %26, label %27, label %30
27: ; preds = %18
%28 = load i32, ptr %15, align 8, !tbaa !25
%29 = add i32 %28, %16
store i32 %29, ptr %15, align 8, !tbaa !25
br label %37
30: ; preds = %18
%31 = sub nsw i64 %14, %19
%32 = load i32, ptr %15, align 8, !tbaa !25
%33 = trunc i64 %31 to i32
%34 = add i32 %32, %33
store i32 %34, ptr %15, align 8, !tbaa !25
%35 = add nsw i64 %24, %23
%36 = add nsw i64 %22, 1
br label %37
37: ; preds = %30, %27
%38 = phi i64 [ %25, %27 ], [ 0, %30 ]
%39 = phi i64 [ %23, %27 ], [ %35, %30 ]
%40 = phi i64 [ %22, %27 ], [ %36, %30 ]
%41 = phi i64 [ %24, %27 ], [ 0, %30 ]
%42 = add nuw i64 %20, 1
%43 = icmp eq i64 %20, %3
br i1 %43, label %44, label %18, !llvm.loop !26
44: ; preds = %37
store i64 %38, ptr %8, align 8
br label %45
45: ; preds = %44, %2
%46 = phi i64 [ 0, %2 ], [ %39, %44 ]
%47 = phi i64 [ 0, %2 ], [ %40, %44 ]
%48 = phi i64 [ 0, %2 ], [ %41, %44 ]
%49 = load ptr, ptr %5, align 8, !tbaa !19
%50 = load ptr, ptr %49, align 8, !tbaa !20
%51 = getelementptr inbounds i8, ptr %50, i64 8
%52 = load i32, ptr %51, align 8, !tbaa !28
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %45
%55 = getelementptr inbounds i8, ptr %0, i64 16
store i64 %47, ptr %55, align 8, !tbaa !29
%56 = getelementptr inbounds i8, ptr %0, i64 8
store i64 %46, ptr %56, align 8, !tbaa !30
store i64 %48, ptr %0, align 8, !tbaa !31
br label %57
57: ; preds = %54, %45
ret i32 0
}
attributes #0 = { nofree norecurse nosync nounwind ssp memory(read, argmem: readwrite, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"iscsi_datain_req", !8, i64 0, !8, i64 8, !11, i64 16}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!13, !14, i64 24}
!13 = !{!"iscsi_cmd", !8, i64 0, !8, i64 8, !8, i64 16, !14, i64 24}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"iscsi_conn", !14, i64 0, !14, i64 8}
!17 = !{!18, !8, i64 0}
!18 = !{!"TYPE_4__", !8, i64 0}
!19 = !{!16, !14, i64 0}
!20 = !{!21, !14, i64 0}
!21 = !{!"TYPE_6__", !14, i64 0}
!22 = !{!23, !8, i64 0}
!23 = !{!"TYPE_5__", !8, i64 0, !11, i64 8}
!24 = !{!7, !8, i64 8}
!25 = !{!7, !11, i64 16}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!23, !11, i64 8}
!29 = !{!13, !8, i64 16}
!30 = !{!13, !8, i64 8}
!31 = !{!13, !8, i64 0}
|
linux_drivers_target_iscsi_extr_iscsi_target_erl1.c_iscsit_create_recovery_datain_values_datasequenceinorder_yes
|
; ModuleID = 'AnghaBench/freebsd/contrib/dialog/extr_editbox.c_dialog_editbox.c'
source_filename = "AnghaBench/freebsd/contrib/dialog/extr_editbox.c_dialog_editbox.c"
target datalayout = "e-m:e-p270:32:32-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 @dialog_editbox(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%7 = call i32 @load_list(ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
%8 = call i32 @dlg_editbox(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %2, i32 noundef %3) #3
%9 = call i32 @free_list(ptr noundef nonnull %5, ptr noundef nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret i32 %8
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @load_list(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @dlg_editbox(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free_list(ptr noundef, ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/freebsd/contrib/dialog/extr_editbox.c_dialog_editbox.c'
source_filename = "AnghaBench/freebsd/contrib/dialog/extr_editbox.c_dialog_editbox.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 @dialog_editbox(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
%7 = call i32 @load_list(ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6) #3
%8 = call i32 @dlg_editbox(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %2, i32 noundef %3) #3
%9 = call i32 @free_list(ptr noundef nonnull %5, ptr noundef nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
ret i32 %8
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @load_list(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @dlg_editbox(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @free_list(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)"}
|
freebsd_contrib_dialog_extr_editbox.c_dialog_editbox
|
; ModuleID = 'AnghaBench/FFmpeg/libavfilter/extr_framequeue.h_ff_framequeue_queued_samples.c'
source_filename = "AnghaBench/FFmpeg/libavfilter/extr_framequeue.h_ff_framequeue_queued_samples.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_3__ = type { i64, i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @ff_framequeue_queued_samples], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define internal i64 @ff_framequeue_queued_samples(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds %struct.TYPE_3__, ptr %0, i64 0, i32 1
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = load i64, ptr %0, align 8, !tbaa !10
%5 = sub nsw i64 %3, %4
ret i64 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"TYPE_3__", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
|
; ModuleID = 'AnghaBench/FFmpeg/libavfilter/extr_framequeue.h_ff_framequeue_queued_samples.c'
source_filename = "AnghaBench/FFmpeg/libavfilter/extr_framequeue.h_ff_framequeue_queued_samples.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 @ff_framequeue_queued_samples], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal i64 @ff_framequeue_queued_samples(ptr nocapture noundef readonly %0) #0 {
%2 = getelementptr inbounds i8, ptr %0, i64 8
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = load i64, ptr %0, align 8, !tbaa !11
%5 = sub nsw i64 %3, %4
ret i64 %5
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(argmem: read) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 8}
!7 = !{!"TYPE_3__", !8, i64 0, !8, i64 8}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!7, !8, i64 0}
|
FFmpeg_libavfilter_extr_framequeue.h_ff_framequeue_queued_samples
|
; ModuleID = 'AnghaBench/freebsd/sys/ofed/drivers/infiniband/core/extr_ib_user_mad.c_find_overflow_devnum.c'
source_filename = "AnghaBench/freebsd/sys/ofed/drivers/infiniband/core/extr_ib_user_mad.c_find_overflow_devnum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@overflow_maj = dso_local global i32 0, align 4
@IB_UMAD_MAX_PORTS = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"infiniband_mad\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"couldn't register dynamic device number\0A\00", align 1
@overflow_map = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @find_overflow_devnum], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @find_overflow_devnum(ptr noundef %0) #0 {
%2 = load i32, ptr @overflow_maj, align 4, !tbaa !5
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1
%5 = load i32, ptr @IB_UMAD_MAX_PORTS, align 4, !tbaa !5
%6 = shl nsw i32 %5, 1
%7 = tail call i32 @alloc_chrdev_region(ptr noundef nonnull @overflow_maj, i32 noundef 0, i32 noundef %6, ptr noundef nonnull @.str) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %4
%10 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str.1) #2
br label %18
11: ; preds = %4, %1
%12 = load i32, ptr @overflow_map, align 4, !tbaa !5
%13 = load i32, ptr @IB_UMAD_MAX_PORTS, align 4, !tbaa !5
%14 = tail call i32 @find_first_zero_bit(i32 noundef %12, i32 noundef %13) #2
%15 = load i32, ptr @IB_UMAD_MAX_PORTS, align 4, !tbaa !5
%16 = icmp slt i32 %14, %15
%17 = select i1 %16, i32 %14, i32 -1
br label %18
18: ; preds = %11, %9
%19 = phi i32 [ %7, %9 ], [ %17, %11 ]
ret i32 %19
}
declare i32 @alloc_chrdev_region(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @find_first_zero_bit(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/freebsd/sys/ofed/drivers/infiniband/core/extr_ib_user_mad.c_find_overflow_devnum.c'
source_filename = "AnghaBench/freebsd/sys/ofed/drivers/infiniband/core/extr_ib_user_mad.c_find_overflow_devnum.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@overflow_maj = common global i32 0, align 4
@IB_UMAD_MAX_PORTS = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [15 x i8] c"infiniband_mad\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"couldn't register dynamic device number\0A\00", align 1
@overflow_map = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @find_overflow_devnum], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @find_overflow_devnum(ptr noundef %0) #0 {
%2 = load i32, ptr @overflow_maj, align 4, !tbaa !6
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1
%5 = load i32, ptr @IB_UMAD_MAX_PORTS, align 4, !tbaa !6
%6 = shl nsw i32 %5, 1
%7 = tail call i32 @alloc_chrdev_region(ptr noundef nonnull @overflow_maj, i32 noundef 0, i32 noundef %6, ptr noundef nonnull @.str) #2
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %4
%10 = tail call i32 @dev_err(ptr noundef %0, ptr noundef nonnull @.str.1) #2
br label %18
11: ; preds = %4, %1
%12 = load i32, ptr @overflow_map, align 4, !tbaa !6
%13 = load i32, ptr @IB_UMAD_MAX_PORTS, align 4, !tbaa !6
%14 = tail call i32 @find_first_zero_bit(i32 noundef %12, i32 noundef %13) #2
%15 = load i32, ptr @IB_UMAD_MAX_PORTS, align 4, !tbaa !6
%16 = icmp slt i32 %14, %15
%17 = select i1 %16, i32 %14, i32 -1
br label %18
18: ; preds = %11, %9
%19 = phi i32 [ %7, %9 ], [ %17, %11 ]
ret i32 %19
}
declare i32 @alloc_chrdev_region(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @dev_err(ptr noundef, ptr noundef) local_unnamed_addr #1
declare i32 @find_first_zero_bit(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"}
|
freebsd_sys_ofed_drivers_infiniband_core_extr_ib_user_mad.c_find_overflow_devnum
|
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192c/extr_..wifi.h_rtl_set_rfreg.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192c/extr_..wifi.h_rtl_set_rfreg.c"
target datalayout = "e-m:e-p270:32:32-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 @rtl_set_rfreg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @rtl_set_rfreg(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = load ptr, ptr %0, align 8, !tbaa !5
%7 = load ptr, ptr %6, align 8, !tbaa !10
%8 = load ptr, ptr %7, align 8, !tbaa !12
%9 = load ptr, ptr %8, align 8, !tbaa !14
%10 = tail call i32 %9(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #1
ret void
}
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"ieee80211_hw", !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 = !{!"rtl_priv", !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"TYPE_4__", !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"TYPE_3__", !7, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192c/extr_..wifi.h_rtl_set_rfreg.c'
source_filename = "AnghaBench/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192c/extr_..wifi.h_rtl_set_rfreg.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 @rtl_set_rfreg], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @rtl_set_rfreg(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = load ptr, ptr %0, align 8, !tbaa !6
%7 = load ptr, ptr %6, align 8, !tbaa !11
%8 = load ptr, ptr %7, align 8, !tbaa !13
%9 = load ptr, ptr %8, align 8, !tbaa !15
%10 = tail call i32 %9(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #1
ret void
}
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"ieee80211_hw", !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 = !{!"rtl_priv", !8, i64 0}
!13 = !{!14, !8, i64 0}
!14 = !{!"TYPE_4__", !8, i64 0}
!15 = !{!16, !8, i64 0}
!16 = !{!"TYPE_3__", !8, i64 0}
|
linux_drivers_net_wireless_realtek_rtlwifi_rtl8192c_extr_..wifi.h_rtl_set_rfreg
|
; ModuleID = 'AnghaBench/reactos/dll/win32/mcicda/extr_mcicda.c_MCICDA_Resume.c'
source_filename = "AnghaBench/reactos/dll/win32/mcicda/extr_mcicda.c_MCICDA_Resume.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_7__ = type { i64, i32, i32, i32 }
@.str = private unnamed_addr constant [19 x i8] c"(%04X, %08X, %p);\0A\00", align 1
@MCIERR_INVALID_DEVICE_ID = dso_local local_unnamed_addr global i32 0, align 4
@WAIT_OBJECT_0 = dso_local local_unnamed_addr global i64 0, align 8
@DSBPLAY_LOOPING = dso_local local_unnamed_addr global i32 0, align 4
@MCIERR_HARDWARE = dso_local local_unnamed_addr global i32 0, align 4
@IOCTL_CDROM_RESUME_AUDIO = dso_local local_unnamed_addr global i32 0, align 4
@MCI_NOTIFY = dso_local local_unnamed_addr global i32 0, align 4
@MCI_NOTIFY_SUCCESSFUL = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @MCICDA_Resume], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @MCICDA_Resume(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = tail call ptr @MCICDA_GetOpenDrv(i32 noundef %0) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%6 = tail call i32 @TRACE(ptr noundef nonnull @.str, i32 noundef %0, i32 noundef %1, ptr noundef %2) #3
%7 = icmp eq ptr %5, null
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = load i32, ptr @MCIERR_INVALID_DEVICE_ID, align 4, !tbaa !5
br label %46
10: ; preds = %3
%11 = load i64, ptr %5, align 8, !tbaa !9
%12 = icmp eq i64 %11, 0
br i1 %12, label %28, label %13
13: ; preds = %10
%14 = getelementptr inbounds %struct.TYPE_7__, ptr %5, i64 0, i32 3
%15 = load i32, ptr %14, align 8, !tbaa !12
%16 = tail call i64 @WaitForSingleObject(i32 noundef %15, i32 noundef 0) #3
%17 = load i64, ptr @WAIT_OBJECT_0, align 8, !tbaa !13
%18 = icmp eq i64 %16, %17
br i1 %18, label %36, label %19
19: ; preds = %13
%20 = getelementptr inbounds %struct.TYPE_7__, ptr %5, i64 0, i32 2
%21 = load i32, ptr %20, align 4, !tbaa !14
%22 = load i32, ptr @DSBPLAY_LOOPING, align 4, !tbaa !5
%23 = tail call i32 @IDirectSoundBuffer_Play(i32 noundef %21, i32 noundef 0, i32 noundef 0, i32 noundef %22) #3
%24 = tail call i64 @FAILED(i32 noundef %23) #3
%25 = icmp eq i64 %24, 0
br i1 %25, label %36, label %26
26: ; preds = %19
%27 = load i32, ptr @MCIERR_HARDWARE, align 4, !tbaa !5
br label %46
28: ; preds = %10
%29 = getelementptr inbounds %struct.TYPE_7__, ptr %5, i64 0, i32 1
%30 = load i32, ptr %29, align 8, !tbaa !15
%31 = load i32, ptr @IOCTL_CDROM_RESUME_AUDIO, align 4, !tbaa !5
%32 = call i32 @device_io(i32 noundef %30, i32 noundef %31, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef nonnull %4, ptr noundef null) #3
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load i32, ptr @MCIERR_HARDWARE, align 4, !tbaa !5
br label %46
36: ; preds = %28, %13, %19
%37 = load i32, ptr @MCI_NOTIFY, align 4, !tbaa !5
%38 = and i32 %37, %1
%39 = icmp ne i32 %38, 0
%40 = icmp ne ptr %2, null
%41 = and i1 %40, %39
br i1 %41, label %42, label %46
42: ; preds = %36
%43 = load i32, ptr %2, align 4, !tbaa !16
%44 = load i32, ptr @MCI_NOTIFY_SUCCESSFUL, align 4, !tbaa !5
%45 = call i32 @MCICDA_Notify(i32 noundef %43, ptr noundef nonnull %5, i32 noundef %44) #3
br label %46
46: ; preds = %36, %42, %34, %26, %8
%47 = phi i32 [ %9, %8 ], [ %27, %26 ], [ %35, %34 ], [ 0, %42 ], [ 0, %36 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %47
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @MCICDA_GetOpenDrv(i32 noundef) local_unnamed_addr #2
declare i32 @TRACE(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @WaitForSingleObject(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @FAILED(i32 noundef) local_unnamed_addr #2
declare i32 @IDirectSoundBuffer_Play(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_io(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @MCICDA_Notify(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"TYPE_7__", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 16}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 12}
!15 = !{!10, !6, i64 8}
!16 = !{!17, !6, i64 0}
!17 = !{!"TYPE_8__", !6, i64 0}
|
; ModuleID = 'AnghaBench/reactos/dll/win32/mcicda/extr_mcicda.c_MCICDA_Resume.c'
source_filename = "AnghaBench/reactos/dll/win32/mcicda/extr_mcicda.c_MCICDA_Resume.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 [19 x i8] c"(%04X, %08X, %p);\0A\00", align 1
@MCIERR_INVALID_DEVICE_ID = common local_unnamed_addr global i32 0, align 4
@WAIT_OBJECT_0 = common local_unnamed_addr global i64 0, align 8
@DSBPLAY_LOOPING = common local_unnamed_addr global i32 0, align 4
@MCIERR_HARDWARE = common local_unnamed_addr global i32 0, align 4
@IOCTL_CDROM_RESUME_AUDIO = common local_unnamed_addr global i32 0, align 4
@MCI_NOTIFY = common local_unnamed_addr global i32 0, align 4
@MCI_NOTIFY_SUCCESSFUL = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @MCICDA_Resume], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @MCICDA_Resume(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = tail call ptr @MCICDA_GetOpenDrv(i32 noundef %0) #3
call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
%6 = tail call i32 @TRACE(ptr noundef nonnull @.str, i32 noundef %0, i32 noundef %1, ptr noundef %2) #3
%7 = icmp eq ptr %5, null
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = load i32, ptr @MCIERR_INVALID_DEVICE_ID, align 4, !tbaa !6
br label %46
10: ; preds = %3
%11 = load i64, ptr %5, align 8, !tbaa !10
%12 = icmp eq i64 %11, 0
br i1 %12, label %28, label %13
13: ; preds = %10
%14 = getelementptr inbounds i8, ptr %5, i64 16
%15 = load i32, ptr %14, align 8, !tbaa !13
%16 = tail call i64 @WaitForSingleObject(i32 noundef %15, i32 noundef 0) #3
%17 = load i64, ptr @WAIT_OBJECT_0, align 8, !tbaa !14
%18 = icmp eq i64 %16, %17
br i1 %18, label %36, label %19
19: ; preds = %13
%20 = getelementptr inbounds i8, ptr %5, i64 12
%21 = load i32, ptr %20, align 4, !tbaa !15
%22 = load i32, ptr @DSBPLAY_LOOPING, align 4, !tbaa !6
%23 = tail call i32 @IDirectSoundBuffer_Play(i32 noundef %21, i32 noundef 0, i32 noundef 0, i32 noundef %22) #3
%24 = tail call i64 @FAILED(i32 noundef %23) #3
%25 = icmp eq i64 %24, 0
br i1 %25, label %36, label %26
26: ; preds = %19
%27 = load i32, ptr @MCIERR_HARDWARE, align 4, !tbaa !6
br label %46
28: ; preds = %10
%29 = getelementptr inbounds i8, ptr %5, i64 8
%30 = load i32, ptr %29, align 8, !tbaa !16
%31 = load i32, ptr @IOCTL_CDROM_RESUME_AUDIO, align 4, !tbaa !6
%32 = call i32 @device_io(i32 noundef %30, i32 noundef %31, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef nonnull %4, ptr noundef null) #3
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load i32, ptr @MCIERR_HARDWARE, align 4, !tbaa !6
br label %46
36: ; preds = %28, %13, %19
%37 = load i32, ptr @MCI_NOTIFY, align 4, !tbaa !6
%38 = and i32 %37, %1
%39 = icmp ne i32 %38, 0
%40 = icmp ne ptr %2, null
%41 = and i1 %40, %39
br i1 %41, label %42, label %46
42: ; preds = %36
%43 = load i32, ptr %2, align 4, !tbaa !17
%44 = load i32, ptr @MCI_NOTIFY_SUCCESSFUL, align 4, !tbaa !6
%45 = call i32 @MCICDA_Notify(i32 noundef %43, ptr noundef nonnull %5, i32 noundef %44) #3
br label %46
46: ; preds = %36, %42, %34, %26, %8
%47 = phi i32 [ %9, %8 ], [ %27, %26 ], [ %35, %34 ], [ 0, %42 ], [ 0, %36 ]
call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
ret i32 %47
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare ptr @MCICDA_GetOpenDrv(i32 noundef) local_unnamed_addr #2
declare i32 @TRACE(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2
declare i64 @WaitForSingleObject(i32 noundef, i32 noundef) local_unnamed_addr #2
declare i64 @FAILED(i32 noundef) local_unnamed_addr #2
declare i32 @IDirectSoundBuffer_Play(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @device_io(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2
declare i32 @MCICDA_Notify(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"TYPE_7__", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !7, i64 16}
!14 = !{!12, !12, i64 0}
!15 = !{!11, !7, i64 12}
!16 = !{!11, !7, i64 8}
!17 = !{!18, !7, i64 0}
!18 = !{!"TYPE_8__", !7, i64 0}
|
reactos_dll_win32_mcicda_extr_mcicda.c_MCICDA_Resume
|
; ModuleID = 'AnghaBench/radare2/libr/core/extr_cmd_debug.c_is_x86_call.c'
source_filename = "AnghaBench/radare2/libr/core/extr_cmd_debug.c_is_x86_call.c"
target datalayout = "e-m:e-p270:32:32-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, ptr }
@llvm.compiler.used = appending global [1 x ptr] [ptr @is_x86_call], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @is_x86_call(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = alloca [3 x i32], align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
%4 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%5 = load ptr, ptr %4, align 8, !tbaa !5
%6 = load i32, ptr %0, align 8, !tbaa !12
%7 = call i32 @R_ARRAY_SIZE(ptr noundef nonnull %3) #3
%8 = call i32 %5(i32 noundef %6, i32 noundef %1, ptr noundef nonnull %3, i32 noundef %7) #3
%9 = load i32, ptr %3, align 4, !tbaa !13
switch i32 %9, label %13 [
i32 101, label %10
i32 100, label %10
i32 38, label %10
i32 62, label %10
i32 54, label %10
i32 46, label %10
]
10: ; preds = %2, %2, %2, %2, %2, %2
%11 = getelementptr inbounds i32, ptr %3, i64 1
%12 = load i32, ptr %11, align 4, !tbaa !13
br label %13
13: ; preds = %10, %2
%14 = phi i32 [ %12, %10 ], [ %9, %2 ]
%15 = phi ptr [ %11, %10 ], [ %3, %2 ]
switch i32 %14, label %21 [
i32 232, label %22
i32 255, label %16
]
16: ; preds = %13
%17 = getelementptr inbounds i32, ptr %15, i64 1
%18 = load i32, ptr %17, align 4, !tbaa !13
%19 = and i32 %18, 48
%20 = icmp eq i32 %19, 16
br i1 %20, label %22, label %21
21: ; preds = %13, %16
br label %22
22: ; preds = %16, %13, %21
%23 = phi i32 [ 0, %21 ], [ 1, %13 ], [ 1, %16 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
ret i32 %23
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @R_ARRAY_SIZE(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 8}
!6 = !{!"TYPE_5__", !7, i64 0}
!7 = !{!"TYPE_4__", !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 = !{!6, !8, i64 0}
!13 = !{!8, !8, i64 0}
|
; ModuleID = 'AnghaBench/radare2/libr/core/extr_cmd_debug.c_is_x86_call.c'
source_filename = "AnghaBench/radare2/libr/core/extr_cmd_debug.c_is_x86_call.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @is_x86_call], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @is_x86_call(ptr nocapture noundef readonly %0, i32 noundef %1) #0 {
%3 = alloca [3 x i32], align 4
call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
%4 = getelementptr inbounds i8, ptr %0, i64 8
%5 = load ptr, ptr %4, align 8, !tbaa !6
%6 = load i32, ptr %0, align 8, !tbaa !13
%7 = call i32 @R_ARRAY_SIZE(ptr noundef nonnull %3) #3
%8 = call i32 %5(i32 noundef %6, i32 noundef %1, ptr noundef nonnull %3, i32 noundef %7) #3
%9 = load i32, ptr %3, align 4, !tbaa !14
switch i32 %9, label %13 [
i32 101, label %10
i32 100, label %10
i32 38, label %10
i32 62, label %10
i32 54, label %10
i32 46, label %10
]
10: ; preds = %2, %2, %2, %2, %2, %2
%11 = getelementptr inbounds i8, ptr %3, i64 4
%12 = load i32, ptr %11, align 4, !tbaa !14
br label %13
13: ; preds = %10, %2
%14 = phi i32 [ %12, %10 ], [ %9, %2 ]
%15 = phi ptr [ %11, %10 ], [ %3, %2 ]
switch i32 %14, label %21 [
i32 232, label %22
i32 255, label %16
]
16: ; preds = %13
%17 = getelementptr inbounds i8, ptr %15, i64 4
%18 = load i32, ptr %17, align 4, !tbaa !14
%19 = and i32 %18, 48
%20 = icmp eq i32 %19, 16
br i1 %20, label %22, label %21
21: ; preds = %13, %16
br label %22
22: ; preds = %16, %13, %21
%23 = phi i32 [ 0, %21 ], [ 1, %13 ], [ 1, %16 ]
call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
ret i32 %23
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
declare i32 @R_ARRAY_SIZE(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 8}
!7 = !{!"TYPE_5__", !8, i64 0}
!8 = !{!"TYPE_4__", !9, i64 0, !12, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!7, !9, i64 0}
!14 = !{!9, !9, i64 0}
|
radare2_libr_core_extr_cmd_debug.c_is_x86_call
|
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_exr.c_wdec16.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_exr.c_wdec16.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@MOD_MASK = dso_local local_unnamed_addr global i32 0, align 4
@A_OFFSET = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @wdec16], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable
define internal void @wdec16(i32 noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) #0 {
%5 = ashr i32 %1, 1
%6 = sub nsw i32 %0, %5
%7 = load i32, ptr @MOD_MASK, align 4, !tbaa !5
%8 = and i32 %7, %6
%9 = add nsw i32 %8, %1
%10 = load i32, ptr @A_OFFSET, align 4, !tbaa !5
%11 = sub i32 %9, %10
%12 = and i32 %11, %7
store i32 %8, ptr %3, align 4, !tbaa !5
store i32 %12, ptr %2, align 4, !tbaa !5
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/FFmpeg/libavcodec/extr_exr.c_wdec16.c'
source_filename = "AnghaBench/FFmpeg/libavcodec/extr_exr.c_wdec16.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@MOD_MASK = common local_unnamed_addr global i32 0, align 4
@A_OFFSET = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @wdec16], section "llvm.metadata"
; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable(sync)
define internal void @wdec16(i32 noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) #0 {
%5 = ashr i32 %1, 1
%6 = sub nsw i32 %0, %5
%7 = load i32, ptr @MOD_MASK, align 4, !tbaa !6
%8 = and i32 %7, %6
%9 = add nsw i32 %8, %1
%10 = load i32, ptr @A_OFFSET, align 4, !tbaa !6
%11 = sub i32 %9, %10
%12 = and i32 %11, %7
store i32 %8, ptr %3, align 4, !tbaa !6
store i32 %12, ptr %2, align 4, !tbaa !6
ret void
}
attributes #0 = { inlinehint mustprogress nofree norecurse nosync nounwind ssp willreturn memory(read, argmem: write, inaccessiblemem: none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
|
FFmpeg_libavcodec_extr_exr.c_wdec16
|
; ModuleID = 'AnghaBench/obs-studio/plugins/linux-capture/extr_xcursor.c_xcursor_create.c'
source_filename = "AnghaBench/obs-studio/plugins/linux-capture/extr_xcursor.c_xcursor_create.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_6__ = type { i64, i64, i32, i64 }
%struct.TYPE_7__ = type { i64, i64, i32 }
@False = dso_local local_unnamed_addr global i32 0, align 4
@GS_BGRA = dso_local local_unnamed_addr global i32 0, align 4
@GS_DYNAMIC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @xcursor_create], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal void @xcursor_create(ptr nocapture noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%4 = tail call ptr @xcursor_pixels(ptr noundef %1) #3
store ptr %4, ptr %3, align 8, !tbaa !5
%5 = icmp eq ptr %4, null
br i1 %5, label %44, label %6
6: ; preds = %2
%7 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 3
%8 = load i64, ptr %7, align 8, !tbaa !9
%9 = icmp eq i64 %8, 0
br i1 %9, label %27, label %10
10: ; preds = %6
%11 = load i64, ptr %0, align 8, !tbaa !13
%12 = load i64, ptr %1, align 8, !tbaa !14
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %25
14: ; preds = %10
%15 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 1
%16 = load i64, ptr %15, align 8, !tbaa !16
%17 = getelementptr inbounds %struct.TYPE_7__, ptr %1, i64 0, i32 1
%18 = load i64, ptr %17, align 8, !tbaa !17
%19 = icmp eq i64 %16, %18
br i1 %19, label %20, label %25
20: ; preds = %14
%21 = trunc i64 %11 to i32
%22 = shl i32 %21, 2
%23 = load i32, ptr @False, align 4, !tbaa !18
%24 = tail call i32 @gs_texture_set_image(i64 noundef %8, ptr noundef nonnull %4, i32 noundef %22, i32 noundef %23) #3
br label %36
25: ; preds = %14, %10
%26 = tail call i32 @gs_texture_destroy(i64 noundef %8) #3
br label %27
27: ; preds = %6, %25
%28 = load i64, ptr %1, align 8, !tbaa !14
%29 = trunc i64 %28 to i32
%30 = getelementptr inbounds %struct.TYPE_7__, ptr %1, i64 0, i32 1
%31 = load i64, ptr %30, align 8, !tbaa !17
%32 = load i32, ptr @GS_BGRA, align 4, !tbaa !18
%33 = load i32, ptr @GS_DYNAMIC, align 4, !tbaa !18
%34 = call i64 @gs_texture_create(i32 noundef %29, i64 noundef %31, i32 noundef %32, i32 noundef 1, ptr noundef nonnull %3, i32 noundef %33) #3
store i64 %34, ptr %7, align 8, !tbaa !9
%35 = load ptr, ptr %3, align 8, !tbaa !5
br label %36
36: ; preds = %27, %20
%37 = phi ptr [ %35, %27 ], [ %4, %20 ]
%38 = call i32 @bfree(ptr noundef %37) #3
%39 = getelementptr inbounds %struct.TYPE_7__, ptr %1, i64 0, i32 2
%40 = load i32, ptr %39, align 8, !tbaa !19
%41 = getelementptr inbounds %struct.TYPE_6__, ptr %0, i64 0, i32 2
store i32 %40, ptr %41, align 8, !tbaa !20
%42 = load <2 x i64>, ptr %1, align 8, !tbaa !21
%43 = shufflevector <2 x i64> %42, <2 x i64> poison, <2 x i32> <i32 1, i32 0>
store <2 x i64> %43, ptr %0, align 8, !tbaa !21
br label %44
44: ; preds = %2, %36
call void @llvm.lifetime.end.p0(i64 8, 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 @xcursor_pixels(ptr noundef) local_unnamed_addr #2
declare i32 @gs_texture_set_image(i64 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @gs_texture_destroy(i64 noundef) local_unnamed_addr #2
declare i64 @gs_texture_create(i32 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @bfree(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"TYPE_6__", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"TYPE_7__", !11, i64 0, !11, i64 8, !12, i64 16}
!16 = !{!10, !11, i64 8}
!17 = !{!15, !11, i64 8}
!18 = !{!12, !12, i64 0}
!19 = !{!15, !12, i64 16}
!20 = !{!10, !12, i64 16}
!21 = !{!11, !11, i64 0}
|
; ModuleID = 'AnghaBench/obs-studio/plugins/linux-capture/extr_xcursor.c_xcursor_create.c'
source_filename = "AnghaBench/obs-studio/plugins/linux-capture/extr_xcursor.c_xcursor_create.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@False = common local_unnamed_addr global i32 0, align 4
@GS_BGRA = common local_unnamed_addr global i32 0, align 4
@GS_DYNAMIC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @xcursor_create], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal void @xcursor_create(ptr nocapture noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
%4 = tail call ptr @xcursor_pixels(ptr noundef %1) #3
store ptr %4, ptr %3, align 8, !tbaa !6
%5 = icmp eq ptr %4, null
br i1 %5, label %44, label %6
6: ; preds = %2
%7 = getelementptr inbounds i8, ptr %0, i64 24
%8 = load i64, ptr %7, align 8, !tbaa !10
%9 = icmp eq i64 %8, 0
br i1 %9, label %27, label %10
10: ; preds = %6
%11 = load i64, ptr %0, align 8, !tbaa !14
%12 = load i64, ptr %1, align 8, !tbaa !15
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %25
14: ; preds = %10
%15 = getelementptr inbounds i8, ptr %0, i64 8
%16 = load i64, ptr %15, align 8, !tbaa !17
%17 = getelementptr inbounds i8, ptr %1, i64 8
%18 = load i64, ptr %17, align 8, !tbaa !18
%19 = icmp eq i64 %16, %18
br i1 %19, label %20, label %25
20: ; preds = %14
%21 = trunc i64 %11 to i32
%22 = shl i32 %21, 2
%23 = load i32, ptr @False, align 4, !tbaa !19
%24 = tail call i32 @gs_texture_set_image(i64 noundef %8, ptr noundef nonnull %4, i32 noundef %22, i32 noundef %23) #3
br label %36
25: ; preds = %14, %10
%26 = tail call i32 @gs_texture_destroy(i64 noundef %8) #3
br label %27
27: ; preds = %6, %25
%28 = load i64, ptr %1, align 8, !tbaa !15
%29 = trunc i64 %28 to i32
%30 = getelementptr inbounds i8, ptr %1, i64 8
%31 = load i64, ptr %30, align 8, !tbaa !18
%32 = load i32, ptr @GS_BGRA, align 4, !tbaa !19
%33 = load i32, ptr @GS_DYNAMIC, align 4, !tbaa !19
%34 = call i64 @gs_texture_create(i32 noundef %29, i64 noundef %31, i32 noundef %32, i32 noundef 1, ptr noundef nonnull %3, i32 noundef %33) #3
store i64 %34, ptr %7, align 8, !tbaa !10
%35 = load ptr, ptr %3, align 8, !tbaa !6
br label %36
36: ; preds = %27, %20
%37 = phi ptr [ %35, %27 ], [ %4, %20 ]
%38 = call i32 @bfree(ptr noundef %37) #3
%39 = getelementptr inbounds i8, ptr %1, i64 16
%40 = load i32, ptr %39, align 8, !tbaa !20
%41 = getelementptr inbounds i8, ptr %0, i64 16
store i32 %40, ptr %41, align 8, !tbaa !21
%42 = load <2 x i64>, ptr %1, align 8, !tbaa !22
%43 = shufflevector <2 x i64> %42, <2 x i64> poison, <2 x i32> <i32 1, i32 0>
store <2 x i64> %43, ptr %0, align 8, !tbaa !22
br label %44
44: ; preds = %2, %36
call void @llvm.lifetime.end.p0(i64 8, 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 @xcursor_pixels(ptr noundef) local_unnamed_addr #2
declare i32 @gs_texture_set_image(i64 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2
declare i32 @gs_texture_destroy(i64 noundef) local_unnamed_addr #2
declare i64 @gs_texture_create(i32 noundef, i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2
declare i32 @bfree(ptr noundef) local_unnamed_addr #2
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 24}
!11 = !{!"TYPE_6__", !12, i64 0, !12, i64 8, !13, i64 16, !12, i64 24}
!12 = !{!"long", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!11, !12, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"TYPE_7__", !12, i64 0, !12, i64 8, !13, i64 16}
!17 = !{!11, !12, i64 8}
!18 = !{!16, !12, i64 8}
!19 = !{!13, !13, i64 0}
!20 = !{!16, !13, i64 16}
!21 = !{!11, !13, i64 16}
!22 = !{!12, !12, i64 0}
|
obs-studio_plugins_linux-capture_extr_xcursor.c_xcursor_create
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/gspca/extr_stv0680.c_stv0680_get_video_mode.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/gspca/extr_stv0680.c_stv0680_get_video_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"
@D_ERR = dso_local local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"Get_Camera_Mode failed\00", align 1
@EIO = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @stv0680_get_video_mode], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @stv0680_get_video_mode(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !5
%3 = tail call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 8) #2
%4 = load ptr, ptr %0, align 8, !tbaa !5
store i32 15, ptr %4, align 4, !tbaa !10
%5 = tail call i32 @stv_sndctrl(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 135, i32 noundef 0, i32 noundef 8) #2
%6 = icmp eq i32 %5, 8
br i1 %6, label %13, label %7
7: ; preds = %1
%8 = load i32, ptr @D_ERR, align 4, !tbaa !10
%9 = tail call i32 @PDEBUG(i32 noundef %8, ptr noundef nonnull @.str) #2
%10 = load i32, ptr @EIO, align 4, !tbaa !10
%11 = sub nsw i32 0, %10
%12 = tail call i32 @stv0680_handle_error(ptr noundef nonnull %0, i32 noundef %11) #2
br label %16
13: ; preds = %1
%14 = load ptr, ptr %0, align 8, !tbaa !5
%15 = load i32, ptr %14, align 4, !tbaa !10
br label %16
16: ; preds = %13, %7
%17 = phi i32 [ %12, %7 ], [ %15, %13 ]
ret i32 %17
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @stv_sndctrl(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PDEBUG(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @stv0680_handle_error(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"gspca_dev", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
|
; ModuleID = 'AnghaBench/fastsocket/kernel/drivers/media/video/gspca/extr_stv0680.c_stv0680_get_video_mode.c'
source_filename = "AnghaBench/fastsocket/kernel/drivers/media/video/gspca/extr_stv0680.c_stv0680_get_video_mode.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@D_ERR = common local_unnamed_addr global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"Get_Camera_Mode failed\00", align 1
@EIO = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @stv0680_get_video_mode], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @stv0680_get_video_mode(ptr noundef %0) #0 {
%2 = load ptr, ptr %0, align 8, !tbaa !6
%3 = tail call i32 @memset(ptr noundef %2, i32 noundef 0, i32 noundef 8) #2
%4 = load ptr, ptr %0, align 8, !tbaa !6
store i32 15, ptr %4, align 4, !tbaa !11
%5 = tail call i32 @stv_sndctrl(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 135, i32 noundef 0, i32 noundef 8) #2
%6 = icmp eq i32 %5, 8
br i1 %6, label %13, label %7
7: ; preds = %1
%8 = load i32, ptr @D_ERR, align 4, !tbaa !11
%9 = tail call i32 @PDEBUG(i32 noundef %8, ptr noundef nonnull @.str) #2
%10 = load i32, ptr @EIO, align 4, !tbaa !11
%11 = sub nsw i32 0, %10
%12 = tail call i32 @stv0680_handle_error(ptr noundef nonnull %0, i32 noundef %11) #2
br label %16
13: ; preds = %1
%14 = load ptr, ptr %0, align 8, !tbaa !6
%15 = load i32, ptr %14, align 4, !tbaa !11
br label %16
16: ; preds = %13, %7
%17 = phi i32 [ %12, %7 ], [ %15, %13 ]
ret i32 %17
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @stv_sndctrl(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @PDEBUG(i32 noundef, ptr noundef) local_unnamed_addr #1
declare i32 @stv0680_handle_error(ptr noundef, i32 noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"gspca_dev", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
|
fastsocket_kernel_drivers_media_video_gspca_extr_stv0680.c_stv0680_get_video_mode
|
; ModuleID = 'AnghaBench/vlc/modules/spu/dynamicoverlay/extr_dynamicoverlay_commands.c_exec_GenImage.c'
source_filename = "AnghaBench/vlc/modules/spu/dynamicoverlay/extr_dynamicoverlay_commands.c_exec_GenImage.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@VLC_ENOMEM = dso_local local_unnamed_addr global i32 0, align 4
@VLC_SUCCESS = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @exec_GenImage], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal i32 @exec_GenImage(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = tail call i32 @VLC_UNUSED(ptr noundef %1) #2
%5 = load ptr, ptr %0, align 8, !tbaa !5
%6 = tail call ptr (...) @OverlayCreate() #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = load i32, ptr @VLC_ENOMEM, align 4, !tbaa !10
br label %17
10: ; preds = %3
%11 = tail call i64 @ListAdd(ptr noundef %5, ptr noundef nonnull %6) #2
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = trunc i64 %11 to i32
br label %17
15: ; preds = %10
store i64 %11, ptr %2, align 8, !tbaa !12
%16 = load i32, ptr @VLC_SUCCESS, align 4, !tbaa !10
br label %17
17: ; preds = %13, %15, %8
%18 = phi i32 [ %9, %8 ], [ %14, %13 ], [ %16, %15 ]
ret i32 %18
}
declare i32 @VLC_UNUSED(ptr noundef) local_unnamed_addr #1
declare ptr @OverlayCreate(...) local_unnamed_addr #1
declare i64 @ListAdd(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_8__", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"TYPE_10__", !14, i64 0}
!14 = !{!"long", !8, i64 0}
|
; ModuleID = 'AnghaBench/vlc/modules/spu/dynamicoverlay/extr_dynamicoverlay_commands.c_exec_GenImage.c'
source_filename = "AnghaBench/vlc/modules/spu/dynamicoverlay/extr_dynamicoverlay_commands.c_exec_GenImage.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VLC_ENOMEM = common local_unnamed_addr global i32 0, align 4
@VLC_SUCCESS = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @exec_GenImage], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal i32 @exec_GenImage(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) #0 {
%4 = tail call i32 @VLC_UNUSED(ptr noundef %1) #2
%5 = load ptr, ptr %0, align 8, !tbaa !6
%6 = tail call ptr @OverlayCreate() #2
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = load i32, ptr @VLC_ENOMEM, align 4, !tbaa !11
br label %17
10: ; preds = %3
%11 = tail call i64 @ListAdd(ptr noundef %5, ptr noundef nonnull %6) #2
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = trunc i64 %11 to i32
br label %17
15: ; preds = %10
store i64 %11, ptr %2, align 8, !tbaa !13
%16 = load i32, ptr @VLC_SUCCESS, align 4, !tbaa !11
br label %17
17: ; preds = %13, %15, %8
%18 = phi i32 [ %9, %8 ], [ %14, %13 ], [ %16, %15 ]
ret i32 %18
}
declare i32 @VLC_UNUSED(ptr noundef) local_unnamed_addr #1
declare ptr @OverlayCreate(...) local_unnamed_addr #1
declare i64 @ListAdd(ptr noundef, ptr noundef) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_8__", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"TYPE_10__", !15, i64 0}
!15 = !{!"long", !9, i64 0}
|
vlc_modules_spu_dynamicoverlay_extr_dynamicoverlay_commands.c_exec_GenImage
|
; ModuleID = 'AnghaBench/radare2/shlr/tcc/extr_tccgen.c_convert_parameter_type.c'
source_filename = "AnghaBench/radare2/shlr/tcc/extr_tccgen.c_convert_parameter_type.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@VT_CONSTANT = dso_local local_unnamed_addr global i32 0, align 4
@VT_VOLATILE = dso_local local_unnamed_addr global i32 0, align 4
@VT_ARRAY = dso_local local_unnamed_addr global i32 0, align 4
@VT_BTYPE = dso_local local_unnamed_addr global i32 0, align 4
@VT_FUNC = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @convert_parameter_type], section "llvm.metadata"
; Function Attrs: inlinehint nounwind uwtable
define internal void @convert_parameter_type(ptr noundef %0) #0 {
%2 = load i32, ptr @VT_CONSTANT, align 4, !tbaa !5
%3 = load i32, ptr @VT_VOLATILE, align 4, !tbaa !5
%4 = or i32 %3, %2
%5 = xor i32 %4, -1
%6 = load i32, ptr %0, align 4, !tbaa !9
%7 = and i32 %6, %5
store i32 %7, ptr %0, align 4, !tbaa !9
%8 = load i32, ptr @VT_ARRAY, align 4, !tbaa !5
%9 = xor i32 %8, -1
%10 = and i32 %7, %9
store i32 %10, ptr %0, align 4, !tbaa !9
%11 = load i32, ptr @VT_BTYPE, align 4, !tbaa !5
%12 = and i32 %11, %10
%13 = load i32, ptr @VT_FUNC, align 4, !tbaa !5
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = tail call i32 @mk_pointer(ptr noundef nonnull %0) #2
br label %17
17: ; preds = %15, %1
ret void
}
declare i32 @mk_pointer(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"TYPE_4__", !6, i64 0}
|
; ModuleID = 'AnghaBench/radare2/shlr/tcc/extr_tccgen.c_convert_parameter_type.c'
source_filename = "AnghaBench/radare2/shlr/tcc/extr_tccgen.c_convert_parameter_type.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@VT_CONSTANT = common local_unnamed_addr global i32 0, align 4
@VT_VOLATILE = common local_unnamed_addr global i32 0, align 4
@VT_ARRAY = common local_unnamed_addr global i32 0, align 4
@VT_BTYPE = common local_unnamed_addr global i32 0, align 4
@VT_FUNC = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @convert_parameter_type], section "llvm.metadata"
; Function Attrs: inlinehint nounwind ssp uwtable(sync)
define internal void @convert_parameter_type(ptr noundef %0) #0 {
%2 = load i32, ptr @VT_CONSTANT, align 4, !tbaa !6
%3 = load i32, ptr @VT_VOLATILE, align 4, !tbaa !6
%4 = or i32 %3, %2
%5 = xor i32 %4, -1
%6 = load i32, ptr %0, align 4, !tbaa !10
%7 = and i32 %6, %5
store i32 %7, ptr %0, align 4, !tbaa !10
%8 = load i32, ptr @VT_ARRAY, align 4, !tbaa !6
%9 = xor i32 %8, -1
%10 = and i32 %7, %9
store i32 %10, ptr %0, align 4, !tbaa !10
%11 = load i32, ptr @VT_BTYPE, align 4, !tbaa !6
%12 = and i32 %11, %10
%13 = load i32, ptr @VT_FUNC, align 4, !tbaa !6
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = tail call i32 @mk_pointer(ptr noundef nonnull %0) #2
br label %17
17: ; preds = %15, %1
ret void
}
declare i32 @mk_pointer(ptr noundef) local_unnamed_addr #1
attributes #0 = { inlinehint nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"TYPE_4__", !7, i64 0}
|
radare2_shlr_tcc_extr_tccgen.c_convert_parameter_type
|
; ModuleID = 'AnghaBench/git/extr_shell.c_is_valid_cmd_name.c'
source_filename = "AnghaBench/git/extr_shell.c_is_valid_cmd_name.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"./\00", align 1
@llvm.compiler.used = appending global [1 x ptr] [ptr @is_valid_cmd_name], section "llvm.metadata"
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read) uwtable
define internal i32 @is_valid_cmd_name(ptr nocapture noundef readonly %0) #0 {
%2 = tail call i64 @strcspn(ptr noundef %0, ptr noundef nonnull @.str)
%3 = getelementptr inbounds i8, ptr %0, i64 %2
%4 = load i8, ptr %3, align 1, !tbaa !5
%5 = icmp eq i8 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strcspn(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree 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" }
attributes #1 = { 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" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
|
; ModuleID = 'AnghaBench/git/extr_shell.c_is_valid_cmd_name.c'
source_filename = "AnghaBench/git/extr_shell.c_is_valid_cmd_name.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@.str = private unnamed_addr constant [3 x i8] c"./\00", align 1
@llvm.used = appending global [1 x ptr] [ptr @is_valid_cmd_name], section "llvm.metadata"
; Function Attrs: mustprogress nofree nounwind ssp willreturn memory(argmem: read) uwtable(sync)
define internal range(i32 0, 2) i32 @is_valid_cmd_name(ptr nocapture noundef readonly %0) #0 {
%2 = tail call i64 @strcspn(ptr noundef %0, ptr noundef nonnull @.str)
%3 = getelementptr inbounds i8, ptr %0, i64 %2
%4 = load i8, ptr %3, align 1, !tbaa !6
%5 = icmp eq i8 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strcspn(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1
attributes #0 = { mustprogress nofree 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" }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"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"}
|
git_extr_shell.c_is_valid_cmd_name
|
; ModuleID = 'AnghaBench/linux/drivers/staging/comedi/drivers/extr_ni_mio_common.c_handle_gpct_interrupt.c'
source_filename = "AnghaBench/linux/drivers/staging/comedi/drivers/extr_ni_mio_common.c_handle_gpct_interrupt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @handle_gpct_interrupt], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define internal void @handle_gpct_interrupt(ptr nocapture readnone %0, i16 zeroext %1) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
|
; ModuleID = 'AnghaBench/linux/drivers/staging/comedi/drivers/extr_ni_mio_common.c_handle_gpct_interrupt.c'
source_filename = "AnghaBench/linux/drivers/staging/comedi/drivers/extr_ni_mio_common.c_handle_gpct_interrupt.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 @handle_gpct_interrupt], section "llvm.metadata"
; Function Attrs: mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync)
define internal void @handle_gpct_interrupt(ptr nocapture readnone %0, i16 zeroext %1) #0 {
ret void
}
attributes #0 = { mustprogress nofree norecurse nosync nounwind ssp willreturn memory(none) uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
|
linux_drivers_staging_comedi_drivers_extr_ni_mio_common.c_handle_gpct_interrupt
|
; ModuleID = 'AnghaBench/reactos/drivers/filesystems/btrfs/extr_registry.c_is_uuid.c'
source_filename = "AnghaBench/reactos/drivers/filesystems/btrfs/extr_registry.c_is_uuid.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.compiler.used = appending global [1 x ptr] [ptr @is_uuid], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @is_uuid(i32 noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = icmp eq i32 %0, 36
br i1 %3, label %4, label %19
4: ; preds = %2, %16
%5 = phi i64 [ %17, %16 ], [ 0, %2 ]
%6 = trunc i64 %5 to i32
switch i32 %6, label %11 [
i32 23, label %7
i32 18, label %7
i32 13, label %7
i32 8, label %7
]
7: ; preds = %4, %4, %4, %4
%8 = getelementptr inbounds i8, ptr %1, i64 %5
%9 = load i8, ptr %8, align 1, !tbaa !5
%10 = icmp eq i8 %9, 45
br i1 %10, label %16, label %19
11: ; preds = %4
%12 = getelementptr inbounds i8, ptr %1, i64 %5
%13 = load i8, ptr %12, align 1, !tbaa !5
%14 = tail call i32 @is_hex(i8 noundef signext %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %7, %11
%17 = add nuw nsw i64 %5, 1
%18 = icmp eq i64 %17, 36
br i1 %18, label %19, label %4, !llvm.loop !8
19: ; preds = %16, %11, %7, %2
%20 = phi i32 [ 0, %2 ], [ 1, %16 ], [ 0, %11 ], [ 0, %7 ]
ret i32 %20
}
declare i32 @is_hex(i8 noundef signext) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = 'AnghaBench/reactos/drivers/filesystems/btrfs/extr_registry.c_is_uuid.c'
source_filename = "AnghaBench/reactos/drivers/filesystems/btrfs/extr_registry.c_is_uuid.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@llvm.used = appending global [1 x ptr] [ptr @is_uuid], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal range(i32 0, 2) i32 @is_uuid(i32 noundef %0, ptr nocapture noundef readonly %1) #0 {
%3 = icmp eq i32 %0, 36
br i1 %3, label %4, label %19
4: ; preds = %2, %16
%5 = phi i64 [ %17, %16 ], [ 0, %2 ]
%6 = trunc nuw nsw i64 %5 to i32
switch i32 %6, label %11 [
i32 23, label %7
i32 18, label %7
i32 13, label %7
i32 8, label %7
]
7: ; preds = %4, %4, %4, %4
%8 = getelementptr inbounds i8, ptr %1, i64 %5
%9 = load i8, ptr %8, align 1, !tbaa !6
%10 = icmp eq i8 %9, 45
br i1 %10, label %16, label %19
11: ; preds = %4
%12 = getelementptr inbounds i8, ptr %1, i64 %5
%13 = load i8, ptr %12, align 1, !tbaa !6
%14 = tail call i32 @is_hex(i8 noundef signext %13) #2
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %7, %11
%17 = add nuw nsw i64 %5, 1
%18 = icmp eq i64 %17, 36
br i1 %18, label %19, label %4, !llvm.loop !9
19: ; preds = %16, %11, %7, %2
%20 = phi i32 [ 0, %2 ], [ 1, %16 ], [ 0, %11 ], [ 0, %7 ]
ret i32 %20
}
declare i32 @is_hex(i8 noundef signext) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
|
reactos_drivers_filesystems_btrfs_extr_registry.c_is_uuid
|
; ModuleID = 'AnghaBench/streem/src/extr_core.c_strm_emit.c'
source_filename = "AnghaBench/streem/src/extr_core.c_strm_emit.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.TYPE_4__ = type { i64, i32, ptr, ptr, i64 }
@strm_dying = dso_local local_unnamed_addr global i64 0, align 8
@strm_killed = dso_local local_unnamed_addr global i64 0, align 8
@TRUE = dso_local local_unnamed_addr global i32 0, align 4
@FALSE = dso_local local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind uwtable
define dso_local void @strm_emit(ptr noundef %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = load i64, ptr %0, align 8, !tbaa !5
%5 = load i64, ptr @strm_dying, align 8, !tbaa !12
%6 = icmp eq i64 %4, %5
br i1 %6, label %82, label %7
7: ; preds = %3
%8 = tail call i32 @strm_nil_p(i32 noundef %1) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %76
10: ; preds = %7
%11 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 3
%12 = load ptr, ptr %11, align 8, !tbaa !13
%13 = icmp eq ptr %12, null
br i1 %13, label %23, label %14
14: ; preds = %10
%15 = getelementptr inbounds %struct.TYPE_4__, ptr %12, i64 0, i32 4
%16 = load i64, ptr %15, align 8, !tbaa !14
%17 = tail call i32 @strm_task_push(ptr noundef nonnull %12, i64 noundef %16, i32 noundef %1) #2
%18 = load ptr, ptr %11, align 8, !tbaa !13
%19 = load i64, ptr %18, align 8, !tbaa !5
%20 = load i64, ptr @strm_killed, align 8, !tbaa !12
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
store ptr null, ptr %11, align 8, !tbaa !13
br label %23
23: ; preds = %14, %22, %10
%24 = phi ptr [ %18, %14 ], [ null, %22 ], [ null, %10 ]
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 2
%26 = load ptr, ptr %25, align 8, !tbaa !15
%27 = icmp eq ptr %26, null
br i1 %27, label %46, label %28
28: ; preds = %23
%29 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%30 = load i32, ptr %29, align 8, !tbaa !16
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %46
32: ; preds = %28, %32
%33 = phi i64 [ %40, %32 ], [ 0, %28 ]
%34 = load ptr, ptr %25, align 8, !tbaa !15
%35 = getelementptr inbounds ptr, ptr %34, i64 %33
%36 = load ptr, ptr %35, align 8, !tbaa !17
%37 = getelementptr inbounds %struct.TYPE_4__, ptr %36, i64 0, i32 4
%38 = load i64, ptr %37, align 8, !tbaa !14
%39 = tail call i32 @strm_task_push(ptr noundef %36, i64 noundef %38, i32 noundef %1) #2
%40 = add nuw nsw i64 %33, 1
%41 = load i32, ptr %29, align 8, !tbaa !16
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %40, %42
br i1 %43, label %32, label %44, !llvm.loop !18
44: ; preds = %32
%45 = load ptr, ptr %11, align 8, !tbaa !13
br label %46
46: ; preds = %44, %28, %23
%47 = phi ptr [ %45, %44 ], [ %24, %28 ], [ %24, %23 ]
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %76
49: ; preds = %46
%50 = load i32, ptr @TRUE, align 4, !tbaa !20
%51 = load ptr, ptr %25, align 8, !tbaa !15
%52 = icmp eq ptr %51, null
br i1 %52, label %71, label %53
53: ; preds = %49
%54 = getelementptr inbounds %struct.TYPE_4__, ptr %0, i64 0, i32 1
%55 = load i32, ptr %54, align 8, !tbaa !16
%56 = icmp sgt i32 %55, 0
br i1 %56, label %57, label %71
57: ; preds = %53
%58 = load i64, ptr @strm_killed, align 8, !tbaa !12
%59 = zext nneg i32 %55 to i64
br label %63
60: ; preds = %63
%61 = add nuw nsw i64 %64, 1
%62 = icmp eq i64 %61, %59
br i1 %62, label %71, label %63, !llvm.loop !21
63: ; preds = %57, %60
%64 = phi i64 [ 0, %57 ], [ %61, %60 ]
%65 = getelementptr inbounds ptr, ptr %51, i64 %64
%66 = load ptr, ptr %65, align 8, !tbaa !17
%67 = load i64, ptr %66, align 8, !tbaa !5
%68 = icmp eq i64 %67, %58
br i1 %68, label %60, label %69
69: ; preds = %63
%70 = load i32, ptr @FALSE, align 4, !tbaa !20
br label %71
71: ; preds = %60, %53, %69, %49
%72 = phi i32 [ %50, %49 ], [ %70, %69 ], [ %50, %53 ], [ %50, %60 ]
%73 = icmp eq i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = load i64, ptr @strm_dying, align 8, !tbaa !12
store i64 %75, ptr %0, align 8, !tbaa !5
br label %82
76: ; preds = %71, %46, %7
%77 = tail call i32 (...) @sched_yield() #2
%78 = icmp eq i64 %2, 0
br i1 %78, label %82, label %79
79: ; preds = %76
%80 = tail call i32 (...) @strm_nil_value() #2
%81 = tail call i32 @strm_task_push(ptr noundef nonnull %0, i64 noundef %2, i32 noundef %80) #2
br label %82
82: ; preds = %74, %3, %79, %76
ret void
}
declare i32 @strm_nil_p(i32 noundef) local_unnamed_addr #1
declare i32 @strm_task_push(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sched_yield(...) local_unnamed_addr #1
declare i32 @strm_nil_value(...) local_unnamed_addr #1
attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 18.1.8 (https://github.com/llvm/llvm-project.git 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"TYPE_4__", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !7, i64 32}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !11, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !11, i64 16}
!16 = !{!6, !10, i64 8}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !19}
|
; ModuleID = 'AnghaBench/streem/src/extr_core.c_strm_emit.c'
source_filename = "AnghaBench/streem/src/extr_core.c_strm_emit.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@strm_dying = common local_unnamed_addr global i64 0, align 8
@strm_killed = common local_unnamed_addr global i64 0, align 8
@TRUE = common local_unnamed_addr global i32 0, align 4
@FALSE = common local_unnamed_addr global i32 0, align 4
; Function Attrs: nounwind ssp uwtable(sync)
define void @strm_emit(ptr noundef %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #0 {
%4 = load i64, ptr %0, align 8, !tbaa !6
%5 = load i64, ptr @strm_dying, align 8, !tbaa !13
%6 = icmp eq i64 %4, %5
br i1 %6, label %82, label %7
7: ; preds = %3
%8 = tail call i32 @strm_nil_p(i32 noundef %1) #2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %76
10: ; preds = %7
%11 = getelementptr inbounds i8, ptr %0, i64 24
%12 = load ptr, ptr %11, align 8, !tbaa !14
%13 = icmp eq ptr %12, null
br i1 %13, label %23, label %14
14: ; preds = %10
%15 = getelementptr inbounds i8, ptr %12, i64 32
%16 = load i64, ptr %15, align 8, !tbaa !15
%17 = tail call i32 @strm_task_push(ptr noundef nonnull %12, i64 noundef %16, i32 noundef %1) #2
%18 = load ptr, ptr %11, align 8, !tbaa !14
%19 = load i64, ptr %18, align 8, !tbaa !6
%20 = load i64, ptr @strm_killed, align 8, !tbaa !13
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %14
store ptr null, ptr %11, align 8, !tbaa !14
br label %23
23: ; preds = %14, %22, %10
%24 = phi ptr [ %18, %14 ], [ null, %22 ], [ null, %10 ]
%25 = getelementptr inbounds i8, ptr %0, i64 16
%26 = load ptr, ptr %25, align 8, !tbaa !16
%27 = icmp eq ptr %26, null
br i1 %27, label %46, label %28
28: ; preds = %23
%29 = getelementptr inbounds i8, ptr %0, i64 8
%30 = load i32, ptr %29, align 8, !tbaa !17
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %46
32: ; preds = %28, %32
%33 = phi i64 [ %40, %32 ], [ 0, %28 ]
%34 = load ptr, ptr %25, align 8, !tbaa !16
%35 = getelementptr inbounds ptr, ptr %34, i64 %33
%36 = load ptr, ptr %35, align 8, !tbaa !18
%37 = getelementptr inbounds i8, ptr %36, i64 32
%38 = load i64, ptr %37, align 8, !tbaa !15
%39 = tail call i32 @strm_task_push(ptr noundef %36, i64 noundef %38, i32 noundef %1) #2
%40 = add nuw nsw i64 %33, 1
%41 = load i32, ptr %29, align 8, !tbaa !17
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %40, %42
br i1 %43, label %32, label %44, !llvm.loop !19
44: ; preds = %32
%45 = load ptr, ptr %11, align 8, !tbaa !14
br label %46
46: ; preds = %44, %28, %23
%47 = phi ptr [ %45, %44 ], [ %24, %28 ], [ %24, %23 ]
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %76
49: ; preds = %46
%50 = load i32, ptr @TRUE, align 4, !tbaa !21
%51 = load ptr, ptr %25, align 8, !tbaa !16
%52 = icmp eq ptr %51, null
br i1 %52, label %71, label %53
53: ; preds = %49
%54 = getelementptr inbounds i8, ptr %0, i64 8
%55 = load i32, ptr %54, align 8, !tbaa !17
%56 = icmp sgt i32 %55, 0
br i1 %56, label %57, label %71
57: ; preds = %53
%58 = load i64, ptr @strm_killed, align 8, !tbaa !13
%59 = zext nneg i32 %55 to i64
br label %63
60: ; preds = %63
%61 = add nuw nsw i64 %64, 1
%62 = icmp eq i64 %61, %59
br i1 %62, label %71, label %63, !llvm.loop !22
63: ; preds = %57, %60
%64 = phi i64 [ 0, %57 ], [ %61, %60 ]
%65 = getelementptr inbounds ptr, ptr %51, i64 %64
%66 = load ptr, ptr %65, align 8, !tbaa !18
%67 = load i64, ptr %66, align 8, !tbaa !6
%68 = icmp eq i64 %67, %58
br i1 %68, label %60, label %69
69: ; preds = %63
%70 = load i32, ptr @FALSE, align 4, !tbaa !21
br label %71
71: ; preds = %60, %53, %69, %49
%72 = phi i32 [ %50, %49 ], [ %70, %69 ], [ %50, %53 ], [ %50, %60 ]
%73 = icmp eq i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = load i64, ptr @strm_dying, align 8, !tbaa !13
store i64 %75, ptr %0, align 8, !tbaa !6
br label %82
76: ; preds = %71, %46, %7
%77 = tail call i32 @sched_yield() #2
%78 = icmp eq i64 %2, 0
br i1 %78, label %82, label %79
79: ; preds = %76
%80 = tail call i32 @strm_nil_value() #2
%81 = tail call i32 @strm_task_push(ptr noundef nonnull %0, i64 noundef %2, i32 noundef %80) #2
br label %82
82: ; preds = %74, %3, %79, %76
ret void
}
declare i32 @strm_nil_p(i32 noundef) local_unnamed_addr #1
declare i32 @strm_task_push(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1
declare i32 @sched_yield(...) local_unnamed_addr #1
declare i32 @strm_nil_value(...) local_unnamed_addr #1
attributes #0 = { nounwind ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #1 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+altnzcv,+bti,+ccdp,+ccidx,+complxnum,+crc,+dit,+dotprod,+flagm,+fp-armv8,+fp16fml,+fptoint,+fullfp16,+jsconv,+lse,+neon,+pauth,+perfmon,+predres,+ras,+rcpc,+rdm,+sb,+sha2,+sha3,+specrestrict,+ssbs,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 5]}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 1}
!4 = !{i32 7, !"frame-pointer", i32 1}
!5 = !{!"Apple clang version 17.0.0 (clang-1700.0.13.5)"}
!6 = !{!7, !8, i64 0}
!7 = !{!"TYPE_4__", !8, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !8, i64 32}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !12, i64 24}
!15 = !{!7, !8, i64 32}
!16 = !{!7, !12, i64 16}
!17 = !{!7, !11, i64 8}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !20}
|
streem_src_extr_core.c_strm_emit
|
; ModuleID = 'AnghaBench/linux/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_hotk_thaw.c'
source_filename = "AnghaBench/linux/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_hotk_thaw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@CM_ASL_WLAN = dso_local local_unnamed_addr global i32 0, align 4
@llvm.compiler.used = appending global [1 x ptr] [ptr @eeepc_hotk_thaw], section "llvm.metadata"
; Function Attrs: nounwind uwtable
define internal noundef i32 @eeepc_hotk_thaw(ptr noundef %0) #0 {
%2 = tail call ptr @dev_get_drvdata(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !5
%4 = icmp eq i64 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %1
%6 = load i32, ptr @CM_ASL_WLAN, align 4, !tbaa !10
%7 = tail call i32 @get_acpi(ptr noundef nonnull %2, i32 noundef %6) #2
%8 = icmp sgt i32 %7, -1
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr @CM_ASL_WLAN, align 4, !tbaa !10
%11 = tail call i32 @set_acpi(ptr noundef nonnull %2, i32 noundef %10, i32 noundef %7) #2
br label %12
12: ; preds = %5, %9, %1
ret i32 0
}
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @get_acpi(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_acpi(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 = !{!"eeepc_laptop", !7, i64 0}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
|
; ModuleID = 'AnghaBench/linux/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_hotk_thaw.c'
source_filename = "AnghaBench/linux/drivers/platform/x86/extr_eeepc-laptop.c_eeepc_hotk_thaw.c"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
@CM_ASL_WLAN = common local_unnamed_addr global i32 0, align 4
@llvm.used = appending global [1 x ptr] [ptr @eeepc_hotk_thaw], section "llvm.metadata"
; Function Attrs: nounwind ssp uwtable(sync)
define internal noundef i32 @eeepc_hotk_thaw(ptr noundef %0) #0 {
%2 = tail call ptr @dev_get_drvdata(ptr noundef %0) #2
%3 = load i64, ptr %2, align 8, !tbaa !6
%4 = icmp eq i64 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %1
%6 = load i32, ptr @CM_ASL_WLAN, align 4, !tbaa !11
%7 = tail call i32 @get_acpi(ptr noundef nonnull %2, i32 noundef %6) #2
%8 = icmp sgt i32 %7, -1
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr @CM_ASL_WLAN, align 4, !tbaa !11
%11 = tail call i32 @set_acpi(ptr noundef nonnull %2, i32 noundef %10, i32 noundef %7) #2
br label %12
12: ; preds = %5, %9, %1
ret i32 0
}
declare ptr @dev_get_drvdata(ptr noundef) local_unnamed_addr #1
declare i32 @get_acpi(ptr noundef, i32 noundef) local_unnamed_addr #1
declare i32 @set_acpi(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 = !{!"eeepc_laptop", !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}
|
linux_drivers_platform_x86_extr_eeepc-laptop.c_eeepc_hotk_thaw
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.