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

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

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZZ4mainE1o = external hidden global i8, align 1
@_ZZ4mainE3row = external hidden global [61 x double], align 16
@_ZZ4mainE3mat = external hidden global [2 x [61 x [63 x double]]], align 16
@_ZZ4mainE3tmp = external hidden global ptr, align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [7 x i8], align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %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 i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %22

22:                                               ; preds = %622, %620, %0
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr %2, align 4, !tbaa !5
  %25 = icmp ne i32 %23, 0
  br i1 %25, label %26, label %623

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 7, ptr %7) #8
  %27 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 0
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %61, %26
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %64

36:                                               ; preds = %29
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !9
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %41, 46
  br i1 %42, label %43, label %44

43:                                               ; preds = %36
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %60

44:                                               ; preds = %36
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = mul nsw i32 %45, 10
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !9
  %51 = sext i8 %50 to i32
  %52 = sub nsw i32 %51, 48
  %53 = add nsw i32 %46, %52
  store i32 %53, ptr %5, align 4, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %44
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = mul nsw i32 %57, 10
  store i32 %58, ptr %6, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %56, %44
  br label %60

60:                                               ; preds = %59, %43
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %8, align 4, !tbaa !5
  br label %29, !llvm.loop !10

64:                                               ; preds = %35
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %74

67:                                               ; preds = %64
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = icmp sle i32 %68, %69
  br i1 %70, label %74, label %71

71:                                               ; preds = %67
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %109

74:                                               ; preds = %71, %67, %64
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %74
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %77, %74
  br label %106

82:                                               ; preds = %77
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %95

85:                                               ; preds = %82
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = sitofp i32 %86 to double
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sitofp i32 %88 to double
  %90 = fmul double %87, %89
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = sitofp i32 %91 to double
  %93 = fdiv double %90, %92
  %94 = call double @sin(double noundef %93) #8
  br label %104

95:                                               ; preds = %82
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sitofp i32 %96 to double
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sitofp i32 %98 to double
  %100 = fdiv double %97, %99
  %101 = call double @sin(double noundef %100) #8
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %101, i32 noundef %102)
  br label %104

104:                                              ; preds = %95, %85
  %105 = phi double [ %94, %85 ], [ %103, %95 ]
  br label %106

106:                                              ; preds = %104, %81
  %107 = phi double [ 0.000000e+00, %81 ], [ %105, %104 ]
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %107)
  store i32 2, ptr %10, align 4
  br label %620, !llvm.loop !12

109:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sitofp i32 %110 to double
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = sitofp i32 %112 to double
  %114 = fdiv double %111, %113
  %115 = call double @sin(double noundef %114) #8
  store double %115, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sitofp i32 %116 to double
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = sitofp i32 %118 to double
  %120 = fdiv double %117, %119
  %121 = call double @cos(double noundef %120) #8
  store double %121, ptr %12, align 8, !tbaa !13
  %122 = load i32, ptr %3, align 4, !tbaa !5
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = add nsw i32 %122, %123
  %125 = sext i32 %124 to i64
  %126 = mul i64 %125, 8
  call void @llvm.memset.p0.i64(ptr align 8 getelementptr inbounds (double, ptr @_ZZ4mainE3row, i64 1), i8 0, i64 %126, i1 false)
  %127 = load double, ptr %11, align 8, !tbaa !13
  %128 = load i32, ptr %3, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %130
  store double %127, ptr %131, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %224, %109
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = icmp sle i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %227

137:                                              ; preds = %132
  %138 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %139 = trunc i8 %138 to i1
  %140 = zext i1 %139 to i64
  %141 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %140
  %142 = load i32, ptr %13, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [61 x [63 x double]], ptr %141, i64 0, i64 %143
  %145 = getelementptr inbounds [63 x double], ptr %144, i64 0, i64 0
  %146 = getelementptr inbounds double, ptr %145, i64 1
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = load i32, ptr %3, align 4, !tbaa !5
  %149 = add nsw i32 %147, %148
  %150 = sext i32 %149 to i64
  %151 = mul i64 %150, 8
  call void @llvm.memset.p0.i64(ptr align 8 %146, i8 0, i64 %151, i1 false)
  %152 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %153 = trunc i8 %152 to i1
  %154 = zext i1 %153 to i64
  %155 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %154
  %156 = load i32, ptr %3, align 4, !tbaa !5
  %157 = load i32, ptr %13, align 4, !tbaa !5
  %158 = add nsw i32 %156, %157
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [61 x [63 x double]], ptr %155, i64 0, i64 %159
  %161 = getelementptr inbounds [63 x double], ptr %160, i64 0, i64 0
  %162 = getelementptr inbounds double, ptr %161, i64 1
  %163 = load i32, ptr %3, align 4, !tbaa !5
  %164 = load i32, ptr %3, align 4, !tbaa !5
  %165 = add nsw i32 %163, %164
  %166 = sext i32 %165 to i64
  %167 = mul i64 %166, 8
  call void @llvm.memset.p0.i64(ptr align 8 %162, i8 0, i64 %167, i1 false)
  %168 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %169 = trunc i8 %168 to i1
  %170 = zext i1 %169 to i64
  %171 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %170
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [61 x [63 x double]], ptr %171, i64 0, i64 %173
  %175 = load i32, ptr %3, align 4, !tbaa !5
  %176 = load i32, ptr %13, align 4, !tbaa !5
  %177 = add nsw i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [63 x double], ptr %174, i64 0, i64 %178
  store double -1.000000e+00, ptr %179, align 8, !tbaa !13
  %180 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %181 = trunc i8 %180 to i1
  %182 = zext i1 %181 to i64
  %183 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %182
  %184 = load i32, ptr %3, align 4, !tbaa !5
  %185 = load i32, ptr %13, align 4, !tbaa !5
  %186 = add nsw i32 %184, %185
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [61 x [63 x double]], ptr %183, i64 0, i64 %187
  %189 = load i32, ptr %13, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [63 x double], ptr %188, i64 0, i64 %190
  store double 1.000000e+00, ptr %191, align 8, !tbaa !13
  %192 = load double, ptr %12, align 8, !tbaa !13
  %193 = fmul double 2.000000e+00, %192
  %194 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %195 = trunc i8 %194 to i1
  %196 = zext i1 %195 to i64
  %197 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %196
  %198 = load i32, ptr %3, align 4, !tbaa !5
  %199 = load i32, ptr %13, align 4, !tbaa !5
  %200 = add nsw i32 %198, %199
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [61 x [63 x double]], ptr %197, i64 0, i64 %201
  %203 = load i32, ptr %3, align 4, !tbaa !5
  %204 = load i32, ptr %13, align 4, !tbaa !5
  %205 = add nsw i32 %203, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [63 x double], ptr %202, i64 0, i64 %206
  store double %193, ptr %207, align 8, !tbaa !13
  %208 = load double, ptr %11, align 8, !tbaa !13
  %209 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %210 = trunc i8 %209 to i1
  %211 = zext i1 %210 to i64
  %212 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %211
  %213 = load i32, ptr %3, align 4, !tbaa !5
  %214 = load i32, ptr %13, align 4, !tbaa !5
  %215 = add nsw i32 %213, %214
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [61 x [63 x double]], ptr %212, i64 0, i64 %216
  %218 = load i32, ptr %3, align 4, !tbaa !5
  %219 = load i32, ptr %13, align 4, !tbaa !5
  %220 = add nsw i32 %218, %219
  %221 = add nsw i32 %220, 1
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [63 x double], ptr %217, i64 0, i64 %222
  store double %208, ptr %223, align 8, !tbaa !13
  br label %224

224:                                              ; preds = %137
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %13, align 4, !tbaa !5
  br label %132, !llvm.loop !19

227:                                              ; preds = %136
  %228 = load i32, ptr %4, align 4, !tbaa !5
  %229 = add nsw i32 %228, -1
  store i32 %229, ptr %4, align 4, !tbaa !5
  br label %230

230:                                              ; preds = %611, %227
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %4, align 4, !tbaa !5
  %233 = and i32 %232, 1
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %293

235:                                              ; preds = %231
  %236 = load ptr, ptr @_ZZ4mainE3tmp, align 8, !tbaa !20
  %237 = getelementptr inbounds double, ptr %236, i64 1
  %238 = load i32, ptr %3, align 4, !tbaa !5
  %239 = load i32, ptr %3, align 4, !tbaa !5
  %240 = add nsw i32 %238, %239
  %241 = sext i32 %240 to i64
  %242 = mul i64 %241, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %237, ptr align 8 getelementptr inbounds (double, ptr @_ZZ4mainE3row, i64 1), i64 %242, i1 false)
  %243 = load i32, ptr %3, align 4, !tbaa !5
  %244 = load i32, ptr %3, align 4, !tbaa !5
  %245 = add nsw i32 %243, %244
  %246 = sext i32 %245 to i64
  %247 = mul i64 %246, 8
  call void @llvm.memset.p0.i64(ptr align 8 getelementptr inbounds (double, ptr @_ZZ4mainE3row, i64 1), i8 0, i64 %247, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %289, %235
  %249 = load i32, ptr %14, align 4, !tbaa !5
  %250 = load i32, ptr %3, align 4, !tbaa !5
  %251 = load i32, ptr %3, align 4, !tbaa !5
  %252 = add nsw i32 %250, %251
  %253 = icmp sle i32 %249, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %248
  store i32 12, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %292

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

256:                                              ; preds = %285, %255
  %257 = load i32, ptr %15, align 4, !tbaa !5
  %258 = load i32, ptr %3, align 4, !tbaa !5
  %259 = load i32, ptr %3, align 4, !tbaa !5
  %260 = add nsw i32 %258, %259
  %261 = icmp sle i32 %257, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %256
  store i32 15, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %288

263:                                              ; preds = %256
  %264 = load ptr, ptr @_ZZ4mainE3tmp, align 8, !tbaa !20
  %265 = load i32, ptr %14, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !13
  %269 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %270 = trunc i8 %269 to i1
  %271 = zext i1 %270 to i64
  %272 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %271
  %273 = load i32, ptr %14, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [61 x [63 x double]], ptr %272, i64 0, i64 %274
  %276 = load i32, ptr %15, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [63 x double], ptr %275, i64 0, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !13
  %280 = load i32, ptr %15, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %281
  %283 = load double, ptr %282, align 8, !tbaa !13
  %284 = call double @llvm.fmuladd.f64(double %268, double %279, double %283)
  store double %284, ptr %282, align 8, !tbaa !13
  br label %285

285:                                              ; preds = %263
  %286 = load i32, ptr %15, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %15, align 4, !tbaa !5
  br label %256, !llvm.loop !22

288:                                              ; preds = %262
  br label %289

289:                                              ; preds = %288
  %290 = load i32, ptr %14, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  store i32 %291, ptr %14, align 4, !tbaa !5
  br label %248, !llvm.loop !23

292:                                              ; preds = %254
  br label %293

293:                                              ; preds = %292, %231
  %294 = load i32, ptr %4, align 4, !tbaa !5
  %295 = ashr i32 %294, 1
  store i32 %295, ptr %4, align 4, !tbaa !5
  %296 = load i32, ptr %4, align 4, !tbaa !5
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %299, label %298

298:                                              ; preds = %293
  br label %612

299:                                              ; preds = %293
  %300 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %301 = trunc i8 %300 to i1
  %302 = xor i1 %301, true
  %303 = zext i1 %302 to i8
  store i8 %303, ptr @_ZZ4mainE1o, align 1, !tbaa !15
  %304 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %305 = trunc i8 %304 to i1
  %306 = zext i1 %305 to i64
  %307 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %306
  %308 = getelementptr inbounds [61 x [63 x double]], ptr %307, i64 0, i64 1
  %309 = getelementptr inbounds [63 x double], ptr %308, i64 0, i64 0
  %310 = getelementptr inbounds double, ptr %309, i64 1
  %311 = load i32, ptr %3, align 4, !tbaa !5
  %312 = load i32, ptr %3, align 4, !tbaa !5
  %313 = add nsw i32 %311, %312
  %314 = sext i32 %313 to i64
  %315 = mul i64 %314, 8
  call void @llvm.memset.p0.i64(ptr align 8 %310, i8 0, i64 %315, i1 false)
  %316 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %317 = trunc i8 %316 to i1
  %318 = zext i1 %317 to i64
  %319 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %318
  %320 = load i32, ptr %3, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [61 x [63 x double]], ptr %319, i64 0, i64 %322
  %324 = getelementptr inbounds [63 x double], ptr %323, i64 0, i64 0
  %325 = getelementptr inbounds double, ptr %324, i64 1
  %326 = load i32, ptr %3, align 4, !tbaa !5
  %327 = load i32, ptr %3, align 4, !tbaa !5
  %328 = add nsw i32 %326, %327
  %329 = sext i32 %328 to i64
  %330 = mul i64 %329, 8
  call void @llvm.memset.p0.i64(ptr align 8 %325, i8 0, i64 %330, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %331

331:                                              ; preds = %421, %299
  %332 = load i32, ptr %16, align 4, !tbaa !5
  %333 = load i32, ptr %3, align 4, !tbaa !5
  %334 = load i32, ptr %3, align 4, !tbaa !5
  %335 = add nsw i32 %333, %334
  %336 = icmp sle i32 %332, %335
  br i1 %336, label %338, label %337

337:                                              ; preds = %331
  store i32 18, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %424

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

339:                                              ; preds = %417, %338
  %340 = load i32, ptr %17, align 4, !tbaa !5
  %341 = load i32, ptr %3, align 4, !tbaa !5
  %342 = load i32, ptr %3, align 4, !tbaa !5
  %343 = add nsw i32 %341, %342
  %344 = icmp sle i32 %340, %343
  br i1 %344, label %346, label %345

345:                                              ; preds = %339
  store i32 21, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %420

346:                                              ; preds = %339
  %347 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %348 = trunc i8 %347 to i1
  %349 = xor i1 %348, true
  %350 = zext i1 %349 to i64
  %351 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %350
  %352 = getelementptr inbounds [61 x [63 x double]], ptr %351, i64 0, i64 1
  %353 = load i32, ptr %16, align 4, !tbaa !5
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [63 x double], ptr %352, i64 0, i64 %354
  %356 = load double, ptr %355, align 8, !tbaa !13
  %357 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %358 = trunc i8 %357 to i1
  %359 = xor i1 %358, true
  %360 = zext i1 %359 to i64
  %361 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %360
  %362 = load i32, ptr %16, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [61 x [63 x double]], ptr %361, i64 0, i64 %363
  %365 = load i32, ptr %17, align 4, !tbaa !5
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [63 x double], ptr %364, i64 0, i64 %366
  %368 = load double, ptr %367, align 8, !tbaa !13
  %369 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %370 = trunc i8 %369 to i1
  %371 = zext i1 %370 to i64
  %372 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %371
  %373 = getelementptr inbounds [61 x [63 x double]], ptr %372, i64 0, i64 1
  %374 = load i32, ptr %17, align 4, !tbaa !5
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [63 x double], ptr %373, i64 0, i64 %375
  %377 = load double, ptr %376, align 8, !tbaa !13
  %378 = call double @llvm.fmuladd.f64(double %356, double %368, double %377)
  store double %378, ptr %376, align 8, !tbaa !13
  %379 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %380 = trunc i8 %379 to i1
  %381 = xor i1 %380, true
  %382 = zext i1 %381 to i64
  %383 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %382
  %384 = load i32, ptr %3, align 4, !tbaa !5
  %385 = add nsw i32 %384, 1
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [61 x [63 x double]], ptr %383, i64 0, i64 %386
  %388 = load i32, ptr %16, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [63 x double], ptr %387, i64 0, i64 %389
  %391 = load double, ptr %390, align 8, !tbaa !13
  %392 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %393 = trunc i8 %392 to i1
  %394 = xor i1 %393, true
  %395 = zext i1 %394 to i64
  %396 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %395
  %397 = load i32, ptr %16, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [61 x [63 x double]], ptr %396, i64 0, i64 %398
  %400 = load i32, ptr %17, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [63 x double], ptr %399, i64 0, i64 %401
  %403 = load double, ptr %402, align 8, !tbaa !13
  %404 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %405 = trunc i8 %404 to i1
  %406 = zext i1 %405 to i64
  %407 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %406
  %408 = load i32, ptr %3, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [61 x [63 x double]], ptr %407, i64 0, i64 %410
  %412 = load i32, ptr %17, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [63 x double], ptr %411, i64 0, i64 %413
  %415 = load double, ptr %414, align 8, !tbaa !13
  %416 = call double @llvm.fmuladd.f64(double %391, double %403, double %415)
  store double %416, ptr %414, align 8, !tbaa !13
  br label %417

417:                                              ; preds = %346
  %418 = load i32, ptr %17, align 4, !tbaa !5
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr %17, align 4, !tbaa !5
  br label %339, !llvm.loop !24

420:                                              ; preds = %345
  br label %421

421:                                              ; preds = %420
  %422 = load i32, ptr %16, align 4, !tbaa !5
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr %16, align 4, !tbaa !5
  br label %331, !llvm.loop !25

424:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 2, ptr %18, align 4, !tbaa !5
  br label %425

425:                                              ; preds = %608, %424
  %426 = load i32, ptr %18, align 4, !tbaa !5
  %427 = load i32, ptr %3, align 4, !tbaa !5
  %428 = icmp sle i32 %426, %427
  br i1 %428, label %430, label %429

429:                                              ; preds = %425
  store i32 24, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %611

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

431:                                              ; preds = %485, %430
  %432 = load i32, ptr %19, align 4, !tbaa !5
  %433 = load i32, ptr %18, align 4, !tbaa !5
  %434 = icmp slt i32 %432, %433
  br i1 %434, label %436, label %435

435:                                              ; preds = %431
  store i32 27, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %488

436:                                              ; preds = %431
  %437 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %438 = trunc i8 %437 to i1
  %439 = zext i1 %438 to i64
  %440 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %439
  %441 = load i32, ptr %3, align 4, !tbaa !5
  %442 = load i32, ptr %18, align 4, !tbaa !5
  %443 = add nsw i32 %441, %442
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [61 x [63 x double]], ptr %440, i64 0, i64 %444
  %446 = load i32, ptr %3, align 4, !tbaa !5
  %447 = load i32, ptr %19, align 4, !tbaa !5
  %448 = add nsw i32 %446, %447
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [63 x double], ptr %445, i64 0, i64 %449
  store double 0.000000e+00, ptr %450, align 8, !tbaa !13
  %451 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %452 = trunc i8 %451 to i1
  %453 = zext i1 %452 to i64
  %454 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %453
  %455 = load i32, ptr %3, align 4, !tbaa !5
  %456 = load i32, ptr %18, align 4, !tbaa !5
  %457 = add nsw i32 %455, %456
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds [61 x [63 x double]], ptr %454, i64 0, i64 %458
  %460 = load i32, ptr %19, align 4, !tbaa !5
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [63 x double], ptr %459, i64 0, i64 %461
  store double 0.000000e+00, ptr %462, align 8, !tbaa !13
  %463 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %464 = trunc i8 %463 to i1
  %465 = zext i1 %464 to i64
  %466 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %465
  %467 = load i32, ptr %18, align 4, !tbaa !5
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds [61 x [63 x double]], ptr %466, i64 0, i64 %468
  %470 = load i32, ptr %3, align 4, !tbaa !5
  %471 = load i32, ptr %19, align 4, !tbaa !5
  %472 = add nsw i32 %470, %471
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds [63 x double], ptr %469, i64 0, i64 %473
  store double 0.000000e+00, ptr %474, align 8, !tbaa !13
  %475 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %476 = trunc i8 %475 to i1
  %477 = zext i1 %476 to i64
  %478 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %477
  %479 = load i32, ptr %18, align 4, !tbaa !5
  %480 = sext i32 %479 to i64
  %481 = getelementptr inbounds [61 x [63 x double]], ptr %478, i64 0, i64 %480
  %482 = load i32, ptr %19, align 4, !tbaa !5
  %483 = sext i32 %482 to i64
  %484 = getelementptr inbounds [63 x double], ptr %481, i64 0, i64 %483
  store double 0.000000e+00, ptr %484, align 8, !tbaa !13
  br label %485

485:                                              ; preds = %436
  %486 = load i32, ptr %19, align 4, !tbaa !5
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %19, align 4, !tbaa !5
  br label %431, !llvm.loop !26

488:                                              ; preds = %435
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %489 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %489, ptr %20, align 4, !tbaa !5
  br label %490

490:                                              ; preds = %604, %488
  %491 = load i32, ptr %20, align 4, !tbaa !5
  %492 = load i32, ptr %3, align 4, !tbaa !5
  %493 = icmp sle i32 %491, %492
  br i1 %493, label %495, label %494

494:                                              ; preds = %490
  store i32 30, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %607

495:                                              ; preds = %490
  %496 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %497 = trunc i8 %496 to i1
  %498 = zext i1 %497 to i64
  %499 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %498
  %500 = load i32, ptr %18, align 4, !tbaa !5
  %501 = sub nsw i32 %500, 1
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [61 x [63 x double]], ptr %499, i64 0, i64 %502
  %504 = load i32, ptr %20, align 4, !tbaa !5
  %505 = sub nsw i32 %504, 1
  %506 = sext i32 %505 to i64
  %507 = getelementptr inbounds [63 x double], ptr %503, i64 0, i64 %506
  %508 = load double, ptr %507, align 8, !tbaa !13
  %509 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %510 = trunc i8 %509 to i1
  %511 = zext i1 %510 to i64
  %512 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %511
  %513 = load i32, ptr %18, align 4, !tbaa !5
  %514 = sext i32 %513 to i64
  %515 = getelementptr inbounds [61 x [63 x double]], ptr %512, i64 0, i64 %514
  %516 = load i32, ptr %20, align 4, !tbaa !5
  %517 = sext i32 %516 to i64
  %518 = getelementptr inbounds [63 x double], ptr %515, i64 0, i64 %517
  store double %508, ptr %518, align 8, !tbaa !13
  %519 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %520 = trunc i8 %519 to i1
  %521 = zext i1 %520 to i64
  %522 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %521
  %523 = load i32, ptr %18, align 4, !tbaa !5
  %524 = sub nsw i32 %523, 1
  %525 = sext i32 %524 to i64
  %526 = getelementptr inbounds [61 x [63 x double]], ptr %522, i64 0, i64 %525
  %527 = load i32, ptr %3, align 4, !tbaa !5
  %528 = load i32, ptr %20, align 4, !tbaa !5
  %529 = add nsw i32 %527, %528
  %530 = sub nsw i32 %529, 1
  %531 = sext i32 %530 to i64
  %532 = getelementptr inbounds [63 x double], ptr %526, i64 0, i64 %531
  %533 = load double, ptr %532, align 8, !tbaa !13
  %534 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %535 = trunc i8 %534 to i1
  %536 = zext i1 %535 to i64
  %537 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %536
  %538 = load i32, ptr %18, align 4, !tbaa !5
  %539 = sext i32 %538 to i64
  %540 = getelementptr inbounds [61 x [63 x double]], ptr %537, i64 0, i64 %539
  %541 = load i32, ptr %3, align 4, !tbaa !5
  %542 = load i32, ptr %20, align 4, !tbaa !5
  %543 = add nsw i32 %541, %542
  %544 = sext i32 %543 to i64
  %545 = getelementptr inbounds [63 x double], ptr %540, i64 0, i64 %544
  store double %533, ptr %545, align 8, !tbaa !13
  %546 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %547 = trunc i8 %546 to i1
  %548 = zext i1 %547 to i64
  %549 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %548
  %550 = load i32, ptr %3, align 4, !tbaa !5
  %551 = load i32, ptr %18, align 4, !tbaa !5
  %552 = add nsw i32 %550, %551
  %553 = sub nsw i32 %552, 1
  %554 = sext i32 %553 to i64
  %555 = getelementptr inbounds [61 x [63 x double]], ptr %549, i64 0, i64 %554
  %556 = load i32, ptr %20, align 4, !tbaa !5
  %557 = sub nsw i32 %556, 1
  %558 = sext i32 %557 to i64
  %559 = getelementptr inbounds [63 x double], ptr %555, i64 0, i64 %558
  %560 = load double, ptr %559, align 8, !tbaa !13
  %561 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %562 = trunc i8 %561 to i1
  %563 = zext i1 %562 to i64
  %564 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %563
  %565 = load i32, ptr %3, align 4, !tbaa !5
  %566 = load i32, ptr %18, align 4, !tbaa !5
  %567 = add nsw i32 %565, %566
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds [61 x [63 x double]], ptr %564, i64 0, i64 %568
  %570 = load i32, ptr %20, align 4, !tbaa !5
  %571 = sext i32 %570 to i64
  %572 = getelementptr inbounds [63 x double], ptr %569, i64 0, i64 %571
  store double %560, ptr %572, align 8, !tbaa !13
  %573 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %574 = trunc i8 %573 to i1
  %575 = zext i1 %574 to i64
  %576 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %575
  %577 = load i32, ptr %3, align 4, !tbaa !5
  %578 = load i32, ptr %18, align 4, !tbaa !5
  %579 = add nsw i32 %577, %578
  %580 = sub nsw i32 %579, 1
  %581 = sext i32 %580 to i64
  %582 = getelementptr inbounds [61 x [63 x double]], ptr %576, i64 0, i64 %581
  %583 = load i32, ptr %3, align 4, !tbaa !5
  %584 = load i32, ptr %20, align 4, !tbaa !5
  %585 = add nsw i32 %583, %584
  %586 = sub nsw i32 %585, 1
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds [63 x double], ptr %582, i64 0, i64 %587
  %589 = load double, ptr %588, align 8, !tbaa !13
  %590 = load i8, ptr @_ZZ4mainE1o, align 1, !tbaa !15, !range !17, !noundef !18
  %591 = trunc i8 %590 to i1
  %592 = zext i1 %591 to i64
  %593 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %592
  %594 = load i32, ptr %3, align 4, !tbaa !5
  %595 = load i32, ptr %18, align 4, !tbaa !5
  %596 = add nsw i32 %594, %595
  %597 = sext i32 %596 to i64
  %598 = getelementptr inbounds [61 x [63 x double]], ptr %593, i64 0, i64 %597
  %599 = load i32, ptr %3, align 4, !tbaa !5
  %600 = load i32, ptr %20, align 4, !tbaa !5
  %601 = add nsw i32 %599, %600
  %602 = sext i32 %601 to i64
  %603 = getelementptr inbounds [63 x double], ptr %598, i64 0, i64 %602
  store double %589, ptr %603, align 8, !tbaa !13
  br label %604

604:                                              ; preds = %495
  %605 = load i32, ptr %20, align 4, !tbaa !5
  %606 = add nsw i32 %605, 1
  store i32 %606, ptr %20, align 4, !tbaa !5
  br label %490, !llvm.loop !27

607:                                              ; preds = %494
  br label %608

608:                                              ; preds = %607
  %609 = load i32, ptr %18, align 4, !tbaa !5
  %610 = add nsw i32 %609, 1
  store i32 %610, ptr %18, align 4, !tbaa !5
  br label %425, !llvm.loop !28

611:                                              ; preds = %429
  br label %230, !llvm.loop !29

612:                                              ; preds = %298
  %613 = load i32, ptr %3, align 4, !tbaa !5
  %614 = load i32, ptr %3, align 4, !tbaa !5
  %615 = add nsw i32 %613, %614
  %616 = sext i32 %615 to i64
  %617 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %616
  %618 = load double, ptr %617, align 8, !tbaa !13
  %619 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %618)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  store i32 0, ptr %10, align 4
  br label %620

620:                                              ; preds = %612, %106
  call void @llvm.lifetime.end.p0(i64 7, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  %621 = load i32, ptr %10, align 4
  switch i32 %621, label %625 [
    i32 0, label %622
    i32 2, label %22
  ]

622:                                              ; preds = %620
  br label %22, !llvm.loop !12

623:                                              ; preds = %22
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %624 = load i32, ptr %1, align 4
  ret i32 %624

625:                                              ; preds = %620
  unreachable
}

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

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

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

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

; Function Attrs: nounwind
declare double @sin(double noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #4

; Function Attrs: nounwind
declare double @cos(double noundef) #3

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !11}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !7, i64 0}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZZ4mainE1o = external hidden local_unnamed_addr global i8, align 1
@_ZZ4mainE3row = external hidden local_unnamed_addr global [61 x double], align 16
@_ZZ4mainE3mat = external hidden local_unnamed_addr global [2 x [61 x [63 x double]]], align 16
@_ZZ4mainE3tmp = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [7 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr %1, align 4, !tbaa !5
  %.not141 = icmp eq i32 %6, 0
  br i1 %.not141, label %._crit_edge144, label %.lr.ph143

.lr.ph143:                                        ; preds = %0, %.critedge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 7, ptr nonnull %4) #9
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  br label %9

9:                                                ; preds = %19, %.lr.ph143
  %indvars.iv = phi i64 [ %indvars.iv.next, %19 ], [ 0, %.lr.ph143 ]
  %.096 = phi i32 [ %.197, %19 ], [ 1, %.lr.ph143 ]
  %.093 = phi i32 [ %.194, %19 ], [ 0, %.lr.ph143 ]
  %.092 = phi i32 [ %.1, %19 ], [ 0, %.lr.ph143 ]
  %10 = getelementptr inbounds [7 x i8], ptr %4, i64 0, i64 %indvars.iv
  %11 = load i8, ptr %10, align 1, !tbaa !9
  switch i8 %11, label %13 [
    i8 0, label %12
    i8 46, label %19
  ]

12:                                               ; preds = %9
  %.not104 = icmp eq i32 %.092, 0
  br i1 %.not104, label %.critedge, label %20, !llvm.loop !10

13:                                               ; preds = %9
  %14 = sext i8 %11 to i32
  %15 = mul nsw i32 %.092, 10
  %16 = add i32 %15, -48
  %17 = add i32 %16, %14
  %.not114 = icmp ne i32 %.093, 0
  %18 = mul nsw i32 %.096, 10
  %spec.select = select i1 %.not114, i32 %18, i32 %.096
  %spec.select115 = zext i1 %.not114 to i32
  br label %19

19:                                               ; preds = %13, %9
  %.197 = phi i32 [ %.096, %9 ], [ %spec.select, %13 ]
  %.194 = phi i32 [ 1, %9 ], [ %spec.select115, %13 ]
  %.1 = phi i32 [ %.092, %9 ], [ %17, %13 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %9, !llvm.loop !12

20:                                               ; preds = %12
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr %2, align 4
  %23 = icmp sle i32 %21, %22
  %24 = icmp eq i32 %22, 1
  %or.cond = or i1 %23, %24
  br i1 %or.cond, label %25, label %42

25:                                               ; preds = %20
  %26 = icmp slt i32 %21, %22
  br i1 %26, label %.critedge, label %27, !llvm.loop !10

27:                                               ; preds = %25
  br i1 %24, label %28, label %35

28:                                               ; preds = %27
  %29 = sitofp i32 %21 to double
  %30 = sitofp i32 %.092 to double
  %31 = fmul double %30, %29
  %32 = sitofp i32 %.096 to double
  %33 = fdiv double %31, %32
  %34 = call double @sin(double noundef %33) #9
  br label %.critedge, !llvm.loop !10

35:                                               ; preds = %27
  %36 = sitofp i32 %.092 to double
  %37 = sitofp i32 %.096 to double
  %38 = fdiv double %36, %37
  %39 = call double @sin(double noundef %38) #9
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %39, i32 noundef %40)
  br label %.critedge, !llvm.loop !10

42:                                               ; preds = %20
  %43 = sitofp i32 %.092 to double
  %44 = sitofp i32 %.096 to double
  %45 = fdiv double %43, %44
  %46 = call double @sin(double noundef %45) #9
  %47 = call double @cos(double noundef %45) #9
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = shl i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = shl nsw i64 %50, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 getelementptr inbounds (i8, ptr @_ZZ4mainE3row, i64 8), i8 0, i64 %51, i1 false)
  %52 = add i32 %48, 1
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %53
  store double %46, ptr %54, align 8, !tbaa !13
  %.not105120 = icmp slt i32 %48, 1
  %_ZZ4mainE1o.promoted.pre = load i8, ptr @_ZZ4mainE1o, align 1
  br i1 %.not105120, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %42
  %.pre = zext i32 %48 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %42
  %55 = zext nneg i8 %_ZZ4mainE1o.promoted.pre to i64
  %56 = fmul double %47, 2.000000e+00
  %57 = zext nneg i32 %48 to i64
  %wide.trip.count = zext i32 %52 to i64
  br label %84

._crit_edge:                                      ; preds = %84, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %57, %84 ]
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = add nsw i32 %58, -1
  %60 = load ptr, ptr @_ZZ4mainE3tmp, align 8
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  %.not110139 = icmp slt i32 %48, 2
  %smax = call i32 @llvm.smax.i32(i32 %49, i32 1)
  %62 = add nuw nsw i32 %smax, 1
  %63 = sext i32 %48 to i64
  %wide.trip.count157 = zext nneg i32 %62 to i64
  %wide.trip.count167 = zext nneg i32 %62 to i64
  %wide.trip.count182 = zext i32 %52 to i64
  %64 = mul nsw i64 %63, 504
  %65 = add nsw i64 %wide.trip.count182, -2
  %66 = mul nsw i64 %.pre-phi, -8
  %67 = mul nsw i64 %63, -504
  %68 = mul nsw i64 %63, 504
  %69 = sub nsw i64 %66, %68
  %70 = shl nuw nsw i64 %.pre-phi, 3
  %71 = sub nsw i64 %70, %68
  %72 = zext nneg i32 %smax to i64
  %73 = shl nuw nsw i64 %72, 3
  %scevgep230 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 512), i64 %73
  %74 = mul nsw i64 %53, 504
  %scevgep232 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 8), i64 %74
  %75 = add nsw i64 %74, %73
  %scevgep234 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 8), i64 %75
  %scevgep237 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 512), i64 %73
  %76 = shl nuw nsw i64 %72, 9
  %scevgep239 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 8), i64 %76
  %scevgep241 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 8), i64 %74
  %scevgep243 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 8), i64 %75
  %77 = zext nneg i32 %smax to i64
  %78 = zext nneg i32 %smax to i64
  %79 = shl nuw nsw i64 %78, 3
  %scevgep289 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3row, i64 8), i64 %79
  %scevgep290 = getelementptr i8, ptr %60, i64 8
  %scevgep291 = getelementptr i8, ptr %scevgep290, i64 %79
  %80 = shl nuw nsw i64 %78, 9
  %scevgep293 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 8), i64 %80
  %81 = zext nneg i32 %smax to i64
  %min.iters.check304 = icmp slt i32 %49, 4
  %bound0295 = icmp ugt ptr %scevgep291, getelementptr inbounds (i8, ptr @_ZZ4mainE3row, i64 8)
  %bound1296 = icmp ult ptr %scevgep290, %scevgep289
  %found.conflict297 = and i1 %bound0295, %bound1296
  %n.vec307 = and i64 %81, 2147483644
  %ind.end308 = or disjoint i64 %n.vec307, 1
  %cmp.n322 = icmp eq i64 %n.vec307, %81
  %xtraiter = and i64 %77, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check271 = icmp slt i32 %49, 8
  %bound0 = icmp ugt ptr %scevgep234, getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 512)
  %bound1 = icmp ult ptr %scevgep232, %scevgep230
  %found.conflict = and i1 %bound0, %bound1
  %n.vec274 = and i64 %77, 2147483646
  %ind.end275 = or i64 %77, 1
  %cmp.n287 = icmp eq i64 %n.vec274, %77
  %diff.check209 = icmp ult i64 %66, 32
  %diff.check210 = icmp ult i64 %67, 32
  %conflict.rdx211 = or i1 %diff.check209, %diff.check210
  %diff.check212 = icmp ult i64 %69, 32
  %conflict.rdx213 = or i1 %conflict.rdx211, %diff.check212
  %diff.check214 = icmp ult i64 %71, 32
  %conflict.rdx215 = or i1 %conflict.rdx213, %diff.check214
  %diff.check184 = icmp ult i64 %64, 16
  %82 = and i64 %63, 2147483646
  %diff.check187 = icmp eq i64 %82, 64
  %conflict.rdx188 = or i1 %diff.check184, %diff.check187
  %83 = and i64 %64, 1099511627760
  %diff.check189 = icmp eq i64 %83, 512
  %conflict.rdx190 = or i1 %conflict.rdx188, %diff.check189
  br label %thread-pre-split

84:                                               ; preds = %.lr.ph, %84
  %indvars.iv146 = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next147, %84 ]
  %85 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %55, i64 %indvars.iv146, i64 1
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %85, i8 0, i64 %51, i1 false)
  %86 = add nuw nsw i64 %indvars.iv146, %57
  %87 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %55, i64 %86, i64 1
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %87, i8 0, i64 %51, i1 false)
  %88 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %55, i64 %indvars.iv146, i64 %86
  store double -1.000000e+00, ptr %88, align 8, !tbaa !13
  %89 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %55, i64 %86, i64 %indvars.iv146
  store double 1.000000e+00, ptr %89, align 8, !tbaa !13
  %90 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %55, i64 %86, i64 %86
  store double %56, ptr %90, align 8, !tbaa !13
  %91 = add nuw nsw i64 %86, 1
  %92 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %55, i64 %86, i64 %91
  store double %46, ptr %92, align 8, !tbaa !13
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next147, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %84, !llvm.loop !15

thread-pre-split:                                 ; preds = %thread-pre-split.backedge, %._crit_edge
  %93 = phi i8 [ %_ZZ4mainE1o.promoted.pre, %._crit_edge ], [ %131, %thread-pre-split.backedge ]
  %94 = phi i32 [ %59, %._crit_edge ], [ %127, %thread-pre-split.backedge ]
  %95 = and i32 %94, 1
  %.not106 = icmp eq i32 %95, 0
  br i1 %.not106, label %.loopexit, label %96

96:                                               ; preds = %thread-pre-split
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %61, ptr nonnull align 8 getelementptr inbounds (i8, ptr @_ZZ4mainE3row, i64 8), i64 %51, i1 false)
  call void @llvm.memset.p0.i64(ptr nonnull align 8 getelementptr inbounds (i8, ptr @_ZZ4mainE3row, i64 8), i8 0, i64 %51, i1 false)
  br i1 %.not105120, label %.loopexit, label %.preheader118.lr.ph

.preheader118.lr.ph:                              ; preds = %96
  %97 = zext nneg i8 %93 to i64
  %98 = mul nuw nsw i64 %97, 30744
  %scevgep292 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 512), i64 %98
  %scevgep294 = getelementptr i8, ptr %scevgep293, i64 %98
  %bound0298 = icmp ugt ptr %scevgep294, getelementptr inbounds (i8, ptr @_ZZ4mainE3row, i64 8)
  %bound1299 = icmp ult ptr %scevgep292, %scevgep289
  %found.conflict300 = and i1 %bound0298, %bound1299
  %conflict.rdx301 = or i1 %found.conflict297, %found.conflict300
  br label %.preheader118

.preheader118:                                    ; preds = %.preheader118.lr.ph, %._crit_edge125
  %indvars.iv154 = phi i64 [ 1, %.preheader118.lr.ph ], [ %indvars.iv.next155, %._crit_edge125 ]
  %99 = getelementptr inbounds double, ptr %60, i64 %indvars.iv154
  %brmerge = select i1 %min.iters.check304, i1 true, i1 %conflict.rdx301
  br i1 %brmerge, label %scalar.ph303.preheader, label %vector.ph305

scalar.ph303.preheader:                           ; preds = %.preheader118, %middle.block302
  %indvars.iv149.ph = phi i64 [ 1, %.preheader118 ], [ %ind.end308, %middle.block302 ]
  br i1 %lcmp.mod.not, label %scalar.ph303.prol.loopexit, label %scalar.ph303.prol

scalar.ph303.prol:                                ; preds = %scalar.ph303.preheader
  %100 = load double, ptr %99, align 8, !tbaa !13
  %101 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %97, i64 %indvars.iv154, i64 %indvars.iv149.ph
  %102 = load double, ptr %101, align 8, !tbaa !13
  %103 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %indvars.iv149.ph
  %104 = load double, ptr %103, align 8, !tbaa !13
  %105 = call double @llvm.fmuladd.f64(double %100, double %102, double %104)
  store double %105, ptr %103, align 8, !tbaa !13
  %indvars.iv.next150.prol = add nuw nsw i64 %indvars.iv149.ph, 1
  br label %scalar.ph303.prol.loopexit

scalar.ph303.prol.loopexit:                       ; preds = %scalar.ph303.prol, %scalar.ph303.preheader
  %indvars.iv149.unr = phi i64 [ %indvars.iv149.ph, %scalar.ph303.preheader ], [ %indvars.iv.next150.prol, %scalar.ph303.prol ]
  %106 = icmp eq i64 %indvars.iv149.ph, %77
  br i1 %106, label %._crit_edge125, label %scalar.ph303

vector.ph305:                                     ; preds = %.preheader118
  %107 = load double, ptr %99, align 8, !tbaa !13, !alias.scope !16
  %broadcast.splatinsert319 = insertelement <2 x double> poison, double %107, i64 0
  %broadcast.splat320 = shufflevector <2 x double> %broadcast.splatinsert319, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body310

vector.body310:                                   ; preds = %vector.body310, %vector.ph305
  %index311 = phi i64 [ 0, %vector.ph305 ], [ %index.next321, %vector.body310 ]
  %offset.idx312 = or disjoint i64 %index311, 1
  %108 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %97, i64 %indvars.iv154, i64 %offset.idx312
  %109 = getelementptr inbounds i8, ptr %108, i64 16
  %wide.load313 = load <2 x double>, ptr %108, align 8, !tbaa !13, !alias.scope !19
  %wide.load314 = load <2 x double>, ptr %109, align 8, !tbaa !13, !alias.scope !19
  %110 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %offset.idx312
  %111 = getelementptr inbounds i8, ptr %110, i64 16
  %wide.load315 = load <2 x double>, ptr %110, align 8, !tbaa !13, !alias.scope !21, !noalias !23
  %wide.load316 = load <2 x double>, ptr %111, align 8, !tbaa !13, !alias.scope !21, !noalias !23
  %112 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat320, <2 x double> %wide.load313, <2 x double> %wide.load315)
  %113 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat320, <2 x double> %wide.load314, <2 x double> %wide.load316)
  store <2 x double> %112, ptr %110, align 8, !tbaa !13, !alias.scope !21, !noalias !23
  store <2 x double> %113, ptr %111, align 8, !tbaa !13, !alias.scope !21, !noalias !23
  %index.next321 = add nuw i64 %index311, 4
  %114 = icmp eq i64 %index.next321, %n.vec307
  br i1 %114, label %middle.block302, label %vector.body310, !llvm.loop !24

middle.block302:                                  ; preds = %vector.body310
  br i1 %cmp.n322, label %._crit_edge125, label %scalar.ph303.preheader

._crit_edge125:                                   ; preds = %scalar.ph303.prol.loopexit, %scalar.ph303, %middle.block302
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next155, %wide.trip.count157
  br i1 %exitcond158.not, label %.loopexit, label %.preheader118, !llvm.loop !27

scalar.ph303:                                     ; preds = %scalar.ph303.prol.loopexit, %scalar.ph303
  %indvars.iv149 = phi i64 [ %indvars.iv.next150.1, %scalar.ph303 ], [ %indvars.iv149.unr, %scalar.ph303.prol.loopexit ]
  %115 = load double, ptr %99, align 8, !tbaa !13
  %116 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %97, i64 %indvars.iv154, i64 %indvars.iv149
  %117 = load double, ptr %116, align 8, !tbaa !13
  %118 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %indvars.iv149
  %119 = load double, ptr %118, align 8, !tbaa !13
  %120 = call double @llvm.fmuladd.f64(double %115, double %117, double %119)
  store double %120, ptr %118, align 8, !tbaa !13
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %121 = load double, ptr %99, align 8, !tbaa !13
  %122 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %97, i64 %indvars.iv154, i64 %indvars.iv.next150
  %123 = load double, ptr %122, align 8, !tbaa !13
  %124 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %indvars.iv.next150
  %125 = load double, ptr %124, align 8, !tbaa !13
  %126 = call double @llvm.fmuladd.f64(double %121, double %123, double %125)
  store double %126, ptr %124, align 8, !tbaa !13
  %indvars.iv.next150.1 = add nuw nsw i64 %indvars.iv149, 2
  %exitcond153.not.1 = icmp eq i64 %indvars.iv.next150.1, %wide.trip.count157
  br i1 %exitcond153.not.1, label %._crit_edge125, label %scalar.ph303, !llvm.loop !28

.loopexit:                                        ; preds = %._crit_edge125, %96, %thread-pre-split
  %127 = ashr i32 %94, 1
  %.not108 = icmp ult i32 %94, 2
  br i1 %.not108, label %206, label %128

128:                                              ; preds = %.loopexit
  %129 = trunc i8 %93 to i1
  %130 = xor i1 %129, true
  %131 = zext i1 %130 to i8
  store i8 %131, ptr @_ZZ4mainE1o, align 1, !tbaa !29
  %132 = zext i1 %130 to i64
  %133 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 1, i64 1
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %133, i8 0, i64 %51, i1 false)
  %134 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %53, i64 1
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %134, i8 0, i64 %51, i1 false)
  br i1 %.not105120, label %thread-pre-split.backedge, label %.preheader117.lr.ph

thread-pre-split.backedge:                        ; preds = %._crit_edge138, %128, %.preheader119
  br label %thread-pre-split, !llvm.loop !31

.preheader117.lr.ph:                              ; preds = %128
  %135 = zext nneg i8 %93 to i64
  %136 = select i1 %129, i64 0, i64 30744
  %scevgep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 512), i64 %136
  %scevgep231 = getelementptr i8, ptr %scevgep230, i64 %136
  %scevgep233 = getelementptr i8, ptr %scevgep232, i64 %136
  %scevgep235 = getelementptr i8, ptr %scevgep234, i64 %136
  %137 = mul nuw nsw i64 %135, 30744
  %scevgep236 = getelementptr i8, ptr getelementptr inbounds (i8, ptr @_ZZ4mainE3mat, i64 512), i64 %137
  %scevgep238 = getelementptr i8, ptr %scevgep237, i64 %137
  %scevgep240 = getelementptr i8, ptr %scevgep239, i64 %137
  %scevgep242 = getelementptr i8, ptr %scevgep241, i64 %137
  %scevgep244 = getelementptr i8, ptr %scevgep243, i64 %137
  %bound0245 = icmp ult ptr %scevgep, %scevgep238
  %bound1246 = icmp ult ptr %scevgep236, %scevgep231
  %found.conflict247 = and i1 %bound0245, %bound1246
  %conflict.rdx248 = or i1 %found.conflict, %found.conflict247
  %bound0249 = icmp ult ptr %scevgep, %scevgep240
  %bound1250 = icmp ult ptr %scevgep236, %scevgep231
  %found.conflict251 = and i1 %bound0249, %bound1250
  %conflict.rdx252 = or i1 %conflict.rdx248, %found.conflict251
  %bound0253 = icmp ult ptr %scevgep, %scevgep244
  %bound1254 = icmp ult ptr %scevgep242, %scevgep231
  %found.conflict255 = and i1 %bound0253, %bound1254
  %conflict.rdx256 = or i1 %conflict.rdx252, %found.conflict255
  %bound0257 = icmp ult ptr %scevgep233, %scevgep238
  %bound1258 = icmp ult ptr %scevgep236, %scevgep235
  %found.conflict259 = and i1 %bound0257, %bound1258
  %conflict.rdx260 = or i1 %conflict.rdx256, %found.conflict259
  %bound0261 = icmp ult ptr %scevgep233, %scevgep240
  %bound1262 = icmp ult ptr %scevgep236, %scevgep235
  %found.conflict263 = and i1 %bound0261, %bound1262
  %conflict.rdx264 = or i1 %conflict.rdx260, %found.conflict263
  %bound0265 = icmp ult ptr %scevgep233, %scevgep244
  %bound1266 = icmp ult ptr %scevgep242, %scevgep235
  %found.conflict267 = and i1 %bound0265, %bound1266
  %conflict.rdx268 = or i1 %conflict.rdx264, %found.conflict267
  br label %.preheader117

.preheader119:                                    ; preds = %._crit_edge131
  br i1 %.not110139, label %thread-pre-split.backedge, label %.preheader116

.preheader117:                                    ; preds = %.preheader117.lr.ph, %._crit_edge131
  %indvars.iv164 = phi i64 [ 1, %.preheader117.lr.ph ], [ %indvars.iv.next165, %._crit_edge131 ]
  %138 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %135, i64 1, i64 %indvars.iv164
  %139 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %135, i64 %53, i64 %indvars.iv164
  %brmerge323 = select i1 %min.iters.check271, i1 true, i1 %conflict.rdx268
  br i1 %brmerge323, label %scalar.ph270.preheader, label %vector.ph272

scalar.ph270.preheader:                           ; preds = %.preheader117, %middle.block269
  %indvars.iv159.ph = phi i64 [ 1, %.preheader117 ], [ %ind.end275, %middle.block269 ]
  br label %scalar.ph270

vector.ph272:                                     ; preds = %.preheader117
  %140 = load double, ptr %138, align 8, !tbaa !13, !alias.scope !32
  %broadcast.splatinsert = insertelement <2 x double> poison, double %140, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %141 = load double, ptr %139, align 8, !tbaa !13, !alias.scope !35
  %broadcast.splatinsert284 = insertelement <2 x double> poison, double %141, i64 0
  %broadcast.splat285 = shufflevector <2 x double> %broadcast.splatinsert284, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body277

vector.body277:                                   ; preds = %vector.body277, %vector.ph272
  %index278 = phi i64 [ 0, %vector.ph272 ], [ %index.next286, %vector.body277 ]
  %offset.idx279 = or disjoint i64 %index278, 1
  %142 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %135, i64 %indvars.iv164, i64 %offset.idx279
  %wide.load280 = load <2 x double>, ptr %142, align 8, !tbaa !13, !alias.scope !37
  %143 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 1, i64 %offset.idx279
  %wide.load281 = load <2 x double>, ptr %143, align 8, !tbaa !13, !alias.scope !39, !noalias !41
  %144 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load280, <2 x double> %wide.load281)
  store <2 x double> %144, ptr %143, align 8, !tbaa !13, !alias.scope !39, !noalias !41
  %wide.load282 = load <2 x double>, ptr %142, align 8, !tbaa !13, !alias.scope !37
  %145 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %53, i64 %offset.idx279
  %wide.load283 = load <2 x double>, ptr %145, align 8, !tbaa !13, !alias.scope !43, !noalias !44
  %146 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat285, <2 x double> %wide.load282, <2 x double> %wide.load283)
  store <2 x double> %146, ptr %145, align 8, !tbaa !13, !alias.scope !43, !noalias !44
  %index.next286 = add nuw i64 %index278, 2
  %147 = icmp eq i64 %index.next286, %n.vec274
  br i1 %147, label %middle.block269, label %vector.body277, !llvm.loop !45

middle.block269:                                  ; preds = %vector.body277
  br i1 %cmp.n287, label %._crit_edge131, label %scalar.ph270.preheader

._crit_edge131:                                   ; preds = %scalar.ph270, %middle.block269
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond168.not = icmp eq i64 %indvars.iv.next165, %wide.trip.count167
  br i1 %exitcond168.not, label %.preheader119, label %.preheader117, !llvm.loop !46

scalar.ph270:                                     ; preds = %scalar.ph270.preheader, %scalar.ph270
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %scalar.ph270 ], [ %indvars.iv159.ph, %scalar.ph270.preheader ]
  %148 = load double, ptr %138, align 8, !tbaa !13
  %149 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %135, i64 %indvars.iv164, i64 %indvars.iv159
  %150 = load double, ptr %149, align 8, !tbaa !13
  %151 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 1, i64 %indvars.iv159
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = call double @llvm.fmuladd.f64(double %148, double %150, double %152)
  store double %153, ptr %151, align 8, !tbaa !13
  %154 = load double, ptr %139, align 8, !tbaa !13
  %155 = load double, ptr %149, align 8, !tbaa !13
  %156 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %53, i64 %indvars.iv159
  %157 = load double, ptr %156, align 8, !tbaa !13
  %158 = call double @llvm.fmuladd.f64(double %154, double %155, double %157)
  store double %158, ptr %156, align 8, !tbaa !13
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond163.not = icmp eq i64 %indvars.iv.next160, %wide.trip.count167
  br i1 %exitcond163.not, label %._crit_edge131, label %scalar.ph270, !llvm.loop !47

.preheader116:                                    ; preds = %.preheader119, %._crit_edge138
  %indvar = phi i64 [ %indvar.next, %._crit_edge138 ], [ 0, %.preheader119 ]
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %._crit_edge138 ], [ 2, %.preheader119 ]
  %159 = add i64 %indvar, 1
  %160 = sub i64 %65, %indvar
  %161 = add nuw nsw i64 %indvars.iv174, %63
  %min.iters.check218 = icmp ult i64 %159, 4
  %brmerge324 = select i1 %min.iters.check218, i1 true, i1 %conflict.rdx215
  br i1 %brmerge324, label %scalar.ph217.preheader, label %vector.ph219

scalar.ph217.preheader:                           ; preds = %.preheader116, %middle.block216
  %indvars.iv169.ph = phi i64 [ 1, %.preheader116 ], [ %ind.end222, %middle.block216 ]
  br label %scalar.ph217

vector.ph219:                                     ; preds = %.preheader116
  %n.vec221 = and i64 %159, -4
  %ind.end222 = or disjoint i64 %n.vec221, 1
  br label %vector.body224

vector.body224:                                   ; preds = %vector.body224, %vector.ph219
  %index225 = phi i64 [ 0, %vector.ph219 ], [ %index.next227, %vector.body224 ]
  %offset.idx226 = or disjoint i64 %index225, 1
  %162 = add nuw nsw i64 %offset.idx226, %.pre-phi
  %163 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %162
  %164 = getelementptr inbounds i8, ptr %163, i64 16
  store <2 x double> zeroinitializer, ptr %163, align 8, !tbaa !13
  store <2 x double> zeroinitializer, ptr %164, align 8, !tbaa !13
  %165 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %offset.idx226
  %166 = getelementptr inbounds i8, ptr %165, i64 16
  store <2 x double> zeroinitializer, ptr %165, align 8, !tbaa !13
  store <2 x double> zeroinitializer, ptr %166, align 8, !tbaa !13
  %167 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %162
  %168 = getelementptr inbounds i8, ptr %167, i64 16
  store <2 x double> zeroinitializer, ptr %167, align 8, !tbaa !13
  store <2 x double> zeroinitializer, ptr %168, align 8, !tbaa !13
  %169 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %offset.idx226
  %170 = getelementptr inbounds i8, ptr %169, i64 16
  store <2 x double> zeroinitializer, ptr %169, align 8, !tbaa !13
  store <2 x double> zeroinitializer, ptr %170, align 8, !tbaa !13
  %index.next227 = add nuw i64 %index225, 4
  %171 = icmp eq i64 %index.next227, %n.vec221
  br i1 %171, label %middle.block216, label %vector.body224, !llvm.loop !48

middle.block216:                                  ; preds = %vector.body224
  %cmp.n228 = icmp eq i64 %159, %n.vec221
  br i1 %cmp.n228, label %.lr.ph137, label %scalar.ph217.preheader

.lr.ph137:                                        ; preds = %scalar.ph217, %middle.block216
  %172 = add nsw i64 %indvars.iv174, -1
  %173 = add nsw i64 %161, -1
  %min.iters.check = icmp ult i64 %160, 10
  %brmerge325 = select i1 %min.iters.check, i1 true, i1 %conflict.rdx190
  br i1 %brmerge325, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %.lr.ph137, %middle.block
  %indvars.iv176.ph = phi i64 [ %indvars.iv174, %.lr.ph137 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph137
  %n.vec = and i64 %160, -2
  %ind.end = add i64 %indvars.iv174, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv174, %index
  %174 = add nsw i64 %offset.idx, -1
  %175 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %172, i64 %174
  %wide.load = load <2 x double>, ptr %175, align 8, !tbaa !13
  %176 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %offset.idx
  store <2 x double> %wide.load, ptr %176, align 8, !tbaa !13
  %177 = add nuw nsw i64 %offset.idx, %63
  %178 = add nsw i64 %177, -1
  %179 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %172, i64 %178
  %wide.load205 = load <2 x double>, ptr %179, align 8, !tbaa !13
  %180 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %177
  store <2 x double> %wide.load205, ptr %180, align 8, !tbaa !13
  %181 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %173, i64 %174
  %wide.load206 = load <2 x double>, ptr %181, align 8, !tbaa !13
  %182 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %offset.idx
  store <2 x double> %wide.load206, ptr %182, align 8, !tbaa !13
  %183 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %173, i64 %178
  %wide.load207 = load <2 x double>, ptr %183, align 8, !tbaa !13
  %184 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %177
  store <2 x double> %wide.load207, ptr %184, align 8, !tbaa !13
  %index.next = add nuw i64 %index, 2
  %185 = icmp eq i64 %index.next, %n.vec
  br i1 %185, label %middle.block, label %vector.body, !llvm.loop !49

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %160, %n.vec
  br i1 %cmp.n, label %._crit_edge138, label %scalar.ph.preheader

scalar.ph217:                                     ; preds = %scalar.ph217.preheader, %scalar.ph217
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %scalar.ph217 ], [ %indvars.iv169.ph, %scalar.ph217.preheader ]
  %186 = add nuw nsw i64 %indvars.iv169, %.pre-phi
  %187 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %186
  store double 0.000000e+00, ptr %187, align 8, !tbaa !13
  %188 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %indvars.iv169
  store double 0.000000e+00, ptr %188, align 8, !tbaa !13
  %189 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %186
  store double 0.000000e+00, ptr %189, align 8, !tbaa !13
  %190 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %indvars.iv169
  store double 0.000000e+00, ptr %190, align 8, !tbaa !13
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next170, %indvars.iv174
  br i1 %exitcond173.not, label %.lr.ph137, label %scalar.ph217, !llvm.loop !50

._crit_edge138:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count182
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond183.not, label %thread-pre-split.backedge, label %.preheader116, !llvm.loop !51

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %scalar.ph ], [ %indvars.iv176.ph, %scalar.ph.preheader ]
  %191 = add nsw i64 %indvars.iv176, -1
  %192 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %172, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !13
  %194 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %indvars.iv176
  store double %193, ptr %194, align 8, !tbaa !13
  %195 = add nuw nsw i64 %indvars.iv176, %63
  %196 = add nsw i64 %195, -1
  %197 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %172, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !13
  %199 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %indvars.iv174, i64 %195
  store double %198, ptr %199, align 8, !tbaa !13
  %200 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %173, i64 %191
  %201 = load double, ptr %200, align 8, !tbaa !13
  %202 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %indvars.iv176
  store double %201, ptr %202, align 8, !tbaa !13
  %203 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %173, i64 %196
  %204 = load double, ptr %203, align 8, !tbaa !13
  %205 = getelementptr inbounds [2 x [61 x [63 x double]]], ptr @_ZZ4mainE3mat, i64 0, i64 %132, i64 %161, i64 %195
  store double %204, ptr %205, align 8, !tbaa !13
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %exitcond180.not = icmp eq i64 %indvars.iv.next177, %wide.trip.count182
  br i1 %exitcond180.not, label %._crit_edge138, label %scalar.ph, !llvm.loop !52

206:                                              ; preds = %.loopexit
  store i32 %127, ptr %3, align 4, !tbaa !5
  %207 = getelementptr inbounds [61 x double], ptr @_ZZ4mainE3row, i64 0, i64 %50
  %208 = load double, ptr %207, align 16, !tbaa !13
  br label %.critedge

.critedge:                                        ; preds = %25, %35, %28, %12, %206
  %.sink = phi double [ %208, %206 ], [ 0.000000e+00, %25 ], [ %34, %28 ], [ %41, %35 ], [ 0.000000e+00, %12 ]
  %209 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %.sink)
  call void @llvm.lifetime.end.p0(i64 7, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %210 = load i32, ptr %1, align 4, !tbaa !5
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %210, 0
  br i1 %.not, label %._crit_edge144, label %.lr.ph143

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #8

attributes #0 = { mustprogress norecurse nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !11}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!20}
!20 = distinct !{!20, !18}
!21 = !{!22}
!22 = distinct !{!22, !18}
!23 = !{!17, !20}
!24 = distinct !{!24, !11, !25, !26}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11, !25}
!29 = !{!30, !30, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = distinct !{!31, !11}
!32 = !{!33}
!33 = distinct !{!33, !34}
!34 = distinct !{!34, !"LVerDomain"}
!35 = !{!36}
!36 = distinct !{!36, !34}
!37 = !{!38}
!38 = distinct !{!38, !34}
!39 = !{!40}
!40 = distinct !{!40, !34}
!41 = !{!42, !33, !38, !36}
!42 = distinct !{!42, !34}
!43 = !{!42}
!44 = !{!33, !38, !36}
!45 = distinct !{!45, !11, !25, !26}
!46 = distinct !{!46, !11}
!47 = distinct !{!47, !11, !25}
!48 = distinct !{!48, !11, !25, !26}
!49 = distinct !{!49, !11, !25, !26}
!50 = distinct !{!50, !11, !25}
!51 = distinct !{!51, !11}
!52 = distinct !{!52, !11, !25}


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