; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow/psPrc (vtuWriter)

; 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.var3 = type { double, double, double }

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind noalias writable sret(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, double noundef, ptr noundef byval(%class.var3) align 8) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21insertHalfCornerointsRSt6vectorI4var3IdESaIS1_EERS_IiSaIiEES1_S1_S1_S1_ddddddd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Elem16isEntryOrExitResEv(ptr noundef nonnull align 8 dereferenceable(408)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17addSpherePoreMeshRKSt6vectorIPK4ElemSaIS2_EEmRS_I4var3IdESaIS8_EERS_IiSaIiEESE_RS_IfSaIfEESE_dj(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %7, i32 noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %class.var3, align 8
  %21 = alloca %class.var3, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.var3, align 8
  %25 = alloca %class.var3, align 8
  %26 = alloca %class.var3, align 8
  %27 = alloca i64, align 8
  %28 = alloca %class.var3, align 8
  %29 = alloca %class.var3, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca %class.var3, align 8
  %35 = alloca %class.var3, align 8
  %36 = alloca %class.var3, align 8
  %37 = alloca %class.var3, align 8
  %38 = alloca %class.var3, align 8
  %39 = alloca %class.var3, align 8
  %40 = alloca %class.var3, align 8
  %41 = alloca i32, align 4
  %42 = alloca %class.var3, align 8
  %43 = alloca %class.var3, align 8
  %44 = alloca %class.var3, align 8
  %45 = alloca %class.var3, align 8
  %46 = alloca %class.var3, align 8
  %47 = alloca %class.var3, align 8
  %48 = alloca %class.var3, align 8
  %49 = alloca %class.var3, align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca float, align 4
  %53 = alloca %class.var3, align 8
  %54 = alloca %class.var3, align 8
  %55 = alloca %class.var3, align 8
  %56 = alloca %class.var3, align 8
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca float, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store double %7, ptr %17, align 8, !tbaa !11
  store i32 %8, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i64, ptr %11, align 8, !tbaa !9
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %61) #5
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  store ptr %63, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4Elem4nodeEv(ptr noundef nonnull align 8 dereferenceable(408) %64)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %65, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4Elem4nodeEv(ptr noundef nonnull align 8 dereferenceable(408) %66)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %67, i64 24, i1 false), !tbaa.struct !15
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1)
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = fadd double %69, 0x3D719799812DEA11
  store double %70, ptr %68, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %71)
  %73 = call noundef double @_ZNK9ElemModel3RRREv(ptr noundef nonnull align 8 dereferenceable(152) %72)
  %74 = load double, ptr %17, align 8, !tbaa !11
  %75 = call double @sqrt(double noundef %74) #5
  %76 = fmul double %73, %75
  store double %76, ptr %22, align 8, !tbaa !11
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZNK4Elem16isEntryOrExitResEv(ptr noundef nonnull align 8 dereferenceable(408) %77)
  br i1 %78, label %79, label %80

79:                                               ; preds = %9
  store i32 1, ptr %23, align 4
  br label %173

80:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  call void @_ZNK4var3IdEmiERKS0_(ptr dead_on_unwind writable sret(%class.var3) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  %81 = call noundef double @_Z3magIdET_RK4var3IS0_E(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %82 = fadd double %81, 1.000000e-32
  call void @_ZNK4var3IdEdvEd(ptr dead_on_unwind writable sret(%class.var3) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %24, double noundef %82)
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  call void @_ZN4var3IdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %26, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %96, %80
  %84 = load i64, ptr %27, align 8, !tbaa !9
  %85 = icmp ult i64 %84, 3
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 2, ptr %23, align 4
  br label %99

87:                                               ; preds = %83
  %88 = load i64, ptr %27, align 8, !tbaa !9
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %88)
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = fcmp olt double %90, 6.000000e-01
  br i1 %91, label %92, label %95

92:                                               ; preds = %87
  %93 = load i64, ptr %27, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %93)
  store double 1.000000e+00, ptr %94, align 8, !tbaa !11
  store i32 2, ptr %23, align 4
  br label %99

95:                                               ; preds = %87
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %27, align 8, !tbaa !9
  %98 = add i64 %97, 1
  store i64 %98, ptr %27, align 8, !tbaa !9
  br label %83, !llvm.loop !16

99:                                               ; preds = %92, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %100

100:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #5
  call void @_ZNK4var3IdEeoERKS0_(ptr dead_on_unwind writable sret(%class.var3) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %26)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %28, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #5
  %101 = call noundef double @_Z3magIdET_RK4var3IS0_E(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %102 = fadd double %101, 1.000000e-32
  call void @_ZNK4var3IdEdvEd(ptr dead_on_unwind writable sret(%class.var3) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %26, double noundef %102)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %29, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %103 = load i32, ptr %18, align 4, !tbaa !13
  %104 = add i32 %103, 1
  %105 = udiv i32 %104, 2
  store i32 %105, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !13
  br label %106

106:                                              ; preds = %169, %100
  %107 = load i32, ptr %31, align 4, !tbaa !13
  %108 = load i32, ptr %30, align 4, !tbaa !13
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %172

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %112 = load i32, ptr %30, align 4, !tbaa !13
  %113 = sitofp i32 %112 to double
  %114 = fdiv double 0x400921FB54442D11, %113
  store double %114, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %115 = load i32, ptr %30, align 4, !tbaa !13
  %116 = sitofp i32 %115 to double
  %117 = fdiv double 0x3FF921FB54442D11, %116
  store double %117, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %26, i64 24, i1 false), !tbaa.struct !15
  %118 = load double, ptr %32, align 8, !tbaa !11
  %119 = fmul double 2.000000e+00, %118
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %25, i64 24, i1 false), !tbaa.struct !15
  call void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind writable sret(%class.var3) align 8 %34, ptr noundef byval(%class.var3) align 8 %35, double noundef %119, ptr noundef byval(%class.var3) align 8 %36)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %34, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #5
  call void @_ZNK4var3IdEeoERKS0_(ptr dead_on_unwind writable sret(%class.var3) align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %26)
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %26, i64 24, i1 false), !tbaa.struct !15
  %120 = load i32, ptr %30, align 4, !tbaa !13
  %121 = sitofp i32 %120 to double
  %122 = load double, ptr %33, align 8, !tbaa !11
  %123 = fmul double %121, %122
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %37, i64 24, i1 false), !tbaa.struct !15
  call void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind writable sret(%class.var3) align 8 %38, ptr noundef byval(%class.var3) align 8 %39, double noundef %123, ptr noundef byval(%class.var3) align 8 %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  store i32 0, ptr %41, align 4, !tbaa !13
  br label %124

124:                                              ; preds = %165, %111
  %125 = load i32, ptr %41, align 4, !tbaa !13
  %126 = load i32, ptr %30, align 4, !tbaa !13
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  br label %168

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %38, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %38, i64 24, i1 false), !tbaa.struct !15
  %130 = load double, ptr %33, align 8, !tbaa !11
  %131 = fmul double %130, 2.000000e+00
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %37, i64 24, i1 false), !tbaa.struct !15
  call void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind writable sret(%class.var3) align 8 %43, ptr noundef byval(%class.var3) align 8 %44, double noundef %131, ptr noundef byval(%class.var3) align 8 %45)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %43, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !15
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind writable sret(%class.var3) align 8 %48, ptr noundef nonnull align 8 dereferenceable(24) %42)
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind writable sret(%class.var3) align 8 %49, ptr noundef nonnull align 8 dereferenceable(24) %38)
  %134 = load double, ptr %22, align 8, !tbaa !11
  %135 = load double, ptr %32, align 8, !tbaa !11
  call void @_Z21insertHalfCornerointsRSt6vectorI4var3IdESaIS1_EERS_IiSaIiEES1_S1_S1_S1_ddddddd(ptr noundef nonnull align 8 dereferenceable(24) %132, ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef byval(%class.var3) align 8 %46, ptr noundef byval(%class.var3) align 8 %47, ptr noundef byval(%class.var3) align 8 %48, ptr noundef byval(%class.var3) align 8 %49, double noundef 1.000000e-18, double noundef %134, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %135, double noundef 0.000000e+00)
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #5
  store i32 0, ptr %50, align 4, !tbaa !13
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %136, ptr noundef nonnull align 4 dereferenceable(4) %50)
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #5
  %138 = load i64, ptr %11, align 8, !tbaa !9
  %139 = trunc i64 %138 to i32
  store i32 %139, ptr %51, align 4, !tbaa !13
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 4 dereferenceable(4) %51)
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #5
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #5
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %141)
  %143 = load ptr, ptr %142, align 8, !tbaa !18
  %144 = getelementptr inbounds ptr, ptr %143, i64 19
  %145 = load ptr, ptr %144, align 8
  %146 = call noundef zeroext i1 %145(ptr noundef nonnull align 8 dereferenceable(152) %142)
  %147 = uitofp i1 %146 to float
  store float %147, ptr %52, align 4, !tbaa !20
  call void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 4 dereferenceable(4) %52)
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #5
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %54, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !15
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind writable sret(%class.var3) align 8 %55, ptr noundef nonnull align 8 dereferenceable(24) %42)
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind writable sret(%class.var3) align 8 %56, ptr noundef nonnull align 8 dereferenceable(24) %38)
  %150 = load double, ptr %22, align 8, !tbaa !11
  %151 = load double, ptr %32, align 8, !tbaa !11
  %152 = fneg double %151
  call void @_Z21insertHalfCornerointsRSt6vectorI4var3IdESaIS1_EERS_IiSaIiEES1_S1_S1_S1_ddddddd(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef byval(%class.var3) align 8 %53, ptr noundef byval(%class.var3) align 8 %54, ptr noundef byval(%class.var3) align 8 %55, ptr noundef byval(%class.var3) align 8 %56, double noundef 1.000000e-18, double noundef %150, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %152, double noundef 0.000000e+00)
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #5
  store i32 0, ptr %57, align 4, !tbaa !13
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %153, ptr noundef nonnull align 4 dereferenceable(4) %57)
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #5
  %155 = load i64, ptr %11, align 8, !tbaa !9
  %156 = trunc i64 %155 to i32
  store i32 %156, ptr %58, align 4, !tbaa !13
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(4) %58)
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #5
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %158)
  %160 = load ptr, ptr %159, align 8, !tbaa !18
  %161 = getelementptr inbounds ptr, ptr %160, i64 19
  %162 = load ptr, ptr %161, align 8
  %163 = call noundef zeroext i1 %162(ptr noundef nonnull align 8 dereferenceable(152) %159)
  %164 = uitofp i1 %163 to float
  store float %164, ptr %59, align 4, !tbaa !20
  call void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 4 dereferenceable(4) %59)
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #5
  br label %165

165:                                              ; preds = %129
  %166 = load i32, ptr %41, align 4, !tbaa !13
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %41, align 4, !tbaa !13
  br label %124, !llvm.loop !22

168:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %31, align 4, !tbaa !13
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %31, align 4, !tbaa !13
  br label %106, !llvm.loop !23

172:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  store i32 0, ptr %23, align 4
  br label %173

173:                                              ; preds = %172, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %174 = load i32, ptr %23, align 4
  switch i32 %174, label %176 [
    i32 0, label %175
    i32 1, label %175
  ]

175:                                              ; preds = %173, %173
  ret void

176:                                              ; preds = %173
  unreachable
}

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #2 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "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 = { nounwind }

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

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


; 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.var3 = type { double, double, double }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind noalias writable sret(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, double noundef, ptr noundef byval(%class.var3) align 8) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21insertHalfCornerointsRSt6vectorI4var3IdESaIS1_EERS_IiSaIiEES1_S1_S1_S1_ddddddd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef byval(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, ptr noundef byval(%class.var3) align 8, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Elem16isEntryOrExitResEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17addSpherePoreMeshRKSt6vectorIPK4ElemSaIS2_EEmRS_I4var3IdESaIS8_EERS_IiSaIiEESE_RS_IfSaIfEESE_dj(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %7, i32 noundef %8) local_unnamed_addr #2 {
  %10 = alloca %class.var3, align 8
  %11 = alloca %class.var3, align 8
  %12 = alloca %class.var3, align 8
  %13 = alloca %class.var3, align 8
  %14 = alloca %class.var3, align 8
  %15 = alloca %class.var3, align 8
  %16 = alloca %class.var3, align 8
  %17 = alloca %class.var3, align 8
  %18 = alloca %class.var3, align 8
  %19 = alloca %class.var3, align 8
  %20 = alloca %class.var3, align 8
  %21 = alloca %class.var3, align 8
  %22 = alloca %class.var3, align 8
  %23 = alloca %class.var3, align 8
  %24 = alloca %class.var3, align 8
  %25 = alloca %class.var3, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca %class.var3, align 8
  %30 = alloca %class.var3, align 8
  %31 = alloca %class.var3, align 8
  %32 = alloca %class.var3, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1) #5
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  %38 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4Elem4nodeEv(ptr noundef nonnull align 8 dereferenceable(408) %37)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %38, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %39 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK4Elem4nodeEv(ptr noundef nonnull align 8 dereferenceable(408) %37)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %39, i64 24, i1 false), !tbaa.struct !9
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1)
  %41 = load double, ptr %40, align 8, !tbaa !10
  %42 = fadd double %41, 0x3D719799812DEA11
  store double %42, ptr %40, align 8, !tbaa !10
  %43 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %37)
  %44 = call noundef double @_ZNK9ElemModel3RRREv(ptr noundef nonnull align 8 dereferenceable(152) %43)
  %45 = call double @sqrt(double noundef %7) #5
  %46 = fmul double %44, %45
  %47 = call noundef zeroext i1 @_ZNK4Elem16isEntryOrExitResEv(ptr noundef nonnull align 8 dereferenceable(408) %37)
  br i1 %47, label %93, label %48

48:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @_ZNK4var3IdEmiERKS0_(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  %49 = call noundef double @_Z3magIdET_RK4var3IS0_E(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %50 = fadd double %49, 1.000000e-32
  call void @_ZNK4var3IdEdvEd(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %50)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #5
  call void @_ZN4var3IdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0)
  %52 = load double, ptr %51, align 8, !tbaa !10
  %53 = fcmp olt double %52, 6.000000e-01
  br i1 %53, label %54, label %56

54:                                               ; preds = %60, %56, %48
  %.04145.lcssa = phi i64 [ 0, %48 ], [ 1, %56 ], [ 2, %60 ]
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.04145.lcssa)
  store double 1.000000e+00, ptr %55, align 8, !tbaa !10
  br label %.loopexit

56:                                               ; preds = %48
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 1)
  %58 = load double, ptr %57, align 8, !tbaa !10
  %59 = fcmp olt double %58, 6.000000e-01
  br i1 %59, label %54, label %60

60:                                               ; preds = %56
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4var3IdEixEl(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 2)
  %62 = load double, ptr %61, align 8, !tbaa !10
  %63 = fcmp olt double %62, 6.000000e-01
  br i1 %63, label %54, label %.loopexit

.loopexit:                                        ; preds = %60, %54
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  call void @_ZNK4var3IdEeoERKS0_(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #5
  %64 = call noundef double @_Z3magIdET_RK4var3IS0_E(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %65 = fadd double %64, 1.000000e-32
  call void @_ZNK4var3IdEdvEd(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef %65)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %16, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  %66 = add i32 %8, 1
  %67 = lshr i32 %66, 1
  %.not = icmp ult i32 %66, 2
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.loopexit
  %68 = uitofp nneg i32 %67 to double
  %69 = fdiv double 0x400921FB54442D11, %68
  %70 = fdiv double 0x3FF921FB54442D11, %68
  %71 = fmul double %69, 2.000000e+00
  %72 = fmul double %70, %68
  %73 = fmul double %70, 2.000000e+00
  %74 = trunc i64 %1 to i32
  %75 = fneg double %69
  br label %76

._crit_edge:                                      ; preds = %77, %.loopexit
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %93

76:                                               ; preds = %.lr.ph, %77
  %.04247 = phi i32 [ 0, %.lr.ph ], [ %78, %77 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %17, ptr noundef nonnull byval(%class.var3) align 8 %14, double noundef %71, ptr noundef nonnull byval(%class.var3) align 8 %13)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %17, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #5
  call void @_ZNK4var3IdEeoERKS0_(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #5
  call void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %19, ptr noundef nonnull byval(%class.var3) align 8 %14, double noundef %72, ptr noundef nonnull byval(%class.var3) align 8 %18)
  br label %79

77:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #5
  %78 = add nuw nsw i32 %.04247, 1
  %exitcond49.not = icmp eq i32 %78, %67
  br i1 %exitcond49.not, label %._crit_edge, label %76, !llvm.loop !12

79:                                               ; preds = %76, %79
  %.046 = phi i32 [ 0, %76 ], [ %92, %79 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %19, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #5
  call void @_Z15rotateAroundVec4var3IdEdS0_(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %21, ptr noundef nonnull byval(%class.var3) align 8 %19, double noundef %73, ptr noundef nonnull byval(%class.var3) align 8 %18)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %21, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !9
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %19)
  call void @_Z21insertHalfCornerointsRSt6vectorI4var3IdESaIS1_EERS_IiSaIiEES1_S1_S1_S1_ddddddd(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull byval(%class.var3) align 8 %22, ptr noundef nonnull byval(%class.var3) align 8 %23, ptr noundef nonnull byval(%class.var3) align 8 %24, ptr noundef nonnull byval(%class.var3) align 8 %25, double noundef 1.000000e-18, double noundef %46, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %69, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #5
  store i32 0, ptr %26, align 4, !tbaa !14
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #5
  store i32 %74, ptr %27, align 4, !tbaa !14
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #5
  %80 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %37)
  %81 = load ptr, ptr %80, align 8, !tbaa !16
  %82 = getelementptr inbounds i8, ptr %81, i64 152
  %83 = load ptr, ptr %82, align 8
  %84 = call noundef zeroext i1 %83(ptr noundef nonnull align 8 dereferenceable(152) %80)
  %85 = uitofp i1 %84 to float
  store float %85, ptr %28, align 4, !tbaa !18
  call void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %11, i64 24, i1 false), !tbaa.struct !9
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %20)
  call void @_ZNK4var3IdEngEv(ptr dead_on_unwind nonnull writable sret(%class.var3) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %19)
  call void @_Z21insertHalfCornerointsRSt6vectorI4var3IdESaIS1_EERS_IiSaIiEES1_S1_S1_S1_ddddddd(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull byval(%class.var3) align 8 %29, ptr noundef nonnull byval(%class.var3) align 8 %30, ptr noundef nonnull byval(%class.var3) align 8 %31, ptr noundef nonnull byval(%class.var3) align 8 %32, double noundef 1.000000e-18, double noundef %46, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef %75, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #5
  store i32 0, ptr %33, align 4, !tbaa !14
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #5
  store i32 %74, ptr %34, align 4, !tbaa !14
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #5
  %86 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %37)
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = getelementptr inbounds i8, ptr %87, i64 152
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef zeroext i1 %89(ptr noundef nonnull align 8 dereferenceable(152) %86)
  %91 = uitofp i1 %90 to float
  store float %91, ptr %35, align 4, !tbaa !18
  call void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %35)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  %92 = add nuw nsw i32 %.046, 1
  %exitcond.not = icmp eq i32 %92, %67
  br i1 %exitcond.not, label %77, label %79, !llvm.loop !20

93:                                               ; preds = %9, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 = !{i64 0, i64 8, !10, i64 8, i64 8, !10, i64 16, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !13}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass