; LLVM IR from kajott/GIPS :: src/gips_io.ll (ZN4GIPS8Pipeline9serializeB5cxx11Ei)

; 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::__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.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.GIPS::Pipeline" = type <{ %"class.std::vector", i32, i32, i32, [2 x i32], %"class.GLutil::FBO", i8, [3 x i8], %"class.GLutil::Shader", i32, i8, i8, [2 x i8], float, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<GIPS::Node *, std::allocator<GIPS::Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<GIPS::Node *, std::allocator<GIPS::Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<GIPS::Node *, std::allocator<GIPS::Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GIPS::Node *, std::allocator<GIPS::Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.GLutil::FBO" = type { i32, i32 }
%"class.GLutil::Shader" = type <{ i32, i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%"class.GIPS::Node" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, [4 x i8], [4 x %"struct.GIPS::Node::PassData"], %"class.std::vector.3", i8, i8, i8, [5 x i8], %"class.FileUtil::FileFingerprint", i32, [4 x i8] }>
%"struct.GIPS::Node::PassData" = type { i8, i32, %"class.GLutil::Program", i32, i32, i32, [4 x i8] }
%"class.GLutil::Program" = type <{ i32, i32, ptr, i8, [7 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<GIPS::Parameter, std::allocator<GIPS::Parameter>>::_Vector_impl" }
%"struct.std::_Vector_base<GIPS::Parameter, std::allocator<GIPS::Parameter>>::_Vector_impl" = type { %"struct.std::_Vector_base<GIPS::Parameter, std::allocator<GIPS::Parameter>>::_Vector_impl_data" }
%"struct.std::_Vector_base<GIPS::Parameter, std::allocator<GIPS::Parameter>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.FileUtil::FileFingerprint" = type { i64, i64 }
%"class.GIPS::Parameter" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, float, float, [4 x float], [4 x float], [4 x float], [4 x i32] }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4GIPS8Pipeline9serializeB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(100) %1, i32 noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [8 x i8], align 1
  %17 = alloca [10 x i8], align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %18 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 376, ptr %7) #6
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %7)
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str)
          to label %20 unwind label %26

20:                                               ; preds = %3
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %30

23:                                               ; preds = %20
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.1)
          to label %25 unwind label %26

25:                                               ; preds = %23
  br label %30

26:                                               ; preds = %220, %23, %3
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %8, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %9, align 4
  br label %224

30:                                               ; preds = %25, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %31

31:                                               ; preds = %216, %30
  %32 = load i64, ptr %10, align 8, !tbaa !11
  %33 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %18, i32 0, i32 0
  %34 = call noundef i64 @_ZNKSt6vectorIPN4GIPS4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %35 = icmp ult i64 %32, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %31
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %220

37:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %38 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %18, i32 0, i32 0
  %39 = load i64, ptr %10, align 8, !tbaa !11
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4GIPS4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %39) #6
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  store ptr %41, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.GIPS::Node", ptr %42, i32 0, i32 1
  %44 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %43) #6
  %45 = invoke noundef ptr @_ZN3VFS10getRelPathEPKc(ptr noundef %44)
          to label %46 unwind label %68

46:                                               ; preds = %37
  store ptr %45, ptr %13, align 8, !tbaa !5
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.2)
          to label %48 unwind label %68

48:                                               ; preds = %46
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %49)
          to label %51 unwind label %68

51:                                               ; preds = %48
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.3)
          to label %53 unwind label %68

53:                                               ; preds = %51
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = load i64, ptr %10, align 8, !tbaa !11
  %57 = add i64 %56, 1
  %58 = icmp eq i64 %55, %57
  br i1 %58, label %59, label %72

59:                                               ; preds = %53
  %60 = load i64, ptr %10, align 8, !tbaa !11
  %61 = add i64 %60, 1
  %62 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %18, i32 0, i32 0
  %63 = call noundef i64 @_ZNKSt6vectorIPN4GIPS4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #6
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %59
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.1)
          to label %67 unwind label %68

67:                                               ; preds = %65
  br label %72

68:                                               ; preds = %77, %65, %51, %48, %46, %37
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %8, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %9, align 4
  br label %219

72:                                               ; preds = %67, %59, %53
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.GIPS::Node", ptr %73, i32 0, i32 8
  %75 = load i8, ptr %74, align 1, !tbaa !13, !range !24, !noundef !25
  %76 = trunc i8 %75 to i1
  br i1 %76, label %80, label %77

77:                                               ; preds = %72
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.4)
          to label %79 unwind label %68

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79, %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %81

81:                                               ; preds = %211, %80
  %82 = load i64, ptr %14, align 8, !tbaa !11
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.GIPS::Node", ptr %83, i32 0, i32 6
  %85 = call noundef i64 @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #6
  %86 = icmp ult i64 %82, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %81
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %215

88:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.GIPS::Node", ptr %89, i32 0, i32 6
  %91 = load i64, ptr %14, align 8, !tbaa !11
  %92 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #6
  store ptr %92, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.GIPS::Parameter", ptr %93, i32 0, i32 0
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(32) %94)
          to label %96 unwind label %102

96:                                               ; preds = %88
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @.str.5)
          to label %98 unwind label %102

98:                                               ; preds = %96
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.GIPS::Parameter", ptr %99, i32 0, i32 3
  %101 = load i32, ptr %100, align 8, !tbaa !26
  switch i32 %101, label %208 [
    i32 0, label %106
    i32 4, label %106
    i32 5, label %106
    i32 1, label %113
    i32 2, label %128
    i32 3, label %151
    i32 6, label %182
    i32 7, label %195
  ]

102:                                              ; preds = %208, %175, %173, %167, %165, %159, %157, %151, %144, %142, %136, %134, %128, %121, %119, %113, %106, %96, %88
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %8, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %9, align 4
  br label %214

106:                                              ; preds = %98, %98, %98
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.GIPS::Parameter", ptr %107, i32 0, i32 7
  %109 = getelementptr inbounds [4 x float], ptr %108, i64 0, i64 0
  %110 = load float, ptr %109, align 8, !tbaa !30
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %7, float noundef %110)
          to label %112 unwind label %102

112:                                              ; preds = %106
  br label %208

113:                                              ; preds = %98
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.GIPS::Parameter", ptr %114, i32 0, i32 7
  %116 = getelementptr inbounds [4 x float], ptr %115, i64 0, i64 0
  %117 = load float, ptr %116, align 8, !tbaa !30
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %7, float noundef %117)
          to label %119 unwind label %102

119:                                              ; preds = %113
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef @.str.6)
          to label %121 unwind label %102

121:                                              ; preds = %119
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.GIPS::Parameter", ptr %122, i32 0, i32 7
  %124 = getelementptr inbounds [4 x float], ptr %123, i64 0, i64 1
  %125 = load float, ptr %124, align 4, !tbaa !30
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %120, float noundef %125)
          to label %127 unwind label %102

127:                                              ; preds = %121
  br label %208

128:                                              ; preds = %98
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.GIPS::Parameter", ptr %129, i32 0, i32 7
  %131 = getelementptr inbounds [4 x float], ptr %130, i64 0, i64 0
  %132 = load float, ptr %131, align 8, !tbaa !30
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %7, float noundef %132)
          to label %134 unwind label %102

134:                                              ; preds = %128
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str.6)
          to label %136 unwind label %102

136:                                              ; preds = %134
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.GIPS::Parameter", ptr %137, i32 0, i32 7
  %139 = getelementptr inbounds [4 x float], ptr %138, i64 0, i64 1
  %140 = load float, ptr %139, align 4, !tbaa !30
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %135, float noundef %140)
          to label %142 unwind label %102

142:                                              ; preds = %136
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @.str.6)
          to label %144 unwind label %102

144:                                              ; preds = %142
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds %"class.GIPS::Parameter", ptr %145, i32 0, i32 7
  %147 = getelementptr inbounds [4 x float], ptr %146, i64 0, i64 2
  %148 = load float, ptr %147, align 8, !tbaa !30
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %143, float noundef %148)
          to label %150 unwind label %102

150:                                              ; preds = %144
  br label %208

151:                                              ; preds = %98
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.GIPS::Parameter", ptr %152, i32 0, i32 7
  %154 = getelementptr inbounds [4 x float], ptr %153, i64 0, i64 0
  %155 = load float, ptr %154, align 8, !tbaa !30
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %7, float noundef %155)
          to label %157 unwind label %102

157:                                              ; preds = %151
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str.6)
          to label %159 unwind label %102

159:                                              ; preds = %157
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds %"class.GIPS::Parameter", ptr %160, i32 0, i32 7
  %162 = getelementptr inbounds [4 x float], ptr %161, i64 0, i64 1
  %163 = load float, ptr %162, align 4, !tbaa !30
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %158, float noundef %163)
          to label %165 unwind label %102

165:                                              ; preds = %159
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef @.str.6)
          to label %167 unwind label %102

167:                                              ; preds = %165
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = getelementptr inbounds %"class.GIPS::Parameter", ptr %168, i32 0, i32 7
  %170 = getelementptr inbounds [4 x float], ptr %169, i64 0, i64 2
  %171 = load float, ptr %170, align 8, !tbaa !30
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %166, float noundef %171)
          to label %173 unwind label %102

173:                                              ; preds = %167
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %172, ptr noundef @.str.6)
          to label %175 unwind label %102

175:                                              ; preds = %173
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = getelementptr inbounds %"class.GIPS::Parameter", ptr %176, i32 0, i32 7
  %178 = getelementptr inbounds [4 x float], ptr %177, i64 0, i64 3
  %179 = load float, ptr %178, align 4, !tbaa !30
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %174, float noundef %179)
          to label %181 unwind label %102

181:                                              ; preds = %175
  br label %208

182:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %183 = getelementptr inbounds [8 x i8], ptr %16, i64 0, i64 0
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.GIPS::Parameter", ptr %184, i32 0, i32 7
  %186 = getelementptr inbounds [4 x float], ptr %185, i64 0, i64 0
  invoke void @_ZL15floatToHexColorPcPKfi(ptr noundef %183, ptr noundef %186, i32 noundef 3)
          to label %187 unwind label %191

187:                                              ; preds = %182
  %188 = getelementptr inbounds [8 x i8], ptr %16, i64 0, i64 0
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %188)
          to label %190 unwind label %191

190:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %208

191:                                              ; preds = %187, %182
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %8, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %214

195:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 10, ptr %17) #6
  %196 = getelementptr inbounds [10 x i8], ptr %17, i64 0, i64 0
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.GIPS::Parameter", ptr %197, i32 0, i32 7
  %199 = getelementptr inbounds [4 x float], ptr %198, i64 0, i64 0
  invoke void @_ZL15floatToHexColorPcPKfi(ptr noundef %196, ptr noundef %199, i32 noundef 4)
          to label %200 unwind label %204

200:                                              ; preds = %195
  %201 = getelementptr inbounds [10 x i8], ptr %17, i64 0, i64 0
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %201)
          to label %203 unwind label %204

203:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 10, ptr %17) #6
  br label %208

204:                                              ; preds = %200, %195
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %8, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 10, ptr %17) #6
  br label %214

208:                                              ; preds = %203, %190, %181, %150, %127, %112, %98
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef @.str.7)
          to label %210 unwind label %102

210:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %14, align 8, !tbaa !11
  %213 = add i64 %212, 1
  store i64 %213, ptr %14, align 8, !tbaa !11
  br label %81, !llvm.loop !31

214:                                              ; preds = %204, %191, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %219

215:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %216

216:                                              ; preds = %215
  %217 = load i64, ptr %10, align 8, !tbaa !11
  %218 = add i64 %217, 1
  store i64 %218, ptr %10, align 8, !tbaa !11
  br label %31, !llvm.loop !33

219:                                              ; preds = %214, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %224

220:                                              ; preds = %36
  %221 = load ptr, ptr @stderr, align 8, !tbaa !5
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.8) #6
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %7)
          to label %223 unwind label %26

223:                                              ; preds = %220
  store i32 1, ptr %11, align 4
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %7) #6
  call void @llvm.lifetime.end.p0(i64 376, ptr %7) #6
  ret void

224:                                              ; preds = %219, %26
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %7) #6
  call void @llvm.lifetime.end.p0(i64 376, ptr %7) #6
  br label %225

225:                                              ; preds = %224
  %226 = load ptr, ptr %8, align 8
  %227 = load i32, ptr %9, align 4
  %228 = insertvalue { ptr, i32 } poison, ptr %226, 0
  %229 = insertvalue { ptr, i32 } %228, i32 %227, 1
  resume { ptr, i32 } %229
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef ptr @_ZN3VFS10getRelPathEPKc(ptr noundef) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL15floatToHexColorPcPKfi(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 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 = { 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 #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = !{!"long", !7, i64 0}
!13 = !{!14, !21, i64 321}
!14 = !{!"_ZTSN4GIPS4NodeE", !15, i64 0, !15, i64 32, !15, i64 64, !10, i64 96, !7, i64 104, !17, i64 296, !21, i64 320, !21, i64 321, !21, i64 322, !22, i64 328, !23, i64 344}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !12, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"_ZTSSt6vectorIN4GIPS9ParameterESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN4GIPS9ParameterESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN4GIPS9ParameterESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4GIPS9ParameterESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN8FileUtil15FileFingerprintE", !12, i64 0, !12, i64 8}
!23 = !{!"_ZTSN4GIPS11PixelFormatE", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !28, i64 96}
!27 = !{!"_ZTSN4GIPS9ParameterE", !15, i64 0, !15, i64 32, !15, i64 64, !28, i64 96, !10, i64 100, !29, i64 104, !29, i64 108, !7, i64 112, !7, i64 128, !7, i64 144, !7, i64 160}
!28 = !{!"_ZTSN4GIPS13ParameterTypeE", !7, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = !{!29, !29, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


; 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::__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.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4GIPS8Pipeline9serializeB5cxx11Ei(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(100) %1, i32 noundef %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %5 = alloca [8 x i8], align 1
  %6 = alloca [10 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %4)
  %7 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str)
          to label %8 unwind label %12

8:                                                ; preds = %3
  %9 = icmp eq i32 %2, 0
  br i1 %9, label %10, label %14

10:                                               ; preds = %8
  %11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.1)
          to label %14 unwind label %12

12:                                               ; preds = %._crit_edge, %10, %3
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %120

14:                                               ; preds = %10, %8
  %15 = call noundef i64 @_ZNKSt6vectorIPN4GIPS4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp eq i64 %15, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph42

.lr.ph42:                                         ; preds = %14
  %16 = sext i32 %2 to i64
  br label %21

.loopexit:                                        ; preds = %115, %49
  %17 = call noundef i64 @_ZNKSt6vectorIPN4GIPS4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %18 = icmp ult i64 %34, %17
  br i1 %18, label %21, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %.loopexit, %14
  %19 = load ptr, ptr @stderr, align 8, !tbaa !7
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.8) #7
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %4)
          to label %119 unwind label %12

21:                                               ; preds = %.lr.ph42, %.loopexit
  %.03541 = phi i64 [ 0, %.lr.ph42 ], [ %34, %.loopexit ]
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4GIPS4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.03541) #6
  %23 = load ptr, ptr %22, align 8, !tbaa !7
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  %25 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  %26 = invoke noundef ptr @_ZN3VFS10getRelPathEPKc(ptr noundef %25)
          to label %27 unwind label %41

27:                                               ; preds = %21
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.2)
          to label %29 unwind label %41

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef %26)
          to label %31 unwind label %41

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.3)
          to label %33 unwind label %41

33:                                               ; preds = %31
  %34 = add nuw i64 %.03541, 1
  %35 = icmp eq i64 %34, %16
  br i1 %35, label %36, label %43

36:                                               ; preds = %33
  %37 = call noundef i64 @_ZNKSt6vectorIPN4GIPS4NodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %38 = icmp ugt i64 %37, %16
  br i1 %38, label %39, label %43

39:                                               ; preds = %36
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.1)
          to label %43 unwind label %41

41:                                               ; preds = %47, %39, %31, %29, %27, %21
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %120

43:                                               ; preds = %39, %36, %33
  %44 = getelementptr inbounds i8, ptr %23, i64 321
  %45 = load i8, ptr %44, align 1, !tbaa !11, !range !24, !noundef !25
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %49, label %47

47:                                               ; preds = %43
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.4)
          to label %49 unwind label %41

49:                                               ; preds = %47, %43
  %50 = getelementptr inbounds i8, ptr %23, i64 296
  %51 = call noundef i64 @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %.not43 = icmp eq i64 %51, 0
  br i1 %.not43, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %49, %115
  %.03140 = phi i64 [ %116, %115 ], [ 0, %49 ]
  %52 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %.03140) #6
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %54 unwind label %59

54:                                               ; preds = %.lr.ph
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @.str.5)
          to label %56 unwind label %59

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %52, i64 96
  %58 = load i32, ptr %57, align 8, !tbaa !26
  switch i32 %58, label %113 [
    i32 0, label %.invoke
    i32 4, label %.invoke
    i32 5, label %.invoke
    i32 1, label %61
    i32 2, label %67
    i32 3, label %79
    i32 6, label %101
    i32 7, label %107
  ]

59:                                               ; preds = %.invoke, %113, %95, %91, %89, %85, %83, %79, %77, %73, %71, %67, %65, %61, %54, %.lr.ph
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %120

61:                                               ; preds = %56
  %62 = getelementptr inbounds i8, ptr %52, i64 112
  %63 = load float, ptr %62, align 8, !tbaa !30
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %4, float noundef %63)
          to label %65 unwind label %59

65:                                               ; preds = %61
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.6)
          to label %.invoke unwind label %59

67:                                               ; preds = %56
  %68 = getelementptr inbounds i8, ptr %52, i64 112
  %69 = load float, ptr %68, align 8, !tbaa !30
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %4, float noundef %69)
          to label %71 unwind label %59

71:                                               ; preds = %67
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.6)
          to label %73 unwind label %59

73:                                               ; preds = %71
  %74 = getelementptr inbounds i8, ptr %52, i64 116
  %75 = load float, ptr %74, align 4, !tbaa !30
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %72, float noundef %75)
          to label %77 unwind label %59

77:                                               ; preds = %73
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef nonnull @.str.6)
          to label %.invoke unwind label %59

79:                                               ; preds = %56
  %80 = getelementptr inbounds i8, ptr %52, i64 112
  %81 = load float, ptr %80, align 8, !tbaa !30
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %4, float noundef %81)
          to label %83 unwind label %59

83:                                               ; preds = %79
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.6)
          to label %85 unwind label %59

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %52, i64 116
  %87 = load float, ptr %86, align 4, !tbaa !30
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %84, float noundef %87)
          to label %89 unwind label %59

89:                                               ; preds = %85
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull @.str.6)
          to label %91 unwind label %59

91:                                               ; preds = %89
  %92 = getelementptr inbounds i8, ptr %52, i64 120
  %93 = load float, ptr %92, align 8, !tbaa !30
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %90, float noundef %93)
          to label %95 unwind label %59

95:                                               ; preds = %91
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @.str.6)
          to label %.invoke unwind label %59

.invoke:                                          ; preds = %95, %77, %65, %56, %56, %56
  %.sink = phi i64 [ 112, %56 ], [ 112, %56 ], [ 112, %56 ], [ 116, %65 ], [ 120, %77 ], [ 124, %95 ]
  %97 = phi ptr [ %4, %56 ], [ %4, %56 ], [ %4, %56 ], [ %66, %65 ], [ %78, %77 ], [ %96, %95 ]
  %98 = getelementptr inbounds i8, ptr %52, i64 %.sink
  %99 = load float, ptr %98, align 4, !tbaa !30
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %97, float noundef %99)
          to label %113 unwind label %59

101:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %102 = getelementptr inbounds i8, ptr %52, i64 112
  call void @_ZL15floatToHexColorPcPKfi(ptr noundef nonnull %5, ptr noundef nonnull %102, i32 noundef 3)
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %5)
          to label %104 unwind label %105

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %113

105:                                              ; preds = %101
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %120

107:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %6) #6
  %108 = getelementptr inbounds i8, ptr %52, i64 112
  call void @_ZL15floatToHexColorPcPKfi(ptr noundef nonnull %6, ptr noundef nonnull %108, i32 noundef 4)
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %6)
          to label %110 unwind label %111

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %6) #6
  br label %113

111:                                              ; preds = %107
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %6) #6
  br label %120

113:                                              ; preds = %.invoke, %110, %104, %56
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.7)
          to label %115 unwind label %59

115:                                              ; preds = %113
  %116 = add nuw i64 %.03140, 1
  %117 = call noundef i64 @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %118 = icmp ult i64 %116, %117
  br i1 %118, label %.lr.ph, label %.loopexit, !llvm.loop !31

119:                                              ; preds = %._crit_edge
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %4) #6
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %4) #6
  ret void

120:                                              ; preds = %41, %111, %105, %59, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %13, %12 ], [ %42, %41 ], [ %60, %59 ], [ %112, %111 ], [ %106, %105 ]
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %4) #6
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn.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 uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef ptr @_ZN3VFS10getRelPathEPKc(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL15floatToHexColorPcPKfi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 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 = { 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 #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree 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 #6 = { nounwind }
attributes #7 = { cold 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !21, i64 321}
!12 = !{!"_ZTSN4GIPS4NodeE", !13, i64 0, !13, i64 32, !13, i64 64, !16, i64 96, !9, i64 104, !17, i64 296, !21, i64 320, !21, i64 321, !21, i64 322, !22, i64 328, !23, i64 344}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !9, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !8, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSSt6vectorIN4GIPS9ParameterESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN4GIPS9ParameterESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN4GIPS9ParameterESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4GIPS9ParameterESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!21 = !{!"bool", !9, i64 0}
!22 = !{!"_ZTSN8FileUtil15FileFingerprintE", !15, i64 0, !15, i64 8}
!23 = !{!"_ZTSN4GIPS11PixelFormatE", !9, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !28, i64 96}
!27 = !{!"_ZTSN4GIPS9ParameterE", !13, i64 0, !13, i64 32, !13, i64 64, !28, i64 96, !16, i64 100, !29, i64 104, !29, i64 108, !9, i64 112, !9, i64 128, !9, i64 144, !9, i64 160}
!28 = !{!"_ZTSN4GIPS13ParameterTypeE", !9, i64 0}
!29 = !{!"float", !9, i64 0}
!30 = !{!29, !29, i64 0}
!31 = distinct !{!31, !6}


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