; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow/Element.ll (ZN4ElemC2ERK10CommonDatai4var3IdEddddibi)

; 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 }
%class.Elem = type { %class.Apex, [5 x %class.SlvrElm], i8, i32, ptr, double, double, i32, %"class.std::vector", ptr, double, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %"struct.std::pair", %"struct.std::pair", %"struct.std::pair", i32, i32, i32, i32, %class.var3 }
%class.Apex = type { ptr, i8, double, double, ptr, i32, double, double, double, double, i8, i8, i8, i8, %"struct.std::pair" }
%class.SlvrElm = type { i8, i8, i8, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Elem *, std::allocator<Elem *>>::_Vector_impl" }
%"struct.std::_Vector_base<Elem *, std::allocator<Elem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Elem *, std::allocator<Elem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Elem *, std::allocator<Elem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, double }

@_ZTV4Elem = external dso_local unnamed_addr constant { [16 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ElemC2ERK10CommonDatai4var3IdEddddibi(ptr noundef nonnull align 8 dereferenceable(408) %0, ptr noundef nonnull align 8 dereferenceable(1972) %1, i32 noundef %2, ptr noundef byval(%class.var3) align 8 %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, i32 noundef %8, i1 noundef zeroext %9, i32 noundef %10) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i1, align 1
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store double %4, ptr %15, align 8, !tbaa !11
  store double %5, ptr %16, align 8, !tbaa !11
  store double %6, ptr %17, align 8, !tbaa !11
  store double %7, ptr %18, align 8, !tbaa !11
  store i32 %8, ptr %19, align 4, !tbaa !9
  %32 = zext i1 %9 to i8
  store i8 %32, ptr %20, align 1, !tbaa !13
  store i32 %10, ptr %21, align 4, !tbaa !9
  %33 = load ptr, ptr %12, align 8
  call void @_ZN4ApexC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %33)
  store ptr getelementptr inbounds inrange(-16, 112) ({ [16 x ptr] }, ptr @_ZTV4Elem, i32 0, i32 0, i32 2), ptr %33, align 8, !tbaa !15
  %34 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds [5 x %class.SlvrElm], ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %class.SlvrElm, ptr %35, i64 5
  br label %37

37:                                               ; preds = %39, %11
  %38 = phi ptr [ %35, %11 ], [ %40, %39 ]
  invoke void @_ZN7SlvrElmC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %39 unwind label %110

39:                                               ; preds = %37
  %40 = getelementptr inbounds %class.SlvrElm, ptr %38, i64 1
  %41 = icmp eq ptr %40, %36
  br i1 %41, label %42, label %37

42:                                               ; preds = %39
  %43 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 2
  %44 = load i8, ptr %20, align 1, !tbaa !13, !range !17, !noundef !18
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %43, align 8, !tbaa !19
  %47 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 3
  %48 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %48, ptr %47, align 4, !tbaa !28
  %49 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 4
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %50, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 5
  %52 = load double, ptr %16, align 8, !tbaa !11
  store double %52, ptr %51, align 8, !tbaa !29
  %53 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 6
  %54 = load double, ptr %17, align 8, !tbaa !11
  store double %54, ptr %53, align 8, !tbaa !30
  %55 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 7
  %56 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %56, ptr %55, align 8, !tbaa !31
  %57 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 8
  call void @_ZNSt6vectorIP4ElemSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  %58 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 -1, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  store double 0.000000e+00, ptr %25, align 8, !tbaa !11
  invoke void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %59 unwind label %114

59:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  %60 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 22
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 -1, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  invoke void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %61 unwind label %118

61:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  %62 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 23
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 -1, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  invoke void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %63 unwind label %122

63:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  %64 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 24
  store i32 0, ptr %64, align 8, !tbaa !32
  %65 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 25
  %66 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %66, ptr %65, align 4, !tbaa !33
  %67 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 27
  %68 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %68, ptr %67, align 4, !tbaa !34
  %69 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 28
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %69, ptr align 8 %3, i64 24, i1 false), !tbaa.struct !35
  %70 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 10
  store double 1.000000e+00, ptr %70, align 8, !tbaa !36
  %71 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 11
  store i8 0, ptr %71, align 8, !tbaa !37
  %72 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 12
  store i8 0, ptr %72, align 1, !tbaa !38
  %73 = getelementptr inbounds %class.Apex, ptr %33, i32 0, i32 10
  store i8 0, ptr %73, align 8, !tbaa !39
  %74 = getelementptr inbounds %class.Apex, ptr %33, i32 0, i32 11
  store i8 0, ptr %74, align 1, !tbaa !40
  %75 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 13
  store i8 0, ptr %75, align 2, !tbaa !41
  %76 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 14
  store i8 0, ptr %76, align 1, !tbaa !42
  %77 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 16
  store i8 0, ptr %77, align 1, !tbaa !43
  %78 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 15
  store i8 0, ptr %78, align 4, !tbaa !44
  %79 = getelementptr inbounds %class.Apex, ptr %33, i32 0, i32 10
  store i8 0, ptr %79, align 8, !tbaa !39
  %80 = getelementptr inbounds %class.Apex, ptr %33, i32 0, i32 11
  store i8 0, ptr %80, align 1, !tbaa !40
  %81 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 17
  store i8 0, ptr %81, align 2, !tbaa !45
  %82 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 18
  store i8 0, ptr %82, align 1, !tbaa !46
  %83 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 19
  store i8 0, ptr %83, align 8, !tbaa !47
  %84 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 20
  store i8 0, ptr %84, align 1, !tbaa !48
  %85 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 26
  store i32 -2, ptr %85, align 8, !tbaa !49
  %86 = load double, ptr %18, align 8, !tbaa !11
  %87 = call double @sqrt(double noundef 3.000000e+00) #9
  %88 = fdiv double %87, 3.600000e+01
  %89 = fadd double %88, 1.000000e-05
  %90 = fcmp ole double %86, %89
  br i1 %90, label %91, label %137

91:                                               ; preds = %63
  %92 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 248) #10
          to label %93 unwind label %126

93:                                               ; preds = %91
  store i1 true, ptr %31, align 1
  %94 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !50
  %96 = load double, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %97 = call double @sqrt(double noundef 3.000000e+00) #9
  %98 = fdiv double %97, 3.600000e+01
  %99 = fsub double %98, 5.000000e-05
  store double %99, ptr %30, align 8, !tbaa !11
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %101 unwind label %130

101:                                              ; preds = %93
  %102 = load double, ptr %100, align 8, !tbaa !11
  %103 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 7
  %104 = load i32, ptr %103, align 8, !tbaa !31
  %105 = load i32, ptr %21, align 4, !tbaa !9
  invoke void @_ZN8TriangleC1ER4ElemRK10CommonDataddii(ptr noundef nonnull align 8 dereferenceable(248) %92, ptr noundef nonnull align 8 dereferenceable(408) %33, ptr noundef nonnull align 8 dereferenceable(1972) %95, double noundef %96, double noundef %102, i32 noundef %104, i32 noundef %105)
          to label %106 unwind label %130

106:                                              ; preds = %101
  store i1 false, ptr %31, align 1
  %107 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 9
  store ptr %92, ptr %107, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK10CommonData13countTriangleEv(ptr noundef nonnull align 8 dereferenceable(1972) %108)
          to label %109 unwind label %126

109:                                              ; preds = %106
  br label %175

110:                                              ; preds = %37
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %22, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %23, align 4
  br label %180

114:                                              ; preds = %42
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %22, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %179

118:                                              ; preds = %59
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %22, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %179

122:                                              ; preds = %61
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %22, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %179

126:                                              ; preds = %175, %166, %157, %149, %140, %106, %91
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %22, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %23, align 4
  br label %179

130:                                              ; preds = %101, %93
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %22, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  %134 = load i1, ptr %31, align 1
  br i1 %134, label %135, label %136

135:                                              ; preds = %130
  call void @_ZdlPvm(ptr noundef %92, i64 noundef 248) #11
  br label %136

136:                                              ; preds = %135, %130
  br label %179

137:                                              ; preds = %63
  %138 = load double, ptr %18, align 8, !tbaa !11
  %139 = fcmp olt double %138, 7.000000e-02
  br i1 %139, label %140, label %157

140:                                              ; preds = %137
  %141 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 248) #10
          to label %142 unwind label %126

142:                                              ; preds = %140
  %143 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !50
  %145 = load double, ptr %15, align 8, !tbaa !11
  %146 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 7
  %147 = load i32, ptr %146, align 8, !tbaa !31
  %148 = load i32, ptr %21, align 4, !tbaa !9
  invoke void @_ZN6SquareC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(248) %141, ptr noundef nonnull align 8 dereferenceable(408) %33, ptr noundef nonnull align 8 dereferenceable(1972) %144, double noundef %145, i32 noundef %147, i32 noundef %148)
          to label %149 unwind label %153

149:                                              ; preds = %142
  %150 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 9
  store ptr %141, ptr %150, align 8, !tbaa !51
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK10CommonData11countSquareEv(ptr noundef nonnull align 8 dereferenceable(1972) %151)
          to label %152 unwind label %126

152:                                              ; preds = %149
  br label %174

153:                                              ; preds = %142
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %22, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %23, align 4
  call void @_ZdlPvm(ptr noundef %141, i64 noundef 248) #11
  br label %179

157:                                              ; preds = %137
  %158 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 184) #10
          to label %159 unwind label %126

159:                                              ; preds = %157
  %160 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !50
  %162 = load double, ptr %15, align 8, !tbaa !11
  %163 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 7
  %164 = load i32, ptr %163, align 8, !tbaa !31
  %165 = load i32, ptr %21, align 4, !tbaa !9
  invoke void @_ZN6CircleC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(184) %158, ptr noundef nonnull align 8 dereferenceable(408) %33, ptr noundef nonnull align 8 dereferenceable(1972) %161, double noundef %162, i32 noundef %164, i32 noundef %165)
          to label %166 unwind label %170

166:                                              ; preds = %159
  %167 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 9
  store ptr %158, ptr %167, align 8, !tbaa !51
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK10CommonData11countCircleEv(ptr noundef nonnull align 8 dereferenceable(1972) %168)
          to label %169 unwind label %126

169:                                              ; preds = %166
  br label %174

170:                                              ; preds = %159
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %22, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %23, align 4
  call void @_ZdlPvm(ptr noundef %158, i64 noundef 184) #11
  br label %179

174:                                              ; preds = %169, %152
  br label %175

175:                                              ; preds = %174, %109
  %176 = getelementptr inbounds %class.Elem, ptr %33, i32 0, i32 9
  %177 = load ptr, ptr %176, align 8, !tbaa !51
  invoke void @_ZN4Apex14setConnectionsEP9ElemModeli(ptr noundef nonnull align 8 dereferenceable(104) %33, ptr noundef %177, i32 noundef -1)
          to label %178 unwind label %126

178:                                              ; preds = %175
  ret void

179:                                              ; preds = %170, %153, %136, %126, %122, %118, %114
  call void @_ZNSt6vectorIP4ElemSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #9
  br label %180

180:                                              ; preds = %179, %110
  call void @_ZN4ApexD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %33) #9
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %22, align 8
  %183 = load i32, ptr %23, align 4
  %184 = insertvalue { ptr, i32 } poison, ptr %182, 0
  %185 = insertvalue { ptr, i32 } %184, i32 %183, 1
  resume { ptr, i32 } %185
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4ElemSaIS1_EEC2Ev(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.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) 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) #2

; 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: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

declare void @_ZN8TriangleC1ER4ElemRK10CommonDataddii(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(408), ptr noundef nonnull align 8 dereferenceable(1972), double noundef, double noundef, i32 noundef, i32 noundef) unnamed_addr #7

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #8

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

declare void @_ZN6SquareC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(408), ptr noundef nonnull align 8 dereferenceable(1972), double noundef, i32 noundef, i32 noundef) unnamed_addr #7

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

declare void @_ZN6CircleC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(408), ptr noundef nonnull align 8 dereferenceable(1972), double noundef, i32 noundef, i32 noundef) unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Apex14setConnectionsEP9ElemModeli(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, i32 noundef) #1 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !14, i64 224}
!20 = !{!"_ZTS4Elem", !21, i64 0, !7, i64 104, !14, i64 224, !10, i64 228, !6, i64 232, !12, i64 240, !12, i64 248, !10, i64 256, !23, i64 264, !6, i64 288, !12, i64 296, !14, i64 304, !14, i64 305, !14, i64 306, !14, i64 307, !14, i64 308, !14, i64 309, !14, i64 310, !14, i64 311, !14, i64 312, !14, i64 313, !22, i64 320, !22, i64 336, !22, i64 352, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !27, i64 384}
!21 = !{!"_ZTS4Apex", !14, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !10, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !14, i64 80, !14, i64 81, !14, i64 82, !14, i64 83, !22, i64 88}
!22 = !{!"_ZTSSt4pairIidE", !10, i64 0, !12, i64 8}
!23 = !{!"_ZTSSt6vectorIP4ElemSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP4ElemSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP4ElemSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP4ElemSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTS4var3IdE", !12, i64 0, !12, i64 8, !12, i64 16}
!28 = !{!20, !10, i64 228}
!29 = !{!20, !12, i64 240}
!30 = !{!20, !12, i64 248}
!31 = !{!20, !10, i64 256}
!32 = !{!20, !10, i64 368}
!33 = !{!20, !10, i64 372}
!34 = !{!20, !10, i64 380}
!35 = !{i64 0, i64 8, !11, i64 8, i64 8, !11, i64 16, i64 8, !11}
!36 = !{!20, !12, i64 296}
!37 = !{!20, !14, i64 304}
!38 = !{!20, !14, i64 305}
!39 = !{!21, !14, i64 80}
!40 = !{!21, !14, i64 81}
!41 = !{!20, !14, i64 306}
!42 = !{!20, !14, i64 307}
!43 = !{!20, !14, i64 309}
!44 = !{!20, !14, i64 308}
!45 = !{!20, !14, i64 310}
!46 = !{!20, !14, i64 311}
!47 = !{!20, !14, i64 312}
!48 = !{!20, !14, i64 313}
!49 = !{!20, !10, i64 376}
!50 = !{!20, !6, i64 232}
!51 = !{!20, !6, i64 288}


; 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 }

@_ZTV4Elem = external dso_local unnamed_addr constant { [16 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ElemC2ERK10CommonDatai4var3IdEddddibi(ptr noundef nonnull align 8 dereferenceable(408) %0, ptr noundef nonnull align 8 dereferenceable(1972) %1, i32 noundef %2, ptr nocapture noundef readonly byval(%class.var3) align 8 %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, i32 noundef %8, i1 noundef zeroext %9, i32 noundef %10) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  store double %7, ptr %12, align 8, !tbaa !5
  tail call void @_ZN4ApexC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %0)
  store ptr getelementptr inbounds inrange(-16, 112) (i8, ptr @_ZTV4Elem, i64 16), ptr %0, align 8, !tbaa !9
  %.ptr = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN7SlvrElmC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN7SlvrElmC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZN7SlvrElmC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZN7SlvrElmC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZN7SlvrElmC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4)
  %20 = zext i1 %9 to i8
  %21 = getelementptr inbounds i8, ptr %0, i64 224
  store i8 %20, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %0, i64 228
  store i32 %10, ptr %22, align 4, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %0, i64 232
  store ptr %1, ptr %23, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %0, i64 240
  store double %5, ptr %24, align 8, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %0, i64 248
  store double %6, ptr %25, align 8, !tbaa !26
  %26 = getelementptr inbounds i8, ptr %0, i64 256
  store i32 %8, ptr %26, align 8, !tbaa !27
  %27 = getelementptr inbounds i8, ptr %0, i64 264
  tail call void @_ZNSt6vectorIP4ElemSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  %28 = getelementptr inbounds i8, ptr %0, i64 320
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  store i32 -1, ptr %13, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  call void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  %29 = getelementptr inbounds i8, ptr %0, i64 336
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  store i32 -1, ptr %15, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !5
  call void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  %30 = getelementptr inbounds i8, ptr %0, i64 352
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  store i32 -1, ptr %17, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  store double 0.000000e+00, ptr %18, align 8, !tbaa !5
  call void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  %31 = getelementptr inbounds i8, ptr %0, i64 368
  store i32 0, ptr %31, align 8, !tbaa !29
  %32 = getelementptr inbounds i8, ptr %0, i64 372
  store i32 %8, ptr %32, align 4, !tbaa !30
  %33 = getelementptr inbounds i8, ptr %0, i64 380
  store i32 %2, ptr %33, align 4, !tbaa !31
  %34 = getelementptr inbounds i8, ptr %0, i64 384
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !32
  %35 = getelementptr inbounds i8, ptr %0, i64 296
  store double 1.000000e+00, ptr %35, align 8, !tbaa !33
  %36 = getelementptr inbounds i8, ptr %0, i64 304
  %37 = getelementptr inbounds i8, ptr %0, i64 80
  %38 = getelementptr inbounds i8, ptr %0, i64 376
  store i16 0, ptr %37, align 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(10) %36, i8 0, i64 10, i1 false)
  store i32 -2, ptr %38, align 8, !tbaa !34
  %39 = fcmp ugt double %7, 0x3FA8A383E818D25C
  br i1 %39, label %53, label %40

40:                                               ; preds = %11
  %41 = invoke noalias noundef nonnull dereferenceable(248) ptr @_Znwm(i64 noundef 248) #10
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = load ptr, ptr %23, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  store double 0x3FA89BA6A4057D14, ptr %19, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = load i32, ptr %26, align 8, !tbaa !27
  invoke void @_ZN8TriangleC1ER4ElemRK10CommonDataddii(ptr noundef nonnull align 8 dereferenceable(248) %41, ptr noundef nonnull align 8 dereferenceable(408) %0, ptr noundef nonnull align 8 dereferenceable(1972) %43, double noundef %4, double noundef %45, i32 noundef %46, i32 noundef %10)
          to label %47 unwind label %51

47:                                               ; preds = %42
  %48 = getelementptr inbounds i8, ptr %0, i64 288
  store ptr %41, ptr %48, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @_ZNK10CommonData13countTriangleEv(ptr noundef nonnull align 8 dereferenceable(1972) %1)
  br label %73

49:                                               ; preds = %64, %55, %40
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %76

51:                                               ; preds = %42
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 248) #11
  br label %76

53:                                               ; preds = %11
  %54 = fcmp olt double %7, 7.000000e-02
  br i1 %54, label %55, label %64

55:                                               ; preds = %53
  %56 = invoke noalias noundef nonnull dereferenceable(248) ptr @_Znwm(i64 noundef 248) #10
          to label %57 unwind label %49

57:                                               ; preds = %55
  %58 = load ptr, ptr %23, align 8, !tbaa !35
  %59 = load i32, ptr %26, align 8, !tbaa !27
  invoke void @_ZN6SquareC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(248) %56, ptr noundef nonnull align 8 dereferenceable(408) %0, ptr noundef nonnull align 8 dereferenceable(1972) %58, double noundef %4, i32 noundef %59, i32 noundef %10)
          to label %60 unwind label %62

60:                                               ; preds = %57
  %61 = getelementptr inbounds i8, ptr %0, i64 288
  store ptr %56, ptr %61, align 8, !tbaa !36
  call void @_ZNK10CommonData11countSquareEv(ptr noundef nonnull align 8 dereferenceable(1972) %1)
  br label %73

62:                                               ; preds = %57
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %56, i64 noundef 248) #11
  br label %76

64:                                               ; preds = %53
  %65 = invoke noalias noundef nonnull dereferenceable(184) ptr @_Znwm(i64 noundef 184) #10
          to label %66 unwind label %49

66:                                               ; preds = %64
  %67 = load ptr, ptr %23, align 8, !tbaa !35
  %68 = load i32, ptr %26, align 8, !tbaa !27
  invoke void @_ZN6CircleC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(184) %65, ptr noundef nonnull align 8 dereferenceable(408) %0, ptr noundef nonnull align 8 dereferenceable(1972) %67, double noundef %4, i32 noundef %68, i32 noundef %10)
          to label %69 unwind label %71

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %0, i64 288
  store ptr %65, ptr %70, align 8, !tbaa !36
  call void @_ZNK10CommonData11countCircleEv(ptr noundef nonnull align 8 dereferenceable(1972) %1)
  br label %73

71:                                               ; preds = %66
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %65, i64 noundef 184) #11
  br label %76

73:                                               ; preds = %60, %69, %47
  %74 = getelementptr inbounds i8, ptr %0, i64 288
  %75 = load ptr, ptr %74, align 8, !tbaa !36
  call void @_ZN4Apex14setConnectionsEP9ElemModeli(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %75, i32 noundef -1)
  ret void

76:                                               ; preds = %51, %71, %62, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ], [ %63, %62 ], [ %72, %71 ]
  call void @_ZNSt6vectorIP4ElemSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #9
  call void @_ZN4ApexD2Ev(ptr noundef nonnull align 8 dereferenceable(104) %0) #9
  resume { ptr, i32 } %.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP4ElemSaIS1_EEC2Ev(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.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIidEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) 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) #2

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZN8TriangleC1ER4ElemRK10CommonDataddii(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(408), ptr noundef nonnull align 8 dereferenceable(1972), double noundef, double noundef, i32 noundef, i32 noundef) unnamed_addr #6

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

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

declare void @_ZN6SquareC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(408), ptr noundef nonnull align 8 dereferenceable(1972), double noundef, i32 noundef, i32 noundef) unnamed_addr #6

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

declare void @_ZN6CircleC1ER4ElemRK10CommonDatadii(ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(408), ptr noundef nonnull align 8 dereferenceable(1972), double noundef, i32 noundef, i32 noundef) unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Apex14setConnectionsEP9ElemModeli(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 = { nobuiltin 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !14, i64 224}
!12 = !{!"_ZTS4Elem", !13, i64 0, !7, i64 104, !14, i64 224, !16, i64 228, !15, i64 232, !6, i64 240, !6, i64 248, !16, i64 256, !18, i64 264, !15, i64 288, !6, i64 296, !14, i64 304, !14, i64 305, !14, i64 306, !14, i64 307, !14, i64 308, !14, i64 309, !14, i64 310, !14, i64 311, !14, i64 312, !14, i64 313, !17, i64 320, !17, i64 336, !17, i64 352, !16, i64 368, !16, i64 372, !16, i64 376, !16, i64 380, !22, i64 384}
!13 = !{!"_ZTS4Apex", !14, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !16, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !14, i64 81, !14, i64 82, !14, i64 83, !17, i64 88}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt4pairIidE", !16, i64 0, !6, i64 8}
!18 = !{!"_ZTSSt6vectorIP4ElemSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP4ElemSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP4ElemSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP4ElemSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!22 = !{!"_ZTS4var3IdE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!12, !16, i64 228}
!24 = !{!15, !15, i64 0}
!25 = !{!12, !6, i64 240}
!26 = !{!12, !6, i64 248}
!27 = !{!12, !16, i64 256}
!28 = !{!16, !16, i64 0}
!29 = !{!12, !16, i64 368}
!30 = !{!12, !16, i64 372}
!31 = !{!12, !16, i64 380}
!32 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!33 = !{!12, !6, i64 296}
!34 = !{!12, !16, i64 376}
!35 = !{!12, !15, i64 232}
!36 = !{!12, !15, i64 288}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass