; LLVM IR from tangjz/acm-icpc :: leetcode/extra (tusimple_004-可视化)

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

@_ZZ4mainE3buf = external hidden global [201 x i8], align 16
@_ZZ4mainE3out = external hidden global [201 x [201 x i8]], align 16
@.str = external hidden unnamed_addr constant [5 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 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 i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef @_ZZ4mainE3buf)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %50, %0
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %53

24:                                               ; preds = %19
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [201 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %29, 43
  br i1 %30, label %31, label %36

31:                                               ; preds = %24
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %5, align 4, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %35 = load i32, ptr %34, align 4, !tbaa !5
  store i32 %35, ptr %4, align 4, !tbaa !5
  br label %49

36:                                               ; preds = %24
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [201 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !9
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %41, 45
  br i1 %42, label %43, label %48

43:                                               ; preds = %36
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %5, align 4, !tbaa !5
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %47 = load i32, ptr %46, align 4, !tbaa !5
  store i32 %47, ptr %3, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %43, %36
  br label %49

49:                                               ; preds = %48, %31
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %6, align 4, !tbaa !5
  br label %19, !llvm.loop !10

53:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %84, %53
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sub nsw i32 %56, %57
  %59 = icmp sle i32 %55, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %54
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %87

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %74, %61
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %77

67:                                               ; preds = %62
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %69
  %71 = load i32, ptr %9, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [201 x i8], ptr %70, i64 0, i64 %72
  store i8 46, ptr %73, align 1, !tbaa !9
  br label %74

74:                                               ; preds = %67
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !5
  br label %62, !llvm.loop !12

77:                                               ; preds = %66
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %79
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [201 x i8], ptr %80, i64 0, i64 %82
  store i8 0, ptr %83, align 1, !tbaa !9
  br label %84

84:                                               ; preds = %77
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %7, align 4, !tbaa !5
  br label %54, !llvm.loop !13

87:                                               ; preds = %60
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %140, %87
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %143

93:                                               ; preds = %88
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [201 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !9
  %98 = sext i8 %97 to i32
  %99 = icmp eq i32 %98, 43
  br i1 %99, label %100, label %111

100:                                              ; preds = %93
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = sub nsw i32 %101, %102
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %104
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [201 x i8], ptr %105, i64 0, i64 %107
  store i8 47, ptr %108, align 1, !tbaa !9
  %109 = load i32, ptr %5, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %5, align 4, !tbaa !5
  br label %139

111:                                              ; preds = %93
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [201 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !9
  %116 = sext i8 %115 to i32
  %117 = icmp eq i32 %116, 45
  br i1 %117, label %118, label %129

118:                                              ; preds = %111
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = add nsw i32 %119, -1
  store i32 %120, ptr %5, align 4, !tbaa !5
  %121 = load i32, ptr %4, align 4, !tbaa !5
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = sub nsw i32 %121, %122
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %124
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [201 x i8], ptr %125, i64 0, i64 %127
  store i8 92, ptr %128, align 1, !tbaa !9
  br label %138

129:                                              ; preds = %111
  %130 = load i32, ptr %4, align 4, !tbaa !5
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = sub nsw i32 %130, %131
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %133
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [201 x i8], ptr %134, i64 0, i64 %136
  store i8 45, ptr %137, align 1, !tbaa !9
  br label %138

138:                                              ; preds = %129, %118
  br label %139

139:                                              ; preds = %138, %100
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %10, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %10, align 4, !tbaa !5
  br label %88, !llvm.loop !14

143:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %144 = load i32, ptr %4, align 4, !tbaa !5
  %145 = load i32, ptr %3, align 4, !tbaa !5
  %146 = sub nsw i32 %144, %145
  store i32 %146, ptr %12, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %191, %143
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = icmp sle i32 %148, %149
  br i1 %150, label %151, label %192

151:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  store i8 1, ptr %13, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %179, %151
  %153 = load i8, ptr %13, align 1, !tbaa !15, !range !17, !noundef !18
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %159

155:                                              ; preds = %152
  %156 = load i32, ptr %14, align 4, !tbaa !5
  %157 = load i32, ptr %2, align 4, !tbaa !5
  %158 = icmp slt i32 %156, %157
  br label %159

159:                                              ; preds = %155, %152
  %160 = phi i1 [ false, %152 ], [ %158, %155 ]
  br i1 %160, label %162, label %161

161:                                              ; preds = %159
  store i32 16, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %182

162:                                              ; preds = %159
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %164
  %166 = load i32, ptr %14, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [201 x i8], ptr %165, i64 0, i64 %167
  %169 = load i8, ptr %168, align 1, !tbaa !9
  %170 = sext i8 %169 to i32
  %171 = icmp eq i32 %170, 46
  %172 = zext i1 %171 to i32
  %173 = load i8, ptr %13, align 1, !tbaa !15, !range !17, !noundef !18
  %174 = trunc i8 %173 to i1
  %175 = zext i1 %174 to i32
  %176 = and i32 %175, %172
  %177 = icmp ne i32 %176, 0
  %178 = zext i1 %177 to i8
  store i8 %178, ptr %13, align 1, !tbaa !15
  br label %179

179:                                              ; preds = %162
  %180 = load i32, ptr %14, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %14, align 4, !tbaa !5
  br label %152, !llvm.loop !19

182:                                              ; preds = %161
  %183 = load i8, ptr %13, align 1, !tbaa !15, !range !17, !noundef !18
  %184 = trunc i8 %183 to i1
  br i1 %184, label %186, label %185

185:                                              ; preds = %182
  store i32 15, ptr %8, align 4
  br label %189

186:                                              ; preds = %182
  %187 = load i32, ptr %11, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  br label %189

189:                                              ; preds = %186, %185
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  %190 = load i32, ptr %8, align 4
  switch i32 %190, label %256 [
    i32 0, label %191
    i32 15, label %192
  ]

191:                                              ; preds = %189
  br label %147, !llvm.loop !20

192:                                              ; preds = %189, %147
  br label %193

193:                                              ; preds = %237, %192
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = load i32, ptr %12, align 4, !tbaa !5
  %196 = icmp sle i32 %194, %195
  br i1 %196, label %197, label %238

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  store i8 1, ptr %15, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %225, %197
  %199 = load i8, ptr %15, align 1, !tbaa !15, !range !17, !noundef !18
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %205

201:                                              ; preds = %198
  %202 = load i32, ptr %16, align 4, !tbaa !5
  %203 = load i32, ptr %2, align 4, !tbaa !5
  %204 = icmp slt i32 %202, %203
  br label %205

205:                                              ; preds = %201, %198
  %206 = phi i1 [ false, %198 ], [ %204, %201 ]
  br i1 %206, label %208, label %207

207:                                              ; preds = %205
  store i32 21, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %228

208:                                              ; preds = %205
  %209 = load i32, ptr %12, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %210
  %212 = load i32, ptr %16, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [201 x i8], ptr %211, i64 0, i64 %213
  %215 = load i8, ptr %214, align 1, !tbaa !9
  %216 = sext i8 %215 to i32
  %217 = icmp eq i32 %216, 46
  %218 = zext i1 %217 to i32
  %219 = load i8, ptr %15, align 1, !tbaa !15, !range !17, !noundef !18
  %220 = trunc i8 %219 to i1
  %221 = zext i1 %220 to i32
  %222 = and i32 %221, %218
  %223 = icmp ne i32 %222, 0
  %224 = zext i1 %223 to i8
  store i8 %224, ptr %15, align 1, !tbaa !15
  br label %225

225:                                              ; preds = %208
  %226 = load i32, ptr %16, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %16, align 4, !tbaa !5
  br label %198, !llvm.loop !21

228:                                              ; preds = %207
  %229 = load i8, ptr %15, align 1, !tbaa !15, !range !17, !noundef !18
  %230 = trunc i8 %229 to i1
  br i1 %230, label %232, label %231

231:                                              ; preds = %228
  store i32 20, ptr %8, align 4
  br label %235

232:                                              ; preds = %228
  %233 = load i32, ptr %12, align 4, !tbaa !5
  %234 = add nsw i32 %233, -1
  store i32 %234, ptr %12, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  br label %235

235:                                              ; preds = %232, %231
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  %236 = load i32, ptr %8, align 4
  switch i32 %236, label %256 [
    i32 0, label %237
    i32 20, label %238
  ]

237:                                              ; preds = %235
  br label %193, !llvm.loop !22

238:                                              ; preds = %235, %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %239 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %239, ptr %17, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %251, %238
  %241 = load i32, ptr %17, align 4, !tbaa !5
  %242 = load i32, ptr %12, align 4, !tbaa !5
  %243 = icmp sle i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 24, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %254

245:                                              ; preds = %240
  %246 = load i32, ptr %17, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %247
  %249 = getelementptr inbounds [201 x i8], ptr %248, i64 0, i64 0
  %250 = call i32 @puts(ptr noundef %249)
  br label %251

251:                                              ; preds = %245
  %252 = load i32, ptr %17, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %17, align 4, !tbaa !5
  br label %240, !llvm.loop !23

254:                                              ; preds = %244
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  %255 = load i32, ptr %1, align 4
  ret i32 %255

256:                                              ; preds = %235, %189
  unreachable
}

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

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

; 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)) #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)) #3

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

declare i32 @puts(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 = { 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 #4 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}


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

@_ZZ4mainE3buf = external hidden global [201 x i8], align 16
@_ZZ4mainE3out = external hidden global [201 x [201 x i8]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull @_ZZ4mainE3buf)
  %6 = load i32, ptr %1, align 4
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %.preheader69

.preheader69.loopexit:                            ; preds = %42
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %.pre138 = load i32, ptr %2, align 4, !tbaa !5
  br label %.preheader69

.preheader69:                                     ; preds = %.preheader69.loopexit, %0
  %8 = phi i32 [ 0, %0 ], [ %.pre138, %.preheader69.loopexit ]
  %9 = phi i32 [ 0, %0 ], [ %.pre, %.preheader69.loopexit ]
  %.lcssa71 = phi i32 [ %6, %0 ], [ %43, %.preheader69.loopexit ]
  %.lcssa71.fr = freeze i32 %.lcssa71
  %10 = sub nsw i32 %9, %8
  %.not75 = icmp slt i32 %10, 0
  br i1 %.not75, label %._crit_edge77, label %.preheader68.lr.ph

.preheader68.lr.ph:                               ; preds = %.preheader69
  %11 = icmp sgt i32 %.lcssa71.fr, 0
  %12 = sext i32 %.lcssa71.fr to i64
  br i1 %11, label %.preheader68.us.preheader, label %.preheader68.preheader

.preheader68.preheader:                           ; preds = %.preheader68.lr.ph
  %13 = add i32 %9, 1
  %14 = sub i32 %13, %8
  %wide.trip.count = zext i32 %14 to i64
  %15 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %16 = icmp ult i64 %15, 3
  br i1 %16, label %._crit_edge77.loopexit154.unr-lcssa, label %.preheader68.preheader.new

.preheader68.preheader.new:                       ; preds = %.preheader68.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.preheader68

.preheader68.us.preheader:                        ; preds = %.preheader68.lr.ph
  %17 = zext nneg i32 %.lcssa71.fr to i64
  %18 = add i32 %9, 1
  %19 = sub i32 %18, %8
  %wide.trip.count113 = zext i32 %19 to i64
  %20 = add nsw i64 %wide.trip.count113, -1
  %xtraiter156 = and i64 %wide.trip.count113, 3
  %21 = icmp ult i64 %20, 3
  br i1 %21, label %._crit_edge77.loopexit.unr-lcssa, label %.preheader68.us.preheader.new

.preheader68.us.preheader.new:                    ; preds = %.preheader68.us.preheader
  %unroll_iter159 = and i64 %wide.trip.count113, 4294967292
  br label %.preheader68.us

.preheader68.us:                                  ; preds = %.preheader68.us, %.preheader68.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader68.us.preheader.new ], [ %indvar.next.3, %.preheader68.us ]
  %niter160 = phi i64 [ 0, %.preheader68.us.preheader.new ], [ %niter160.next.3, %.preheader68.us ]
  %22 = mul nuw nsw i64 %indvar, 201
  %scevgep = getelementptr i8, ptr @_ZZ4mainE3out, i64 %22
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 46, i64 %17, i1 false), !tbaa !9
  %23 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvar, i64 %12
  store i8 0, ptr %23, align 1, !tbaa !9
  %indvar.next = or disjoint i64 %indvar, 1
  %24 = mul nuw nsw i64 %indvar.next, 201
  %scevgep.1 = getelementptr i8, ptr @_ZZ4mainE3out, i64 %24
  call void @llvm.memset.p0.i64(ptr align 1 %scevgep.1, i8 46, i64 %17, i1 false), !tbaa !9
  %25 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvar.next, i64 %12
  store i8 0, ptr %25, align 1, !tbaa !9
  %indvar.next.1 = or disjoint i64 %indvar, 2
  %26 = mul nuw nsw i64 %indvar.next.1, 201
  %scevgep.2 = getelementptr i8, ptr @_ZZ4mainE3out, i64 %26
  call void @llvm.memset.p0.i64(ptr align 2 %scevgep.2, i8 46, i64 %17, i1 false), !tbaa !9
  %27 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvar.next.1, i64 %12
  store i8 0, ptr %27, align 1, !tbaa !9
  %indvar.next.2 = or disjoint i64 %indvar, 3
  %28 = mul nuw nsw i64 %indvar.next.2, 201
  %scevgep.3 = getelementptr i8, ptr @_ZZ4mainE3out, i64 %28
  call void @llvm.memset.p0.i64(ptr align 1 %scevgep.3, i8 46, i64 %17, i1 false), !tbaa !9
  %29 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvar.next.2, i64 %12
  store i8 0, ptr %29, align 1, !tbaa !9
  %indvar.next.3 = add nuw nsw i64 %indvar, 4
  %niter160.next.3 = add i64 %niter160, 4
  %niter160.ncmp.3 = icmp eq i64 %niter160.next.3, %unroll_iter159
  br i1 %niter160.ncmp.3, label %._crit_edge77.loopexit.unr-lcssa, label %.preheader68.us, !llvm.loop !10

.lr.ph:                                           ; preds = %0, %42
  %indvars.iv = phi i64 [ %indvars.iv.next, %42 ], [ 0, %0 ]
  %30 = getelementptr inbounds [201 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %indvars.iv
  %31 = load i8, ptr %30, align 1, !tbaa !9
  switch i8 %31, label %42 [
    i8 43, label %32
    i8 45, label %37
  ]

32:                                               ; preds = %.lr.ph
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %4, align 4, !tbaa !5
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %36 = load i32, ptr %35, align 4, !tbaa !5
  store i32 %36, ptr %3, align 4, !tbaa !5
  br label %42

37:                                               ; preds = %.lr.ph
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = add nsw i32 %38, -1
  store i32 %39, ptr %4, align 4, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %41 = load i32, ptr %40, align 4, !tbaa !5
  store i32 %41, ptr %2, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %.lr.ph, %32, %37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = load i32, ptr %1, align 4
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %.preheader69.loopexit, !llvm.loop !12

.preheader68:                                     ; preds = %.preheader68, %.preheader68.preheader.new
  %indvars.iv106 = phi i64 [ 0, %.preheader68.preheader.new ], [ %indvars.iv.next107.3, %.preheader68 ]
  %niter = phi i64 [ 0, %.preheader68.preheader.new ], [ %niter.next.3, %.preheader68 ]
  %46 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv106, i64 %12
  store i8 0, ptr %46, align 1, !tbaa !9
  %indvars.iv.next107 = or disjoint i64 %indvars.iv106, 1
  %47 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv.next107, i64 %12
  store i8 0, ptr %47, align 1, !tbaa !9
  %indvars.iv.next107.1 = or disjoint i64 %indvars.iv106, 2
  %48 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv.next107.1, i64 %12
  store i8 0, ptr %48, align 1, !tbaa !9
  %indvars.iv.next107.2 = or disjoint i64 %indvars.iv106, 3
  %49 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv.next107.2, i64 %12
  store i8 0, ptr %49, align 1, !tbaa !9
  %indvars.iv.next107.3 = add nuw nsw i64 %indvars.iv106, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge77.loopexit154.unr-lcssa, label %.preheader68, !llvm.loop !10

._crit_edge77.loopexit.unr-lcssa:                 ; preds = %.preheader68.us, %.preheader68.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader68.us.preheader ], [ %indvar.next.3, %.preheader68.us ]
  %lcmp.mod158.not = icmp eq i64 %xtraiter156, 0
  br i1 %lcmp.mod158.not, label %._crit_edge77, label %.preheader68.us.epil

.preheader68.us.epil:                             ; preds = %._crit_edge77.loopexit.unr-lcssa, %.preheader68.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader68.us.epil ], [ %indvar.unr, %._crit_edge77.loopexit.unr-lcssa ]
  %epil.iter157 = phi i64 [ %epil.iter157.next, %.preheader68.us.epil ], [ 0, %._crit_edge77.loopexit.unr-lcssa ]
  %50 = mul nuw nsw i64 %indvar.epil, 201
  %scevgep.epil = getelementptr i8, ptr @_ZZ4mainE3out, i64 %50
  call void @llvm.memset.p0.i64(ptr align 1 %scevgep.epil, i8 46, i64 %17, i1 false), !tbaa !9
  %51 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvar.epil, i64 %12
  store i8 0, ptr %51, align 1, !tbaa !9
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter157.next = add i64 %epil.iter157, 1
  %epil.iter157.cmp.not = icmp eq i64 %epil.iter157.next, %xtraiter156
  br i1 %epil.iter157.cmp.not, label %._crit_edge77, label %.preheader68.us.epil, !llvm.loop !13

._crit_edge77.loopexit154.unr-lcssa:              ; preds = %.preheader68, %.preheader68.preheader
  %indvars.iv106.unr = phi i64 [ 0, %.preheader68.preheader ], [ %indvars.iv.next107.3, %.preheader68 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge77, label %.preheader68.epil

.preheader68.epil:                                ; preds = %._crit_edge77.loopexit154.unr-lcssa, %.preheader68.epil
  %indvars.iv106.epil = phi i64 [ %indvars.iv.next107.epil, %.preheader68.epil ], [ %indvars.iv106.unr, %._crit_edge77.loopexit154.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader68.epil ], [ 0, %._crit_edge77.loopexit154.unr-lcssa ]
  %52 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv106.epil, i64 %12
  store i8 0, ptr %52, align 1, !tbaa !9
  %indvars.iv.next107.epil = add nuw nsw i64 %indvars.iv106.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge77, label %.preheader68.epil, !llvm.loop !15

._crit_edge77:                                    ; preds = %._crit_edge77.loopexit154.unr-lcssa, %.preheader68.epil, %._crit_edge77.loopexit.unr-lcssa, %.preheader68.us.epil, %.preheader69
  store i32 0, ptr %4, align 4, !tbaa !5
  %53 = icmp sgt i32 %.lcssa71.fr, 0
  br i1 %53, label %.lr.ph82.preheader, label %.split.us.thread

.lr.ph82.preheader:                               ; preds = %._crit_edge77
  %wide.trip.count118 = zext nneg i32 %.lcssa71.fr to i64
  br label %.lr.ph82

.preheader67:                                     ; preds = %79
  br i1 %53, label %.preheader67.split.us.preheader, label %.split.us.thread

.split.us.thread:                                 ; preds = %.preheader67, %._crit_edge77
  %smax = call i32 @llvm.smax.i32(i32 %10, i32 -1)
  %54 = add i32 %smax, 1
  br label %.preheader.preheader

.preheader67.split.us.preheader:                  ; preds = %.preheader67
  %55 = zext nneg i32 %.lcssa71.fr to i64
  %smax125 = call i32 @llvm.smax.i32(i32 %10, i32 -1)
  %56 = add i32 %smax125, 1
  %wide.trip.count127 = zext i32 %56 to i64
  br label %.preheader67.split.us

.preheader67.split.us:                            ; preds = %.preheader67.split.us.preheader, %._crit_edge.us86
  %indvars.iv123 = phi i64 [ 0, %.preheader67.split.us.preheader ], [ %indvars.iv.next124, %._crit_edge.us86 ]
  %exitcond128 = icmp eq i64 %indvars.iv123, %wide.trip.count127
  br i1 %exitcond128, label %.split.us, label %.preheader66.us

.preheader66.us:                                  ; preds = %.preheader67.split.us, %.preheader66.us
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %.preheader66.us ], [ 0, %.preheader67.split.us ]
  %57 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv123, i64 %indvars.iv120
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = icmp eq i8 %58, 46
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %60 = icmp ult i64 %indvars.iv.next121, %55
  %61 = select i1 %59, i1 %60, i1 false
  br i1 %61, label %.preheader66.us, label %._crit_edge.us86, !llvm.loop !16

._crit_edge.us86:                                 ; preds = %.preheader66.us
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  br i1 %59, label %.preheader67.split.us, label %.split.us.split.loop.exit146

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %79
  %indvars.iv115 = phi i64 [ 0, %.lr.ph82.preheader ], [ %indvars.iv.next116, %79 ]
  %62 = phi i32 [ 0, %.lr.ph82.preheader ], [ %80, %79 ]
  %63 = getelementptr inbounds [201 x i8], ptr @_ZZ4mainE3buf, i64 0, i64 %indvars.iv115
  %64 = load i8, ptr %63, align 1, !tbaa !9
  switch i8 %64, label %75 [
    i8 43, label %65
    i8 45, label %70
  ]

65:                                               ; preds = %.lr.ph82
  %66 = sub nsw i32 %9, %62
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %67, i64 %indvars.iv115
  store i8 47, ptr %68, align 1, !tbaa !9
  %69 = add nsw i32 %62, 1
  store i32 %69, ptr %4, align 4, !tbaa !5
  br label %79

70:                                               ; preds = %.lr.ph82
  %71 = add nsw i32 %62, -1
  store i32 %71, ptr %4, align 4, !tbaa !5
  %72 = sub nsw i32 %9, %71
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %73, i64 %indvars.iv115
  store i8 92, ptr %74, align 1, !tbaa !9
  br label %79

75:                                               ; preds = %.lr.ph82
  %76 = sub nsw i32 %9, %62
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %77, i64 %indvars.iv115
  store i8 45, ptr %78, align 1, !tbaa !9
  br label %79

79:                                               ; preds = %65, %75, %70
  %80 = phi i32 [ %69, %65 ], [ %62, %75 ], [ %71, %70 ]
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond119.not = icmp eq i64 %indvars.iv.next116, %wide.trip.count118
  br i1 %exitcond119.not, label %.preheader67, label %.lr.ph82, !llvm.loop !17

.split.us.split.loop.exit146:                     ; preds = %._crit_edge.us86
  %81 = trunc nuw nsw i64 %indvars.iv123 to i32
  br label %.split.us

.split.us:                                        ; preds = %.preheader67.split.us, %.split.us.split.loop.exit146
  %.us-phi87 = phi i32 [ %81, %.split.us.split.loop.exit146 ], [ %56, %.preheader67.split.us ]
  br i1 %53, label %.split91.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.split.us.thread, %.split.us
  %.us-phi87141 = phi i32 [ %54, %.split.us.thread ], [ %.us-phi87, %.split.us ]
  %82 = add i32 %.us-phi87141, -1
  %smin = call i32 @llvm.smin.i32(i32 %10, i32 %82)
  br label %.split94.us

.split91.us.preheader:                            ; preds = %.split.us
  %83 = zext nneg i32 %.lcssa71.fr to i64
  %84 = sext i32 %10 to i64
  %85 = sext i32 %.us-phi87 to i64
  br label %.split91.us

.split91.us:                                      ; preds = %.split91.us.preheader, %._crit_edge.us92
  %indvars.iv132 = phi i64 [ %84, %.split91.us.preheader ], [ %indvars.iv.next133, %._crit_edge.us92 ]
  %.not64.us = icmp slt i64 %indvars.iv132, %85
  br i1 %.not64.us, label %.split94.us.loopexit, label %.preheader.us

.preheader.us:                                    ; preds = %.split91.us, %.preheader.us
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %.preheader.us ], [ 0, %.split91.us ]
  %86 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv132, i64 %indvars.iv129
  %87 = load i8, ptr %86, align 1, !tbaa !9
  %88 = icmp eq i8 %87, 46
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %89 = icmp ult i64 %indvars.iv.next130, %83
  %90 = select i1 %88, i1 %89, i1 false
  br i1 %90, label %.preheader.us, label %._crit_edge.us92, !llvm.loop !18

._crit_edge.us92:                                 ; preds = %.preheader.us
  %indvars.iv.next133 = add nsw i64 %indvars.iv132, -1
  br i1 %88, label %.split91.us, label %.split94.us.loopexit

.split94.us.loopexit:                             ; preds = %._crit_edge.us92, %.split91.us
  %91 = trunc nsw i64 %indvars.iv132 to i32
  br label %.split94.us

.split94.us:                                      ; preds = %.split94.us.loopexit, %.preheader.preheader
  %.us-phi87140 = phi i32 [ %.us-phi87141, %.preheader.preheader ], [ %.us-phi87, %.split94.us.loopexit ]
  %.us-phi95 = phi i32 [ %smin, %.preheader.preheader ], [ %91, %.split94.us.loopexit ]
  %.not6597 = icmp sgt i32 %.us-phi87140, %.us-phi95
  br i1 %.not6597, label %._crit_edge, label %.lr.ph99.preheader

.lr.ph99.preheader:                               ; preds = %.split94.us
  %92 = zext i32 %.us-phi87140 to i64
  br label %.lr.ph99

._crit_edge:                                      ; preds = %.lr.ph99, %.split94.us
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.lr.ph99
  %indvars.iv135 = phi i64 [ %92, %.lr.ph99.preheader ], [ %indvars.iv.next136, %.lr.ph99 ]
  %93 = getelementptr inbounds [201 x [201 x i8]], ptr @_ZZ4mainE3out, i64 0, i64 %indvars.iv135
  %94 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %93)
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %95 = trunc nuw i64 %indvars.iv135 to i32
  %.not65.not = icmp sgt i32 %.us-phi95, %95
  br i1 %.not65.not, label %.lr.ph99, label %._crit_edge, !llvm.loop !19
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.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: 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 #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 #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
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

attributes #0 = { mustprogress norecurse 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 = { 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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}


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