; LLVM IR from RichtersFinger/ChainSimulation :: main (main)

; 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.Simulation = type { %class.Chain, %"class.std::vector.0", double, double }
%class.Chain = type { double, double, double, double, double, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl" }
%"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl" }
%"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl" }
%"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%class.Vector = type { double, double }
%"class.std::allocator.7" = type { i8 }
%class.Wall = type <{ double, double, double, double, double, double, double, double, double, double, double, double, i32, [4 x i8] }>
%class.ChainElement = type { double, double, double, double, double, double, double, double, i8, ptr, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %class.Simulation, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.std::vector.5", align 8
  %14 = alloca %"class.std::initializer_list", align 8
  %15 = alloca [10 x %class.Vector], align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::allocator.7", align 1
  %19 = alloca %class.Vector, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 104, ptr %6) #8
  call void @_ZN10SimulationC1Ev(ptr noundef nonnull align 8 dereferenceable(104) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store double 0.000000e+00, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store double 1.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store double 1.000000e-01, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store double 6.000000e-01, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store double 2.500000e+01, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 160, ptr %15) #8
  %22 = load double, ptr %7, align 8, !tbaa !11
  %23 = load double, ptr %8, align 8, !tbaa !11
  %24 = load double, ptr %9, align 8, !tbaa !11
  %25 = fadd double %23, %24
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %22, double noundef %25)
          to label %26 unwind label %142

26:                                               ; preds = %2
  %27 = getelementptr inbounds %class.Vector, ptr %15, i64 1
  %28 = load double, ptr %7, align 8, !tbaa !11
  %29 = load double, ptr %8, align 8, !tbaa !11
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %28, double noundef %29)
          to label %30 unwind label %142

30:                                               ; preds = %26
  %31 = getelementptr inbounds %class.Vector, ptr %15, i64 2
  %32 = load double, ptr %7, align 8, !tbaa !11
  %33 = load double, ptr %8, align 8, !tbaa !11
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %31, double noundef %32, double noundef %33)
          to label %34 unwind label %142

34:                                               ; preds = %30
  %35 = getelementptr inbounds %class.Vector, ptr %15, i64 3
  %36 = load double, ptr %7, align 8, !tbaa !11
  %37 = load double, ptr %11, align 8, !tbaa !11
  %38 = fadd double %36, %37
  %39 = load double, ptr %8, align 8, !tbaa !11
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef %38, double noundef %39)
          to label %40 unwind label %142

40:                                               ; preds = %34
  %41 = getelementptr inbounds %class.Vector, ptr %15, i64 4
  %42 = load double, ptr %7, align 8, !tbaa !11
  %43 = load double, ptr %11, align 8, !tbaa !11
  %44 = fadd double %42, %43
  %45 = load double, ptr %8, align 8, !tbaa !11
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %41, double noundef %44, double noundef %45)
          to label %46 unwind label %142

46:                                               ; preds = %40
  %47 = getelementptr inbounds %class.Vector, ptr %15, i64 5
  %48 = load double, ptr %7, align 8, !tbaa !11
  %49 = load double, ptr %11, align 8, !tbaa !11
  %50 = fadd double %48, %49
  %51 = load double, ptr %8, align 8, !tbaa !11
  %52 = load double, ptr %9, align 8, !tbaa !11
  %53 = fadd double %51, %52
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %47, double noundef %50, double noundef %53)
          to label %54 unwind label %142

54:                                               ; preds = %46
  %55 = getelementptr inbounds %class.Vector, ptr %15, i64 6
  %56 = load double, ptr %7, align 8, !tbaa !11
  %57 = load double, ptr %11, align 8, !tbaa !11
  %58 = fadd double %56, %57
  %59 = load double, ptr %10, align 8, !tbaa !11
  %60 = fadd double %58, %59
  %61 = load double, ptr %8, align 8, !tbaa !11
  %62 = load double, ptr %9, align 8, !tbaa !11
  %63 = fadd double %61, %62
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %55, double noundef %60, double noundef %63)
          to label %64 unwind label %142

64:                                               ; preds = %54
  %65 = getelementptr inbounds %class.Vector, ptr %15, i64 7
  %66 = load double, ptr %7, align 8, !tbaa !11
  %67 = load double, ptr %11, align 8, !tbaa !11
  %68 = fadd double %66, %67
  %69 = load double, ptr %10, align 8, !tbaa !11
  %70 = fadd double %68, %69
  %71 = load double, ptr %8, align 8, !tbaa !11
  %72 = load double, ptr %10, align 8, !tbaa !11
  %73 = fsub double %71, %72
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %65, double noundef %70, double noundef %73)
          to label %74 unwind label %142

74:                                               ; preds = %64
  %75 = getelementptr inbounds %class.Vector, ptr %15, i64 8
  %76 = load double, ptr %8, align 8, !tbaa !11
  %77 = load double, ptr %9, align 8, !tbaa !11
  %78 = fadd double %76, %77
  %79 = load double, ptr %12, align 8, !tbaa !11
  %80 = fsub double %78, %79
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %75, double noundef -8.000000e+00, double noundef %80)
          to label %81 unwind label %142

81:                                               ; preds = %74
  %82 = getelementptr inbounds %class.Vector, ptr %15, i64 9
  %83 = load double, ptr %8, align 8, !tbaa !11
  %84 = load double, ptr %9, align 8, !tbaa !11
  %85 = fadd double %83, %84
  %86 = load double, ptr %12, align 8, !tbaa !11
  %87 = fsub double %85, %86
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %82, double noundef 8.000000e+00, double noundef %87)
          to label %88 unwind label %142

88:                                               ; preds = %81
  %89 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 0
  store ptr %15, ptr %89, align 8, !tbaa !13
  %90 = getelementptr inbounds %"class.std::initializer_list", ptr %14, i32 0, i32 1
  store i64 10, ptr %90, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  call void @_ZNSaI6VectorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  %91 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8
  %93 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %94 = load i64, ptr %93, align 8
  invoke void @_ZNSt6vectorI6VectorSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr %92, i64 %94, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %95 unwind label %146

95:                                               ; preds = %88
  invoke void @_ZN10Simulation15addTrailofWallsESt6vectorI6VectorSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef %13)
          to label %96 unwind label %150

96:                                               ; preds = %95
  call void @_ZNSt6vectorI6VectorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @_ZNSt15__new_allocatorI6VectorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr %15) #8
  %97 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 1
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4WallSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #8
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds %class.Wall, ptr %99, i32 0, i32 3
  store double 1.000000e+00, ptr %100, align 8, !tbaa !17
  %101 = load double, ptr %7, align 8, !tbaa !11
  %102 = load double, ptr %11, align 8, !tbaa !11
  %103 = fadd double %101, %102
  %104 = load double, ptr %10, align 8, !tbaa !11
  %105 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %104, double %103)
  %106 = load double, ptr %8, align 8, !tbaa !11
  %107 = load double, ptr %9, align 8, !tbaa !11
  %108 = fadd double %106, %107
  %109 = load double, ptr %10, align 8, !tbaa !11
  %110 = fmul double 5.000000e-01, %109
  invoke void @_ZN10Simulation20addSphericalBoundaryEddd(ptr noundef nonnull align 8 dereferenceable(104) %6, double noundef %105, double noundef %108, double noundef %110)
          to label %111 unwind label %156

111:                                              ; preds = %96
  %112 = load double, ptr %7, align 8, !tbaa !11
  %113 = load double, ptr %10, align 8, !tbaa !11
  %114 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %113, double %112)
  %115 = load double, ptr %8, align 8, !tbaa !11
  %116 = load double, ptr %9, align 8, !tbaa !11
  %117 = fadd double %115, %116
  %118 = load double, ptr %10, align 8, !tbaa !11
  %119 = fmul double 5.000000e-01, %118
  invoke void @_ZN10Simulation20addSphericalBoundaryEddd(ptr noundef nonnull align 8 dereferenceable(104) %6, double noundef %114, double noundef %117, double noundef %119)
          to label %120 unwind label %156

120:                                              ; preds = %111
  invoke void @_ZN10Simulation16writeWallsToFileEPKc(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef @.str)
          to label %121 unwind label %156

121:                                              ; preds = %120
  invoke void @_ZN10Simulation9initChainEidddd(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef 3200, double noundef 4.000000e-02, double noundef 1.000000e+06, double noundef 5.000000e-01, double noundef 1.000000e+06)
          to label %122 unwind label %156

122:                                              ; preds = %121
  %123 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %124 = load double, ptr %7, align 8, !tbaa !11
  %125 = load double, ptr %11, align 8, !tbaa !11
  %126 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %125, double %124)
  %127 = load double, ptr %8, align 8, !tbaa !11
  %128 = load double, ptr %9, align 8, !tbaa !11
  %129 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %128, double %127)
  invoke void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %126, double noundef %129)
          to label %130 unwind label %156

130:                                              ; preds = %122
  %131 = load double, ptr %11, align 8, !tbaa !11
  %132 = fmul double 3.300000e-01, %131
  %133 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %134 = load double, ptr %133, align 8
  %135 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  invoke void @_ZN5Chain24quickArrangementEntwinedE6Vectordid(ptr noundef nonnull align 8 dereferenceable(64) %123, double %134, double %136, double noundef %132, i32 noundef 128, double noundef 1.000000e-01)
          to label %137 unwind label %156

137:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %179, %137
  %139 = load i32, ptr %20, align 4, !tbaa !5
  %140 = icmp slt i32 %139, 150
  br i1 %140, label %160, label %141

141:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %186

142:                                              ; preds = %81, %74, %64, %54, %46, %40, %34, %30, %26, %2
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %16, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %17, align 4
  br label %155

146:                                              ; preds = %88
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %16, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %17, align 4
  br label %154

150:                                              ; preds = %95
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %16, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %17, align 4
  call void @_ZNSt6vectorI6VectorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %154

154:                                              ; preds = %150, %146
  call void @_ZNSt15__new_allocatorI6VectorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  br label %155

155:                                              ; preds = %154, %142
  call void @llvm.lifetime.end.p0(i64 160, ptr %15) #8
  br label %274

156:                                              ; preds = %199, %187, %186, %130, %122, %121, %120, %111, %96
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %16, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %17, align 4
  br label %274

160:                                              ; preds = %138
  invoke void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef 0)
          to label %161 unwind label %182

161:                                              ; preds = %160
  %162 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 3
  %163 = load double, ptr %162, align 8, !tbaa !20
  %164 = fdiv double 0x3F91111111111111, %163
  %165 = call double @llvm.floor.f64(double %164)
  %166 = fptosi double %165 to i32
  invoke void @_ZN10Simulation4stepEi(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef %166)
          to label %167 unwind label %182

167:                                              ; preds = %161
  %168 = load i32, ptr %20, align 4, !tbaa !5
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %168)
          to label %170 unwind label %182

170:                                              ; preds = %167
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef @.str.1)
          to label %172 unwind label %182

172:                                              ; preds = %170
  %173 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 2
  %174 = load double, ptr %173, align 8, !tbaa !31
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %171, double noundef %174)
          to label %176 unwind label %182

176:                                              ; preds = %172
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %178 unwind label %182

178:                                              ; preds = %176
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %20, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %20, align 4, !tbaa !5
  br label %138, !llvm.loop !32

182:                                              ; preds = %176, %172, %170, %167, %161, %160
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %16, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %274

186:                                              ; preds = %141
  invoke void @_ZN10Simulation15saveChainBackupEPKc(ptr noundef nonnull align 8 dereferenceable(104) %6, ptr noundef @.str.2)
          to label %187 unwind label %156

187:                                              ; preds = %186
  %188 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %189 = getelementptr inbounds %class.Chain, ptr %188, i32 0, i32 5
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef 0) #8
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds %class.ChainElement, ptr %191, i32 0, i32 4
  store double 3.000000e+02, ptr %192, align 8, !tbaa !34
  %193 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %194 = getelementptr inbounds %class.Chain, ptr %193, i32 0, i32 5
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef 0) #8
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  %197 = getelementptr inbounds %class.ChainElement, ptr %196, i32 0, i32 5
  store double 1.000000e+03, ptr %197, align 8, !tbaa !37
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %199 unwind label %156

199:                                              ; preds = %187
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %201 unwind label %156

201:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %269, %201
  %203 = load i32, ptr %21, align 4, !tbaa !5
  %204 = icmp slt i32 %203, 1200
  br i1 %204, label %206, label %205

205:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %272

206:                                              ; preds = %202
  %207 = load i32, ptr %21, align 4, !tbaa !5
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %207)
          to label %209 unwind label %254

209:                                              ; preds = %206
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @.str.1)
          to label %211 unwind label %254

211:                                              ; preds = %209
  %212 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 2
  %213 = load double, ptr %212, align 8, !tbaa !31
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %210, double noundef %213)
          to label %215 unwind label %254

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

217:                                              ; preds = %215
  %218 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %219 = getelementptr inbounds %class.Chain, ptr %218, i32 0, i32 5
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef 0) #8
  %221 = load ptr, ptr %220, align 8, !tbaa !9
  %222 = getelementptr inbounds %class.ChainElement, ptr %221, i32 0, i32 1
  %223 = load double, ptr %222, align 8, !tbaa !38
  %224 = load double, ptr %8, align 8, !tbaa !11
  %225 = load double, ptr %9, align 8, !tbaa !11
  %226 = fadd double %224, %225
  %227 = fadd double %226, 2.000000e+00
  %228 = fcmp ogt double %223, %227
  br i1 %228, label %229, label %258

229:                                              ; preds = %217
  %230 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %231 = getelementptr inbounds %class.Chain, ptr %230, i32 0, i32 5
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef 0) #8
  %233 = load ptr, ptr %232, align 8, !tbaa !9
  %234 = getelementptr inbounds %class.ChainElement, ptr %233, i32 0, i32 0
  %235 = load double, ptr %234, align 8, !tbaa !39
  %236 = load double, ptr %7, align 8, !tbaa !11
  %237 = load double, ptr %11, align 8, !tbaa !11
  %238 = fadd double %236, %237
  %239 = load double, ptr %10, align 8, !tbaa !11
  %240 = fadd double %238, %239
  %241 = fadd double %240, 5.000000e-01
  %242 = fcmp ogt double %235, %241
  br i1 %242, label %243, label %258

243:                                              ; preds = %229
  %244 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %245 = getelementptr inbounds %class.Chain, ptr %244, i32 0, i32 5
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %245, i64 noundef 0) #8
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds %class.ChainElement, ptr %247, i32 0, i32 4
  store double 0.000000e+00, ptr %248, align 8, !tbaa !34
  %249 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 0
  %250 = getelementptr inbounds %class.Chain, ptr %249, i32 0, i32 5
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef 0) #8
  %252 = load ptr, ptr %251, align 8, !tbaa !9
  %253 = getelementptr inbounds %class.ChainElement, ptr %252, i32 0, i32 5
  store double 0.000000e+00, ptr %253, align 8, !tbaa !37
  br label %258

254:                                              ; preds = %262, %259, %258, %215, %211, %209, %206
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %16, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %274

258:                                              ; preds = %243, %229, %217
  invoke void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef 0)
          to label %259 unwind label %254

259:                                              ; preds = %258
  %260 = load i32, ptr %21, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  invoke void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef %261)
          to label %262 unwind label %254

262:                                              ; preds = %259
  %263 = getelementptr inbounds %class.Simulation, ptr %6, i32 0, i32 3
  %264 = load double, ptr %263, align 8, !tbaa !20
  %265 = fdiv double 0x3F91111111111111, %264
  %266 = call double @llvm.floor.f64(double %265)
  %267 = fptosi double %266 to i32
  invoke void @_ZN10Simulation4stepEi(ptr noundef nonnull align 8 dereferenceable(104) %6, i32 noundef %267)
          to label %268 unwind label %254

268:                                              ; preds = %262
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %21, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %21, align 4, !tbaa !5
  br label %202, !llvm.loop !40

272:                                              ; preds = %205
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZN10SimulationD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %6) #8
  %273 = load i32, ptr %3, align 4
  ret i32 %273

274:                                              ; preds = %254, %182, %156, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZN10SimulationD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %6) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %6) #8
  br label %275

275:                                              ; preds = %274
  %276 = load ptr, ptr %16, align 8
  %277 = load i32, ptr %17, align 4
  %278 = insertvalue { ptr, i32 } poison, ptr %276, 0
  %279 = insertvalue { ptr, i32 } %278, i32 %277, 1
  resume { ptr, i32 } %279
}

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

declare void @_ZN10SimulationC1Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #2

declare void @_ZN10Simulation15addTrailofWallsESt6vectorI6VectorSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6VectorSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; 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 dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4WallSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZN10Simulation20addSphericalBoundaryEddd(ptr noundef nonnull align 8 dereferenceable(104), double noundef, double noundef, double noundef) #2

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

declare void @_ZN10Simulation16writeWallsToFileEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #2

declare void @_ZN10Simulation9initChainEidddd(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, double noundef, double noundef, double noundef, double noundef) #2

declare void @_ZN5Chain24quickArrangementEntwinedE6Vectordid(ptr noundef nonnull align 8 dereferenceable(64), double, double, double noundef, i32 noundef, double noundef) #2

declare void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #2

declare void @_ZN10Simulation4stepEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #4 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) #4 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)) #6

declare void @_ZN10Simulation15saveChainBackupEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10SimulationD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #7 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSSt16initializer_listI6VectorE", !10, i64 0, !15, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !12, i64 24}
!18 = !{!"_ZTS4Wall", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !19, i64 96}
!19 = !{!"_ZTS8WallType", !7, i64 0}
!20 = !{!21, !12, i64 96}
!21 = !{!"_ZTS10Simulation", !22, i64 0, !27, i64 64, !12, i64 88, !12, i64 96}
!22 = !{!"_ZTS5Chain", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !23, i64 40}
!23 = !{!"_ZTSSt6vectorIP12ChainElementSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP12ChainElementSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP12ChainElementSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP12ChainElementSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!27 = !{!"_ZTSSt6vectorIP4WallSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP4WallSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP4WallSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP4WallSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!31 = !{!21, !12, i64 88}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !12, i64 32}
!35 = !{!"_ZTS12ChainElement", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !36, i64 64, !10, i64 72, !10, i64 80}
!36 = !{!"bool", !7, i64 0}
!37 = !{!35, !12, i64 40}
!38 = !{!35, !12, i64 8}
!39 = !{!35, !12, i64 0}
!40 = distinct !{!40, !33}


; 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.Simulation = type { %class.Chain, %"class.std::vector.0", double, double }
%class.Chain = type { double, double, double, double, double, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl" }
%"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ChainElement *, std::allocator<ChainElement *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl" }
%"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Wall *, std::allocator<Wall *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl" }
%"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vector, std::allocator<Vector>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Vector = type { double, double }
%"class.std::allocator.7" = type { i8 }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Simulation, align 8
  %4 = alloca %"class.std::vector.5", align 8
  %5 = alloca [10 x %class.Vector], align 8
  %6 = alloca %"class.std::allocator.7", align 1
  %7 = alloca %class.Vector, align 8
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %3) #8
  call void @_ZN10SimulationC1Ev(ptr noundef nonnull align 8 dereferenceable(104) %3)
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #8
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %8 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %9 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %10 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 6.000000e-01, double noundef 0.000000e+00)
  %11 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 6.000000e-01, double noundef 0.000000e+00)
  %12 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 6.000000e-01, double noundef 1.000000e+00)
  %13 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef 0x3FE6666666666666, double noundef 1.000000e+00)
  %14 = getelementptr inbounds i8, ptr %5, i64 112
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef 0x3FE6666666666666, double noundef -1.000000e-01)
  %15 = getelementptr inbounds i8, ptr %5, i64 128
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef -8.000000e+00, double noundef -2.400000e+01)
  %16 = getelementptr inbounds i8, ptr %5, i64 144
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 8.000000e+00, double noundef -2.400000e+01)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaI6VectorEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorI6VectorSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %5, i64 10, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %33

17:                                               ; preds = %2
  invoke void @_ZN10Simulation15addTrailofWallsESt6vectorI6VectorSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull %4)
          to label %18 unwind label %35

18:                                               ; preds = %17
  call void @_ZNSt6vectorI6VectorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @_ZNSt15__new_allocatorI6VectorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #8
  %19 = getelementptr inbounds i8, ptr %3, i64 64
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4WallSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  store double 1.000000e+00, ptr %22, align 8, !tbaa !9
  invoke void @_ZN10Simulation20addSphericalBoundaryEddd(ptr noundef nonnull align 8 dereferenceable(104) %3, double noundef 6.500000e-01, double noundef 1.000000e+00, double noundef 5.000000e-02)
          to label %23 unwind label %38

23:                                               ; preds = %18
  invoke void @_ZN10Simulation20addSphericalBoundaryEddd(ptr noundef nonnull align 8 dereferenceable(104) %3, double noundef -5.000000e-02, double noundef 1.000000e+00, double noundef 5.000000e-02)
          to label %24 unwind label %38

24:                                               ; preds = %23
  invoke void @_ZN10Simulation16writeWallsToFileEPKc(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull @.str)
          to label %25 unwind label %38

25:                                               ; preds = %24
  invoke void @_ZN10Simulation9initChainEidddd(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef 3200, double noundef 4.000000e-02, double noundef 1.000000e+06, double noundef 5.000000e-01, double noundef 1.000000e+06)
          to label %26 unwind label %38

26:                                               ; preds = %25
  call void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef 3.000000e-01, double noundef 5.000000e-01)
  %27 = load double, ptr %7, align 8
  %28 = getelementptr inbounds i8, ptr %7, i64 8
  %29 = load double, ptr %28, align 8
  invoke void @_ZN5Chain24quickArrangementEntwinedE6Vectordid(ptr noundef nonnull align 8 dereferenceable(64) %3, double %27, double %29, double noundef 1.980000e-01, i32 noundef 128, double noundef 1.000000e-01)
          to label %.preheader70 unwind label %38

.preheader70:                                     ; preds = %26
  %30 = getelementptr inbounds i8, ptr %3, i64 96
  %31 = getelementptr inbounds i8, ptr %3, i64 88
  br label %40

32:                                               ; preds = %55
  invoke void @_ZN10Simulation15saveChainBackupEPKc(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull @.str.2)
          to label %59 unwind label %38

33:                                               ; preds = %2
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %17
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI6VectorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %37

37:                                               ; preds = %35, %33
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZNSt15__new_allocatorI6VectorED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #8
  br label %108

38:                                               ; preds = %68, %59, %32, %26, %25, %24, %23, %18
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %108

40:                                               ; preds = %.preheader70, %55
  %.06371 = phi i32 [ 0, %.preheader70 ], [ %56, %55 ]
  invoke void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef 0)
          to label %41 unwind label %57

41:                                               ; preds = %40
  %42 = load double, ptr %30, align 8, !tbaa !13
  %43 = fdiv double 0x3F91111111111111, %42
  %44 = call double @llvm.floor.f64(double %43)
  %45 = fptosi double %44 to i32
  invoke void @_ZN10Simulation4stepEi(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef %45)
          to label %46 unwind label %57

46:                                               ; preds = %41
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.06371)
          to label %48 unwind label %57

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

50:                                               ; preds = %48
  %51 = load double, ptr %31, align 8, !tbaa !24
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %49, double noundef %51)
          to label %53 unwind label %57

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

55:                                               ; preds = %53
  %56 = add nuw nsw i32 %.06371, 1
  %exitcond.not = icmp eq i32 %56, 150
  br i1 %exitcond.not, label %32, label %40, !llvm.loop !25

57:                                               ; preds = %53, %50, %48, %46, %41, %40
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %108

59:                                               ; preds = %32
  %60 = getelementptr inbounds i8, ptr %3, i64 40
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #8
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  store double 3.000000e+02, ptr %63, align 8, !tbaa !27
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #8
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  store double 1.000000e+03, ptr %66, align 8, !tbaa !30
  %67 = 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.3)
          to label %68 unwind label %38

68:                                               ; preds = %59
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %38

.preheader:                                       ; preds = %68, %103
  %.0 = phi i32 [ %102, %103 ], [ 0, %68 ]
  %exitcond72.not = icmp eq i32 %.0, 1200
  br i1 %exitcond72.not, label %70, label %71

70:                                               ; preds = %.preheader
  call void @_ZN10SimulationD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %3) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #8
  ret i32 0

71:                                               ; preds = %.preheader
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0)
          to label %73 unwind label %98

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.1)
          to label %75 unwind label %98

75:                                               ; preds = %73
  %76 = load double, ptr %31, align 8, !tbaa !24
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %74, double noundef %76)
          to label %78 unwind label %98

78:                                               ; preds = %75
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %80 unwind label %98

80:                                               ; preds = %78
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #8
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load double, ptr %83, align 8, !tbaa !31
  %85 = fcmp ogt double %84, 3.000000e+00
  br i1 %85, label %86, label %100

86:                                               ; preds = %80
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #8
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load double, ptr %88, align 8, !tbaa !32
  %90 = fcmp ogt double %89, 1.200000e+00
  br i1 %90, label %91, label %100

91:                                               ; preds = %86
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #8
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 32
  store double 0.000000e+00, ptr %94, align 8, !tbaa !27
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef 0) #8
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 40
  store double 0.000000e+00, ptr %97, align 8, !tbaa !30
  br label %100

98:                                               ; preds = %103, %101, %100, %78, %75, %73, %71
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %108

100:                                              ; preds = %91, %86, %80
  invoke void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef 0)
          to label %101 unwind label %98

101:                                              ; preds = %100
  %102 = add nuw nsw i32 %.0, 1
  invoke void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef %102)
          to label %103 unwind label %98

103:                                              ; preds = %101
  %104 = load double, ptr %30, align 8, !tbaa !13
  %105 = fdiv double 0x3F91111111111111, %104
  %106 = call double @llvm.floor.f64(double %105)
  %107 = fptosi double %106 to i32
  invoke void @_ZN10Simulation4stepEi(ptr noundef nonnull align 8 dereferenceable(104) %3, i32 noundef %107)
          to label %.preheader unwind label %98, !llvm.loop !33

108:                                              ; preds = %98, %57, %38, %37
  %.pn68 = phi { ptr, i32 } [ %58, %57 ], [ %99, %98 ], [ %39, %38 ], [ %.pn, %37 ]
  call void @_ZN10SimulationD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %3) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn68
}

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

declare void @_ZN10SimulationC1Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #2

declare void @_ZN10Simulation15addTrailofWallsESt6vectorI6VectorSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6VectorC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI6VectorSaIS0_EEC2ESt16initializer_listIS0_ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

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

declare void @_ZN10Simulation20addSphericalBoundaryEddd(ptr noundef nonnull align 8 dereferenceable(104), double noundef, double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN10Simulation16writeWallsToFileEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #2

declare void @_ZN10Simulation9initChainEidddd(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN5Chain24quickArrangementEntwinedE6Vectordid(ptr noundef nonnull align 8 dereferenceable(64), double, double, double noundef, i32 noundef, double noundef) local_unnamed_addr #2

declare void @_ZN10Simulation16writeChainToFileEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #2

declare void @_ZN10Simulation4stepEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #2

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

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

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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #4 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 #4 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)) #6

declare void @_ZN10Simulation15saveChainBackupEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ChainElementSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10SimulationD2Ev(ptr noundef nonnull align 8 dereferenceable(104)) unnamed_addr #7 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"_ZTS4Wall", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !12, i64 96}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTS8WallType", !7, i64 0}
!13 = !{!14, !11, i64 96}
!14 = !{!"_ZTS10Simulation", !15, i64 0, !20, i64 64, !11, i64 88, !11, i64 96}
!15 = !{!"_ZTS5Chain", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !16, i64 40}
!16 = !{!"_ZTSSt6vectorIP12ChainElementSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP12ChainElementSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP12ChainElementSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP12ChainElementSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIP4WallSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP4WallSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP4WallSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP4WallSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!14, !11, i64 88}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !11, i64 32}
!28 = !{!"_ZTS12ChainElement", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !29, i64 64, !6, i64 72, !6, i64 80}
!29 = !{!"bool", !7, i64 0}
!30 = !{!28, !11, i64 40}
!31 = !{!28, !11, i64 8}
!32 = !{!28, !11, i64 0}
!33 = distinct !{!33, !26}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass