; LLVM IR from jianboqi/CSF :: src/CSF.ll (ZN3CSF8do_clothEv)

; 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.Cloth = type { i32, i32, double, %"class.std::vector.4", double, double, %class.Vec3, double, double, %"class.std::vector.9", i32, i32 }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl" }
%"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Vec3 = type { [3 x double] }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.csf::Point" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { double, double, double }
%class.CSF = type <{ %"class.csf::PointCloud", %struct.Params, i32, [4 x i8] }>
%"class.csf::PointCloud" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<csf::Point, std::allocator<csf::Point>>::_Vector_impl" }
%"struct.std::_Vector_base<csf::Point, std::allocator<csf::Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<csf::Point, std::allocator<csf::Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<csf::Point, std::allocator<csf::Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Params = type { i8, double, double, double, i32, i32 }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3CSF8do_clothEv(ptr dead_on_unwind noalias writable sret(%class.Cloth) align 8 %0, ptr noundef nonnull align 8 dereferenceable(68) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.csf::Point", align 8
  %6 = alloca %"struct.csf::Point", align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.Vec3, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca %class.Vec3, align 8
  %18 = alloca %class.Vec3, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %24 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef %25)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str.1)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @_ZN3csf5PointC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZN3csf5PointC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %29 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 0
  call void @_ZN3csf10PointCloud18computeBoundingBoxERNS_5PointES2_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %31 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef %32)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @.str.2)
  %35 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %36 = getelementptr inbounds %struct.anon, ptr %35, i32 0, i32 0
  %37 = load double, ptr %36, align 8, !tbaa !20
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %34, double noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.3)
  %40 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %41 = getelementptr inbounds %struct.anon, ptr %40, i32 0, i32 1
  %42 = load double, ptr %41, align 8, !tbaa !20
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %39, double noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @.str.3)
  %45 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %46 = getelementptr inbounds %struct.anon, ptr %45, i32 0, i32 2
  %47 = load double, ptr %46, align 8, !tbaa !20
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %44, double noundef %47)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %51 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %52)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @.str.4)
  %55 = getelementptr inbounds %"struct.csf::Point", ptr %6, i32 0, i32 0
  %56 = getelementptr inbounds %struct.anon, ptr %55, i32 0, i32 0
  %57 = load double, ptr %56, align 8, !tbaa !20
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %54, double noundef %57)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @.str.3)
  %60 = getelementptr inbounds %"struct.csf::Point", ptr %6, i32 0, i32 0
  %61 = getelementptr inbounds %struct.anon, ptr %60, i32 0, i32 1
  %62 = load double, ptr %61, align 8, !tbaa !20
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %59, double noundef %62)
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @.str.3)
  %65 = getelementptr inbounds %"struct.csf::Point", ptr %6, i32 0, i32 0
  %66 = getelementptr inbounds %struct.anon, ptr %65, i32 0, i32 2
  %67 = load double, ptr %66, align 8, !tbaa !20
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %64, double noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store double 5.000000e-02, ptr %7, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 2, ptr %8, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  %70 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %71 = getelementptr inbounds %struct.anon, ptr %70, i32 0, i32 0
  %72 = load double, ptr %71, align 8, !tbaa !20
  %73 = load i32, ptr %8, align 4, !tbaa !22
  %74 = sitofp i32 %73 to double
  %75 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %76 = getelementptr inbounds %struct.Params, ptr %75, i32 0, i32 3
  %77 = load double, ptr %76, align 8, !tbaa !23
  %78 = fneg double %74
  %79 = call double @llvm.fmuladd.f64(double %78, double %77, double %72)
  %80 = getelementptr inbounds %"struct.csf::Point", ptr %6, i32 0, i32 0
  %81 = getelementptr inbounds %struct.anon, ptr %80, i32 0, i32 1
  %82 = load double, ptr %81, align 8, !tbaa !20
  %83 = load double, ptr %7, align 8, !tbaa !21
  %84 = fadd double %82, %83
  %85 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %86 = getelementptr inbounds %struct.anon, ptr %85, i32 0, i32 2
  %87 = load double, ptr %86, align 8, !tbaa !20
  %88 = load i32, ptr %8, align 4, !tbaa !22
  %89 = sitofp i32 %88 to double
  %90 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %91 = getelementptr inbounds %struct.Params, ptr %90, i32 0, i32 3
  %92 = load double, ptr %91, align 8, !tbaa !23
  %93 = fneg double %89
  %94 = call double @llvm.fmuladd.f64(double %93, double %92, double %87)
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %79, double noundef %84, double noundef %94)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %95 = getelementptr inbounds %"struct.csf::Point", ptr %6, i32 0, i32 0
  %96 = getelementptr inbounds %struct.anon, ptr %95, i32 0, i32 0
  %97 = load double, ptr %96, align 8, !tbaa !20
  %98 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %99 = getelementptr inbounds %struct.anon, ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !20
  %101 = fsub double %97, %100
  %102 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %103 = getelementptr inbounds %struct.Params, ptr %102, i32 0, i32 3
  %104 = load double, ptr %103, align 8, !tbaa !23
  %105 = fdiv double %101, %104
  %106 = call double @llvm.floor.f64(double %105)
  %107 = fptosi double %106 to i32
  %108 = load i32, ptr %8, align 4, !tbaa !22
  %109 = mul nsw i32 2, %108
  %110 = add nsw i32 %107, %109
  store i32 %110, ptr %10, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %111 = getelementptr inbounds %"struct.csf::Point", ptr %6, i32 0, i32 0
  %112 = getelementptr inbounds %struct.anon, ptr %111, i32 0, i32 2
  %113 = load double, ptr %112, align 8, !tbaa !20
  %114 = getelementptr inbounds %"struct.csf::Point", ptr %5, i32 0, i32 0
  %115 = getelementptr inbounds %struct.anon, ptr %114, i32 0, i32 2
  %116 = load double, ptr %115, align 8, !tbaa !20
  %117 = fsub double %113, %116
  %118 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %119 = getelementptr inbounds %struct.Params, ptr %118, i32 0, i32 3
  %120 = load double, ptr %119, align 8, !tbaa !23
  %121 = fdiv double %117, %120
  %122 = call double @llvm.floor.f64(double %121)
  %123 = fptosi double %122 to i32
  %124 = load i32, ptr %8, align 4, !tbaa !22
  %125 = mul nsw i32 2, %124
  %126 = add nsw i32 %123, %125
  store i32 %126, ptr %11, align 4, !tbaa !22
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %128 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !9
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @.str.5)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %134 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %135 = load i32, ptr %134, align 8, !tbaa !9
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %133, i32 noundef %135)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.6)
  %138 = load i32, ptr %10, align 4, !tbaa !22
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %137, i32 noundef %138)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef @.str.3)
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @.str.7)
  %142 = load i32, ptr %11, align 4, !tbaa !22
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %141, i32 noundef %142)
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i1 false, ptr %12, align 1
  %145 = load i32, ptr %10, align 4, !tbaa !22
  %146 = load i32, ptr %11, align 4, !tbaa !22
  %147 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %148 = getelementptr inbounds %struct.Params, ptr %147, i32 0, i32 3
  %149 = load double, ptr %148, align 8, !tbaa !23
  %150 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %151 = getelementptr inbounds %struct.Params, ptr %150, i32 0, i32 3
  %152 = load double, ptr %151, align 8, !tbaa !23
  %153 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %154 = getelementptr inbounds %struct.Params, ptr %153, i32 0, i32 4
  %155 = load i32, ptr %154, align 8, !tbaa !24
  %156 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %157 = getelementptr inbounds %struct.Params, ptr %156, i32 0, i32 1
  %158 = load double, ptr %157, align 8, !tbaa !25
  call void @_ZN5ClothC1ERK4Vec3iiddddid(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %145, i32 noundef %146, double noundef %149, double noundef %152, double noundef 3.000000e-01, double noundef 9.999000e+03, i32 noundef %155, double noundef %158)
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %160 unwind label %202

160:                                              ; preds = %2
  %161 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %162 = load i32, ptr %161, align 8, !tbaa !9
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %159, i32 noundef %162)
          to label %164 unwind label %202

164:                                              ; preds = %160
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef @.str.8)
          to label %166 unwind label %202

166:                                              ; preds = %164
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %168 unwind label %202

168:                                              ; preds = %166
  %169 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 0
  %170 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Cloth13getHeightvalsEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %171 unwind label %202

171:                                              ; preds = %168
  invoke void @_ZN13Rasterization13RasterTerrianER5ClothRN3csf10PointCloudERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 8 dereferenceable(24) %170)
          to label %172 unwind label %202

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %173 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %174 = getelementptr inbounds %struct.Params, ptr %173, i32 0, i32 1
  %175 = load double, ptr %174, align 8, !tbaa !25
  %176 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %177 = getelementptr inbounds %struct.Params, ptr %176, i32 0, i32 1
  %178 = load double, ptr %177, align 8, !tbaa !25
  %179 = fmul double %175, %178
  store double %179, ptr %15, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store double 2.000000e-01, ptr %16, align 8, !tbaa !21
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %181 unwind label %206

181:                                              ; preds = %172
  %182 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %183 = load i32, ptr %182, align 8, !tbaa !9
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %180, i32 noundef %183)
          to label %185 unwind label %206

185:                                              ; preds = %181
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @.str.9)
          to label %187 unwind label %206

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

189:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  %190 = load double, ptr %16, align 8, !tbaa !21
  %191 = fneg double %190
  invoke void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef 0.000000e+00, double noundef %191, double noundef 0.000000e+00)
          to label %192 unwind label %210

192:                                              ; preds = %189
  invoke void @_ZN4Vec3mlERKd(ptr dead_on_unwind writable sret(%class.Vec3) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %193 unwind label %210

193:                                              ; preds = %192
  invoke void @_ZN5Cloth8addForceE4Vec3(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef byval(%class.Vec3) align 8 %17)
          to label %194 unwind label %210

194:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !22
  br label %195

195:                                              ; preds = %232, %194
  %196 = load i32, ptr %19, align 4, !tbaa !22
  %197 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %198 = getelementptr inbounds %struct.Params, ptr %197, i32 0, i32 5
  %199 = load i32, ptr %198, align 4, !tbaa !26
  %200 = icmp slt i32 %196, %199
  br i1 %200, label %214, label %201

201:                                              ; preds = %195
  store i32 2, ptr %20, align 4
  br label %235

202:                                              ; preds = %171, %168, %166, %164, %160, %2
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %13, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %14, align 4
  br label %258

206:                                              ; preds = %251, %249, %247, %243, %241, %187, %185, %181, %172
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %13, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %14, align 4
  br label %255

210:                                              ; preds = %193, %192, %189
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %13, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  br label %255

214:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %215 = invoke noundef double @_ZN5Cloth8timeStepEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %216 unwind label %224

216:                                              ; preds = %214
  store double %215, ptr %21, align 8, !tbaa !21
  invoke void @_ZN5Cloth13terrCollisionEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %217 unwind label %224

217:                                              ; preds = %216
  %218 = load double, ptr %21, align 8, !tbaa !21
  %219 = fcmp une double %218, 0.000000e+00
  br i1 %219, label %220, label %228

220:                                              ; preds = %217
  %221 = load double, ptr %21, align 8, !tbaa !21
  %222 = fcmp olt double %221, 5.000000e-03
  br i1 %222, label %223, label %228

223:                                              ; preds = %220
  store i32 2, ptr %20, align 4
  br label %229

224:                                              ; preds = %216, %214
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %13, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %255

228:                                              ; preds = %220, %217
  store i32 0, ptr %20, align 4
  br label %229

229:                                              ; preds = %228, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %230 = load i32, ptr %20, align 4
  switch i32 %230, label %235 [
    i32 0, label %231
  ]

231:                                              ; preds = %229
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %19, align 4, !tbaa !22
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %19, align 4, !tbaa !22
  br label %195, !llvm.loop !27

235:                                              ; preds = %229, %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %236

236:                                              ; preds = %235
  %237 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 1
  %238 = getelementptr inbounds %struct.Params, ptr %237, i32 0, i32 0
  %239 = load i8, ptr %238, align 8, !tbaa !29, !range !30, !noundef !31
  %240 = trunc i8 %239 to i1
  br i1 %240, label %241, label %253

241:                                              ; preds = %236
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %243 unwind label %206

243:                                              ; preds = %241
  %244 = getelementptr inbounds %class.CSF, ptr %22, i32 0, i32 2
  %245 = load i32, ptr %244, align 8, !tbaa !9
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %242, i32 noundef %245)
          to label %247 unwind label %206

247:                                              ; preds = %243
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef @.str.10)
          to label %249 unwind label %206

249:                                              ; preds = %247
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %248, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %251 unwind label %206

251:                                              ; preds = %249
  invoke void @_ZN5Cloth13movableFilterEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %252 unwind label %206

252:                                              ; preds = %251
  br label %253

253:                                              ; preds = %252, %236
  store i1 true, ptr %12, align 1
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %254 = load i1, ptr %12, align 1
  br i1 %254, label %257, label %256

255:                                              ; preds = %224, %210, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %258

256:                                              ; preds = %253
  call void @_ZN5ClothD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) #7
  br label %257

257:                                              ; preds = %256, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  ret void

258:                                              ; preds = %255, %202
  call void @_ZN5ClothD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %259

259:                                              ; preds = %258
  %260 = load ptr, ptr %13, align 8
  %261 = load i32, ptr %14, align 4
  %262 = insertvalue { ptr, i32 } poison, ptr %260, 0
  %263 = insertvalue { ptr, i32 } %262, i32 %261, 1
  resume { ptr, i32 } %263
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #3

declare void @_ZN3csf10PointCloud18computeBoundingBoxERNS_5PointES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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

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

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

declare void @_ZN5ClothC1ERK4Vec3iiddddid(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, i32 noundef, double noundef) unnamed_addr #4

declare void @_ZN13Rasterization13RasterTerrianER5ClothRN3csf10PointCloudERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Cloth13getHeightvalsEv(ptr noundef nonnull align 8 dereferenceable(128)) #6 align 2

declare void @_ZN5Cloth8addForceE4Vec3(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef byval(%class.Vec3) align 8) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Vec3mlERKd(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare noundef double @_ZN5Cloth8timeStepEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

declare void @_ZN5Cloth13terrCollisionEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

declare void @_ZN5Cloth13movableFilterEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5ClothD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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, !19, i64 64}
!10 = !{!"_ZTS3CSF", !11, i64 0, !16, i64 24, !19, i64 64}
!11 = !{!"_ZTSN3csf10PointCloudE", !12, i64 0}
!12 = !{!"_ZTSSt6vectorIN3csf5PointESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3csf5PointESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3csf5PointESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3csf5PointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTS6Params", !17, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !19, i64 32, !19, i64 36}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!18, !18, i64 0}
!22 = !{!19, !19, i64 0}
!23 = !{!10, !18, i64 48}
!24 = !{!10, !19, i64 56}
!25 = !{!10, !18, i64 32}
!26 = !{!10, !19, i64 60}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!10, !17, i64 24}
!30 = !{i8 0, i8 2}
!31 = !{}


; 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.Cloth = type { i32, i32, double, %"class.std::vector.4", double, double, %class.Vec3, double, double, %"class.std::vector.9", i32, i32 }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl" }
%"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Particle, std::allocator<Particle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Vec3 = type { [3 x double] }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.csf::Point" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { double, double, double }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3CSF8do_clothEv(ptr dead_on_unwind noalias writable sret(%class.Cloth) align 8 %0, ptr noundef nonnull align 8 dereferenceable(68) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.csf::Point", align 8
  %4 = alloca %"struct.csf::Point", align 8
  %5 = alloca %class.Vec3, align 8
  %6 = alloca double, align 8
  %7 = alloca %class.Vec3, align 8
  %8 = alloca %class.Vec3, align 8
  %9 = 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)
  %10 = getelementptr inbounds i8, ptr %1, i64 64
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef %11)
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.1)
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZN3csf5PointC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN3csf5PointC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @_ZN3csf10PointCloud18computeBoundingBoxERNS_5PointES2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
  %15 = 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)
  %16 = load i32, ptr %10, align 8, !tbaa !5
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef %16)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.2)
  %19 = load double, ptr %3, align 8, !tbaa !19
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %18, double noundef %19)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str.3)
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  %23 = load double, ptr %22, align 8, !tbaa !19
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef %23)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.3)
  %26 = getelementptr inbounds i8, ptr %3, i64 16
  %27 = load double, ptr %26, align 8, !tbaa !19
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %25, double noundef %27)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %30 = 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)
  %31 = load i32, ptr %10, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef %31)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.4)
  %34 = load double, ptr %4, align 8, !tbaa !19
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %33, double noundef %34)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str.3)
  %37 = getelementptr inbounds i8, ptr %4, i64 8
  %38 = load double, ptr %37, align 8, !tbaa !19
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %36, double noundef %38)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.3)
  %41 = getelementptr inbounds i8, ptr %4, i64 16
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %40, double noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %45 = load double, ptr %3, align 8, !tbaa !19
  %46 = getelementptr inbounds i8, ptr %1, i64 24
  %47 = getelementptr inbounds i8, ptr %1, i64 48
  %48 = load double, ptr %47, align 8, !tbaa !20
  %49 = call double @llvm.fmuladd.f64(double %48, double -2.000000e+00, double %45)
  %50 = load double, ptr %37, align 8, !tbaa !19
  %51 = fadd double %50, 5.000000e-02
  %52 = load double, ptr %26, align 8, !tbaa !19
  %53 = call double @llvm.fmuladd.f64(double %48, double -2.000000e+00, double %52)
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %49, double noundef %51, double noundef %53)
  %54 = load double, ptr %4, align 8, !tbaa !19
  %55 = load double, ptr %3, align 8, !tbaa !19
  %56 = fsub double %54, %55
  %57 = load double, ptr %47, align 8, !tbaa !20
  %58 = fdiv double %56, %57
  %59 = call double @llvm.floor.f64(double %58)
  %60 = fptosi double %59 to i32
  %61 = add nsw i32 %60, 4
  %62 = load double, ptr %41, align 8, !tbaa !19
  %63 = load double, ptr %26, align 8, !tbaa !19
  %64 = fsub double %62, %63
  %65 = fdiv double %64, %57
  %66 = call double @llvm.floor.f64(double %65)
  %67 = fptosi double %66 to i32
  %68 = add nsw i32 %67, 4
  %69 = 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)
  %70 = load i32, ptr %10, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %70)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.5)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %74 = 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)
  %75 = load i32, ptr %10, align 8, !tbaa !5
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %74, i32 noundef %75)
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @.str.6)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %77, i32 noundef %61)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @.str.3)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @.str.7)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 noundef %68)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %83 = load double, ptr %47, align 8, !tbaa !20
  %84 = getelementptr inbounds i8, ptr %1, i64 56
  %85 = load i32, ptr %84, align 8, !tbaa !21
  %86 = getelementptr inbounds i8, ptr %1, i64 32
  %87 = load double, ptr %86, align 8, !tbaa !22
  call void @_ZN5ClothC1ERK4Vec3iiddddid(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %61, i32 noundef %68, double noundef %83, double noundef %83, double noundef 3.000000e-01, double noundef 9.999000e+03, i32 noundef %85, double noundef %87)
  %88 = 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)
          to label %89 unwind label %119

89:                                               ; preds = %2
  %90 = load i32, ptr %10, align 8, !tbaa !5
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %88, i32 noundef %90)
          to label %92 unwind label %119

92:                                               ; preds = %89
  %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.8)
          to label %94 unwind label %119

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %96 unwind label %119

96:                                               ; preds = %94
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Cloth13getHeightvalsEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  invoke void @_ZN13Rasterization13RasterTerrianER5ClothRN3csf10PointCloudERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %97)
          to label %98 unwind label %119

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %99 = load double, ptr %86, align 8, !tbaa !22
  %100 = fmul double %99, %99
  store double %100, ptr %6, align 8, !tbaa !23
  %101 = 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)
          to label %102 unwind label %121

102:                                              ; preds = %98
  %103 = load i32, ptr %10, align 8, !tbaa !5
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %101, i32 noundef %103)
          to label %105 unwind label %121

105:                                              ; preds = %102
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.9)
          to label %107 unwind label %121

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %109 unwind label %121

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef 0.000000e+00, double noundef -2.000000e-01, double noundef 0.000000e+00)
  invoke void @_ZN4Vec3mlERKd(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %110 unwind label %123

110:                                              ; preds = %109
  invoke void @_ZN5Cloth8addForceE4Vec3(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull byval(%class.Vec3) align 8 %7)
          to label %111 unwind label %123

111:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  %112 = getelementptr inbounds i8, ptr %1, i64 60
  %113 = load i32, ptr %112, align 4, !tbaa !24
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %.lr.ph, label %._crit_edge

115:                                              ; preds = %127
  %116 = add nuw nsw i32 %.01926, 1
  %117 = load i32, ptr %112, align 4, !tbaa !24
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %.lr.ph, label %._crit_edge, !llvm.loop !25

119:                                              ; preds = %96, %94, %92, %89, %2
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %146

121:                                              ; preds = %143, %141, %139, %136, %134, %107, %105, %102, %98
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %145

123:                                              ; preds = %110, %109
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %145

.lr.ph:                                           ; preds = %111, %115
  %.01926 = phi i32 [ %116, %115 ], [ 0, %111 ]
  %125 = invoke noundef double @_ZN5Cloth8timeStepEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %126 unwind label %130

126:                                              ; preds = %.lr.ph
  invoke void @_ZN5Cloth13terrCollisionEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %127 unwind label %130

127:                                              ; preds = %126
  %128 = fcmp oeq double %125, 0.000000e+00
  %129 = fcmp uge double %125, 5.000000e-03
  %or.cond.not = or i1 %128, %129
  br i1 %or.cond.not, label %115, label %._crit_edge

130:                                              ; preds = %126, %.lr.ph
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %145

._crit_edge:                                      ; preds = %127, %115, %111
  %132 = load i8, ptr %46, align 8, !tbaa !27, !range !28, !noundef !29
  %133 = trunc nuw i8 %132 to i1
  br i1 %133, label %134, label %144

134:                                              ; preds = %._crit_edge
  %135 = 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)
          to label %136 unwind label %121

136:                                              ; preds = %134
  %137 = load i32, ptr %10, align 8, !tbaa !5
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %135, i32 noundef %137)
          to label %139 unwind label %121

139:                                              ; preds = %136
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull @.str.10)
          to label %141 unwind label %121

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %143 unwind label %121

143:                                              ; preds = %141
  invoke void @_ZN5Cloth13movableFilterEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
          to label %144 unwind label %121

144:                                              ; preds = %143, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret void

145:                                              ; preds = %130, %123, %121
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %131, %130 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %146

146:                                              ; preds = %145, %119
  %.pn.pn = phi { ptr, i32 } [ %.pn, %145 ], [ %120, %119 ]
  call void @_ZN5ClothD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.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 #3

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

; 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 #2 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)) #3

declare void @_ZN3csf10PointCloud18computeBoundingBoxERNS_5PointES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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

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

declare void @_ZN5ClothC1ERK4Vec3iiddddid(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, i32 noundef, double noundef) unnamed_addr #4

declare void @_ZN13Rasterization13RasterTerrianER5ClothRN3csf10PointCloudERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5Cloth13getHeightvalsEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #6 align 2

declare void @_ZN5Cloth8addForceE4Vec3(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef byval(%class.Vec3) align 8) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Vec3mlERKd(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare noundef double @_ZN5Cloth8timeStepEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

declare void @_ZN5Cloth13terrCollisionEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

declare void @_ZN5Cloth13movableFilterEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5ClothD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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, !18, i64 64}
!6 = !{!"_ZTS3CSF", !7, i64 0, !15, i64 24, !18, i64 64}
!7 = !{!"_ZTSN3csf10PointCloudE", !8, i64 0}
!8 = !{!"_ZTSSt6vectorIN3csf5PointESaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseIN3csf5PointESaIS1_EE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN3csf5PointESaIS1_EE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseIN3csf5PointESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTS6Params", !16, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !18, i64 32, !18, i64 36}
!16 = !{!"bool", !13, i64 0}
!17 = !{!"double", !13, i64 0}
!18 = !{!"int", !13, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!6, !17, i64 48}
!21 = !{!6, !18, i64 56}
!22 = !{!6, !17, i64 32}
!23 = !{!17, !17, i64 0}
!24 = !{!6, !18, i64 60}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !16, i64 24}
!28 = !{i8 0, i8 2}
!29 = !{}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass