; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SHORT/COOK72/Problem E/setter.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"

@m = external dso_local global i32, align 4
@mat = external dso_local global [510 x [510 x fp128]], align 16
@f = external dso_local global [510 x fp128], align 16
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [112 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvev = external hidden unnamed_addr constant [13 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca fp128, align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %157, %0
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = load i32, ptr @m, align 4, !tbaa !5
  %14 = icmp sle i32 %12, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %160

16:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 -1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %17 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %17, ptr %4, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %47, %16
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load i32, ptr @m, align 4, !tbaa !5
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = icmp eq i32 %24, -1
  br i1 %25, label %44, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %28
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [510 x fp128], ptr %29, i64 0, i64 %31
  %33 = load fp128, ptr %32, align 16, !tbaa !9
  %34 = call noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef %33)
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %36
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [510 x fp128], ptr %37, i64 0, i64 %39
  %41 = load fp128, ptr %40, align 16, !tbaa !9
  %42 = call noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef %41)
  %43 = fcmp ogt fp128 %34, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %26, %23
  %45 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %45, ptr %3, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %44, %26
  br label %47

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

50:                                               ; preds = %22
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %52
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [510 x fp128], ptr %53, i64 0, i64 %55
  %57 = load fp128, ptr %56, align 16, !tbaa !9
  %58 = call noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef %57)
  %59 = fcmp ogt fp128 %58, 0xL50000000000000003FDA5FD7FE179649
  br i1 %59, label %60, label %61

60:                                               ; preds = %50
  br label %63

61:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 65, ptr noundef @__PRETTY_FUNCTION__._Z5solvev) #7
  unreachable

62:                                               ; No predecessors!
  br label %63

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

64:                                               ; preds = %82, %63
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = load i32, ptr @m, align 4, !tbaa !5
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %64
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %71
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [510 x fp128], ptr %72, i64 0, i64 %74
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %77
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [510 x fp128], ptr %78, i64 0, i64 %80
  call void @_ZSt4swapIgENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 16 dereferenceable(16) %75, ptr noundef nonnull align 16 dereferenceable(16) %81) #6
  br label %82

82:                                               ; preds = %69
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !5
  br label %64, !llvm.loop !13

85:                                               ; preds = %68
  %86 = load i32, ptr %1, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %87
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %90
  call void @_ZSt4swapIgENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 16 dereferenceable(16) %88, ptr noundef nonnull align 16 dereferenceable(16) %91) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %6, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %153, %85
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = load i32, ptr @m, align 4, !tbaa !5
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %156

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %101
  %103 = load i32, ptr %1, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [510 x fp128], ptr %102, i64 0, i64 %104
  %106 = load fp128, ptr %105, align 16, !tbaa !9
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %108
  %110 = load i32, ptr %1, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [510 x fp128], ptr %109, i64 0, i64 %111
  %113 = load fp128, ptr %112, align 16, !tbaa !9
  %114 = fdiv fp128 %106, %113
  store fp128 %114, ptr %7, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %138, %99
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = load i32, ptr @m, align 4, !tbaa !5
  %118 = icmp sle i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 14, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %141

120:                                              ; preds = %115
  %121 = load fp128, ptr %7, align 16, !tbaa !9
  %122 = load i32, ptr %1, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %123
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [510 x fp128], ptr %124, i64 0, i64 %126
  %128 = load fp128, ptr %127, align 16, !tbaa !9
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %130
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [510 x fp128], ptr %131, i64 0, i64 %133
  %135 = load fp128, ptr %134, align 16, !tbaa !9
  %136 = fneg fp128 %121
  %137 = call fp128 @llvm.fmuladd.f128(fp128 %136, fp128 %128, fp128 %135)
  store fp128 %137, ptr %134, align 16, !tbaa !9
  br label %138

138:                                              ; preds = %120
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %8, align 4, !tbaa !5
  br label %115, !llvm.loop !14

141:                                              ; preds = %119
  %142 = load fp128, ptr %7, align 16, !tbaa !9
  %143 = load i32, ptr %1, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %144
  %146 = load fp128, ptr %145, align 16, !tbaa !9
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %148
  %150 = load fp128, ptr %149, align 16, !tbaa !9
  %151 = fneg fp128 %142
  %152 = call fp128 @llvm.fmuladd.f128(fp128 %151, fp128 %146, fp128 %150)
  store fp128 %152, ptr %149, align 16, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %153

153:                                              ; preds = %141
  %154 = load i32, ptr %6, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %6, align 4, !tbaa !5
  br label %94, !llvm.loop !15

156:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %1, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %1, align 4, !tbaa !5
  br label %11, !llvm.loop !16

160:                                              ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %161 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %161, ptr %9, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %208, %160
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = icmp sge i32 %163, 1
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  store i32 17, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %211

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %167 = load i32, ptr %9, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %10, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %192, %166
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = load i32, ptr @m, align 4, !tbaa !5
  %172 = icmp sle i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 20, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %195

174:                                              ; preds = %169
  %175 = load i32, ptr %9, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %176
  %178 = load i32, ptr %10, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [510 x fp128], ptr %177, i64 0, i64 %179
  %181 = load fp128, ptr %180, align 16, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %183
  %185 = load fp128, ptr %184, align 16, !tbaa !9
  %186 = load i32, ptr %9, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %187
  %189 = load fp128, ptr %188, align 16, !tbaa !9
  %190 = fneg fp128 %181
  %191 = call fp128 @llvm.fmuladd.f128(fp128 %190, fp128 %185, fp128 %189)
  store fp128 %191, ptr %188, align 16, !tbaa !9
  br label %192

192:                                              ; preds = %174
  %193 = load i32, ptr %10, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %10, align 4, !tbaa !5
  br label %169, !llvm.loop !17

195:                                              ; preds = %173
  %196 = load i32, ptr %9, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %197
  %199 = load i32, ptr %9, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [510 x fp128], ptr %198, i64 0, i64 %200
  %202 = load fp128, ptr %201, align 16, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %204
  %206 = load fp128, ptr %205, align 16, !tbaa !9
  %207 = fdiv fp128 %206, %202
  store fp128 %207, ptr %205, align 16, !tbaa !9
  br label %208

208:                                              ; preds = %195
  %209 = load i32, ptr %9, align 4, !tbaa !5
  %210 = add nsw i32 %209, -1
  store i32 %210, ptr %9, align 4, !tbaa !5
  br label %162, !llvm.loop !18

211:                                              ; preds = %165
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIgENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"__float128", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


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

@m = external dso_local local_unnamed_addr global i32, align 4
@mat = external dso_local global [510 x [510 x fp128]], align 16
@f = external dso_local global [510 x fp128], align 16
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [112 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvev = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = load i32, ptr @m, align 4, !tbaa !5
  %.not82 = icmp slt i32 %1, 1
  br i1 %.not82, label %._crit_edge90, label %.preheader64

.loopexit:                                        ; preds = %._crit_edge77
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  br i1 %.not6078.not, label %.preheader64, label %.preheader62, !llvm.loop !9

.preheader64:                                     ; preds = %0, %.loopexit
  %2 = phi i32 [ %31, %.loopexit ], [ %1, %0 ]
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %.loopexit ], [ 2, %0 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 1, %0 ]
  %3 = sext i32 %2 to i64
  %.not5866 = icmp sgt i64 %indvars.iv, %3
  br i1 %.not5866, label %._crit_edge, label %.lr.ph

.preheader62:                                     ; preds = %._crit_edge72, %.loopexit
  %4 = icmp sgt i32 %31, 0
  br i1 %4, label %.preheader.preheader, label %._crit_edge90

.preheader.preheader:                             ; preds = %.preheader62
  %5 = zext nneg i32 %31 to i64
  %6 = zext nneg i32 %31 to i64
  br label %.preheader

._crit_edge:                                      ; preds = %25, %.preheader64
  %.055.lcssa = phi i32 [ -1, %.preheader64 ], [ %.1, %25 ]
  %7 = sext i32 %.055.lcssa to i64
  %8 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %7, i64 %indvars.iv
  %9 = load fp128, ptr %8, align 16, !tbaa !11
  %10 = tail call noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef %9)
  %11 = fcmp ogt fp128 %10, 0xL50000000000000003FDA5FD7FE179649
  br i1 %11, label %.preheader63, label %28

.preheader63:                                     ; preds = %._crit_edge
  %12 = load i32, ptr @m, align 4, !tbaa !5
  %.not5969 = icmp slt i32 %12, 1
  br i1 %.not5969, label %._crit_edge72, label %.lr.ph71

.lr.ph:                                           ; preds = %.preheader64, %25
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %25 ], [ %indvars.iv, %.preheader64 ]
  %.05567 = phi i32 [ %.1, %25 ], [ -1, %.preheader64 ]
  %13 = icmp eq i32 %.05567, -1
  br i1 %13, label %23, label %14

14:                                               ; preds = %.lr.ph
  %15 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv92, i64 %indvars.iv
  %16 = load fp128, ptr %15, align 16, !tbaa !11
  %17 = tail call noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef %16)
  %18 = sext i32 %.05567 to i64
  %19 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %18, i64 %indvars.iv
  %20 = load fp128, ptr %19, align 16, !tbaa !11
  %21 = tail call noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef %20)
  %22 = fcmp ogt fp128 %17, %21
  br i1 %22, label %23, label %25

23:                                               ; preds = %14, %.lr.ph
  %24 = trunc nuw nsw i64 %indvars.iv92 to i32
  br label %25

25:                                               ; preds = %14, %23
  %.1 = phi i32 [ %24, %23 ], [ %.05567, %14 ]
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %26 = load i32, ptr @m, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %.not58.not = icmp slt i64 %indvars.iv92, %27
  br i1 %.not58.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

28:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 65, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5solvev) #4
  unreachable

._crit_edge72:                                    ; preds = %.lr.ph71, %.preheader63
  %29 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %indvars.iv
  %30 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %7
  tail call void @_ZSt4swapIgENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(16) %30) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = load i32, ptr @m, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %.not6078.not = icmp slt i64 %indvars.iv, %32
  br i1 %.not6078.not, label %.lr.ph81, label %.preheader62

.lr.ph81:                                         ; preds = %._crit_edge72
  %33 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv, i64 %indvars.iv
  %.not6173 = icmp slt i32 %31, 1
  %34 = add i32 %31, 1
  %wide.trip.count = zext i32 %34 to i64
  %35 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %35, 1
  %36 = icmp eq i32 %34, 2
  %unroll_iter = and i64 %35, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %41

.lr.ph71:                                         ; preds = %.preheader63, %.lr.ph71
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %.lr.ph71 ], [ 1, %.preheader63 ]
  %37 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv, i64 %indvars.iv95
  %38 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %7, i64 %indvars.iv95
  tail call void @_ZSt4swapIgENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 16 dereferenceable(16) %37, ptr noundef nonnull align 16 dereferenceable(16) %38) #5
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %39 = load i32, ptr @m, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %.not59.not = icmp slt i64 %indvars.iv95, %40
  br i1 %.not59.not, label %.lr.ph71, label %._crit_edge72, !llvm.loop !14

41:                                               ; preds = %.lr.ph81, %._crit_edge77
  %indvars.iv103 = phi i64 [ %indvars.iv101, %.lr.ph81 ], [ %indvars.iv.next104, %._crit_edge77 ]
  %42 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv103, i64 %indvars.iv
  %43 = load fp128, ptr %42, align 16, !tbaa !11
  %44 = load fp128, ptr %33, align 16, !tbaa !11
  %45 = fneg fp128 %43
  %.pre114 = fdiv fp128 %45, %44
  br i1 %.not6173, label %._crit_edge77, label %.lr.ph76.preheader

.lr.ph76.preheader:                               ; preds = %41
  br i1 %36, label %._crit_edge77.loopexit.unr-lcssa, label %.lr.ph76

._crit_edge77.loopexit.unr-lcssa:                 ; preds = %.lr.ph76, %.lr.ph76.preheader
  %indvars.iv98.unr = phi i64 [ 1, %.lr.ph76.preheader ], [ %indvars.iv.next99.1, %.lr.ph76 ]
  br i1 %lcmp.mod.not, label %._crit_edge77, label %.lr.ph76.epil

.lr.ph76.epil:                                    ; preds = %._crit_edge77.loopexit.unr-lcssa
  %46 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv, i64 %indvars.iv98.unr
  %47 = load fp128, ptr %46, align 16, !tbaa !11
  %48 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv103, i64 %indvars.iv98.unr
  %49 = load fp128, ptr %48, align 16, !tbaa !11
  %50 = tail call fp128 @llvm.fmuladd.f128(fp128 %.pre114, fp128 %47, fp128 %49)
  store fp128 %50, ptr %48, align 16, !tbaa !11
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %.lr.ph76.epil, %._crit_edge77.loopexit.unr-lcssa, %41
  %51 = load fp128, ptr %29, align 16, !tbaa !11
  %52 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %indvars.iv103
  %53 = load fp128, ptr %52, align 16, !tbaa !11
  %54 = tail call fp128 @llvm.fmuladd.f128(fp128 %.pre114, fp128 %51, fp128 %53)
  store fp128 %54, ptr %52, align 16, !tbaa !11
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next104 to i32
  %exitcond106.not = icmp eq i32 %34, %lftr.wideiv
  br i1 %exitcond106.not, label %.loopexit, label %41, !llvm.loop !15

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %.lr.ph76
  %indvars.iv98 = phi i64 [ %indvars.iv.next99.1, %.lr.ph76 ], [ 1, %.lr.ph76.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph76 ], [ 0, %.lr.ph76.preheader ]
  %55 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv, i64 %indvars.iv98
  %56 = load fp128, ptr %55, align 16, !tbaa !11
  %57 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv103, i64 %indvars.iv98
  %58 = load fp128, ptr %57, align 16, !tbaa !11
  %59 = tail call fp128 @llvm.fmuladd.f128(fp128 %.pre114, fp128 %56, fp128 %58)
  store fp128 %59, ptr %57, align 16, !tbaa !11
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %60 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv, i64 %indvars.iv.next99
  %61 = load fp128, ptr %60, align 16, !tbaa !11
  %62 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv103, i64 %indvars.iv.next99
  %63 = load fp128, ptr %62, align 16, !tbaa !11
  %64 = tail call fp128 @llvm.fmuladd.f128(fp128 %.pre114, fp128 %61, fp128 %63)
  store fp128 %64, ptr %62, align 16, !tbaa !11
  %indvars.iv.next99.1 = add nuw nsw i64 %indvars.iv98, 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 %._crit_edge77.loopexit.unr-lcssa, label %.lr.ph76, !llvm.loop !16

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge88
  %indvars.iv108 = phi i64 [ %5, %.preheader.preheader ], [ %indvars.iv.next109, %._crit_edge88 ]
  %.not57.not85 = icmp slt i64 %indvars.iv108, %6
  %65 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %indvars.iv108
  %.promoted = load fp128, ptr %65, align 16, !tbaa !11
  br i1 %.not57.not85, label %.lr.ph87, label %._crit_edge88

._crit_edge90:                                    ; preds = %._crit_edge88, %0, %.preheader62
  ret void

._crit_edge88:                                    ; preds = %.lr.ph87, %.preheader
  %66 = phi fp128 [ %.promoted, %.preheader ], [ %78, %.lr.ph87 ]
  %67 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv108, i64 %indvars.iv108
  %68 = load fp128, ptr %67, align 16, !tbaa !11
  %69 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %indvars.iv108
  %70 = fdiv fp128 %66, %68
  store fp128 %70, ptr %69, align 16, !tbaa !11
  %indvars.iv.next109 = add nsw i64 %indvars.iv108, -1
  %71 = icmp sgt i64 %indvars.iv108, 1
  br i1 %71, label %.preheader, label %._crit_edge90, !llvm.loop !17

.lr.ph87:                                         ; preds = %.preheader, %.lr.ph87
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.lr.ph87 ], [ %indvars.iv108, %.preheader ]
  %72 = phi fp128 [ %78, %.lr.ph87 ], [ %.promoted, %.preheader ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %73 = getelementptr inbounds [510 x [510 x fp128]], ptr @mat, i64 0, i64 %indvars.iv108, i64 %indvars.iv.next111
  %74 = load fp128, ptr %73, align 16, !tbaa !11
  %75 = getelementptr inbounds [510 x fp128], ptr @f, i64 0, i64 %indvars.iv.next111
  %76 = load fp128, ptr %75, align 16, !tbaa !11
  %77 = fneg fp128 %74
  %78 = tail call fp128 @llvm.fmuladd.f128(fp128 %77, fp128 %76, fp128 %72)
  store fp128 %78, ptr %65, align 16, !tbaa !11
  %79 = trunc nuw i64 %indvars.iv.next111 to i32
  %.not57.not = icmp sgt i32 %31, %79
  br i1 %.not57.not, label %.lr.ph87, label %._crit_edge88, !llvm.loop !18
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef fp128 @_Z5myabsIgET_S0_(fp128 noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIgENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"__float128", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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