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

; 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.mac_test = type { i64, i64, i64, ptr, ptr, ptr, i32, i64, ptr, i64 }
%struct.test_suite_context = type { i32, i32, ptr }
%struct.gcm_key_data = type { [240 x i8], %union.anon }
%union.anon = type { %struct.anon.1 }
%struct.anon.1 = type { [1024 x i8] }
%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.3, %union.anon.4, %union.anon.5, %union.anon.6, i64, %union.anon.7, ptr, i64, ptr, i64, %union.anon.8, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, %union.anon.9, [2 x i32], i32 }
%union.anon.3 = type { ptr }
%union.anon.4 = type { ptr }
%union.anon.5 = type { i64 }
%union.anon.6 = type { i64 }
%union.anon.7 = type { i64 }
%union.anon.8 = type { %struct._AES_XCBC_specific_fields }
%struct._AES_XCBC_specific_fields = type { ptr, ptr, ptr }
%union.anon.9 = type { %struct._CBCS_specific_fields }
%struct._CBCS_specific_fields = type { ptr }
%struct._GHASH_specific_fields = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@ghash_test_json = external constant [0 x %struct.mac_test], align 8
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @ghash_test(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.test_suite_context, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.gcm_key_data, align 1
  %8 = alloca [16 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @test_suite_start(ptr noundef %4, ptr noundef @.str)
  br label %11

11:                                               ; preds = %156, %1
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 2
  br i1 %13, label %14, label %157

14:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr @ghash_test_json, ptr %6, align 8, !tbaa !5
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 0
  %17 = zext i1 %16 to i64
  %18 = select i1 %16, ptr @.str.2, ptr @.str.3
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %18)
  br label %20

20:                                               ; preds = %150, %14
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.mac_test, ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %151

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1264, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 1 %7, i8 0, i64 1264, i1 false)
  %26 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 16, i1 false)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.IMB_MGR, ptr %27, i32 0, i32 101
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mac_test, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  call void %29(ptr noundef %32, ptr noundef %7)
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %51, label %35

35:                                               ; preds = %25
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.IMB_MGR, ptr %36, i32 0, i32 84
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.mac_test, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mac_test, ptr %42, i32 0, i32 7
  %44 = load i64, ptr %43, align 8, !tbaa !18
  %45 = udiv i64 %44, 8
  %46 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.mac_test, ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !19
  %50 = udiv i64 %49, 8
  call void %38(ptr noundef %7, ptr noundef %41, i64 noundef %45, ptr noundef %46, i64 noundef %50)
  br label %132

51:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.IMB_MGR, ptr %52, i32 0, i32 7
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = call ptr %54(ptr noundef %55)
  store ptr %56, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %63, label %59

59:                                               ; preds = %51
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.4) #5
  call void @test_suite_update(ptr noundef %4, i32 noundef 0, i32 noundef 1)
  %62 = call i32 @test_suite_end(ptr noundef %4)
  store i32 %62, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %129

63:                                               ; preds = %51
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.IMB_JOB, ptr %64, i32 0, i32 15
  store i32 3, ptr %65, align 4, !tbaa !21
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.IMB_JOB, ptr %66, i32 0, i32 17
  store i32 46, ptr %67, align 4, !tbaa !23
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.IMB_JOB, ptr %68, i32 0, i32 13
  %70 = getelementptr inbounds %struct._GHASH_specific_fields, ptr %69, i32 0, i32 0
  store ptr %7, ptr %70, align 8, !tbaa !24
  %71 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.IMB_JOB, ptr %72, i32 0, i32 13
  %74 = getelementptr inbounds %struct._GHASH_specific_fields, ptr %73, i32 0, i32 1
  store ptr %71, ptr %74, align 8, !tbaa !24
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.mac_test, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.IMB_JOB, ptr %78, i32 0, i32 3
  store ptr %77, ptr %79, align 8, !tbaa !24
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.mac_test, ptr %80, i32 0, i32 7
  %82 = load i64, ptr %81, align 8, !tbaa !18
  %83 = udiv i64 %82, 8
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.IMB_JOB, ptr %84, i32 0, i32 8
  store i64 %83, ptr %85, align 8, !tbaa !24
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.IMB_JOB, ptr %86, i32 0, i32 7
  store i64 0, ptr %87, align 8, !tbaa !25
  %88 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.IMB_JOB, ptr %89, i32 0, i32 11
  store ptr %88, ptr %90, align 8, !tbaa !26
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mac_test, ptr %91, i32 0, i32 1
  %93 = load i64, ptr %92, align 8, !tbaa !19
  %94 = udiv i64 %93, 8
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.IMB_JOB, ptr %95, i32 0, i32 12
  store i64 %94, ptr %96, align 8, !tbaa !27
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.IMB_MGR, ptr %97, i32 0, i32 8
  %99 = load ptr, ptr %98, align 8, !tbaa !28
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = call ptr %99(ptr noundef %100)
  store ptr %101, ptr %9, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %110

104:                                              ; preds = %63
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.IMB_MGR, ptr %105, i32 0, i32 11
  %107 = load ptr, ptr %106, align 8, !tbaa !29
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call ptr %107(ptr noundef %108)
  store ptr %109, ptr %9, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %104, %63
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.5) #5
  br label %128

116:                                              ; preds = %110
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.IMB_JOB, ptr %117, i32 0, i32 14
  %119 = load i32, ptr %118, align 8, !tbaa !30
  %120 = icmp ne i32 %119, 3
  br i1 %120, label %121, label %127

121:                                              ; preds = %116
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.IMB_JOB, ptr %123, i32 0, i32 14
  %125 = load i32, ptr %124, align 8, !tbaa !30
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.6, i32 noundef %125) #5
  br label %127

127:                                              ; preds = %121, %116
  br label %128

128:                                              ; preds = %127, %113
  store i32 0, ptr %10, align 4
  br label %129

129:                                              ; preds = %128, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %130 = load i32, ptr %10, align 4
  switch i32 %130, label %148 [
    i32 0, label %131
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131, %35
  %133 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.mac_test, ptr %134, i32 0, i32 5
  %136 = load ptr, ptr %135, align 8, !tbaa !31
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.mac_test, ptr %137, i32 0, i32 1
  %139 = load i64, ptr %138, align 8, !tbaa !19
  %140 = udiv i64 %139, 8
  %141 = call i32 @check_data(ptr noundef %133, ptr noundef %136, i64 noundef %140, ptr noundef @.str.7)
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %132
  call void @test_suite_update(ptr noundef %4, i32 noundef 0, i32 noundef 1)
  br label %145

144:                                              ; preds = %132
  call void @test_suite_update(ptr noundef %4, i32 noundef 1, i32 noundef 0)
  br label %145

145:                                              ; preds = %144, %143
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.mac_test, ptr %146, i32 1
  store ptr %147, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %10, align 4
  br label %148

148:                                              ; preds = %145, %129
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1264, ptr %7) #5
  %149 = load i32, ptr %10, align 4
  switch i32 %149, label %154 [
    i32 0, label %150
  ]

150:                                              ; preds = %148
  br label %20, !llvm.loop !32

151:                                              ; preds = %20
  %152 = load i32, ptr %5, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %10, align 4
  br label %154

154:                                              ; preds = %151, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %155 = load i32, ptr %10, align 4
  switch i32 %155, label %159 [
    i32 0, label %156
  ]

156:                                              ; preds = %154
  br label %11, !llvm.loop !34

157:                                              ; preds = %11
  %158 = call i32 @test_suite_end(ptr noundef %4)
  store i32 %158, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %159

159:                                              ; preds = %157, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  %160 = load i32, ptr %2, align 4
  ret i32 %160
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare void @test_suite_update(ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @test_suite_end(ptr noundef) #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"mac_test", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !13, i64 56, !6, i64 64, !13, i64 72}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 816}
!15 = !{!"IMB_MGR", !13, i64 0, !13, i64 8, !7, i64 16, !7, i64 48, !7, i64 55, !10, i64 56, !10, 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, !10, i64 1104, !10, 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}
!16 = !{!12, !6, i64 24}
!17 = !{!15, !6, i64 680}
!18 = !{!12, !13, i64 56}
!19 = !{!12, !13, i64 8}
!20 = !{!15, !6, i64 64}
!21 = !{!22, !10, i64 132}
!22 = !{!"IMB_JOB", !6, i64 0, !6, i64 8, !13, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !13, i64 56, !7, i64 64, !6, i64 72, !13, i64 80, !6, i64 88, !13, i64 96, !7, i64 104, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !10, i64 184, !7, i64 192, !7, i64 200, !10, i64 208}
!23 = !{!22, !10, i64 140}
!24 = !{!7, !7, i64 0}
!25 = !{!22, !13, i64 56}
!26 = !{!22, !6, i64 88}
!27 = !{!22, !13, i64 96}
!28 = !{!15, !6, i64 72}
!29 = !{!15, !6, i64 96}
!30 = !{!22, !10, i64 128}
!31 = !{!12, !6, i64 40}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}


; 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"

%struct.mac_test = type { i64, i64, i64, ptr, ptr, ptr, i32, i64, ptr, i64 }
%struct.test_suite_context = type { i32, i32, ptr }
%struct.gcm_key_data = type { [240 x i8], %union.anon }
%union.anon = type { %struct.anon.1 }
%struct.anon.1 = type { [1024 x i8] }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@ghash_test_json = external local_unnamed_addr constant [0 x %struct.mac_test], align 8
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @ghash_test(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.test_suite_context, align 8
  %3 = alloca %struct.gcm_key_data, align 1
  %4 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @test_suite_start(ptr noundef nonnull %2, ptr noundef nonnull @.str) #5
  %5 = getelementptr inbounds i8, ptr %0, i64 816
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  %9 = getelementptr inbounds i8, ptr %0, i64 680
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @ghash_test_json, i64 32), align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.3)
  br i1 %11, label %.split.us.preheader, label %.thread59.us

.split.us.preheader:                              ; preds = %1
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2)
  br label %.split72.us

.thread59.us:                                     ; preds = %1, %30
  %14 = phi ptr [ %33, %30 ], [ %10, %1 ]
  %.04369.us = phi ptr [ %31, %30 ], [ @ghash_test_json, %1 ]
  call void @llvm.lifetime.start.p0(i64 1264, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1264) %3, i8 0, i64 1264, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %15 = load ptr, ptr %5, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %.04369.us, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  call void %15(ptr noundef %17, ptr noundef nonnull %3) #5
  %18 = load ptr, ptr %9, align 8, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %.04369.us, i64 56
  %20 = load i64, ptr %19, align 8, !tbaa !16
  %21 = lshr i64 %20, 3
  %22 = getelementptr inbounds i8, ptr %.04369.us, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !17
  %24 = lshr i64 %23, 3
  call void %18(ptr noundef nonnull %3, ptr noundef nonnull %14, i64 noundef %21, ptr noundef nonnull %4, i64 noundef %24) #5
  %25 = getelementptr inbounds i8, ptr %.04369.us, i64 40
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = call i32 @check_data(ptr noundef nonnull %4, ptr noundef %26, i64 noundef %24, ptr noundef nonnull @.str.7)
  %.not56.us = icmp eq i32 %27, 0
  br i1 %.not56.us, label %29, label %28

28:                                               ; preds = %.thread59.us
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #5
  br label %30

29:                                               ; preds = %.thread59.us
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #5
  br label %30

30:                                               ; preds = %29, %28
  %31 = getelementptr inbounds i8, ptr %.04369.us, i64 80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1264, ptr nonnull %3) #5
  %32 = getelementptr inbounds i8, ptr %.04369.us, i64 112
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %.not53.us = icmp eq ptr %33, null
  br i1 %.not53.us, label %.lr.ph.split.preheader.1, label %.thread59.us, !llvm.loop !19

.thread65:                                        ; preds = %.lr.ph.split.1
  %.pre = load ptr, ptr @stderr, align 8, !tbaa !21
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %.pre, ptr noundef nonnull @.str.4) #6
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #5
  %35 = call i32 @test_suite_end(ptr noundef nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1264, ptr nonnull %3) #5
  br label %84

.lr.ph.split.preheader.1:                         ; preds = %30
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @.str.2)
  br label %.lr.ph.split.1

.lr.ph.split.1:                                   ; preds = %79, %.lr.ph.split.preheader.1
  %37 = phi ptr [ %82, %79 ], [ %10, %.lr.ph.split.preheader.1 ]
  %.04369.1 = phi ptr [ %80, %79 ], [ @ghash_test_json, %.lr.ph.split.preheader.1 ]
  call void @llvm.lifetime.start.p0(i64 1264, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1264) %3, i8 0, i64 1264, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  %38 = load ptr, ptr %5, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %.04369.1, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  call void %38(ptr noundef %40, ptr noundef nonnull %3) #5
  %41 = load ptr, ptr %6, align 8, !tbaa !22
  %42 = call ptr %41(ptr noundef nonnull %0) #5
  %.not54.not.1 = icmp eq ptr %42, null
  br i1 %.not54.not.1, label %.thread65, label %43

43:                                               ; preds = %.lr.ph.split.1
  %44 = getelementptr inbounds i8, ptr %42, i64 132
  store i32 3, ptr %44, align 4, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %42, i64 140
  store i32 46, ptr %45, align 4, !tbaa !25
  %46 = getelementptr inbounds i8, ptr %42, i64 104
  store ptr %3, ptr %46, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %42, i64 112
  store ptr %4, ptr %47, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %42, i64 24
  store ptr %37, ptr %48, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %.04369.1, i64 56
  %50 = load i64, ptr %49, align 8, !tbaa !16
  %51 = lshr i64 %50, 3
  %52 = getelementptr inbounds i8, ptr %42, i64 64
  store i64 %51, ptr %52, align 8, !tbaa !26
  %53 = getelementptr inbounds i8, ptr %42, i64 56
  store i64 0, ptr %53, align 8, !tbaa !27
  %54 = getelementptr inbounds i8, ptr %42, i64 88
  store ptr %4, ptr %54, align 8, !tbaa !28
  %55 = getelementptr inbounds i8, ptr %.04369.1, i64 8
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = lshr i64 %56, 3
  %58 = getelementptr inbounds i8, ptr %42, i64 96
  store i64 %57, ptr %58, align 8, !tbaa !29
  %59 = load ptr, ptr %7, align 8, !tbaa !30
  %60 = call ptr %59(ptr noundef nonnull %0) #5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %.thread.1

62:                                               ; preds = %43
  %63 = load ptr, ptr %8, align 8, !tbaa !31
  %64 = call ptr %63(ptr noundef nonnull %0) #5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %71, label %.thread.1

.thread.1:                                        ; preds = %62, %43
  %.04258.1 = phi ptr [ %64, %62 ], [ %60, %43 ]
  %66 = getelementptr inbounds i8, ptr %.04258.1, i64 128
  %67 = load i32, ptr %66, align 8, !tbaa !32
  %.not55.1 = icmp eq i32 %67, 3
  br i1 %.not55.1, label %.thread59.1, label %68

68:                                               ; preds = %.thread.1
  %69 = load ptr, ptr @stderr, align 8, !tbaa !21
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.6, i32 noundef %67) #6
  br label %.thread59.1

71:                                               ; preds = %62
  %72 = load ptr, ptr @stderr, align 8, !tbaa !21
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.5) #6
  br label %.thread59.1

.thread59.1:                                      ; preds = %71, %68, %.thread.1
  %74 = getelementptr inbounds i8, ptr %.04369.1, i64 40
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = call i32 @check_data(ptr noundef nonnull %4, ptr noundef %75, i64 noundef %57, ptr noundef nonnull @.str.7)
  %.not56.1 = icmp eq i32 %76, 0
  br i1 %.not56.1, label %78, label %77

77:                                               ; preds = %.thread59.1
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 0, i32 noundef 1) #5
  br label %79

78:                                               ; preds = %.thread59.1
  call void @test_suite_update(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0) #5
  br label %79

79:                                               ; preds = %78, %77
  %80 = getelementptr inbounds i8, ptr %.04369.1, i64 80
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 1264, ptr nonnull %3) #5
  %81 = getelementptr inbounds i8, ptr %.04369.1, i64 112
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %.not53.1 = icmp eq ptr %82, null
  br i1 %.not53.1, label %.split72.us, label %.lr.ph.split.1, !llvm.loop !19

.split72.us:                                      ; preds = %79, %.split.us.preheader
  %83 = call i32 @test_suite_end(ptr noundef nonnull %2) #5
  br label %84

84:                                               ; preds = %.thread65, %.split72.us
  %.6 = phi i32 [ %83, %.split72.us ], [ %35, %.thread65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  ret i32 %.6
}

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

declare void @test_suite_update(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @test_suite_end(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: nounwind uwtable
declare hidden i32 @check_data(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 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, !10, i64 32}
!6 = !{!"mac_test", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !7, i64 56, !10, i64 64, !7, i64 72}
!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 = !{!13, !10, i64 816}
!13 = !{!"IMB_MGR", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 48, !8, i64 55, !11, i64 56, !11, 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, !11, i64 1104, !11, i64 1108, !8, 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}
!14 = !{!6, !10, i64 24}
!15 = !{!13, !10, i64 680}
!16 = !{!6, !7, i64 56}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !10, i64 40}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !10, i64 0}
!22 = !{!13, !10, i64 64}
!23 = !{!24, !11, i64 132}
!24 = !{!"IMB_JOB", !10, i64 0, !10, i64 8, !7, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !7, i64 56, !8, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !7, i64 96, !8, i64 104, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !11, i64 184, !8, i64 192, !8, i64 200, !11, i64 208}
!25 = !{!24, !11, i64 140}
!26 = !{!8, !8, i64 0}
!27 = !{!24, !7, i64 56}
!28 = !{!24, !10, i64 88}
!29 = !{!24, !7, i64 96}
!30 = !{!13, !10, i64 72}
!31 = !{!13, !10, i64 96}
!32 = !{!24, !11, i64 128}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass