; LLVM IR from UtkarshPathrabe/Competitive-Coding :: SPOJ Solutions (FPOLICE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.state = type { i32, i32 }

@T = external dso_local global i32, align 4
@N = external dso_local global i32, align 4
@dp = external dso_local global [260 x [260 x %struct.state]], align 16
@risk = external dso_local global [260 x [260 x i32]], align 16
@dist = external dso_local global [260 x [260 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5stateC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

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

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

23:                                               ; preds = %19
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %260

24:                                               ; preds = %19
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @N, ptr noundef @T)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %49, %24
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr @N, align 4, !tbaa !5
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %52

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %45, %31
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = load i32, ptr @N, align 4, !tbaa !5
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %48

37:                                               ; preds = %32
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %39
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [260 x i32], ptr %40, i64 0, i64 %42
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %43)
  br label %45

45:                                               ; preds = %37
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %6, align 4, !tbaa !5
  br label %32, !llvm.loop !9

48:                                               ; preds = %36
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %5, align 4, !tbaa !5
  br label %26, !llvm.loop !11

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

53:                                               ; preds = %76, %52
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = load i32, ptr @N, align 4, !tbaa !5
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %79

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %72, %58
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = load i32, ptr @N, align 4, !tbaa !5
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %75

64:                                               ; preds = %59
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [260 x [260 x i32]], ptr @risk, i64 0, i64 %66
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [260 x i32], ptr %67, i64 0, i64 %69
  %71 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %70)
  br label %72

72:                                               ; preds = %64
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %8, align 4, !tbaa !5
  br label %59, !llvm.loop !12

75:                                               ; preds = %63
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !5
  br label %53, !llvm.loop !13

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

80:                                               ; preds = %102, %79
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = load i32, ptr @N, align 4, !tbaa !5
  %83 = icmp sle i32 %81, %82
  br i1 %83, label %85, label %84

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

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

86:                                               ; preds = %98, %85
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = load i32, ptr @T, align 4, !tbaa !5
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %101

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZN5stateC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %11)
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %93
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [260 x %struct.state], ptr %94, i64 0, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %97, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %98

98:                                               ; preds = %91
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %10, align 4, !tbaa !5
  br label %86, !llvm.loop !15

101:                                              ; preds = %90
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %9, align 4, !tbaa !5
  br label %80, !llvm.loop !16

105:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %118, %105
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = load i32, ptr @T, align 4, !tbaa !5
  %109 = icmp sle i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %121

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @_ZN5stateC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 0, i32 noundef 0)
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %113
  %115 = load i32, ptr @N, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [260 x %struct.state], ptr %114, i64 0, i64 %116
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %117, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %118

118:                                              ; preds = %111
  %119 = load i32, ptr %12, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %12, align 4, !tbaa !5
  br label %106, !llvm.loop !17

121:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %228, %121
  %123 = load i32, ptr %14, align 4, !tbaa !5
  %124 = load i32, ptr @T, align 4, !tbaa !5
  %125 = icmp sle i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %231

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %224, %127
  %129 = load i32, ptr %15, align 4, !tbaa !5
  %130 = load i32, ptr @N, align 4, !tbaa !5
  %131 = icmp sle i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %227

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %220, %133
  %135 = load i32, ptr %16, align 4, !tbaa !5
  %136 = load i32, ptr @N, align 4, !tbaa !5
  %137 = icmp sle i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %223

139:                                              ; preds = %134
  %140 = load i32, ptr %15, align 4, !tbaa !5
  %141 = load i32, ptr %16, align 4, !tbaa !5
  %142 = icmp eq i32 %140, %141
  br i1 %142, label %153, label %143

143:                                              ; preds = %139
  %144 = load i32, ptr %14, align 4, !tbaa !5
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %146
  %148 = load i32, ptr %16, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [260 x i32], ptr %147, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = icmp slt i32 %144, %151
  br i1 %152, label %153, label %154

153:                                              ; preds = %143, %139
  br label %220

154:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @_ZN5stateC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %17)
  %155 = load i32, ptr %15, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [260 x [260 x i32]], ptr @risk, i64 0, i64 %156
  %158 = load i32, ptr %16, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [260 x i32], ptr %157, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = load i32, ptr %14, align 4, !tbaa !5
  %163 = load i32, ptr %15, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %164
  %166 = load i32, ptr %16, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [260 x i32], ptr %165, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = sub nsw i32 %162, %169
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %171
  %173 = load i32, ptr %16, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [260 x %struct.state], ptr %172, i64 0, i64 %174
  %176 = getelementptr inbounds %struct.state, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 8, !tbaa !18
  %178 = add nsw i32 %161, %177
  %179 = getelementptr inbounds %struct.state, ptr %17, i32 0, i32 0
  store i32 %178, ptr %179, align 4, !tbaa !18
  %180 = load i32, ptr %15, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %181
  %183 = load i32, ptr %16, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [260 x i32], ptr %182, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = load i32, ptr %14, align 4, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %189
  %191 = load i32, ptr %16, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [260 x i32], ptr %190, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = sub nsw i32 %187, %194
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %196
  %198 = load i32, ptr %16, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [260 x %struct.state], ptr %197, i64 0, i64 %199
  %201 = getelementptr inbounds %struct.state, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !20
  %203 = add nsw i32 %186, %202
  %204 = getelementptr inbounds %struct.state, ptr %17, i32 0, i32 1
  store i32 %203, ptr %204, align 4, !tbaa !20
  %205 = load i32, ptr %14, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %206
  %208 = load i32, ptr %15, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [260 x %struct.state], ptr %207, i64 0, i64 %209
  %211 = call noundef zeroext i1 @_ZNK5stateltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %210)
  br i1 %211, label %212, label %219

212:                                              ; preds = %154
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %214
  %216 = load i32, ptr %15, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [260 x %struct.state], ptr %215, i64 0, i64 %217
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %218, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !14
  br label %219

219:                                              ; preds = %212, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %220

220:                                              ; preds = %219, %153
  %221 = load i32, ptr %16, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %16, align 4, !tbaa !5
  br label %134, !llvm.loop !21

223:                                              ; preds = %138
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %15, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %15, align 4, !tbaa !5
  br label %128, !llvm.loop !22

227:                                              ; preds = %132
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %14, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %14, align 4, !tbaa !5
  br label %122, !llvm.loop !23

231:                                              ; preds = %126
  %232 = load i32, ptr @T, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %233
  %235 = getelementptr inbounds [260 x %struct.state], ptr %234, i64 0, i64 1
  %236 = getelementptr inbounds %struct.state, ptr %235, i32 0, i32 1
  %237 = load i32, ptr %236, align 4, !tbaa !20
  %238 = load i32, ptr @T, align 4, !tbaa !5
  %239 = icmp sgt i32 %237, %238
  br i1 %239, label %240, label %242

240:                                              ; preds = %231
  %241 = call i32 @puts(ptr noundef @.str.2)
  br label %256

242:                                              ; preds = %231
  %243 = load i32, ptr @T, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %244
  %246 = getelementptr inbounds [260 x %struct.state], ptr %245, i64 0, i64 1
  %247 = getelementptr inbounds %struct.state, ptr %246, i32 0, i32 0
  %248 = load i32, ptr %247, align 8, !tbaa !18
  %249 = load i32, ptr @T, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %250
  %252 = getelementptr inbounds [260 x %struct.state], ptr %251, i64 0, i64 1
  %253 = getelementptr inbounds %struct.state, ptr %252, i32 0, i32 1
  %254 = load i32, ptr %253, align 4, !tbaa !20
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %248, i32 noundef %254)
  br label %256

256:                                              ; preds = %242, %240
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %3, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %3, align 4, !tbaa !5
  br label %19, !llvm.loop !24

260:                                              ; preds = %23
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %261 = load i32, ptr %1, align 4
  ret i32 %261
}

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5stateC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5stateltERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

declare i32 @puts(ptr noundef) #3

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTS5state", !6, i64 0, !6, i64 4}
!20 = !{!19, !6, i64 4}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !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"

%struct.state = type { i32, i32 }

@T = external dso_local global i32, align 4
@N = external dso_local global i32, align 4
@dp = external dso_local global [260 x [260 x %struct.state]], align 16
@risk = external dso_local global [260 x [260 x i32]], align 16
@dist = external dso_local global [260 x [260 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5stateC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.state, align 8
  %3 = alloca %struct.state, align 8
  %4 = alloca %struct.state, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %.not111 = icmp slt i32 %6, 1
  br i1 %.not111, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %0
  %7 = getelementptr inbounds i8, ptr %4, i64 4
  br label %8

._crit_edge115:                                   ; preds = %96, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0

8:                                                ; preds = %.lr.ph114, %96
  %.060112 = phi i32 [ 1, %.lr.ph114 ], [ %97, %96 ]
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @N, ptr noundef nonnull @T)
  %10 = load i32, ptr @N, align 4, !tbaa !5
  %.not6383 = icmp slt i32 %10, 1
  br i1 %.not6383, label %.preheader79, label %.preheader76

.preheader80:                                     ; preds = %._crit_edge
  %.not6489 = icmp slt i32 %12, 1
  br i1 %.not6489, label %.preheader79, label %.preheader75

.preheader76:                                     ; preds = %8, %._crit_edge
  %11 = phi i32 [ %12, %._crit_edge ], [ %10, %8 ]
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %._crit_edge ], [ 1, %8 ]
  %.not7281 = icmp slt i32 %11, 1
  br i1 %.not7281, label %.preheader76.._crit_edge_crit_edge, label %.lr.ph

.preheader76.._crit_edge_crit_edge:               ; preds = %.preheader76
  %.pre155 = sext i32 %11 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader76.._crit_edge_crit_edge
  %.pre-phi156 = phi i64 [ %.pre155, %.preheader76.._crit_edge_crit_edge ], [ %16, %.lr.ph ]
  %12 = phi i32 [ %11, %.preheader76.._crit_edge_crit_edge ], [ %15, %.lr.ph ]
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %.not63.not = icmp slt i64 %indvars.iv122, %.pre-phi156
  br i1 %.not63.not, label %.preheader76, label %.preheader80, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader76, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader76 ]
  %13 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %indvars.iv122, i64 %indvars.iv
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %13)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %15 = load i32, ptr @N, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %.not72.not = icmp slt i64 %indvars.iv, %16
  br i1 %.not72.not, label %.lr.ph, label %._crit_edge, !llvm.loop !12

.preheader79:                                     ; preds = %._crit_edge88, %8, %.preheader80
  %17 = phi i32 [ %12, %.preheader80 ], [ %10, %8 ], [ %20, %._crit_edge88 ]
  %.not6595 = icmp slt i32 %17, 0
  %.pre149 = load i32, ptr @T, align 4, !tbaa !5
  br i1 %.not6595, label %.preheader78, label %.preheader74.lr.ph

.preheader74.lr.ph:                               ; preds = %.preheader79
  %18 = icmp slt i32 %.pre149, 0
  br i1 %18, label %.preheader77.._crit_edge110_crit_edge, label %.preheader74

.preheader75:                                     ; preds = %.preheader80, %._crit_edge88
  %19 = phi i32 [ %20, %._crit_edge88 ], [ %12, %.preheader80 ]
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %._crit_edge88 ], [ 1, %.preheader80 ]
  %.not7185 = icmp slt i32 %19, 1
  br i1 %.not7185, label %.preheader75.._crit_edge88_crit_edge, label %.lr.ph87

.preheader75.._crit_edge88_crit_edge:             ; preds = %.preheader75
  %.pre153 = sext i32 %19 to i64
  br label %._crit_edge88

._crit_edge88:                                    ; preds = %.lr.ph87, %.preheader75.._crit_edge88_crit_edge
  %.pre-phi154 = phi i64 [ %.pre153, %.preheader75.._crit_edge88_crit_edge ], [ %24, %.lr.ph87 ]
  %20 = phi i32 [ %19, %.preheader75.._crit_edge88_crit_edge ], [ %23, %.lr.ph87 ]
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %.not64.not = icmp slt i64 %indvars.iv128, %.pre-phi154
  br i1 %.not64.not, label %.preheader75, label %.preheader79, !llvm.loop !13

.lr.ph87:                                         ; preds = %.preheader75, %.lr.ph87
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph87 ], [ 1, %.preheader75 ]
  %21 = getelementptr inbounds [260 x [260 x i32]], ptr @risk, i64 0, i64 %indvars.iv128, i64 %indvars.iv125
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %21)
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %23 = load i32, ptr @N, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %.not71.not = icmp slt i64 %indvars.iv125, %24
  br i1 %.not71.not, label %.lr.ph87, label %._crit_edge88, !llvm.loop !14

.preheader78:                                     ; preds = %._crit_edge94, %.preheader79
  %25 = phi i32 [ %.pre149, %.preheader79 ], [ %29, %._crit_edge94 ]
  %.not6697 = icmp slt i32 %25, 0
  br i1 %.not6697, label %.preheader77.._crit_edge110_crit_edge, label %.lr.ph99

.preheader74:                                     ; preds = %.preheader74.lr.ph, %._crit_edge94
  %26 = phi i32 [ %28, %._crit_edge94 ], [ %17, %.preheader74.lr.ph ]
  %27 = phi i32 [ %29, %._crit_edge94 ], [ %.pre149, %.preheader74.lr.ph ]
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %._crit_edge94 ], [ 0, %.preheader74.lr.ph ]
  %.not7091 = icmp slt i32 %27, 0
  br i1 %.not7091, label %._crit_edge94, label %.lr.ph93

._crit_edge94.loopexit:                           ; preds = %.lr.ph93
  %.pre = load i32, ptr @N, align 4, !tbaa !5
  br label %._crit_edge94

._crit_edge94:                                    ; preds = %._crit_edge94.loopexit, %.preheader74
  %28 = phi i32 [ %.pre, %._crit_edge94.loopexit ], [ %26, %.preheader74 ]
  %29 = phi i32 [ %33, %._crit_edge94.loopexit ], [ %27, %.preheader74 ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %30 = sext i32 %28 to i64
  %.not65.not = icmp slt i64 %indvars.iv134, %30
  br i1 %.not65.not, label %.preheader74, label %.preheader78, !llvm.loop !15

.lr.ph93:                                         ; preds = %.preheader74, %.lr.ph93
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %.lr.ph93 ], [ 0, %.preheader74 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @_ZN5stateC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2)
  %31 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %indvars.iv131, i64 %indvars.iv134
  %32 = load i64, ptr %2, align 8
  store i64 %32, ptr %31, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %33 = load i32, ptr @T, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %.not70.not = icmp slt i64 %indvars.iv131, %34
  br i1 %.not70.not, label %.lr.ph93, label %._crit_edge94.loopexit, !llvm.loop !16

.preheader77:                                     ; preds = %.lr.ph99
  %.not67107 = icmp slt i32 %40, 1
  br i1 %.not67107, label %.preheader77.._crit_edge110_crit_edge, label %.preheader73

.preheader77.._crit_edge110_crit_edge:            ; preds = %.preheader74.lr.ph, %.preheader78, %.preheader77
  %35 = phi i32 [ %40, %.preheader77 ], [ %25, %.preheader78 ], [ %.pre149, %.preheader74.lr.ph ]
  %.pre152 = sext i32 %35 to i64
  br label %._crit_edge110

.lr.ph99:                                         ; preds = %.preheader78, %.lr.ph99
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph99 ], [ 0, %.preheader78 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @_ZN5stateC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef 0, i32 noundef 0)
  %36 = load i32, ptr @N, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %indvars.iv137, i64 %37
  %39 = load i64, ptr %3, align 8
  store i64 %39, ptr %38, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %40 = load i32, ptr @T, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %.not66.not = icmp slt i64 %indvars.iv137, %41
  br i1 %.not66.not, label %.lr.ph99, label %.preheader77, !llvm.loop !17

.preheader73:                                     ; preds = %.preheader77, %._crit_edge106
  %42 = phi i32 [ %55, %._crit_edge106 ], [ %40, %.preheader77 ]
  %43 = phi i32 [ %56, %._crit_edge106 ], [ %36, %.preheader77 ]
  %44 = phi i32 [ %57, %._crit_edge106 ], [ %36, %.preheader77 ]
  %45 = phi i32 [ %58, %._crit_edge106 ], [ %36, %.preheader77 ]
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %._crit_edge106 ], [ 1, %.preheader77 ]
  %.not68104 = icmp slt i32 %45, 1
  br i1 %.not68104, label %._crit_edge106, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader73
  %46 = icmp slt i32 %44, 1
  br i1 %46, label %._crit_edge106, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %47 = trunc nuw nsw i64 %indvars.iv146 to i32
  br label %.preheader

._crit_edge110:                                   ; preds = %._crit_edge106, %.preheader77.._crit_edge110_crit_edge
  %.pre-phi = phi i64 [ %.pre152, %.preheader77.._crit_edge110_crit_edge ], [ %59, %._crit_edge106 ]
  %.lcssa = phi i32 [ %35, %.preheader77.._crit_edge110_crit_edge ], [ %55, %._crit_edge106 ]
  %48 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %.pre-phi, i64 1
  %49 = getelementptr inbounds i8, ptr %48, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !18
  %51 = icmp sgt i32 %50, %.lcssa
  br i1 %51, label %91, label %93

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge103
  %52 = phi i32 [ %43, %.preheader.preheader ], [ %60, %._crit_edge103 ]
  %53 = phi i32 [ %44, %.preheader.preheader ], [ %60, %._crit_edge103 ]
  %indvars.iv143 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next144, %._crit_edge103 ]
  %.not69100 = icmp slt i32 %53, 1
  br i1 %.not69100, label %._crit_edge103, label %.lr.ph102

.lr.ph102:                                        ; preds = %.preheader
  %54 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %indvars.iv146, i64 %indvars.iv143
  br label %62

._crit_edge106.loopexit116:                       ; preds = %._crit_edge103
  %.pre151 = load i32, ptr @T, align 4, !tbaa !5
  br label %._crit_edge106

._crit_edge106:                                   ; preds = %.preheader.lr.ph, %._crit_edge106.loopexit116, %.preheader73
  %55 = phi i32 [ %.pre151, %._crit_edge106.loopexit116 ], [ %42, %.preheader73 ], [ %42, %.preheader.lr.ph ]
  %56 = phi i32 [ %60, %._crit_edge106.loopexit116 ], [ %43, %.preheader73 ], [ %43, %.preheader.lr.ph ]
  %57 = phi i32 [ %60, %._crit_edge106.loopexit116 ], [ %44, %.preheader73 ], [ %44, %.preheader.lr.ph ]
  %58 = phi i32 [ %60, %._crit_edge106.loopexit116 ], [ %45, %.preheader73 ], [ %44, %.preheader.lr.ph ]
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %59 = sext i32 %55 to i64
  %.not67.not = icmp slt i64 %indvars.iv146, %59
  br i1 %.not67.not, label %.preheader73, label %._crit_edge110, !llvm.loop !20

._crit_edge103:                                   ; preds = %87, %.preheader
  %60 = phi i32 [ %52, %.preheader ], [ %88, %87 ]
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %61 = sext i32 %60 to i64
  %.not68.not = icmp slt i64 %indvars.iv143, %61
  br i1 %.not68.not, label %.preheader, label %._crit_edge106.loopexit116, !llvm.loop !21

62:                                               ; preds = %.lr.ph102, %87
  %63 = phi i32 [ %52, %.lr.ph102 ], [ %88, %87 ]
  %64 = phi i32 [ %53, %.lr.ph102 ], [ %89, %87 ]
  %indvars.iv140 = phi i64 [ 1, %.lr.ph102 ], [ %indvars.iv.next141, %87 ]
  %65 = icmp eq i64 %indvars.iv143, %indvars.iv140
  br i1 %65, label %87, label %66

66:                                               ; preds = %62
  %67 = getelementptr inbounds [260 x [260 x i32]], ptr @dist, i64 0, i64 %indvars.iv143, i64 %indvars.iv140
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv146, %69
  br i1 %70, label %87, label %71

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZN5stateC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %72 = getelementptr inbounds [260 x [260 x i32]], ptr @risk, i64 0, i64 %indvars.iv143, i64 %indvars.iv140
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %67, align 4, !tbaa !5
  %75 = sub nsw i32 %47, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %76, i64 %indvars.iv140
  %78 = load i32, ptr %77, align 8, !tbaa !22
  %79 = add nsw i32 %78, %73
  store i32 %79, ptr %4, align 8, !tbaa !22
  %80 = getelementptr inbounds [260 x [260 x %struct.state]], ptr @dp, i64 0, i64 %76, i64 %indvars.iv140, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !18
  %82 = add nsw i32 %81, %74
  store i32 %82, ptr %7, align 4, !tbaa !18
  %83 = call noundef zeroext i1 @_ZNK5stateltERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %54)
  br i1 %83, label %84, label %86

84:                                               ; preds = %71
  %85 = load i64, ptr %4, align 8
  store i64 %85, ptr %54, align 8
  br label %86

86:                                               ; preds = %84, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  %.pre150 = load i32, ptr @N, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %62, %66, %86
  %88 = phi i32 [ %63, %62 ], [ %63, %66 ], [ %.pre150, %86 ]
  %89 = phi i32 [ %64, %62 ], [ %64, %66 ], [ %.pre150, %86 ]
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %90 = sext i32 %89 to i64
  %.not69.not = icmp slt i64 %indvars.iv140, %90
  br i1 %.not69.not, label %62, label %._crit_edge103, !llvm.loop !23

91:                                               ; preds = %._crit_edge110
  %92 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %96

93:                                               ; preds = %._crit_edge110
  %94 = load i32, ptr %48, align 8, !tbaa !22
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %94, i32 noundef %50)
  br label %96

96:                                               ; preds = %91, %93
  %97 = add nuw nsw i32 %.060112, 1
  %98 = load i32, ptr %1, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.060112, %98
  br i1 %.not.not, label %8, label %._crit_edge115, !llvm.loop !24
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5stateC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5stateltERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !6, i64 4}
!19 = !{!"_ZTS5state", !6, i64 0, !6, i64 4}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10, !11}
!22 = !{!19, !6, i64 0}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}


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