; LLVM IR from Erkaman/fluid_sim :: src/main.ll (Z11renderFramev)

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

@fbWidth = external dso_local global i32, align 4
@fbHeight = external dso_local global i32, align 4
@done = external dso_local global i8, align 1
@fullscreenVertexVbo = external dso_local global i32, align 4
@visShader = external dso_local global i32, align 4
@vsTexLocation = external dso_local global i32, align 4
@vsBlendLocation = external dso_local global i32, align 4
@gradientSubtractionShader = external dso_local global i32, align 4
@gsspTexLocation = external dso_local global i32, align 4
@gsswTexLocation = external dso_local global i32, align 4
@forceShader = external dso_local global i32, align 4
@fswTexLocation = external dso_local global i32, align 4
@fsCounterLocation = external dso_local global i32, align 4
@fsSimLocation = external dso_local global i32, align 4
@addColorShader = external dso_local global i32, align 4
@accTexLocation = external dso_local global i32, align 4
@acCounterLocation = external dso_local global i32, align 4
@acSimLocation = external dso_local global i32, align 4
@fbo0 = external dso_local global i32, align 4
@uBegTex = external dso_local global i32, align 4
@uEndTex = external dso_local global i32, align 4
@cBegTex = external dso_local global i32, align 4
@cEndTex = external dso_local global i32, align 4
@cTempTex = external dso_local global i32, align 4
@wTex = external dso_local global i32, align 4
@wTempTex = external dso_local global i32, align 4
@wDivergenceTex = external dso_local global i32, align 4
@pTempTex = external dso_local global [2 x i32], align 4
@pTex = external dso_local global i32, align 4
@monaTex = external dso_local global i32, align 4
@screamTex = external dso_local global i32, align 4
@curSim = external dso_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@glad_glBindFramebuffer = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glFramebufferTexture2D = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClearColor = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClear = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@glad_glUseProgram = external global ptr, align 8
@glad_glUniform1i = external global ptr, align 8
@glad_glActiveTexture = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glBindTexture = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glDisable = external global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1
@glad_glDepthMask = external global ptr, align 8
@.str.33 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [20 x i8], align 1
@glad_glColorMask = external global ptr, align 8
@.str.35 = external hidden unnamed_addr constant [48 x i8], align 1
@glad_glEnable = external global ptr, align 8
@.str.36 = external hidden unnamed_addr constant [23 x i8], align 1
@glad_glFrontFace = external global ptr, align 8
@.str.37 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [32 x i8], align 1
@glad_glDepthFunc = external global ptr, align 8
@.str.40 = external hidden unnamed_addr constant [21 x i8], align 1
@glad_glViewport = external global ptr, align 8
@.str.41 = external hidden unnamed_addr constant [36 x i8], align 1
@glad_glEnableVertexAttribArray = external global ptr, align 8
@.str.42 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glBindBuffer = external global ptr, align 8
@.str.43 = external hidden unnamed_addr constant [51 x i8], align 1
@glad_glVertexAttribPointer = external global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ11renderFramevE8icounter = external hidden global i32, align 4
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [35 x i8], align 1
@glad_glUniform1f = external global ptr, align 8
@.str.54 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [36 x i8], align 1

; 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 uwtable
declare dso_local void @_Z16renderFullscreenv() #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12clearTexturej(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17computeDivergencejj(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6advectjjj(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8writeTexjj(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6jacobiijPj(i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5dpushPKc(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4dpopv() #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11renderFramev() #1 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store float 1.000000e+00, ptr %1, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %0
  %11 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %11(i32 noundef 2929)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.32, ptr noundef @.str.4, i32 noundef 373)
  br label %12

12:                                               ; preds = %10
  br label %13

13:                                               ; preds = %12
  br label %14

14:                                               ; preds = %13
  %15 = load ptr, ptr @glad_glDepthMask, align 8, !tbaa !9
  call void %15(i8 noundef zeroext 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.33, ptr noundef @.str.4, i32 noundef 374)
  br label %16

16:                                               ; preds = %14
  br label %17

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17
  %19 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %19(i32 noundef 3042)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.34, ptr noundef @.str.4, i32 noundef 375)
  br label %20

20:                                               ; preds = %18
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr @glad_glColorMask, align 8, !tbaa !9
  call void %23(i8 noundef zeroext 1, i8 noundef zeroext 1, i8 noundef zeroext 1, i8 noundef zeroext 1)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.35, ptr noundef @.str.4, i32 noundef 376)
  br label %24

24:                                               ; preds = %22
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  %27 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %27(i32 noundef 2884)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.36, ptr noundef @.str.4, i32 noundef 377)
  br label %28

28:                                               ; preds = %26
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  %31 = load ptr, ptr @glad_glFrontFace, align 8, !tbaa !9
  call void %31(i32 noundef 2305)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.37, ptr noundef @.str.4, i32 noundef 378)
  br label %32

32:                                               ; preds = %30
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  %35 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %35(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 379)
  br label %36

36:                                               ; preds = %34
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  call void %39(i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.38, ptr noundef @.str.4, i32 noundef 380)
  br label %40

40:                                               ; preds = %38
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  call void %43(i32 noundef 3553, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.39, ptr noundef @.str.4, i32 noundef 381)
  br label %44

44:                                               ; preds = %42
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  %47 = load ptr, ptr @glad_glDepthFunc, align 8, !tbaa !9
  call void %47(i32 noundef 513)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.40, ptr noundef @.str.4, i32 noundef 382)
  br label %48

48:                                               ; preds = %46
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %52 = load i32, ptr @fbWidth, align 4, !tbaa !11
  %53 = load i32, ptr @fbHeight, align 4, !tbaa !11
  call void %51(i32 noundef 0, i32 noundef 0, i32 noundef %52, i32 noundef %53)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.41, ptr noundef @.str.4, i32 noundef 384)
  br label %54

54:                                               ; preds = %50
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  call void %57(i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.42, ptr noundef @.str.4, i32 noundef 388)
  br label %58

58:                                               ; preds = %56
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %62 = load i32, ptr @fullscreenVertexVbo, align 4, !tbaa !11
  call void %61(i32 noundef 34962, i32 noundef %62)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.43, ptr noundef @.str.4, i32 noundef 389)
  br label %63

63:                                               ; preds = %60
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  call void %66(i32 noundef 0, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 8, ptr noundef null)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.44, ptr noundef @.str.4, i32 noundef 390)
  br label %67

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67
  call void @_Z5dpushPKc(ptr noundef @.str.45)
  %69 = load i32, ptr @cBegTex, align 4, !tbaa !11
  %70 = load i32, ptr @uBegTex, align 4, !tbaa !11
  %71 = load i32, ptr @cTempTex, align 4, !tbaa !11
  call void @_Z6advectjjj(i32 noundef %69, i32 noundef %70, i32 noundef %71)
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.46)
  %72 = load i32, ptr @uBegTex, align 4, !tbaa !11
  %73 = load i32, ptr @uBegTex, align 4, !tbaa !11
  %74 = load i32, ptr @wTex, align 4, !tbaa !11
  call void @_Z6advectjjj(i32 noundef %72, i32 noundef %73, i32 noundef %74)
  call void @_Z4dpopv()
  %75 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %77 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %78 = icmp sgt i32 %77, 400
  br i1 %78, label %79, label %92

79:                                               ; preds = %68
  %80 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %81 = icmp slt i32 %80, 700
  br i1 %81, label %82, label %92

82:                                               ; preds = %79
  %83 = load i32, ptr @curSim, align 4, !tbaa !13
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %92

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %86 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %87 = sitofp i32 %86 to float
  %88 = fsub float %87, 4.000000e+02
  %89 = fdiv float %88, 3.000000e+02
  %90 = fsub float 1.000000e+00, %89
  store float %90, ptr %2, align 4, !tbaa !5
  %91 = load float, ptr %2, align 4, !tbaa !5
  store float %91, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %256

92:                                               ; preds = %82, %79, %68
  %93 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %94 = icmp eq i32 %93, 700
  br i1 %94, label %95, label %102

95:                                               ; preds = %92
  %96 = load i32, ptr @curSim, align 4, !tbaa !13
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = load i32, ptr @wTex, align 4, !tbaa !11
  call void @_Z12clearTexturej(i32 noundef %99)
  call void @_Z5dpushPKc(ptr noundef @.str.47)
  %100 = load i32, ptr @monaTex, align 4, !tbaa !11
  %101 = load i32, ptr @cTempTex, align 4, !tbaa !11
  call void @_Z8writeTexjj(i32 noundef %100, i32 noundef %101)
  call void @_Z4dpopv()
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  store i32 1, ptr @curSim, align 4, !tbaa !13
  br label %255

102:                                              ; preds = %95, %92
  %103 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %104 = icmp slt i32 %103, 80
  br i1 %104, label %105, label %114

105:                                              ; preds = %102
  %106 = load i32, ptr @curSim, align 4, !tbaa !13
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %114

108:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %109 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %110 = sitofp i32 %109 to float
  %111 = fdiv float %110, 8.000000e+01
  store float %111, ptr %3, align 4, !tbaa !5
  %112 = load float, ptr %3, align 4, !tbaa !5
  %113 = call noundef float @_ZSt3powff(float noundef %112, float noundef 3.000000e+00)
  store float %113, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %254

114:                                              ; preds = %105, %102
  %115 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %116 = icmp eq i32 %115, 80
  br i1 %116, label %117, label %121

117:                                              ; preds = %114
  %118 = load i32, ptr @curSim, align 4, !tbaa !13
  %119 = icmp eq i32 %118, 1
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  store i32 2, ptr @curSim, align 4, !tbaa !13
  store float 1.000000e+00, ptr %1, align 4, !tbaa !5
  br label %253

121:                                              ; preds = %117, %114
  %122 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %123 = icmp sgt i32 %122, 900
  br i1 %123, label %124, label %137

124:                                              ; preds = %121
  %125 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %126 = icmp slt i32 %125, 1200
  br i1 %126, label %127, label %137

127:                                              ; preds = %124
  %128 = load i32, ptr @curSim, align 4, !tbaa !13
  %129 = icmp eq i32 %128, 2
  br i1 %129, label %130, label %137

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %131 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %132 = sitofp i32 %131 to float
  %133 = fsub float %132, 9.000000e+02
  %134 = fdiv float %133, 3.000000e+02
  %135 = fsub float 1.000000e+00, %134
  store float %135, ptr %4, align 4, !tbaa !5
  %136 = load float, ptr %4, align 4, !tbaa !5
  store float %136, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %252

137:                                              ; preds = %127, %124, %121
  %138 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %139 = icmp eq i32 %138, 1200
  br i1 %139, label %140, label %147

140:                                              ; preds = %137
  %141 = load i32, ptr @curSim, align 4, !tbaa !13
  %142 = icmp eq i32 %141, 2
  br i1 %142, label %143, label %147

143:                                              ; preds = %140
  %144 = load i32, ptr @wTex, align 4, !tbaa !11
  call void @_Z12clearTexturej(i32 noundef %144)
  call void @_Z5dpushPKc(ptr noundef @.str.48)
  %145 = load i32, ptr @screamTex, align 4, !tbaa !11
  %146 = load i32, ptr @cTempTex, align 4, !tbaa !11
  call void @_Z8writeTexjj(i32 noundef %145, i32 noundef %146)
  call void @_Z4dpopv()
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  store i32 3, ptr @curSim, align 4, !tbaa !13
  br label %251

147:                                              ; preds = %140, %137
  %148 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %149 = icmp slt i32 %148, 130
  br i1 %149, label %150, label %159

150:                                              ; preds = %147
  %151 = load i32, ptr @curSim, align 4, !tbaa !13
  %152 = icmp eq i32 %151, 3
  br i1 %152, label %153, label %159

153:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %154 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %155 = sitofp i32 %154 to float
  %156 = fdiv float %155, 1.300000e+02
  store float %156, ptr %5, align 4, !tbaa !5
  %157 = load float, ptr %5, align 4, !tbaa !5
  %158 = call noundef float @_ZSt3powff(float noundef %157, float noundef 3.000000e+00)
  store float %158, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %250

159:                                              ; preds = %150, %147
  %160 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %161 = icmp eq i32 %160, 130
  br i1 %161, label %162, label %166

162:                                              ; preds = %159
  %163 = load i32, ptr @curSim, align 4, !tbaa !13
  %164 = icmp eq i32 %163, 3
  br i1 %164, label %165, label %166

165:                                              ; preds = %162
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  store i32 4, ptr @curSim, align 4, !tbaa !13
  store float 1.000000e+00, ptr %1, align 4, !tbaa !5
  br label %249

166:                                              ; preds = %162, %159
  %167 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %168 = icmp sgt i32 %167, 1100
  br i1 %168, label %169, label %182

169:                                              ; preds = %166
  %170 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %171 = icmp slt i32 %170, 1300
  br i1 %171, label %172, label %182

172:                                              ; preds = %169
  %173 = load i32, ptr @curSim, align 4, !tbaa !13
  %174 = icmp eq i32 %173, 4
  br i1 %174, label %175, label %182

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %176 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %177 = sitofp i32 %176 to float
  %178 = fsub float %177, 1.100000e+03
  %179 = fdiv float %178, 2.000000e+02
  %180 = fsub float 1.000000e+00, %179
  store float %180, ptr %6, align 4, !tbaa !5
  %181 = load float, ptr %6, align 4, !tbaa !5
  store float %181, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %248

182:                                              ; preds = %172, %169, %166
  %183 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %184 = icmp eq i32 %183, 1300
  br i1 %184, label %185, label %191

185:                                              ; preds = %182
  %186 = load i32, ptr @curSim, align 4, !tbaa !13
  %187 = icmp eq i32 %186, 4
  br i1 %187, label %188, label %191

188:                                              ; preds = %185
  %189 = load i32, ptr @wTex, align 4, !tbaa !11
  call void @_Z12clearTexturej(i32 noundef %189)
  %190 = load i32, ptr @cTempTex, align 4, !tbaa !11
  call void @_Z12clearTexturej(i32 noundef %190)
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  store i32 5, ptr @curSim, align 4, !tbaa !13
  br label %247

191:                                              ; preds = %185, %182
  %192 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %193 = icmp slt i32 %192, 500
  br i1 %193, label %194, label %202

194:                                              ; preds = %191
  %195 = load i32, ptr @curSim, align 4, !tbaa !13
  %196 = icmp eq i32 %195, 5
  br i1 %196, label %197, label %202

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %198 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %199 = sitofp i32 %198 to float
  %200 = fdiv float %199, 5.000000e+02
  store float %200, ptr %7, align 4, !tbaa !5
  %201 = load float, ptr %7, align 4, !tbaa !5
  store float %201, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %246

202:                                              ; preds = %194, %191
  %203 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %204 = icmp eq i32 %203, 500
  br i1 %204, label %205, label %209

205:                                              ; preds = %202
  %206 = load i32, ptr @curSim, align 4, !tbaa !13
  %207 = icmp eq i32 %206, 5
  br i1 %207, label %208, label %209

208:                                              ; preds = %205
  store float 1.000000e+00, ptr %1, align 4, !tbaa !5
  br label %245

209:                                              ; preds = %205, %202
  %210 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %211 = icmp sgt i32 %210, 1000
  br i1 %211, label %212, label %225

212:                                              ; preds = %209
  %213 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %214 = icmp slt i32 %213, 1200
  br i1 %214, label %215, label %225

215:                                              ; preds = %212
  %216 = load i32, ptr @curSim, align 4, !tbaa !13
  %217 = icmp eq i32 %216, 5
  br i1 %217, label %218, label %225

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %219 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %220 = sitofp i32 %219 to float
  %221 = fsub float %220, 1.000000e+03
  %222 = fdiv float %221, 2.000000e+02
  %223 = fsub float 1.000000e+00, %222
  store float %223, ptr %8, align 4, !tbaa !5
  %224 = load float, ptr %8, align 4, !tbaa !5
  store float %224, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %244

225:                                              ; preds = %215, %212, %209
  %226 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %227 = icmp sge i32 %226, 1200
  br i1 %227, label %228, label %235

228:                                              ; preds = %225
  %229 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %230 = icmp sle i32 %229, 1300
  br i1 %230, label %231, label %235

231:                                              ; preds = %228
  %232 = load i32, ptr @curSim, align 4, !tbaa !13
  %233 = icmp eq i32 %232, 5
  br i1 %233, label %234, label %235

234:                                              ; preds = %231
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  br label %243

235:                                              ; preds = %231, %228, %225
  %236 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %237 = icmp sge i32 %236, 1300
  br i1 %237, label %238, label %242

238:                                              ; preds = %235
  %239 = load i32, ptr @curSim, align 4, !tbaa !13
  %240 = icmp eq i32 %239, 5
  br i1 %240, label %241, label %242

241:                                              ; preds = %238
  store float 0.000000e+00, ptr %1, align 4, !tbaa !5
  store i8 1, ptr @done, align 1, !tbaa !15
  br label %242

242:                                              ; preds = %241, %238, %235
  br label %243

243:                                              ; preds = %242, %234
  br label %244

244:                                              ; preds = %243, %218
  br label %245

245:                                              ; preds = %244, %208
  br label %246

246:                                              ; preds = %245, %197
  br label %247

247:                                              ; preds = %246, %188
  br label %248

248:                                              ; preds = %247, %175
  br label %249

249:                                              ; preds = %248, %165
  br label %250

250:                                              ; preds = %249, %153
  br label %251

251:                                              ; preds = %250, %143
  br label %252

252:                                              ; preds = %251, %130
  br label %253

253:                                              ; preds = %252, %120
  br label %254

254:                                              ; preds = %253, %108
  br label %255

255:                                              ; preds = %254, %98
  br label %256

256:                                              ; preds = %255, %85
  call void @_Z5dpushPKc(ptr noundef @.str.49)
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %259 = load i32, ptr @fbo0, align 4, !tbaa !11
  call void %258(i32 noundef 36160, i32 noundef %259)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 492)
  br label %260

260:                                              ; preds = %257
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  %263 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !9
  %264 = load i32, ptr @wTempTex, align 4, !tbaa !11
  call void %263(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %264, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.50, ptr noundef @.str.4, i32 noundef 496)
  br label %265

265:                                              ; preds = %262
  br label %266

266:                                              ; preds = %265
  br label %267

267:                                              ; preds = %266
  %268 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %268(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 497)
  br label %269

269:                                              ; preds = %267
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %273 = load i32, ptr @fbo0, align 4, !tbaa !11
  call void %272(i32 noundef 36160, i32 noundef %273)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 499)
  br label %274

274:                                              ; preds = %271
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275
  %277 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  call void %277(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 501)
  br label %278

278:                                              ; preds = %276
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  %281 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %281(i32 noundef 16384)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 502)
  br label %282

282:                                              ; preds = %280
  br label %283

283:                                              ; preds = %282
  br label %284

284:                                              ; preds = %283
  %285 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %286 = load i32, ptr @forceShader, align 4, !tbaa !11
  call void %285(i32 noundef %286)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.51, ptr noundef @.str.4, i32 noundef 504)
  br label %287

287:                                              ; preds = %284
  br label %288

288:                                              ; preds = %287
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %291 = load i32, ptr @fswTexLocation, align 4, !tbaa !11
  call void %290(i32 noundef %291, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.52, ptr noundef @.str.4, i32 noundef 506)
  br label %292

292:                                              ; preds = %289
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293
  %295 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %295(i32 noundef 33984)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 507)
  br label %296

296:                                              ; preds = %294
  br label %297

297:                                              ; preds = %296
  br label %298

298:                                              ; preds = %297
  %299 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %300 = load i32, ptr @wTex, align 4, !tbaa !11
  call void %299(i32 noundef 3553, i32 noundef %300)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.53, ptr noundef @.str.4, i32 noundef 508)
  br label %301

301:                                              ; preds = %298
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !9
  %305 = load i32, ptr @fsCounterLocation, align 4, !tbaa !11
  %306 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %307 = sitofp i32 %306 to float
  call void %304(i32 noundef %305, float noundef %307)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.54, ptr noundef @.str.4, i32 noundef 510)
  br label %308

308:                                              ; preds = %303
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  %311 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %312 = load i32, ptr @fsSimLocation, align 4, !tbaa !11
  %313 = load i32, ptr @curSim, align 4, !tbaa !13
  call void %311(i32 noundef %312, i32 noundef %313)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.55, ptr noundef @.str.4, i32 noundef 511)
  br label %314

314:                                              ; preds = %310
  br label %315

315:                                              ; preds = %314
  call void @_Z16renderFullscreenv()
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %317(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 516)
  br label %318

318:                                              ; preds = %316
  br label %319

319:                                              ; preds = %318
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.56)
  br label %320

320:                                              ; preds = %319
  %321 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %322 = load i32, ptr @fbo0, align 4, !tbaa !11
  call void %321(i32 noundef 36160, i32 noundef %322)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 523)
  br label %323

323:                                              ; preds = %320
  br label %324

324:                                              ; preds = %323
  br label %325

325:                                              ; preds = %324
  %326 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !9
  %327 = load i32, ptr @cEndTex, align 4, !tbaa !11
  call void %326(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %327, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.57, ptr noundef @.str.4, i32 noundef 527)
  br label %328

328:                                              ; preds = %325
  br label %329

329:                                              ; preds = %328
  br label %330

330:                                              ; preds = %329
  %331 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %331(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 528)
  br label %332

332:                                              ; preds = %330
  br label %333

333:                                              ; preds = %332
  br label %334

334:                                              ; preds = %333
  %335 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %336 = load i32, ptr @fbo0, align 4, !tbaa !11
  call void %335(i32 noundef 36160, i32 noundef %336)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 530)
  br label %337

337:                                              ; preds = %334
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  %340 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  call void %340(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 532)
  br label %341

341:                                              ; preds = %339
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  %344 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %344(i32 noundef 16384)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 533)
  br label %345

345:                                              ; preds = %343
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  %348 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %349 = load i32, ptr @addColorShader, align 4, !tbaa !11
  call void %348(i32 noundef %349)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.58, ptr noundef @.str.4, i32 noundef 535)
  br label %350

350:                                              ; preds = %347
  br label %351

351:                                              ; preds = %350
  br label %352

352:                                              ; preds = %351
  %353 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %354 = load i32, ptr @accTexLocation, align 4, !tbaa !11
  call void %353(i32 noundef %354, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.59, ptr noundef @.str.4, i32 noundef 537)
  br label %355

355:                                              ; preds = %352
  br label %356

356:                                              ; preds = %355
  br label %357

357:                                              ; preds = %356
  %358 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %358(i32 noundef 33984)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 538)
  br label %359

359:                                              ; preds = %357
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  %362 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %363 = load i32, ptr @cTempTex, align 4, !tbaa !11
  call void %362(i32 noundef 3553, i32 noundef %363)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.60, ptr noundef @.str.4, i32 noundef 539)
  br label %364

364:                                              ; preds = %361
  br label %365

365:                                              ; preds = %364
  br label %366

366:                                              ; preds = %365
  %367 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !9
  %368 = load i32, ptr @acCounterLocation, align 4, !tbaa !11
  %369 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !11
  %370 = sitofp i32 %369 to float
  call void %367(i32 noundef %368, float noundef %370)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.61, ptr noundef @.str.4, i32 noundef 541)
  br label %371

371:                                              ; preds = %366
  br label %372

372:                                              ; preds = %371
  br label %373

373:                                              ; preds = %372
  %374 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %375 = load i32, ptr @acSimLocation, align 4, !tbaa !11
  %376 = load i32, ptr @curSim, align 4, !tbaa !13
  call void %374(i32 noundef %375, i32 noundef %376)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.62, ptr noundef @.str.4, i32 noundef 542)
  br label %377

377:                                              ; preds = %373
  br label %378

378:                                              ; preds = %377
  call void @_Z16renderFullscreenv()
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %380(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 546)
  br label %381

381:                                              ; preds = %379
  br label %382

382:                                              ; preds = %381
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.63)
  call void @_Z5dpushPKc(ptr noundef @.str.64)
  %383 = load i32, ptr @wTempTex, align 4, !tbaa !11
  %384 = load i32, ptr @wDivergenceTex, align 4, !tbaa !11
  call void @_Z17computeDivergencejj(i32 noundef %383, i32 noundef %384)
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.65)
  call void @_Z5dpushPKc(ptr noundef @.str.66)
  %385 = load i32, ptr @pTempTex, align 4, !tbaa !11
  call void @_Z12clearTexturej(i32 noundef %385)
  %386 = load i32, ptr getelementptr inbounds ([2 x i32], ptr @pTempTex, i64 0, i64 1), align 4, !tbaa !11
  call void @_Z12clearTexturej(i32 noundef %386)
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.67)
  %387 = load i32, ptr @wDivergenceTex, align 4, !tbaa !11
  %388 = call noundef i32 @_Z6jacobiijPj(i32 noundef 40, i32 noundef %387, ptr noundef @pTempTex)
  store i32 %388, ptr @pTex, align 4, !tbaa !11
  call void @_Z4dpopv()
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.68)
  br label %389

389:                                              ; preds = %382
  %390 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %391 = load i32, ptr @fbo0, align 4, !tbaa !11
  call void %390(i32 noundef 36160, i32 noundef %391)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 580)
  br label %392

392:                                              ; preds = %389
  br label %393

393:                                              ; preds = %392
  br label %394

394:                                              ; preds = %393
  %395 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !9
  %396 = load i32, ptr @uEndTex, align 4, !tbaa !11
  call void %395(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %396, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.69, ptr noundef @.str.4, i32 noundef 581)
  br label %397

397:                                              ; preds = %394
  br label %398

398:                                              ; preds = %397
  br label %399

399:                                              ; preds = %398
  %400 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %400(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 582)
  br label %401

401:                                              ; preds = %399
  br label %402

402:                                              ; preds = %401
  br label %403

403:                                              ; preds = %402
  %404 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  %405 = load i32, ptr @fbo0, align 4, !tbaa !11
  call void %404(i32 noundef 36160, i32 noundef %405)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 584)
  br label %406

406:                                              ; preds = %403
  br label %407

407:                                              ; preds = %406
  br label %408

408:                                              ; preds = %407
  %409 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  call void %409(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 586)
  br label %410

410:                                              ; preds = %408
  br label %411

411:                                              ; preds = %410
  br label %412

412:                                              ; preds = %411
  %413 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %413(i32 noundef 16384)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 587)
  br label %414

414:                                              ; preds = %412
  br label %415

415:                                              ; preds = %414
  br label %416

416:                                              ; preds = %415
  %417 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %418 = load i32, ptr @gradientSubtractionShader, align 4, !tbaa !11
  call void %417(i32 noundef %418)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.70, ptr noundef @.str.4, i32 noundef 589)
  br label %419

419:                                              ; preds = %416
  br label %420

420:                                              ; preds = %419
  br label %421

421:                                              ; preds = %420
  %422 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %423 = load i32, ptr @gsswTexLocation, align 4, !tbaa !11
  call void %422(i32 noundef %423, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.71, ptr noundef @.str.4, i32 noundef 591)
  br label %424

424:                                              ; preds = %421
  br label %425

425:                                              ; preds = %424
  br label %426

426:                                              ; preds = %425
  %427 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %427(i32 noundef 33984)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 592)
  br label %428

428:                                              ; preds = %426
  br label %429

429:                                              ; preds = %428
  br label %430

430:                                              ; preds = %429
  %431 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %432 = load i32, ptr @wTempTex, align 4, !tbaa !11
  call void %431(i32 noundef 3553, i32 noundef %432)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.72, ptr noundef @.str.4, i32 noundef 593)
  br label %433

433:                                              ; preds = %430
  br label %434

434:                                              ; preds = %433
  br label %435

435:                                              ; preds = %434
  %436 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %437 = load i32, ptr @gsspTexLocation, align 4, !tbaa !11
  call void %436(i32 noundef %437, i32 noundef 1)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.73, ptr noundef @.str.4, i32 noundef 595)
  br label %438

438:                                              ; preds = %435
  br label %439

439:                                              ; preds = %438
  br label %440

440:                                              ; preds = %439
  %441 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %441(i32 noundef 33985)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.19, ptr noundef @.str.4, i32 noundef 596)
  br label %442

442:                                              ; preds = %440
  br label %443

443:                                              ; preds = %442
  br label %444

444:                                              ; preds = %443
  %445 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %446 = load i32, ptr @pTex, align 4, !tbaa !11
  call void %445(i32 noundef 3553, i32 noundef %446)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.74, ptr noundef @.str.4, i32 noundef 597)
  br label %447

447:                                              ; preds = %444
  br label %448

448:                                              ; preds = %447
  call void @_Z16renderFullscreenv()
  br label %449

449:                                              ; preds = %448
  %450 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !9
  call void %450(i32 noundef 36160, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 601)
  br label %451

451:                                              ; preds = %449
  br label %452

452:                                              ; preds = %451
  call void @_Z4dpopv()
  call void @_Z4dpopv()
  call void @_Z5dpushPKc(ptr noundef @.str.75)
  br label %453

453:                                              ; preds = %452
  %454 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !9
  call void %454(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 610)
  br label %455

455:                                              ; preds = %453
  br label %456

456:                                              ; preds = %455
  br label %457

457:                                              ; preds = %456
  %458 = load ptr, ptr @glad_glClear, align 8, !tbaa !9
  call void %458(i32 noundef 16384)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.9, ptr noundef @.str.4, i32 noundef 611)
  br label %459

459:                                              ; preds = %457
  br label %460

460:                                              ; preds = %459
  br label %461

461:                                              ; preds = %460
  %462 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %463 = load i32, ptr @visShader, align 4, !tbaa !11
  call void %462(i32 noundef %463)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.76, ptr noundef @.str.4, i32 noundef 613)
  br label %464

464:                                              ; preds = %461
  br label %465

465:                                              ; preds = %464
  br label %466

466:                                              ; preds = %465
  %467 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %468 = load i32, ptr @vsTexLocation, align 4, !tbaa !11
  call void %467(i32 noundef %468, i32 noundef 0)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.77, ptr noundef @.str.4, i32 noundef 615)
  br label %469

469:                                              ; preds = %466
  br label %470

470:                                              ; preds = %469
  br label %471

471:                                              ; preds = %470
  %472 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %472(i32 noundef 33984)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.13, ptr noundef @.str.4, i32 noundef 616)
  br label %473

473:                                              ; preds = %471
  br label %474

474:                                              ; preds = %473
  br label %475

475:                                              ; preds = %474
  %476 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %477 = load i32, ptr @cEndTex, align 4, !tbaa !11
  call void %476(i32 noundef 3553, i32 noundef %477)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.78, ptr noundef @.str.4, i32 noundef 617)
  br label %478

478:                                              ; preds = %475
  br label %479

479:                                              ; preds = %478
  br label %480

480:                                              ; preds = %479
  %481 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !9
  %482 = load i32, ptr @vsBlendLocation, align 4, !tbaa !11
  %483 = load float, ptr %1, align 4, !tbaa !5
  call void %481(i32 noundef %482, float noundef %483)
  call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef @.str.79, ptr noundef @.str.4, i32 noundef 619)
  br label %484

484:                                              ; preds = %480
  br label %485

485:                                              ; preds = %484
  call void @_Z16renderFullscreenv()
  call void @_Z4dpopv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %486 = load i32, ptr @uBegTex, align 4, !tbaa !11
  store i32 %486, ptr %9, align 4, !tbaa !11
  %487 = load i32, ptr @uEndTex, align 4, !tbaa !11
  store i32 %487, ptr @uBegTex, align 4, !tbaa !11
  %488 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %488, ptr @uEndTex, align 4, !tbaa !11
  %489 = load i32, ptr @cBegTex, align 4, !tbaa !11
  store i32 %489, ptr %9, align 4, !tbaa !11
  %490 = load i32, ptr @cEndTex, align 4, !tbaa !11
  store i32 %490, ptr @cBegTex, align 4, !tbaa !11
  %491 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %491, ptr @cEndTex, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS15SimulationStage", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}


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

@fbWidth = external dso_local local_unnamed_addr global i32, align 4
@fbHeight = external dso_local local_unnamed_addr global i32, align 4
@done = external dso_local local_unnamed_addr global i8, align 1
@fullscreenVertexVbo = external dso_local local_unnamed_addr global i32, align 4
@visShader = external dso_local local_unnamed_addr global i32, align 4
@vsTexLocation = external dso_local local_unnamed_addr global i32, align 4
@vsBlendLocation = external dso_local local_unnamed_addr global i32, align 4
@gradientSubtractionShader = external dso_local local_unnamed_addr global i32, align 4
@gsspTexLocation = external dso_local local_unnamed_addr global i32, align 4
@gsswTexLocation = external dso_local local_unnamed_addr global i32, align 4
@forceShader = external dso_local local_unnamed_addr global i32, align 4
@fswTexLocation = external dso_local local_unnamed_addr global i32, align 4
@fsCounterLocation = external dso_local local_unnamed_addr global i32, align 4
@fsSimLocation = external dso_local local_unnamed_addr global i32, align 4
@addColorShader = external dso_local local_unnamed_addr global i32, align 4
@accTexLocation = external dso_local local_unnamed_addr global i32, align 4
@acCounterLocation = external dso_local local_unnamed_addr global i32, align 4
@acSimLocation = external dso_local local_unnamed_addr global i32, align 4
@fbo0 = external dso_local local_unnamed_addr global i32, align 4
@uBegTex = external dso_local local_unnamed_addr global i32, align 4
@uEndTex = external dso_local local_unnamed_addr global i32, align 4
@cBegTex = external dso_local local_unnamed_addr global i32, align 4
@cEndTex = external dso_local local_unnamed_addr global i32, align 4
@cTempTex = external dso_local local_unnamed_addr global i32, align 4
@wTex = external dso_local local_unnamed_addr global i32, align 4
@wTempTex = external dso_local local_unnamed_addr global i32, align 4
@wDivergenceTex = external dso_local local_unnamed_addr global i32, align 4
@pTempTex = external dso_local global [2 x i32], align 4
@pTex = external dso_local local_unnamed_addr global i32, align 4
@monaTex = external dso_local local_unnamed_addr global i32, align 4
@screamTex = external dso_local local_unnamed_addr global i32, align 4
@curSim = external dso_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@glad_glBindFramebuffer = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [40 x i8], align 1
@glad_glFramebufferTexture2D = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClearColor = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glClear = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@glad_glUniform1i = external local_unnamed_addr global ptr, align 8
@glad_glActiveTexture = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@glad_glDisable = external local_unnamed_addr global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1
@glad_glDepthMask = external local_unnamed_addr global ptr, align 8
@.str.33 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [20 x i8], align 1
@glad_glColorMask = external local_unnamed_addr global ptr, align 8
@.str.35 = external hidden unnamed_addr constant [48 x i8], align 1
@glad_glEnable = external local_unnamed_addr global ptr, align 8
@.str.36 = external hidden unnamed_addr constant [23 x i8], align 1
@glad_glFrontFace = external local_unnamed_addr global ptr, align 8
@.str.37 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [32 x i8], align 1
@glad_glDepthFunc = external local_unnamed_addr global ptr, align 8
@.str.40 = external hidden unnamed_addr constant [21 x i8], align 1
@glad_glViewport = external local_unnamed_addr global ptr, align 8
@.str.41 = external hidden unnamed_addr constant [36 x i8], align 1
@glad_glEnableVertexAttribArray = external local_unnamed_addr global ptr, align 8
@.str.42 = external hidden unnamed_addr constant [37 x i8], align 1
@glad_glBindBuffer = external local_unnamed_addr global ptr, align 8
@.str.43 = external hidden unnamed_addr constant [51 x i8], align 1
@glad_glVertexAttribPointer = external local_unnamed_addr global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ11renderFramevE8icounter = external hidden local_unnamed_addr global i32, align 4
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [35 x i8], align 1
@glad_glUniform1f = external local_unnamed_addr global ptr, align 8
@.str.54 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16renderFullscreenv() local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12clearTexturej(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17computeDivergencejj(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6advectjjj(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8writeTexjj(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z6jacobiijPj(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5dpushPKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4dpopv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11renderFramev() local_unnamed_addr #0 {
  %1 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  tail call void %1(i32 noundef 2929)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.4, i32 noundef 373)
  %2 = load ptr, ptr @glad_glDepthMask, align 8, !tbaa !5
  tail call void %2(i8 noundef zeroext 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.4, i32 noundef 374)
  %3 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  tail call void %3(i32 noundef 3042)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.4, i32 noundef 375)
  %4 = load ptr, ptr @glad_glColorMask, align 8, !tbaa !5
  tail call void %4(i8 noundef zeroext 1, i8 noundef zeroext 1, i8 noundef zeroext 1, i8 noundef zeroext 1)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.4, i32 noundef 376)
  %5 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  tail call void %5(i32 noundef 2884)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.4, i32 noundef 377)
  %6 = load ptr, ptr @glad_glFrontFace, align 8, !tbaa !5
  tail call void %6(i32 noundef 2305)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.4, i32 noundef 378)
  %7 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %7(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 379)
  %8 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  tail call void %8(i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.4, i32 noundef 380)
  %9 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  tail call void %9(i32 noundef 3553, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.4, i32 noundef 381)
  %10 = load ptr, ptr @glad_glDepthFunc, align 8, !tbaa !5
  tail call void %10(i32 noundef 513)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.4, i32 noundef 382)
  %11 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %12 = load i32, ptr @fbWidth, align 4, !tbaa !9
  %13 = load i32, ptr @fbHeight, align 4, !tbaa !9
  tail call void %11(i32 noundef 0, i32 noundef 0, i32 noundef %12, i32 noundef %13)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.4, i32 noundef 384)
  %14 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  tail call void %14(i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.4, i32 noundef 388)
  %15 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %16 = load i32, ptr @fullscreenVertexVbo, align 4, !tbaa !9
  tail call void %15(i32 noundef 34962, i32 noundef %16)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.4, i32 noundef 389)
  %17 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  tail call void %17(i32 noundef 0, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 8, ptr noundef null)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.4, i32 noundef 390)
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.45)
  %18 = load i32, ptr @cBegTex, align 4, !tbaa !9
  %19 = load i32, ptr @uBegTex, align 4, !tbaa !9
  %20 = load i32, ptr @cTempTex, align 4, !tbaa !9
  tail call void @_Z6advectjjj(i32 noundef %18, i32 noundef %19, i32 noundef %20)
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.46)
  %21 = load i32, ptr @uBegTex, align 4, !tbaa !9
  %22 = load i32, ptr @wTex, align 4, !tbaa !9
  tail call void @_Z6advectjjj(i32 noundef %21, i32 noundef %21, i32 noundef %22)
  tail call void @_Z4dpopv()
  %23 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  %25 = add i32 %23, -400
  %or.cond = icmp ult i32 %25, 299
  %26 = load i32, ptr @curSim, align 4
  %27 = icmp eq i32 %26, 0
  %or.cond3 = select i1 %or.cond, i1 %27, i1 false
  br i1 %or.cond3, label %28, label %33

28:                                               ; preds = %0
  %29 = uitofp nneg i32 %24 to float
  %30 = fadd float %29, -4.000000e+02
  %31 = fdiv float %30, 3.000000e+02
  %32 = fsub float 1.000000e+00, %31
  br label %106

33:                                               ; preds = %0
  %34 = icmp eq i32 %24, 700
  %or.cond5 = select i1 %34, i1 %27, i1 false
  br i1 %or.cond5, label %35, label %39

35:                                               ; preds = %33
  %36 = load i32, ptr @wTex, align 4, !tbaa !9
  tail call void @_Z12clearTexturej(i32 noundef %36)
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.47)
  %37 = load i32, ptr @monaTex, align 4, !tbaa !9
  %38 = load i32, ptr @cTempTex, align 4, !tbaa !9
  tail call void @_Z8writeTexjj(i32 noundef %37, i32 noundef %38)
  tail call void @_Z4dpopv()
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  store i32 1, ptr @curSim, align 4, !tbaa !11
  br label %106

39:                                               ; preds = %33
  %40 = icmp slt i32 %23, 79
  %41 = icmp eq i32 %26, 1
  %or.cond7 = select i1 %40, i1 %41, i1 false
  br i1 %or.cond7, label %42, label %46

42:                                               ; preds = %39
  %43 = sitofp i32 %24 to float
  %44 = fdiv float %43, 8.000000e+01
  %45 = tail call noundef float @_ZSt3powff(float noundef %44, float noundef 3.000000e+00)
  br label %106

46:                                               ; preds = %39
  %47 = icmp eq i32 %24, 80
  %or.cond9 = select i1 %47, i1 %41, i1 false
  br i1 %or.cond9, label %48, label %49

48:                                               ; preds = %46
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  store i32 2, ptr @curSim, align 4, !tbaa !11
  br label %106

49:                                               ; preds = %46
  %50 = add i32 %23, -900
  %or.cond11 = icmp ult i32 %50, 299
  %51 = icmp eq i32 %26, 2
  %or.cond13 = select i1 %or.cond11, i1 %51, i1 false
  br i1 %or.cond13, label %52, label %57

52:                                               ; preds = %49
  %53 = uitofp nneg i32 %24 to float
  %54 = fadd float %53, -9.000000e+02
  %55 = fdiv float %54, 3.000000e+02
  %56 = fsub float 1.000000e+00, %55
  br label %106

57:                                               ; preds = %49
  %58 = icmp eq i32 %24, 1200
  %or.cond15 = select i1 %58, i1 %51, i1 false
  br i1 %or.cond15, label %59, label %63

59:                                               ; preds = %57
  %60 = load i32, ptr @wTex, align 4, !tbaa !9
  tail call void @_Z12clearTexturej(i32 noundef %60)
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.48)
  %61 = load i32, ptr @screamTex, align 4, !tbaa !9
  %62 = load i32, ptr @cTempTex, align 4, !tbaa !9
  tail call void @_Z8writeTexjj(i32 noundef %61, i32 noundef %62)
  tail call void @_Z4dpopv()
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  store i32 3, ptr @curSim, align 4, !tbaa !11
  br label %106

63:                                               ; preds = %57
  %64 = icmp slt i32 %23, 129
  %65 = icmp eq i32 %26, 3
  %or.cond17 = select i1 %64, i1 %65, i1 false
  br i1 %or.cond17, label %66, label %70

66:                                               ; preds = %63
  %67 = sitofp i32 %24 to float
  %68 = fdiv float %67, 1.300000e+02
  %69 = tail call noundef float @_ZSt3powff(float noundef %68, float noundef 3.000000e+00)
  br label %106

70:                                               ; preds = %63
  %71 = icmp eq i32 %24, 130
  %or.cond19 = select i1 %71, i1 %65, i1 false
  br i1 %or.cond19, label %72, label %73

72:                                               ; preds = %70
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  store i32 4, ptr @curSim, align 4, !tbaa !11
  br label %106

73:                                               ; preds = %70
  %74 = add i32 %23, -1100
  %or.cond21 = icmp ult i32 %74, 199
  %75 = icmp eq i32 %26, 4
  %or.cond23 = select i1 %or.cond21, i1 %75, i1 false
  br i1 %or.cond23, label %76, label %81

76:                                               ; preds = %73
  %77 = uitofp nneg i32 %24 to float
  %78 = fadd float %77, -1.100000e+03
  %79 = fdiv float %78, 2.000000e+02
  %80 = fsub float 1.000000e+00, %79
  br label %106

81:                                               ; preds = %73
  %82 = icmp eq i32 %24, 1300
  %or.cond25 = select i1 %82, i1 %75, i1 false
  br i1 %or.cond25, label %83, label %86

83:                                               ; preds = %81
  %84 = load i32, ptr @wTex, align 4, !tbaa !9
  tail call void @_Z12clearTexturej(i32 noundef %84)
  %85 = load i32, ptr @cTempTex, align 4, !tbaa !9
  tail call void @_Z12clearTexturej(i32 noundef %85)
  store i32 0, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  store i32 5, ptr @curSim, align 4, !tbaa !11
  br label %106

86:                                               ; preds = %81
  %87 = icmp slt i32 %23, 499
  %88 = icmp eq i32 %26, 5
  %or.cond27 = select i1 %87, i1 %88, i1 false
  br i1 %or.cond27, label %89, label %92

89:                                               ; preds = %86
  %90 = sitofp i32 %24 to float
  %91 = fdiv float %90, 5.000000e+02
  br label %106

92:                                               ; preds = %86
  %93 = icmp eq i32 %24, 500
  %or.cond29 = select i1 %93, i1 %88, i1 false
  br i1 %or.cond29, label %106, label %94

94:                                               ; preds = %92
  %95 = add i32 %23, -1000
  %or.cond31 = icmp ult i32 %95, 199
  %or.cond33 = select i1 %or.cond31, i1 %88, i1 false
  br i1 %or.cond33, label %96, label %101

96:                                               ; preds = %94
  %97 = uitofp nneg i32 %24 to float
  %98 = fadd float %97, -1.000000e+03
  %99 = fdiv float %98, 2.000000e+02
  %100 = fsub float 1.000000e+00, %99
  br label %106

101:                                              ; preds = %94
  %102 = add i32 %23, -1199
  %or.cond35 = icmp ult i32 %102, 101
  %or.cond37 = select i1 %or.cond35, i1 %88, i1 false
  br i1 %or.cond37, label %106, label %103

103:                                              ; preds = %101
  %104 = icmp sgt i32 %23, 1298
  %or.cond39 = select i1 %104, i1 %88, i1 false
  br i1 %or.cond39, label %105, label %106

105:                                              ; preds = %103
  store i8 1, ptr @done, align 1, !tbaa !13
  br label %106

106:                                              ; preds = %101, %92, %35, %48, %59, %72, %83, %105, %103, %96, %89, %76, %66, %52, %42, %28
  %.0 = phi float [ %32, %28 ], [ 0.000000e+00, %35 ], [ %45, %42 ], [ 1.000000e+00, %48 ], [ %56, %52 ], [ 0.000000e+00, %59 ], [ %69, %66 ], [ 1.000000e+00, %72 ], [ %80, %76 ], [ 0.000000e+00, %83 ], [ %91, %89 ], [ %100, %96 ], [ 0.000000e+00, %105 ], [ 1.000000e+00, %103 ], [ 1.000000e+00, %92 ], [ 0.000000e+00, %101 ]
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.49)
  %107 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %108 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %107(i32 noundef 36160, i32 noundef %108)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 492)
  %109 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !5
  %110 = load i32, ptr @wTempTex, align 4, !tbaa !9
  tail call void %109(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %110, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.4, i32 noundef 496)
  %111 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %111(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 497)
  %112 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %113 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %112(i32 noundef 36160, i32 noundef %113)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 499)
  %114 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  tail call void %114(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 501)
  %115 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  tail call void %115(i32 noundef 16384)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 502)
  %116 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %117 = load i32, ptr @forceShader, align 4, !tbaa !9
  tail call void %116(i32 noundef %117)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.4, i32 noundef 504)
  %118 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %119 = load i32, ptr @fswTexLocation, align 4, !tbaa !9
  tail call void %118(i32 noundef %119, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.4, i32 noundef 506)
  %120 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %120(i32 noundef 33984)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 507)
  %121 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %122 = load i32, ptr @wTex, align 4, !tbaa !9
  tail call void %121(i32 noundef 3553, i32 noundef %122)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.4, i32 noundef 508)
  %123 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !5
  %124 = load i32, ptr @fsCounterLocation, align 4, !tbaa !9
  %125 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  %126 = sitofp i32 %125 to float
  tail call void %123(i32 noundef %124, float noundef %126)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.4, i32 noundef 510)
  %127 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %128 = load i32, ptr @fsSimLocation, align 4, !tbaa !9
  %129 = load i32, ptr @curSim, align 4, !tbaa !11
  tail call void %127(i32 noundef %128, i32 noundef %129)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.4, i32 noundef 511)
  tail call void @_Z16renderFullscreenv()
  %130 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %130(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 516)
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.56)
  %131 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %132 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %131(i32 noundef 36160, i32 noundef %132)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 523)
  %133 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !5
  %134 = load i32, ptr @cEndTex, align 4, !tbaa !9
  tail call void %133(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %134, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.4, i32 noundef 527)
  %135 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %135(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 528)
  %136 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %137 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %136(i32 noundef 36160, i32 noundef %137)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 530)
  %138 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  tail call void %138(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 532)
  %139 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  tail call void %139(i32 noundef 16384)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 533)
  %140 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %141 = load i32, ptr @addColorShader, align 4, !tbaa !9
  tail call void %140(i32 noundef %141)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.4, i32 noundef 535)
  %142 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %143 = load i32, ptr @accTexLocation, align 4, !tbaa !9
  tail call void %142(i32 noundef %143, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.4, i32 noundef 537)
  %144 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %144(i32 noundef 33984)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 538)
  %145 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %146 = load i32, ptr @cTempTex, align 4, !tbaa !9
  tail call void %145(i32 noundef 3553, i32 noundef %146)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.60, ptr noundef nonnull @.str.4, i32 noundef 539)
  %147 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !5
  %148 = load i32, ptr @acCounterLocation, align 4, !tbaa !9
  %149 = load i32, ptr @_ZZ11renderFramevE8icounter, align 4, !tbaa !9
  %150 = sitofp i32 %149 to float
  tail call void %147(i32 noundef %148, float noundef %150)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.61, ptr noundef nonnull @.str.4, i32 noundef 541)
  %151 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %152 = load i32, ptr @acSimLocation, align 4, !tbaa !9
  %153 = load i32, ptr @curSim, align 4, !tbaa !11
  tail call void %151(i32 noundef %152, i32 noundef %153)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.4, i32 noundef 542)
  tail call void @_Z16renderFullscreenv()
  %154 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %154(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 546)
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.63)
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.64)
  %155 = load i32, ptr @wTempTex, align 4, !tbaa !9
  %156 = load i32, ptr @wDivergenceTex, align 4, !tbaa !9
  tail call void @_Z17computeDivergencejj(i32 noundef %155, i32 noundef %156)
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.65)
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.66)
  %157 = load i32, ptr @pTempTex, align 4, !tbaa !9
  tail call void @_Z12clearTexturej(i32 noundef %157)
  %158 = load i32, ptr getelementptr inbounds (i8, ptr @pTempTex, i64 4), align 4, !tbaa !9
  tail call void @_Z12clearTexturej(i32 noundef %158)
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.67)
  %159 = load i32, ptr @wDivergenceTex, align 4, !tbaa !9
  %160 = tail call noundef i32 @_Z6jacobiijPj(i32 noundef 40, i32 noundef %159, ptr noundef nonnull @pTempTex)
  store i32 %160, ptr @pTex, align 4, !tbaa !9
  tail call void @_Z4dpopv()
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.68)
  %161 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %162 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %161(i32 noundef 36160, i32 noundef %162)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 580)
  %163 = load ptr, ptr @glad_glFramebufferTexture2D, align 8, !tbaa !5
  %164 = load i32, ptr @uEndTex, align 4, !tbaa !9
  tail call void %163(i32 noundef 36160, i32 noundef 36064, i32 noundef 3553, i32 noundef %164, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.69, ptr noundef nonnull @.str.4, i32 noundef 581)
  %165 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %165(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 582)
  %166 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  %167 = load i32, ptr @fbo0, align 4, !tbaa !9
  tail call void %166(i32 noundef 36160, i32 noundef %167)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 584)
  %168 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  tail call void %168(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 586)
  %169 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  tail call void %169(i32 noundef 16384)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 587)
  %170 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %171 = load i32, ptr @gradientSubtractionShader, align 4, !tbaa !9
  tail call void %170(i32 noundef %171)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.4, i32 noundef 589)
  %172 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %173 = load i32, ptr @gsswTexLocation, align 4, !tbaa !9
  tail call void %172(i32 noundef %173, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.4, i32 noundef 591)
  %174 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %174(i32 noundef 33984)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 592)
  %175 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %176 = load i32, ptr @wTempTex, align 4, !tbaa !9
  tail call void %175(i32 noundef 3553, i32 noundef %176)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.4, i32 noundef 593)
  %177 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %178 = load i32, ptr @gsspTexLocation, align 4, !tbaa !9
  tail call void %177(i32 noundef %178, i32 noundef 1)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.73, ptr noundef nonnull @.str.4, i32 noundef 595)
  %179 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %179(i32 noundef 33985)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.4, i32 noundef 596)
  %180 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %181 = load i32, ptr @pTex, align 4, !tbaa !9
  tail call void %180(i32 noundef 3553, i32 noundef %181)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.4, i32 noundef 597)
  tail call void @_Z16renderFullscreenv()
  %182 = load ptr, ptr @glad_glBindFramebuffer, align 8, !tbaa !5
  tail call void %182(i32 noundef 36160, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 601)
  tail call void @_Z4dpopv()
  tail call void @_Z4dpopv()
  tail call void @_Z5dpushPKc(ptr noundef nonnull @.str.75)
  %183 = load ptr, ptr @glad_glClearColor, align 8, !tbaa !5
  tail call void %183(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 610)
  %184 = load ptr, ptr @glad_glClear, align 8, !tbaa !5
  tail call void %184(i32 noundef 16384)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.4, i32 noundef 611)
  %185 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %186 = load i32, ptr @visShader, align 4, !tbaa !9
  tail call void %185(i32 noundef %186)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.4, i32 noundef 613)
  %187 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %188 = load i32, ptr @vsTexLocation, align 4, !tbaa !9
  tail call void %187(i32 noundef %188, i32 noundef 0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.4, i32 noundef 615)
  %189 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  tail call void %189(i32 noundef 33984)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.4, i32 noundef 616)
  %190 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %191 = load i32, ptr @cEndTex, align 4, !tbaa !9
  tail call void %190(i32 noundef 3553, i32 noundef %191)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.4, i32 noundef 617)
  %192 = load ptr, ptr @glad_glUniform1f, align 8, !tbaa !5
  %193 = load i32, ptr @vsBlendLocation, align 4, !tbaa !9
  tail call void %192(i32 noundef %193, float noundef %.0)
  tail call void @_Z16checkOpenGLErrorPKcS0_i(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.4, i32 noundef 619)
  tail call void @_Z16renderFullscreenv()
  tail call void @_Z4dpopv()
  %194 = load i32, ptr @uBegTex, align 4, !tbaa !9
  %195 = load i32, ptr @uEndTex, align 4, !tbaa !9
  store i32 %195, ptr @uBegTex, align 4, !tbaa !9
  store i32 %194, ptr @uEndTex, align 4, !tbaa !9
  %196 = load i32, ptr @cBegTex, align 4, !tbaa !9
  %197 = load i32, ptr @cEndTex, align 4, !tbaa !9
  store i32 %197, ptr @cBegTex, align 4, !tbaa !9
  store i32 %196, ptr @cEndTex, align 4, !tbaa !9
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3powff(float noundef, float noundef) local_unnamed_addr #3

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 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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" }

!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 = !{!"_ZTS15SimulationStage", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass