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

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

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [99 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.117 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [41 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 #0 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

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

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

declare void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

declare noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB20Surrogate_Parameters12get_x_boundsEPNS_6MatrixES2_PNS_14param_domain_tEPb(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i1, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca i1, align 1
  %28 = alloca i8, align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca i1, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %46

37:                                               ; preds = %5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %46

40:                                               ; preds = %37
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %46

43:                                               ; preds = %40
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %80, label %46

46:                                               ; preds = %43, %40, %37, %5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %47)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str.117)
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef %50)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef @.str.117)
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef %53)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str.117)
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef %56)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str.2)
  store i1 true, ptr %17, align 1
  %59 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %60 unwind label %63

60:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.124, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %61 unwind label %67

61:                                               ; preds = %60
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %59, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 1006, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %62 unwind label %71

62:                                               ; preds = %61
  store i1 false, ptr %17, align 1
  invoke void @__cxa_throw(ptr %59, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #7
          to label %522 unwind label %71

63:                                               ; preds = %46
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %13, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %14, align 4
  br label %76

67:                                               ; preds = %60
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %13, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %14, align 4
  br label %75

71:                                               ; preds = %62, %61
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %13, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %75

75:                                               ; preds = %71, %67
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %76

76:                                               ; preds = %75, %63
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  %77 = load i1, ptr %17, align 1
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  call void @__cxa_free_exception(ptr %59) #6
  br label %79

79:                                               ; preds = %78, %76
  br label %517

80:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %81 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 26
  %82 = load i32, ptr %81, align 4, !tbaa !9
  store i32 %82, ptr %20, align 4, !tbaa !24
  store i32 0, ptr %18, align 4, !tbaa !24
  br label %83

83:                                               ; preds = %92, %80
  %84 = load i32, ptr %18, align 4, !tbaa !24
  %85 = load i32, ptr %20, align 4, !tbaa !24
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %87, label %95

87:                                               ; preds = %83
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load i32, ptr %18, align 4, !tbaa !24
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %88, i64 %90
  store i8 0, ptr %91, align 1, !tbaa !25
  br label %92

92:                                               ; preds = %87
  %93 = load i32, ptr %18, align 4, !tbaa !24
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %18, align 4, !tbaa !24
  br label %83, !llvm.loop !27

95:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !24
  %96 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 3
  %97 = load i32, ptr %96, align 8, !tbaa !29
  %98 = icmp eq i32 %97, 1
  br i1 %98, label %99, label %122

99:                                               ; preds = %95
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %100, i32 noundef 0, i32 noundef %101, double noundef 0.000000e+00)
  %102 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !30
  %104 = icmp eq i32 %103, 11
  br i1 %104, label %105, label %112

105:                                              ; preds = %99
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %106, i32 noundef 0, i32 noundef %107, double noundef 2.000000e+00)
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load i32, ptr %21, align 4, !tbaa !24
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  store i32 1, ptr %111, align 4, !tbaa !31
  br label %119

112:                                              ; preds = %99
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %113, i32 noundef 0, i32 noundef %114, double noundef 6.000000e+00)
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i32, ptr %21, align 4, !tbaa !24
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %115, i64 %117
  store i32 1, ptr %118, align 4, !tbaa !31
  br label %119

119:                                              ; preds = %112, %105
  %120 = load i32, ptr %21, align 4, !tbaa !24
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %21, align 4, !tbaa !24
  br label %122

122:                                              ; preds = %119, %95
  %123 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 9
  %124 = load i32, ptr %123, align 8, !tbaa !33
  %125 = icmp eq i32 %124, 1
  br i1 %125, label %126, label %141

126:                                              ; preds = %122
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %127, i32 noundef 0, i32 noundef %128, double noundef 0x3C9CD2B297D889BC)
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %129, i32 noundef 0, i32 noundef %130, double noundef 1.000000e-01)
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = load i32, ptr %21, align 4, !tbaa !24
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  store i32 0, ptr %134, align 4, !tbaa !31
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load i32, ptr %21, align 4, !tbaa !24
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i8, ptr %135, i64 %137
  store i8 1, ptr %138, align 1, !tbaa !25
  %139 = load i32, ptr %21, align 4, !tbaa !24
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %21, align 4, !tbaa !24
  br label %141

141:                                              ; preds = %126, %122
  %142 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 7
  %143 = load i32, ptr %142, align 8, !tbaa !34
  %144 = icmp eq i32 %143, 1
  br i1 %144, label %145, label %160

145:                                              ; preds = %141
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %146, i32 noundef 0, i32 noundef %147, double noundef 1.000000e-02)
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %148, i32 noundef 0, i32 noundef %149, double noundef 1.000000e+02)
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = load i32, ptr %21, align 4, !tbaa !24
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %150, i64 %152
  store i32 0, ptr %153, align 4, !tbaa !31
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = load i32, ptr %21, align 4, !tbaa !24
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i8, ptr %154, i64 %156
  store i8 1, ptr %157, align 1, !tbaa !25
  %158 = load i32, ptr %21, align 4, !tbaa !24
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %21, align 4, !tbaa !24
  br label %160

160:                                              ; preds = %145, %141
  %161 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 5
  %162 = load i32, ptr %161, align 8, !tbaa !35
  %163 = icmp eq i32 %162, 1
  br i1 %163, label %164, label %183

164:                                              ; preds = %160
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %165, i32 noundef 0, i32 noundef %166, double noundef 0.000000e+00)
  %167 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 1
  %168 = load i32, ptr %167, align 8, !tbaa !30
  %169 = icmp eq i32 %168, 10
  br i1 %169, label %170, label %173

170:                                              ; preds = %164
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %171, i32 noundef 0, i32 noundef %172, double noundef 1.000000e+01)
  br label %176

173:                                              ; preds = %164
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %174, i32 noundef 0, i32 noundef %175, double noundef 5.000000e+00)
  br label %176

176:                                              ; preds = %173, %170
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i32, ptr %21, align 4, !tbaa !24
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  store i32 3, ptr %180, align 4, !tbaa !31
  %181 = load i32, ptr %21, align 4, !tbaa !24
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %21, align 4, !tbaa !24
  br label %183

183:                                              ; preds = %176, %160
  %184 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 11
  %185 = load i32, ptr %184, align 8, !tbaa !36
  %186 = icmp eq i32 %185, 1
  br i1 %186, label %187, label %198

187:                                              ; preds = %183
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %188, i32 noundef 0, i32 noundef %189, double noundef 0.000000e+00)
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %190, i32 noundef 0, i32 noundef %191, double noundef 4.000000e+00)
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = load i32, ptr %21, align 4, !tbaa !24
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i32, ptr %192, i64 %194
  store i32 3, ptr %195, align 4, !tbaa !31
  %196 = load i32, ptr %21, align 4, !tbaa !24
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %21, align 4, !tbaa !24
  br label %198

198:                                              ; preds = %187, %183
  %199 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 21
  %200 = load i32, ptr %199, align 8, !tbaa !37
  %201 = icmp eq i32 %200, 1
  br i1 %201, label %202, label %243

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %203 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 20
  %204 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %203)
  %205 = sdiv i32 %204, 2
  store i32 %205, ptr %22, align 4, !tbaa !24
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %206

206:                                              ; preds = %239, %202
  %207 = load i32, ptr %19, align 4, !tbaa !24
  %208 = load i32, ptr %22, align 4, !tbaa !24
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %210, label %242

210:                                              ; preds = %206
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %211, i32 noundef 0, i32 noundef %212, double noundef 5.000000e-01)
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %213, i32 noundef 0, i32 noundef %214, double noundef 3.000000e+00)
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = load i32, ptr %21, align 4, !tbaa !24
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  store i32 0, ptr %218, align 4, !tbaa !31
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = load i32, ptr %21, align 4, !tbaa !24
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i8, ptr %219, i64 %221
  store i8 0, ptr %222, align 1, !tbaa !25
  %223 = load i32, ptr %21, align 4, !tbaa !24
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %21, align 4, !tbaa !24
  %225 = load ptr, ptr %7, align 8, !tbaa !5
  %226 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %225, i32 noundef 0, i32 noundef %226, double noundef 1.000000e-03)
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %227, i32 noundef 0, i32 noundef %228, double noundef 1.000000e+00)
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = load i32, ptr %21, align 4, !tbaa !24
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds i32, ptr %229, i64 %231
  store i32 0, ptr %232, align 4, !tbaa !31
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = load i32, ptr %21, align 4, !tbaa !24
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds i8, ptr %233, i64 %235
  store i8 1, ptr %236, align 1, !tbaa !25
  %237 = load i32, ptr %21, align 4, !tbaa !24
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %21, align 4, !tbaa !24
  br label %239

239:                                              ; preds = %210
  %240 = load i32, ptr %19, align 4, !tbaa !24
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %19, align 4, !tbaa !24
  br label %206, !llvm.loop !38

242:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %243

243:                                              ; preds = %242, %198
  %244 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 14
  %245 = load i32, ptr %244, align 4, !tbaa !39
  %246 = icmp eq i32 %245, 1
  br i1 %246, label %247, label %282

247:                                              ; preds = %243
  store i32 0, ptr %18, align 4, !tbaa !24
  br label %248

248:                                              ; preds = %278, %247
  %249 = load i32, ptr %18, align 4, !tbaa !24
  %250 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 12
  %251 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %250)
  %252 = icmp slt i32 %249, %251
  br i1 %252, label %253, label %281

253:                                              ; preds = %248
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %254

254:                                              ; preds = %274, %253
  %255 = load i32, ptr %19, align 4, !tbaa !24
  %256 = getelementptr inbounds %"class.SGTELIB::Surrogate_Parameters", ptr %34, i32 0, i32 12
  %257 = call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %256)
  %258 = icmp slt i32 %255, %257
  br i1 %258, label %259, label %277

259:                                              ; preds = %254
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %260, i32 noundef 0, i32 noundef %261, double noundef 0.000000e+00)
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = load i32, ptr %21, align 4, !tbaa !24
  call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %262, i32 noundef 0, i32 noundef %263, double noundef 1.000000e+00)
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = load i32, ptr %21, align 4, !tbaa !24
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds i32, ptr %264, i64 %266
  store i32 0, ptr %267, align 4, !tbaa !31
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = load i32, ptr %21, align 4, !tbaa !24
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i8, ptr %268, i64 %270
  store i8 0, ptr %271, align 1, !tbaa !25
  %272 = load i32, ptr %21, align 4, !tbaa !24
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %21, align 4, !tbaa !24
  br label %274

274:                                              ; preds = %259
  %275 = load i32, ptr %19, align 4, !tbaa !24
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %19, align 4, !tbaa !24
  br label %254, !llvm.loop !40

277:                                              ; preds = %254
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %18, align 4, !tbaa !24
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %18, align 4, !tbaa !24
  br label %248, !llvm.loop !41

281:                                              ; preds = %248
  br label %282

282:                                              ; preds = %281, %243
  %283 = load i32, ptr %21, align 4, !tbaa !24
  %284 = load i32, ptr %20, align 4, !tbaa !24
  %285 = icmp ne i32 %283, %284
  br i1 %285, label %286, label %316

286:                                              ; preds = %282
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.121)
  %288 = load i32, ptr %21, align 4, !tbaa !24
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %287, i32 noundef %288)
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %289, ptr noundef @.str.2)
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.125)
  %292 = load i32, ptr %20, align 4, !tbaa !24
  %293 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %291, i32 noundef %292)
  %294 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %293, ptr noundef @.str.2)
  store i1 true, ptr %27, align 1
  %295 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %296 unwind label %299

296:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.123, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %297 unwind label %303

297:                                              ; preds = %296
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %295, ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef 1097, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %298 unwind label %307

298:                                              ; preds = %297
  store i1 false, ptr %27, align 1
  invoke void @__cxa_throw(ptr %295, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #7
          to label %522 unwind label %307

299:                                              ; preds = %286
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %13, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %14, align 4
  br label %312

303:                                              ; preds = %296
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %13, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %14, align 4
  br label %311

307:                                              ; preds = %298, %297
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %13, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %311

311:                                              ; preds = %307, %303
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %312

312:                                              ; preds = %311, %299
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  %313 = load i1, ptr %27, align 1
  br i1 %313, label %314, label %315

314:                                              ; preds = %312
  call void @__cxa_free_exception(ptr %295) #6
  br label %315

315:                                              ; preds = %314, %312
  br label %516

316:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 0, ptr %28, align 1, !tbaa !25
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %317

317:                                              ; preds = %487, %316
  %318 = load i32, ptr %19, align 4, !tbaa !24
  %319 = load i32, ptr %20, align 4, !tbaa !24
  %320 = icmp slt i32 %318, %319
  br i1 %320, label %321, label %490

321:                                              ; preds = %317
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = load i32, ptr %19, align 4, !tbaa !24
  %324 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %322, i32 noundef %323)
  %325 = load ptr, ptr %8, align 8, !tbaa !5
  %326 = load i32, ptr %19, align 4, !tbaa !24
  %327 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %325, i32 noundef %326)
  %328 = fcmp oge double %324, %327
  br i1 %328, label %329, label %345

329:                                              ; preds = %321
  store i8 1, ptr %28, align 1, !tbaa !25
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %331 = load i32, ptr %19, align 4, !tbaa !24
  %332 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %330, i32 noundef %331)
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %332, ptr noundef @.str.2)
  %334 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.127)
  %335 = load ptr, ptr %7, align 8, !tbaa !5
  %336 = load i32, ptr %19, align 4, !tbaa !24
  %337 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %335, i32 noundef %336)
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %334, double noundef %337)
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef @.str.128)
  %340 = load ptr, ptr %8, align 8, !tbaa !5
  %341 = load i32, ptr %19, align 4, !tbaa !24
  %342 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %340, i32 noundef %341)
  %343 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %339, double noundef %342)
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %343, ptr noundef @.str.129)
  br label %345

345:                                              ; preds = %329, %321
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = load i32, ptr %19, align 4, !tbaa !24
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds i8, ptr %346, i64 %348
  %350 = load i8, ptr %349, align 1, !tbaa !25, !range !42, !noundef !43
  %351 = trunc i8 %350 to i1
  br i1 %351, label %352, label %365

352:                                              ; preds = %345
  %353 = load ptr, ptr %9, align 8, !tbaa !5
  %354 = load i32, ptr %19, align 4, !tbaa !24
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds i32, ptr %353, i64 %355
  %357 = load i32, ptr %356, align 4, !tbaa !31
  %358 = icmp ne i32 %357, 0
  br i1 %358, label %359, label %365

359:                                              ; preds = %352
  store i8 1, ptr %28, align 1, !tbaa !25
  %360 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %361 = load i32, ptr %19, align 4, !tbaa !24
  %362 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %360, i32 noundef %361)
  %363 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %362, ptr noundef @.str.2)
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.130)
  br label %365

365:                                              ; preds = %359, %352, %345
  %366 = load ptr, ptr %10, align 8, !tbaa !5
  %367 = load i32, ptr %19, align 4, !tbaa !24
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds i8, ptr %366, i64 %368
  %370 = load i8, ptr %369, align 1, !tbaa !25, !range !42, !noundef !43
  %371 = trunc i8 %370 to i1
  br i1 %371, label %372, label %399

372:                                              ; preds = %365
  %373 = load ptr, ptr %7, align 8, !tbaa !5
  %374 = load i32, ptr %19, align 4, !tbaa !24
  %375 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %373, i32 noundef %374)
  %376 = load ptr, ptr %8, align 8, !tbaa !5
  %377 = load i32, ptr %19, align 4, !tbaa !24
  %378 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %376, i32 noundef %377)
  %379 = fmul double %375, %378
  %380 = fcmp ole double %379, 0.000000e+00
  br i1 %380, label %381, label %398

381:                                              ; preds = %372
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %383 = load i32, ptr %19, align 4, !tbaa !24
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %382, i32 noundef %383)
  %385 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %384, ptr noundef @.str.2)
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.131)
  %387 = load ptr, ptr %7, align 8, !tbaa !5
  %388 = load i32, ptr %19, align 4, !tbaa !24
  %389 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %387, i32 noundef %388)
  %390 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %386, double noundef %389)
  %391 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %390, ptr noundef @.str.132)
  %392 = load ptr, ptr %8, align 8, !tbaa !5
  %393 = load i32, ptr %19, align 4, !tbaa !24
  %394 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %392, i32 noundef %393)
  %395 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %391, double noundef %394)
  %396 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef @.str.2)
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.133)
  br label %398

398:                                              ; preds = %381, %372
  br label %399

399:                                              ; preds = %398, %365
  %400 = load ptr, ptr %9, align 8, !tbaa !5
  %401 = load i32, ptr %19, align 4, !tbaa !24
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds i32, ptr %400, i64 %402
  %404 = load i32, ptr %403, align 4, !tbaa !31
  switch i32 %404, label %486 [
    i32 0, label %486
    i32 1, label %405
    i32 3, label %405
    i32 2, label %448
    i32 4, label %481
  ]

405:                                              ; preds = %399, %399
  %406 = load ptr, ptr %7, align 8, !tbaa !5
  %407 = load i32, ptr %19, align 4, !tbaa !24
  %408 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %406, i32 noundef %407)
  %409 = call noundef i32 @_ZN7SGTELIB5roundEd(double noundef %408)
  %410 = sitofp i32 %409 to double
  %411 = load ptr, ptr %7, align 8, !tbaa !5
  %412 = load i32, ptr %19, align 4, !tbaa !24
  %413 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %411, i32 noundef %412)
  %414 = fcmp une double %410, %413
  br i1 %414, label %415, label %426

415:                                              ; preds = %405
  store i8 1, ptr %28, align 1, !tbaa !25
  %416 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %417 = load i32, ptr %19, align 4, !tbaa !24
  %418 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %416, i32 noundef %417)
  %419 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %418, ptr noundef @.str.134)
  %420 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.127)
  %421 = load ptr, ptr %7, align 8, !tbaa !5
  %422 = load i32, ptr %19, align 4, !tbaa !24
  %423 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %421, i32 noundef %422)
  %424 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %420, double noundef %423)
  %425 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %424, ptr noundef @.str.135)
  br label %426

426:                                              ; preds = %415, %405
  %427 = load ptr, ptr %8, align 8, !tbaa !5
  %428 = load i32, ptr %19, align 4, !tbaa !24
  %429 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %427, i32 noundef %428)
  %430 = call noundef i32 @_ZN7SGTELIB5roundEd(double noundef %429)
  %431 = sitofp i32 %430 to double
  %432 = load ptr, ptr %8, align 8, !tbaa !5
  %433 = load i32, ptr %19, align 4, !tbaa !24
  %434 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %432, i32 noundef %433)
  %435 = fcmp une double %431, %434
  br i1 %435, label %436, label %447

436:                                              ; preds = %426
  store i8 1, ptr %28, align 1, !tbaa !25
  %437 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %438 = load i32, ptr %19, align 4, !tbaa !24
  %439 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %437, i32 noundef %438)
  %440 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %439, ptr noundef @.str.134)
  %441 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.136)
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = load i32, ptr %19, align 4, !tbaa !24
  %444 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %442, i32 noundef %443)
  %445 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %441, double noundef %444)
  %446 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %445, ptr noundef @.str.135)
  br label %447

447:                                              ; preds = %436, %426
  br label %486

448:                                              ; preds = %399
  %449 = load ptr, ptr %7, align 8, !tbaa !5
  %450 = load i32, ptr %19, align 4, !tbaa !24
  %451 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %449, i32 noundef %450)
  %452 = fcmp oeq double %451, 0.000000e+00
  br i1 %452, label %453, label %464

453:                                              ; preds = %448
  store i8 1, ptr %28, align 1, !tbaa !25
  %454 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %455 = load i32, ptr %19, align 4, !tbaa !24
  %456 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %454, i32 noundef %455)
  %457 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %456, ptr noundef @.str.137)
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.127)
  %459 = load ptr, ptr %7, align 8, !tbaa !5
  %460 = load i32, ptr %19, align 4, !tbaa !24
  %461 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %459, i32 noundef %460)
  %462 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %458, double noundef %461)
  %463 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %462, ptr noundef @.str.138)
  br label %464

464:                                              ; preds = %453, %448
  %465 = load ptr, ptr %8, align 8, !tbaa !5
  %466 = load i32, ptr %19, align 4, !tbaa !24
  %467 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %465, i32 noundef %466)
  %468 = fcmp oeq double %467, 1.000000e+00
  br i1 %468, label %469, label %480

469:                                              ; preds = %464
  store i8 1, ptr %28, align 1, !tbaa !25
  %470 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %471 = load i32, ptr %19, align 4, !tbaa !24
  %472 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %470, i32 noundef %471)
  %473 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %472, ptr noundef @.str.137)
  %474 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.136)
  %475 = load ptr, ptr %8, align 8, !tbaa !5
  %476 = load i32, ptr %19, align 4, !tbaa !24
  %477 = call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %475, i32 noundef %476)
  %478 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %474, double noundef %477)
  %479 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %478, ptr noundef @.str.139)
  br label %480

480:                                              ; preds = %469, %464
  br label %486

481:                                              ; preds = %399
  store i8 1, ptr %28, align 1, !tbaa !25
  %482 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.126)
  %483 = load i32, ptr %19, align 4, !tbaa !24
  %484 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %482, i32 noundef %483)
  %485 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %484, ptr noundef @.str.140)
  br label %486

486:                                              ; preds = %481, %480, %447, %399, %399
  br label %487

487:                                              ; preds = %486
  %488 = load i32, ptr %19, align 4, !tbaa !24
  %489 = add nsw i32 %488, 1
  store i32 %489, ptr %19, align 4, !tbaa !24
  br label %317, !llvm.loop !44

490:                                              ; preds = %317
  %491 = load i8, ptr %28, align 1, !tbaa !25, !range !42, !noundef !43
  %492 = trunc i8 %491 to i1
  br i1 %492, label %493, label %515

493:                                              ; preds = %490
  store i1 true, ptr %33, align 1
  %494 = call ptr @__cxa_allocate_exception(i64 112) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %495 unwind label %498

495:                                              ; preds = %493
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.141, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %496 unwind label %502

496:                                              ; preds = %495
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %494, ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef 1163, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %497 unwind label %506

497:                                              ; preds = %496
  store i1 false, ptr %33, align 1
  invoke void @__cxa_throw(ptr %494, ptr @_ZTIN7SGTELIB9ExceptionE, ptr @_ZN7SGTELIB9ExceptionD2Ev) #7
          to label %522 unwind label %506

498:                                              ; preds = %493
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %13, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %14, align 4
  br label %511

502:                                              ; preds = %495
  %503 = landingpad { ptr, i32 }
          cleanup
  %504 = extractvalue { ptr, i32 } %503, 0
  store ptr %504, ptr %13, align 8
  %505 = extractvalue { ptr, i32 } %503, 1
  store i32 %505, ptr %14, align 4
  br label %510

506:                                              ; preds = %497, %496
  %507 = landingpad { ptr, i32 }
          cleanup
  %508 = extractvalue { ptr, i32 } %507, 0
  store ptr %508, ptr %13, align 8
  %509 = extractvalue { ptr, i32 } %507, 1
  store i32 %509, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %510

510:                                              ; preds = %506, %502
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %511

511:                                              ; preds = %510, %498
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  %512 = load i1, ptr %33, align 1
  br i1 %512, label %513, label %514

513:                                              ; preds = %511
  call void @__cxa_free_exception(ptr %494) #6
  br label %514

514:                                              ; preds = %513, %511
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  br label %516

515:                                              ; preds = %490
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  ret void

516:                                              ; preds = %514, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %517

517:                                              ; preds = %516, %79
  %518 = load ptr, ptr %13, align 8
  %519 = load i32, ptr %14, align 4
  %520 = insertvalue { ptr, i32 } poison, ptr %518, 0
  %521 = insertvalue { ptr, i32 } %520, i32 %519, 1
  resume { ptr, i32 } %521

522:                                              ; preds = %497, %298, %62
  unreachable
}

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

declare noundef i32 @_ZN7SGTELIB5roundEd(double noundef) #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #7 = { 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, !12, i64 308}
!10 = !{!"_ZTSN7SGTELIB20Surrogate_ParametersE", !11, i64 8, !12, i64 12, !13, i64 16, !14, i64 20, !13, i64 24, !15, i64 32, !13, i64 40, !15, i64 48, !13, i64 56, !16, i64 60, !13, i64 64, !17, i64 72, !21, i64 128, !13, i64 132, !22, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !17, i64 176, !13, i64 232, !23, i64 236, !18, i64 240, !18, i64 272, !12, i64 304, !12, i64 308}
!11 = !{!"_ZTSN7SGTELIB7model_tE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN7SGTELIB14param_status_tE", !7, i64 0}
!14 = !{!"_ZTSN7SGTELIB8kernel_tE", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN7SGTELIB10distance_tE", !7, i64 0}
!17 = !{!"_ZTSN7SGTELIB6MatrixE", !18, i64 8, !12, i64 40, !12, i64 44, !6, i64 48}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSN7SGTELIB8weight_tE", !7, i64 0}
!22 = !{!"_ZTSN7SGTELIB13uncertainty_tE", !7, i64 0}
!23 = !{!"_ZTSN7SGTELIB8metric_tE", !7, i64 0}
!24 = !{!12, !12, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!10, !13, i64 16}
!30 = !{!10, !11, i64 8}
!31 = !{!32, !32, i64 0}
!32 = !{!"_ZTSN7SGTELIB14param_domain_tE", !7, i64 0}
!33 = !{!10, !13, i64 56}
!34 = !{!10, !13, i64 40}
!35 = !{!10, !13, i64 24}
!36 = !{!10, !13, i64 64}
!37 = !{!10, !13, i64 232}
!38 = distinct !{!38, !28}
!39 = !{!10, !13, i64 132}
!40 = distinct !{!40, !28}
!41 = distinct !{!41, !28}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = distinct !{!44, !28}


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

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [99 x i8], align 1
@_ZTIN7SGTELIB9ExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.117 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [41 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 #0 align 2

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

declare void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, double 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

declare noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7SGTELIB20Surrogate_Parameters12get_x_boundsEPNS_6MatrixES2_PNS_14param_domain_tEPb(ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = insertelement <4 x ptr> poison, ptr %1, i64 0
  %19 = insertelement <4 x ptr> %18, ptr %2, i64 1
  %20 = insertelement <4 x ptr> %19, ptr %3, i64 2
  %21 = insertelement <4 x ptr> %20, ptr %4, i64 3
  %22 = icmp eq <4 x ptr> %21, zeroinitializer
  %23 = bitcast <4 x i1> %22 to i4
  %24 = icmp eq i4 %23, 0
  br i1 %24, label %44, label %25

25:                                               ; preds = %5
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef %1)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str.117)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef %2)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @.str.117)
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %3)
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.117)
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPKv(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef %4)
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.2)
  %34 = tail call ptr @__cxa_allocate_exception(i64 112) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %35 unwind label %.thread

35:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.124, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %36 unwind label %39

36:                                               ; preds = %35
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %34, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 1006, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %37 unwind label %41

37:                                               ; preds = %36
  invoke void @__cxa_throw(ptr nonnull %34, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #8
          to label %265 unwind label %41

.thread:                                          ; preds = %25
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %.sink.split

39:                                               ; preds = %35
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %37, %36
  %.0195 = phi i1 [ false, %37 ], [ true, %36 ]
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %43

43:                                               ; preds = %39, %41
  %.1196 = phi i1 [ %.0195, %41 ], [ true, %39 ]
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br i1 %.1196, label %.sink.split, label %264

44:                                               ; preds = %5
  %45 = getelementptr inbounds i8, ptr %0, i64 308
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %44
  %48 = zext nneg i32 %46 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %4, i8 0, i64 %48, i1 false), !tbaa !23
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %44
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load i32, ptr %49, align 8, !tbaa !25
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %56

52:                                               ; preds = %._crit_edge
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef 0, double noundef 0.000000e+00)
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load i32, ptr %53, align 8, !tbaa !26
  %55 = icmp eq i32 %54, 11
  %. = select i1 %55, double 2.000000e+00, double 6.000000e+00
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef 0, double noundef %.)
  store i32 1, ptr %3, align 4, !tbaa !27
  br label %56

56:                                               ; preds = %52, %._crit_edge
  %.0174 = phi i32 [ 1, %52 ], [ 0, %._crit_edge ]
  %57 = getelementptr inbounds i8, ptr %0, i64 56
  %58 = load i32, ptr %57, align 8, !tbaa !29
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %65

60:                                               ; preds = %56
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %.0174, double noundef 0x3C9CD2B297D889BC)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %.0174, double noundef 1.000000e-01)
  %61 = zext nneg i32 %.0174 to i64
  %62 = getelementptr inbounds i32, ptr %3, i64 %61
  store i32 0, ptr %62, align 4, !tbaa !27
  %63 = getelementptr inbounds i8, ptr %4, i64 %61
  store i8 1, ptr %63, align 1, !tbaa !23
  %64 = add nuw nsw i32 %.0174, 1
  br label %65

65:                                               ; preds = %60, %56
  %.1175 = phi i32 [ %64, %60 ], [ %.0174, %56 ]
  %66 = getelementptr inbounds i8, ptr %0, i64 40
  %67 = load i32, ptr %66, align 8, !tbaa !30
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %74

69:                                               ; preds = %65
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %.1175, double noundef 1.000000e-02)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %.1175, double noundef 1.000000e+02)
  %70 = zext nneg i32 %.1175 to i64
  %71 = getelementptr inbounds i32, ptr %3, i64 %70
  store i32 0, ptr %71, align 4, !tbaa !27
  %72 = getelementptr inbounds i8, ptr %4, i64 %70
  store i8 1, ptr %72, align 1, !tbaa !23
  %73 = add nuw nsw i32 %.1175, 1
  br label %74

74:                                               ; preds = %69, %65
  %.2176 = phi i32 [ %73, %69 ], [ %.1175, %65 ]
  %75 = getelementptr inbounds i8, ptr %0, i64 24
  %76 = load i32, ptr %75, align 8, !tbaa !31
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %85

78:                                               ; preds = %74
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %.2176, double noundef 0.000000e+00)
  %79 = getelementptr inbounds i8, ptr %0, i64 8
  %80 = load i32, ptr %79, align 8, !tbaa !26
  %81 = icmp eq i32 %80, 10
  %.257 = select i1 %81, double 1.000000e+01, double 5.000000e+00
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %.2176, double noundef %.257)
  %82 = zext nneg i32 %.2176 to i64
  %83 = getelementptr inbounds i32, ptr %3, i64 %82
  store i32 3, ptr %83, align 4, !tbaa !27
  %84 = add nuw nsw i32 %.2176, 1
  br label %85

85:                                               ; preds = %78, %74
  %.3177 = phi i32 [ %84, %78 ], [ %.2176, %74 ]
  %86 = getelementptr inbounds i8, ptr %0, i64 64
  %87 = load i32, ptr %86, align 8, !tbaa !32
  %88 = icmp eq i32 %87, 1
  br i1 %88, label %89, label %93

89:                                               ; preds = %85
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %.3177, double noundef 0.000000e+00)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %.3177, double noundef 4.000000e+00)
  %90 = zext nneg i32 %.3177 to i64
  %91 = getelementptr inbounds i32, ptr %3, i64 %90
  store i32 3, ptr %91, align 4, !tbaa !27
  %92 = add nuw nsw i32 %.3177, 1
  br label %93

93:                                               ; preds = %89, %85
  %.4178 = phi i32 [ %92, %89 ], [ %.3177, %85 ]
  %94 = getelementptr inbounds i8, ptr %0, i64 232
  %95 = load i32, ptr %94, align 8, !tbaa !33
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %97, label %.loopexit227

97:                                               ; preds = %93
  %98 = getelementptr inbounds i8, ptr %0, i64 176
  %99 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %98)
  %100 = sdiv i32 %99, 2
  %101 = icmp sgt i32 %99, 1
  br i1 %101, label %.lr.ph232.preheader, label %.loopexit227

.lr.ph232.preheader:                              ; preds = %97
  %102 = zext nneg i32 %.4178 to i64
  br label %.lr.ph232

.lr.ph232:                                        ; preds = %.lr.ph232.preheader, %.lr.ph232
  %indvars.iv = phi i64 [ %102, %.lr.ph232.preheader ], [ %indvars.iv.next, %.lr.ph232 ]
  %.0190229 = phi i32 [ 0, %.lr.ph232.preheader ], [ %110, %.lr.ph232 ]
  %103 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %103, double noundef 5.000000e-01)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %103, double noundef 3.000000e+00)
  %104 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  store i32 0, ptr %104, align 4, !tbaa !27
  %105 = getelementptr inbounds i8, ptr %4, i64 %indvars.iv
  store i8 0, ptr %105, align 1, !tbaa !23
  %106 = add nuw nsw i64 %indvars.iv, 1
  %107 = trunc nsw i64 %106 to i32
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %107, double noundef 1.000000e-03)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %107, double noundef 1.000000e+00)
  %108 = getelementptr inbounds i32, ptr %3, i64 %106
  store i32 0, ptr %108, align 4, !tbaa !27
  %109 = getelementptr inbounds i8, ptr %4, i64 %106
  store i8 1, ptr %109, align 1, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %110 = add nuw nsw i32 %.0190229, 1
  %exitcond.not = icmp eq i32 %110, %100
  br i1 %exitcond.not, label %.loopexit227.loopexit, label %.lr.ph232, !llvm.loop !34

.loopexit227.loopexit:                            ; preds = %.lr.ph232
  %111 = trunc nsw i64 %indvars.iv.next to i32
  br label %.loopexit227

.loopexit227:                                     ; preds = %.loopexit227.loopexit, %97, %93
  %.6180 = phi i32 [ %.4178, %93 ], [ %.4178, %97 ], [ %111, %.loopexit227.loopexit ]
  %112 = getelementptr inbounds i8, ptr %0, i64 132
  %113 = load i32, ptr %112, align 4, !tbaa !36
  %114 = icmp eq i32 %113, 1
  br i1 %114, label %.preheader226, label %.loopexit

.preheader226:                                    ; preds = %.loopexit227
  %115 = getelementptr inbounds i8, ptr %0, i64 72
  %116 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %115)
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.preheader225, label %.loopexit

.preheader225:                                    ; preds = %.preheader226, %._crit_edge236
  %.7181239 = phi i32 [ %.8.lcssa, %._crit_edge236 ], [ %.6180, %.preheader226 ]
  %.1194238 = phi i32 [ %128, %._crit_edge236 ], [ 0, %.preheader226 ]
  %118 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %115)
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.lr.ph235.preheader, label %._crit_edge236

.lr.ph235.preheader:                              ; preds = %.preheader225
  %120 = sext i32 %.7181239 to i64
  br label %.lr.ph235

.lr.ph235:                                        ; preds = %.lr.ph235.preheader, %.lr.ph235
  %indvars.iv249 = phi i64 [ %120, %.lr.ph235.preheader ], [ %indvars.iv.next250, %.lr.ph235 ]
  %.1191233 = phi i32 [ 0, %.lr.ph235.preheader ], [ %124, %.lr.ph235 ]
  %121 = trunc nsw i64 %indvars.iv249 to i32
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef 0, i32 noundef %121, double noundef 0.000000e+00)
  tail call void @_ZN7SGTELIB6Matrix3setEiid(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef 0, i32 noundef %121, double noundef 1.000000e+00)
  %122 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv249
  store i32 0, ptr %122, align 4, !tbaa !27
  %123 = getelementptr inbounds i8, ptr %4, i64 %indvars.iv249
  store i8 0, ptr %123, align 1, !tbaa !23
  %indvars.iv.next250 = add nsw i64 %indvars.iv249, 1
  %124 = add nuw nsw i32 %.1191233, 1
  %125 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_colsEv(ptr noundef nonnull align 8 dereferenceable(56) %115)
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %.lr.ph235, label %._crit_edge236.loopexit, !llvm.loop !37

._crit_edge236.loopexit:                          ; preds = %.lr.ph235
  %127 = trunc nsw i64 %indvars.iv.next250 to i32
  br label %._crit_edge236

._crit_edge236:                                   ; preds = %._crit_edge236.loopexit, %.preheader225
  %.8.lcssa = phi i32 [ %.7181239, %.preheader225 ], [ %127, %._crit_edge236.loopexit ]
  %128 = add nuw nsw i32 %.1194238, 1
  %129 = tail call noundef i32 @_ZNK7SGTELIB6Matrix11get_nb_rowsEv(ptr noundef nonnull align 8 dereferenceable(56) %115)
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %.preheader225, label %.loopexit, !llvm.loop !38

.loopexit:                                        ; preds = %._crit_edge236, %.preheader226, %.loopexit227
  %.9 = phi i32 [ %.6180, %.loopexit227 ], [ %.6180, %.preheader226 ], [ %.8.lcssa, %._crit_edge236 ]
  %.not = icmp eq i32 %.9, %46
  br i1 %.not, label %.preheader, label %131

.preheader:                                       ; preds = %.loopexit
  br i1 %47, label %.lr.ph243.preheader, label %.critedge

.lr.ph243.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %46 to i64
  br label %.lr.ph243

131:                                              ; preds = %.loopexit
  %132 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.121)
  %133 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 noundef %.9)
  %134 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.2)
  %135 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.125)
  %136 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %135, i32 noundef %46)
  %137 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @.str.2)
  %138 = tail call ptr @__cxa_allocate_exception(i64 112) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %139 unwind label %.thread217

139:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.123, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %140 unwind label %143

140:                                              ; preds = %139
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %138, ptr noundef nonnull align 8 dereferenceable(32) %10, i32 noundef 1097, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %141 unwind label %145

141:                                              ; preds = %140
  invoke void @__cxa_throw(ptr nonnull %138, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #8
          to label %265 unwind label %145

.thread217:                                       ; preds = %131
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %.sink.split

143:                                              ; preds = %139
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %141, %140
  %.0165 = phi i1 [ false, %141 ], [ true, %140 ]
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %147

147:                                              ; preds = %143, %145
  %.pn209 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  %.1166 = phi i1 [ %.0165, %145 ], [ true, %143 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br i1 %.1166, label %.sink.split, label %264

.lr.ph243:                                        ; preds = %.lr.ph243.preheader, %252
  %indvars.iv252 = phi i64 [ 0, %.lr.ph243.preheader ], [ %indvars.iv.next253, %252 ]
  %.0162242 = phi i1 [ false, %.lr.ph243.preheader ], [ %.5, %252 ]
  %148 = trunc nuw nsw i64 %indvars.iv252 to i32
  %149 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %150 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %151 = fcmp ult double %149, %150
  br i1 %151, label %163, label %152

152:                                              ; preds = %.lr.ph243
  %153 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %154 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %153, i32 noundef %148)
  %155 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @.str.2)
  %156 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.127)
  %157 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %158 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %156, double noundef %157)
  %159 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull @.str.128)
  %160 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %161 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %159, double noundef %160)
  %162 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull @.str.129)
  br label %163

163:                                              ; preds = %152, %.lr.ph243
  %.1163 = phi i1 [ true, %152 ], [ %.0162242, %.lr.ph243 ]
  %164 = getelementptr inbounds i8, ptr %4, i64 %indvars.iv252
  %165 = load i8, ptr %164, align 1, !tbaa !23, !range !39, !noundef !40
  %166 = trunc nuw i8 %165 to i1
  br i1 %166, label %167, label %175

167:                                              ; preds = %163
  %168 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv252
  %169 = load i32, ptr %168, align 4, !tbaa !27
  %.not208 = icmp eq i32 %169, 0
  br i1 %.not208, label %175, label %170

170:                                              ; preds = %167
  %171 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %172 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %171, i32 noundef %148)
  %173 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef nonnull @.str.2)
  %174 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.130)
  %.pre = load i8, ptr %164, align 1, !tbaa !23, !range !39
  br label %175

175:                                              ; preds = %170, %167, %163
  %176 = phi i8 [ %.pre, %170 ], [ %165, %167 ], [ %165, %163 ]
  %.2164 = phi i1 [ true, %170 ], [ %.1163, %167 ], [ %.1163, %163 ]
  %177 = trunc nuw i8 %176 to i1
  br i1 %177, label %178, label %195

178:                                              ; preds = %175
  %179 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %180 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %181 = fmul double %179, %180
  %182 = fcmp ugt double %181, 0.000000e+00
  br i1 %182, label %195, label %183

183:                                              ; preds = %178
  %184 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %185 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %184, i32 noundef %148)
  %186 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull @.str.2)
  %187 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.131)
  %188 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %189 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %187, double noundef %188)
  %190 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef nonnull @.str.132)
  %191 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %192 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %190, double noundef %191)
  %193 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull @.str.2)
  %194 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.133)
  br label %195

195:                                              ; preds = %178, %183, %175
  %196 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv252
  %197 = load i32, ptr %196, align 4, !tbaa !27
  switch i32 %197, label %252 [
    i32 4, label %248
    i32 1, label %198
    i32 3, label %198
    i32 2, label %226
  ]

198:                                              ; preds = %195, %195
  %199 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %200 = tail call noundef i32 @_ZN7SGTELIB5roundEd(double noundef %199)
  %201 = sitofp i32 %200 to double
  %202 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %203 = fcmp une double %202, %201
  br i1 %203, label %204, label %212

204:                                              ; preds = %198
  %205 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %206 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %205, i32 noundef %148)
  %207 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef nonnull @.str.134)
  %208 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.127)
  %209 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %210 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %208, double noundef %209)
  %211 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef nonnull @.str.135)
  br label %212

212:                                              ; preds = %204, %198
  %.3 = phi i1 [ true, %204 ], [ %.2164, %198 ]
  %213 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %214 = tail call noundef i32 @_ZN7SGTELIB5roundEd(double noundef %213)
  %215 = sitofp i32 %214 to double
  %216 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %217 = fcmp une double %216, %215
  br i1 %217, label %218, label %252

218:                                              ; preds = %212
  %219 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %220 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %219, i32 noundef %148)
  %221 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef nonnull @.str.134)
  %222 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.136)
  %223 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %224 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %222, double noundef %223)
  %225 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef nonnull @.str.135)
  br label %252

226:                                              ; preds = %195
  %227 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %228 = fcmp oeq double %227, 0.000000e+00
  br i1 %228, label %229, label %237

229:                                              ; preds = %226
  %230 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %231 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %230, i32 noundef %148)
  %232 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull @.str.137)
  %233 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.127)
  %234 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %148)
  %235 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %233, double noundef %234)
  %236 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef nonnull @.str.138)
  br label %237

237:                                              ; preds = %229, %226
  %.4 = phi i1 [ true, %229 ], [ %.2164, %226 ]
  %238 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %239 = fcmp oeq double %238, 1.000000e+00
  br i1 %239, label %240, label %252

240:                                              ; preds = %237
  %241 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %242 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %241, i32 noundef %148)
  %243 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef nonnull @.str.137)
  %244 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.136)
  %245 = tail call noundef double @_ZNK7SGTELIB6Matrix3getEi(ptr noundef nonnull align 8 dereferenceable(56) %2, i32 noundef %148)
  %246 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %244, double noundef %245)
  %247 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef nonnull @.str.139)
  br label %252

248:                                              ; preds = %195
  %249 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.126)
  %250 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %249, i32 noundef %148)
  %251 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef nonnull @.str.140)
  br label %252

252:                                              ; preds = %195, %248, %218, %212, %240, %237
  %.5 = phi i1 [ %.2164, %195 ], [ true, %240 ], [ %.4, %237 ], [ true, %218 ], [ %.3, %212 ], [ true, %248 ]
  %indvars.iv.next253 = add nuw nsw i64 %indvars.iv252, 1
  %exitcond254.not = icmp eq i64 %indvars.iv.next253, %wide.trip.count
  br i1 %exitcond254.not, label %._crit_edge244, label %.lr.ph243, !llvm.loop !41

._crit_edge244:                                   ; preds = %252
  br i1 %.5, label %253, label %.critedge

253:                                              ; preds = %._crit_edge244
  %254 = tail call ptr @__cxa_allocate_exception(i64 112) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %255 unwind label %.thread221

255:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.141, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %256 unwind label %259

256:                                              ; preds = %255
  invoke void @_ZN7SGTELIB9ExceptionC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS8_(ptr noundef nonnull align 8 dereferenceable(112) %254, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 1163, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %257 unwind label %261

257:                                              ; preds = %256
  invoke void @__cxa_throw(ptr nonnull %254, ptr nonnull @_ZTIN7SGTELIB9ExceptionE, ptr nonnull @_ZN7SGTELIB9ExceptionD2Ev) #8
          to label %265 unwind label %261

.thread221:                                       ; preds = %253
  %258 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %.sink.split

259:                                              ; preds = %255
  %260 = landingpad { ptr, i32 }
          cleanup
  br label %263

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

263:                                              ; preds = %259, %261
  %.pn205 = phi { ptr, i32 } [ %262, %261 ], [ %260, %259 ]
  %.1 = phi i1 [ %.0, %261 ], [ true, %259 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br i1 %.1, label %.sink.split, label %264

.critedge:                                        ; preds = %.preheader, %._crit_edge244
  ret void

.sink.split:                                      ; preds = %263, %.thread221, %147, %.thread217, %43, %.thread
  %.sink256 = phi ptr [ %34, %.thread ], [ %34, %43 ], [ %138, %.thread217 ], [ %138, %147 ], [ %254, %.thread221 ], [ %254, %263 ]
  %.pn209.pn.pn.pn.ph = phi { ptr, i32 } [ %38, %.thread ], [ %.pn, %43 ], [ %142, %.thread217 ], [ %.pn209, %147 ], [ %258, %.thread221 ], [ %.pn205, %263 ]
  call void @__cxa_free_exception(ptr %.sink256) #7
  br label %264

264:                                              ; preds = %.sink.split, %147, %263, %43
  %.pn209.pn.pn.pn = phi { ptr, i32 } [ %.pn, %43 ], [ %.pn209, %147 ], [ %.pn205, %263 ], [ %.pn209.pn.pn.pn.ph, %.sink.split ]
  resume { ptr, i32 } %.pn209.pn.pn.pn

265:                                              ; preds = %257, %141, %37
  unreachable
}

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

declare noundef i32 @_ZN7SGTELIB5roundEd(double noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: write) }
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, !10, i64 308}
!6 = !{!"_ZTSN7SGTELIB20Surrogate_ParametersE", !7, i64 8, !10, i64 12, !11, i64 16, !12, i64 20, !11, i64 24, !13, i64 32, !11, i64 40, !13, i64 48, !11, i64 56, !14, i64 60, !11, i64 64, !15, i64 72, !20, i64 128, !11, i64 132, !21, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !15, i64 176, !11, i64 232, !22, i64 236, !16, i64 240, !16, i64 272, !10, i64 304, !10, i64 308}
!7 = !{!"_ZTSN7SGTELIB7model_tE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN7SGTELIB14param_status_tE", !8, i64 0}
!12 = !{!"_ZTSN7SGTELIB8kernel_tE", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"_ZTSN7SGTELIB10distance_tE", !8, i64 0}
!15 = !{!"_ZTSN7SGTELIB6MatrixE", !16, i64 8, !10, i64 40, !10, i64 44, !18, i64 48}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !19, i64 8, !8, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!"_ZTSN7SGTELIB8weight_tE", !8, i64 0}
!21 = !{!"_ZTSN7SGTELIB13uncertainty_tE", !8, i64 0}
!22 = !{!"_ZTSN7SGTELIB8metric_tE", !8, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !8, i64 0}
!25 = !{!6, !11, i64 16}
!26 = !{!6, !7, i64 8}
!27 = !{!28, !28, i64 0}
!28 = !{!"_ZTSN7SGTELIB14param_domain_tE", !8, i64 0}
!29 = !{!6, !11, i64 56}
!30 = !{!6, !11, i64 40}
!31 = !{!6, !11, i64 24}
!32 = !{!6, !11, i64 64}
!33 = !{!6, !11, i64 232}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !11, i64 132}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !35}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = distinct !{!41, !35}


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