; LLVM IR from square/subzero :: core/external-crypto/modes/ltc (ltc_eax_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.anon = type { i32, i32, i32, i32, [128 x i8], [128 x i8], [128 x i8], [128 x i8], [128 x i8], [128 x i8] }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@tests = external hidden constant <{ { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, [128 x i8], [128 x i8], [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, [128 x i8], [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, [128 x i8], <{ [16 x i8], [112 x i8] }>, [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [32 x i8], [96 x i8] }>, <{ [32 x i8], [96 x i8] }>, <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [15 x i8], [113 x i8] }>, <{ [14 x i8], [114 x i8] }>, <{ [29 x i8], [99 x i8] }>, <{ [29 x i8], [99 x i8] }>, <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [8 x i8], [120 x i8] }>, [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [8 x i8], [120 x i8] }>, <{ i8, i8, [126 x i8] }>, <{ i8, i8, [126 x i8] }>, <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [8 x i8], [120 x i8] }>, <{ i8, i8, i8, i8, i8, [123 x i8] }>, <{ i8, i8, i8, i8, i8, [123 x i8] }>, <{ [16 x i8], [112 x i8] }> } }>, align 16

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

10:                                               ; preds = %253, %0
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 8
  br i1 %12, label %13, label %256

13:                                               ; preds = %10
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %15
  %17 = getelementptr inbounds %struct.anon, ptr %16, i32 0, i32 4
  %18 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %20
  %22 = getelementptr inbounds %struct.anon, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 16, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %26
  %28 = getelementptr inbounds %struct.anon, ptr %27, i32 0, i32 5
  %29 = getelementptr inbounds [128 x i8], ptr %28, i64 0, i64 0
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.anon, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.anon, ptr %38, i32 0, i32 6
  %40 = getelementptr inbounds [128 x i8], ptr %39, i64 0, i64 0
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %42
  %44 = getelementptr inbounds %struct.anon, ptr %43, i32 0, i32 2
  %45 = load i32, ptr %44, align 8, !tbaa !12
  %46 = sext i32 %45 to i64
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.anon, ptr %49, i32 0, i32 7
  %51 = getelementptr inbounds [128 x i8], ptr %50, i64 0, i64 0
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.anon, ptr %54, i32 0, i32 3
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %59 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %60 = call i32 @eax_memory(ptr noundef %18, i64 noundef %24, ptr noundef %29, i64 noundef %35, ptr noundef %40, i64 noundef %46, ptr noundef %51, i64 noundef %57, ptr noundef %58, ptr noundef %59, i64 noundef 16, i32 noundef 0, ptr noundef null)
  store i32 %60, ptr %2, align 4, !tbaa !5
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %13
  %63 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %63, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %257

64:                                               ; preds = %13
  %65 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.anon, ptr %68, i32 0, i32 8
  %70 = getelementptr inbounds [128 x i8], ptr %69, i64 0, i64 0
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.anon, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !13
  %76 = sext i32 %75 to i64
  %77 = call i32 @memcmp(ptr noundef %65, ptr noundef %70, i64 noundef %76) #5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %88, label %79

79:                                               ; preds = %64
  %80 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.anon, ptr %83, i32 0, i32 9
  %85 = getelementptr inbounds [128 x i8], ptr %84, i64 0, i64 0
  %86 = call i32 @memcmp(ptr noundef %80, ptr noundef %85, i64 noundef 16) #5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %148

88:                                               ; preds = %79, %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i64 0, ptr %8, align 8, !tbaa !14
  br label %90

90:                                               ; preds = %123, %88
  %91 = load i64, ptr %8, align 8, !tbaa !14
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %93
  %95 = getelementptr inbounds %struct.anon, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = sext i32 %96 to i64
  %98 = icmp ult i64 %91, %97
  br i1 %98, label %99, label %124

99:                                               ; preds = %90
  %100 = load i64, ptr %8, align 8, !tbaa !14
  %101 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !16
  %103 = zext i8 %102 to i32
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %103)
  %105 = load i64, ptr %8, align 8, !tbaa !14
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.anon, ptr %108, i32 0, i32 3
  %110 = load i32, ptr %109, align 4, !tbaa !13
  %111 = sub nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = icmp ult i64 %105, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %99
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %116

116:                                              ; preds = %114, %99
  %117 = load i64, ptr %8, align 8, !tbaa !14
  %118 = add i64 %117, 1
  store i64 %118, ptr %8, align 8, !tbaa !14
  %119 = urem i64 %118, 8
  %120 = icmp ne i64 %119, 0
  br i1 %120, label %123, label %121

121:                                              ; preds = %116
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %123

123:                                              ; preds = %121, %116
  br label %90, !llvm.loop !17

124:                                              ; preds = %90
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i64 0, ptr %8, align 8, !tbaa !14
  br label %126

126:                                              ; preds = %146, %124
  %127 = load i64, ptr %8, align 8, !tbaa !14
  %128 = icmp ult i64 %127, 16
  br i1 %128, label %129, label %147

129:                                              ; preds = %126
  %130 = load i64, ptr %8, align 8, !tbaa !14
  %131 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 %130
  %132 = load i8, ptr %131, align 1, !tbaa !16
  %133 = zext i8 %132 to i32
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %133)
  %135 = load i64, ptr %8, align 8, !tbaa !14
  %136 = icmp ult i64 %135, 15
  br i1 %136, label %137, label %139

137:                                              ; preds = %129
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %139

139:                                              ; preds = %137, %129
  %140 = load i64, ptr %8, align 8, !tbaa !14
  %141 = add i64 %140, 1
  store i64 %141, ptr %8, align 8, !tbaa !14
  %142 = urem i64 %141, 8
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %146, label %144

144:                                              ; preds = %139
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %146

146:                                              ; preds = %144, %139
  br label %126, !llvm.loop !19

147:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %148

148:                                              ; preds = %147, %79
  %149 = load i32, ptr %3, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %150
  %152 = getelementptr inbounds %struct.anon, ptr %151, i32 0, i32 4
  %153 = getelementptr inbounds [128 x i8], ptr %152, i64 0, i64 0
  %154 = load i32, ptr %3, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %155
  %157 = getelementptr inbounds %struct.anon, ptr %156, i32 0, i32 0
  %158 = load i32, ptr %157, align 16, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = load i32, ptr %3, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %161
  %163 = getelementptr inbounds %struct.anon, ptr %162, i32 0, i32 5
  %164 = getelementptr inbounds [128 x i8], ptr %163, i64 0, i64 0
  %165 = load i32, ptr %3, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %166
  %168 = getelementptr inbounds %struct.anon, ptr %167, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !11
  %170 = sext i32 %169 to i64
  %171 = load i32, ptr %3, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %172
  %174 = getelementptr inbounds %struct.anon, ptr %173, i32 0, i32 6
  %175 = getelementptr inbounds [128 x i8], ptr %174, i64 0, i64 0
  %176 = load i32, ptr %3, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %177
  %179 = getelementptr inbounds %struct.anon, ptr %178, i32 0, i32 2
  %180 = load i32, ptr %179, align 8, !tbaa !12
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %183 = load i32, ptr %3, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %184
  %186 = getelementptr inbounds %struct.anon, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !13
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %190 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %191 = call i32 @eax_memory(ptr noundef %153, i64 noundef %159, ptr noundef %164, i64 noundef %170, ptr noundef %175, i64 noundef %181, ptr noundef %182, i64 noundef %188, ptr noundef %189, ptr noundef %190, i64 noundef 16, i32 noundef 1, ptr noundef %4)
  store i32 %191, ptr %2, align 4, !tbaa !5
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %195

193:                                              ; preds = %148
  %194 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %194, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %257

195:                                              ; preds = %148
  %196 = load i32, ptr %4, align 4, !tbaa !5
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %213, label %198

198:                                              ; preds = %195
  %199 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 0
  %200 = load i32, ptr %3, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %201
  %203 = getelementptr inbounds %struct.anon, ptr %202, i32 0, i32 7
  %204 = getelementptr inbounds [128 x i8], ptr %203, i64 0, i64 0
  %205 = load i32, ptr %3, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %206
  %208 = getelementptr inbounds %struct.anon, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 4, !tbaa !13
  %210 = sext i32 %209 to i64
  %211 = call i32 @memcmp(ptr noundef %199, ptr noundef %204, i64 noundef %210) #5
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %252

213:                                              ; preds = %198, %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %214 = load i32, ptr %4, align 4, !tbaa !5
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %214)
  store i64 0, ptr %9, align 8, !tbaa !14
  br label %216

216:                                              ; preds = %249, %213
  %217 = load i64, ptr %9, align 8, !tbaa !14
  %218 = load i32, ptr %3, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %219
  %221 = getelementptr inbounds %struct.anon, ptr %220, i32 0, i32 3
  %222 = load i32, ptr %221, align 4, !tbaa !13
  %223 = sext i32 %222 to i64
  %224 = icmp ult i64 %217, %223
  br i1 %224, label %225, label %250

225:                                              ; preds = %216
  %226 = load i64, ptr %9, align 8, !tbaa !14
  %227 = getelementptr inbounds [128 x i8], ptr %5, i64 0, i64 %226
  %228 = load i8, ptr %227, align 1, !tbaa !16
  %229 = zext i8 %228 to i32
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %229)
  %231 = load i64, ptr %9, align 8, !tbaa !14
  %232 = load i32, ptr %3, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %233
  %235 = getelementptr inbounds %struct.anon, ptr %234, i32 0, i32 3
  %236 = load i32, ptr %235, align 4, !tbaa !13
  %237 = sub nsw i32 %236, 1
  %238 = sext i32 %237 to i64
  %239 = icmp ult i64 %231, %238
  br i1 %239, label %240, label %242

240:                                              ; preds = %225
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %242

242:                                              ; preds = %240, %225
  %243 = load i64, ptr %9, align 8, !tbaa !14
  %244 = add i64 %243, 1
  store i64 %244, ptr %9, align 8, !tbaa !14
  %245 = urem i64 %244, 8
  %246 = icmp ne i64 %245, 0
  br i1 %246, label %249, label %247

247:                                              ; preds = %242
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %249

249:                                              ; preds = %247, %242
  br label %216, !llvm.loop !20

250:                                              ; preds = %216
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %257

252:                                              ; preds = %198
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %3, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %3, align 4, !tbaa !5
  br label %10, !llvm.loop !21

256:                                              ; preds = %10
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %257

257:                                              ; preds = %256, %250, %193, %62
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %258 = load i32, ptr %1, align 4
  ret i32 %258
}

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

declare i32 @eax_memory(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

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

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

; 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, !6, i64 0}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16, !7, i64 144, !7, i64 272, !7, i64 400, !7, i64 528, !7, i64 656}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 12}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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.anon = type { i32, i32, i32, i32, [128 x i8], [128 x i8], [128 x i8], [128 x i8], [128 x i8], [128 x i8] }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@tests = external hidden constant <{ { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, [128 x i8], [128 x i8], [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, [128 x i8], [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, [128 x i8], <{ [16 x i8], [112 x i8] }>, [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [32 x i8], [96 x i8] }>, <{ [32 x i8], [96 x i8] }>, <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [15 x i8], [113 x i8] }>, <{ [14 x i8], [114 x i8] }>, <{ [29 x i8], [99 x i8] }>, <{ [29 x i8], [99 x i8] }>, <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [8 x i8], [120 x i8] }>, [128 x i8], [128 x i8], <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [8 x i8], [120 x i8] }>, <{ i8, i8, [126 x i8] }>, <{ i8, i8, [126 x i8] }>, <{ [16 x i8], [112 x i8] }> }, { i32, i32, i32, i32, <{ [16 x i8], [112 x i8] }>, <{ [16 x i8], [112 x i8] }>, <{ [8 x i8], [120 x i8] }>, <{ i8, i8, i8, i8, i8, [123 x i8] }>, <{ i8, i8, i8, i8, i8, [123 x i8] }>, <{ [16 x i8], [112 x i8] }> } }>, align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @eax_test() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [128 x i8], align 16
  %3 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #5
  br label %5

4:                                                ; preds = %63
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond75.not, label %.loopexit58, label %5, !llvm.loop !5

5:                                                ; preds = %0, %4
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %4 ]
  %6 = getelementptr inbounds [8 x %struct.anon], ptr @tests, i64 0, i64 %indvars.iv
  %7 = getelementptr inbounds i8, ptr %6, i64 16
  %8 = load i32, ptr %6, align 16, !tbaa !7
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds i8, ptr %6, i64 144
  %11 = getelementptr inbounds i8, ptr %6, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !12
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds i8, ptr %6, i64 272
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds i8, ptr %6, i64 400
  %19 = getelementptr inbounds i8, ptr %6, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !14
  %21 = sext i32 %20 to i64
  %22 = call i32 @eax_memory(ptr noundef nonnull %7, i64 noundef %9, ptr noundef nonnull %10, i64 noundef %13, ptr noundef nonnull %14, i64 noundef %17, ptr noundef nonnull %18, i64 noundef %21, ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 16, i32 noundef 0, ptr noundef null) #5
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %23, label %.loopexit58

23:                                               ; preds = %5
  %24 = getelementptr inbounds i8, ptr %6, i64 528
  %bcmp = call i32 @bcmp(ptr nonnull %2, ptr nonnull %24, i64 %21)
  %.not46 = icmp eq i32 %bcmp, 0
  br i1 %.not46, label %25, label %27

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %6, i64 656
  %bcmp47 = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) %3, ptr noundef nonnull dereferenceable(16) %26, i64 16)
  %.not48 = icmp eq i32 %bcmp47, 0
  br i1 %.not48, label %.loopexit, label %27

27:                                               ; preds = %25, %23
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %.not68 = icmp eq i32 %20, 0
  br i1 %.not68, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %29 = add nsw i32 %20, -1
  %30 = sext i32 %29 to i64
  br label %31

31:                                               ; preds = %.lr.ph, %44
  %.04161 = phi i64 [ 0, %.lr.ph ], [ %40, %44 ]
  %32 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 %.04161
  %33 = load i8, ptr %32, align 1, !tbaa !15
  %34 = zext i8 %33 to i32
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %34)
  %36 = icmp ult i64 %.04161, %30
  br i1 %36, label %37, label %39

37:                                               ; preds = %31
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %39

39:                                               ; preds = %37, %31
  %40 = add nuw i64 %.04161, 1
  %41 = and i64 %40, 7
  %.not56 = icmp eq i64 %41, 0
  br i1 %.not56, label %42, label %44

42:                                               ; preds = %39
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %44

44:                                               ; preds = %42, %39
  %exitcond.not = icmp eq i64 %40, %21
  br i1 %exitcond.not, label %._crit_edge, label %31, !llvm.loop !16

._crit_edge:                                      ; preds = %44, %27
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %46

46:                                               ; preds = %._crit_edge, %57
  %.162 = phi i64 [ 0, %._crit_edge ], [ %58, %57 ]
  %47 = getelementptr inbounds [128 x i8], ptr %3, i64 0, i64 %.162
  %48 = load i8, ptr %47, align 1, !tbaa !15
  %49 = zext i8 %48 to i32
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %49)
  %.not54 = icmp eq i64 %.162, 15
  br i1 %.not54, label %.thread, label %51

51:                                               ; preds = %46
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %53 = add nuw nsw i64 %.162, 1
  %54 = and i64 %53, 7
  %.not55 = icmp eq i64 %54, 0
  br i1 %.not55, label %.thread, label %57

.thread:                                          ; preds = %46, %51
  %55 = phi i64 [ %53, %51 ], [ 16, %46 ]
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %57

57:                                               ; preds = %.thread, %51
  %58 = phi i64 [ %55, %.thread ], [ %53, %51 ]
  %59 = icmp ult i64 %58, 16
  br i1 %59, label %46, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %57, %25
  %60 = call i32 @eax_memory(ptr noundef nonnull %7, i64 noundef %9, ptr noundef nonnull %10, i64 noundef %13, ptr noundef nonnull %14, i64 noundef %17, ptr noundef nonnull %2, i64 noundef %21, ptr noundef nonnull %2, ptr noundef nonnull %3, i64 noundef 16, i32 noundef 1, ptr noundef nonnull %1) #5
  %.not49 = icmp eq i32 %60, 0
  br i1 %.not49, label %61, label %.loopexit58

61:                                               ; preds = %.loopexit
  %62 = load i32, ptr %1, align 4, !tbaa !18
  %.not50 = icmp eq i32 %62, 0
  br i1 %.not50, label %63, label %64

63:                                               ; preds = %61
  %bcmp51 = call i32 @bcmp(ptr nonnull %2, ptr nonnull %18, i64 %21)
  %.not52 = icmp eq i32 %bcmp51, 0
  br i1 %.not52, label %4, label %64

64:                                               ; preds = %63, %61
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %62)
  %.not69 = icmp eq i32 %20, 0
  br i1 %.not69, label %._crit_edge67, label %.lr.ph66

.lr.ph66:                                         ; preds = %64
  %66 = add nsw i32 %20, -1
  %67 = sext i32 %66 to i64
  br label %68

68:                                               ; preds = %.lr.ph66, %81
  %.064 = phi i64 [ 0, %.lr.ph66 ], [ %77, %81 ]
  %69 = getelementptr inbounds [128 x i8], ptr %2, i64 0, i64 %.064
  %70 = load i8, ptr %69, align 1, !tbaa !15
  %71 = zext i8 %70 to i32
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %71)
  %73 = icmp ult i64 %.064, %67
  br i1 %73, label %74, label %76

74:                                               ; preds = %68
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %76

76:                                               ; preds = %74, %68
  %77 = add nuw i64 %.064, 1
  %78 = and i64 %77, 7
  %.not53 = icmp eq i64 %78, 0
  br i1 %.not53, label %79, label %81

79:                                               ; preds = %76
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %81

81:                                               ; preds = %79, %76
  %exitcond76.not = icmp eq i64 %77, %21
  br i1 %exitcond76.not, label %._crit_edge67, label %68, !llvm.loop !19

._crit_edge67:                                    ; preds = %81, %64
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.loopexit58

.loopexit58:                                      ; preds = %4, %.loopexit, %5, %._crit_edge67
  %.043 = phi i32 [ -1, %._crit_edge67 ], [ 0, %4 ], [ %60, %.loopexit ], [ %22, %5 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 %.043
}

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

declare i32 @eax_memory(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, i32 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nofree nounwind willreturn memory(argmem: read) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !10, i64 16, !10, i64 144, !10, i64 272, !10, i64 400, !10, i64 528, !10, i64 656}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!8, !9, i64 4}
!13 = !{!8, !9, i64 8}
!14 = !{!8, !9, i64 12}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = !{!9, !9, i64 0}
!19 = distinct !{!19, !6}


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