; LLVM IR from tangjz/acm-icpc :: lydsy/2999.ll (Z5solvei)

; 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.Info = type { i32, i32 }
%struct.Matrix = type { [11 x [11 x %struct.Info]] }

@msk = external dso_local global [11 x i32], align 16
@_ZZ5solveiE3buf = external hidden global [11 x i8], align 1
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ5solveiE3vec = external hidden global [11 x %struct.Info], align 16
@_ZZ5solveiE3tmp = external hidden global [11 x %struct.Info], align 16

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(968) ptr @_Z1Fii(i32 noundef, i32 noundef) #0

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z5solvei(i32 noundef %0) #0 {
  %2 = alloca %struct.Info, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Info, align 4
  %7 = alloca %struct.Info, 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 ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.Info, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.Info, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.Info, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef @_ZZ5solveiE3buf, ptr noundef @.str, i32 noundef %24) #6
  store i32 %25, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i8, ptr @_ZZ5solveiE3buf, i64 %27
  call void @_ZSt7reverseIPcEvT_S1_(ptr noundef @_ZZ5solveiE3buf, ptr noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %39, %1
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 10
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %42

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %34 = getelementptr inbounds %struct.Info, ptr %6, i32 0, i32 0
  store i32 1061109567, ptr %34, align 4, !tbaa !9
  %35 = getelementptr inbounds %struct.Info, ptr %6, i32 0, i32 1
  store i32 0, ptr %35, align 4, !tbaa !11
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %37
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %39

39:                                               ; preds = %33
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %5, align 4, !tbaa !5
  br label %29, !llvm.loop !13

42:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %43 = getelementptr inbounds %struct.Info, ptr %7, i32 0, i32 0
  store i32 0, ptr %43, align 4, !tbaa !9
  %44 = getelementptr inbounds %struct.Info, ptr %7, i32 0, i32 1
  store i32 1, ptr %44, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 1), ptr align 4 %7, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sub nsw i32 %45, 1
  store i32 %46, ptr %9, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %165, %42
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = icmp sge i32 %48, 1
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %168

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [11 x i8], ptr @_ZZ5solveiE3buf, i64 0, i64 %53
  %55 = load i8, ptr %54, align 1, !tbaa !15
  %56 = sext i8 %55 to i32
  %57 = sub nsw i32 %56, 48
  store i32 %57, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %155, %51
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %158

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = load i32, ptr %12, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = or i32 %65, %69
  %71 = call noundef nonnull align 4 dereferenceable(968) ptr @_Z1Fii(i32 noundef %64, i32 noundef %70)
  store ptr %71, ptr %13, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %82, %63
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 10
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %85

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %77 = getelementptr inbounds %struct.Info, ptr %15, i32 0, i32 0
  store i32 1061109567, ptr %77, align 4, !tbaa !9
  %78 = getelementptr inbounds %struct.Info, ptr %15, i32 0, i32 1
  store i32 0, ptr %78, align 4, !tbaa !11
  %79 = load i32, ptr %14, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3tmp, i64 0, i64 %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %82

82:                                               ; preds = %76
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %14, align 4, !tbaa !5
  br label %72, !llvm.loop !18

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

86:                                               ; preds = %136, %85
  %87 = load i32, ptr %16, align 4, !tbaa !5
  %88 = icmp slt i32 %87, 10
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %139

90:                                               ; preds = %86
  %91 = load i32, ptr %16, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %92
  %94 = getelementptr inbounds %struct.Info, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !9
  %96 = icmp eq i32 %95, 1061109567
  br i1 %96, label %97, label %98

97:                                               ; preds = %90
  br label %136

98:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %132, %98
  %100 = load i32, ptr %17, align 4, !tbaa !5
  %101 = icmp slt i32 %100, 10
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %135

103:                                              ; preds = %99
  %104 = load ptr, ptr %13, align 8, !tbaa !16
  %105 = getelementptr inbounds %struct.Matrix, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %16, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %105, i64 0, i64 %107
  %109 = load i32, ptr %17, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [11 x %struct.Info], ptr %108, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.Info, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp slt i32 %113, 1061109567
  br i1 %114, label %115, label %131

115:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %116 = load i32, ptr %16, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %117
  %119 = load ptr, ptr %13, align 8, !tbaa !16
  %120 = getelementptr inbounds %struct.Matrix, ptr %119, i32 0, i32 0
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %120, i64 0, i64 %122
  %124 = load i32, ptr %17, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [11 x %struct.Info], ptr %123, i64 0, i64 %125
  %127 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %118, ptr noundef nonnull align 4 dereferenceable(8) %126)
  store i64 %127, ptr %18, align 4
  %128 = load i32, ptr %17, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3tmp, i64 0, i64 %129
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %130, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %131

131:                                              ; preds = %115, %103
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %17, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %17, align 4, !tbaa !5
  br label %99, !llvm.loop !19

135:                                              ; preds = %102
  br label %136

136:                                              ; preds = %135, %97
  %137 = load i32, ptr %16, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %16, align 4, !tbaa !5
  br label %86, !llvm.loop !20

139:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %151, %139
  %141 = load i32, ptr %19, align 4, !tbaa !5
  %142 = icmp slt i32 %141, 10
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %154

144:                                              ; preds = %140
  %145 = load i32, ptr %19, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3tmp, i64 0, i64 %146
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %150, ptr align 8 %147, i64 8, i1 false), !tbaa.struct !12
  br label %151

151:                                              ; preds = %144
  %152 = load i32, ptr %19, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %19, align 4, !tbaa !5
  br label %140, !llvm.loop !21

154:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %12, align 4, !tbaa !5
  br label %58, !llvm.loop !22

158:                                              ; preds = %62
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = or i32 %163, %162
  store i32 %164, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %165

165:                                              ; preds = %158
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = add nsw i32 %166, -1
  store i32 %167, ptr %9, align 4, !tbaa !5
  br label %47, !llvm.loop !23

168:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %169 = load i8, ptr @_ZZ5solveiE3buf, align 1, !tbaa !15
  %170 = sext i8 %169 to i32
  %171 = sub nsw i32 %170, 48
  store i32 %171, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %230, %168
  %173 = load i32, ptr %21, align 4, !tbaa !5
  %174 = load i32, ptr %20, align 4, !tbaa !5
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %233

177:                                              ; preds = %172
  %178 = load i32, ptr %21, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %179
  %181 = getelementptr inbounds %struct.Info, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 8, !tbaa !9
  %183 = icmp eq i32 %182, 1061109567
  br i1 %183, label %184, label %185

184:                                              ; preds = %177
  br label %230

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

186:                                              ; preds = %226, %185
  %187 = load i32, ptr %21, align 4, !tbaa !5
  %188 = load i32, ptr %22, align 4, !tbaa !5
  %189 = add nsw i32 %187, %188
  %190 = load i32, ptr %20, align 4, !tbaa !5
  %191 = icmp sle i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %186
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %229

193:                                              ; preds = %186
  %194 = load i32, ptr %8, align 4, !tbaa !5
  %195 = load i32, ptr %21, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = or i32 %194, %198
  %200 = load i32, ptr %22, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = and i32 %199, %203
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %225

206:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %207 = getelementptr inbounds %struct.Info, ptr %23, i32 0, i32 0
  %208 = load i32, ptr %21, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %209
  %211 = getelementptr inbounds %struct.Info, ptr %210, i32 0, i32 0
  %212 = load i32, ptr %211, align 8, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %207, align 4, !tbaa !9
  %214 = getelementptr inbounds %struct.Info, ptr %23, i32 0, i32 1
  %215 = load i32, ptr %21, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %216
  %218 = getelementptr inbounds %struct.Info, ptr %217, i32 0, i32 1
  %219 = load i32, ptr %218, align 4, !tbaa !11
  store i32 %219, ptr %214, align 4, !tbaa !11
  %220 = load i32, ptr %21, align 4, !tbaa !5
  %221 = load i32, ptr %22, align 4, !tbaa !5
  %222 = add nsw i32 %220, %221
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %223
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %224, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %225

225:                                              ; preds = %206, %193
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %22, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %22, align 4, !tbaa !5
  br label %186, !llvm.loop !24

229:                                              ; preds = %192
  br label %230

230:                                              ; preds = %229, %184
  %231 = load i32, ptr %21, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %21, align 4, !tbaa !5
  br label %172, !llvm.loop !25

233:                                              ; preds = %176
  %234 = load i32, ptr %20, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %235
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 8 %236, i64 8, i1 false), !tbaa.struct !12
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %237 = load i64, ptr %2, align 4
  ret i64 %237
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPcEvT_S1_(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 "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 = { 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 = !{!10, !6, i64 0}
!10 = !{!"_ZTS4Info", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}


; 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.Info = type { i32, i32 }

@msk = external dso_local local_unnamed_addr global [11 x i32], align 16
@_ZZ5solveiE3buf = external hidden global [11 x i8], align 1
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ5solveiE3vec = external hidden global [11 x %struct.Info], align 16
@_ZZ5solveiE3tmp = external hidden global [11 x %struct.Info], align 16

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(968) ptr @_Z1Fii(i32 noundef, i32 noundef) local_unnamed_addr #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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z5solvei(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.Info, align 8
  %3 = alloca %struct.Info, align 4
  %4 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) @_ZZ5solveiE3buf, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %0) #6
  %5 = sext i32 %4 to i64
  %6 = getelementptr inbounds i8, ptr @_ZZ5solveiE3buf, i64 %5
  tail call void @_ZSt7reverseIPcEvT_S1_(ptr noundef nonnull @_ZZ5solveiE3buf, ptr noundef nonnull %6)
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3vec, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3vec, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3vec, i64 48), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3vec, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 0, i32 1>, ptr @_ZZ5solveiE3vec, align 16, !tbaa !5
  %7 = icmp sgt i32 %4, 1
  br i1 %7, label %.lr.ph84.preheader, label %._crit_edge85

.lr.ph84.preheader:                               ; preds = %1
  %8 = zext nneg i32 %4 to i64
  br label %.lr.ph84

._crit_edge85:                                    ; preds = %._crit_edge, %1
  %.062.lcssa = phi i32 [ 0, %1 ], [ %24, %._crit_edge ]
  %9 = load i8, ptr @_ZZ5solveiE3buf, align 1, !tbaa !9
  %10 = sext i8 %9 to i32
  %11 = add nsw i32 %10, -48
  %12 = icmp sgt i8 %9, 48
  br i1 %12, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %._crit_edge85
  %13 = getelementptr inbounds i8, ptr %3, i64 4
  %14 = add nsw i32 %10, -47
  %wide.trip.count123 = zext i32 %11 to i64
  br label %85

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %._crit_edge
  %indvars.iv104 = phi i64 [ %8, %.lr.ph84.preheader ], [ %indvars.iv.next105, %._crit_edge ]
  %.06281 = phi i32 [ 0, %.lr.ph84.preheader ], [ %24, %._crit_edge ]
  %indvars.iv.next105 = add nsw i64 %indvars.iv104, -1
  %15 = getelementptr inbounds [11 x i8], ptr @_ZZ5solveiE3buf, i64 0, i64 %indvars.iv.next105
  %16 = load i8, ptr %15, align 1, !tbaa !9
  %17 = sext i8 %16 to i32
  %18 = add nsw i32 %17, -48
  %19 = icmp sgt i8 %16, 48
  br i1 %19, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph84
  %wide.trip.count = zext i32 %18 to i64
  %20 = trunc nuw nsw i64 %indvars.iv.next105 to i32
  br label %.lr.ph

._crit_edge:                                      ; preds = %.preheader72.preheader, %.lr.ph84
  %21 = sext i32 %18 to i64
  %22 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = or i32 %23, %.06281
  %25 = icmp sgt i64 %indvars.iv104, 2
  br i1 %25, label %.lr.ph84, label %._crit_edge85, !llvm.loop !10

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.preheader72.preheader
  %indvars.iv100 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next101, %.preheader72.preheader ]
  %26 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %indvars.iv100
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = or i32 %27, %.06281
  %29 = call noundef nonnull align 4 dereferenceable(968) ptr @_Z1Fii(i32 noundef %20, i32 noundef %28)
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr @_ZZ5solveiE3tmp, align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 16), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 48), align 16, !tbaa !5
  store <4 x i32> <i32 1061109567, i32 0, i32 1061109567, i32 0>, ptr getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 64), align 16, !tbaa !5
  br label %.preheader73

.preheader73:                                     ; preds = %.lr.ph, %.loopexit71
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.loopexit71 ]
  %30 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %indvars.iv
  %31 = load i32, ptr %30, align 8, !tbaa !12
  %32 = icmp eq i32 %31, 1061109567
  br i1 %32, label %.loopexit71, label %.preheader70.preheader

.preheader70.preheader:                           ; preds = %.preheader73
  %33 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 0
  %34 = load i32, ptr %33, align 4, !tbaa !12
  %35 = icmp slt i32 %34, 1061109567
  br i1 %35, label %36, label %.preheader70.1

36:                                               ; preds = %.preheader70.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %37 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %33)
  store i64 %37, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) @_ZZ5solveiE3tmp, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.1

.preheader70.1:                                   ; preds = %.preheader70.preheader, %36
  %38 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 1
  %39 = load i32, ptr %38, align 4, !tbaa !12
  %40 = icmp slt i32 %39, 1061109567
  br i1 %40, label %41, label %.preheader70.2

41:                                               ; preds = %.preheader70.1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %42 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %38)
  store i64 %42, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 8), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.2

.preheader70.2:                                   ; preds = %41, %.preheader70.1
  %43 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 2
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = icmp slt i32 %44, 1061109567
  br i1 %45, label %46, label %.preheader70.3

46:                                               ; preds = %.preheader70.2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %47 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %43)
  store i64 %47, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 16), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.3

.preheader70.3:                                   ; preds = %46, %.preheader70.2
  %48 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 3
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = icmp slt i32 %49, 1061109567
  br i1 %50, label %51, label %.preheader70.4

51:                                               ; preds = %.preheader70.3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %52 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %48)
  store i64 %52, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 24), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.4

.preheader70.4:                                   ; preds = %51, %.preheader70.3
  %53 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !12
  %55 = icmp slt i32 %54, 1061109567
  br i1 %55, label %56, label %.preheader70.5

56:                                               ; preds = %.preheader70.4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %57 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %53)
  store i64 %57, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 32), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.5

.preheader70.5:                                   ; preds = %56, %.preheader70.4
  %58 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 5
  %59 = load i32, ptr %58, align 4, !tbaa !12
  %60 = icmp slt i32 %59, 1061109567
  br i1 %60, label %61, label %.preheader70.6

61:                                               ; preds = %.preheader70.5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %62 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %58)
  store i64 %62, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 40), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.6

.preheader70.6:                                   ; preds = %61, %.preheader70.5
  %63 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 6
  %64 = load i32, ptr %63, align 4, !tbaa !12
  %65 = icmp slt i32 %64, 1061109567
  br i1 %65, label %66, label %.preheader70.7

66:                                               ; preds = %.preheader70.6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %67 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %63)
  store i64 %67, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 48), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.7

.preheader70.7:                                   ; preds = %66, %.preheader70.6
  %68 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 7
  %69 = load i32, ptr %68, align 4, !tbaa !12
  %70 = icmp slt i32 %69, 1061109567
  br i1 %70, label %71, label %.preheader70.8

71:                                               ; preds = %.preheader70.7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %72 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %68)
  store i64 %72, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 56), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.8

.preheader70.8:                                   ; preds = %71, %.preheader70.7
  %73 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 8
  %74 = load i32, ptr %73, align 4, !tbaa !12
  %75 = icmp slt i32 %74, 1061109567
  br i1 %75, label %76, label %.preheader70.9

76:                                               ; preds = %.preheader70.8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %77 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %73)
  store i64 %77, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 64), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.preheader70.9

.preheader70.9:                                   ; preds = %76, %.preheader70.8
  %78 = getelementptr inbounds [11 x [11 x %struct.Info]], ptr %29, i64 0, i64 %indvars.iv, i64 9
  %79 = load i32, ptr %78, align 4, !tbaa !12
  %80 = icmp slt i32 %79, 1061109567
  br i1 %80, label %81, label %.loopexit71

81:                                               ; preds = %.preheader70.9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %82 = call i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %78)
  store i64 %82, ptr %2, align 8
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZZ5solveiE3tmp, i64 72), ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %.loopexit71

.loopexit71:                                      ; preds = %.preheader70.9, %81, %.preheader73
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10
  br i1 %exitcond.not, label %.preheader72.preheader, label %.preheader73, !llvm.loop !14

.preheader72.preheader:                           ; preds = %.loopexit71
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) @_ZZ5solveiE3vec, ptr noundef nonnull align 16 dereferenceable(80) @_ZZ5solveiE3tmp, i64 80, i1 false)
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next101, %wide.trip.count
  br i1 %exitcond103.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge92:                                    ; preds = %.loopexit, %._crit_edge85
  %83 = sext i32 %11 to i64
  %84 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %83
  %.sroa.056.0.copyload = load i64, ptr %84, align 8
  ret i64 %.sroa.056.0.copyload

85:                                               ; preds = %.lr.ph91, %.loopexit
  %indvars.iv120 = phi i64 [ 0, %.lr.ph91 ], [ %indvars.iv.next121, %.loopexit ]
  %indvars.iv116 = phi i32 [ %14, %.lr.ph91 ], [ %indvars.iv.next117, %.loopexit ]
  %indvars.iv107 = phi i64 [ 1, %.lr.ph91 ], [ %indvars.iv.next108, %.loopexit ]
  %86 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %indvars.iv120
  %87 = load i32, ptr %86, align 8, !tbaa !12
  %88 = icmp eq i32 %87, 1061109567
  br i1 %88, label %.loopexit, label %.lr.ph88

.lr.ph88:                                         ; preds = %85
  %89 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %indvars.iv120
  %90 = getelementptr inbounds i8, ptr %86, i64 4
  %wide.trip.count118 = zext i32 %indvars.iv116 to i64
  br label %91

91:                                               ; preds = %.lr.ph88, %102
  %indvars.iv111 = phi i64 [ 1, %.lr.ph88 ], [ %indvars.iv.next112, %102 ]
  %indvars.iv109 = phi i64 [ %indvars.iv107, %.lr.ph88 ], [ %indvars.iv.next110, %102 ]
  %92 = load i32, ptr %89, align 4, !tbaa !5
  %93 = or i32 %92, %.062.lcssa
  %94 = getelementptr inbounds [11 x i32], ptr @msk, i64 0, i64 %indvars.iv111
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = and i32 %93, %95
  %.not69 = icmp eq i32 %96, 0
  br i1 %.not69, label %102, label %97

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %98 = load i32, ptr %86, align 8, !tbaa !12
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %3, align 4, !tbaa !12
  %100 = load i32, ptr %90, align 4, !tbaa !16
  store i32 %100, ptr %13, align 4, !tbaa !16
  %101 = getelementptr inbounds [11 x %struct.Info], ptr @_ZZ5solveiE3vec, i64 0, i64 %indvars.iv109
  call void @_ZN4InfopLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %101, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %102

102:                                              ; preds = %91, %97
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond119 = icmp eq i64 %indvars.iv.next112, %wide.trip.count118
  br i1 %exitcond119, label %.loopexit, label %91, !llvm.loop !17

.loopexit:                                        ; preds = %102, %85
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %indvars.iv.next117 = add nsw i32 %indvars.iv116, -1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %wide.trip.count123
  br i1 %exitcond124.not, label %._crit_edge92, label %85, !llvm.loop !18
}

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPcEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4InfomlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 #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 = { 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 = !{!13, !6, i64 0}
!13 = !{!"_ZTS4Info", !6, i64 0, !6, i64 4}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = !{!13, !6, i64 4}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass