; LLVM IR from upupming/algorithm :: kick-start/2021/RoundC/C.  Rock Paper Scissors.ll (Z5solvev)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@w = external dso_local global double, align 8
@e = external dso_local global double, align 8
@ch = external dso_local global [65 x [65 x [65 x i8]]], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [65 x [65 x [65 x double]]], align 16
  %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 double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 2197000, ptr %1) #6
  call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 2197000, i1 false)
  %24 = getelementptr inbounds <{ <{ <{ double, [64 x double] }>, [64 x <{ double, [64 x double] }>] }>, [64 x <{ <{ double, [64 x double] }>, [64 x <{ double, [64 x double] }>] }>] }>, ptr %1, i32 0, i32 0
  %25 = getelementptr inbounds <{ <{ double, [64 x double] }>, [64 x <{ double, [64 x double] }>] }>, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds <{ double, [64 x double] }>, ptr %25, i32 0, i32 0
  store double -1.000000e+00, ptr %26, align 16
  %27 = load double, ptr @w, align 8, !tbaa !5
  %28 = load double, ptr @e, align 8, !tbaa !5
  %29 = fadd double %27, %28
  %30 = fdiv double %29, 3.000000e+00
  %31 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 1
  %32 = getelementptr inbounds [65 x [65 x double]], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds [65 x double], ptr %32, i64 0, i64 0
  store double %30, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 1
  %35 = getelementptr inbounds [65 x [65 x double]], ptr %34, i64 0, i64 0
  %36 = getelementptr inbounds [65 x double], ptr %35, i64 0, i64 1
  store double %30, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 1
  %38 = getelementptr inbounds [65 x [65 x double]], ptr %37, i64 0, i64 1
  %39 = getelementptr inbounds [65 x double], ptr %38, i64 0, i64 0
  store double %30, ptr %39, align 8, !tbaa !5
  store i8 114, ptr getelementptr inbounds ([65 x [65 x i8]], ptr getelementptr inbounds ([65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 1), i64 0, i64 1), align 1, !tbaa !9
  store i8 115, ptr getelementptr inbounds ([65 x i8], ptr getelementptr inbounds ([65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 1), i64 0, i64 1), align 1, !tbaa !9
  store i8 112, ptr getelementptr inbounds ([65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 1), align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !10
  br label %40

40:                                               ; preds = %285, %0
  %41 = load i32, ptr %2, align 4, !tbaa !10
  %42 = icmp sle i32 %41, 60
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %288

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

45:                                               ; preds = %281, %44
  %46 = load i32, ptr %4, align 4, !tbaa !10
  %47 = load i32, ptr %2, align 4, !tbaa !10
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %284

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

51:                                               ; preds = %277, %50
  %52 = load i32, ptr %5, align 4, !tbaa !10
  %53 = load i32, ptr %4, align 4, !tbaa !10
  %54 = add nsw i32 %52, %53
  %55 = load i32, ptr %2, align 4, !tbaa !10
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %59 = load i32, ptr %2, align 4, !tbaa !10
  %60 = load i32, ptr %4, align 4, !tbaa !10
  %61 = sub nsw i32 %59, %60
  %62 = load i32, ptr %5, align 4, !tbaa !10
  %63 = sub nsw i32 %61, %62
  store i32 %63, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %64 = load i32, ptr %4, align 4, !tbaa !10
  %65 = sitofp i32 %64 to double
  %66 = load i32, ptr %2, align 4, !tbaa !10
  %67 = sitofp i32 %66 to double
  %68 = fdiv double %65, %67
  store double %68, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %69 = load i32, ptr %5, align 4, !tbaa !10
  %70 = sitofp i32 %69 to double
  %71 = load i32, ptr %2, align 4, !tbaa !10
  %72 = sitofp i32 %71 to double
  %73 = fdiv double %70, %72
  store double %73, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %74 = load i32, ptr %6, align 4, !tbaa !10
  %75 = sitofp i32 %74 to double
  %76 = load i32, ptr %2, align 4, !tbaa !10
  %77 = sitofp i32 %76 to double
  %78 = fdiv double %75, %77
  store double %78, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %79 = load double, ptr %9, align 8, !tbaa !5
  %80 = load double, ptr @w, align 8, !tbaa !5
  %81 = load double, ptr %8, align 8, !tbaa !5
  %82 = load double, ptr @e, align 8, !tbaa !5
  %83 = fmul double %81, %82
  %84 = call double @llvm.fmuladd.f64(double %79, double %80, double %83)
  store double %84, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %85 = load double, ptr %7, align 8, !tbaa !5
  %86 = load double, ptr @w, align 8, !tbaa !5
  %87 = load double, ptr %9, align 8, !tbaa !5
  %88 = load double, ptr @e, align 8, !tbaa !5
  %89 = fmul double %87, %88
  %90 = call double @llvm.fmuladd.f64(double %85, double %86, double %89)
  store double %90, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %91 = load double, ptr %8, align 8, !tbaa !5
  %92 = load double, ptr @w, align 8, !tbaa !5
  %93 = load double, ptr %7, align 8, !tbaa !5
  %94 = load double, ptr @e, align 8, !tbaa !5
  %95 = fmul double %93, %94
  %96 = call double @llvm.fmuladd.f64(double %91, double %92, double %95)
  store double %96, ptr %12, align 8, !tbaa !5
  %97 = load i32, ptr %2, align 4, !tbaa !10
  %98 = add nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %99
  %101 = load i32, ptr %4, align 4, !tbaa !10
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [65 x [65 x double]], ptr %100, i64 0, i64 %103
  %105 = load i32, ptr %5, align 4, !tbaa !10
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [65 x double], ptr %104, i64 0, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !5
  %109 = load i32, ptr %2, align 4, !tbaa !10
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %110
  %112 = load i32, ptr %4, align 4, !tbaa !10
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [65 x [65 x double]], ptr %111, i64 0, i64 %113
  %115 = load i32, ptr %5, align 4, !tbaa !10
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [65 x double], ptr %114, i64 0, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = load double, ptr %10, align 8, !tbaa !5
  %120 = fadd double %118, %119
  %121 = fcmp olt double %108, %120
  br i1 %121, label %122, label %157

122:                                              ; preds = %58
  %123 = load i32, ptr %2, align 4, !tbaa !10
  %124 = add nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %125
  %127 = load i32, ptr %4, align 4, !tbaa !10
  %128 = add nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [65 x [65 x i8]], ptr %126, i64 0, i64 %129
  %131 = load i32, ptr %5, align 4, !tbaa !10
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [65 x i8], ptr %130, i64 0, i64 %132
  store i8 114, ptr %133, align 1, !tbaa !9
  %134 = load i32, ptr %2, align 4, !tbaa !10
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %135
  %137 = load i32, ptr %4, align 4, !tbaa !10
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [65 x [65 x double]], ptr %136, i64 0, i64 %138
  %140 = load i32, ptr %5, align 4, !tbaa !10
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [65 x double], ptr %139, i64 0, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = load double, ptr %10, align 8, !tbaa !5
  %145 = fadd double %143, %144
  %146 = load i32, ptr %2, align 4, !tbaa !10
  %147 = add nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %148
  %150 = load i32, ptr %4, align 4, !tbaa !10
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [65 x [65 x double]], ptr %149, i64 0, i64 %152
  %154 = load i32, ptr %5, align 4, !tbaa !10
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [65 x double], ptr %153, i64 0, i64 %155
  store double %145, ptr %156, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %122, %58
  %158 = load i32, ptr %2, align 4, !tbaa !10
  %159 = add nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %160
  %162 = load i32, ptr %4, align 4, !tbaa !10
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [65 x [65 x double]], ptr %161, i64 0, i64 %163
  %165 = load i32, ptr %5, align 4, !tbaa !10
  %166 = add nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [65 x double], ptr %164, i64 0, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !5
  %170 = load i32, ptr %2, align 4, !tbaa !10
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %171
  %173 = load i32, ptr %4, align 4, !tbaa !10
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [65 x [65 x double]], ptr %172, i64 0, i64 %174
  %176 = load i32, ptr %5, align 4, !tbaa !10
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [65 x double], ptr %175, i64 0, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !5
  %180 = load double, ptr %11, align 8, !tbaa !5
  %181 = fadd double %179, %180
  %182 = fcmp olt double %169, %181
  br i1 %182, label %183, label %218

183:                                              ; preds = %157
  %184 = load i32, ptr %2, align 4, !tbaa !10
  %185 = add nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %186
  %188 = load i32, ptr %4, align 4, !tbaa !10
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [65 x [65 x i8]], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %5, align 4, !tbaa !10
  %192 = add nsw i32 %191, 1
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [65 x i8], ptr %190, i64 0, i64 %193
  store i8 115, ptr %194, align 1, !tbaa !9
  %195 = load i32, ptr %2, align 4, !tbaa !10
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %196
  %198 = load i32, ptr %4, align 4, !tbaa !10
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [65 x [65 x double]], ptr %197, i64 0, i64 %199
  %201 = load i32, ptr %5, align 4, !tbaa !10
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [65 x double], ptr %200, i64 0, i64 %202
  %204 = load double, ptr %203, align 8, !tbaa !5
  %205 = load double, ptr %11, align 8, !tbaa !5
  %206 = fadd double %204, %205
  %207 = load i32, ptr %2, align 4, !tbaa !10
  %208 = add nsw i32 %207, 1
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %209
  %211 = load i32, ptr %4, align 4, !tbaa !10
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [65 x [65 x double]], ptr %210, i64 0, i64 %212
  %214 = load i32, ptr %5, align 4, !tbaa !10
  %215 = add nsw i32 %214, 1
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [65 x double], ptr %213, i64 0, i64 %216
  store double %206, ptr %217, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %183, %157
  %219 = load i32, ptr %2, align 4, !tbaa !10
  %220 = add nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %221
  %223 = load i32, ptr %4, align 4, !tbaa !10
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [65 x [65 x double]], ptr %222, i64 0, i64 %224
  %226 = load i32, ptr %5, align 4, !tbaa !10
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [65 x double], ptr %225, i64 0, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !5
  %230 = load i32, ptr %2, align 4, !tbaa !10
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %231
  %233 = load i32, ptr %4, align 4, !tbaa !10
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [65 x [65 x double]], ptr %232, i64 0, i64 %234
  %236 = load i32, ptr %5, align 4, !tbaa !10
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [65 x double], ptr %235, i64 0, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !5
  %240 = load double, ptr %12, align 8, !tbaa !5
  %241 = fadd double %239, %240
  %242 = fcmp olt double %229, %241
  br i1 %242, label %243, label %276

243:                                              ; preds = %218
  %244 = load i32, ptr %2, align 4, !tbaa !10
  %245 = add nsw i32 %244, 1
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %246
  %248 = load i32, ptr %4, align 4, !tbaa !10
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [65 x [65 x i8]], ptr %247, i64 0, i64 %249
  %251 = load i32, ptr %5, align 4, !tbaa !10
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [65 x i8], ptr %250, i64 0, i64 %252
  store i8 112, ptr %253, align 1, !tbaa !9
  %254 = load i32, ptr %2, align 4, !tbaa !10
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %255
  %257 = load i32, ptr %4, align 4, !tbaa !10
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [65 x [65 x double]], ptr %256, i64 0, i64 %258
  %260 = load i32, ptr %5, align 4, !tbaa !10
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [65 x double], ptr %259, i64 0, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !5
  %264 = load double, ptr %12, align 8, !tbaa !5
  %265 = fadd double %263, %264
  %266 = load i32, ptr %2, align 4, !tbaa !10
  %267 = add nsw i32 %266, 1
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %268
  %270 = load i32, ptr %4, align 4, !tbaa !10
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [65 x [65 x double]], ptr %269, i64 0, i64 %271
  %273 = load i32, ptr %5, align 4, !tbaa !10
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [65 x double], ptr %272, i64 0, i64 %274
  store double %265, ptr %275, align 8, !tbaa !5
  br label %276

276:                                              ; preds = %243, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %5, align 4, !tbaa !10
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %5, align 4, !tbaa !10
  br label %51, !llvm.loop !12

280:                                              ; preds = %57
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %4, align 4, !tbaa !10
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %4, align 4, !tbaa !10
  br label %45, !llvm.loop !14

284:                                              ; preds = %49
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %2, align 4, !tbaa !10
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %2, align 4, !tbaa !10
  br label %40, !llvm.loop !15

288:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 60, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double -1.000000e+00, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !10
  br label %289

289:                                              ; preds = %327, %288
  %290 = load i32, ptr %17, align 4, !tbaa !10
  %291 = icmp sle i32 %290, 60
  br i1 %291, label %293, label %292

292:                                              ; preds = %289
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %330

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

294:                                              ; preds = %323, %293
  %295 = load i32, ptr %17, align 4, !tbaa !10
  %296 = load i32, ptr %18, align 4, !tbaa !10
  %297 = add nsw i32 %295, %296
  %298 = icmp sle i32 %297, 60
  br i1 %298, label %300, label %299

299:                                              ; preds = %294
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %326

300:                                              ; preds = %294
  %301 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 60
  %302 = load i32, ptr %17, align 4, !tbaa !10
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [65 x [65 x double]], ptr %301, i64 0, i64 %303
  %305 = load i32, ptr %18, align 4, !tbaa !10
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [65 x double], ptr %304, i64 0, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !5
  %309 = load double, ptr %16, align 8, !tbaa !5
  %310 = fcmp ogt double %308, %309
  br i1 %310, label %311, label %322

311:                                              ; preds = %300
  %312 = load i32, ptr %17, align 4, !tbaa !10
  store i32 %312, ptr %14, align 4, !tbaa !10
  %313 = load i32, ptr %18, align 4, !tbaa !10
  store i32 %313, ptr %15, align 4, !tbaa !10
  %314 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 60
  %315 = load i32, ptr %17, align 4, !tbaa !10
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [65 x [65 x double]], ptr %314, i64 0, i64 %316
  %318 = load i32, ptr %18, align 4, !tbaa !10
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [65 x double], ptr %317, i64 0, i64 %319
  %321 = load double, ptr %320, align 8, !tbaa !5
  store double %321, ptr %16, align 8, !tbaa !5
  br label %322

322:                                              ; preds = %311, %300
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %18, align 4, !tbaa !10
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %18, align 4, !tbaa !10
  br label %294, !llvm.loop !16

326:                                              ; preds = %299
  br label %327

327:                                              ; preds = %326
  %328 = load i32, ptr %17, align 4, !tbaa !10
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %17, align 4, !tbaa !10
  br label %289, !llvm.loop !17

330:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %331

331:                                              ; preds = %363, %330
  %332 = load i32, ptr %13, align 4, !tbaa !10
  %333 = icmp sge i32 %332, 1
  br i1 %333, label %334, label %366

334:                                              ; preds = %331
  %335 = load i32, ptr %13, align 4, !tbaa !10
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %336
  %338 = load i32, ptr %14, align 4, !tbaa !10
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [65 x [65 x i8]], ptr %337, i64 0, i64 %339
  %341 = load i32, ptr %15, align 4, !tbaa !10
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [65 x i8], ptr %340, i64 0, i64 %342
  %344 = load i8, ptr %343, align 1, !tbaa !9
  %345 = sext i8 %344 to i32
  switch i32 %345, label %363 [
    i32 114, label %346
    i32 115, label %355
    i32 112, label %360
  ]

346:                                              ; preds = %334
  %347 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %19, i8 noundef signext 82)
          to label %348 unwind label %351

348:                                              ; preds = %346
  %349 = load i32, ptr %14, align 4, !tbaa !10
  %350 = add nsw i32 %349, -1
  store i32 %350, ptr %14, align 4, !tbaa !10
  br label %363

351:                                              ; preds = %377, %375, %366, %360, %355, %346
  %352 = landingpad { ptr, i32 }
          cleanup
  %353 = extractvalue { ptr, i32 } %352, 0
  store ptr %353, ptr %20, align 8
  %354 = extractvalue { ptr, i32 } %352, 1
  store i32 %354, ptr %21, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 2197000, ptr %1) #6
  br label %380

355:                                              ; preds = %334
  %356 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %19, i8 noundef signext 83)
          to label %357 unwind label %351

357:                                              ; preds = %355
  %358 = load i32, ptr %15, align 4, !tbaa !10
  %359 = add nsw i32 %358, -1
  store i32 %359, ptr %15, align 4, !tbaa !10
  br label %363

360:                                              ; preds = %334
  %361 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %19, i8 noundef signext 80)
          to label %362 unwind label %351

362:                                              ; preds = %360
  br label %363

363:                                              ; preds = %362, %357, %348, %334
  %364 = load i32, ptr %13, align 4, !tbaa !10
  %365 = add nsw i32 %364, -1
  store i32 %365, ptr %13, align 4, !tbaa !10
  br label %331, !llvm.loop !18

366:                                              ; preds = %331
  %367 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  %368 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %367, ptr %368, align 8
  %369 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  %370 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %369, ptr %370, align 8
  %371 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %372 = load ptr, ptr %371, align 8
  %373 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %374 = load ptr, ptr %373, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %372, ptr %374)
          to label %375 unwind label %351

375:                                              ; preds = %366
  %376 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %377 unwind label %351

377:                                              ; preds = %375
  %378 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %376, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %379 unwind label %351

379:                                              ; preds = %377
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 2197000, ptr %1) #6
  ret void

380:                                              ; preds = %351
  %381 = load ptr, ptr %20, align 8
  %382 = load i32, ptr %21, align 4
  %383 = insertvalue { ptr, i32 } poison, ptr %381, 0
  %384 = insertvalue { ptr, i32 } %383, i32 %382, 1
  resume { ptr, i32 } %384
}

; 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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@w = external dso_local local_unnamed_addr global double, align 8
@e = external dso_local local_unnamed_addr global double, align 8
@ch = external dso_local local_unnamed_addr global [65 x [65 x [65 x i8]]], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [65 x [65 x [65 x double]]], align 16
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 2197000, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(2197000) %1, i8 0, i64 2197000, i1 false)
  store double -1.000000e+00, ptr %1, align 16
  %3 = load double, ptr @w, align 8, !tbaa !5
  %4 = load double, ptr @e, align 8, !tbaa !5
  %5 = fadd double %3, %4
  %6 = fdiv double %5, 3.000000e+00
  %7 = getelementptr inbounds i8, ptr %1, i64 33800
  store double %6, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 33808
  store double %6, ptr %8, align 16, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 34320
  store double %6, ptr %9, align 16, !tbaa !5
  store i8 114, ptr getelementptr inbounds (i8, ptr @ch, i64 4290), align 2, !tbaa !9
  store i8 115, ptr getelementptr inbounds (i8, ptr @ch, i64 4226), align 2, !tbaa !9
  store i8 112, ptr getelementptr inbounds (i8, ptr @ch, i64 4225), align 1, !tbaa !9
  br label %.preheader114

.preheader114:                                    ; preds = %0, %18
  %indvars.iv141 = phi i64 [ 1, %0 ], [ %indvars.iv.next142, %18 ]
  %indvars.iv139 = phi i64 [ 2, %0 ], [ %indvars.iv.next140, %18 ]
  %10 = trunc nuw nsw i64 %indvars.iv141 to i32
  %11 = uitofp nneg i32 %10 to double
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %12 = trunc nuw nsw i64 %indvars.iv139 to i32
  br label %.preheader113

.preheader112:                                    ; preds = %18
  %13 = getelementptr inbounds i8, ptr %1, i64 2028000
  br label %.preheader

.preheader113:                                    ; preds = %.preheader114, %19
  %indvars.iv134 = phi i64 [ 0, %.preheader114 ], [ %indvars.iv.next135, %19 ]
  %indvars.iv132 = phi i32 [ %12, %.preheader114 ], [ %indvars.iv.next133, %19 ]
  %14 = trunc nuw nsw i64 %indvars.iv134 to i32
  %15 = uitofp nneg i32 %14 to double
  %16 = fdiv double %15, %11
  %17 = fmul double %4, %16
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %wide.trip.count = zext i32 %indvars.iv132 to i64
  br label %20

18:                                               ; preds = %19
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next142, 61
  br i1 %exitcond146.not, label %.preheader112, label %.preheader114, !llvm.loop !10

19:                                               ; preds = %56
  %indvars.iv.next133 = add nsw i32 %indvars.iv132, -1
  %exitcond138.not = icmp eq i64 %indvars.iv.next135, %indvars.iv139
  br i1 %exitcond138.not, label %18, label %.preheader113, !llvm.loop !12

20:                                               ; preds = %.preheader113, %56
  %indvars.iv = phi i64 [ 0, %.preheader113 ], [ %indvars.iv.next, %56 ]
  %21 = add nuw nsw i64 %indvars.iv, %indvars.iv134
  %22 = sub nsw i64 %indvars.iv141, %21
  %23 = trunc nuw nsw i64 %indvars.iv to i32
  %24 = uitofp nneg i32 %23 to double
  %25 = fdiv double %24, %11
  %26 = trunc nsw i64 %22 to i32
  %27 = sitofp i32 %26 to double
  %28 = fdiv double %27, %11
  %29 = fmul double %4, %25
  %30 = tail call double @llvm.fmuladd.f64(double %28, double %3, double %29)
  %31 = fmul double %4, %28
  %32 = tail call double @llvm.fmuladd.f64(double %16, double %3, double %31)
  %33 = tail call double @llvm.fmuladd.f64(double %25, double %3, double %17)
  %34 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %indvars.iv.next142, i64 %indvars.iv.next135, i64 %indvars.iv
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %indvars.iv141, i64 %indvars.iv134, i64 %indvars.iv
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = fadd double %30, %37
  %39 = fcmp olt double %35, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %20
  %41 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %indvars.iv.next142, i64 %indvars.iv.next135, i64 %indvars.iv
  store i8 114, ptr %41, align 1, !tbaa !9
  store double %38, ptr %34, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %40, %20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %43 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %indvars.iv.next142, i64 %indvars.iv134, i64 %indvars.iv.next
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = fadd double %32, %37
  %46 = fcmp olt double %44, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %42
  %48 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %indvars.iv.next142, i64 %indvars.iv134, i64 %indvars.iv.next
  store i8 115, ptr %48, align 1, !tbaa !9
  store double %45, ptr %43, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %47, %42
  %50 = getelementptr inbounds [65 x [65 x [65 x double]]], ptr %1, i64 0, i64 %indvars.iv.next142, i64 %indvars.iv134, i64 %indvars.iv
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = fadd double %33, %37
  %53 = fcmp olt double %51, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %49
  %55 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %indvars.iv.next142, i64 %indvars.iv134, i64 %indvars.iv
  store i8 112, ptr %55, align 1, !tbaa !9
  store double %52, ptr %50, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %54, %49
  %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond, label %19, label %20, !llvm.loop !13

.preheader:                                       ; preds = %.preheader112, %64
  %indvars.iv156 = phi i64 [ 0, %.preheader112 ], [ %indvars.iv.next157, %64 ]
  %indvars.iv154 = phi i64 [ 61, %.preheader112 ], [ %indvars.iv.next155, %64 ]
  %.0100124 = phi double [ -1.000000e+00, %.preheader112 ], [ %.2.lcssa, %64 ]
  %.0101123 = phi i32 [ undef, %.preheader112 ], [ %.2103.lcssa, %64 ]
  %.0104122 = phi i32 [ undef, %.preheader112 ], [ %.2106.lcssa, %64 ]
  %57 = trunc nuw nsw i64 %indvars.iv156 to i32
  %xtraiter = and i64 %indvars.iv154, 1
  %58 = icmp eq i64 %indvars.iv156, 60
  br i1 %58, label %.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter = and i64 %indvars.iv154, -2
  br label %65

59:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %75

.unr-lcssa:                                       ; preds = %65, %.preheader
  %.2106.lcssa.ph = phi i32 [ poison, %.preheader ], [ %.2106.1, %65 ]
  %.2103.lcssa.ph = phi i32 [ poison, %.preheader ], [ %.2103.1, %65 ]
  %.2.lcssa.ph = phi double [ poison, %.preheader ], [ %.2.1, %65 ]
  %indvars.iv147.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next148.1, %65 ]
  %.1120.unr = phi double [ %.0100124, %.preheader ], [ %.2.1, %65 ]
  %.1102119.unr = phi i32 [ %.0101123, %.preheader ], [ %.2103.1, %65 ]
  %.1105118.unr = phi i32 [ %.0104122, %.preheader ], [ %.2106.1, %65 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %64, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %60 = getelementptr inbounds [65 x [65 x double]], ptr %13, i64 0, i64 %indvars.iv156, i64 %indvars.iv147.unr
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = fcmp ogt double %61, %.1120.unr
  %.2106.epil = select i1 %62, i32 %57, i32 %.1105118.unr
  %63 = trunc nuw nsw i64 %indvars.iv147.unr to i32
  %.2103.epil = select i1 %62, i32 %63, i32 %.1102119.unr
  %.2.epil = select i1 %62, double %61, double %.1120.unr
  br label %64

64:                                               ; preds = %.unr-lcssa, %.epilog-lcssa
  %.2106.lcssa = phi i32 [ %.2106.lcssa.ph, %.unr-lcssa ], [ %.2106.epil, %.epilog-lcssa ]
  %.2103.lcssa = phi i32 [ %.2103.lcssa.ph, %.unr-lcssa ], [ %.2103.epil, %.epilog-lcssa ]
  %.2.lcssa = phi double [ %.2.lcssa.ph, %.unr-lcssa ], [ %.2.epil, %.epilog-lcssa ]
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %indvars.iv.next155 = add nsw i64 %indvars.iv154, -1
  %exitcond161.not = icmp eq i64 %indvars.iv.next157, 61
  br i1 %exitcond161.not, label %59, label %.preheader, !llvm.loop !14

65:                                               ; preds = %65, %.preheader.new
  %indvars.iv147 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next148.1, %65 ]
  %.1120 = phi double [ %.0100124, %.preheader.new ], [ %.2.1, %65 ]
  %.1102119 = phi i32 [ %.0101123, %.preheader.new ], [ %.2103.1, %65 ]
  %.1105118 = phi i32 [ %.0104122, %.preheader.new ], [ %.2106.1, %65 ]
  %niter = phi i64 [ 0, %.preheader.new ], [ %niter.next.1, %65 ]
  %66 = getelementptr inbounds [65 x [65 x double]], ptr %13, i64 0, i64 %indvars.iv156, i64 %indvars.iv147
  %67 = load double, ptr %66, align 8, !tbaa !5
  %68 = fcmp ogt double %67, %.1120
  %69 = trunc nuw nsw i64 %indvars.iv147 to i32
  %.2103 = select i1 %68, i32 %69, i32 %.1102119
  %.2 = select i1 %68, double %67, double %.1120
  %indvars.iv.next148 = or disjoint i64 %indvars.iv147, 1
  %70 = getelementptr inbounds [65 x [65 x double]], ptr %13, i64 0, i64 %indvars.iv156, i64 %indvars.iv.next148
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = fcmp ogt double %71, %.2
  %73 = or i1 %72, %68
  %.2106.1 = select i1 %73, i32 %57, i32 %.1105118
  %74 = trunc nuw nsw i64 %indvars.iv.next148 to i32
  %.2103.1 = select i1 %72, i32 %74, i32 %.2103
  %.2.1 = select i1 %72, double %71, double %.2
  %indvars.iv.next148.1 = add nuw nsw i64 %indvars.iv147, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %65, !llvm.loop !15

75:                                               ; preds = %59, %91
  %indvars.iv162 = phi i64 [ 60, %59 ], [ %indvars.iv.next163, %91 ]
  %.3128 = phi i32 [ %.2103.lcssa, %59 ], [ %.4, %91 ]
  %.3107127 = phi i32 [ %.2106.lcssa, %59 ], [ %.4108, %91 ]
  %76 = sext i32 %.3107127 to i64
  %77 = sext i32 %.3128 to i64
  %78 = getelementptr inbounds [65 x [65 x [65 x i8]]], ptr @ch, i64 0, i64 %indvars.iv162, i64 %76, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !9
  switch i8 %79, label %91 [
    i8 114, label %80
    i8 115, label %85
    i8 112, label %89
  ]

80:                                               ; preds = %75
  %81 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 82)
          to label %82 unwind label %.loopexit

82:                                               ; preds = %80
  %83 = add nsw i32 %.3107127, -1
  br label %91

.loopexit:                                        ; preds = %80, %85, %89
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %84

.loopexit.split-lp:                               ; preds = %93, %96, %98
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %84

84:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 2197000, ptr nonnull %1) #6
  resume { ptr, i32 } %lpad.phi

85:                                               ; preds = %75
  %86 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 83)
          to label %87 unwind label %.loopexit

87:                                               ; preds = %85
  %88 = add nsw i32 %.3128, -1
  br label %91

89:                                               ; preds = %75
  %90 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 80)
          to label %91 unwind label %.loopexit

91:                                               ; preds = %89, %87, %82, %75
  %.4108 = phi i32 [ %.3107127, %75 ], [ %.3107127, %89 ], [ %.3107127, %87 ], [ %83, %82 ]
  %.4 = phi i32 [ %.3128, %75 ], [ %.3128, %89 ], [ %88, %87 ], [ %.3128, %82 ]
  %indvars.iv.next163 = add nsw i64 %indvars.iv162, -1
  %92 = icmp ugt i64 %indvars.iv162, 1
  br i1 %92, label %75, label %93, !llvm.loop !16

93:                                               ; preds = %91
  %94 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %95 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %94, ptr %95)
          to label %96 unwind label %.loopexit.split-lp

96:                                               ; preds = %93
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %98 unwind label %.loopexit.split-lp

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %100 unwind label %.loopexit.split-lp

100:                                              ; preds = %98
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 2197000, ptr nonnull %1) #6
  ret void
}

; 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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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: write) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"double", !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 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


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