; LLVM IR from kajott/GIPS :: src/gips_core.ll (ZN4GIPS8Pipeline6renderEjiiNS_11PixelFormatEi)

; 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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.8" = type { float }
%"class.GIPS::Pipeline" = type <{ %"class.std::vector.3", 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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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", i8, i8, i8, [5 x i8], %"class.FileUtil::FileFingerprint", i32, [4 x i8] }>
%"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] }
%"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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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] }

@stderr = external global ptr, align 8
@glad_glBindTexture = external global ptr, align 8
@glad_glTexParameteri = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glTexImage2D = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [31 x i8], align 1
@glad_glViewport = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@glad_glUniform2f = external global ptr, align 8
@glad_glUniform4f = external global ptr, align 8
@glad_glUniform1f = external global ptr, align 8
@glad_glUniform2fv = external global ptr, align 8
@glad_glUniform3fv = external global ptr, align 8
@glad_glUniform4fv = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@glad_glDrawArrays = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@glad_glUseProgram = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@glad_glFlush = external global ptr, align 8
@glad_glFinish = external global ptr, align 8

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4GIPS8Pipeline6renderEjiiNS_11PixelFormatEi(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::chrono::time_point", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::chrono::time_point", align 8
  %35 = alloca %"class.std::chrono::duration.8", align 4
  %36 = alloca %"class.std::chrono::duration", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !9
  %37 = load ptr, ptr %7, align 8
  call void @_ZN6GLutil10clearErrorEv()
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %44, label %40

40:                                               ; preds = %6
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = call noundef i32 @_ZNK4GIPS8Pipeline9nodeCountEv(ptr noundef nonnull align 8 dereferenceable(100) %37)
  %43 = icmp sgt i32 %41, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %40, %6
  %45 = call noundef i32 @_ZNK4GIPS8Pipeline9nodeCountEv(ptr noundef nonnull align 8 dereferenceable(100) %37)
  store i32 %45, ptr %12, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %44, %40
  %47 = load i32, ptr %11, align 4, !tbaa !11
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %51

49:                                               ; preds = %46
  %50 = call noundef i32 @_ZNK4GIPS8Pipeline12detectFormatEv(ptr noundef nonnull align 8 dereferenceable(100) %37)
  store i32 %50, ptr %11, align 4, !tbaa !11
  br label %51

51:                                               ; preds = %49, %46
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !11
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.7, i32 noundef %53, i32 noundef %54, i32 noundef %55, i32 noundef %56) #7
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !13
  %61 = icmp ne i32 %58, %60
  br i1 %61, label %72, label %62

62:                                               ; preds = %51
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  %65 = load i32, ptr %64, align 4, !tbaa !23
  %66 = icmp ne i32 %63, %65
  br i1 %66, label %72, label %67

67:                                               ; preds = %62
  %68 = load i32, ptr %11, align 4, !tbaa !11
  %69 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 3
  %70 = load i32, ptr %69, align 8, !tbaa !24
  %71 = icmp ne i32 %68, %70
  br i1 %71, label %72, label %115

72:                                               ; preds = %67, %62, %51
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !13
  %76 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  %77 = load i32, ptr %76, align 4, !tbaa !23
  %78 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 3
  %79 = load i32, ptr %78, align 8, !tbaa !24
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.8, i32 noundef %75, i32 noundef %77, i32 noundef %79) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %103, %72
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = icmp slt i32 %82, 2
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %106

85:                                               ; preds = %81
  %86 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 4
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [2 x i32], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  call void %86(i32 noundef 3553, i32 noundef %91)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %92 = load i32, ptr %11, align 4, !tbaa !11
  switch i32 %92, label %96 [
    i32 16, label %93
    i32 116, label %94
    i32 132, label %95
  ]

93:                                               ; preds = %85
  store i32 32859, ptr %14, align 4, !tbaa !9
  store i32 5123, ptr %15, align 4, !tbaa !9
  br label %97

94:                                               ; preds = %85
  store i32 34842, ptr %14, align 4, !tbaa !9
  store i32 5126, ptr %15, align 4, !tbaa !9
  br label %97

95:                                               ; preds = %85
  store i32 34836, ptr %14, align 4, !tbaa !9
  store i32 5126, ptr %15, align 4, !tbaa !9
  br label %97

96:                                               ; preds = %85
  store i32 32856, ptr %14, align 4, !tbaa !9
  store i32 5121, ptr %15, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %96, %95, %94, %93
  %98 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  call void %98(i32 noundef 3553, i32 noundef 0, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef 0, i32 noundef 6408, i32 noundef %102, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %103

103:                                              ; preds = %97
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %13, align 4, !tbaa !9
  br label %81, !llvm.loop !25

106:                                              ; preds = %84
  %107 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %107(i32 noundef 3553, i32 noundef 0)
  %108 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef @.str.9)
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  store i32 %109, ptr %110, align 8, !tbaa !13
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  store i32 %111, ptr %112, align 4, !tbaa !23
  %113 = load i32, ptr %11, align 4, !tbaa !11
  %114 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 3
  store i32 %113, ptr %114, align 8, !tbaa !24
  br label %115

115:                                              ; preds = %106, %67
  %116 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  call void %116(i32 noundef 0, i32 noundef 0, i32 noundef %117, i32 noundef %118)
  %119 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %120 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #7
  %121 = getelementptr inbounds %"class.std::chrono::time_point", ptr %16, i32 0, i32 0
  %122 = getelementptr inbounds %"class.std::chrono::duration", ptr %121, i32 0, i32 0
  store i64 %120, ptr %122, align 8
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 9
  store i32 %123, ptr %124, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %354, %115
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %357

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %131 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 0
  %132 = load i32, ptr %17, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4GIPS4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #7
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  store ptr %135, ptr %19, align 8, !tbaa !5
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = call noundef zeroext i1 @_ZNK4GIPS4Node7enabledEv(ptr noundef nonnull align 8 dereferenceable(348) %136)
  br i1 %137, label %139, label %138

138:                                              ; preds = %130
  store i32 8, ptr %18, align 4
  br label %351

139:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %347, %139
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = call noundef i32 @_ZNK4GIPS4Node9passCountEv(ptr noundef nonnull align 8 dereferenceable(348) %142)
  %144 = icmp slt i32 %141, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %140
  store i32 9, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %350

146:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %147 = load ptr, ptr %19, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.GIPS::Node", ptr %147, i32 0, i32 5
  %149 = load i32, ptr %20, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [4 x %"struct.GIPS::Node::PassData"], ptr %148, i64 0, i64 %150
  store ptr %151, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %152 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 9
  %153 = load i32, ptr %152, align 8, !tbaa !27
  %154 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 4
  %155 = getelementptr inbounds [2 x i32], ptr %154, i64 0, i64 0
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = icmp eq i32 %153, %156
  br i1 %157, label %158, label %162

158:                                              ; preds = %146
  %159 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 4
  %160 = getelementptr inbounds [2 x i32], ptr %159, i64 0, i64 1
  %161 = load i32, ptr %160, align 4, !tbaa !9
  br label %166

162:                                              ; preds = %146
  %163 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 4
  %164 = getelementptr inbounds [2 x i32], ptr %163, i64 0, i64 0
  %165 = load i32, ptr %164, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %162, %158
  %167 = phi i32 [ %161, %158 ], [ %165, %162 ]
  store i32 %167, ptr %22, align 4, !tbaa !9
  call void @_ZN6GLutil10clearErrorEv()
  %168 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 5
  %169 = load i32, ptr %22, align 4, !tbaa !9
  %170 = call noundef zeroext i1 @_ZN6GLutil3FBO5beginEj(ptr noundef nonnull align 4 dereferenceable(8) %168, i32 noundef %169)
  br i1 %170, label %177, label %171

171:                                              ; preds = %166
  %172 = load ptr, ptr @stderr, align 8, !tbaa !5
  %173 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 5
  %174 = getelementptr inbounds %"class.GLutil::FBO", ptr %173, i32 0, i32 1
  %175 = load i32, ptr %174, align 4, !tbaa !28
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.11, i32 noundef %175) #7
  store i32 11, ptr %18, align 4
  br label %344

177:                                              ; preds = %166
  %178 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 9
  %180 = load i32, ptr %179, align 8, !tbaa !27
  call void %178(i32 noundef 3553, i32 noundef %180)
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %181, i32 0, i32 2
  %183 = call noundef zeroext i1 @_ZNK6GLutil7Program3useEv(ptr noundef nonnull align 8 dereferenceable(17) %182)
  %184 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef @.str.12)
  %185 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %186 = load ptr, ptr %21, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %186, i32 0, i32 0
  %188 = load i8, ptr %187, align 8, !tbaa !29, !range !33, !noundef !34
  %189 = trunc i8 %188 to i1
  %190 = zext i1 %189 to i64
  %191 = select i1 %189, i32 9729, i32 9728
  call void %185(i32 noundef 3553, i32 noundef 10241, i32 noundef %191)
  %192 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %193, i32 0, i32 0
  %195 = load i8, ptr %194, align 8, !tbaa !29, !range !33, !noundef !34
  %196 = trunc i8 %195 to i1
  %197 = zext i1 %196 to i64
  %198 = select i1 %196, i32 9729, i32 9728
  call void %192(i32 noundef 3553, i32 noundef 10240, i32 noundef %198)
  %199 = load ptr, ptr @glad_glUniform2f, align 8, !tbaa !5
  %200 = load ptr, ptr %21, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %200, i32 0, i32 3
  %202 = load i32, ptr %201, align 8, !tbaa !35
  %203 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  %204 = load i32, ptr %203, align 8, !tbaa !13
  %205 = sitofp i32 %204 to float
  %206 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  %207 = load i32, ptr %206, align 4, !tbaa !23
  %208 = sitofp i32 %207 to float
  call void %199(i32 noundef %202, float noundef %205, float noundef %208)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 0.000000e+00, ptr %23, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store double 0.000000e+00, ptr %24, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store double 1.000000e+00, ptr %25, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store double 1.000000e+00, ptr %26, align 8, !tbaa !36
  %209 = load ptr, ptr %21, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %209, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !38
  switch i32 %211, label %244 [
    i32 1, label %212
    i32 2, label %219
  ]

212:                                              ; preds = %177
  %213 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  %214 = load i32, ptr %213, align 8, !tbaa !13
  %215 = sitofp i32 %214 to double
  store double %215, ptr %25, align 8, !tbaa !36
  %216 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  %217 = load i32, ptr %216, align 4, !tbaa !23
  %218 = sitofp i32 %217 to double
  store double %218, ptr %26, align 8, !tbaa !36
  br label %245

219:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store double 1.000000e+00, ptr %27, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %220 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  %221 = load i32, ptr %220, align 8, !tbaa !13
  %222 = sitofp i32 %221 to double
  %223 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  %224 = load i32, ptr %223, align 4, !tbaa !23
  %225 = sitofp i32 %224 to double
  %226 = fdiv double %222, %225
  store double %226, ptr %28, align 8, !tbaa !36
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %228 = load double, ptr %227, align 8, !tbaa !36
  %229 = fneg double %228
  store double %229, ptr %23, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 1.000000e+00, ptr %29, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %230 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 2
  %231 = load i32, ptr %230, align 4, !tbaa !23
  %232 = sitofp i32 %231 to double
  %233 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 1
  %234 = load i32, ptr %233, align 8, !tbaa !13
  %235 = sitofp i32 %234 to double
  %236 = fdiv double %232, %235
  store double %236, ptr %30, align 8, !tbaa !36
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %238 = load double, ptr %237, align 8, !tbaa !36
  %239 = fneg double %238
  store double %239, ptr %24, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  %240 = load double, ptr %23, align 8, !tbaa !36
  %241 = fmul double -2.000000e+00, %240
  store double %241, ptr %25, align 8, !tbaa !36
  %242 = load double, ptr %24, align 8, !tbaa !36
  %243 = fmul double -2.000000e+00, %242
  store double %243, ptr %26, align 8, !tbaa !36
  br label %245

244:                                              ; preds = %177
  br label %245

245:                                              ; preds = %244, %219, %212
  %246 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  %247 = load ptr, ptr %21, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %247, i32 0, i32 4
  %249 = load i32, ptr %248, align 4, !tbaa !39
  %250 = load double, ptr %23, align 8, !tbaa !36
  %251 = fptrunc double %250 to float
  %252 = load double, ptr %24, align 8, !tbaa !36
  %253 = fptrunc double %252 to float
  %254 = load double, ptr %25, align 8, !tbaa !36
  %255 = fptrunc double %254 to float
  %256 = load double, ptr %26, align 8, !tbaa !36
  %257 = fptrunc double %256 to float
  call void %246(i32 noundef %249, float noundef %251, float noundef %253, float noundef %255, float noundef %257)
  %258 = load ptr, ptr %21, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %258, i32 0, i32 5
  %260 = load i32, ptr %259, align 8, !tbaa !40
  %261 = icmp sge i32 %260, 0
  br i1 %261, label %262, label %283

262:                                              ; preds = %245
  %263 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  %264 = load ptr, ptr %21, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.GIPS::Node::PassData", ptr %264, i32 0, i32 5
  %266 = load i32, ptr %265, align 8, !tbaa !40
  %267 = load double, ptr %23, align 8, !tbaa !36
  %268 = fneg double %267
  %269 = load double, ptr %25, align 8, !tbaa !36
  %270 = fdiv double %268, %269
  %271 = fptrunc double %270 to float
  %272 = load double, ptr %24, align 8, !tbaa !36
  %273 = fneg double %272
  %274 = load double, ptr %26, align 8, !tbaa !36
  %275 = fdiv double %273, %274
  %276 = fptrunc double %275 to float
  %277 = load double, ptr %25, align 8, !tbaa !36
  %278 = fdiv double 1.000000e+00, %277
  %279 = fptrunc double %278 to float
  %280 = load double, ptr %26, align 8, !tbaa !36
  %281 = fdiv double 1.000000e+00, %280
  %282 = fptrunc double %281 to float
  call void %263(i32 noundef %266, float noundef %271, float noundef %276, float noundef %279, float noundef %282)
  br label %283

283:                                              ; preds = %262, %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %284

284:                                              ; preds = %331, %283
  %285 = load i32, ptr %31, align 4, !tbaa !9
  %286 = load ptr, ptr %19, align 8, !tbaa !5
  %287 = call noundef i32 @_ZNK4GIPS4Node10paramCountEv(ptr noundef nonnull align 8 dereferenceable(348) %286)
  %288 = icmp slt i32 %285, %287
  br i1 %288, label %290, label %289

289:                                              ; preds = %284
  store i32 13, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %334

290:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %291 = load ptr, ptr %19, align 8, !tbaa !5
  %292 = getelementptr inbounds %"class.GIPS::Node", ptr %291, i32 0, i32 6
  %293 = load i32, ptr %31, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %292, i64 noundef %294) #7
  store ptr %295, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %296 = load ptr, ptr %32, align 8, !tbaa !5
  %297 = getelementptr inbounds %"class.GIPS::Parameter", ptr %296, i32 0, i32 10
  %298 = load i32, ptr %20, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [4 x i32], ptr %297, i64 0, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !9
  store i32 %301, ptr %33, align 4, !tbaa !9
  %302 = load ptr, ptr %32, align 8, !tbaa !5
  %303 = getelementptr inbounds %"class.GIPS::Parameter", ptr %302, i32 0, i32 3
  %304 = load i32, ptr %303, align 8, !tbaa !41
  switch i32 %304, label %330 [
    i32 0, label %305
    i32 4, label %305
    i32 5, label %305
    i32 1, label %312
    i32 2, label %318
    i32 6, label %318
    i32 3, label %324
    i32 7, label %324
  ]

305:                                              ; preds = %290, %290, %290
  %306 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !5
  %307 = load i32, ptr %33, align 4, !tbaa !9
  %308 = load ptr, ptr %32, align 8, !tbaa !5
  %309 = getelementptr inbounds %"class.GIPS::Parameter", ptr %308, i32 0, i32 7
  %310 = getelementptr inbounds [4 x float], ptr %309, i64 0, i64 0
  %311 = load float, ptr %310, align 8, !tbaa !47
  call void %306(i32 noundef %307, float noundef %311)
  br label %330

312:                                              ; preds = %290
  %313 = load ptr, ptr @glad_glUniform2fv, align 8, !tbaa !5
  %314 = load i32, ptr %33, align 4, !tbaa !9
  %315 = load ptr, ptr %32, align 8, !tbaa !5
  %316 = getelementptr inbounds %"class.GIPS::Parameter", ptr %315, i32 0, i32 7
  %317 = getelementptr inbounds [4 x float], ptr %316, i64 0, i64 0
  call void %313(i32 noundef %314, i32 noundef 1, ptr noundef %317)
  br label %330

318:                                              ; preds = %290, %290
  %319 = load ptr, ptr @glad_glUniform3fv, align 8, !tbaa !5
  %320 = load i32, ptr %33, align 4, !tbaa !9
  %321 = load ptr, ptr %32, align 8, !tbaa !5
  %322 = getelementptr inbounds %"class.GIPS::Parameter", ptr %321, i32 0, i32 7
  %323 = getelementptr inbounds [4 x float], ptr %322, i64 0, i64 0
  call void %319(i32 noundef %320, i32 noundef 1, ptr noundef %323)
  br label %330

324:                                              ; preds = %290, %290
  %325 = load ptr, ptr @glad_glUniform4fv, align 8, !tbaa !5
  %326 = load i32, ptr %33, align 4, !tbaa !9
  %327 = load ptr, ptr %32, align 8, !tbaa !5
  %328 = getelementptr inbounds %"class.GIPS::Parameter", ptr %327, i32 0, i32 7
  %329 = getelementptr inbounds [4 x float], ptr %328, i64 0, i64 0
  call void %325(i32 noundef %326, i32 noundef 1, ptr noundef %329)
  br label %330

330:                                              ; preds = %324, %318, %312, %305, %290
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %331

331:                                              ; preds = %330
  %332 = load i32, ptr %31, align 4, !tbaa !9
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %31, align 4, !tbaa !9
  br label %284, !llvm.loop !48

334:                                              ; preds = %289
  %335 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef @.str.13)
  %336 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %336(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %337 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef @.str.14)
  %338 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %338(i32 noundef 0)
  %339 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %339(i32 noundef 3553, i32 noundef 0)
  %340 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 5
  call void @_ZN6GLutil3FBO3endEv(ptr noundef nonnull align 4 dereferenceable(8) %340)
  %341 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef @.str.15)
  %342 = load i32, ptr %22, align 4, !tbaa !9
  %343 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 9
  store i32 %342, ptr %343, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  store i32 0, ptr %18, align 4
  br label %344

344:                                              ; preds = %334, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %345 = load i32, ptr %18, align 4
  switch i32 %345, label %371 [
    i32 0, label %346
    i32 11, label %347
  ]

346:                                              ; preds = %344
  br label %347

347:                                              ; preds = %346, %344
  %348 = load i32, ptr %20, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %20, align 4, !tbaa !9
  br label %140, !llvm.loop !49

350:                                              ; preds = %145
  store i32 0, ptr %18, align 4
  br label %351

351:                                              ; preds = %350, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %352 = load i32, ptr %18, align 4
  switch i32 %352, label %371 [
    i32 0, label %353
    i32 8, label %354
  ]

353:                                              ; preds = %351
  br label %354

354:                                              ; preds = %353, %351
  %355 = load i32, ptr %17, align 4, !tbaa !9
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %17, align 4, !tbaa !9
  br label %125, !llvm.loop !50

357:                                              ; preds = %129
  %358 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %359 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 9
  %360 = load i32, ptr %359, align 8, !tbaa !27
  call void %358(i32 noundef 3553, i32 noundef %360)
  %361 = load ptr, ptr @glad_glFlush, align 8, !tbaa !5
  call void %361()
  %362 = load ptr, ptr @glad_glFinish, align 8, !tbaa !5
  call void %362()
  %363 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %363(i32 noundef 3553, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %364 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #7
  %365 = getelementptr inbounds %"class.std::chrono::time_point", ptr %34, i32 0, i32 0
  %366 = getelementptr inbounds %"class.std::chrono::duration", ptr %365, i32 0, i32 0
  store i64 %364, ptr %366, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %367 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %368 = getelementptr inbounds %"class.std::chrono::duration", ptr %36, i32 0, i32 0
  store i64 %367, ptr %368, align 8
  call void @_ZNSt6chrono8durationIfSt5ratioILl1ELl1000EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %369 = call noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4) %35)
  %370 = getelementptr inbounds %"class.GIPS::Pipeline", ptr %37, i32 0, i32 13
  store float %369, ptr %370, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  ret void

371:                                              ; preds = %351, %344
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6GLutil10clearErrorEv() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4GIPS8Pipeline9nodeCountEv(ptr noundef nonnull align 8 dereferenceable(100)) #5 align 2

declare noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef) #6

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4GIPS4Node7enabledEv(ptr noundef nonnull align 8 dereferenceable(348)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4GIPS4Node9passCountEv(ptr noundef nonnull align 8 dereferenceable(348)) #5 align 2

declare noundef zeroext i1 @_ZN6GLutil3FBO5beginEj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GLutil7Program3useEv(ptr noundef nonnull align 8 dereferenceable(17)) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4GIPS4Node10paramCountEv(ptr noundef nonnull align 8 dereferenceable(348)) #5 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) #1 align 2

declare void @_ZN6GLutil3FBO3endEv(ptr noundef nonnull align 4 dereferenceable(8)) #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"_ZTSN4GIPS11PixelFormatE", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"_ZTSN4GIPS8PipelineE", !15, i64 0, !10, i64 24, !10, i64 28, !12, i64 32, !7, i64 36, !19, i64 44, !20, i64 52, !21, i64 56, !10, i64 88, !20, i64 92, !20, i64 93, !22, i64 96}
!15 = !{!"_ZTSSt6vectorIPN4GIPS4NodeESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN4GIPS4NodeESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN4GIPS4NodeESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN4GIPS4NodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN6GLutil3FBOE", !10, i64 0, !10, i64 4}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN6GLutil6ShaderE", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !20, i64 24}
!22 = !{!"float", !7, i64 0}
!23 = !{!14, !10, i64 28}
!24 = !{!14, !12, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!14, !10, i64 88}
!28 = !{!14, !10, i64 48}
!29 = !{!30, !20, i64 0}
!30 = !{!"_ZTSN4GIPS4Node8PassDataE", !20, i64 0, !31, i64 4, !32, i64 8, !10, i64 32, !10, i64 36, !10, i64 40}
!31 = !{!"_ZTSN4GIPS12CoordMapModeE", !7, i64 0}
!32 = !{!"_ZTSN6GLutil7ProgramE", !10, i64 0, !10, i64 4, !6, i64 8, !20, i64 16}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!30, !10, i64 32}
!36 = !{!37, !37, i64 0}
!37 = !{!"double", !7, i64 0}
!38 = !{!30, !31, i64 4}
!39 = !{!30, !10, i64 36}
!40 = !{!30, !10, i64 40}
!41 = !{!42, !46, i64 96}
!42 = !{!"_ZTSN4GIPS9ParameterE", !43, i64 0, !43, i64 32, !43, i64 64, !46, i64 96, !10, i64 100, !22, i64 104, !22, i64 108, !7, i64 112, !7, i64 128, !7, i64 144, !7, i64 160}
!43 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !44, i64 0, !45, i64 8, !7, i64 16}
!44 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!45 = !{!"long", !7, i64 0}
!46 = !{!"_ZTSN4GIPS13ParameterTypeE", !7, i64 0}
!47 = !{!22, !22, i64 0}
!48 = distinct !{!48, !26}
!49 = distinct !{!49, !26}
!50 = distinct !{!50, !26}
!51 = !{!14, !22, i64 96}


; 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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.8" = type { float }
%"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] }>

@stderr = external local_unnamed_addr global ptr, align 8
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glTexParameteri = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glTexImage2D = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [31 x i8], align 1
@glad_glViewport = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@glad_glUniform2f = external local_unnamed_addr global ptr, align 8
@glad_glUniform4f = external local_unnamed_addr global ptr, align 8
@glad_glUniform1f = external local_unnamed_addr global ptr, align 8
@glad_glUniform2fv = external local_unnamed_addr global ptr, align 8
@glad_glUniform3fv = external local_unnamed_addr global ptr, align 8
@glad_glUniform4fv = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@glad_glDrawArrays = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@glad_glFlush = external local_unnamed_addr global ptr, align 8
@glad_glFinish = external local_unnamed_addr global ptr, align 8

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4GIPS8Pipeline6renderEjiiNS_11PixelFormatEi(ptr noundef nonnull align 8 dereferenceable(100) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 align 2 {
  %7 = alloca %"class.std::chrono::time_point", align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca %"class.std::chrono::time_point", align 8
  %13 = alloca %"class.std::chrono::duration.8", align 4
  %14 = alloca %"class.std::chrono::duration", align 8
  tail call void @_ZN6GLutil10clearErrorEv()
  %15 = icmp slt i32 %5, 0
  br i1 %15, label %19, label %16

16:                                               ; preds = %6
  %17 = tail call noundef i32 @_ZNK4GIPS8Pipeline9nodeCountEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  %18 = icmp slt i32 %17, %5
  br i1 %18, label %19, label %21

19:                                               ; preds = %16, %6
  %20 = tail call noundef i32 @_ZNK4GIPS8Pipeline9nodeCountEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %21

21:                                               ; preds = %19, %16
  %.072 = phi i32 [ %20, %19 ], [ %5, %16 ]
  %22 = icmp eq i32 %4, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  %24 = tail call noundef i32 @_ZNK4GIPS8Pipeline12detectFormatEv(ptr noundef nonnull align 8 dereferenceable(100) %0)
  br label %25

25:                                               ; preds = %23, %21
  %.0 = phi i32 [ %24, %23 ], [ %4, %21 ]
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.7, i32 noundef %2, i32 noundef %3, i32 noundef %.0, i32 noundef %.072) #8
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %.not = icmp eq i32 %29, %2
  %30 = getelementptr inbounds i8, ptr %0, i64 28
  %31 = load i32, ptr %30, align 4
  %.not87 = icmp eq i32 %31, %3
  %or.cond = select i1 %.not, i1 %.not87, i1 false
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  %33 = load i32, ptr %32, align 8
  %.not88 = icmp eq i32 %.0, %33
  %or.cond91 = select i1 %or.cond, i1 %.not88, i1 false
  br i1 %or.cond91, label %49, label %34

34:                                               ; preds = %25
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.8, i32 noundef %29, i32 noundef %31, i32 noundef %33) #8
  %37 = getelementptr inbounds i8, ptr %0, i64 36
  %38 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %39 = load i32, ptr %37, align 4, !tbaa !21
  tail call void %38(i32 noundef 3553, i32 noundef %39)
  %40 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  switch i32 %.0, label %42 [
    i32 16, label %.thread
    i32 116, label %.thread110
    i32 132, label %.thread113
  ]

.thread:                                          ; preds = %34
  tail call void %40(i32 noundef 3553, i32 noundef 0, i32 noundef 32859, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 6408, i32 noundef 5123, ptr noundef null)
  br label %43

.thread110:                                       ; preds = %34
  tail call void %40(i32 noundef 3553, i32 noundef 0, i32 noundef 34842, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 6408, i32 noundef 5126, ptr noundef null)
  br label %43

.thread113:                                       ; preds = %34
  tail call void %40(i32 noundef 3553, i32 noundef 0, i32 noundef 34836, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 6408, i32 noundef 5126, ptr noundef null)
  br label %43

42:                                               ; preds = %34
  tail call void %40(i32 noundef 3553, i32 noundef 0, i32 noundef 32856, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 6408, i32 noundef 5121, ptr noundef null)
  br label %43

43:                                               ; preds = %.thread, %42, %.thread110, %.thread113
  %.081.1 = phi i32 [ 5121, %42 ], [ 5126, %.thread113 ], [ 5126, %.thread110 ], [ 5123, %.thread ]
  %.079.1 = phi i32 [ 32856, %42 ], [ 34836, %.thread113 ], [ 34842, %.thread110 ], [ 32859, %.thread ]
  %44 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %45 = load i32, ptr %41, align 8, !tbaa !21
  tail call void %44(i32 noundef 3553, i32 noundef %45)
  %46 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  tail call void %46(i32 noundef 3553, i32 noundef 0, i32 noundef %.079.1, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 6408, i32 noundef %.081.1, ptr noundef null)
  %47 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  tail call void %47(i32 noundef 3553, i32 noundef 0)
  %48 = tail call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef nonnull @.str.9)
  store i32 %2, ptr %28, align 8, !tbaa !9
  store i32 %3, ptr %30, align 4, !tbaa !22
  store i32 %.0, ptr %32, align 8, !tbaa !23
  br label %49

49:                                               ; preds = %25, %43
  %50 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  tail call void %50(i32 noundef 0, i32 noundef 0, i32 noundef %2, i32 noundef %3)
  %51 = tail call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef nonnull @.str.10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %52 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  store i64 %52, ptr %7, align 8
  %53 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %1, ptr %53, align 8, !tbaa !24
  %54 = icmp sgt i32 %.072, 0
  br i1 %54, label %.lr.ph98, label %._crit_edge99

.lr.ph98:                                         ; preds = %49
  %55 = getelementptr inbounds i8, ptr %0, i64 36
  %56 = getelementptr inbounds i8, ptr %0, i64 40
  %57 = getelementptr inbounds i8, ptr %0, i64 44
  %58 = getelementptr inbounds i8, ptr %0, i64 48
  %wide.trip.count = zext nneg i32 %.072 to i64
  br label %68

._crit_edge99.loopexit:                           ; preds = %.loopexit
  %.pre = load i32, ptr %53, align 8, !tbaa !24
  br label %._crit_edge99

._crit_edge99:                                    ; preds = %._crit_edge99.loopexit, %49
  %59 = phi i32 [ %.pre, %._crit_edge99.loopexit ], [ %1, %49 ]
  %60 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %60(i32 noundef 3553, i32 noundef %59)
  %61 = load ptr, ptr @glad_glFlush, align 8, !tbaa !5
  call void %61()
  %62 = load ptr, ptr @glad_glFinish, align 8, !tbaa !5
  call void %62()
  %63 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %63(i32 noundef 3553, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %64 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  store i64 %64, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %65 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %7)
  store i64 %65, ptr %14, align 8
  call void @_ZNSt6chrono8durationIfSt5ratioILl1ELl1000EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %66 = call noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4) %13)
  %67 = getelementptr inbounds i8, ptr %0, i64 96
  store float %66, ptr %67, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  ret void

68:                                               ; preds = %.lr.ph98, %.loopexit
  %indvars.iv105 = phi i64 [ 0, %.lr.ph98 ], [ %indvars.iv.next106, %.loopexit ]
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4GIPS4NodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv105) #9
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZNK4GIPS4Node7enabledEv(ptr noundef nonnull align 8 dereferenceable(348) %70)
  br i1 %71, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %68
  %72 = call noundef i32 @_ZNK4GIPS4Node9passCountEv(ptr noundef nonnull align 8 dereferenceable(348) %70)
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %.lr.ph95, label %.loopexit

.lr.ph95:                                         ; preds = %.preheader
  %74 = getelementptr inbounds i8, ptr %70, i64 104
  %75 = getelementptr inbounds i8, ptr %70, i64 296
  br label %76

76:                                               ; preds = %.lr.ph95, %192
  %indvars.iv102 = phi i64 [ 0, %.lr.ph95 ], [ %indvars.iv.next103, %192 ]
  %77 = getelementptr inbounds [4 x %"struct.GIPS::Node::PassData"], ptr %74, i64 0, i64 %indvars.iv102
  %78 = load i32, ptr %53, align 8, !tbaa !24
  %79 = load i32, ptr %55, align 4, !tbaa !21
  %80 = icmp eq i32 %78, %79
  %81 = load i32, ptr %56, align 8
  %82 = select i1 %80, i32 %81, i32 %79
  call void @_ZN6GLutil10clearErrorEv()
  %83 = call noundef zeroext i1 @_ZN6GLutil3FBO5beginEj(ptr noundef nonnull align 4 dereferenceable(8) %57, i32 noundef %82)
  br i1 %83, label %88, label %84

84:                                               ; preds = %76
  %85 = load ptr, ptr @stderr, align 8, !tbaa !5
  %86 = load i32, ptr %58, align 8, !tbaa !26
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.11, i32 noundef %86) #8
  br label %192

88:                                               ; preds = %76
  %89 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %90 = load i32, ptr %53, align 8, !tbaa !24
  call void %89(i32 noundef 3553, i32 noundef %90)
  %91 = getelementptr inbounds i8, ptr %77, i64 8
  %92 = call noundef zeroext i1 @_ZNK6GLutil7Program3useEv(ptr noundef nonnull align 8 dereferenceable(17) %91)
  %93 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef nonnull @.str.12)
  %94 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %95 = load i8, ptr %77, align 8, !tbaa !27, !range !31, !noundef !32
  %96 = trunc nuw i8 %95 to i1
  %97 = select i1 %96, i32 9729, i32 9728
  call void %94(i32 noundef 3553, i32 noundef 10241, i32 noundef %97)
  %98 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %99 = load i8, ptr %77, align 8, !tbaa !27, !range !31, !noundef !32
  %100 = trunc nuw i8 %99 to i1
  %101 = select i1 %100, i32 9729, i32 9728
  call void %98(i32 noundef 3553, i32 noundef 10240, i32 noundef %101)
  %102 = load ptr, ptr @glad_glUniform2f, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %77, i64 32
  %104 = load i32, ptr %103, align 8, !tbaa !33
  %105 = load i32, ptr %28, align 8, !tbaa !9
  %106 = sitofp i32 %105 to float
  %107 = load i32, ptr %30, align 4, !tbaa !22
  %108 = sitofp i32 %107 to float
  call void %102(i32 noundef %104, float noundef %106, float noundef %108)
  %109 = getelementptr inbounds i8, ptr %77, i64 4
  %110 = load i32, ptr %109, align 4, !tbaa !34
  switch i32 %110, label %134 [
    i32 1, label %111
    i32 2, label %114
  ]

111:                                              ; preds = %88
  %112 = load <2 x i32>, ptr %28, align 8, !tbaa !21
  %113 = sitofp <2 x i32> %112 to <2 x double>
  br label %134

114:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store double 1.000000e+00, ptr %8, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %115 = load <2 x i32>, ptr %28, align 8, !tbaa !21
  %116 = sitofp <2 x i32> %115 to <2 x double>
  %117 = extractelement <2 x double> %116, i64 0
  %118 = extractelement <2 x double> %116, i64 1
  %119 = fdiv double %117, %118
  store double %119, ptr %9, align 8, !tbaa !35
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %121 = load double, ptr %120, align 8, !tbaa !35
  %122 = fneg double %121
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  store double 1.000000e+00, ptr %10, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %123 = load <2 x i32>, ptr %28, align 8, !tbaa !21
  %124 = sitofp <2 x i32> %123 to <2 x double>
  %125 = extractelement <2 x double> %124, i64 0
  %126 = extractelement <2 x double> %124, i64 1
  %127 = fdiv double %126, %125
  store double %127, ptr %11, align 8, !tbaa !35
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %129 = load double, ptr %128, align 8, !tbaa !35
  %130 = fneg double %129
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  %131 = insertelement <2 x double> poison, double %121, i64 0
  %132 = insertelement <2 x double> %131, double %129, i64 1
  %133 = fmul <2 x double> %132, <double 2.000000e+00, double 2.000000e+00>
  br label %134

134:                                              ; preds = %88, %114, %111
  %.077 = phi double [ 0.000000e+00, %88 ], [ %122, %114 ], [ 0.000000e+00, %111 ]
  %.076 = phi double [ 0.000000e+00, %88 ], [ %130, %114 ], [ 0.000000e+00, %111 ]
  %135 = phi <2 x double> [ <double 1.000000e+00, double 1.000000e+00>, %88 ], [ %133, %114 ], [ %113, %111 ]
  %136 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %77, i64 36
  %138 = load i32, ptr %137, align 4, !tbaa !37
  %139 = fptrunc double %.077 to float
  %140 = fptrunc double %.076 to float
  %141 = extractelement <2 x double> %135, i64 0
  %142 = fptrunc double %141 to float
  %143 = extractelement <2 x double> %135, i64 1
  %144 = fptrunc double %143 to float
  call void %136(i32 noundef %138, float noundef %139, float noundef %140, float noundef %142, float noundef %144)
  %145 = getelementptr inbounds i8, ptr %77, i64 40
  %146 = load i32, ptr %145, align 8, !tbaa !38
  %147 = icmp sgt i32 %146, -1
  br i1 %147, label %148, label %160

148:                                              ; preds = %134
  %149 = load ptr, ptr @glad_glUniform4f, align 8, !tbaa !5
  %150 = fneg double %.077
  %151 = fdiv double %150, %141
  %152 = fptrunc double %151 to float
  %153 = fneg double %.076
  %154 = fdiv double %153, %143
  %155 = fptrunc double %154 to float
  %156 = fdiv double 1.000000e+00, %141
  %157 = fptrunc double %156 to float
  %158 = fdiv double 1.000000e+00, %143
  %159 = fptrunc double %158 to float
  call void %149(i32 noundef %146, float noundef %152, float noundef %155, float noundef %157, float noundef %159)
  br label %160

160:                                              ; preds = %148, %134
  %161 = call noundef i32 @_ZNK4GIPS4Node10paramCountEv(ptr noundef nonnull align 8 dereferenceable(348) %70)
  %162 = icmp sgt i32 %161, 0
  br i1 %162, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %188, %160
  %163 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef nonnull @.str.13)
  %164 = load ptr, ptr @glad_glDrawArrays, align 8, !tbaa !5
  call void %164(i32 noundef 5, i32 noundef 0, i32 noundef 4)
  %165 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef nonnull @.str.14)
  %166 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  call void %166(i32 noundef 0)
  %167 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %167(i32 noundef 3553, i32 noundef 0)
  call void @_ZN6GLutil3FBO3endEv(ptr noundef nonnull align 4 dereferenceable(8) %57)
  %168 = call noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef nonnull @.str.15)
  store i32 %82, ptr %53, align 8, !tbaa !24
  br label %192

.lr.ph:                                           ; preds = %160, %188
  %indvars.iv = phi i64 [ %indvars.iv.next, %188 ], [ 0, %160 ]
  %169 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNKSt6vectorIN4GIPS9ParameterESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %indvars.iv) #9
  %170 = getelementptr inbounds i8, ptr %169, i64 160
  %171 = getelementptr inbounds [4 x i32], ptr %170, i64 0, i64 %indvars.iv102
  %172 = load i32, ptr %171, align 4, !tbaa !21
  %173 = getelementptr inbounds i8, ptr %169, i64 96
  %174 = load i32, ptr %173, align 8, !tbaa !39
  switch i32 %174, label %188 [
    i32 0, label %175
    i32 4, label %175
    i32 5, label %175
    i32 1, label %179
    i32 2, label %182
    i32 6, label %182
    i32 3, label %185
    i32 7, label %185
  ]

175:                                              ; preds = %.lr.ph, %.lr.ph, %.lr.ph
  %176 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %169, i64 112
  %178 = load float, ptr %177, align 8, !tbaa !45
  call void %176(i32 noundef %172, float noundef %178)
  br label %188

179:                                              ; preds = %.lr.ph
  %180 = load ptr, ptr @glad_glUniform2fv, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %169, i64 112
  call void %180(i32 noundef %172, i32 noundef 1, ptr noundef nonnull %181)
  br label %188

182:                                              ; preds = %.lr.ph, %.lr.ph
  %183 = load ptr, ptr @glad_glUniform3fv, align 8, !tbaa !5
  %184 = getelementptr inbounds i8, ptr %169, i64 112
  call void %183(i32 noundef %172, i32 noundef 1, ptr noundef nonnull %184)
  br label %188

185:                                              ; preds = %.lr.ph, %.lr.ph
  %186 = load ptr, ptr @glad_glUniform4fv, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %169, i64 112
  call void %186(i32 noundef %172, i32 noundef 1, ptr noundef nonnull %187)
  br label %188

188:                                              ; preds = %185, %182, %179, %175, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %189 = call noundef i32 @_ZNK4GIPS4Node10paramCountEv(ptr noundef nonnull align 8 dereferenceable(348) %70)
  %190 = sext i32 %189 to i64
  %191 = icmp slt i64 %indvars.iv.next, %190
  br i1 %191, label %.lr.ph, label %._crit_edge, !llvm.loop !46

192:                                              ; preds = %._crit_edge, %84
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %193 = call noundef i32 @_ZNK4GIPS4Node9passCountEv(ptr noundef nonnull align 8 dereferenceable(348) %70)
  %194 = sext i32 %193 to i64
  %195 = icmp slt i64 %indvars.iv.next103, %194
  br i1 %195, label %76, label %.loopexit, !llvm.loop !48

.loopexit:                                        ; preds = %192, %.preheader, %68
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge99.loopexit, label %68, !llvm.loop !49
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6GLutil10clearErrorEv() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4GIPS8Pipeline9nodeCountEv(ptr noundef nonnull align 8 dereferenceable(100)) local_unnamed_addr #5 align 2

declare noundef i32 @_ZN6GLutil10checkErrorEPKc(ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4GIPS4Node7enabledEv(ptr noundef nonnull align 8 dereferenceable(348)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4GIPS4Node9passCountEv(ptr noundef nonnull align 8 dereferenceable(348)) local_unnamed_addr #5 align 2

declare noundef zeroext i1 @_ZN6GLutil3FBO5beginEj(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GLutil7Program3useEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4GIPS4Node10paramCountEv(ptr noundef nonnull align 8 dereferenceable(348)) local_unnamed_addr #5 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 #1 align 2

declare void @_ZN6GLutil3FBO3endEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNKSt6chrono8durationIfSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { cold nounwind }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 24}
!10 = !{!"_ZTSN4GIPS8PipelineE", !11, i64 0, !15, i64 24, !15, i64 28, !16, i64 32, !7, i64 36, !17, i64 44, !18, i64 52, !19, i64 56, !15, i64 88, !18, i64 92, !18, i64 93, !20, i64 96}
!11 = !{!"_ZTSSt6vectorIPN4GIPS4NodeESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN4GIPS4NodeESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN4GIPS4NodeESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN4GIPS4NodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN4GIPS11PixelFormatE", !7, i64 0}
!17 = !{!"_ZTSN6GLutil3FBOE", !15, i64 0, !15, i64 4}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN6GLutil6ShaderE", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !18, i64 24}
!20 = !{!"float", !7, i64 0}
!21 = !{!15, !15, i64 0}
!22 = !{!10, !15, i64 28}
!23 = !{!10, !16, i64 32}
!24 = !{!10, !15, i64 88}
!25 = !{!10, !20, i64 96}
!26 = !{!10, !15, i64 48}
!27 = !{!28, !18, i64 0}
!28 = !{!"_ZTSN4GIPS4Node8PassDataE", !18, i64 0, !29, i64 4, !30, i64 8, !15, i64 32, !15, i64 36, !15, i64 40}
!29 = !{!"_ZTSN4GIPS12CoordMapModeE", !7, i64 0}
!30 = !{!"_ZTSN6GLutil7ProgramE", !15, i64 0, !15, i64 4, !6, i64 8, !18, i64 16}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!28, !15, i64 32}
!34 = !{!28, !29, i64 4}
!35 = !{!36, !36, i64 0}
!36 = !{!"double", !7, i64 0}
!37 = !{!28, !15, i64 36}
!38 = !{!28, !15, i64 40}
!39 = !{!40, !44, i64 96}
!40 = !{!"_ZTSN4GIPS9ParameterE", !41, i64 0, !41, i64 32, !41, i64 64, !44, i64 96, !15, i64 100, !20, i64 104, !20, i64 108, !7, i64 112, !7, i64 128, !7, i64 144, !7, i64 160}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !42, i64 0, !43, i64 8, !7, i64 16}
!42 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!43 = !{!"long", !7, i64 0}
!44 = !{!"_ZTSN4GIPS13ParameterTypeE", !7, i64 0}
!45 = !{!20, !20, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = distinct !{!48, !47}
!49 = distinct !{!49, !47}


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