; LLVM IR from wmcnamara/crynn :: lib/thirdparty/assimp/contrib/Open3DGC (o3dgcTriangleFans)

; 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.o3dgc::Arithmetic_Codec" = type <{ ptr, ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.o3dgc::Adaptive_Data_Model" = type <{ ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.o3dgc::Static_Bit_Model" = type { i32 }
%"class.o3dgc::Adaptive_Bit_Model" = type { i32, i32, i32, i32, i32 }
%"class.o3dgc::CompressedTriangleFans" = type <{ %"class.o3dgc::Vector.0", %"class.o3dgc::Vector.0", %"class.o3dgc::Vector.0", %"class.o3dgc::Vector.0", %"class.o3dgc::Vector.0", %"class.o3dgc::Vector.0", ptr, i64, i32, [4 x i8] }>
%"class.o3dgc::Vector.0" = type { ptr, i64, i64 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK5o3dgc12BinaryStream7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(28)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28), i64 noundef) #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

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

declare void @_ZN5o3dgc16Arithmetic_CodecC1Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5

declare void @_ZN5o3dgc16Arithmetic_Codec10set_bufferEjPh(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, ptr noundef) #5

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5o3dgc16Arithmetic_Codec13start_encoderEv(ptr noundef nonnull align 8 dereferenceable(44)) #5

declare void @_ZN5o3dgc19Adaptive_Data_ModelC1Ej(ptr noundef nonnull align 8 dereferenceable(52), i32 noundef) unnamed_addr #5

declare void @_ZN5o3dgc16Arithmetic_Codec6encodeEjRNS_19Adaptive_Data_ModelE(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, ptr noundef nonnull align 8 dereferenceable(52)) #5

declare noundef i32 @_ZN5o3dgc16Arithmetic_Codec12stop_encoderEv(ptr noundef nonnull align 8 dereferenceable(44)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5o3dgc12BinaryStream14WriteUChar8BinEh(ptr noundef nonnull align 8 dereferenceable(28), i8 noundef zeroext) #1 align 2

; Function Attrs: nounwind
declare void @_ZN5o3dgc19Adaptive_Data_ModelD1Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN5o3dgc16Arithmetic_CodecD1Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEmm(ptr noundef nonnull align 8 dereferenceable(28), i64 noundef, i64 noundef) #2 align 2

declare void @_ZN5o3dgc18Adaptive_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5o3dgc22CompressedTriangleFans12SaveIntACEGCERKNS_6VectorIlEEmRNS_12BinaryStreamE(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(28) %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.o3dgc::Arithmetic_Codec", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.o3dgc::Adaptive_Data_Model", align 8
  %18 = alloca %"class.o3dgc::Static_Bit_Model", align 4
  %19 = alloca %"class.o3dgc::Adaptive_Bit_Model", align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call noundef i64 @_ZNK5o3dgc12BinaryStream7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %25)
  store i64 %26, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef i64 @_ZNK5o3dgc6VectorIlE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
  %29 = mul i64 %28, 8
  %30 = add i64 %29, 100
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNK5o3dgc6VectorIlE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  store i64 %33, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !9
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28) %34, i64 noundef 0)
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load i64, ptr %11, align 8, !tbaa !9
  call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28) %35, i64 noundef %36)
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = icmp ugt i64 %37, 0
  br i1 %38, label %39, label %183

39:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %58, %39
  %41 = load i64, ptr %13, align 8, !tbaa !9
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %61

45:                                               ; preds = %40
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5o3dgc6VectorIlEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48)
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = icmp sgt i64 %46, %50
  br i1 %51, label %52, label %57

52:                                               ; preds = %45
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5o3dgc6VectorIlEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %54)
  %56 = load i64, ptr %55, align 8, !tbaa !9
  store i64 %56, ptr %12, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %52, %45
  br label %58

58:                                               ; preds = %57
  %59 = load i64, ptr %13, align 8, !tbaa !9
  %60 = add i64 %59, 1
  store i64 %60, ptr %13, align 8, !tbaa !9
  br label %40, !llvm.loop !13

61:                                               ; preds = %44
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = add nsw i64 %63, 2147483647
  call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28) %62, i64 noundef %64)
  %65 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 7
  %66 = load i64, ptr %65, align 8, !tbaa !15
  %67 = load i32, ptr %10, align 4, !tbaa !11
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %66, %68
  br i1 %69, label %70, label %83

70:                                               ; preds = %61
  %71 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 6
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = icmp eq ptr %72, null
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  call void @_ZdaPv(ptr noundef %72) #8
  br label %75

75:                                               ; preds = %74, %70
  %76 = load i32, ptr %10, align 4, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 7
  store i64 %77, ptr %78, align 8, !tbaa !15
  %79 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 7
  %80 = load i64, ptr %79, align 8, !tbaa !15
  %81 = call noalias noundef nonnull ptr @_Znam(i64 noundef %80) #9
  %82 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 6
  store ptr %81, ptr %82, align 8, !tbaa !19
  br label %83

83:                                               ; preds = %75, %61
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #7
  call void @_ZN5o3dgc16Arithmetic_CodecC1Ev(ptr noundef nonnull align 8 dereferenceable(44) %14)
  %84 = load i32, ptr %10, align 4, !tbaa !11
  %85 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !19
  invoke void @_ZN5o3dgc16Arithmetic_Codec10set_bufferEjPh(ptr noundef nonnull align 8 dereferenceable(44) %14, i32 noundef %84, ptr noundef %86)
          to label %87 unwind label %100

87:                                               ; preds = %83
  invoke void @_ZN5o3dgc16Arithmetic_Codec13start_encoderEv(ptr noundef nonnull align 8 dereferenceable(44) %14)
          to label %88 unwind label %100

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 56, ptr %17) #7
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = add i64 %89, 2
  %91 = trunc i64 %90 to i32
  invoke void @_ZN5o3dgc19Adaptive_Data_ModelC1Ej(ptr noundef nonnull align 8 dereferenceable(52) %17, i32 noundef %91)
          to label %92 unwind label %104

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  invoke void @_ZN5o3dgc16Static_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %93 unwind label %108

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 20, ptr %19) #7
  invoke void @_ZN5o3dgc18Adaptive_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(20) %19)
          to label %94 unwind label %112

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %145, %94
  %96 = load i64, ptr %21, align 8, !tbaa !9
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = icmp ult i64 %96, %97
  br i1 %98, label %116, label %99

99:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %148

100:                                              ; preds = %87, %83
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %15, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %16, align 4
  br label %182

104:                                              ; preds = %88
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %15, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %16, align 4
  br label %181

108:                                              ; preds = %92
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %15, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %16, align 4
  br label %180

112:                                              ; preds = %93
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %15, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %16, align 4
  br label %179

116:                                              ; preds = %95
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i64, ptr %21, align 8, !tbaa !9
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5o3dgc6VectorIlEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %118)
          to label %120 unwind label %131

120:                                              ; preds = %116
  %121 = load i64, ptr %119, align 8, !tbaa !9
  %122 = load i64, ptr %12, align 8, !tbaa !9
  %123 = sub nsw i64 %121, %122
  store i64 %123, ptr %20, align 8, !tbaa !9
  %124 = load i64, ptr %20, align 8, !tbaa !9
  %125 = load i64, ptr %7, align 8, !tbaa !9
  %126 = icmp ult i64 %124, %125
  br i1 %126, label %127, label %135

127:                                              ; preds = %120
  %128 = load i64, ptr %20, align 8, !tbaa !9
  %129 = trunc i64 %128 to i32
  invoke void @_ZN5o3dgc16Arithmetic_Codec6encodeEjRNS_19Adaptive_Data_ModelE(ptr noundef nonnull align 8 dereferenceable(44) %14, i32 noundef %129, ptr noundef nonnull align 8 dereferenceable(52) %17)
          to label %130 unwind label %131

130:                                              ; preds = %127
  br label %144

131:                                              ; preds = %138, %135, %127, %116
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %15, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %178

135:                                              ; preds = %120
  %136 = load i64, ptr %7, align 8, !tbaa !9
  %137 = trunc i64 %136 to i32
  invoke void @_ZN5o3dgc16Arithmetic_Codec6encodeEjRNS_19Adaptive_Data_ModelE(ptr noundef nonnull align 8 dereferenceable(44) %14, i32 noundef %137, ptr noundef nonnull align 8 dereferenceable(52) %17)
          to label %138 unwind label %131

138:                                              ; preds = %135
  %139 = load i64, ptr %20, align 8, !tbaa !9
  %140 = load i64, ptr %7, align 8, !tbaa !9
  %141 = sub i64 %139, %140
  %142 = trunc i64 %141 to i32
  invoke void @_ZN5o3dgc16Arithmetic_Codec15ExpGolombEncodeEjiRNS_16Static_Bit_ModelERNS_18Adaptive_Bit_ModelE(ptr noundef nonnull align 8 dereferenceable(44) %14, i32 noundef %142, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(20) %19)
          to label %143 unwind label %131

143:                                              ; preds = %138
  br label %144

144:                                              ; preds = %143, %130
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %21, align 8, !tbaa !9
  %147 = add i64 %146, 1
  store i64 %147, ptr %21, align 8, !tbaa !9
  br label %95, !llvm.loop !20

148:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %149 = invoke noundef i32 @_ZN5o3dgc16Arithmetic_Codec12stop_encoderEv(ptr noundef nonnull align 8 dereferenceable(44) %14)
          to label %150 unwind label %157

150:                                              ; preds = %148
  %151 = zext i32 %149 to i64
  store i64 %151, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %152

152:                                              ; preds = %169, %150
  %153 = load i64, ptr %23, align 8, !tbaa !9
  %154 = load i64, ptr %22, align 8, !tbaa !9
  %155 = icmp ult i64 %153, %154
  br i1 %155, label %161, label %156

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %176

157:                                              ; preds = %148
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %15, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %16, align 4
  br label %177

161:                                              ; preds = %152
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %"class.o3dgc::CompressedTriangleFans", ptr %24, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !19
  %165 = load i64, ptr %23, align 8, !tbaa !9
  %166 = getelementptr inbounds i8, ptr %164, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !21
  invoke void @_ZN5o3dgc12BinaryStream14WriteUChar8BinEh(ptr noundef nonnull align 8 dereferenceable(28) %162, i8 noundef zeroext %167)
          to label %168 unwind label %172

168:                                              ; preds = %161
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %23, align 8, !tbaa !9
  %171 = add i64 %170, 1
  store i64 %171, ptr %23, align 8, !tbaa !9
  br label %152, !llvm.loop !22

172:                                              ; preds = %161
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %15, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %177

176:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZN5o3dgc19Adaptive_Data_ModelD1Ev(ptr noundef nonnull align 8 dereferenceable(52) %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #7
  call void @_ZN5o3dgc16Arithmetic_CodecD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  br label %183

177:                                              ; preds = %172, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %178

178:                                              ; preds = %177, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %179

179:                                              ; preds = %178, %112
  call void @llvm.lifetime.end.p0(i64 20, ptr %19) #7
  br label %180

180:                                              ; preds = %179, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZN5o3dgc19Adaptive_Data_ModelD1Ev(ptr noundef nonnull align 8 dereferenceable(52) %17) #7
  br label %181

181:                                              ; preds = %180, %104
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #7
  br label %182

182:                                              ; preds = %181, %100
  call void @_ZN5o3dgc16Arithmetic_CodecD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %14) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %190

183:                                              ; preds = %176, %4
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load i64, ptr %9, align 8, !tbaa !9
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = call noundef i64 @_ZNK5o3dgc12BinaryStream7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %186)
  %188 = load i64, ptr %9, align 8, !tbaa !9
  %189 = sub i64 %187, %188
  call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEmm(ptr noundef nonnull align 8 dereferenceable(28) %184, i64 noundef %185, i64 noundef %189)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret i32 0

190:                                              ; preds = %182
  %191 = load ptr, ptr %15, align 8
  %192 = load i32, ptr %16, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

declare void @_ZN5o3dgc16Static_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5o3dgc16Arithmetic_Codec15ExpGolombEncodeEjiRNS_16Static_Bit_ModelERNS_18Adaptive_Bit_ModelE(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 152}
!16 = !{!"_ZTSN5o3dgc22CompressedTriangleFansE", !17, i64 0, !17, i64 24, !17, i64 48, !17, i64 72, !17, i64 96, !17, i64 120, !6, i64 144, !10, i64 152, !18, i64 160}
!17 = !{!"_ZTSN5o3dgc6VectorIlEE", !6, i64 0, !10, i64 8, !10, i64 16}
!18 = !{!"_ZTSN5o3dgc15O3DGCStreamTypeE", !7, i64 0}
!19 = !{!16, !6, i64 144}
!20 = distinct !{!20, !14}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !14}


; 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.o3dgc::Arithmetic_Codec" = type <{ ptr, ptr, ptr, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.o3dgc::Adaptive_Data_Model" = type <{ ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.o3dgc::Static_Bit_Model" = type { i32 }
%"class.o3dgc::Adaptive_Bit_Model" = type { i32, i32, i32, i32, i32 }

; 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 uwtable
declare dso_local noundef i64 @_ZNK5o3dgc12BinaryStream7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #1 align 2

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

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

; 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 uwtable
declare dso_local void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

declare void @_ZN5o3dgc16Arithmetic_CodecC1Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5

declare void @_ZN5o3dgc16Arithmetic_Codec10set_bufferEjPh(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5o3dgc16Arithmetic_Codec13start_encoderEv(ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #5

declare void @_ZN5o3dgc19Adaptive_Data_ModelC1Ej(ptr noundef nonnull align 8 dereferenceable(52), i32 noundef) unnamed_addr #5

declare void @_ZN5o3dgc16Arithmetic_Codec6encodeEjRNS_19Adaptive_Data_ModelE(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, ptr noundef nonnull align 8 dereferenceable(52)) local_unnamed_addr #5

declare noundef i32 @_ZN5o3dgc16Arithmetic_Codec12stop_encoderEv(ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5o3dgc12BinaryStream14WriteUChar8BinEh(ptr noundef nonnull align 8 dereferenceable(28), i8 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: nounwind
declare void @_ZN5o3dgc19Adaptive_Data_ModelD1Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN5o3dgc16Arithmetic_CodecD1Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEmm(ptr noundef nonnull align 8 dereferenceable(28), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

declare void @_ZN5o3dgc18Adaptive_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5o3dgc22CompressedTriangleFans12SaveIntACEGCERKNS_6VectorIlEEmRNS_12BinaryStreamE(ptr nocapture noundef nonnull align 8 dereferenceable(164) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(28) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.o3dgc::Arithmetic_Codec", align 8
  %6 = alloca %"class.o3dgc::Adaptive_Data_Model", align 8
  %7 = alloca %"class.o3dgc::Static_Bit_Model", align 4
  %8 = alloca %"class.o3dgc::Adaptive_Bit_Model", align 4
  %9 = tail call noundef i64 @_ZNK5o3dgc12BinaryStream7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
  %10 = tail call noundef i64 @_ZNK5o3dgc6VectorIlE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.tr = trunc i64 %10 to i32
  %11 = shl i32 %.tr, 3
  %12 = add i32 %11, 100
  %13 = tail call noundef i64 @_ZNK5o3dgc6VectorIlE7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  tail call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef 0)
  tail call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %13)
  %.not = icmp eq i64 %13, 0
  br i1 %.not, label %83, label %.preheader68

14:                                               ; preds = %26
  %15 = add nsw i64 %.1, 2147483647
  tail call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEm(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = zext i32 %12 to i64
  %19 = icmp ult i64 %17, %18
  br i1 %19, label %28, label %35

.preheader68:                                     ; preds = %4, %26
  %.04470 = phi i64 [ %.1, %26 ], [ 0, %4 ]
  %.04669 = phi i64 [ %27, %26 ], [ 0, %4 ]
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5o3dgc6VectorIlEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04669)
  %21 = load i64, ptr %20, align 8, !tbaa !13
  %22 = icmp sgt i64 %.04470, %21
  br i1 %22, label %23, label %26

23:                                               ; preds = %.preheader68
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5o3dgc6VectorIlEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04669)
  %25 = load i64, ptr %24, align 8, !tbaa !13
  br label %26

26:                                               ; preds = %.preheader68, %23
  %.1 = phi i64 [ %25, %23 ], [ %.04470, %.preheader68 ]
  %27 = add nuw i64 %.04669, 1
  %exitcond.not = icmp eq i64 %27, %13
  br i1 %exitcond.not, label %14, label %.preheader68, !llvm.loop !14

28:                                               ; preds = %14
  %29 = getelementptr inbounds i8, ptr %0, i64 144
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = icmp eq ptr %30, null
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  tail call void @_ZdaPv(ptr noundef nonnull %30) #7
  br label %33

33:                                               ; preds = %32, %28
  store i64 %18, ptr %16, align 8, !tbaa !5
  %34 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #8
  store ptr %34, ptr %29, align 8, !tbaa !16
  br label %35

35:                                               ; preds = %33, %14
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #9
  call void @_ZN5o3dgc16Arithmetic_CodecC1Ev(ptr noundef nonnull align 8 dereferenceable(44) %5)
  %36 = getelementptr inbounds i8, ptr %0, i64 144
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  invoke void @_ZN5o3dgc16Arithmetic_Codec10set_bufferEjPh(ptr noundef nonnull align 8 dereferenceable(44) %5, i32 noundef %12, ptr noundef %37)
          to label %38 unwind label %46

38:                                               ; preds = %35
  invoke void @_ZN5o3dgc16Arithmetic_Codec13start_encoderEv(ptr noundef nonnull align 8 dereferenceable(44) %5)
          to label %39 unwind label %46

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %6) #9
  %40 = trunc i64 %2 to i32
  %41 = add i32 %40, 2
  invoke void @_ZN5o3dgc19Adaptive_Data_ModelC1Ej(ptr noundef nonnull align 8 dereferenceable(52) %6, i32 noundef %41)
          to label %42 unwind label %48

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  invoke void @_ZN5o3dgc16Static_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %43 unwind label %50

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %8) #9
  invoke void @_ZN5o3dgc18Adaptive_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(20) %8)
          to label %.preheader unwind label %52

44:                                               ; preds = %66
  %45 = invoke noundef i32 @_ZN5o3dgc16Arithmetic_Codec12stop_encoderEv(ptr noundef nonnull align 8 dereferenceable(44) %5)
          to label %68 unwind label %70

46:                                               ; preds = %38, %35
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %82

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %81

50:                                               ; preds = %42
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %80

52:                                               ; preds = %43
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %79

.preheader:                                       ; preds = %43, %66
  %.04571 = phi i64 [ %67, %66 ], [ 0, %43 ]
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK5o3dgc6VectorIlEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04571)
  %55 = load i64, ptr %54, align 8, !tbaa !13
  %56 = sub nsw i64 %55, %.1
  %57 = icmp ult i64 %56, %2
  br i1 %57, label %58, label %62

58:                                               ; preds = %.preheader
  %59 = trunc i64 %56 to i32
  invoke void @_ZN5o3dgc16Arithmetic_Codec6encodeEjRNS_19Adaptive_Data_ModelE(ptr noundef nonnull align 8 dereferenceable(44) %5, i32 noundef %59, ptr noundef nonnull align 8 dereferenceable(52) %6)
          to label %66 unwind label %60

60:                                               ; preds = %63, %62, %58
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %79

62:                                               ; preds = %.preheader
  invoke void @_ZN5o3dgc16Arithmetic_Codec6encodeEjRNS_19Adaptive_Data_ModelE(ptr noundef nonnull align 8 dereferenceable(44) %5, i32 noundef %40, ptr noundef nonnull align 8 dereferenceable(52) %6)
          to label %63 unwind label %60

63:                                               ; preds = %62
  %64 = sub i64 %56, %2
  %65 = trunc i64 %64 to i32
  invoke void @_ZN5o3dgc16Arithmetic_Codec15ExpGolombEncodeEjiRNS_16Static_Bit_ModelERNS_18Adaptive_Bit_ModelE(ptr noundef nonnull align 8 dereferenceable(44) %5, i32 noundef %65, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(20) %8)
          to label %66 unwind label %60

66:                                               ; preds = %58, %63
  %67 = add nuw i64 %.04571, 1
  %exitcond74.not = icmp eq i64 %67, %13
  br i1 %exitcond74.not, label %44, label %.preheader, !llvm.loop !17

68:                                               ; preds = %44
  %69 = zext i32 %45 to i64
  %.not73 = icmp eq i32 %45, 0
  br i1 %.not73, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %75, %68
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @_ZN5o3dgc19Adaptive_Data_ModelD1Ev(ptr noundef nonnull align 8 dereferenceable(52) %6) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #9
  call void @_ZN5o3dgc16Arithmetic_CodecD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %5) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #9
  br label %83

70:                                               ; preds = %44
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %79

.lr.ph:                                           ; preds = %68, %75
  %.072 = phi i64 [ %76, %75 ], [ 0, %68 ]
  %72 = load ptr, ptr %36, align 8, !tbaa !16
  %73 = getelementptr inbounds i8, ptr %72, i64 %.072
  %74 = load i8, ptr %73, align 1, !tbaa !18
  invoke void @_ZN5o3dgc12BinaryStream14WriteUChar8BinEh(ptr noundef nonnull align 8 dereferenceable(28) %3, i8 noundef zeroext %74)
          to label %75 unwind label %77

75:                                               ; preds = %.lr.ph
  %76 = add nuw nsw i64 %.072, 1
  %exitcond75.not = icmp eq i64 %76, %69
  br i1 %exitcond75.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

77:                                               ; preds = %.lr.ph
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %79

79:                                               ; preds = %60, %77, %70, %52
  %.pn62.pn = phi { ptr, i32 } [ %53, %52 ], [ %61, %60 ], [ %78, %77 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #9
  br label %80

80:                                               ; preds = %79, %50
  %.pn62.pn.pn = phi { ptr, i32 } [ %.pn62.pn, %79 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @_ZN5o3dgc19Adaptive_Data_ModelD1Ev(ptr noundef nonnull align 8 dereferenceable(52) %6) #9
  br label %81

81:                                               ; preds = %80, %48
  %.pn62.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn, %80 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #9
  br label %82

82:                                               ; preds = %81, %46
  %.pn62.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn62.pn.pn.pn, %81 ], [ %47, %46 ]
  call void @_ZN5o3dgc16Arithmetic_CodecD1Ev(ptr noundef nonnull align 8 dereferenceable(44) %5) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #9
  resume { ptr, i32 } %.pn62.pn.pn.pn.pn

83:                                               ; preds = %._crit_edge, %4
  %84 = call noundef i64 @_ZNK5o3dgc12BinaryStream7GetSizeEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
  %85 = sub i64 %84, %9
  call void @_ZN5o3dgc12BinaryStream14WriteUInt32BinEmm(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 noundef %9, i64 noundef %85)
  ret i32 0
}

declare void @_ZN5o3dgc16Static_Bit_ModelC1Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5o3dgc16Arithmetic_Codec15ExpGolombEncodeEjiRNS_16Static_Bit_ModelERNS_18Adaptive_Bit_ModelE(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = { "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 = { 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 #7 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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, !11, i64 152}
!6 = !{!"_ZTSN5o3dgc22CompressedTriangleFansE", !7, i64 0, !7, i64 24, !7, i64 48, !7, i64 72, !7, i64 96, !7, i64 120, !8, i64 144, !11, i64 152, !12, i64 160}
!7 = !{!"_ZTSN5o3dgc6VectorIlEE", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"_ZTSN5o3dgc15O3DGCStreamTypeE", !9, i64 0}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !8, i64 144}
!17 = distinct !{!17, !15}
!18 = !{!9, !9, i64 0}
!19 = distinct !{!19, !15}


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