; LLVM IR from intel/intel-ipsec-mb :: test/wycheproof-app (wycheproof)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-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.IMB_MGR = type { i64, i64, [4 x i64], [7 x i8], i8, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, [256 x %struct.IMB_JOB], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.IMB_JOB = type { ptr, ptr, i64, %union.anon, %union.anon.0, %union.anon.1, %union.anon.2, i64, %union.anon.3, ptr, i64, ptr, i64, %union.anon.4, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, %union.anon.5, [2 x i32], i32 }
%union.anon = type { ptr }
%union.anon.0 = type { ptr }
%union.anon.1 = type { i64 }
%union.anon.2 = type { i64 }
%union.anon.3 = type { i64 }
%union.anon.4 = type { %struct._AES_XCBC_specific_fields }
%struct._AES_XCBC_specific_fields = type { ptr, ptr, ptr }
%union.anon.5 = type { %struct._CBCS_specific_fields }
%struct._CBCS_specific_fields = type { ptr }

@.str = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@total_run_vectors = external hidden global i32, align 4
@total_skip_vectors = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 5, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %11 = call i32 @imb_get_version()
  %12 = icmp ult i32 %11, 12800
  br i1 %12, label %13, label %15

13:                                               ; preds = %2
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %19

15:                                               ; preds = %2
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @.str.2)
  %17 = call ptr @imb_get_version_str()
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %17)
  br label %19

19:                                               ; preds = %15, %13
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %109, %19
  %21 = load i32, ptr %9, align 4, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %112

24:                                               ; preds = %20
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds ptr, ptr %25, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = call i32 @strcmp(ptr noundef %29, ptr noundef @.str.4) #5
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %40, label %32

32:                                               ; preds = %24
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds ptr, ptr %33, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = call i32 @strcmp(ptr noundef %37, ptr noundef @.str.5) #5
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %32, %24
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  call void @usage(ptr noundef %43)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %173

44:                                               ; preds = %32
  %45 = load ptr, ptr %5, align 8, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %45, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call i32 @strcmp(ptr noundef %49, ptr noundef @.str.6) #5
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %44
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %107

53:                                               ; preds = %44
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call i32 @strcmp(ptr noundef %58, ptr noundef @.str.7) #5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %53
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %106

62:                                               ; preds = %53
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %63, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = call i32 @strcmp(ptr noundef %67, ptr noundef @.str.8) #5
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %62
  store i32 3, ptr %6, align 4, !tbaa !5
  br label %105

71:                                               ; preds = %62
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %72, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = call i32 @strcmp(ptr noundef %76, ptr noundef @.str.9) #5
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %71
  store i32 4, ptr %6, align 4, !tbaa !5
  br label %104

80:                                               ; preds = %71
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds ptr, ptr %81, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = call i32 @strcmp(ptr noundef %85, ptr noundef @.str.10) #5
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %91

88:                                               ; preds = %80
  %89 = load i64, ptr %7, align 8, !tbaa !11
  %90 = or i64 %89, 1
  store i64 %90, ptr %7, align 8, !tbaa !11
  br label %103

91:                                               ; preds = %80
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %92, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.11) #5
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %91
  %100 = load i64, ptr %7, align 8, !tbaa !11
  %101 = or i64 %100, 2
  store i64 %101, ptr %7, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %99, %91
  br label %103

103:                                              ; preds = %102, %88
  br label %104

104:                                              ; preds = %103, %79
  br label %105

105:                                              ; preds = %104, %70
  br label %106

106:                                              ; preds = %105, %61
  br label %107

107:                                              ; preds = %106, %52
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !5
  br label %20, !llvm.loop !13

112:                                              ; preds = %20
  %113 = load i64, ptr %7, align 8, !tbaa !11
  %114 = call ptr @alloc_mb_mgr(i64 noundef %113)
  store ptr %114, ptr %8, align 8, !tbaa !9
  %115 = load ptr, ptr %8, align 8, !tbaa !9
  %116 = icmp eq ptr %115, null
  br i1 %116, label %117, label %122

117:                                              ; preds = %112
  %118 = load ptr, ptr %8, align 8, !tbaa !9
  %119 = call i32 @imb_get_errno(ptr noundef %118)
  %120 = call ptr @imb_get_strerror(i32 noundef %119)
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %120)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %173

122:                                              ; preds = %112
  %123 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %123, label %132 [
    i32 1, label %124
    i32 2, label %126
    i32 3, label %128
    i32 4, label %130
  ]

124:                                              ; preds = %122
  %125 = load ptr, ptr %8, align 8, !tbaa !9
  call void @init_mb_mgr_sse(ptr noundef %125)
  br label %134

126:                                              ; preds = %122
  %127 = load ptr, ptr %8, align 8, !tbaa !9
  call void @init_mb_mgr_avx2(ptr noundef %127)
  br label %134

128:                                              ; preds = %122
  %129 = load ptr, ptr %8, align 8, !tbaa !9
  call void @init_mb_mgr_avx512(ptr noundef %129)
  br label %134

130:                                              ; preds = %122
  %131 = load ptr, ptr %8, align 8, !tbaa !9
  call void @init_mb_mgr_avx10(ptr noundef %131)
  br label %134

132:                                              ; preds = %122
  %133 = load ptr, ptr %8, align 8, !tbaa !9
  call void @init_mb_mgr_auto(ptr noundef %133, ptr noundef %6)
  br label %134

134:                                              ; preds = %132, %130, %128, %126, %124
  %135 = load ptr, ptr %8, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.IMB_MGR, ptr %135, i32 0, i32 1
  %137 = load i64, ptr %136, align 8, !tbaa !15
  %138 = and i64 %137, 524288
  %139 = icmp ne i64 %138, 0
  br i1 %139, label %140, label %149

140:                                              ; preds = %134
  %141 = load ptr, ptr %8, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.IMB_MGR, ptr %141, i32 0, i32 1
  %143 = load i64, ptr %142, align 8, !tbaa !15
  %144 = and i64 %143, 1048576
  %145 = icmp ne i64 %144, 0
  %146 = zext i1 %145 to i64
  %147 = select i1 %145, ptr @.str.14, ptr @.str.15
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %147)
  br label %151

149:                                              ; preds = %134
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %151

151:                                              ; preds = %149, %140
  %152 = load ptr, ptr %8, align 8, !tbaa !9
  %153 = call i32 @imb_get_errno(ptr noundef %152)
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %161

155:                                              ; preds = %151
  %156 = load ptr, ptr %8, align 8, !tbaa !9
  %157 = call i32 @imb_get_errno(ptr noundef %156)
  %158 = call ptr @imb_get_strerror(i32 noundef %157)
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %158)
  %160 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free_mb_mgr(ptr noundef %160)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %173

161:                                              ; preds = %151
  %162 = load ptr, ptr %8, align 8, !tbaa !9
  %163 = call i32 @test_all(ptr noundef %162)
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %168, label %165

165:                                              ; preds = %161
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %167 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free_mb_mgr(ptr noundef %167)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %173

168:                                              ; preds = %161
  %169 = load i32, ptr @total_run_vectors, align 4, !tbaa !5
  %170 = load i32, ptr @total_skip_vectors, align 4, !tbaa !5
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %169, i32 noundef %170)
  %172 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free_mb_mgr(ptr noundef %172)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %173

173:                                              ; preds = %168, %165, %155, %117, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %174 = load i32, ptr %3, align 4
  ret i32 %174
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i32 @imb_get_version() #2

declare i32 @printf(ptr noundef, ...) #2

declare ptr @imb_get_version_str() #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) #0

declare ptr @alloc_mb_mgr(i64 noundef) #2

declare ptr @imb_get_strerror(i32 noundef) #2

declare i32 @imb_get_errno(ptr noundef) #2

declare void @init_mb_mgr_sse(ptr noundef) #2

declare void @init_mb_mgr_avx2(ptr noundef) #2

declare void @init_mb_mgr_avx512(ptr noundef) #2

declare void @init_mb_mgr_avx10(ptr noundef) #2

declare void @init_mb_mgr_auto(ptr noundef, ptr noundef) #2

declare void @free_mb_mgr(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @test_all(ptr noundef) #0

; Function Attrs: 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 = { 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 willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 8}
!16 = !{!"IMB_MGR", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 48, !7, i64 55, !6, i64 56, !6, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !10, i64 672, !10, i64 680, !10, i64 688, !10, i64 696, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !10, i64 792, !10, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !10, i64 832, !10, i64 840, !10, i64 848, !10, i64 856, !10, i64 864, !10, i64 872, !10, i64 880, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !10, i64 920, !10, i64 928, !10, i64 936, !10, i64 944, !10, i64 952, !10, i64 960, !10, i64 968, !10, i64 976, !10, i64 984, !10, i64 992, !10, i64 1000, !10, i64 1008, !10, i64 1016, !10, i64 1024, !10, i64 1032, !10, i64 1040, !10, i64 1048, !10, i64 1056, !10, i64 1064, !10, i64 1072, !10, i64 1080, !10, i64 1088, !10, i64 1096, !6, i64 1104, !6, i64 1108, !7, i64 1112, !10, i64 56408, !10, i64 56416, !10, i64 56424, !10, i64 56432, !10, i64 56440, !10, i64 56448, !10, i64 56456, !10, i64 56464, !10, i64 56472, !10, i64 56480, !10, i64 56488, !10, i64 56496, !10, i64 56504, !10, i64 56512, !10, i64 56520, !10, i64 56528, !10, i64 56536, !10, i64 56544, !10, i64 56552, !10, i64 56560, !10, i64 56568, !10, i64 56576, !10, i64 56584, !10, i64 56592, !10, i64 56600, !10, i64 56608, !10, i64 56616, !10, i64 56624, !10, i64 56632, !10, i64 56640, !10, i64 56648, !10, i64 56656, !10, i64 56664, !10, i64 56672, !10, i64 56680, !10, i64 56688, !10, i64 56696, !10, i64 56704, !10, i64 56712, !10, i64 56720, !10, i64 56728, !10, i64 56736}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-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 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@total_run_vectors = external hidden local_unnamed_addr global i32, align 4
@total_skip_vectors = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %4 = tail call i32 @imb_get_version() #5
  %5 = icmp ult i32 %4, 12800
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %12

8:                                                ; preds = %2
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2)
  %10 = tail call ptr @imb_get_version_str() #5
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %10)
  br label %12

12:                                               ; preds = %8, %6
  %13 = icmp sgt i32 %0, 1
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %12
  %wide.trip.count = zext nneg i32 %0 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %45
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %45 ]
  %.03847 = phi i64 [ 0, %.lr.ph.preheader ], [ %.1, %45 ]
  %14 = phi i32 [ 5, %.lr.ph.preheader ], [ %46, %45 ]
  %15 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.4) #6
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %22, label %19

19:                                               ; preds = %.lr.ph
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.5) #6
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %19, %.lr.ph
  %23 = load ptr, ptr %1, align 8, !tbaa !5
  tail call void @usage(ptr noundef %23)
  br label %84

24:                                               ; preds = %19
  %25 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.6) #6
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %45, label %27

27:                                               ; preds = %24
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.7) #6
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %45, label %30

30:                                               ; preds = %27
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.8) #6
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %45, label %33

33:                                               ; preds = %30
  %34 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.9) #6
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %45, label %36

36:                                               ; preds = %33
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.10) #6
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = or i64 %.03847, 1
  br label %45

41:                                               ; preds = %36
  %42 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.11) #6
  %43 = icmp eq i32 %42, 0
  %44 = or i64 %.03847, 2
  %spec.select = select i1 %43, i64 %44, i64 %.03847
  br label %45

45:                                               ; preds = %33, %30, %27, %24, %41, %39
  %46 = phi i32 [ %14, %39 ], [ %14, %41 ], [ 1, %24 ], [ 2, %27 ], [ 3, %30 ], [ 4, %33 ]
  %.1 = phi i64 [ %40, %39 ], [ %spec.select, %41 ], [ %.03847, %24 ], [ %.03847, %27 ], [ %.03847, %30 ], [ %.03847, %33 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %45, %12
  %47 = phi i32 [ 5, %12 ], [ %46, %45 ]
  %.038.lcssa = phi i64 [ 0, %12 ], [ %.1, %45 ]
  store i32 %47, ptr %3, align 4, !tbaa !11
  %48 = tail call ptr @alloc_mb_mgr(i64 noundef %.038.lcssa) #5
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %54

50:                                               ; preds = %._crit_edge
  %51 = tail call i32 @imb_get_errno(ptr noundef null) #5
  %52 = tail call ptr @imb_get_strerror(i32 noundef %51) #5
  %53 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %52)
  br label %84

54:                                               ; preds = %._crit_edge
  switch i32 %47, label %59 [
    i32 1, label %55
    i32 2, label %56
    i32 3, label %57
    i32 4, label %58
  ]

55:                                               ; preds = %54
  tail call void @init_mb_mgr_sse(ptr noundef nonnull %48) #5
  br label %60

56:                                               ; preds = %54
  tail call void @init_mb_mgr_avx2(ptr noundef nonnull %48) #5
  br label %60

57:                                               ; preds = %54
  tail call void @init_mb_mgr_avx512(ptr noundef nonnull %48) #5
  br label %60

58:                                               ; preds = %54
  tail call void @init_mb_mgr_avx10(ptr noundef nonnull %48) #5
  br label %60

59:                                               ; preds = %54
  call void @init_mb_mgr_auto(ptr noundef nonnull %48, ptr noundef nonnull %3) #5
  br label %60

60:                                               ; preds = %59, %58, %57, %56, %55
  %61 = getelementptr inbounds i8, ptr %48, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !13
  %63 = and i64 %62, 524288
  %.not = icmp eq i64 %63, 0
  br i1 %.not, label %68, label %64

64:                                               ; preds = %60
  %65 = and i64 %62, 1048576
  %.not42 = icmp eq i64 %65, 0
  %66 = select i1 %.not42, ptr @.str.15, ptr @.str.14
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef nonnull %66)
  br label %70

68:                                               ; preds = %60
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  br label %70

70:                                               ; preds = %68, %64
  %71 = call i32 @imb_get_errno(ptr noundef nonnull %48) #5
  %.not43 = icmp eq i32 %71, 0
  br i1 %.not43, label %76, label %72

72:                                               ; preds = %70
  %73 = call i32 @imb_get_errno(ptr noundef nonnull %48) #5
  %74 = call ptr @imb_get_strerror(i32 noundef %73) #5
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %74)
  call void @free_mb_mgr(ptr noundef nonnull %48) #5
  br label %84

76:                                               ; preds = %70
  %77 = call i32 @test_all(ptr noundef nonnull %48)
  %.not44 = icmp eq i32 %77, 0
  br i1 %.not44, label %78, label %80

78:                                               ; preds = %76
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  call void @free_mb_mgr(ptr noundef nonnull %48) #5
  br label %84

80:                                               ; preds = %76
  %81 = load i32, ptr @total_run_vectors, align 4, !tbaa !11
  %82 = load i32, ptr @total_skip_vectors, align 4, !tbaa !11
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %81, i32 noundef %82)
  call void @free_mb_mgr(ptr noundef nonnull %48) #5
  br label %84

84:                                               ; preds = %80, %78, %72, %50, %22
  %.039 = phi i32 [ 0, %22 ], [ 1, %50 ], [ 1, %72 ], [ 0, %80 ], [ 1, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  ret i32 %.039
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i32 @imb_get_version() local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare ptr @imb_get_version_str() local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) local_unnamed_addr #0

declare ptr @alloc_mb_mgr(i64 noundef) local_unnamed_addr #2

declare ptr @imb_get_strerror(i32 noundef) local_unnamed_addr #2

declare i32 @imb_get_errno(ptr noundef) local_unnamed_addr #2

declare void @init_mb_mgr_sse(ptr noundef) local_unnamed_addr #2

declare void @init_mb_mgr_avx2(ptr noundef) local_unnamed_addr #2

declare void @init_mb_mgr_avx512(ptr noundef) local_unnamed_addr #2

declare void @init_mb_mgr_avx10(ptr noundef) local_unnamed_addr #2

declare void @init_mb_mgr_auto(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @free_mb_mgr(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @test_all(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"IMB_MGR", !15, i64 0, !15, i64 8, !7, i64 16, !7, i64 48, !7, i64 55, !12, i64 56, !12, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !12, i64 1104, !12, i64 1108, !7, i64 1112, !6, i64 56408, !6, i64 56416, !6, i64 56424, !6, i64 56432, !6, i64 56440, !6, i64 56448, !6, i64 56456, !6, i64 56464, !6, i64 56472, !6, i64 56480, !6, i64 56488, !6, i64 56496, !6, i64 56504, !6, i64 56512, !6, i64 56520, !6, i64 56528, !6, i64 56536, !6, i64 56544, !6, i64 56552, !6, i64 56560, !6, i64 56568, !6, i64 56576, !6, i64 56584, !6, i64 56592, !6, i64 56600, !6, i64 56608, !6, i64 56616, !6, i64 56624, !6, i64 56632, !6, i64 56640, !6, i64 56648, !6, i64 56656, !6, i64 56664, !6, i64 56672, !6, i64 56680, !6, i64 56688, !6, i64 56696, !6, i64 56704, !6, i64 56712, !6, i64 56720, !6, i64 56728, !6, i64 56736}
!15 = !{!"long", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass