; LLVM IR from tangjz/acm-icpc :: lydsy (1541)

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

@t = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@z = external dso_local global i32, align 4
@px = external dso_local global i32, align 4
@py = external dso_local global i32, align 4
@pz = external dso_local global i32, align 4
@lbt = external dso_local global [1001 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %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 i32, align 4
  %15 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %37, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 1001
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %40

20:                                               ; preds = %16
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = and i32 %21, 1
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  br label %32

25:                                               ; preds = %20
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = ashr i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  br label %32

32:                                               ; preds = %25, %24
  %33 = phi i32 [ 0, %24 ], [ %31, %25 ]
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %35
  store i32 %33, ptr %36, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %32
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !9

40:                                               ; preds = %19
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %49

43:                                               ; preds = %40
  %44 = load i32, ptr @t, align 4, !tbaa !5
  %45 = icmp sle i32 1, %44
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = load i32, ptr @t, align 4, !tbaa !5
  %48 = icmp sle i32 %47, 1000
  br label %49

49:                                               ; preds = %46, %43, %40
  %50 = phi i1 [ false, %43 ], [ false, %40 ], [ %48, %46 ]
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  br label %54

52:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 11, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53, %51
  br label %55

55:                                               ; preds = %279, %54
  %56 = load i32, ptr @t, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr @t, align 4, !tbaa !5
  %58 = icmp ne i32 %56, 0
  br i1 %58, label %59, label %284

59:                                               ; preds = %55
  %60 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef @x, ptr noundef @y, ptr noundef @z)
  %61 = icmp eq i32 %60, 3
  br i1 %61, label %62, label %72

62:                                               ; preds = %59
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) @z)
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) %63)
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = icmp sle i32 5, %65
  br i1 %66, label %67, label %72

67:                                               ; preds = %62
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) @z)
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) %68)
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp sle i32 %70, 1000
  br label %72

72:                                               ; preds = %67, %62, %59
  %73 = phi i1 [ false, %62 ], [ false, %59 ], [ %71, %67 ]
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  br label %77

75:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 13, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %78 = load i32, ptr @x, align 4, !tbaa !5
  %79 = load i32, ptr @y, align 4, !tbaa !5
  %80 = load i32, ptr @z, align 4, !tbaa !5
  %81 = call noundef i32 @_Z3lcmii(i32 noundef %79, i32 noundef %80)
  %82 = call noundef i32 @_Z3lcmii(i32 noundef %78, i32 noundef %81)
  %83 = mul nsw i32 2, %82
  store i32 %83, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %84 = load i32, ptr @x, align 4, !tbaa !5
  %85 = load i32, ptr @x, align 4, !tbaa !5
  %86 = add nsw i32 %84, %85
  store i32 %86, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %87 = load i32, ptr @y, align 4, !tbaa !5
  %88 = load i32, ptr @y, align 4, !tbaa !5
  %89 = add nsw i32 %87, %88
  store i32 %89, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %90 = load i32, ptr @z, align 4, !tbaa !5
  %91 = load i32, ptr @z, align 4, !tbaa !5
  %92 = add nsw i32 %90, %91
  store i32 %92, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %93 = load i32, ptr @x, align 4, !tbaa !5
  %94 = load i32, ptr @y, align 4, !tbaa !5
  %95 = add nsw i32 %93, %94
  %96 = load i32, ptr @z, align 4, !tbaa !5
  %97 = add nsw i32 %95, %96
  store i32 %97, ptr %8, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %273, %77
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = icmp sge i32 %99, 1
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  store i32 7, ptr %9, align 4
  br label %276

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %104 = load i32, ptr %103, align 4, !tbaa !5
  store i32 %104, ptr %10, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %267, %102
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = icmp sge i32 %106, 0
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  store i32 10, ptr %9, align 4
  br label %270

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = sub nsw i32 %110, %111
  store i32 %112, ptr %12, align 4, !tbaa !5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %114 = load i32, ptr %113, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  store i32 %114, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = sub nsw i32 %115, %116
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sub nsw i32 %117, %118
  store i32 %119, ptr %13, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %259, %109
  %121 = load i32, ptr %11, align 4, !tbaa !5
  %122 = icmp sge i32 %121, 0
  br i1 %122, label %123, label %127

123:                                              ; preds = %120
  %124 = load i32, ptr %13, align 4, !tbaa !5
  %125 = load i32, ptr @z, align 4, !tbaa !5
  %126 = icmp sle i32 %124, %125
  br label %127

127:                                              ; preds = %123, %120
  %128 = phi i1 [ false, %120 ], [ %126, %123 ]
  br i1 %128, label %130, label %129

129:                                              ; preds = %127
  store i32 13, ptr %9, align 4
  br label %264

130:                                              ; preds = %127
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %132, i32 noundef %133)
  %135 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %131, i32 noundef %134)
  %136 = icmp sgt i32 %135, 1
  br i1 %136, label %137, label %138

137:                                              ; preds = %130
  br label %259

138:                                              ; preds = %130
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %165

141:                                              ; preds = %138
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %165

144:                                              ; preds = %141
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = load i32, ptr @y, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = add nsw i32 %148, %152
  %154 = load i32, ptr @x, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = load i32, ptr %11, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = add nsw i32 %157, %161
  %163 = icmp eq i32 %153, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %144
  br label %259

165:                                              ; preds = %144, %141, %138
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %192

168:                                              ; preds = %165
  %169 = load i32, ptr %13, align 4, !tbaa !5
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %192

171:                                              ; preds = %168
  %172 = load i32, ptr %10, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = load i32, ptr @z, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = add nsw i32 %175, %179
  %181 = load i32, ptr @x, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr %13, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = add nsw i32 %184, %188
  %190 = icmp eq i32 %180, %189
  br i1 %190, label %191, label %192

191:                                              ; preds = %171
  br label %259

192:                                              ; preds = %171, %168, %165
  %193 = load i32, ptr %11, align 4, !tbaa !5
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %219

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

198:                                              ; preds = %195
  %199 = load i32, ptr %11, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = load i32, ptr @z, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = add nsw i32 %202, %206
  %208 = load i32, ptr @y, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = load i32, ptr %13, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = add nsw i32 %211, %215
  %217 = icmp eq i32 %207, %216
  br i1 %217, label %218, label %219

218:                                              ; preds = %198
  br label %259

219:                                              ; preds = %198, %195, %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %220 = load i32, ptr %4, align 4, !tbaa !5
  %221 = load i32, ptr %4, align 4, !tbaa !5
  %222 = load i32, ptr %10, align 4, !tbaa !5
  %223 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %221, i32 noundef %222)
  %224 = sdiv i32 %220, %223
  %225 = load i32, ptr %5, align 4, !tbaa !5
  %226 = load i32, ptr %5, align 4, !tbaa !5
  %227 = load i32, ptr %11, align 4, !tbaa !5
  %228 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %226, i32 noundef %227)
  %229 = sdiv i32 %225, %228
  %230 = load i32, ptr %6, align 4, !tbaa !5
  %231 = load i32, ptr %6, align 4, !tbaa !5
  %232 = load i32, ptr %13, align 4, !tbaa !5
  %233 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %231, i32 noundef %232)
  %234 = sdiv i32 %230, %233
  %235 = call noundef i32 @_Z3lcmii(i32 noundef %229, i32 noundef %234)
  %236 = call noundef i32 @_Z3lcmii(i32 noundef %224, i32 noundef %235)
  store i32 %236, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %237 = load i32, ptr %14, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = load i32, ptr %8, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = mul nsw i64 %238, %240
  store i64 %241, ptr %15, align 8, !tbaa !11
  %242 = load i64, ptr %7, align 8, !tbaa !11
  %243 = load i64, ptr %15, align 8, !tbaa !11
  %244 = icmp slt i64 %242, %243
  br i1 %244, label %245, label %250

245:                                              ; preds = %219
  %246 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %246, ptr %7, align 8, !tbaa !11
  %247 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %247, ptr @px, align 4, !tbaa !5
  %248 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %248, ptr @py, align 4, !tbaa !5
  %249 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %249, ptr @pz, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %245, %219
  %251 = load i32, ptr %14, align 4, !tbaa !5
  %252 = load i32, ptr %3, align 4, !tbaa !5
  %253 = icmp eq i32 %251, %252
  br i1 %253, label %254, label %255

254:                                              ; preds = %250
  store i32 16, ptr %9, align 4
  br label %256

255:                                              ; preds = %250
  store i32 0, ptr %9, align 4
  br label %256

256:                                              ; preds = %255, %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %257 = load i32, ptr %9, align 4
  switch i32 %257, label %264 [
    i32 0, label %258
  ]

258:                                              ; preds = %256
  br label %259

259:                                              ; preds = %258, %218, %191, %164, %137
  %260 = load i32, ptr %11, align 4, !tbaa !5
  %261 = add nsw i32 %260, -1
  store i32 %261, ptr %11, align 4, !tbaa !5
  %262 = load i32, ptr %13, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %13, align 4, !tbaa !5
  br label %120, !llvm.loop !13

264:                                              ; preds = %256, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %265 = load i32, ptr %9, align 4
  switch i32 %265, label %270 [
    i32 13, label %266
  ]

266:                                              ; preds = %264
  br label %267

267:                                              ; preds = %266
  %268 = load i32, ptr %10, align 4, !tbaa !5
  %269 = add nsw i32 %268, -1
  store i32 %269, ptr %10, align 4, !tbaa !5
  br label %105, !llvm.loop !14

270:                                              ; preds = %264, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %271 = load i32, ptr %9, align 4
  switch i32 %271, label %276 [
    i32 10, label %272
  ]

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %8, align 4, !tbaa !5
  %275 = add nsw i32 %274, -1
  store i32 %275, ptr %8, align 4, !tbaa !5
  br label %98, !llvm.loop !15

276:                                              ; preds = %270, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %277 = load i32, ptr %9, align 4
  switch i32 %277, label %285 [
    i32 7, label %278
    i32 16, label %279
  ]

278:                                              ; preds = %276
  br label %279

279:                                              ; preds = %278, %276
  %280 = load i32, ptr @px, align 4, !tbaa !5
  %281 = load i32, ptr @py, align 4, !tbaa !5
  %282 = load i32, ptr @pz, align 4, !tbaa !5
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %280, i32 noundef %281, i32 noundef %282)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %55, !llvm.loop !16

284:                                              ; preds = %55
  ret i32 0

285:                                              ; preds = %276
  unreachable
}

; 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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z3lcmii(i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #6

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

attributes #0 = { mustprogress norecurse 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 = { noreturn 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 = { inlinehint mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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

@t = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@z = external dso_local global i32, align 4
@px = external dso_local local_unnamed_addr global i32, align 4
@py = external dso_local local_unnamed_addr global i32, align 4
@pz = external dso_local local_unnamed_addr global i32, align 4
@lbt = external dso_local local_unnamed_addr global [1001 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  br label %9

3:                                                ; preds = %9
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %5 = icmp eq i32 %4, 1
  %6 = load i32, ptr @t, align 4
  %7 = add i32 %6, -1
  %8 = icmp ult i32 %7, 1000
  %or.cond13 = select i1 %5, i1 %8, i1 false
  br i1 %or.cond13, label %.lr.ph102.preheader, label %.critedge

.lr.ph102.preheader:                              ; preds = %3
  store i32 %7, ptr @t, align 4, !tbaa !5
  br label %.lr.ph102

9:                                                ; preds = %9, %0
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next.1, %9 ]
  %10 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv
  store i32 0, ptr %10, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = lshr exact i64 %indvars.iv.next, 1
  %12 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  %15 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv.next
  store i32 %14, ptr %15, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 1001
  br i1 %exitcond.not.1, label %3, label %9, !llvm.loop !9

.critedge:                                        ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 11, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %._crit_edge99
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull @x, ptr noundef nonnull @y, ptr noundef nonnull @z)
  %17 = icmp eq i32 %16, 3
  br i1 %17, label %18, label %.critedge5

18:                                               ; preds = %.lr.ph102
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) @z)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 4
  br i1 %22, label %23, label %.critedge5

23:                                               ; preds = %18
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) @z)
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 1001
  br i1 %27, label %28, label %.critedge5

.critedge5:                                       ; preds = %18, %.lr.ph102, %23
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 13, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

28:                                               ; preds = %23
  %29 = load i32, ptr @x, align 4, !tbaa !5
  %30 = load i32, ptr @y, align 4, !tbaa !5
  %31 = load i32, ptr @z, align 4, !tbaa !5
  %32 = call noundef i32 @_Z3lcmii(i32 noundef %30, i32 noundef %31)
  %33 = call noundef i32 @_Z3lcmii(i32 noundef %29, i32 noundef %32)
  %34 = shl nsw i32 %33, 1
  %35 = load i32, ptr @x, align 4, !tbaa !5
  %36 = shl nsw i32 %35, 1
  %37 = load i32, ptr @y, align 4, !tbaa !5
  %38 = shl nsw i32 %37, 1
  %39 = load i32, ptr @z, align 4, !tbaa !5
  %40 = shl nsw i32 %39, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %41 = add nsw i32 %37, %35
  %42 = add nsw i32 %41, %39
  store i32 %42, ptr %1, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph98, label %._crit_edge99

.lr.ph98:                                         ; preds = %28, %.thread78
  %.06396 = phi i64 [ %.1.lcssa, %.thread78 ], [ 0, %28 ]
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @x, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 0
  br i1 %46, label %.thread78, label %.lr.ph94.preheader

.lr.ph94.preheader:                               ; preds = %.lr.ph98
  %47 = sub nsw i32 0, %45
  %48 = zext nneg i32 %45 to i64
  br label %.lr.ph94

.lr.ph94:                                         ; preds = %.lr.ph94.preheader, %._crit_edge
  %indvars.iv115 = phi i64 [ %48, %.lr.ph94.preheader ], [ %indvars.iv.next116, %._crit_edge ]
  %indvars.iv106 = phi i32 [ %47, %.lr.ph94.preheader ], [ %indvars.iv.next107, %._crit_edge ]
  %.192 = phi i64 [ %.06396, %.lr.ph94.preheader ], [ %.2.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %50 = trunc nuw nsw i64 %indvars.iv115 to i32
  %51 = sub nsw i32 %49, %50
  store i32 %51, ptr %2, align 4, !tbaa !5
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @y, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %53 = load i32, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = add i32 %53, %50
  %56 = sub i32 %54, %55
  %57 = icmp slt i32 %53, 0
  %58 = load i32, ptr @z, align 4
  %59 = icmp sgt i32 %56, %58
  %.not7485 = select i1 %57, i1 true, i1 %59
  br i1 %.not7485, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph94
  %60 = icmp ne i64 %indvars.iv115, 0
  %61 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv115
  %62 = add i32 %54, %indvars.iv106
  %63 = sub i32 %62, %53
  %64 = sext i32 %63 to i64
  %65 = zext nneg i32 %53 to i64
  br label %66

66:                                               ; preds = %.lr.ph, %139
  %indvars.iv110 = phi i64 [ %65, %.lr.ph ], [ %indvars.iv.next111, %139 ]
  %indvars.iv108 = phi i64 [ %64, %.lr.ph ], [ %indvars.iv.next109, %139 ]
  %.290 = phi i64 [ %.192, %.lr.ph ], [ %.4, %139 ]
  %67 = trunc nsw i64 %indvars.iv108 to i32
  %68 = trunc nuw nsw i64 %indvars.iv110 to i32
  %69 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %68, i32 noundef %67)
  %70 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %50, i32 noundef %69)
  %71 = icmp sgt i32 %70, 1
  br i1 %71, label %139, label %72

72:                                               ; preds = %66
  %73 = icmp ne i64 %indvars.iv110, 0
  %or.cond7 = and i1 %60, %73
  br i1 %or.cond7, label %74, label %89

74:                                               ; preds = %72
  %75 = load i32, ptr %61, align 4, !tbaa !5
  %76 = load i32, ptr @y, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = add nsw i32 %79, %75
  %81 = load i32, ptr @x, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv110
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, %84
  %88 = icmp eq i32 %80, %87
  br i1 %88, label %139, label %89

89:                                               ; preds = %74, %72
  %90 = icmp ne i64 %indvars.iv108, 0
  %or.cond9 = and i1 %60, %90
  br i1 %or.cond9, label %91, label %106

91:                                               ; preds = %89
  %92 = load i32, ptr %61, align 4, !tbaa !5
  %93 = load i32, ptr @z, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = add nsw i32 %96, %92
  %98 = load i32, ptr @x, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv108
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = add nsw i32 %103, %101
  %105 = icmp eq i32 %97, %104
  br i1 %105, label %139, label %106

106:                                              ; preds = %91, %89
  %or.cond11 = and i1 %73, %90
  br i1 %or.cond11, label %107, label %123

107:                                              ; preds = %106
  %108 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv110
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = load i32, ptr @z, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = add nsw i32 %113, %109
  %115 = load i32, ptr @y, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = getelementptr inbounds [1001 x i32], ptr @lbt, i64 0, i64 %indvars.iv108
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = add nsw i32 %120, %118
  %122 = icmp eq i32 %114, %121
  br i1 %122, label %139, label %123

123:                                              ; preds = %107, %106
  %124 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %36, i32 noundef %50)
  %125 = sdiv i32 %36, %124
  %126 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %38, i32 noundef %68)
  %127 = sdiv i32 %38, %126
  %128 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %40, i32 noundef %67)
  %129 = sdiv i32 %40, %128
  %130 = call noundef i32 @_Z3lcmii(i32 noundef %127, i32 noundef %129)
  %131 = call noundef i32 @_Z3lcmii(i32 noundef %125, i32 noundef %130)
  %132 = sext i32 %131 to i64
  %133 = load i32, ptr %1, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = mul nsw i64 %134, %132
  %136 = icmp slt i64 %.290, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %123
  store i32 %50, ptr @px, align 4, !tbaa !5
  store i32 %68, ptr @py, align 4, !tbaa !5
  store i32 %67, ptr @pz, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %137, %123
  %.3 = phi i64 [ %135, %137 ], [ %.290, %123 ]
  %.not71 = icmp eq i32 %131, %34
  br i1 %.not71, label %._crit_edge99, label %139

139:                                              ; preds = %138, %107, %91, %74, %66
  %.4 = phi i64 [ %.290, %66 ], [ %.290, %74 ], [ %.290, %91 ], [ %.290, %107 ], [ %.3, %138 ]
  %indvars.iv.next111 = add nsw i64 %indvars.iv110, -1
  %indvars.iv.next109 = add nsw i64 %indvars.iv108, 1
  %140 = icmp slt i64 %indvars.iv110, 1
  %141 = load i32, ptr @z, align 4
  %142 = sext i32 %141 to i64
  %143 = icmp sge i64 %indvars.iv108, %142
  %.not74 = select i1 %140, i1 true, i1 %143
  br i1 %.not74, label %._crit_edge, label %66, !llvm.loop !11

._crit_edge:                                      ; preds = %139, %.lr.ph94
  %.2.lcssa = phi i64 [ %.192, %.lr.ph94 ], [ %.4, %139 ]
  %indvars.iv.next116 = add nsw i64 %indvars.iv115, -1
  %144 = icmp slt i64 %indvars.iv115, 1
  %indvars.iv.next107 = add i32 %indvars.iv106, 1
  br i1 %144, label %.thread78, label %.lr.ph94, !llvm.loop !12

.thread78:                                        ; preds = %._crit_edge, %.lr.ph98
  %.1.lcssa = phi i64 [ %.06396, %.lr.ph98 ], [ %.2.lcssa, %._crit_edge ]
  %145 = load i32, ptr %1, align 4, !tbaa !5
  %146 = add nsw i32 %145, -1
  store i32 %146, ptr %1, align 4, !tbaa !5
  %147 = icmp sgt i32 %145, 1
  br i1 %147, label %.lr.ph98, label %._crit_edge99, !llvm.loop !13

._crit_edge99:                                    ; preds = %.thread78, %138, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %148 = load i32, ptr @px, align 4, !tbaa !5
  %149 = load i32, ptr @py, align 4, !tbaa !5
  %150 = load i32, ptr @pz, align 4, !tbaa !5
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %148, i32 noundef %149, i32 noundef %150)
  %.pr = load i32, ptr @t, align 4, !tbaa !5
  %152 = add nsw i32 %.pr, -1
  store i32 %152, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %.pr, 0
  br i1 %.not, label %._crit_edge103, label %.lr.ph102, !llvm.loop !14

._crit_edge103:                                   ; preds = %._crit_edge99
  ret i32 0
}

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

; 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
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z3lcmii(i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #6

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

attributes #0 = { mustprogress norecurse 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 = { 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 #3 = { noreturn 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 = { inlinehint mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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