; LLVM IR from ROCm/aomp :: test/smoke/nested_par3 (nested_par3)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 6, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 4, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 5, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %85, %0
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %88

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %81, %38
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = icmp ult i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %84

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %77, %44
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = sub nsw i32 %47, 1
  %49 = icmp ult i32 %46, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %80

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %69, %51
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 7
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %72

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %65, %56
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = icmp slt i32 %58, 5
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %68

61:                                               ; preds = %57
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = add nsw i32 %63, %62
  store i32 %64, ptr %11, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %61
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %13, align 4, !tbaa !9
  br label %57, !llvm.loop !11

68:                                               ; preds = %60
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %12, align 4, !tbaa !9
  br label %52, !llvm.loop !13

72:                                               ; preds = %55
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = load i64, ptr %2, align 8, !tbaa !5
  %76 = add nsw i64 %75, %74
  store i64 %76, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %77

77:                                               ; preds = %72
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %10, align 4, !tbaa !9
  br label %45, !llvm.loop !14

80:                                               ; preds = %50
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add i32 %82, 1
  store i32 %83, ptr %9, align 4, !tbaa !9
  br label %39, !llvm.loop !15

84:                                               ; preds = %43
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %7, align 4, !tbaa !9
  br label %33, !llvm.loop !16

88:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %89 = load i32, ptr %4, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 1
  %93 = sext i32 %92 to i64
  %94 = mul nsw i64 %90, %93
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = mul nsw i64 %94, %96
  %98 = mul nsw i64 %97, 10
  %99 = mul nsw i64 %98, 7
  store i64 %99, ptr %14, align 8, !tbaa !5
  %100 = load ptr, ptr @stderr, align 8, !tbaa !17
  %101 = load i64, ptr %2, align 8, !tbaa !5
  %102 = load i64, ptr %14, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str, i64 noundef %101, i64 noundef %102) #3
  %104 = load i64, ptr %2, align 8, !tbaa !5
  %105 = load i64, ptr %14, align 8, !tbaa !5
  %106 = icmp ne i64 %104, %105
  br i1 %106, label %107, label %111

107:                                              ; preds = %88
  %108 = load ptr, ptr @stderr, align 8, !tbaa !17
  %109 = load i64, ptr %2, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.1, i64 noundef %109) #3
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %338

111:                                              ; preds = %88
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %164, %111
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %167

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %160, %117
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %4, align 4, !tbaa !9
  %121 = icmp ult i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %163

123:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %156, %123
  %125 = load i32, ptr %17, align 4, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = sub nsw i32 %126, 1
  %128 = icmp ult i32 %125, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %124
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %159

130:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %148, %130
  %132 = load i32, ptr %19, align 4, !tbaa !9
  %133 = icmp slt i32 %132, 7
  br i1 %133, label %135, label %134

134:                                              ; preds = %131
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %151

135:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %144, %135
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = icmp slt i32 %137, 5
  br i1 %138, label %140, label %139

139:                                              ; preds = %136
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %147

140:                                              ; preds = %136
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = add nsw i32 %142, %141
  store i32 %143, ptr %18, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %140
  %145 = load i32, ptr %20, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %20, align 4, !tbaa !9
  br label %136, !llvm.loop !19

147:                                              ; preds = %139
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %19, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %19, align 4, !tbaa !9
  br label %131, !llvm.loop !20

151:                                              ; preds = %134
  %152 = load i32, ptr %18, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = load i64, ptr %2, align 8, !tbaa !5
  %155 = add nsw i64 %154, %153
  store i64 %155, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %156

156:                                              ; preds = %151
  %157 = load i32, ptr %17, align 4, !tbaa !9
  %158 = add i32 %157, 1
  store i32 %158, ptr %17, align 4, !tbaa !9
  br label %124, !llvm.loop !21

159:                                              ; preds = %129
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = add i32 %161, 1
  store i32 %162, ptr %16, align 4, !tbaa !9
  br label %118, !llvm.loop !22

163:                                              ; preds = %122
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %15, align 4, !tbaa !9
  br label %112, !llvm.loop !23

167:                                              ; preds = %116
  %168 = load i32, ptr %4, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = load i32, ptr %5, align 4, !tbaa !9
  %171 = sub nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = mul nsw i64 %169, %172
  %174 = load i32, ptr %6, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = mul nsw i64 %173, %175
  %177 = mul nsw i64 %176, 10
  %178 = mul nsw i64 %177, 7
  store i64 %178, ptr %14, align 8, !tbaa !5
  %179 = load ptr, ptr @stderr, align 8, !tbaa !17
  %180 = load i64, ptr %2, align 8, !tbaa !5
  %181 = load i64, ptr %14, align 8, !tbaa !5
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str, i64 noundef %180, i64 noundef %181) #3
  %183 = load i64, ptr %2, align 8, !tbaa !5
  %184 = load i64, ptr %14, align 8, !tbaa !5
  %185 = icmp ne i64 %183, %184
  br i1 %185, label %186, label %190

186:                                              ; preds = %167
  %187 = load ptr, ptr @stderr, align 8, !tbaa !17
  %188 = load i64, ptr %2, align 8, !tbaa !5
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.1, i64 noundef %188) #3
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %338

190:                                              ; preds = %167
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %243, %190
  %192 = load i32, ptr %21, align 4, !tbaa !9
  %193 = load i32, ptr %6, align 4, !tbaa !9
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 32, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %246

196:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %239, %196
  %198 = load i32, ptr %22, align 4, !tbaa !9
  %199 = load i32, ptr %4, align 4, !tbaa !9
  %200 = icmp ult i32 %198, %199
  br i1 %200, label %202, label %201

201:                                              ; preds = %197
  store i32 35, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %242

202:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %235, %202
  %204 = load i32, ptr %23, align 4, !tbaa !9
  %205 = load i32, ptr %5, align 4, !tbaa !9
  %206 = sub nsw i32 %205, 1
  %207 = icmp ult i32 %204, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %203
  store i32 38, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %238

209:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %227, %209
  %211 = load i32, ptr %25, align 4, !tbaa !9
  %212 = icmp slt i32 %211, 7
  br i1 %212, label %214, label %213

213:                                              ; preds = %210
  store i32 41, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  br label %230

214:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %223, %214
  %216 = load i32, ptr %26, align 4, !tbaa !9
  %217 = icmp slt i32 %216, 5
  br i1 %217, label %219, label %218

218:                                              ; preds = %215
  store i32 44, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %226

219:                                              ; preds = %215
  %220 = load i32, ptr %26, align 4, !tbaa !9
  %221 = load i32, ptr %24, align 4, !tbaa !9
  %222 = add nsw i32 %221, %220
  store i32 %222, ptr %24, align 4, !tbaa !9
  br label %223

223:                                              ; preds = %219
  %224 = load i32, ptr %26, align 4, !tbaa !9
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %26, align 4, !tbaa !9
  br label %215, !llvm.loop !24

226:                                              ; preds = %218
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %25, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %25, align 4, !tbaa !9
  br label %210, !llvm.loop !25

230:                                              ; preds = %213
  %231 = load i32, ptr %24, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = load i64, ptr %2, align 8, !tbaa !5
  %234 = add nsw i64 %233, %232
  store i64 %234, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  br label %235

235:                                              ; preds = %230
  %236 = load i32, ptr %23, align 4, !tbaa !9
  %237 = add i32 %236, 1
  store i32 %237, ptr %23, align 4, !tbaa !9
  br label %203, !llvm.loop !26

238:                                              ; preds = %208
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %22, align 4, !tbaa !9
  %241 = add i32 %240, 1
  store i32 %241, ptr %22, align 4, !tbaa !9
  br label %197, !llvm.loop !27

242:                                              ; preds = %201
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %21, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %21, align 4, !tbaa !9
  br label %191, !llvm.loop !28

246:                                              ; preds = %195
  %247 = load i32, ptr %4, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = load i32, ptr %5, align 4, !tbaa !9
  %250 = sub nsw i32 %249, 1
  %251 = sext i32 %250 to i64
  %252 = mul nsw i64 %248, %251
  %253 = load i32, ptr %6, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = mul nsw i64 %252, %254
  %256 = mul nsw i64 %255, 10
  %257 = mul nsw i64 %256, 7
  store i64 %257, ptr %14, align 8, !tbaa !5
  %258 = load ptr, ptr @stderr, align 8, !tbaa !17
  %259 = load i64, ptr %2, align 8, !tbaa !5
  %260 = load i64, ptr %14, align 8, !tbaa !5
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str, i64 noundef %259, i64 noundef %260) #3
  %262 = load i64, ptr %2, align 8, !tbaa !5
  %263 = load i64, ptr %14, align 8, !tbaa !5
  %264 = icmp ne i64 %262, %263
  br i1 %264, label %265, label %269

265:                                              ; preds = %246
  %266 = load ptr, ptr @stderr, align 8, !tbaa !17
  %267 = load i64, ptr %2, align 8, !tbaa !5
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.1, i64 noundef %267) #3
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %338

269:                                              ; preds = %246
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %322, %269
  %271 = load i32, ptr %27, align 4, !tbaa !9
  %272 = load i32, ptr %6, align 4, !tbaa !9
  %273 = icmp slt i32 %271, %272
  br i1 %273, label %275, label %274

274:                                              ; preds = %270
  store i32 47, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %325

275:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %318, %275
  %277 = load i32, ptr %28, align 4, !tbaa !9
  %278 = load i32, ptr %4, align 4, !tbaa !9
  %279 = icmp ult i32 %277, %278
  br i1 %279, label %281, label %280

280:                                              ; preds = %276
  store i32 50, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  br label %321

281:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %314, %281
  %283 = load i32, ptr %29, align 4, !tbaa !9
  %284 = load i32, ptr %5, align 4, !tbaa !9
  %285 = sub nsw i32 %284, 1
  %286 = icmp ult i32 %283, %285
  br i1 %286, label %288, label %287

287:                                              ; preds = %282
  store i32 53, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  br label %317

288:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  store i32 0, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %289

289:                                              ; preds = %306, %288
  %290 = load i32, ptr %31, align 4, !tbaa !9
  %291 = icmp slt i32 %290, 7
  br i1 %291, label %293, label %292

292:                                              ; preds = %289
  store i32 56, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  br label %309

293:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %302, %293
  %295 = load i32, ptr %32, align 4, !tbaa !9
  %296 = icmp slt i32 %295, 5
  br i1 %296, label %298, label %297

297:                                              ; preds = %294
  store i32 59, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  br label %305

298:                                              ; preds = %294
  %299 = load i32, ptr %32, align 4, !tbaa !9
  %300 = load i32, ptr %30, align 4, !tbaa !9
  %301 = add nsw i32 %300, %299
  store i32 %301, ptr %30, align 4, !tbaa !9
  br label %302

302:                                              ; preds = %298
  %303 = load i32, ptr %32, align 4, !tbaa !9
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %32, align 4, !tbaa !9
  br label %294, !llvm.loop !29

305:                                              ; preds = %297
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %31, align 4, !tbaa !9
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %31, align 4, !tbaa !9
  br label %289, !llvm.loop !30

309:                                              ; preds = %292
  %310 = load i32, ptr %30, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = load i64, ptr %2, align 8, !tbaa !5
  %313 = add nsw i64 %312, %311
  store i64 %313, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  br label %314

314:                                              ; preds = %309
  %315 = load i32, ptr %29, align 4, !tbaa !9
  %316 = add i32 %315, 1
  store i32 %316, ptr %29, align 4, !tbaa !9
  br label %282, !llvm.loop !31

317:                                              ; preds = %287
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %28, align 4, !tbaa !9
  %320 = add i32 %319, 1
  store i32 %320, ptr %28, align 4, !tbaa !9
  br label %276, !llvm.loop !32

321:                                              ; preds = %280
  br label %322

322:                                              ; preds = %321
  %323 = load i32, ptr %27, align 4, !tbaa !9
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %27, align 4, !tbaa !9
  br label %270, !llvm.loop !33

325:                                              ; preds = %274
  %326 = load ptr, ptr @stderr, align 8, !tbaa !17
  %327 = load i64, ptr %2, align 8, !tbaa !5
  %328 = load i64, ptr %14, align 8, !tbaa !5
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %326, ptr noundef @.str, i64 noundef %327, i64 noundef %328) #3
  %330 = load i64, ptr %2, align 8, !tbaa !5
  %331 = load i64, ptr %14, align 8, !tbaa !5
  %332 = icmp ne i64 %330, %331
  br i1 %332, label %333, label %337

333:                                              ; preds = %325
  %334 = load ptr, ptr @stderr, align 8, !tbaa !17
  %335 = load i64, ptr %2, align 8, !tbaa !5
  %336 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.1, i64 noundef %335) #3
  store i32 1, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %338

337:                                              ; preds = %325
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %338

338:                                              ; preds = %337, %333, %265, %186, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  %339 = load i32, ptr %1, align 4
  ret i32 %339
}

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}
!33 = distinct !{!33, !12}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef range(i32 0, 2) i32 @main() local_unnamed_addr #0 {
  %1 = load ptr, ptr @stderr, align 8, !tbaa !5
  %2 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str, i64 noundef 6300, i64 noundef 6300) #2
  %3 = load ptr, ptr @stderr, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str, i64 noundef 6300, i64 noundef 6300) #2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !5
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str, i64 noundef 6300, i64 noundef 6300) #2
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str, i64 noundef 6300, i64 noundef 6300) #2
  ret i32 0
}

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

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass