; LLVM IR from buresjan/optim_lbm :: nomad/ext/sgtelib/src (Matrix)

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

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

@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.34 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [33 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7SGTELIB9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #1 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZngRKN7SGTELIB6MatrixE(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZdvRKN7SGTELIB6MatrixEd(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), double noundef) #2

declare noundef double @_ZN7SGTELIB12uniform_randEv() #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7SGTELIB6Matrix4normEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB6Matrix19get_poll_directionsERKS0_PKNS_14param_domain_tEd(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef %2, double noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.SGTELIB::Matrix", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.SGTELIB::Matrix", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.SGTELIB::Matrix", align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i1, align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca %"class.SGTELIB::Matrix", align 8
  %32 = alloca %"class.SGTELIB::Matrix", align 8
  %33 = alloca %"class.SGTELIB::Matrix", align 8
  %34 = alloca %"class.SGTELIB::Matrix", align 8
  %35 = alloca %"class.SGTELIB::Matrix", align 8
  %36 = alloca %"class.SGTELIB::Matrix", align 8
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  %41 = alloca i1, align 1
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %42)
  store i32 %43, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.108, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %44 unwind label %62

44:                                               ; preds = %4
  %45 = load i32, ptr %13, align 4, !tbaa !11
  %46 = load i32, ptr %13, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef %45, i32 noundef %46)
          to label %47 unwind label %66

47:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %48

48:                                               ; preds = %72, %47
  %49 = load i32, ptr %10, align 4, !tbaa !11
  %50 = load i32, ptr %13, align 4, !tbaa !11
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %75

52:                                               ; preds = %48
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %53, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !13
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %71

59:                                               ; preds = %52
  %60 = load i32, ptr %19, align 4, !tbaa !11
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %19, align 4, !tbaa !11
  br label %71

62:                                               ; preds = %4
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %17, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %18, align 4
  br label %70

66:                                               ; preds = %44
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %17, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %70

70:                                               ; preds = %66, %62
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %551

71:                                               ; preds = %59, %52
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %10, align 4, !tbaa !11
  br label %48, !llvm.loop !15

75:                                               ; preds = %48
  %76 = load i32, ptr %19, align 4, !tbaa !11
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %78, label %186

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 56, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.110, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %79 unwind label %103

79:                                               ; preds = %78
  %80 = load i32, ptr %13, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef nonnull align 8 dereferenceable(32) %21, i32 noundef 1, i32 noundef %80)
          to label %81 unwind label %107

81:                                               ; preds = %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %82

82:                                               ; preds = %117, %81
  %83 = load i32, ptr %10, align 4, !tbaa !11
  %84 = load i32, ptr %13, align 4, !tbaa !11
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %120

86:                                               ; preds = %82
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %10, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %87, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !13
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %116

93:                                               ; preds = %86
  %94 = invoke noundef double @_ZN7SGTELIB15quick_norm_randEv()
          to label %95 unwind label %112

95:                                               ; preds = %93
  %96 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %20, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !17
  %98 = getelementptr inbounds ptr, ptr %97, i64 0
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load i32, ptr %10, align 4, !tbaa !11
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  store double %94, ptr %102, align 8, !tbaa !9
  br label %116

103:                                              ; preds = %78
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %17, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %18, align 4
  br label %111

107:                                              ; preds = %79
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %17, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %111

111:                                              ; preds = %107, %103
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  br label %185

112:                                              ; preds = %148, %141, %93
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %17, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %18, align 4
  br label %184

116:                                              ; preds = %95, %86
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %10, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !11
  br label %82, !llvm.loop !22

120:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #7
  %121 = call noundef double @_ZNK7SGTELIB6Matrix4normEv(ptr noundef nonnull align 8 dereferenceable(56) %20)
  invoke void @_ZdvRKN7SGTELIB6MatrixEd(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %23, ptr noundef nonnull align 8 dereferenceable(56) %20, double noundef %121)
          to label %122 unwind label %169

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %124 unwind label %173

124:                                              ; preds = %122
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #7
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %125

125:                                              ; preds = %180, %124
  %126 = load i32, ptr %9, align 4, !tbaa !11
  %127 = load i32, ptr %13, align 4, !tbaa !11
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %129, label %183

129:                                              ; preds = %125
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = load i32, ptr %9, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %130, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !13
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %179

136:                                              ; preds = %129
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %166, %136
  %138 = load i32, ptr %10, align 4, !tbaa !11
  %139 = load i32, ptr %13, align 4, !tbaa !11
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %141, label %178

141:                                              ; preds = %137
  %142 = load i32, ptr %9, align 4, !tbaa !11
  %143 = load i32, ptr %10, align 4, !tbaa !11
  %144 = icmp eq i32 %142, %143
  %145 = uitofp i1 %144 to double
  %146 = load i32, ptr %9, align 4, !tbaa !11
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %20, i32 noundef %146)
          to label %148 unwind label %112

148:                                              ; preds = %141
  %149 = load double, ptr %147, align 8, !tbaa !9
  %150 = fmul double 2.000000e+00, %149
  %151 = load i32, ptr %10, align 4, !tbaa !11
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %20, i32 noundef %151)
          to label %153 unwind label %112

153:                                              ; preds = %148
  %154 = load double, ptr %152, align 8, !tbaa !9
  %155 = fneg double %150
  %156 = call double @llvm.fmuladd.f64(double %155, double %154, double %145)
  %157 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !17
  %159 = load i32, ptr %9, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i32, ptr %10, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds double, ptr %162, i64 %164
  store double %156, ptr %165, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %153
  %167 = load i32, ptr %10, align 4, !tbaa !11
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %10, align 4, !tbaa !11
  br label %137, !llvm.loop !23

169:                                              ; preds = %120
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %17, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %18, align 4
  br label %177

173:                                              ; preds = %122
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %17, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %18, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #7
  br label %177

177:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #7
  br label %184

178:                                              ; preds = %137
  br label %179

179:                                              ; preds = %178, %129
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %9, align 4, !tbaa !11
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %9, align 4, !tbaa !11
  br label %125, !llvm.loop !24

183:                                              ; preds = %125
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #7
  br label %186

184:                                              ; preds = %177, %112
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #7
  br label %185

185:                                              ; preds = %184, %111
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #7
  br label %550

186:                                              ; preds = %183, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %187 = load double, ptr %8, align 8, !tbaa !9
  %188 = load double, ptr %8, align 8, !tbaa !9
  %189 = fmul double %187, %188
  store double %189, ptr %25, align 8, !tbaa !9
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %191 unwind label %232

191:                                              ; preds = %186
  %192 = load double, ptr %190, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  store double %192, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %193 = load double, ptr %8, align 8, !tbaa !9
  %194 = load double, ptr %24, align 8, !tbaa !9
  %195 = fdiv double %193, %194
  store double %195, ptr %26, align 8, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %196

196:                                              ; preds = %381, %191
  %197 = load i32, ptr %9, align 4, !tbaa !11
  %198 = load i32, ptr %13, align 4, !tbaa !11
  %199 = icmp slt i32 %197, %198
  br i1 %199, label %200, label %384

200:                                              ; preds = %196
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = load i32, ptr %9, align 4, !tbaa !11
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds i32, ptr %201, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !13
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %245

207:                                              ; preds = %200
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %208

208:                                              ; preds = %241, %207
  %209 = load i32, ptr %10, align 4, !tbaa !11
  %210 = load i32, ptr %13, align 4, !tbaa !11
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %244

212:                                              ; preds = %208
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = load i32, ptr %10, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds i32, ptr %213, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !13
  %218 = icmp eq i32 %217, 0
  br i1 %218, label %219, label %240

219:                                              ; preds = %212
  %220 = invoke noundef double @_ZN7SGTELIB12uniform_randEv()
          to label %221 unwind label %236

221:                                              ; preds = %219
  %222 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %220, double -1.000000e+00)
  %223 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !17
  %225 = load i32, ptr %9, align 4, !tbaa !11
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds ptr, ptr %224, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = load i32, ptr %10, align 4, !tbaa !11
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  store double %222, ptr %231, align 8, !tbaa !9
  br label %240

232:                                              ; preds = %186
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %17, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %549

236:                                              ; preds = %365, %361, %359, %288, %284, %219
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %17, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %18, align 4
  br label %548

240:                                              ; preds = %221, %212
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %10, align 4, !tbaa !11
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %10, align 4, !tbaa !11
  br label %208, !llvm.loop !25

244:                                              ; preds = %208
  br label %245

245:                                              ; preds = %244, %200
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %246

246:                                              ; preds = %265, %245
  %247 = load i32, ptr %10, align 4, !tbaa !11
  %248 = load i32, ptr %13, align 4, !tbaa !11
  %249 = icmp slt i32 %247, %248
  br i1 %249, label %250, label %272

250:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %251 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !17
  %253 = load i32, ptr %9, align 4, !tbaa !11
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds ptr, ptr %252, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = load i32, ptr %10, align 4, !tbaa !11
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds double, ptr %256, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !9
  %261 = call double @llvm.fabs.f64(double %260)
  store double %261, ptr %27, align 8, !tbaa !9
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %263 unwind label %268

263:                                              ; preds = %250
  %264 = load double, ptr %262, align 8, !tbaa !9
  store double %264, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %265

265:                                              ; preds = %263
  %266 = load i32, ptr %10, align 4, !tbaa !11
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %10, align 4, !tbaa !11
  br label %246, !llvm.loop !26

268:                                              ; preds = %250
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %17, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %548

272:                                              ; preds = %246
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %273

273:                                              ; preds = %319, %272
  %274 = load i32, ptr %10, align 4, !tbaa !11
  %275 = load i32, ptr %13, align 4, !tbaa !11
  %276 = icmp slt i32 %274, %275
  br i1 %276, label %277, label %322

277:                                              ; preds = %273
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load i32, ptr %10, align 4, !tbaa !11
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i32, ptr %278, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !13
  %283 = icmp eq i32 %282, 0
  br i1 %283, label %284, label %318

284:                                              ; preds = %277
  %285 = load ptr, ptr %6, align 8, !tbaa !5
  %286 = load i32, ptr %10, align 4, !tbaa !11
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %285, i32 noundef %286)
          to label %288 unwind label %236

288:                                              ; preds = %284
  %289 = load double, ptr %287, align 8, !tbaa !9
  %290 = load double, ptr %24, align 8, !tbaa !9
  %291 = fmul double %289, %290
  %292 = load double, ptr %26, align 8, !tbaa !9
  %293 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !17
  %295 = load i32, ptr %9, align 4, !tbaa !11
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds ptr, ptr %294, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !5
  %299 = load i32, ptr %10, align 4, !tbaa !11
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds double, ptr %298, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !9
  %303 = fmul double %292, %302
  %304 = load double, ptr %12, align 8, !tbaa !9
  %305 = fdiv double %303, %304
  %306 = invoke noundef double @_ZN7SGTELIB5rceilEd(double noundef %305)
          to label %307 unwind label %236

307:                                              ; preds = %288
  %308 = fmul double %291, %306
  %309 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %310 = load ptr, ptr %309, align 8, !tbaa !17
  %311 = load i32, ptr %9, align 4, !tbaa !11
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds ptr, ptr %310, i64 %312
  %314 = load ptr, ptr %313, align 8, !tbaa !5
  %315 = load i32, ptr %10, align 4, !tbaa !11
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds double, ptr %314, i64 %316
  store double %308, ptr %317, align 8, !tbaa !9
  br label %318

318:                                              ; preds = %307, %277
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %10, align 4, !tbaa !11
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %10, align 4, !tbaa !11
  br label %273, !llvm.loop !27

322:                                              ; preds = %273
  %323 = load ptr, ptr %7, align 8, !tbaa !5
  %324 = load i32, ptr %9, align 4, !tbaa !11
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds i32, ptr %323, i64 %325
  %327 = load i32, ptr %326, align 4, !tbaa !13
  %328 = icmp eq i32 %327, 1
  br i1 %328, label %336, label %329

329:                                              ; preds = %322
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = load i32, ptr %9, align 4, !tbaa !11
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds i32, ptr %330, i64 %332
  %334 = load i32, ptr %333, align 4, !tbaa !13
  %335 = icmp eq i32 %334, 2
  br i1 %335, label %336, label %352

336:                                              ; preds = %329, %322
  %337 = load i32, ptr %9, align 4, !tbaa !11
  %338 = srem i32 %337, 2
  %339 = icmp eq i32 %338, 0
  %340 = zext i1 %339 to i64
  %341 = select i1 %339, i32 -1, i32 1
  %342 = sitofp i32 %341 to double
  %343 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !17
  %345 = load i32, ptr %9, align 4, !tbaa !11
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds ptr, ptr %344, i64 %346
  %348 = load ptr, ptr %347, align 8, !tbaa !5
  %349 = load i32, ptr %9, align 4, !tbaa !11
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds double, ptr %348, i64 %350
  store double %342, ptr %351, align 8, !tbaa !9
  br label %380

352:                                              ; preds = %329
  %353 = load ptr, ptr %7, align 8, !tbaa !5
  %354 = load i32, ptr %9, align 4, !tbaa !11
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds i32, ptr %353, i64 %355
  %357 = load i32, ptr %356, align 4, !tbaa !13
  %358 = icmp eq i32 %357, 3
  br i1 %358, label %359, label %379

359:                                              ; preds = %352
  %360 = invoke noundef double @_ZN7SGTELIB12uniform_randEv()
          to label %361 unwind label %236

361:                                              ; preds = %359
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  %363 = load i32, ptr %9, align 4, !tbaa !11
  %364 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %362, i32 noundef %363)
          to label %365 unwind label %236

365:                                              ; preds = %361
  %366 = load double, ptr %364, align 8, !tbaa !9
  %367 = fmul double %360, %366
  %368 = invoke noundef double @_ZN7SGTELIB5rceilEd(double noundef %367)
          to label %369 unwind label %236

369:                                              ; preds = %365
  %370 = getelementptr inbounds %"class.SGTELIB::Matrix", ptr %14, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !17
  %372 = load i32, ptr %9, align 4, !tbaa !11
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds ptr, ptr %371, i64 %373
  %375 = load ptr, ptr %374, align 8, !tbaa !5
  %376 = load i32, ptr %9, align 4, !tbaa !11
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds double, ptr %375, i64 %377
  store double %368, ptr %378, align 8, !tbaa !9
  br label %379

379:                                              ; preds = %369, %352
  br label %380

380:                                              ; preds = %379, %336
  br label %381

381:                                              ; preds = %380
  %382 = load i32, ptr %9, align 4, !tbaa !11
  %383 = add nsw i32 %382, 1
  store i32 %383, ptr %9, align 4, !tbaa !11
  br label %196, !llvm.loop !28

384:                                              ; preds = %196
  store i1 false, ptr %28, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.111, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %385 unwind label %413

385:                                              ; preds = %384
  %386 = load i32, ptr %13, align 4, !tbaa !11
  %387 = mul nsw i32 2, %386
  %388 = load i32, ptr %13, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef %387, i32 noundef %388)
          to label %389 unwind label %417

389:                                              ; preds = %385
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  store i32 0, ptr %11, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %390

390:                                              ; preds = %446, %389
  %391 = load i32, ptr %9, align 4, !tbaa !11
  %392 = load i32, ptr %13, align 4, !tbaa !11
  %393 = icmp slt i32 %391, %392
  br i1 %393, label %394, label %449

394:                                              ; preds = %390
  %395 = load ptr, ptr %7, align 8, !tbaa !5
  %396 = load i32, ptr %9, align 4, !tbaa !11
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds i32, ptr %395, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !13
  %400 = icmp eq i32 %399, 0
  br i1 %400, label %401, label %445

401:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 56, ptr %31) #7
  %402 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %31, ptr noundef nonnull align 8 dereferenceable(56) %14, i32 noundef %402)
          to label %403 unwind label %422

403:                                              ; preds = %401
  %404 = load i32, ptr %11, align 4, !tbaa !11
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %11, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %31, i32 noundef %404)
          to label %406 unwind label %426

406:                                              ; preds = %403
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %33) #7
  %407 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %33, ptr noundef nonnull align 8 dereferenceable(56) %14, i32 noundef %407)
          to label %408 unwind label %431

408:                                              ; preds = %406
  invoke void @_ZngRKN7SGTELIB6MatrixE(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %32, ptr noundef nonnull align 8 dereferenceable(56) %33)
          to label %409 unwind label %435

409:                                              ; preds = %408
  %410 = load i32, ptr %11, align 4, !tbaa !11
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %11, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %32, i32 noundef %410)
          to label %412 unwind label %439

412:                                              ; preds = %409
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %32) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %33) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %32) #7
  br label %445

413:                                              ; preds = %384
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %17, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %18, align 4
  br label %421

417:                                              ; preds = %385
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %17, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %421

421:                                              ; preds = %417, %413
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %548

422:                                              ; preds = %401
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %17, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %18, align 4
  br label %430

426:                                              ; preds = %403
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %17, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %18, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %31) #7
  br label %430

430:                                              ; preds = %426, %422
  call void @llvm.lifetime.end.p0(i64 56, ptr %31) #7
  br label %547

431:                                              ; preds = %406
  %432 = landingpad { ptr, i32 }
          cleanup
  %433 = extractvalue { ptr, i32 } %432, 0
  store ptr %433, ptr %17, align 8
  %434 = extractvalue { ptr, i32 } %432, 1
  store i32 %434, ptr %18, align 4
  br label %444

435:                                              ; preds = %408
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %17, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %18, align 4
  br label %443

439:                                              ; preds = %409
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %17, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %18, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %32) #7
  br label %443

443:                                              ; preds = %439, %435
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %33) #7
  br label %444

444:                                              ; preds = %443, %431
  call void @llvm.lifetime.end.p0(i64 56, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %32) #7
  br label %547

445:                                              ; preds = %412, %394
  br label %446

446:                                              ; preds = %445
  %447 = load i32, ptr %9, align 4, !tbaa !11
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %9, align 4, !tbaa !11
  br label %390, !llvm.loop !29

449:                                              ; preds = %390
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %450

450:                                              ; preds = %497, %449
  %451 = load i32, ptr %9, align 4, !tbaa !11
  %452 = load i32, ptr %13, align 4, !tbaa !11
  %453 = icmp slt i32 %451, %452
  br i1 %453, label %454, label %500

454:                                              ; preds = %450
  %455 = load ptr, ptr %7, align 8, !tbaa !5
  %456 = load i32, ptr %9, align 4, !tbaa !11
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds i32, ptr %455, i64 %457
  %459 = load i32, ptr %458, align 4, !tbaa !13
  %460 = icmp ne i32 %459, 0
  br i1 %460, label %461, label %496

461:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 56, ptr %34) #7
  %462 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %34, ptr noundef nonnull align 8 dereferenceable(56) %14, i32 noundef %462)
          to label %463 unwind label %473

463:                                              ; preds = %461
  %464 = load i32, ptr %11, align 4, !tbaa !11
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %11, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %34, i32 noundef %464)
          to label %466 unwind label %477

466:                                              ; preds = %463
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %34) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %36) #7
  %467 = load i32, ptr %9, align 4, !tbaa !11
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %36, ptr noundef nonnull align 8 dereferenceable(56) %14, i32 noundef %467)
          to label %468 unwind label %482

468:                                              ; preds = %466
  invoke void @_ZngRKN7SGTELIB6MatrixE(ptr dead_on_unwind writable sret(%"class.SGTELIB::Matrix") align 8 %35, ptr noundef nonnull align 8 dereferenceable(56) %36)
          to label %469 unwind label %486

469:                                              ; preds = %468
  %470 = load i32, ptr %11, align 4, !tbaa !11
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %11, align 4, !tbaa !11
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %35, i32 noundef %470)
          to label %472 unwind label %490

472:                                              ; preds = %469
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %35) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %36) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %35) #7
  br label %496

473:                                              ; preds = %461
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %17, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %18, align 4
  br label %481

477:                                              ; preds = %463
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %17, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %18, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %34) #7
  br label %481

481:                                              ; preds = %477, %473
  call void @llvm.lifetime.end.p0(i64 56, ptr %34) #7
  br label %547

482:                                              ; preds = %466
  %483 = landingpad { ptr, i32 }
          cleanup
  %484 = extractvalue { ptr, i32 } %483, 0
  store ptr %484, ptr %17, align 8
  %485 = extractvalue { ptr, i32 } %483, 1
  store i32 %485, ptr %18, align 4
  br label %495

486:                                              ; preds = %468
  %487 = landingpad { ptr, i32 }
          cleanup
  %488 = extractvalue { ptr, i32 } %487, 0
  store ptr %488, ptr %17, align 8
  %489 = extractvalue { ptr, i32 } %487, 1
  store i32 %489, ptr %18, align 4
  br label %494

490:                                              ; preds = %469
  %491 = landingpad { ptr, i32 }
          cleanup
  %492 = extractvalue { ptr, i32 } %491, 0
  store ptr %492, ptr %17, align 8
  %493 = extractvalue { ptr, i32 } %491, 1
  store i32 %493, ptr %18, align 4
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %35) #7
  br label %494

494:                                              ; preds = %490, %486
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %36) #7
  br label %495

495:                                              ; preds = %494, %482
  call void @llvm.lifetime.end.p0(i64 56, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %35) #7
  br label %547

496:                                              ; preds = %472, %454
  br label %497

497:                                              ; preds = %496
  %498 = load i32, ptr %9, align 4, !tbaa !11
  %499 = add nsw i32 %498, 1
  store i32 %499, ptr %9, align 4, !tbaa !11
  br label %450, !llvm.loop !30

500:                                              ; preds = %450
  %501 = load i32, ptr %11, align 4, !tbaa !11
  %502 = load i32, ptr %13, align 4, !tbaa !11
  %503 = mul nsw i32 2, %502
  %504 = icmp ne i32 %501, %503
  br i1 %504, label %505, label %543

505:                                              ; preds = %500
  %506 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.112)
          to label %507 unwind label %522

507:                                              ; preds = %505
  %508 = load i32, ptr %11, align 4, !tbaa !11
  %509 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %506, i32 noundef %508)
          to label %510 unwind label %522

510:                                              ; preds = %507
  %511 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %509, ptr noundef @.str.34)
          to label %512 unwind label %522

512:                                              ; preds = %510
  %513 = load i32, ptr %13, align 4, !tbaa !11
  %514 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %511, i32 noundef %513)
          to label %515 unwind label %522

515:                                              ; preds = %512
  %516 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %514, ptr noundef @.str.40)
          to label %517 unwind label %522

517:                                              ; preds = %515
  store i1 true, ptr %41, align 1
  %518 = call ptr @__cxa_allocate_exception(i64 112) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %519 unwind label %526

519:                                              ; preds = %517
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.113, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %520 unwind label %530

520:                                              ; preds = %519
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %518, ptr noundef nonnull align 8 dereferenceable(32) %37, i32 noundef 2874, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %521 unwind label %534

521:                                              ; preds = %520
  store i1 false, ptr %41, align 1
  invoke void @__cxa_throw(ptr %518, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #8
          to label %557 unwind label %534

522:                                              ; preds = %515, %512, %510, %507, %505
  %523 = landingpad { ptr, i32 }
          cleanup
  %524 = extractvalue { ptr, i32 } %523, 0
  store ptr %524, ptr %17, align 8
  %525 = extractvalue { ptr, i32 } %523, 1
  store i32 %525, ptr %18, align 4
  br label %547

526:                                              ; preds = %517
  %527 = landingpad { ptr, i32 }
          cleanup
  %528 = extractvalue { ptr, i32 } %527, 0
  store ptr %528, ptr %17, align 8
  %529 = extractvalue { ptr, i32 } %527, 1
  store i32 %529, ptr %18, align 4
  br label %539

530:                                              ; preds = %519
  %531 = landingpad { ptr, i32 }
          cleanup
  %532 = extractvalue { ptr, i32 } %531, 0
  store ptr %532, ptr %17, align 8
  %533 = extractvalue { ptr, i32 } %531, 1
  store i32 %533, ptr %18, align 4
  br label %538

534:                                              ; preds = %521, %520
  %535 = landingpad { ptr, i32 }
          cleanup
  %536 = extractvalue { ptr, i32 } %535, 0
  store ptr %536, ptr %17, align 8
  %537 = extractvalue { ptr, i32 } %535, 1
  store i32 %537, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  br label %538

538:                                              ; preds = %534, %530
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #7
  br label %539

539:                                              ; preds = %538, %526
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  %540 = load i1, ptr %41, align 1
  br i1 %540, label %541, label %542

541:                                              ; preds = %539
  call void @__cxa_free_exception(ptr %518) #7
  br label %542

542:                                              ; preds = %541, %539
  br label %547

543:                                              ; preds = %500
  store i1 true, ptr %28, align 1
  %544 = load i1, ptr %28, align 1
  br i1 %544, label %546, label %545

545:                                              ; preds = %543
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #7
  br label %546

546:                                              ; preds = %545, %543
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void

547:                                              ; preds = %542, %522, %495, %481, %444, %430
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #7
  br label %548

548:                                              ; preds = %547, %421, %268, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %549

549:                                              ; preds = %548, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %550

550:                                              ; preds = %549, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #7
  br label %551

551:                                              ; preds = %550, %70
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %552

552:                                              ; preds = %551
  %553 = load ptr, ptr %17, align 8
  %554 = load i32, ptr %18, align 4
  %555 = insertvalue { ptr, i32 } poison, ptr %553, 0
  %556 = insertvalue { ptr, i32 } %555, i32 %554, 1
  resume { ptr, i32 } %556

557:                                              ; preds = %521
  unreachable
}

declare noundef double @_ZN7SGTELIB15quick_norm_randEv() #4

declare noundef double @_ZN7SGTELIB5rceilEd(double noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr, ptr, i32, i32)

declare void @_ZN7SGTELIB6MatrixD1Ev(ptr)

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

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN7SGTELIB14param_domain_tE", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !6, i64 48}
!18 = !{!"_ZTSN7SGTELIB6MatrixE", !19, i64 8, !12, i64 40, !12, i64 44, !6, i64 48}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}


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

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

@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.34 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [33 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7SGTELIB9ExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #1 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZngRKN7SGTELIB6MatrixE(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZdvRKN7SGTELIB6MatrixEd(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), double noundef) local_unnamed_addr #2

declare noundef double @_ZN7SGTELIB12uniform_randEv() local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7SGTELIB6Matrix4normEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB6Matrix19get_poll_directionsERKS0_PKNS_14param_domain_tEd(ptr dead_on_unwind noalias writable sret(%"class.SGTELIB::Matrix") align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, ptr nocapture noundef readonly %2, double noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.SGTELIB::Matrix", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.SGTELIB::Matrix", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.SGTELIB::Matrix", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.SGTELIB::Matrix", align 8
  %19 = alloca %"class.SGTELIB::Matrix", align 8
  %20 = alloca %"class.SGTELIB::Matrix", align 8
  %21 = alloca %"class.SGTELIB::Matrix", align 8
  %22 = alloca %"class.SGTELIB::Matrix", align 8
  %23 = alloca %"class.SGTELIB::Matrix", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  store double %3, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %28 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %1)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.108, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %29 unwind label %46

29:                                               ; preds = %4
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %28, i32 noundef %28)
          to label %30 unwind label %48

30:                                               ; preds = %29
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %31 = icmp sgt i32 %28, 0
  br i1 %31, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %30
  %wide.trip.count = zext nneg i32 %28 to i64
  %min.iters.check = icmp ult i32 %28, 8
  br i1 %min.iters.check, label %.lr.ph.preheader287, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %38, %vector.body ]
  %vec.phi285 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %39, %vector.body ]
  %32 = getelementptr inbounds i32, ptr %2, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %wide.load = load <4 x i32>, ptr %32, align 4, !tbaa !9
  %wide.load286 = load <4 x i32>, ptr %33, align 4, !tbaa !9
  %34 = icmp eq <4 x i32> %wide.load, zeroinitializer
  %35 = icmp eq <4 x i32> %wide.load286, zeroinitializer
  %36 = zext <4 x i1> %34 to <4 x i32>
  %37 = zext <4 x i1> %35 to <4 x i32>
  %38 = add <4 x i32> %vec.phi, %36
  %39 = add <4 x i32> %vec.phi285, %37
  %index.next = add nuw i64 %index, 8
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %39, %38
  %41 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader287

.lr.ph.preheader287:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.0109196.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %41, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader287, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader287 ]
  %.0109196 = phi i32 [ %spec.select, %.lr.ph ], [ %.0109196.ph, %.lr.ph.preheader287 ]
  %42 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  %45 = zext i1 %44 to i32
  %spec.select = add nuw nsw i32 %.0109196, %45
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

46:                                               ; preds = %4
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %29
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %262

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %41, %middle.block ], [ %spec.select, %.lr.ph ]
  %.not284 = icmp eq i32 %spec.select.lcssa, 0
  br i1 %.not284, label %._crit_edge.thread, label %51

51:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.110, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %52 unwind label %65

52:                                               ; preds = %51
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1, i32 noundef %28)
          to label %53 unwind label %67

53:                                               ; preds = %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br i1 %31, label %.lr.ph200, label %._crit_edge201

.lr.ph200:                                        ; preds = %53
  %54 = getelementptr inbounds i8, ptr %10, i64 48
  %wide.trip.count236 = zext nneg i32 %28 to i64
  br label %55

55:                                               ; preds = %.lr.ph200, %70
  %indvars.iv233 = phi i64 [ 0, %.lr.ph200 ], [ %indvars.iv.next234, %70 ]
  %56 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv233
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %70

59:                                               ; preds = %55
  %60 = invoke noundef double @_ZN7SGTELIB15quick_norm_randEv()
          to label %61 unwind label %.loopexit.split-lp183

61:                                               ; preds = %59
  %62 = load ptr, ptr %54, align 8, !tbaa !16
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv233
  store double %60, ptr %64, align 8, !tbaa !5
  br label %70

65:                                               ; preds = %51
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %52
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  br label %69

69:                                               ; preds = %67, %65
  %.pn142 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %102

.loopexit.split-lp183:                            ; preds = %59
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %101

70:                                               ; preds = %55, %61
  %indvars.iv.next234 = add nuw nsw i64 %indvars.iv233, 1
  %exitcond237.not = icmp eq i64 %indvars.iv.next234, %wide.trip.count236
  br i1 %exitcond237.not, label %._crit_edge201, label %55, !llvm.loop !24

._crit_edge201:                                   ; preds = %70, %53
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #8
  %71 = call noundef double @_ZNK7SGTELIB6Matrix4normEv(ptr noundef nonnull align 8 dereferenceable(56) %10)
  invoke void @_ZdvRKN7SGTELIB6MatrixEd(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %13, ptr noundef nonnull align 8 dereferenceable(56) %10, double noundef %71)
          to label %72 unwind label %96

72:                                               ; preds = %._crit_edge201
  %73 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN7SGTELIB6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %74 unwind label %98

74:                                               ; preds = %72
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #8
  br i1 %31, label %.lr.ph207, label %._crit_edge208

.lr.ph207:                                        ; preds = %74
  %75 = getelementptr inbounds i8, ptr %7, i64 48
  %wide.trip.count246 = zext nneg i32 %28 to i64
  br label %76

76:                                               ; preds = %..loopexit181_crit_edge.us, %.lr.ph207
  %indvars.iv243 = phi i64 [ %indvars.iv.next244, %..loopexit181_crit_edge.us ], [ 0, %.lr.ph207 ]
  %77 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv243
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %.preheader180.us.preheader, label %..loopexit181_crit_edge.us

.preheader180.us.preheader:                       ; preds = %76
  %80 = trunc nuw nsw i64 %indvars.iv243 to i32
  br label %.preheader180.us

..loopexit181_crit_edge.us:                       ; preds = %88, %76
  %indvars.iv.next244 = add nuw nsw i64 %indvars.iv243, 1
  %exitcond247.not = icmp eq i64 %indvars.iv.next244, %wide.trip.count246
  br i1 %exitcond247.not, label %._crit_edge208, label %76, !llvm.loop !25

.preheader180.us:                                 ; preds = %.preheader180.us.preheader, %88
  %indvars.iv238 = phi i64 [ 0, %.preheader180.us.preheader ], [ %indvars.iv.next239, %88 ]
  %81 = icmp eq i64 %indvars.iv243, %indvars.iv238
  %82 = uitofp i1 %81 to double
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %80)
          to label %84 unwind label %.loopexit182.split.us

84:                                               ; preds = %.preheader180.us
  %85 = load double, ptr %83, align 8, !tbaa !5
  %86 = trunc nuw nsw i64 %indvars.iv238 to i32
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %86)
          to label %88 unwind label %.loopexit182.split.us

88:                                               ; preds = %84
  %89 = load double, ptr %87, align 8, !tbaa !5
  %90 = fmul double %85, -2.000000e+00
  %91 = call double @llvm.fmuladd.f64(double %90, double %89, double %82)
  %92 = load ptr, ptr %75, align 8, !tbaa !16
  %93 = getelementptr inbounds ptr, ptr %92, i64 %indvars.iv243
  %94 = load ptr, ptr %93, align 8, !tbaa !23
  %95 = getelementptr inbounds double, ptr %94, i64 %indvars.iv238
  store double %91, ptr %95, align 8, !tbaa !5
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %exitcond242.not = icmp eq i64 %indvars.iv.next239, %wide.trip.count246
  br i1 %exitcond242.not, label %..loopexit181_crit_edge.us, label %.preheader180.us, !llvm.loop !26

.loopexit182.split.us:                            ; preds = %84, %.preheader180.us
  %lpad.loopexit184.us = landingpad { ptr, i32 }
          cleanup
  br label %101

96:                                               ; preds = %._crit_edge201
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %100

98:                                               ; preds = %72
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  br label %100

100:                                              ; preds = %98, %96
  %.pn144 = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #8
  br label %101

._crit_edge208:                                   ; preds = %..loopexit181_crit_edge.us, %74
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #8
  br label %._crit_edge.thread

101:                                              ; preds = %.loopexit182.split.us, %.loopexit.split-lp183, %100
  %.pn166 = phi { ptr, i32 } [ %.pn144, %100 ], [ %lpad.loopexit184.us, %.loopexit182.split.us ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp183 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #8
  br label %102

102:                                              ; preds = %101, %69
  %.pn166.pn = phi { ptr, i32 } [ %.pn166, %101 ], [ %.pn142, %69 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #8
  br label %.loopexit.split-lp

._crit_edge.thread:                               ; preds = %30, %._crit_edge208, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %103 = load double, ptr %5, align 8, !tbaa !5
  %104 = fmul double %103, %103
  store double %104, ptr %14, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %106 = load double, ptr %105, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  %107 = load double, ptr %5, align 8, !tbaa !5
  %108 = fdiv double %107, %106
  br i1 %31, label %.lr.ph219, label %._crit_edge220

.lr.ph219:                                        ; preds = %._crit_edge.thread
  %109 = getelementptr inbounds i8, ptr %7, i64 48
  %wide.trip.count266 = zext nneg i32 %28 to i64
  br label %110

110:                                              ; preds = %.lr.ph219, %176
  %indvars.iv263 = phi i64 [ 0, %.lr.ph219 ], [ %indvars.iv.next264, %176 ]
  %111 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv263
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %.not163 = icmp eq i32 %112, 0
  br i1 %.not163, label %.lr.ph213.preheader, label %.lr.ph210

.lr.ph210:                                        ; preds = %110, %124
  %indvars.iv248 = phi i64 [ %indvars.iv.next249, %124 ], [ 0, %110 ]
  %113 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv248
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %124

116:                                              ; preds = %.lr.ph210
  %117 = invoke noundef double @_ZN7SGTELIB12uniform_randEv()
          to label %118 unwind label %.loopexit.split-lp.loopexit

118:                                              ; preds = %116
  %119 = call double @llvm.fmuladd.f64(double %117, double 2.000000e+00, double -1.000000e+00)
  %120 = load ptr, ptr %109, align 8, !tbaa !16
  %121 = getelementptr inbounds ptr, ptr %120, i64 %indvars.iv263
  %122 = load ptr, ptr %121, align 8, !tbaa !23
  %123 = getelementptr inbounds double, ptr %122, i64 %indvars.iv248
  store double %119, ptr %123, align 8, !tbaa !5
  br label %124

.loopexit:                                        ; preds = %136, %139
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %116
  %lpad.loopexit177 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %168, %165, %163
  %lpad.loopexit.split-lp178 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

124:                                              ; preds = %.lr.ph210, %118
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %exitcond252.not = icmp eq i64 %indvars.iv.next249, %wide.trip.count266
  br i1 %exitcond252.not, label %.lr.ph213.preheader, label %.lr.ph210, !llvm.loop !27

.lr.ph213.preheader:                              ; preds = %124, %110
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  br label %.lr.ph213

.lr.ph213:                                        ; preds = %.lr.ph213.preheader, %.lr.ph213
  %indvars.iv253 = phi i64 [ 0, %.lr.ph213.preheader ], [ %indvars.iv.next254, %.lr.ph213 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %125 = load ptr, ptr %109, align 8, !tbaa !16
  %126 = getelementptr inbounds ptr, ptr %125, i64 %indvars.iv263
  %127 = load ptr, ptr %126, align 8, !tbaa !23
  %128 = getelementptr inbounds double, ptr %127, i64 %indvars.iv253
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = call double @llvm.fabs.f64(double %129)
  store double %130, ptr %15, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %132 = load double, ptr %131, align 8, !tbaa !5
  store double %132, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %indvars.iv.next254 = add nuw nsw i64 %indvars.iv253, 1
  %exitcond257.not = icmp eq i64 %indvars.iv.next254, %wide.trip.count266
  br i1 %exitcond257.not, label %.lr.ph215, label %.lr.ph213, !llvm.loop !28

.lr.ph215:                                        ; preds = %.lr.ph213, %157
  %indvars.iv258 = phi i64 [ %indvars.iv.next259, %157 ], [ 0, %.lr.ph213 ]
  %133 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv258
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %157

136:                                              ; preds = %.lr.ph215
  %137 = trunc nuw nsw i64 %indvars.iv258 to i32
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %137)
          to label %139 unwind label %.loopexit

139:                                              ; preds = %136
  %140 = load double, ptr %138, align 8, !tbaa !5
  %141 = load ptr, ptr %109, align 8, !tbaa !16
  %142 = getelementptr inbounds ptr, ptr %141, i64 %indvars.iv263
  %143 = load ptr, ptr %142, align 8, !tbaa !23
  %144 = getelementptr inbounds double, ptr %143, i64 %indvars.iv258
  %145 = load double, ptr %144, align 8, !tbaa !5
  %146 = fmul double %108, %145
  %147 = load double, ptr %6, align 8, !tbaa !5
  %148 = fdiv double %146, %147
  %149 = invoke noundef double @_ZN7SGTELIB5rceilEd(double noundef %148)
          to label %150 unwind label %.loopexit

150:                                              ; preds = %139
  %151 = fmul double %106, %140
  %152 = fmul double %151, %149
  %153 = load ptr, ptr %109, align 8, !tbaa !16
  %154 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv263
  %155 = load ptr, ptr %154, align 8, !tbaa !23
  %156 = getelementptr inbounds double, ptr %155, i64 %indvars.iv258
  store double %152, ptr %156, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %.lr.ph215, %150
  %indvars.iv.next259 = add nuw nsw i64 %indvars.iv258, 1
  %exitcond262.not = icmp eq i64 %indvars.iv.next259, %wide.trip.count266
  br i1 %exitcond262.not, label %._crit_edge216, label %.lr.ph215, !llvm.loop !29

._crit_edge216:                                   ; preds = %157
  %158 = load i32, ptr %111, align 4, !tbaa !9
  switch i32 %158, label %176 [
    i32 1, label %159
    i32 2, label %159
    i32 3, label %163
  ]

159:                                              ; preds = %._crit_edge216, %._crit_edge216
  %160 = and i64 %indvars.iv263, 1
  %161 = icmp eq i64 %160, 0
  %162 = select i1 %161, double -1.000000e+00, double 1.000000e+00
  br label %.sink.split

163:                                              ; preds = %._crit_edge216
  %164 = invoke noundef double @_ZN7SGTELIB12uniform_randEv()
          to label %165 unwind label %.loopexit.split-lp.loopexit.split-lp

165:                                              ; preds = %163
  %166 = trunc nuw nsw i64 %indvars.iv263 to i32
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7SGTELIB6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %166)
          to label %168 unwind label %.loopexit.split-lp.loopexit.split-lp

168:                                              ; preds = %165
  %169 = load double, ptr %167, align 8, !tbaa !5
  %170 = fmul double %164, %169
  %171 = invoke noundef double @_ZN7SGTELIB5rceilEd(double noundef %170)
          to label %.sink.split unwind label %.loopexit.split-lp.loopexit.split-lp

.sink.split:                                      ; preds = %168, %159
  %.sink = phi double [ %162, %159 ], [ %171, %168 ]
  %172 = load ptr, ptr %109, align 8, !tbaa !16
  %173 = getelementptr inbounds ptr, ptr %172, i64 %indvars.iv263
  %174 = load ptr, ptr %173, align 8, !tbaa !23
  %175 = getelementptr inbounds double, ptr %174, i64 %indvars.iv263
  store double %.sink, ptr %175, align 8, !tbaa !5
  br label %176

176:                                              ; preds = %.sink.split, %._crit_edge216
  %indvars.iv.next264 = add nuw nsw i64 %indvars.iv263, 1
  %exitcond267.not = icmp eq i64 %indvars.iv.next264, %wide.trip.count266
  br i1 %exitcond267.not, label %._crit_edge220, label %110, !llvm.loop !30

._crit_edge220:                                   ; preds = %176, %._crit_edge.thread
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.111, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %177 unwind label %192

177:                                              ; preds = %._crit_edge220
  %178 = shl nsw i32 %28, 1
  invoke void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %178, i32 noundef %28)
          to label %179 unwind label %194

179:                                              ; preds = %177
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  br i1 %31, label %.lr.ph224.preheader, label %._crit_edge229

.lr.ph224.preheader:                              ; preds = %179
  %wide.trip.count271 = zext nneg i32 %28 to i64
  br label %.lr.ph224

.preheader:                                       ; preds = %210
  br i1 %31, label %.lr.ph228.preheader, label %._crit_edge229

.lr.ph228.preheader:                              ; preds = %.preheader
  %wide.trip.count276 = zext nneg i32 %28 to i64
  br label %.lr.ph228

.lr.ph224:                                        ; preds = %.lr.ph224.preheader, %210
  %indvars.iv268 = phi i64 [ 0, %.lr.ph224.preheader ], [ %indvars.iv.next269, %210 ]
  %.0135221 = phi i32 [ 0, %.lr.ph224.preheader ], [ %.1136, %210 ]
  %180 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv268
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %183, label %210

183:                                              ; preds = %.lr.ph224
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #8
  %184 = trunc nuw nsw i64 %indvars.iv268 to i32
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %184)
          to label %185 unwind label %197

185:                                              ; preds = %183
  %186 = add nsw i32 %.0135221, 1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %18, i32 noundef %.0135221)
          to label %187 unwind label %199

187:                                              ; preds = %185
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %20) #8
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %20, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %184)
          to label %188 unwind label %202

188:                                              ; preds = %187
  invoke void @_ZngRKN7SGTELIB6MatrixE(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %19, ptr noundef nonnull align 8 dereferenceable(56) %20)
          to label %189 unwind label %204

189:                                              ; preds = %188
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %19, i32 noundef %186)
          to label %190 unwind label %206

190:                                              ; preds = %189
  %191 = add nsw i32 %.0135221, 2
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #8
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %19) #8
  br label %210

192:                                              ; preds = %._crit_edge220
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %196

194:                                              ; preds = %177
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %196

196:                                              ; preds = %194, %192
  %.pn146 = phi { ptr, i32 } [ %195, %194 ], [ %193, %192 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  br label %.loopexit.split-lp

197:                                              ; preds = %183
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %201

199:                                              ; preds = %185
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  br label %201

201:                                              ; preds = %199, %197
  %.pn157 = phi { ptr, i32 } [ %200, %199 ], [ %198, %197 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #8
  br label %261

202:                                              ; preds = %187
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %209

204:                                              ; preds = %188
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %208

206:                                              ; preds = %189
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %19) #8
  br label %208

208:                                              ; preds = %206, %204
  %.pn159 = phi { ptr, i32 } [ %207, %206 ], [ %205, %204 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #8
  br label %209

209:                                              ; preds = %208, %202
  %.pn159.pn = phi { ptr, i32 } [ %.pn159, %208 ], [ %203, %202 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %19) #8
  br label %261

210:                                              ; preds = %.lr.ph224, %190
  %.1136 = phi i32 [ %191, %190 ], [ %.0135221, %.lr.ph224 ]
  %indvars.iv.next269 = add nuw nsw i64 %indvars.iv268, 1
  %exitcond272.not = icmp eq i64 %indvars.iv.next269, %wide.trip.count271
  br i1 %exitcond272.not, label %.preheader, label %.lr.ph224, !llvm.loop !31

.lr.ph228:                                        ; preds = %.lr.ph228.preheader, %235
  %indvars.iv273 = phi i64 [ 0, %.lr.ph228.preheader ], [ %indvars.iv.next274, %235 ]
  %.2137226 = phi i32 [ %.1136, %.lr.ph228.preheader ], [ %.3138, %235 ]
  %211 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv273
  %212 = load i32, ptr %211, align 4, !tbaa !9
  %.not151 = icmp eq i32 %212, 0
  br i1 %.not151, label %235, label %213

213:                                              ; preds = %.lr.ph228
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %21) #8
  %214 = trunc nuw nsw i64 %indvars.iv273 to i32
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %21, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %214)
          to label %215 unwind label %222

215:                                              ; preds = %213
  %216 = add nsw i32 %.2137226, 1
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %.2137226)
          to label %217 unwind label %224

217:                                              ; preds = %215
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %23) #8
  invoke void @_ZNK7SGTELIB6Matrix7get_rowEi(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %23, ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %214)
          to label %218 unwind label %227

218:                                              ; preds = %217
  invoke void @_ZngRKN7SGTELIB6MatrixE(ptr dead_on_unwind nonnull writable sret(%"class.SGTELIB::Matrix") align 8 %22, ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %219 unwind label %229

219:                                              ; preds = %218
  invoke void @_ZN7SGTELIB6Matrix7set_rowERKS0_i(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %22, i32 noundef %216)
          to label %220 unwind label %231

220:                                              ; preds = %219
  %221 = add nsw i32 %.2137226, 2
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #8
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #8
  br label %235

222:                                              ; preds = %213
  %223 = landingpad { ptr, i32 }
          cleanup
  br label %226

224:                                              ; preds = %215
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  br label %226

226:                                              ; preds = %224, %222
  %.pn152 = phi { ptr, i32 } [ %225, %224 ], [ %223, %222 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %21) #8
  br label %261

227:                                              ; preds = %217
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %234

229:                                              ; preds = %218
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %233

231:                                              ; preds = %219
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %22) #8
  br label %233

233:                                              ; preds = %231, %229
  %.pn154 = phi { ptr, i32 } [ %232, %231 ], [ %230, %229 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #8
  br label %234

234:                                              ; preds = %233, %227
  %.pn154.pn = phi { ptr, i32 } [ %.pn154, %233 ], [ %228, %227 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #8
  br label %261

235:                                              ; preds = %.lr.ph228, %220
  %.3138 = phi i32 [ %221, %220 ], [ %.2137226, %.lr.ph228 ]
  %indvars.iv.next274 = add nuw nsw i64 %indvars.iv273, 1
  %exitcond277.not = icmp eq i64 %indvars.iv.next274, %wide.trip.count276
  br i1 %exitcond277.not, label %._crit_edge229, label %.lr.ph228, !llvm.loop !32

._crit_edge229:                                   ; preds = %235, %179, %.preheader
  %.2137.lcssa = phi i32 [ %.1136, %.preheader ], [ 0, %179 ], [ %.3138, %235 ]
  %.not = icmp eq i32 %.2137.lcssa, %178
  br i1 %.not, label %260, label %236

236:                                              ; preds = %._crit_edge229
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.112)
          to label %238 unwind label %251

238:                                              ; preds = %236
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %237, i32 noundef %.2137.lcssa)
          to label %240 unwind label %251

240:                                              ; preds = %238
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull @.str.34)
          to label %242 unwind label %251

242:                                              ; preds = %240
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %241, i32 noundef %28)
          to label %244 unwind label %251

244:                                              ; preds = %242
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef nonnull @.str.40)
          to label %246 unwind label %251

246:                                              ; preds = %244
  %247 = call ptr @__cxa_allocate_exception(i64 112) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %248 unwind label %.thread

248:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.113, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %249 unwind label %254

249:                                              ; preds = %248
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %247, ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef 2874, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %250 unwind label %256

250:                                              ; preds = %249
  invoke void @__cxa_throw(ptr nonnull %247, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #9
          to label %263 unwind label %256

251:                                              ; preds = %244, %242, %240, %238, %236
  %252 = landingpad { ptr, i32 }
          cleanup
  br label %261

.thread:                                          ; preds = %246
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #8
  br label %259

254:                                              ; preds = %248
  %255 = landingpad { ptr, i32 }
          cleanup
  br label %258

256:                                              ; preds = %250, %249
  %.0 = phi i1 [ false, %250 ], [ true, %249 ]
  %257 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  br label %258

258:                                              ; preds = %254, %256
  %.pn148 = phi { ptr, i32 } [ %257, %256 ], [ %255, %254 ]
  %.1 = phi i1 [ %.0, %256 ], [ true, %254 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #8
  br i1 %.1, label %259, label %261

259:                                              ; preds = %.thread, %258
  %.pn148.pn173 = phi { ptr, i32 } [ %253, %.thread ], [ %.pn148, %258 ]
  call void @__cxa_free_exception(ptr %247) #8
  br label %261

260:                                              ; preds = %._crit_edge229
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  ret void

261:                                              ; preds = %258, %259, %251, %234, %226, %209, %201
  %.pn159.pn.pn = phi { ptr, i32 } [ %.pn159.pn, %209 ], [ %.pn157, %201 ], [ %.pn154.pn, %234 ], [ %.pn152, %226 ], [ %.pn148.pn173, %259 ], [ %.pn148, %258 ], [ %252, %251 ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #8
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %196, %261, %102
  %.pn166.pn.pn = phi { ptr, i32 } [ %.pn166.pn, %102 ], [ %.pn159.pn.pn, %261 ], [ %.pn146, %196 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit177, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp178, %.loopexit.split-lp.loopexit.split-lp ]
  call void @_ZN7SGTELIB6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  br label %262

262:                                              ; preds = %.loopexit.split-lp, %50
  %.pn166.pn.pn.pn = phi { ptr, i32 } [ %.pn166.pn.pn, %.loopexit.split-lp ], [ %.pn, %50 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn166.pn.pn.pn

263:                                              ; preds = %250
  unreachable
}

declare noundef double @_ZN7SGTELIB15quick_norm_randEv() local_unnamed_addr #4

declare noundef double @_ZN7SGTELIB5rceilEd(double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare void @_ZN7SGTELIB6MatrixC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii(ptr, ptr, i32, i32) local_unnamed_addr

declare void @_ZN7SGTELIB6MatrixD1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #7

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

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

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


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