; LLVM IR from fogleman/CellularForms :: tracer/src/stl.ll/Z13LoadBinarySTLNSt7 (cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::interprocess::file_mapping" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::interprocess::mapped_region" = type <{ ptr, i64, i64, i32, i8, [3 x i8] }>
%"class.std::allocator" = type { i8 }
%class.Vec3 = type { double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13LoadBinarySTLNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.boost::interprocess::file_mapping", align 8
  %6 = alloca %"class.boost::interprocess::mapped_region", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i1, align 1
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %class.Vec3, align 8
  %20 = alloca %class.Vec3, align 8
  %21 = alloca %class.Vec3, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  %22 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @_ZN5boost12interprocess12file_mappingC2EPKcNS0_6mode_tE(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %22, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  invoke void @_ZN5boost12interprocess13mapped_regionC2INS0_12file_mappingEEERKT_NS0_6mode_tElmPKvi(ptr noundef nonnull align 8 dereferenceable(29) %6, ptr noundef nonnull align 8 dereferenceable(40) %5, i32 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef null, i32 noundef -1)
          to label %23 unwind label %47

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %24 = invoke noundef ptr @_ZNK5boost12interprocess13mapped_region11get_addressEv(ptr noundef nonnull align 8 dereferenceable(29) %6)
          to label %25 unwind label %51

25:                                               ; preds = %23
  store ptr %24, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %26 = invoke noundef i64 @_ZNK5boost12interprocess13mapped_region8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(29) %6)
          to label %27 unwind label %55

27:                                               ; preds = %25
  %28 = trunc i64 %26 to i32
  store i32 %28, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = sub nsw i32 %29, 84
  %31 = sdiv i32 %30, 50
  store i32 %31, ptr %13, align 4, !tbaa !9
  %32 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %33 unwind label %59

33:                                               ; preds = %27
  %34 = load i32, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  store i32 %34, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = mul nsw i32 %35, 3
  store i32 %36, ptr %14, align 4, !tbaa !9
  store i1 false, ptr %15, align 1
  %37 = load i32, ptr %14, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaI4Vec3EC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorI4Vec3SaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %39 unwind label %63

39:                                               ; preds = %33
  call void @_ZNSt15__new_allocatorI4Vec3ED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 96
  store ptr %41, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %125, %39
  %43 = load i32, ptr %17, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %67, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %141

47:                                               ; preds = %2
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %149

51:                                               ; preds = %23
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %7, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %8, align 4
  br label %148

55:                                               ; preds = %25
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  br label %147

59:                                               ; preds = %27
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %146

63:                                               ; preds = %33
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI4Vec3ED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %145

67:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %68, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = getelementptr inbounds float, ptr %69, i64 0
  %71 = load float, ptr %70, align 4, !tbaa !11
  %72 = fpext float %71 to double
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i64 1
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = fpext float %75 to double
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = getelementptr inbounds float, ptr %77, i64 2
  %79 = load float, ptr %78, align 4, !tbaa !11
  %80 = fpext float %79 to double
  invoke void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %19, double noundef %72, double noundef %76, double noundef %80)
          to label %81 unwind label %128

81:                                               ; preds = %67
  %82 = load i32, ptr %17, align 4, !tbaa !9
  %83 = mul nsw i32 %82, 3
  %84 = add nsw i32 %83, 0
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %85) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %19, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = getelementptr inbounds float, ptr %87, i64 3
  %89 = load float, ptr %88, align 4, !tbaa !11
  %90 = fpext float %89 to double
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds float, ptr %91, i64 4
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = fpext float %93 to double
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = getelementptr inbounds float, ptr %95, i64 5
  %97 = load float, ptr %96, align 4, !tbaa !11
  %98 = fpext float %97 to double
  invoke void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %20, double noundef %90, double noundef %94, double noundef %98)
          to label %99 unwind label %132

99:                                               ; preds = %81
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = mul nsw i32 %100, 3
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %103) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %104, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = getelementptr inbounds float, ptr %105, i64 6
  %107 = load float, ptr %106, align 4, !tbaa !11
  %108 = fpext float %107 to double
  %109 = load ptr, ptr %18, align 8, !tbaa !5
  %110 = getelementptr inbounds float, ptr %109, i64 7
  %111 = load float, ptr %110, align 4, !tbaa !11
  %112 = fpext float %111 to double
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = getelementptr inbounds float, ptr %113, i64 8
  %115 = load float, ptr %114, align 4, !tbaa !11
  %116 = fpext float %115 to double
  invoke void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %21, double noundef %108, double noundef %112, double noundef %116)
          to label %117 unwind label %136

117:                                              ; preds = %99
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = mul nsw i32 %118, 3
  %120 = add nsw i32 %119, 2
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %121) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %122, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %123, i64 50
  store ptr %124, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %125

125:                                              ; preds = %117
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %17, align 4, !tbaa !9
  br label %42, !llvm.loop !16

128:                                              ; preds = %67
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %140

132:                                              ; preds = %81
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %7, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  br label %140

136:                                              ; preds = %99
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %7, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %140

140:                                              ; preds = %136, %132, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt6vectorI4Vec3SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %145

141:                                              ; preds = %46
  store i1 true, ptr %15, align 1
  %142 = load i1, ptr %15, align 1
  br i1 %142, label %144, label %143

143:                                              ; preds = %141
  call void @_ZNSt6vectorI4Vec3SaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %144

144:                                              ; preds = %143, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN5boost12interprocess13mapped_regionD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZN5boost12interprocess12file_mappingD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  ret void

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

146:                                              ; preds = %145, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %147

147:                                              ; preds = %146, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %148

148:                                              ; preds = %147, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN5boost12interprocess13mapped_regionD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %6) #6
  br label %149

149:                                              ; preds = %148, %47
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZN5boost12interprocess12file_mappingD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %7, align 8
  %152 = load i32, ptr %8, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost12interprocess12file_mappingC2EPKcNS0_6mode_tE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost12interprocess13mapped_regionC2INS0_12file_mappingEEERKT_NS0_6mode_tElmPKvi(ptr noundef nonnull align 8 dereferenceable(29), ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5boost12interprocess13mapped_region11get_addressEv(ptr noundef nonnull align 8 dereferenceable(29)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5boost12interprocess13mapped_region8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(29)) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 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) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost12interprocess13mapped_regionD2Ev(ptr noundef nonnull align 8 dereferenceable(29)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost12interprocess12file_mappingD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4Vec3ED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec3, std::allocator<Vec3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::interprocess::file_mapping" = type { i32, i32, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.boost::interprocess::mapped_region" = type <{ ptr, i64, i64, i32, i8, [3 x i8] }>
%"class.std::allocator" = type { i8 }
%class.Vec3 = type { double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13LoadBinarySTLNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.boost::interprocess::file_mapping", align 8
  %4 = alloca %"class.boost::interprocess::mapped_region", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %class.Vec3, align 8
  %9 = alloca %class.Vec3, align 8
  %10 = alloca %class.Vec3, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  %11 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @_ZN5boost12interprocess12file_mappingC2EPKcNS0_6mode_tE(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef %11, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN5boost12interprocess13mapped_regionC2INS0_12file_mappingEEERKT_NS0_6mode_tElmPKvi(ptr noundef nonnull align 8 dereferenceable(29) %4, ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef 0, i64 noundef 0, i64 noundef 0, ptr noundef null, i32 noundef -1)
          to label %12 unwind label %25

12:                                               ; preds = %2
  %13 = call noundef ptr @_ZNK5boost12interprocess13mapped_region11get_addressEv(ptr noundef nonnull align 8 dereferenceable(29) %4)
  %14 = call noundef i64 @_ZNK5boost12interprocess13mapped_region8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(29) %4)
  %15 = trunc i64 %14 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %16 = add nsw i32 %15, -84
  %17 = sdiv i32 %16, 50
  store i32 %17, ptr %6, align 4, !tbaa !5
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %20 = mul nsw i32 %19, 3
  %21 = sext i32 %20 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaI4Vec3EC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorI4Vec3SaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %21, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %22 unwind label %27

22:                                               ; preds = %12
  call void @_ZNSt15__new_allocatorI4Vec3ED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %23 = icmp sgt i32 %19, 0
  br i1 %23, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %22
  %24 = getelementptr inbounds i8, ptr %13, i64 96
  %wide.trip.count = zext nneg i32 %19 to i64
  br label %.lr.ph

25:                                               ; preds = %2
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %62

27:                                               ; preds = %12
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4Vec3ED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZN5boost12interprocess13mapped_regionD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %4) #6
  br label %62

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.02527 = phi ptr [ %24, %.lr.ph.preheader ], [ %61, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %29 = load float, ptr %.02527, align 4, !tbaa !9
  %30 = fpext float %29 to double
  %31 = getelementptr inbounds i8, ptr %.02527, i64 4
  %32 = load float, ptr %31, align 4, !tbaa !9
  %33 = fpext float %32 to double
  %34 = getelementptr inbounds i8, ptr %.02527, i64 8
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = fpext float %35 to double
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef %30, double noundef %33, double noundef %36)
  %37 = mul nuw nsw i64 %indvars.iv, 3
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %37) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  %39 = getelementptr inbounds i8, ptr %.02527, i64 12
  %40 = load float, ptr %39, align 4, !tbaa !9
  %41 = fpext float %40 to double
  %42 = getelementptr inbounds i8, ptr %.02527, i64 16
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = fpext float %43 to double
  %45 = getelementptr inbounds i8, ptr %.02527, i64 20
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fpext float %46 to double
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %41, double noundef %44, double noundef %47)
  %48 = add nuw nsw i64 %37, 1
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %48) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %9, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  %50 = getelementptr inbounds i8, ptr %.02527, i64 24
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = fpext float %51 to double
  %53 = getelementptr inbounds i8, ptr %.02527, i64 28
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = fpext float %54 to double
  %56 = getelementptr inbounds i8, ptr %.02527, i64 32
  %57 = load float, ptr %56, align 4, !tbaa !9
  %58 = fpext float %57 to double
  call void @_ZN4Vec3C2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %52, double noundef %55, double noundef %58)
  %59 = add nuw nsw i64 %37, 2
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %59) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  %61 = getelementptr inbounds i8, ptr %.02527, i64 50
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %22
  call void @_ZN5boost12interprocess13mapped_regionD2Ev(ptr noundef nonnull align 8 dereferenceable(29) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN5boost12interprocess12file_mappingD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  ret void

62:                                               ; preds = %27, %25
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN5boost12interprocess12file_mappingD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost12interprocess12file_mappingC2EPKcNS0_6mode_tE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost12interprocess13mapped_regionC2INS0_12file_mappingEEERKT_NS0_6mode_tElmPKvi(ptr noundef nonnull align 8 dereferenceable(29), ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK5boost12interprocess13mapped_region11get_addressEv(ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5boost12interprocess13mapped_region8get_sizeEv(ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4Vec3SaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 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) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost12interprocess13mapped_regionD2Ev(ptr noundef nonnull align 8 dereferenceable(29)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost12interprocess12file_mappingD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4Vec3ED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

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


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