; LLVM IR from Lut1n/ImpGears :: tests/grids/test.ll (Z10test_chunkRN3imp4GridILi3EfEERNS_9DimensionILi3EEE)

; 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.imp::Dimension" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x i32] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10test_chunkRN3imp4GridILi3EfEERNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.imp::Dimension", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.imp::Dimension", align 8
  %9 = alloca %"class.imp::Dimension", align 8
  %10 = alloca %"class.imp::Dimension", align 8
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.imp::Dimension", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef i32 @_ZN3imp3VecILi3EiE4sizeEv()
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %20, i32 noundef %22)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind writable sret(%"class.imp::Dimension") align 8 %5, ptr noundef nonnull align 8 dereferenceable(128) %26)
  %27 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %5, i32 noundef 0)
          to label %28 unwind label %62

28:                                               ; preds = %2
  %29 = load i32, ptr %27, align 4, !tbaa !9
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %29)
          to label %31 unwind label %62

31:                                               ; preds = %28
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.2)
          to label %33 unwind label %62

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind writable sret(%"class.imp::Dimension") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %34)
          to label %35 unwind label %66

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %8, i32 noundef 1)
          to label %37 unwind label %70

37:                                               ; preds = %35
  %38 = load i32, ptr %36, align 4, !tbaa !9
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef %38)
          to label %40 unwind label %70

40:                                               ; preds = %37
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @.str.2)
          to label %42 unwind label %70

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #5
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind writable sret(%"class.imp::Dimension") align 8 %9, ptr noundef nonnull align 8 dereferenceable(128) %43)
          to label %44 unwind label %74

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %9, i32 noundef 2)
          to label %46 unwind label %78

46:                                               ; preds = %44
  %47 = load i32, ptr %45, align 4, !tbaa !9
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %41, i32 noundef %47)
          to label %49 unwind label %78

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str.3)
          to label %51 unwind label %78

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %78

53:                                               ; preds = %51
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  call void @_ZN3imp9DimensionILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0.000000e+00, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %142, %53
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %56, i32 noundef 0)
          to label %58 unwind label %86

58:                                               ; preds = %54
  %59 = load i32, ptr %57, align 4, !tbaa !9
  %60 = icmp slt i32 %55, %59
  br i1 %60, label %90, label %61

61:                                               ; preds = %58
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %146

62:                                               ; preds = %31, %28, %2
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %6, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %7, align 4
  br label %85

66:                                               ; preds = %33
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %6, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %7, align 4
  br label %84

70:                                               ; preds = %40, %37, %35
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %6, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %7, align 4
  br label %83

74:                                               ; preds = %42
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %6, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %7, align 4
  br label %82

78:                                               ; preds = %51, %49, %46, %44
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #5
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #5
  br label %83

83:                                               ; preds = %82, %70
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #5
  br label %84

84:                                               ; preds = %83, %66
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  br label %85

85:                                               ; preds = %84, %62
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #5
  br label %306

86:                                               ; preds = %90, %54
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %6, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %7, align 4
  br label %145

90:                                               ; preds = %58
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 0)
          to label %93 unwind label %86

93:                                               ; preds = %90
  store i32 %91, ptr %92, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %137, %93
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %96, i32 noundef 1)
          to label %98 unwind label %102

98:                                               ; preds = %94
  %99 = load i32, ptr %97, align 4, !tbaa !9
  %100 = icmp slt i32 %95, %99
  br i1 %100, label %106, label %101

101:                                              ; preds = %98
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %141

102:                                              ; preds = %106, %94
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  br label %140

106:                                              ; preds = %98
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 1)
          to label %109 unwind label %102

109:                                              ; preds = %106
  store i32 %107, ptr %108, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %133, %109
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %112, i32 noundef 2)
          to label %114 unwind label %118

114:                                              ; preds = %110
  %115 = load i32, ptr %113, align 4, !tbaa !9
  %116 = icmp slt i32 %111, %115
  br i1 %116, label %122, label %117

117:                                              ; preds = %114
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %136

118:                                              ; preds = %125, %122, %110
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %6, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %140

122:                                              ; preds = %114
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 2)
          to label %125 unwind label %118

125:                                              ; preds = %122
  store i32 %123, ptr %124, align 4, !tbaa !9
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = load float, ptr %11, align 4, !tbaa !11
  %128 = fadd float %127, 1.000000e+00
  store float %128, ptr %11, align 4, !tbaa !11
  %129 = fpext float %127 to double
  %130 = fdiv double %129, 2.000000e+02
  %131 = fptrunc double %130 to float
  invoke void @_ZN3imp4GridILi3EfE3setERKNS_9DimensionILi3EEEf(ptr noundef nonnull align 8 dereferenceable(128) %126, ptr noundef nonnull align 8 dereferenceable(36) %10, float noundef %131)
          to label %132 unwind label %118

132:                                              ; preds = %125
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %15, align 4, !tbaa !9
  br label %110, !llvm.loop !13

136:                                              ; preds = %117
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %14, align 4, !tbaa !9
  br label %94, !llvm.loop !15

140:                                              ; preds = %118, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %145

141:                                              ; preds = %101
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %12, align 4, !tbaa !9
  br label %54, !llvm.loop !16

145:                                              ; preds = %140, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %305

146:                                              ; preds = %61
  %147 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 0)
          to label %148 unwind label %228

148:                                              ; preds = %146
  store i32 2, ptr %147, align 4, !tbaa !9
  %149 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 1)
          to label %150 unwind label %228

150:                                              ; preds = %148
  store i32 1, ptr %149, align 4, !tbaa !9
  %151 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 2)
          to label %152 unwind label %228

152:                                              ; preds = %150
  store i32 4, ptr %151, align 4, !tbaa !9
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %154 unwind label %228

154:                                              ; preds = %152
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = invoke noundef float @_ZNK3imp4GridILi3EfE3getERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %155, ptr noundef nonnull align 8 dereferenceable(36) %10)
          to label %157 unwind label %228

157:                                              ; preds = %154
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %153, float noundef %156)
          to label %159 unwind label %228

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef @.str.5)
          to label %161 unwind label %228

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 0)
          to label %163 unwind label %228

163:                                              ; preds = %161
  %164 = load i32, ptr %162, align 4, !tbaa !9
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %160, i32 noundef %164)
          to label %166 unwind label %228

166:                                              ; preds = %163
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef @.str.2)
          to label %168 unwind label %228

168:                                              ; preds = %166
  %169 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 1)
          to label %170 unwind label %228

170:                                              ; preds = %168
  %171 = load i32, ptr %169, align 4, !tbaa !9
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %167, i32 noundef %171)
          to label %173 unwind label %228

173:                                              ; preds = %170
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef @.str.2)
          to label %175 unwind label %228

175:                                              ; preds = %173
  %176 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 2)
          to label %177 unwind label %228

177:                                              ; preds = %175
  %178 = load i32, ptr %176, align 4, !tbaa !9
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %174, i32 noundef %178)
          to label %180 unwind label %228

180:                                              ; preds = %177
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef @.str.6)
          to label %182 unwind label %228

182:                                              ; preds = %180
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = invoke noundef i32 @_ZNK3imp4GridILi3EfE5indexERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %183, ptr noundef nonnull align 8 dereferenceable(36) %10)
          to label %185 unwind label %228

185:                                              ; preds = %182
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %181, i32 noundef %184)
          to label %187 unwind label %228

187:                                              ; preds = %185
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef @.str.7)
          to label %189 unwind label %228

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %191 unwind label %228

191:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #5
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = invoke noundef i32 @_ZNK3imp4GridILi3EfE5indexERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %193, ptr noundef nonnull align 8 dereferenceable(36) %10)
          to label %195 unwind label %232

195:                                              ; preds = %191
  invoke void @_ZNK3imp4GridILi3EfE6vectorEj(ptr dead_on_unwind writable sret(%"class.imp::Dimension") align 8 %16, ptr noundef nonnull align 8 dereferenceable(128) %192, i32 noundef %194)
          to label %196 unwind label %232

196:                                              ; preds = %195
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %198 unwind label %236

198:                                              ; preds = %196
  %199 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %16, i32 noundef 0)
          to label %200 unwind label %236

200:                                              ; preds = %198
  %201 = load i32, ptr %199, align 4, !tbaa !9
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %197, i32 noundef %201)
          to label %203 unwind label %236

203:                                              ; preds = %200
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @.str.2)
          to label %205 unwind label %236

205:                                              ; preds = %203
  %206 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %16, i32 noundef 1)
          to label %207 unwind label %236

207:                                              ; preds = %205
  %208 = load i32, ptr %206, align 4, !tbaa !9
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %204, i32 noundef %208)
          to label %210 unwind label %236

210:                                              ; preds = %207
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef @.str.2)
          to label %212 unwind label %236

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %16, i32 noundef 2)
          to label %214 unwind label %236

214:                                              ; preds = %212
  %215 = load i32, ptr %213, align 4, !tbaa !9
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %211, i32 noundef %215)
          to label %217 unwind label %236

217:                                              ; preds = %214
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %219 unwind label %236

219:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %298, %219
  %221 = load i32, ptr %17, align 4, !tbaa !9
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %222, i32 noundef 0)
          to label %224 unwind label %240

224:                                              ; preds = %220
  %225 = load i32, ptr %223, align 4, !tbaa !9
  %226 = icmp slt i32 %221, %225
  br i1 %226, label %244, label %227

227:                                              ; preds = %224
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %302

228:                                              ; preds = %189, %187, %185, %182, %180, %177, %175, %173, %170, %168, %166, %163, %161, %159, %157, %154, %152, %150, %148, %146
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %6, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %7, align 4
  br label %305

232:                                              ; preds = %195, %191
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %6, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %7, align 4
  br label %304

236:                                              ; preds = %217, %214, %212, %210, %207, %205, %203, %200, %198, %196
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %6, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %7, align 4
  br label %303

240:                                              ; preds = %244, %220
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %6, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %7, align 4
  br label %301

244:                                              ; preds = %224
  %245 = load i32, ptr %17, align 4, !tbaa !9
  %246 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 0)
          to label %247 unwind label %240

247:                                              ; preds = %244
  store i32 %245, ptr %246, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %293, %247
  %249 = load i32, ptr %18, align 4, !tbaa !9
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %250, i32 noundef 1)
          to label %252 unwind label %256

252:                                              ; preds = %248
  %253 = load i32, ptr %251, align 4, !tbaa !9
  %254 = icmp slt i32 %249, %253
  br i1 %254, label %260, label %255

255:                                              ; preds = %252
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %297

256:                                              ; preds = %290, %260, %248
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %6, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %7, align 4
  br label %296

260:                                              ; preds = %252
  %261 = load i32, ptr %18, align 4, !tbaa !9
  %262 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 1)
          to label %263 unwind label %256

263:                                              ; preds = %260
  store i32 %261, ptr %262, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %287, %263
  %265 = load i32, ptr %19, align 4, !tbaa !9
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %266, i32 noundef 2)
          to label %268 unwind label %272

268:                                              ; preds = %264
  %269 = load i32, ptr %267, align 4, !tbaa !9
  %270 = icmp slt i32 %265, %269
  br i1 %270, label %276, label %271

271:                                              ; preds = %268
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %290

272:                                              ; preds = %284, %282, %279, %276, %264
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %6, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %296

276:                                              ; preds = %268
  %277 = load i32, ptr %19, align 4, !tbaa !9
  %278 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 2)
          to label %279 unwind label %272

279:                                              ; preds = %276
  store i32 %277, ptr %278, align 4, !tbaa !9
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = invoke noundef float @_ZNK3imp4GridILi3EfE3getERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %280, ptr noundef nonnull align 8 dereferenceable(36) %10)
          to label %282 unwind label %272

282:                                              ; preds = %279
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %281)
          to label %284 unwind label %272

284:                                              ; preds = %282
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %283, ptr noundef @.str.9)
          to label %286 unwind label %272

286:                                              ; preds = %284
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %19, align 4, !tbaa !9
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %19, align 4, !tbaa !9
  br label %264, !llvm.loop !17

290:                                              ; preds = %271
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %292 unwind label %256

292:                                              ; preds = %290
  br label %293

293:                                              ; preds = %292
  %294 = load i32, ptr %18, align 4, !tbaa !9
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %18, align 4, !tbaa !9
  br label %248, !llvm.loop !18

296:                                              ; preds = %272, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %301

297:                                              ; preds = %255
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %17, align 4, !tbaa !9
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %17, align 4, !tbaa !9
  br label %220, !llvm.loop !19

301:                                              ; preds = %296, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %303

302:                                              ; preds = %227
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  ret void

303:                                              ; preds = %301, %236
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #5
  br label %304

304:                                              ; preds = %303, %232
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #5
  br label %305

305:                                              ; preds = %304, %228, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  br label %306

306:                                              ; preds = %305, %85
  %307 = load ptr, ptr %6, align 8
  %308 = load i32, ptr %7, align 4
  %309 = insertvalue { ptr, i32 } poison, ptr %307, 0
  %310 = insertvalue { ptr, i32 } %309, i32 %308, 1
  resume { ptr, i32 } %310
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3imp3VecILi3EiE4sizeEv() #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind noalias writable sret(%"class.imp::Dimension") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp9DimensionILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4GridILi3EfE3setERKNS_9DimensionILi3EEEf(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36), float noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3imp4GridILi3EfE3getERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3imp4GridILi3EfE5indexERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4GridILi3EfE6vectorEj(ptr dead_on_unwind noalias writable sret(%"class.imp::Dimension") align 8, ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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


; 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.imp::Dimension" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x i32] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10test_chunkRN3imp4GridILi3EfEERNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.imp::Dimension", align 8
  %4 = alloca %"class.imp::Dimension", align 8
  %5 = alloca %"class.imp::Dimension", align 8
  %6 = alloca %"class.imp::Dimension", align 8
  %7 = alloca %"class.imp::Dimension", align 8
  %8 = 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)
  %9 = tail call noundef i32 @_ZN3imp3VecILi3EiE4sizeEv()
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %9)
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %12 = 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.1)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Dimension") align 8 %3, ptr noundef nonnull align 8 dereferenceable(128) %0)
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %3, i32 noundef 0)
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %14)
          to label %16 unwind label %42

16:                                               ; preds = %2
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.2)
          to label %18 unwind label %42

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  invoke void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Dimension") align 8 %4, ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %19 unwind label %44

19:                                               ; preds = %18
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %4, i32 noundef 1)
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef %21)
          to label %23 unwind label %46

23:                                               ; preds = %19
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.2)
          to label %25 unwind label %46

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  invoke void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Dimension") align 8 %5, ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %26 unwind label %48

26:                                               ; preds = %25
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %5, i32 noundef 2)
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %28)
          to label %30 unwind label %50

30:                                               ; preds = %26
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.3)
          to label %32 unwind label %50

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %34 unwind label %50

34:                                               ; preds = %32
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN3imp9DimensionILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6)
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 0)
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph78, label %._crit_edge79

._crit_edge79:                                    ; preds = %._crit_edge73, %34
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 0)
  store i32 2, ptr %38, align 4, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 1)
  store i32 1, ptr %39, align 4, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 2)
  store i32 4, ptr %40, align 4, !tbaa !5
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %82 unwind label %140

42:                                               ; preds = %16, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %55

44:                                               ; preds = %18
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %54

46:                                               ; preds = %23, %19
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %53

48:                                               ; preds = %25
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %32, %30, %26
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %53

53:                                               ; preds = %52, %46
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %47, %46 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #5
  br label %54

54:                                               ; preds = %53, %44
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %53 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  br label %55

55:                                               ; preds = %54, %42
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %54 ], [ %43, %42 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  br label %182

.lr.ph78:                                         ; preds = %34, %._crit_edge73
  %.04076 = phi i32 [ %60, %._crit_edge73 ], [ 0, %34 ]
  %.04175 = phi float [ %.1.lcssa, %._crit_edge73 ], [ 0.000000e+00, %34 ]
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 0)
  store i32 %.04076, ptr %56, align 4, !tbaa !5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 1)
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph72, label %._crit_edge73

._crit_edge73:                                    ; preds = %._crit_edge, %.lr.ph78
  %.1.lcssa = phi float [ %.04175, %.lr.ph78 ], [ %.2.lcssa, %._crit_edge ]
  %60 = add nuw nsw i32 %.04076, 1
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 0)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %.lr.ph78, label %._crit_edge79, !llvm.loop !9

.lr.ph72:                                         ; preds = %.lr.ph78, %._crit_edge
  %.03970 = phi i32 [ %68, %._crit_edge ], [ 0, %.lr.ph78 ]
  %.169 = phi float [ %.2.lcssa, %._crit_edge ], [ %.04175, %.lr.ph78 ]
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 1)
  store i32 %.03970, ptr %64, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 2)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %76, %.lr.ph72
  %.2.lcssa = phi float [ %.169, %.lr.ph72 ], [ %77, %76 ]
  %68 = add nuw nsw i32 %.03970, 1
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 1)
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp slt i32 %68, %70
  br i1 %71, label %.lr.ph72, label %._crit_edge73, !llvm.loop !11

72:                                               ; preds = %.lr.ph
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %181

.lr.ph:                                           ; preds = %.lr.ph72, %76
  %.03868 = phi i32 [ %78, %76 ], [ 0, %.lr.ph72 ]
  %.267 = phi float [ %77, %76 ], [ %.169, %.lr.ph72 ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 2)
  store i32 %.03868, ptr %74, align 4, !tbaa !5
  %75 = fdiv float %.267, 2.000000e+02
  invoke void @_ZN3imp4GridILi3EfE3setERKNS_9DimensionILi3EEEf(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %6, float noundef %75)
          to label %76 unwind label %72

76:                                               ; preds = %.lr.ph
  %77 = fadd float %.267, 1.000000e+00
  %78 = add nuw nsw i32 %.03868, 1
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 2)
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = icmp slt i32 %78, %80
  br i1 %81, label %.lr.ph, label %._crit_edge, !llvm.loop !12

82:                                               ; preds = %._crit_edge79
  %83 = invoke noundef float @_ZNK3imp4GridILi3EfE3getERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %84 unwind label %140

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %41, float noundef %83)
          to label %86 unwind label %140

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @.str.5)
          to label %88 unwind label %140

88:                                               ; preds = %86
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 0)
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %87, i32 noundef %90)
          to label %92 unwind label %140

92:                                               ; preds = %88
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str.2)
          to label %94 unwind label %140

94:                                               ; preds = %92
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 1)
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %93, i32 noundef %96)
          to label %98 unwind label %140

98:                                               ; preds = %94
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @.str.2)
          to label %100 unwind label %140

100:                                              ; preds = %98
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 2)
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %99, i32 noundef %102)
          to label %104 unwind label %140

104:                                              ; preds = %100
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull @.str.6)
          to label %106 unwind label %140

106:                                              ; preds = %104
  %107 = invoke noundef i32 @_ZNK3imp4GridILi3EfE5indexERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %108 unwind label %140

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef %107)
          to label %110 unwind label %140

110:                                              ; preds = %108
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @.str.7)
          to label %112 unwind label %140

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %114 unwind label %140

114:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  %115 = invoke noundef i32 @_ZNK3imp4GridILi3EfE5indexERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %116 unwind label %142

116:                                              ; preds = %114
  invoke void @_ZNK3imp4GridILi3EfE6vectorEj(ptr dead_on_unwind nonnull writable sret(%"class.imp::Dimension") align 8 %7, ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef %115)
          to label %117 unwind label %142

117:                                              ; preds = %116
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %119 unwind label %144

119:                                              ; preds = %117
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 0)
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %118, i32 noundef %121)
          to label %123 unwind label %144

123:                                              ; preds = %119
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str.2)
          to label %125 unwind label %144

125:                                              ; preds = %123
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 1)
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %124, i32 noundef %127)
          to label %129 unwind label %144

129:                                              ; preds = %125
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull @.str.2)
          to label %131 unwind label %144

131:                                              ; preds = %129
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 2)
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %130, i32 noundef %133)
          to label %135 unwind label %144

135:                                              ; preds = %131
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %144

.preheader:                                       ; preds = %135
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 0)
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph89, label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge87, %.preheader
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  ret void

140:                                              ; preds = %112, %110, %108, %106, %104, %100, %98, %94, %92, %88, %86, %84, %82, %._crit_edge79
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %181

142:                                              ; preds = %116, %114
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %180

144:                                              ; preds = %135, %131, %129, %125, %123, %119, %117
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %179

.lr.ph89:                                         ; preds = %.preheader, %._crit_edge87
  %.03788 = phi i32 [ %150, %._crit_edge87 ], [ 0, %.preheader ]
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 0)
  store i32 %.03788, ptr %146, align 4, !tbaa !5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 1)
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = icmp sgt i32 %148, 0
  br i1 %149, label %.lr.ph86, label %._crit_edge87

._crit_edge87:                                    ; preds = %174, %.lr.ph89
  %150 = add nuw nsw i32 %.03788, 1
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 0)
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = icmp slt i32 %150, %152
  br i1 %153, label %.lr.ph89, label %._crit_edge90, !llvm.loop !13

154:                                              ; preds = %._crit_edge83
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %179

.lr.ph86:                                         ; preds = %.lr.ph89, %174
  %.03684 = phi i32 [ %175, %174 ], [ 0, %.lr.ph89 ]
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 1)
  store i32 %.03684, ptr %156, align 4, !tbaa !5
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 2)
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = icmp sgt i32 %158, 0
  br i1 %159, label %.lr.ph82, label %._crit_edge83

._crit_edge83:                                    ; preds = %169, %.lr.ph86
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %174 unwind label %154

161:                                              ; preds = %167, %165, %.lr.ph82
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %179

.lr.ph82:                                         ; preds = %.lr.ph86, %169
  %.080 = phi i32 [ %170, %169 ], [ 0, %.lr.ph86 ]
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %6, i32 noundef 2)
  store i32 %.080, ptr %163, align 4, !tbaa !5
  %164 = invoke noundef float @_ZNK3imp4GridILi3EfE3getERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(36) %6)
          to label %165 unwind label %161

165:                                              ; preds = %.lr.ph82
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %164)
          to label %167 unwind label %161

167:                                              ; preds = %165
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull @.str.9)
          to label %169 unwind label %161

169:                                              ; preds = %167
  %170 = add nuw nsw i32 %.080, 1
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 2)
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = icmp slt i32 %170, %172
  br i1 %173, label %.lr.ph82, label %._crit_edge83, !llvm.loop !14

174:                                              ; preds = %._crit_edge83
  %175 = add nuw nsw i32 %.03684, 1
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36) %1, i32 noundef 1)
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = icmp slt i32 %175, %177
  br i1 %178, label %.lr.ph86, label %._crit_edge87, !llvm.loop !15

179:                                              ; preds = %154, %161, %144
  %.pn58.pn = phi { ptr, i32 } [ %145, %144 ], [ %162, %161 ], [ %155, %154 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  br label %180

180:                                              ; preds = %179, %142
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %179 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  br label %181

181:                                              ; preds = %180, %140, %72
  %.pn62 = phi { ptr, i32 } [ %73, %72 ], [ %.pn58.pn.pn, %180 ], [ %141, %140 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  br label %182

182:                                              ; preds = %181, %55
  %.pn62.pn = phi { ptr, i32 } [ %.pn62, %181 ], [ %.pn.pn.pn.pn, %55 ]
  resume { ptr, i32 } %.pn62.pn
}

; 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 #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3imp3VecILi3EiE4sizeEv() local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4GridILi3EfE4sizeEv(ptr dead_on_unwind noalias writable sret(%"class.imp::Dimension") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EiEixEj(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp9DimensionILi3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4GridILi3EfE3setERKNS_9DimensionILi3EEEf(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36), float noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3imp4GridILi3EfE3getERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3imp4GridILi3EfE5indexERKNS_9DimensionILi3EEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4GridILi3EfE6vectorEj(ptr dead_on_unwind noalias writable sret(%"class.imp::Dimension") align 8, ptr noundef nonnull align 8 dereferenceable(128), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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


; Effective O3 passes: GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass